botmancers 0.5.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (969) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +9 -5
  3. package/app/.next/BUILD_ID +1 -1
  4. package/app/.next/app-path-routes-manifest.json +9 -0
  5. package/app/.next/build-manifest.json +3 -3
  6. package/app/.next/node_modules/@slack/socket-mode-77e8cba3b9ba4738/index.js +1 -0
  7. package/app/.next/node_modules/@slack/socket-mode-77e8cba3b9ba4738/package.json +1 -0
  8. package/app/.next/node_modules/@slack/web-api-d6dbe405b6902642/index.js +1 -0
  9. package/app/.next/node_modules/@slack/web-api-d6dbe405b6902642/package.json +1 -0
  10. package/app/.next/prerender-manifest.json +3 -3
  11. package/app/.next/required-server-files.json +8 -3
  12. package/app/.next/routes-manifest.json +67 -0
  13. package/app/.next/server/app/_global-error/page.js +1 -1
  14. package/app/.next/server/app/_global-error/page.js.nft.json +1 -1
  15. package/app/.next/server/app/_global-error.html +1 -1
  16. package/app/.next/server/app/_global-error.rsc +1 -1
  17. package/app/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  18. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  19. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  20. package/app/.next/server/app/_not-found/page.js +1 -1
  21. package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
  22. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  23. package/app/.next/server/app/_not-found.html +1 -1
  24. package/app/.next/server/app/_not-found.rsc +2 -2
  25. package/app/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  26. package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  27. package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  28. package/app/.next/server/app/api/agent-deck/decks/route.js +3 -3
  29. package/app/.next/server/app/api/agent-deck/decks/route.js.nft.json +1 -1
  30. package/app/.next/server/app/api/agent-deck/settings/route.js +3 -3
  31. package/app/.next/server/app/api/agent-deck/settings/route.js.nft.json +1 -1
  32. package/app/.next/server/app/api/bots/[id]/config/route.js +3 -3
  33. package/app/.next/server/app/api/bots/[id]/config/route.js.nft.json +1 -1
  34. package/app/.next/server/app/api/bots/[id]/sessions/[ref]/pins/route.js +5 -6
  35. package/app/.next/server/app/api/bots/[id]/sessions/[ref]/pins/route.js.nft.json +1 -1
  36. package/app/.next/server/app/api/bots/[id]/sessions/[ref]/route.js +3 -3
  37. package/app/.next/server/app/api/bots/[id]/sessions/[ref]/route.js.nft.json +1 -1
  38. package/app/.next/server/app/api/bots/[id]/sessions/[ref]/shares/route/app-paths-manifest.json +3 -0
  39. package/app/.next/server/app/api/bots/[id]/sessions/[ref]/shares/route/build-manifest.json +12 -0
  40. package/app/.next/server/app/api/bots/[id]/sessions/[ref]/shares/route/server-reference-manifest.json +4 -0
  41. package/app/.next/server/app/api/bots/[id]/sessions/[ref]/shares/route.js +11 -0
  42. package/app/.next/server/app/api/bots/[id]/sessions/[ref]/shares/route.js.nft.json +1 -0
  43. package/app/.next/server/app/api/bots/[id]/sessions/[ref]/shares/route_client-reference-manifest.js +3 -0
  44. package/app/.next/server/app/api/bots/[id]/sessions/route.js +5 -6
  45. package/app/.next/server/app/api/bots/[id]/sessions/route.js.nft.json +1 -1
  46. package/app/.next/server/app/api/bots/[id]/share-policy/route/app-paths-manifest.json +3 -0
  47. package/app/.next/server/app/api/bots/[id]/share-policy/route/build-manifest.json +12 -0
  48. package/app/.next/server/app/api/bots/[id]/share-policy/route/server-reference-manifest.json +4 -0
  49. package/app/.next/server/app/api/bots/[id]/share-policy/route.js +11 -0
  50. package/app/.next/server/app/api/bots/[id]/share-policy/route.js.nft.json +1 -0
  51. package/app/.next/server/app/api/bots/[id]/share-policy/route_client-reference-manifest.js +3 -0
  52. package/app/.next/server/app/api/bots/[id]/skill/route.js +3 -3
  53. package/app/.next/server/app/api/bots/[id]/skill/route.js.nft.json +1 -1
  54. package/app/.next/server/app/api/bots/availability/route.js +1 -1
  55. package/app/.next/server/app/api/bots/availability/route.js.nft.json +1 -1
  56. package/app/.next/server/app/api/bots/delete-preview/route.js +3 -3
  57. package/app/.next/server/app/api/bots/delete-preview/route.js.nft.json +1 -1
  58. package/app/.next/server/app/api/bots/import/route.js +3 -3
  59. package/app/.next/server/app/api/bots/import/route.js.nft.json +1 -1
  60. package/app/.next/server/app/api/bots/manage/route.js +3 -3
  61. package/app/.next/server/app/api/bots/manage/route.js.nft.json +1 -1
  62. package/app/.next/server/app/api/bots/name-migrations/route.js +3 -3
  63. package/app/.next/server/app/api/bots/name-migrations/route.js.nft.json +1 -1
  64. package/app/.next/server/app/api/bots/route.js +6 -6
  65. package/app/.next/server/app/api/bots/route.js.nft.json +1 -1
  66. package/app/.next/server/app/api/conversations/[id]/approve/route.js +4 -4
  67. package/app/.next/server/app/api/conversations/[id]/approve/route.js.nft.json +1 -1
  68. package/app/.next/server/app/api/conversations/[id]/deny/route.js +4 -4
  69. package/app/.next/server/app/api/conversations/[id]/deny/route.js.nft.json +1 -1
  70. package/app/.next/server/app/api/conversations/[id]/draft/route.js +4 -4
  71. package/app/.next/server/app/api/conversations/[id]/draft/route.js.nft.json +1 -1
  72. package/app/.next/server/app/api/conversations/[id]/messages/[messageId]/stop/route.js +3 -3
  73. package/app/.next/server/app/api/conversations/[id]/messages/[messageId]/stop/route.js.nft.json +1 -1
  74. package/app/.next/server/app/api/conversations/[id]/messages/route.js +5 -5
  75. package/app/.next/server/app/api/conversations/[id]/messages/route.js.nft.json +1 -1
  76. package/app/.next/server/app/api/conversations/[id]/route.js +3 -3
  77. package/app/.next/server/app/api/conversations/[id]/route.js.nft.json +1 -1
  78. package/app/.next/server/app/api/conversations/[id]/stop/route.js +7 -7
  79. package/app/.next/server/app/api/conversations/[id]/stop/route.js.nft.json +1 -1
  80. package/app/.next/server/app/api/conversations/route.js +3 -3
  81. package/app/.next/server/app/api/conversations/route.js.nft.json +1 -1
  82. package/app/.next/server/app/api/exchanges/[id]/cancel/route.js +4 -4
  83. package/app/.next/server/app/api/exchanges/[id]/cancel/route.js.nft.json +1 -1
  84. package/app/.next/server/app/api/exchanges/[id]/route.js +5 -5
  85. package/app/.next/server/app/api/exchanges/[id]/route.js.nft.json +1 -1
  86. package/app/.next/server/app/api/exchanges/route.js +5 -5
  87. package/app/.next/server/app/api/exchanges/route.js.nft.json +1 -1
  88. package/app/.next/server/app/api/files/[name]/route.js +1 -1
  89. package/app/.next/server/app/api/files/[name]/route.js.nft.json +1 -1
  90. package/app/.next/server/app/api/groups/route.js +3 -3
  91. package/app/.next/server/app/api/groups/route.js.nft.json +1 -1
  92. package/app/.next/server/app/api/health/route.js +5 -2
  93. package/app/.next/server/app/api/health/route.js.nft.json +1 -1
  94. package/app/.next/server/app/api/import-capabilities/route.js +1 -1
  95. package/app/.next/server/app/api/import-capabilities/route.js.nft.json +1 -1
  96. package/app/.next/server/app/api/marketplace-handoff/route.js +1 -1
  97. package/app/.next/server/app/api/marketplace-handoff/route.js.nft.json +1 -1
  98. package/app/.next/server/app/api/marketplace-handoff/status/route.js +1 -1
  99. package/app/.next/server/app/api/marketplace-handoff/status/route.js.nft.json +1 -1
  100. package/app/.next/server/app/api/mcp/route.js +3 -3
  101. package/app/.next/server/app/api/mcp/route.js.nft.json +1 -1
  102. package/app/.next/server/app/api/messages/[id]/between/route.js +3 -3
  103. package/app/.next/server/app/api/messages/[id]/between/route.js.nft.json +1 -1
  104. package/app/.next/server/app/api/runtime-connections/route.js +3 -3
  105. package/app/.next/server/app/api/runtime-connections/route.js.nft.json +1 -1
  106. package/app/.next/server/app/api/service-grants/route.js +3 -3
  107. package/app/.next/server/app/api/service-grants/route.js.nft.json +1 -1
  108. package/app/.next/server/app/api/shares/[shareRef]/revoke/route/app-paths-manifest.json +3 -0
  109. package/app/.next/server/app/api/shares/[shareRef]/revoke/route/build-manifest.json +12 -0
  110. package/app/.next/server/app/api/shares/[shareRef]/revoke/route/server-reference-manifest.json +4 -0
  111. package/app/.next/server/app/api/shares/[shareRef]/revoke/route.js +11 -0
  112. package/app/.next/server/app/api/shares/[shareRef]/revoke/route.js.nft.json +1 -0
  113. package/app/.next/server/app/api/shares/[shareRef]/revoke/route_client-reference-manifest.js +3 -0
  114. package/app/.next/server/app/api/shares/route/app-paths-manifest.json +3 -0
  115. package/app/.next/server/app/api/shares/route/build-manifest.json +12 -0
  116. package/app/.next/server/app/api/shares/route/server-reference-manifest.json +4 -0
  117. package/app/.next/server/app/api/shares/route.js +11 -0
  118. package/app/.next/server/app/api/shares/route.js.nft.json +1 -0
  119. package/app/.next/server/app/api/shares/route_client-reference-manifest.js +3 -0
  120. package/app/.next/server/app/api/v0/agents/[agentId]/conversations/[conversationId]/route.js +5 -6
  121. package/app/.next/server/app/api/v0/agents/[agentId]/conversations/[conversationId]/route.js.nft.json +1 -1
  122. package/app/.next/server/app/api/v0/agents/[agentId]/conversations/route.js +5 -6
  123. package/app/.next/server/app/api/v0/agents/[agentId]/conversations/route.js.nft.json +1 -1
  124. package/app/.next/server/app/api/v0/agents/[agentId]/messages/route.js +4 -4
  125. package/app/.next/server/app/api/v0/agents/[agentId]/messages/route.js.nft.json +1 -1
  126. package/app/.next/server/app/api/v0/agents/[agentId]/pins/route.js +5 -6
  127. package/app/.next/server/app/api/v0/agents/[agentId]/pins/route.js.nft.json +1 -1
  128. package/app/.next/server/app/api/v0/agents/[agentId]/route.js +5 -6
  129. package/app/.next/server/app/api/v0/agents/[agentId]/route.js.nft.json +1 -1
  130. package/app/.next/server/app/api/v0/agents/[agentId]/sessions/[ref]/route.js +5 -6
  131. package/app/.next/server/app/api/v0/agents/[agentId]/sessions/[ref]/route.js.nft.json +1 -1
  132. package/app/.next/server/app/api/v0/agents/[agentId]/sessions/route.js +5 -6
  133. package/app/.next/server/app/api/v0/agents/[agentId]/sessions/route.js.nft.json +1 -1
  134. package/app/.next/server/app/api/v0/agents/route.js +5 -6
  135. package/app/.next/server/app/api/v0/agents/route.js.nft.json +1 -1
  136. package/app/.next/server/app/api/v0/capabilities/route.js +5 -6
  137. package/app/.next/server/app/api/v0/capabilities/route.js.nft.json +1 -1
  138. package/app/.next/server/app/api/v0/conversations/[id]/route.js +4 -4
  139. package/app/.next/server/app/api/v0/conversations/[id]/route.js.nft.json +1 -1
  140. package/app/.next/server/app/api/v0/exchanges/[id]/cancel/route.js +5 -6
  141. package/app/.next/server/app/api/v0/exchanges/[id]/cancel/route.js.nft.json +1 -1
  142. package/app/.next/server/app/api/v0/exchanges/[id]/route.js +5 -6
  143. package/app/.next/server/app/api/v0/exchanges/[id]/route.js.nft.json +1 -1
  144. package/app/.next/server/app/api/v0/exchanges/route.js +5 -6
  145. package/app/.next/server/app/api/v0/exchanges/route.js.nft.json +1 -1
  146. package/app/.next/server/app/api/v0/mcp/route.js +6 -7
  147. package/app/.next/server/app/api/v0/mcp/route.js.nft.json +1 -1
  148. package/app/.next/server/app/api/v0/pins/[pinRef]/detach/route.js +5 -6
  149. package/app/.next/server/app/api/v0/pins/[pinRef]/detach/route.js.nft.json +1 -1
  150. package/app/.next/server/app/api/v0/pins/[pinRef]/messages/route.js +5 -6
  151. package/app/.next/server/app/api/v0/pins/[pinRef]/messages/route.js.nft.json +1 -1
  152. package/app/.next/server/app/api/v0/pins/[pinRef]/route.js +5 -6
  153. package/app/.next/server/app/api/v0/pins/[pinRef]/route.js.nft.json +1 -1
  154. package/app/.next/server/app/api/v0/requests/[id]/route.js +4 -4
  155. package/app/.next/server/app/api/v0/requests/[id]/route.js.nft.json +1 -1
  156. package/app/.next/server/app/api/v0/sessions/[ref]/messages/route.js +5 -6
  157. package/app/.next/server/app/api/v0/sessions/[ref]/messages/route.js.nft.json +1 -1
  158. package/app/.next/server/app/api/v0/sessions/[ref]/pins/route.js +5 -6
  159. package/app/.next/server/app/api/v0/sessions/[ref]/pins/route.js.nft.json +1 -1
  160. package/app/.next/server/app/api/v0/sessions/[ref]/shares/route/app-paths-manifest.json +3 -0
  161. package/app/.next/server/app/api/v0/sessions/[ref]/shares/route/build-manifest.json +12 -0
  162. package/app/.next/server/app/api/v0/sessions/[ref]/shares/route/server-reference-manifest.json +4 -0
  163. package/app/.next/server/app/api/v0/sessions/[ref]/shares/route.js +11 -0
  164. package/app/.next/server/app/api/v0/sessions/[ref]/shares/route.js.nft.json +1 -0
  165. package/app/.next/server/app/api/v0/sessions/[ref]/shares/route_client-reference-manifest.js +3 -0
  166. package/app/.next/server/app/api/v0/shares/[shareRef]/revoke/route/app-paths-manifest.json +3 -0
  167. package/app/.next/server/app/api/v0/shares/[shareRef]/revoke/route/build-manifest.json +12 -0
  168. package/app/.next/server/app/api/v0/shares/[shareRef]/revoke/route/server-reference-manifest.json +4 -0
  169. package/app/.next/server/app/api/v0/shares/[shareRef]/revoke/route.js +11 -0
  170. package/app/.next/server/app/api/v0/shares/[shareRef]/revoke/route.js.nft.json +1 -0
  171. package/app/.next/server/app/api/v0/shares/[shareRef]/revoke/route_client-reference-manifest.js +3 -0
  172. package/app/.next/server/app/api/v0/shares/[shareRef]/route/app-paths-manifest.json +3 -0
  173. package/app/.next/server/app/api/v0/shares/[shareRef]/route/build-manifest.json +12 -0
  174. package/app/.next/server/app/api/v0/shares/[shareRef]/route/server-reference-manifest.json +4 -0
  175. package/app/.next/server/app/api/v0/shares/[shareRef]/route.js +11 -0
  176. package/app/.next/server/app/api/v0/shares/[shareRef]/route.js.nft.json +1 -0
  177. package/app/.next/server/app/api/v0/shares/[shareRef]/route_client-reference-manifest.js +3 -0
  178. package/app/.next/server/app/api/v0/shares/current/route/app-paths-manifest.json +3 -0
  179. package/app/.next/server/app/api/v0/shares/current/route/build-manifest.json +12 -0
  180. package/app/.next/server/app/api/v0/shares/current/route/server-reference-manifest.json +4 -0
  181. package/app/.next/server/app/api/v0/shares/current/route.js +11 -0
  182. package/app/.next/server/app/api/v0/shares/current/route.js.nft.json +1 -0
  183. package/app/.next/server/app/api/v0/shares/current/route_client-reference-manifest.js +3 -0
  184. package/app/.next/server/app/api/v0/shares/route/app-paths-manifest.json +3 -0
  185. package/app/.next/server/app/api/v0/shares/route/build-manifest.json +12 -0
  186. package/app/.next/server/app/api/v0/shares/route/server-reference-manifest.json +4 -0
  187. package/app/.next/server/app/api/v0/shares/route.js +11 -0
  188. package/app/.next/server/app/api/v0/shares/route.js.nft.json +1 -0
  189. package/app/.next/server/app/api/v0/shares/route_client-reference-manifest.js +3 -0
  190. package/app/.next/server/app/api/wake-grants/[id]/revoke/route.js +4 -4
  191. package/app/.next/server/app/api/wake-grants/[id]/revoke/route.js.nft.json +1 -1
  192. package/app/.next/server/app/api/wakes/[id]/decision/route.js +4 -4
  193. package/app/.next/server/app/api/wakes/[id]/decision/route.js.nft.json +1 -1
  194. package/app/.next/server/app/api/wakes/[id]/retry/route.js +4 -4
  195. package/app/.next/server/app/api/wakes/[id]/retry/route.js.nft.json +1 -1
  196. package/app/.next/server/app/bots/[id]/config/page.js +1 -1
  197. package/app/.next/server/app/bots/[id]/config/page.js.nft.json +1 -1
  198. package/app/.next/server/app/bots/[id]/config/page_client-reference-manifest.js +1 -1
  199. package/app/.next/server/app/exchanges/page.js +1 -1
  200. package/app/.next/server/app/exchanges/page.js.nft.json +1 -1
  201. package/app/.next/server/app/exchanges/page_client-reference-manifest.js +1 -1
  202. package/app/.next/server/app/exchanges.html +1 -1
  203. package/app/.next/server/app/exchanges.rsc +3 -3
  204. package/app/.next/server/app/exchanges.segments/_full.segment.rsc +3 -3
  205. package/app/.next/server/app/exchanges.segments/_tree.segment.rsc +2 -2
  206. package/app/.next/server/app/exchanges.segments/exchanges/__PAGE__.segment.rsc +3 -3
  207. package/app/.next/server/app/index.html +1 -1
  208. package/app/.next/server/app/index.rsc +3 -3
  209. package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  210. package/app/.next/server/app/index.segments/_full.segment.rsc +3 -3
  211. package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  212. package/app/.next/server/app/page.js +1 -1
  213. package/app/.next/server/app/page.js.nft.json +1 -1
  214. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  215. package/app/.next/server/app/settings/page.js +1 -1
  216. package/app/.next/server/app/settings/page.js.nft.json +1 -1
  217. package/app/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  218. package/app/.next/server/app/settings.html +1 -1
  219. package/app/.next/server/app/settings.rsc +2 -2
  220. package/app/.next/server/app/settings.segments/_full.segment.rsc +2 -2
  221. package/app/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  222. package/app/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  223. package/app/.next/server/app/threads/[id]/page.js +1 -1
  224. package/app/.next/server/app/threads/[id]/page.js.nft.json +1 -1
  225. package/app/.next/server/app/threads/[id]/page_client-reference-manifest.js +1 -1
  226. package/app/.next/server/app-paths-manifest.json +9 -0
  227. package/app/.next/server/chunks/1oeh_server_app_api_bots_[id]_sessions_[ref]_shares_route_actions_1jr6f0v.js +3 -0
  228. package/app/.next/server/chunks/[externals]_@slack_0owayck._.js +3 -0
  229. package/app/.next/server/chunks/[externals]__17bolvp._.js +3 -0
  230. package/app/.next/server/chunks/{[externals]__06lqs5i._.js → [externals]__1eaoma8._.js} +1 -1
  231. package/app/.next/server/chunks/[root-of-the-server]__0-vcyi-._.js +3 -0
  232. package/app/.next/server/chunks/[root-of-the-server]__0-w_t2y._.js +3 -0
  233. package/app/.next/server/chunks/{[root-of-the-server]__1_01-13._.js → [root-of-the-server]__029-_9t._.js} +2 -2
  234. package/app/.next/server/chunks/[root-of-the-server]__02vrtib._.js +4 -0
  235. package/app/.next/server/chunks/[root-of-the-server]__04b3ml2._.js +3 -0
  236. package/app/.next/server/chunks/[root-of-the-server]__06w5xhe._.js +3 -0
  237. package/app/.next/server/chunks/[root-of-the-server]__07q5mnr._.js +3 -0
  238. package/app/.next/server/chunks/[root-of-the-server]__0888o0_._.js +3 -0
  239. package/app/.next/server/chunks/[root-of-the-server]__0aincj4._.js +3 -0
  240. package/app/.next/server/chunks/[root-of-the-server]__0e_agq4._.js +3 -0
  241. package/app/.next/server/chunks/[root-of-the-server]__0ey3_2x._.js +3 -0
  242. package/app/.next/server/chunks/[root-of-the-server]__0fku-bw._.js +3 -0
  243. package/app/.next/server/chunks/[root-of-the-server]__0iqh5ta._.js +3 -0
  244. package/app/.next/server/chunks/[root-of-the-server]__0ivjcgs._.js +4 -0
  245. package/app/.next/server/chunks/[root-of-the-server]__0j4pjyg._.js +3 -0
  246. package/app/.next/server/chunks/[root-of-the-server]__0kgnysc._.js +3 -0
  247. package/app/.next/server/chunks/[root-of-the-server]__0mo_kn3._.js +48 -0
  248. package/app/.next/server/chunks/[root-of-the-server]__0mp8bap._.js +3 -0
  249. package/app/.next/server/chunks/[root-of-the-server]__0o9ijih._.js +3 -0
  250. package/app/.next/server/chunks/[root-of-the-server]__0qaiqut._.js +44 -0
  251. package/app/.next/server/chunks/{[root-of-the-server]__1kvvs4u._.js → [root-of-the-server]__0zrx1iz._.js} +1 -1
  252. package/app/.next/server/chunks/[root-of-the-server]__10b5-i-._.js +3 -0
  253. package/app/.next/server/chunks/[root-of-the-server]__17xl_55._.js +3 -0
  254. package/app/.next/server/chunks/[root-of-the-server]__1dxr858._.js +3 -0
  255. package/app/.next/server/chunks/[root-of-the-server]__1eps2a4._.js +3 -0
  256. package/app/.next/server/chunks/[root-of-the-server]__1g_n99l._.js +3 -0
  257. package/app/.next/server/chunks/[root-of-the-server]__1ggmit0._.js +4 -0
  258. package/app/.next/server/chunks/{[root-of-the-server]__1y_j43n._.js → [root-of-the-server]__1hwy3jx._.js} +1 -1
  259. package/app/.next/server/chunks/[root-of-the-server]__1i8glt4._.js +4 -0
  260. package/app/.next/server/chunks/{[root-of-the-server]__0j0i8xz._.js → [root-of-the-server]__1igzl05._.js} +1 -1
  261. package/app/.next/server/chunks/[root-of-the-server]__1kczttr._.js +3 -0
  262. package/app/.next/server/chunks/{[root-of-the-server]__1c3e2ds._.js → [root-of-the-server]__1kik2zt._.js} +1 -1
  263. package/app/.next/server/chunks/[root-of-the-server]__1t4ybp2._.js +48 -0
  264. package/app/.next/server/chunks/[root-of-the-server]__1v3ikuo._.js +3 -0
  265. package/app/.next/server/chunks/{[root-of-the-server]__0-45blq._.js → [root-of-the-server]__1z5l5cg._.js} +2 -2
  266. package/app/.next/server/chunks/[root-of-the-server]__200ep0k._.js +3 -0
  267. package/app/.next/server/chunks/_0061c2q._.js +48 -1
  268. package/app/.next/server/chunks/_04e2bgj._.js +3 -0
  269. package/app/.next/server/chunks/_05po7b4._.js +3 -0
  270. package/app/.next/server/chunks/_06sxx0e._.js +3 -0
  271. package/app/.next/server/chunks/_0a2do3x._.js +1 -1
  272. package/app/.next/server/chunks/_0ar2ooe._.js +3 -0
  273. package/app/.next/server/chunks/_0fmotaz._.js +3 -0
  274. package/app/.next/server/chunks/_0kpfto_._.js +3 -0
  275. package/app/.next/server/chunks/_0lm6uis._.js +3 -0
  276. package/app/.next/server/chunks/_0mpu5tl._.js +3 -0
  277. package/app/.next/server/chunks/_0qv-4by._.js +3 -0
  278. package/app/.next/server/chunks/_0u9cfq9._.js +3 -0
  279. package/app/.next/server/chunks/_0ul8k7g._.js +3 -0
  280. package/app/.next/server/chunks/_1-5mthb._.js +1 -1
  281. package/app/.next/server/chunks/_1-60d3o._.js +3 -0
  282. package/app/.next/server/chunks/_133y3b0._.js +3 -0
  283. package/app/.next/server/chunks/_167960a._.js +3 -0
  284. package/app/.next/server/chunks/_17vgjlt._.js +3 -0
  285. package/app/.next/server/chunks/_1amx9_4._.js +3 -0
  286. package/app/.next/server/chunks/_1b01v-_._.js +3 -0
  287. package/app/.next/server/chunks/_1c-g4gq._.js +3 -0
  288. package/app/.next/server/chunks/_1ey6l4p._.js +3 -0
  289. package/app/.next/server/chunks/_1nlg4x_._.js +3 -0
  290. package/app/.next/server/chunks/_1x4dqzv._.js +3 -0
  291. package/app/.next/server/chunks/_1z0qbzc._.js +3 -0
  292. package/app/.next/server/chunks/_next-internal_server_app_api_bots_[id]_share-policy_route_actions_0x-p250.js +3 -0
  293. package/app/.next/server/chunks/_next-internal_server_app_api_shares_[shareRef]_revoke_route_actions_1cu5kah.js +3 -0
  294. package/app/.next/server/chunks/_next-internal_server_app_api_shares_route_actions_0wk7x1r.js +3 -0
  295. package/app/.next/server/chunks/_next-internal_server_app_api_v0_sessions_[ref]_shares_route_actions_11fh--7.js +3 -0
  296. package/app/.next/server/chunks/_next-internal_server_app_api_v0_shares_[shareRef]_revoke_route_actions_00rzyj9.js +3 -0
  297. package/app/.next/server/chunks/_next-internal_server_app_api_v0_shares_[shareRef]_route_actions_0i1t5qb.js +3 -0
  298. package/app/.next/server/chunks/_next-internal_server_app_api_v0_shares_current_route_actions_1w_bpas.js +3 -0
  299. package/app/.next/server/chunks/_next-internal_server_app_api_v0_shares_route_actions_1b38was.js +3 -0
  300. package/app/.next/server/chunks/lib_0v4d9w0._.js +339 -0
  301. package/app/.next/server/chunks/lib_0zzo6zb._.js +339 -0
  302. package/app/.next/server/chunks/lib_15adnlz._.js +2189 -0
  303. package/app/.next/server/chunks/lib_1_u7n-u._.js +339 -0
  304. package/app/.next/server/chunks/lib_1muhwn7._.js +339 -0
  305. package/app/.next/server/chunks/lib_1xnxg-q._.js +339 -0
  306. package/app/.next/server/chunks/lib_1zc7-gl._.js +2189 -0
  307. package/app/.next/server/chunks/lib_agent-api_ts_0iv52-o._.js +3 -0
  308. package/app/.next/server/chunks/{[root-of-the-server]__0izjfmr._.js → lib_db_ts_1ttuckb._.js} +3 -3
  309. package/app/.next/server/chunks/lib_service-api-http_ts_0xzqhny._.js +5 -5
  310. package/app/.next/server/chunks/lib_slack-runtime_ts_0fgsejy._.js +63 -0
  311. package/app/.next/server/chunks/ssr/{[root-of-the-server]__03186rx._.js → [root-of-the-server]__1smmfpx._.js} +1 -1
  312. package/app/.next/server/chunks/ssr/_0_fa0na._.js +3 -0
  313. package/app/.next/server/chunks/ssr/_1cvuhjt._.js +1 -1
  314. package/app/.next/server/chunks/ssr/_1i02yyi._.js +3 -0
  315. package/app/.next/server/chunks/ssr/_1n5mvo5._.js +1 -1
  316. package/app/.next/server/chunks/ssr/_1o94bnv._.js +1 -1
  317. package/app/.next/server/chunks/ssr/app_bots_[id]_config_page_tsx_1e0uue9._.js +1 -1
  318. package/app/.next/server/instrumentation.js +4 -0
  319. package/app/.next/server/middleware-build-manifest.js +3 -3
  320. package/app/.next/server/middleware.js +1 -1
  321. package/app/.next/server/pages/404.html +1 -1
  322. package/app/.next/server/pages/500.html +1 -1
  323. package/app/.next/server/server-reference-manifest.js +1 -1
  324. package/app/.next/server/server-reference-manifest.json +1 -1
  325. package/app/.next/static/chunks/{2a8bomryx66oj.css → 0jon21u-9j2aw.css} +1 -1
  326. package/app/.next/static/chunks/14k6cvywgknx2.js +3 -0
  327. package/app/.next/static/chunks/1r5tqd-7h1xjn.js +1 -0
  328. package/app/.next/static/chunks/22xbkclbkct3s.js +1 -0
  329. package/app/.next/static/chunks/2c953okoei6ip.js +1 -0
  330. package/app/.next/static/chunks/2t_2gf3xoxz_m.js +1 -0
  331. package/app/.next/static/chunks/34vnvo1qssbaj.js +1 -0
  332. package/app/BUILD_INFO.json +2 -2
  333. package/app/node_modules/@slack/logger/dist/index.js +94 -0
  334. package/app/node_modules/@slack/logger/package.json +43 -0
  335. package/app/node_modules/@slack/socket-mode/dist/package.json +67 -0
  336. package/app/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js +242 -0
  337. package/app/node_modules/@slack/socket-mode/dist/src/SocketModeClient.js +363 -0
  338. package/app/node_modules/@slack/socket-mode/dist/src/UnrecoverableSocketModeStartError.js +14 -0
  339. package/app/node_modules/@slack/socket-mode/dist/src/errors.js +68 -0
  340. package/app/node_modules/@slack/socket-mode/dist/src/index.js +13 -0
  341. package/app/node_modules/@slack/socket-mode/dist/src/logger.js +26 -0
  342. package/app/node_modules/@slack/socket-mode/package.json +67 -0
  343. package/app/node_modules/@slack/types/dist/block-kit/block-elements.js +4 -0
  344. package/app/node_modules/@slack/types/dist/block-kit/blocks.js +3 -0
  345. package/app/node_modules/@slack/types/dist/block-kit/composition-objects.js +4 -0
  346. package/app/node_modules/@slack/types/dist/block-kit/extensions.js +3 -0
  347. package/app/node_modules/@slack/types/dist/calls.js +6 -0
  348. package/app/node_modules/@slack/types/dist/chunk.js +3 -0
  349. package/app/node_modules/@slack/types/dist/dialog.js +3 -0
  350. package/app/node_modules/@slack/types/dist/events/app.js +3 -0
  351. package/app/node_modules/@slack/types/dist/events/assistant.js +3 -0
  352. package/app/node_modules/@slack/types/dist/events/call.js +3 -0
  353. package/app/node_modules/@slack/types/dist/events/channel.js +3 -0
  354. package/app/node_modules/@slack/types/dist/events/dnd.js +3 -0
  355. package/app/node_modules/@slack/types/dist/events/email.js +3 -0
  356. package/app/node_modules/@slack/types/dist/events/emoji.js +3 -0
  357. package/app/node_modules/@slack/types/dist/events/file.js +4 -0
  358. package/app/node_modules/@slack/types/dist/events/function.js +3 -0
  359. package/app/node_modules/@slack/types/dist/events/grid-migration.js +3 -0
  360. package/app/node_modules/@slack/types/dist/events/group.js +3 -0
  361. package/app/node_modules/@slack/types/dist/events/im.js +3 -0
  362. package/app/node_modules/@slack/types/dist/events/index.js +43 -0
  363. package/app/node_modules/@slack/types/dist/events/invite.js +3 -0
  364. package/app/node_modules/@slack/types/dist/events/link-shared.js +3 -0
  365. package/app/node_modules/@slack/types/dist/events/member.js +3 -0
  366. package/app/node_modules/@slack/types/dist/events/message-metadata.js +3 -0
  367. package/app/node_modules/@slack/types/dist/events/message.js +3 -0
  368. package/app/node_modules/@slack/types/dist/events/pin.js +3 -0
  369. package/app/node_modules/@slack/types/dist/events/reaction.js +3 -0
  370. package/app/node_modules/@slack/types/dist/events/shared-channel.js +3 -0
  371. package/app/node_modules/@slack/types/dist/events/star.js +3 -0
  372. package/app/node_modules/@slack/types/dist/events/steps-from-apps.js +3 -0
  373. package/app/node_modules/@slack/types/dist/events/subteam.js +3 -0
  374. package/app/node_modules/@slack/types/dist/events/team.js +3 -0
  375. package/app/node_modules/@slack/types/dist/events/token.js +3 -0
  376. package/app/node_modules/@slack/types/dist/events/user.js +3 -0
  377. package/app/node_modules/@slack/types/dist/index.js +28 -0
  378. package/app/node_modules/@slack/types/dist/message-attachments.js +3 -0
  379. package/app/node_modules/@slack/types/dist/message-metadata.js +27 -0
  380. package/app/node_modules/@slack/types/dist/views.js +3 -0
  381. package/app/node_modules/@slack/types/package.json +47 -0
  382. package/app/node_modules/@slack/web-api/dist/WebClient.js +818 -0
  383. package/app/node_modules/@slack/web-api/dist/chat-stream.js +178 -0
  384. package/app/node_modules/@slack/web-api/dist/errors.js +80 -0
  385. package/app/node_modules/@slack/web-api/dist/file-upload.js +360 -0
  386. package/app/node_modules/@slack/web-api/dist/helpers.js +14 -0
  387. package/app/node_modules/@slack/web-api/dist/index.js +39 -0
  388. package/app/node_modules/@slack/web-api/dist/instrument.js +87 -0
  389. package/app/node_modules/@slack/web-api/dist/logger.js +29 -0
  390. package/app/node_modules/@slack/web-api/dist/methods.js +1647 -0
  391. package/app/node_modules/@slack/web-api/dist/retry-policies.js +34 -0
  392. package/app/node_modules/@slack/web-api/dist/types/helpers.js +3 -0
  393. package/app/node_modules/@slack/web-api/dist/types/request/admin/analytics.js +3 -0
  394. package/app/node_modules/@slack/web-api/dist/types/request/admin/apps.js +3 -0
  395. package/app/node_modules/@slack/web-api/dist/types/request/admin/auth.js +3 -0
  396. package/app/node_modules/@slack/web-api/dist/types/request/admin/barriers.js +3 -0
  397. package/app/node_modules/@slack/web-api/dist/types/request/admin/conversations.js +3 -0
  398. package/app/node_modules/@slack/web-api/dist/types/request/admin/emoji.js +3 -0
  399. package/app/node_modules/@slack/web-api/dist/types/request/admin/functions.js +3 -0
  400. package/app/node_modules/@slack/web-api/dist/types/request/admin/inviteRequests.js +3 -0
  401. package/app/node_modules/@slack/web-api/dist/types/request/admin/roles.js +3 -0
  402. package/app/node_modules/@slack/web-api/dist/types/request/admin/teams.js +3 -0
  403. package/app/node_modules/@slack/web-api/dist/types/request/admin/usergroups.js +3 -0
  404. package/app/node_modules/@slack/web-api/dist/types/request/admin/users.js +3 -0
  405. package/app/node_modules/@slack/web-api/dist/types/request/admin/workflows.js +3 -0
  406. package/app/node_modules/@slack/web-api/dist/types/request/api.js +3 -0
  407. package/app/node_modules/@slack/web-api/dist/types/request/apps.js +3 -0
  408. package/app/node_modules/@slack/web-api/dist/types/request/assistant.js +3 -0
  409. package/app/node_modules/@slack/web-api/dist/types/request/auth.js +3 -0
  410. package/app/node_modules/@slack/web-api/dist/types/request/bookmarks.js +3 -0
  411. package/app/node_modules/@slack/web-api/dist/types/request/bots.js +3 -0
  412. package/app/node_modules/@slack/web-api/dist/types/request/calls.js +3 -0
  413. package/app/node_modules/@slack/web-api/dist/types/request/canvas.js +3 -0
  414. package/app/node_modules/@slack/web-api/dist/types/request/chat.js +3 -0
  415. package/app/node_modules/@slack/web-api/dist/types/request/common.js +4 -0
  416. package/app/node_modules/@slack/web-api/dist/types/request/conversations.js +3 -0
  417. package/app/node_modules/@slack/web-api/dist/types/request/dialog.js +3 -0
  418. package/app/node_modules/@slack/web-api/dist/types/request/dnd.js +3 -0
  419. package/app/node_modules/@slack/web-api/dist/types/request/emoji.js +3 -0
  420. package/app/node_modules/@slack/web-api/dist/types/request/entity.js +3 -0
  421. package/app/node_modules/@slack/web-api/dist/types/request/files.js +3 -0
  422. package/app/node_modules/@slack/web-api/dist/types/request/functions.js +3 -0
  423. package/app/node_modules/@slack/web-api/dist/types/request/index.js +3 -0
  424. package/app/node_modules/@slack/web-api/dist/types/request/manifest.js +3 -0
  425. package/app/node_modules/@slack/web-api/dist/types/request/migration.js +3 -0
  426. package/app/node_modules/@slack/web-api/dist/types/request/oauth.js +3 -0
  427. package/app/node_modules/@slack/web-api/dist/types/request/openid.js +3 -0
  428. package/app/node_modules/@slack/web-api/dist/types/request/pins.js +3 -0
  429. package/app/node_modules/@slack/web-api/dist/types/request/reactions.js +3 -0
  430. package/app/node_modules/@slack/web-api/dist/types/request/reminders.js +3 -0
  431. package/app/node_modules/@slack/web-api/dist/types/request/rtm.js +3 -0
  432. package/app/node_modules/@slack/web-api/dist/types/request/search.js +3 -0
  433. package/app/node_modules/@slack/web-api/dist/types/request/slackLists.js +3 -0
  434. package/app/node_modules/@slack/web-api/dist/types/request/stars.js +3 -0
  435. package/app/node_modules/@slack/web-api/dist/types/request/team.js +3 -0
  436. package/app/node_modules/@slack/web-api/dist/types/request/tooling.js +3 -0
  437. package/app/node_modules/@slack/web-api/dist/types/request/usergroups.js +3 -0
  438. package/app/node_modules/@slack/web-api/dist/types/request/users.js +3 -0
  439. package/app/node_modules/@slack/web-api/dist/types/request/views.js +3 -0
  440. package/app/node_modules/@slack/web-api/dist/types/request/workflows.js +3 -0
  441. package/app/node_modules/@slack/web-api/dist/types/response/AdminAnalyticsGetFileResponse.js +3 -0
  442. package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsActivitiesListResponse.js +11 -0
  443. package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsApproveResponse.js +11 -0
  444. package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsApprovedListResponse.js +11 -0
  445. package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsClearResolutionResponse.js +11 -0
  446. package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsConfigLookupResponse.js +11 -0
  447. package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsConfigSetResponse.js +11 -0
  448. package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsRequestsCancelResponse.js +11 -0
  449. package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsRequestsListResponse.js +11 -0
  450. package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsRestrictResponse.js +11 -0
  451. package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsRestrictedListResponse.js +11 -0
  452. package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsUninstallResponse.js +11 -0
  453. package/app/node_modules/@slack/web-api/dist/types/response/AdminAuthPolicyAssignEntitiesResponse.js +11 -0
  454. package/app/node_modules/@slack/web-api/dist/types/response/AdminAuthPolicyGetEntitiesResponse.js +11 -0
  455. package/app/node_modules/@slack/web-api/dist/types/response/AdminAuthPolicyRemoveEntitiesResponse.js +11 -0
  456. package/app/node_modules/@slack/web-api/dist/types/response/AdminBarriersCreateResponse.js +11 -0
  457. package/app/node_modules/@slack/web-api/dist/types/response/AdminBarriersDeleteResponse.js +11 -0
  458. package/app/node_modules/@slack/web-api/dist/types/response/AdminBarriersListResponse.js +11 -0
  459. package/app/node_modules/@slack/web-api/dist/types/response/AdminBarriersUpdateResponse.js +11 -0
  460. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsArchiveResponse.js +11 -0
  461. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsBulkArchiveResponse.js +11 -0
  462. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsBulkDeleteResponse.js +11 -0
  463. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsBulkMoveResponse.js +11 -0
  464. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsConvertToPrivateResponse.js +11 -0
  465. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsConvertToPublicResponse.js +11 -0
  466. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsCreateResponse.js +11 -0
  467. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsDeleteResponse.js +11 -0
  468. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsDisconnectSharedResponse.js +11 -0
  469. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.js +11 -0
  470. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsGetConversationPrefsResponse.js +11 -0
  471. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsGetCustomRetentionResponse.js +11 -0
  472. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsGetTeamsResponse.js +11 -0
  473. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsInviteResponse.js +11 -0
  474. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsLookupResponse.js +11 -0
  475. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsRemoveCustomRetentionResponse.js +11 -0
  476. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsRenameResponse.js +11 -0
  477. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsRestrictAccessAddGroupResponse.js +11 -0
  478. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsRestrictAccessListGroupsResponse.js +11 -0
  479. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.js +11 -0
  480. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsSearchResponse.js +11 -0
  481. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsSetConversationPrefsResponse.js +11 -0
  482. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsSetCustomRetentionResponse.js +11 -0
  483. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsSetTeamsResponse.js +11 -0
  484. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsUnarchiveResponse.js +11 -0
  485. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsWhitelistAddResponse.js +11 -0
  486. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.js +11 -0
  487. package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsWhitelistRemoveResponse.js +11 -0
  488. package/app/node_modules/@slack/web-api/dist/types/response/AdminEmojiAddAliasResponse.js +11 -0
  489. package/app/node_modules/@slack/web-api/dist/types/response/AdminEmojiAddResponse.js +11 -0
  490. package/app/node_modules/@slack/web-api/dist/types/response/AdminEmojiListResponse.js +11 -0
  491. package/app/node_modules/@slack/web-api/dist/types/response/AdminEmojiRemoveResponse.js +11 -0
  492. package/app/node_modules/@slack/web-api/dist/types/response/AdminEmojiRenameResponse.js +11 -0
  493. package/app/node_modules/@slack/web-api/dist/types/response/AdminFunctionsListResponse.js +11 -0
  494. package/app/node_modules/@slack/web-api/dist/types/response/AdminFunctionsPermissionsLookupResponse.js +11 -0
  495. package/app/node_modules/@slack/web-api/dist/types/response/AdminFunctionsPermissionsSetResponse.js +11 -0
  496. package/app/node_modules/@slack/web-api/dist/types/response/AdminInviteRequestsApproveResponse.js +11 -0
  497. package/app/node_modules/@slack/web-api/dist/types/response/AdminInviteRequestsApprovedListResponse.js +11 -0
  498. package/app/node_modules/@slack/web-api/dist/types/response/AdminInviteRequestsDeniedListResponse.js +11 -0
  499. package/app/node_modules/@slack/web-api/dist/types/response/AdminInviteRequestsDenyResponse.js +11 -0
  500. package/app/node_modules/@slack/web-api/dist/types/response/AdminInviteRequestsListResponse.js +11 -0
  501. package/app/node_modules/@slack/web-api/dist/types/response/AdminRolesAddAssignmentsResponse.js +11 -0
  502. package/app/node_modules/@slack/web-api/dist/types/response/AdminRolesListAssignmentsResponse.js +11 -0
  503. package/app/node_modules/@slack/web-api/dist/types/response/AdminRolesRemoveAssignmentsResponse.js +11 -0
  504. package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsAdminsListResponse.js +11 -0
  505. package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsCreateResponse.js +11 -0
  506. package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsListResponse.js +11 -0
  507. package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsOwnersListResponse.js +11 -0
  508. package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsSettingsInfoResponse.js +11 -0
  509. package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.js +11 -0
  510. package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsSettingsSetDescriptionResponse.js +11 -0
  511. package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.js +11 -0
  512. package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsSettingsSetIconResponse.js +11 -0
  513. package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsSettingsSetNameResponse.js +11 -0
  514. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsergroupsAddChannelsResponse.js +11 -0
  515. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsergroupsAddTeamsResponse.js +11 -0
  516. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsergroupsListChannelsResponse.js +11 -0
  517. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsergroupsRemoveChannelsResponse.js +11 -0
  518. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersAssignResponse.js +11 -0
  519. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersInviteResponse.js +11 -0
  520. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersListResponse.js +11 -0
  521. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersRemoveResponse.js +11 -0
  522. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSessionClearSettingsResponse.js +11 -0
  523. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSessionGetSettingsResponse.js +11 -0
  524. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSessionInvalidateResponse.js +11 -0
  525. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSessionListResponse.js +11 -0
  526. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSessionResetBulkResponse.js +11 -0
  527. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSessionResetResponse.js +11 -0
  528. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSessionSetSettingsResponse.js +11 -0
  529. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSetAdminResponse.js +11 -0
  530. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSetExpirationResponse.js +11 -0
  531. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSetOwnerResponse.js +11 -0
  532. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSetRegularResponse.js +11 -0
  533. package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersUnsupportedVersionsExportResponse.js +11 -0
  534. package/app/node_modules/@slack/web-api/dist/types/response/AdminWorkflowsCollaboratorsAddResponse.js +11 -0
  535. package/app/node_modules/@slack/web-api/dist/types/response/AdminWorkflowsCollaboratorsRemoveResponse.js +11 -0
  536. package/app/node_modules/@slack/web-api/dist/types/response/AdminWorkflowsPermissionsLookupResponse.js +11 -0
  537. package/app/node_modules/@slack/web-api/dist/types/response/AdminWorkflowsSearchResponse.js +11 -0
  538. package/app/node_modules/@slack/web-api/dist/types/response/AdminWorkflowsUnpublishResponse.js +11 -0
  539. package/app/node_modules/@slack/web-api/dist/types/response/ApiTestResponse.js +11 -0
  540. package/app/node_modules/@slack/web-api/dist/types/response/AppsConnectionsOpenResponse.js +11 -0
  541. package/app/node_modules/@slack/web-api/dist/types/response/AppsEventAuthorizationsListResponse.js +11 -0
  542. package/app/node_modules/@slack/web-api/dist/types/response/AppsManifestCreateResponse.js +11 -0
  543. package/app/node_modules/@slack/web-api/dist/types/response/AppsManifestDeleteResponse.js +11 -0
  544. package/app/node_modules/@slack/web-api/dist/types/response/AppsManifestExportResponse.js +11 -0
  545. package/app/node_modules/@slack/web-api/dist/types/response/AppsManifestUpdateResponse.js +11 -0
  546. package/app/node_modules/@slack/web-api/dist/types/response/AppsManifestValidateResponse.js +11 -0
  547. package/app/node_modules/@slack/web-api/dist/types/response/AppsPermissionsInfoResponse.js +11 -0
  548. package/app/node_modules/@slack/web-api/dist/types/response/AppsPermissionsRequestResponse.js +11 -0
  549. package/app/node_modules/@slack/web-api/dist/types/response/AppsPermissionsResourcesListResponse.js +11 -0
  550. package/app/node_modules/@slack/web-api/dist/types/response/AppsPermissionsScopesListResponse.js +11 -0
  551. package/app/node_modules/@slack/web-api/dist/types/response/AppsPermissionsUsersListResponse.js +11 -0
  552. package/app/node_modules/@slack/web-api/dist/types/response/AppsPermissionsUsersRequestResponse.js +11 -0
  553. package/app/node_modules/@slack/web-api/dist/types/response/AppsUninstallResponse.js +11 -0
  554. package/app/node_modules/@slack/web-api/dist/types/response/AppsUserConnectionUpdateResponse.js +11 -0
  555. package/app/node_modules/@slack/web-api/dist/types/response/AssistantThreadsSetStatusResponse.js +11 -0
  556. package/app/node_modules/@slack/web-api/dist/types/response/AssistantThreadsSetSuggestedPromptsResponse.js +11 -0
  557. package/app/node_modules/@slack/web-api/dist/types/response/AssistantThreadsSetTitleResponse.js +11 -0
  558. package/app/node_modules/@slack/web-api/dist/types/response/AuthRevokeResponse.js +11 -0
  559. package/app/node_modules/@slack/web-api/dist/types/response/AuthTeamsListResponse.js +11 -0
  560. package/app/node_modules/@slack/web-api/dist/types/response/AuthTestResponse.js +11 -0
  561. package/app/node_modules/@slack/web-api/dist/types/response/BookmarksAddResponse.js +11 -0
  562. package/app/node_modules/@slack/web-api/dist/types/response/BookmarksEditResponse.js +11 -0
  563. package/app/node_modules/@slack/web-api/dist/types/response/BookmarksListResponse.js +11 -0
  564. package/app/node_modules/@slack/web-api/dist/types/response/BookmarksRemoveResponse.js +11 -0
  565. package/app/node_modules/@slack/web-api/dist/types/response/BotsInfoResponse.js +11 -0
  566. package/app/node_modules/@slack/web-api/dist/types/response/CallsAddResponse.js +11 -0
  567. package/app/node_modules/@slack/web-api/dist/types/response/CallsEndResponse.js +11 -0
  568. package/app/node_modules/@slack/web-api/dist/types/response/CallsInfoResponse.js +11 -0
  569. package/app/node_modules/@slack/web-api/dist/types/response/CallsParticipantsAddResponse.js +11 -0
  570. package/app/node_modules/@slack/web-api/dist/types/response/CallsParticipantsRemoveResponse.js +11 -0
  571. package/app/node_modules/@slack/web-api/dist/types/response/CallsUpdateResponse.js +11 -0
  572. package/app/node_modules/@slack/web-api/dist/types/response/CanvasesAccessDeleteResponse.js +11 -0
  573. package/app/node_modules/@slack/web-api/dist/types/response/CanvasesAccessSetResponse.js +11 -0
  574. package/app/node_modules/@slack/web-api/dist/types/response/CanvasesCreateResponse.js +11 -0
  575. package/app/node_modules/@slack/web-api/dist/types/response/CanvasesDeleteResponse.js +11 -0
  576. package/app/node_modules/@slack/web-api/dist/types/response/CanvasesEditResponse.js +11 -0
  577. package/app/node_modules/@slack/web-api/dist/types/response/CanvasesSectionsLookupResponse.js +11 -0
  578. package/app/node_modules/@slack/web-api/dist/types/response/ChannelsArchiveResponse.js +11 -0
  579. package/app/node_modules/@slack/web-api/dist/types/response/ChannelsCreateResponse.js +11 -0
  580. package/app/node_modules/@slack/web-api/dist/types/response/ChannelsHistoryResponse.js +11 -0
  581. package/app/node_modules/@slack/web-api/dist/types/response/ChannelsInfoResponse.js +11 -0
  582. package/app/node_modules/@slack/web-api/dist/types/response/ChannelsInviteResponse.js +11 -0
  583. package/app/node_modules/@slack/web-api/dist/types/response/ChannelsJoinResponse.js +11 -0
  584. package/app/node_modules/@slack/web-api/dist/types/response/ChannelsKickResponse.js +11 -0
  585. package/app/node_modules/@slack/web-api/dist/types/response/ChannelsLeaveResponse.js +11 -0
  586. package/app/node_modules/@slack/web-api/dist/types/response/ChannelsListResponse.js +11 -0
  587. package/app/node_modules/@slack/web-api/dist/types/response/ChannelsMarkResponse.js +11 -0
  588. package/app/node_modules/@slack/web-api/dist/types/response/ChannelsRenameResponse.js +11 -0
  589. package/app/node_modules/@slack/web-api/dist/types/response/ChannelsRepliesResponse.js +11 -0
  590. package/app/node_modules/@slack/web-api/dist/types/response/ChannelsSetPurposeResponse.js +11 -0
  591. package/app/node_modules/@slack/web-api/dist/types/response/ChannelsSetTopicResponse.js +11 -0
  592. package/app/node_modules/@slack/web-api/dist/types/response/ChannelsUnarchiveResponse.js +11 -0
  593. package/app/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.js +3 -0
  594. package/app/node_modules/@slack/web-api/dist/types/response/ChatDeleteResponse.js +11 -0
  595. package/app/node_modules/@slack/web-api/dist/types/response/ChatDeleteScheduledMessageResponse.js +11 -0
  596. package/app/node_modules/@slack/web-api/dist/types/response/ChatGetPermalinkResponse.js +11 -0
  597. package/app/node_modules/@slack/web-api/dist/types/response/ChatMeMessageResponse.js +11 -0
  598. package/app/node_modules/@slack/web-api/dist/types/response/ChatPostEphemeralResponse.js +11 -0
  599. package/app/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.js +67 -0
  600. package/app/node_modules/@slack/web-api/dist/types/response/ChatScheduleMessageResponse.js +48 -0
  601. package/app/node_modules/@slack/web-api/dist/types/response/ChatScheduledMessagesListResponse.js +11 -0
  602. package/app/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.js +3 -0
  603. package/app/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.js +3 -0
  604. package/app/node_modules/@slack/web-api/dist/types/response/ChatUnfurlResponse.js +11 -0
  605. package/app/node_modules/@slack/web-api/dist/types/response/ChatUpdateResponse.js +48 -0
  606. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsAcceptSharedInviteResponse.js +11 -0
  607. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsApproveSharedInviteResponse.js +11 -0
  608. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsArchiveResponse.js +11 -0
  609. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsCanvasesCreateResponse.js +11 -0
  610. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsCloseResponse.js +11 -0
  611. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsCreateResponse.js +11 -0
  612. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsDeclineSharedInviteResponse.js +11 -0
  613. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsExternalInvitePermissionsSetResponse.js +11 -0
  614. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.js +67 -0
  615. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsInfoResponse.js +11 -0
  616. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsInviteResponse.js +11 -0
  617. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsInviteSharedResponse.js +11 -0
  618. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsJoinResponse.js +11 -0
  619. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsKickResponse.js +11 -0
  620. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsLeaveResponse.js +11 -0
  621. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsListConnectInvitesResponse.js +11 -0
  622. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsListResponse.js +11 -0
  623. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsMarkResponse.js +11 -0
  624. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsMembersResponse.js +11 -0
  625. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsOpenResponse.js +48 -0
  626. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsRenameResponse.js +11 -0
  627. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.js +67 -0
  628. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteApproveResponse.js +11 -0
  629. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteDenyResponse.js +11 -0
  630. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.js +11 -0
  631. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsSetPurposeResponse.js +11 -0
  632. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsSetTopicResponse.js +11 -0
  633. package/app/node_modules/@slack/web-api/dist/types/response/ConversationsUnarchiveResponse.js +11 -0
  634. package/app/node_modules/@slack/web-api/dist/types/response/DialogOpenResponse.js +11 -0
  635. package/app/node_modules/@slack/web-api/dist/types/response/DndEndDndResponse.js +11 -0
  636. package/app/node_modules/@slack/web-api/dist/types/response/DndEndSnoozeResponse.js +11 -0
  637. package/app/node_modules/@slack/web-api/dist/types/response/DndInfoResponse.js +11 -0
  638. package/app/node_modules/@slack/web-api/dist/types/response/DndSetSnoozeResponse.js +11 -0
  639. package/app/node_modules/@slack/web-api/dist/types/response/DndTeamInfoResponse.js +11 -0
  640. package/app/node_modules/@slack/web-api/dist/types/response/EmojiListResponse.js +11 -0
  641. package/app/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.js +11 -0
  642. package/app/node_modules/@slack/web-api/dist/types/response/FilesCommentsAddResponse.js +11 -0
  643. package/app/node_modules/@slack/web-api/dist/types/response/FilesCommentsDeleteResponse.js +11 -0
  644. package/app/node_modules/@slack/web-api/dist/types/response/FilesCommentsEditResponse.js +11 -0
  645. package/app/node_modules/@slack/web-api/dist/types/response/FilesCompleteUploadExternalResponse.js +11 -0
  646. package/app/node_modules/@slack/web-api/dist/types/response/FilesDeleteResponse.js +11 -0
  647. package/app/node_modules/@slack/web-api/dist/types/response/FilesGetUploadURLExternalResponse.js +11 -0
  648. package/app/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.js +37 -0
  649. package/app/node_modules/@slack/web-api/dist/types/response/FilesListResponse.js +37 -0
  650. package/app/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.js +37 -0
  651. package/app/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.js +37 -0
  652. package/app/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.js +37 -0
  653. package/app/node_modules/@slack/web-api/dist/types/response/FilesRemoteRemoveResponse.js +11 -0
  654. package/app/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.js +37 -0
  655. package/app/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.js +37 -0
  656. package/app/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.js +37 -0
  657. package/app/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.js +37 -0
  658. package/app/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.js +37 -0
  659. package/app/node_modules/@slack/web-api/dist/types/response/FunctionsCompleteErrorResponse.js +11 -0
  660. package/app/node_modules/@slack/web-api/dist/types/response/FunctionsCompleteSuccessResponse.js +11 -0
  661. package/app/node_modules/@slack/web-api/dist/types/response/GroupsArchiveResponse.js +11 -0
  662. package/app/node_modules/@slack/web-api/dist/types/response/GroupsCloseResponse.js +11 -0
  663. package/app/node_modules/@slack/web-api/dist/types/response/GroupsCreateChildResponse.js +11 -0
  664. package/app/node_modules/@slack/web-api/dist/types/response/GroupsCreateResponse.js +11 -0
  665. package/app/node_modules/@slack/web-api/dist/types/response/GroupsHistoryResponse.js +11 -0
  666. package/app/node_modules/@slack/web-api/dist/types/response/GroupsInfoResponse.js +11 -0
  667. package/app/node_modules/@slack/web-api/dist/types/response/GroupsInviteResponse.js +11 -0
  668. package/app/node_modules/@slack/web-api/dist/types/response/GroupsKickResponse.js +11 -0
  669. package/app/node_modules/@slack/web-api/dist/types/response/GroupsLeaveResponse.js +11 -0
  670. package/app/node_modules/@slack/web-api/dist/types/response/GroupsListResponse.js +11 -0
  671. package/app/node_modules/@slack/web-api/dist/types/response/GroupsMarkResponse.js +11 -0
  672. package/app/node_modules/@slack/web-api/dist/types/response/GroupsOpenResponse.js +11 -0
  673. package/app/node_modules/@slack/web-api/dist/types/response/GroupsRenameResponse.js +11 -0
  674. package/app/node_modules/@slack/web-api/dist/types/response/GroupsRepliesResponse.js +11 -0
  675. package/app/node_modules/@slack/web-api/dist/types/response/GroupsSetPurposeResponse.js +11 -0
  676. package/app/node_modules/@slack/web-api/dist/types/response/GroupsSetTopicResponse.js +11 -0
  677. package/app/node_modules/@slack/web-api/dist/types/response/GroupsUnarchiveResponse.js +11 -0
  678. package/app/node_modules/@slack/web-api/dist/types/response/ImCloseResponse.js +11 -0
  679. package/app/node_modules/@slack/web-api/dist/types/response/ImHistoryResponse.js +11 -0
  680. package/app/node_modules/@slack/web-api/dist/types/response/ImListResponse.js +11 -0
  681. package/app/node_modules/@slack/web-api/dist/types/response/ImMarkResponse.js +11 -0
  682. package/app/node_modules/@slack/web-api/dist/types/response/ImOpenResponse.js +11 -0
  683. package/app/node_modules/@slack/web-api/dist/types/response/ImRepliesResponse.js +11 -0
  684. package/app/node_modules/@slack/web-api/dist/types/response/MigrationExchangeResponse.js +11 -0
  685. package/app/node_modules/@slack/web-api/dist/types/response/MpimCloseResponse.js +11 -0
  686. package/app/node_modules/@slack/web-api/dist/types/response/MpimHistoryResponse.js +11 -0
  687. package/app/node_modules/@slack/web-api/dist/types/response/MpimListResponse.js +11 -0
  688. package/app/node_modules/@slack/web-api/dist/types/response/MpimMarkResponse.js +11 -0
  689. package/app/node_modules/@slack/web-api/dist/types/response/MpimOpenResponse.js +11 -0
  690. package/app/node_modules/@slack/web-api/dist/types/response/MpimRepliesResponse.js +11 -0
  691. package/app/node_modules/@slack/web-api/dist/types/response/OauthAccessResponse.js +11 -0
  692. package/app/node_modules/@slack/web-api/dist/types/response/OauthTokenResponse.js +11 -0
  693. package/app/node_modules/@slack/web-api/dist/types/response/OauthV2AccessResponse.js +11 -0
  694. package/app/node_modules/@slack/web-api/dist/types/response/OauthV2ExchangeResponse.js +11 -0
  695. package/app/node_modules/@slack/web-api/dist/types/response/OpenIDConnectTokenResponse.js +11 -0
  696. package/app/node_modules/@slack/web-api/dist/types/response/OpenIDConnectUserInfoResponse.js +11 -0
  697. package/app/node_modules/@slack/web-api/dist/types/response/PinsAddResponse.js +11 -0
  698. package/app/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js +37 -0
  699. package/app/node_modules/@slack/web-api/dist/types/response/PinsRemoveResponse.js +11 -0
  700. package/app/node_modules/@slack/web-api/dist/types/response/ReactionsAddResponse.js +11 -0
  701. package/app/node_modules/@slack/web-api/dist/types/response/ReactionsGetResponse.js +48 -0
  702. package/app/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.js +67 -0
  703. package/app/node_modules/@slack/web-api/dist/types/response/ReactionsRemoveResponse.js +11 -0
  704. package/app/node_modules/@slack/web-api/dist/types/response/RemindersAddResponse.js +11 -0
  705. package/app/node_modules/@slack/web-api/dist/types/response/RemindersCompleteResponse.js +11 -0
  706. package/app/node_modules/@slack/web-api/dist/types/response/RemindersDeleteResponse.js +11 -0
  707. package/app/node_modules/@slack/web-api/dist/types/response/RemindersInfoResponse.js +11 -0
  708. package/app/node_modules/@slack/web-api/dist/types/response/RemindersListResponse.js +11 -0
  709. package/app/node_modules/@slack/web-api/dist/types/response/RtmConnectResponse.js +11 -0
  710. package/app/node_modules/@slack/web-api/dist/types/response/RtmStartResponse.js +77 -0
  711. package/app/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js +82 -0
  712. package/app/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js +63 -0
  713. package/app/node_modules/@slack/web-api/dist/types/response/SearchMessagesResponse.js +67 -0
  714. package/app/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js +3 -0
  715. package/app/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js +3 -0
  716. package/app/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js +3 -0
  717. package/app/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js +3 -0
  718. package/app/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js +3 -0
  719. package/app/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js +3 -0
  720. package/app/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js +3 -0
  721. package/app/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js +3 -0
  722. package/app/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js +3 -0
  723. package/app/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js +3 -0
  724. package/app/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js +3 -0
  725. package/app/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js +3 -0
  726. package/app/node_modules/@slack/web-api/dist/types/response/StarsAddResponse.js +11 -0
  727. package/app/node_modules/@slack/web-api/dist/types/response/StarsListResponse.js +11 -0
  728. package/app/node_modules/@slack/web-api/dist/types/response/StarsRemoveResponse.js +11 -0
  729. package/app/node_modules/@slack/web-api/dist/types/response/TeamAccessLogsResponse.js +11 -0
  730. package/app/node_modules/@slack/web-api/dist/types/response/TeamBillableInfoResponse.js +11 -0
  731. package/app/node_modules/@slack/web-api/dist/types/response/TeamBillingInfoResponse.js +11 -0
  732. package/app/node_modules/@slack/web-api/dist/types/response/TeamExternalTeamsDisconnectResponse.js +11 -0
  733. package/app/node_modules/@slack/web-api/dist/types/response/TeamExternalTeamsListResponse.js +11 -0
  734. package/app/node_modules/@slack/web-api/dist/types/response/TeamInfoResponse.js +11 -0
  735. package/app/node_modules/@slack/web-api/dist/types/response/TeamIntegrationLogsResponse.js +11 -0
  736. package/app/node_modules/@slack/web-api/dist/types/response/TeamPreferencesListResponse.js +11 -0
  737. package/app/node_modules/@slack/web-api/dist/types/response/TeamProfileGetResponse.js +11 -0
  738. package/app/node_modules/@slack/web-api/dist/types/response/ToolingTokensRotateResponse.js +11 -0
  739. package/app/node_modules/@slack/web-api/dist/types/response/UsergroupsCreateResponse.js +11 -0
  740. package/app/node_modules/@slack/web-api/dist/types/response/UsergroupsDisableResponse.js +11 -0
  741. package/app/node_modules/@slack/web-api/dist/types/response/UsergroupsEnableResponse.js +11 -0
  742. package/app/node_modules/@slack/web-api/dist/types/response/UsergroupsListResponse.js +11 -0
  743. package/app/node_modules/@slack/web-api/dist/types/response/UsergroupsUpdateResponse.js +11 -0
  744. package/app/node_modules/@slack/web-api/dist/types/response/UsergroupsUsersListResponse.js +11 -0
  745. package/app/node_modules/@slack/web-api/dist/types/response/UsergroupsUsersUpdateResponse.js +11 -0
  746. package/app/node_modules/@slack/web-api/dist/types/response/UsersConversationsResponse.js +11 -0
  747. package/app/node_modules/@slack/web-api/dist/types/response/UsersDeletePhotoResponse.js +11 -0
  748. package/app/node_modules/@slack/web-api/dist/types/response/UsersDiscoverableContactsLookupResponse.js +11 -0
  749. package/app/node_modules/@slack/web-api/dist/types/response/UsersGetPresenceResponse.js +11 -0
  750. package/app/node_modules/@slack/web-api/dist/types/response/UsersIdentityResponse.js +11 -0
  751. package/app/node_modules/@slack/web-api/dist/types/response/UsersInfoResponse.js +11 -0
  752. package/app/node_modules/@slack/web-api/dist/types/response/UsersListResponse.js +11 -0
  753. package/app/node_modules/@slack/web-api/dist/types/response/UsersLookupByEmailResponse.js +11 -0
  754. package/app/node_modules/@slack/web-api/dist/types/response/UsersProfileGetResponse.js +11 -0
  755. package/app/node_modules/@slack/web-api/dist/types/response/UsersProfileSetResponse.js +11 -0
  756. package/app/node_modules/@slack/web-api/dist/types/response/UsersSetActiveResponse.js +11 -0
  757. package/app/node_modules/@slack/web-api/dist/types/response/UsersSetPhotoResponse.js +11 -0
  758. package/app/node_modules/@slack/web-api/dist/types/response/UsersSetPresenceResponse.js +11 -0
  759. package/app/node_modules/@slack/web-api/dist/types/response/ViewsOpenResponse.js +31 -0
  760. package/app/node_modules/@slack/web-api/dist/types/response/ViewsPublishResponse.js +31 -0
  761. package/app/node_modules/@slack/web-api/dist/types/response/ViewsPushResponse.js +31 -0
  762. package/app/node_modules/@slack/web-api/dist/types/response/ViewsUpdateResponse.js +31 -0
  763. package/app/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js +3 -0
  764. package/app/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js +3 -0
  765. package/app/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js +3 -0
  766. package/app/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js +3 -0
  767. package/app/node_modules/@slack/web-api/dist/types/response/WorkflowsStepCompletedResponse.js +11 -0
  768. package/app/node_modules/@slack/web-api/dist/types/response/WorkflowsStepFailedResponse.js +11 -0
  769. package/app/node_modules/@slack/web-api/dist/types/response/WorkflowsUpdateStepResponse.js +11 -0
  770. package/app/node_modules/@slack/web-api/dist/types/response/index.js +3 -0
  771. package/app/node_modules/@slack/web-api/package.json +75 -0
  772. package/app/node_modules/agent-base/dist/src/index.js +203 -0
  773. package/app/node_modules/agent-base/dist/src/promisify.js +18 -0
  774. package/app/node_modules/agent-base/package.json +64 -0
  775. package/app/node_modules/asynckit/index.js +6 -0
  776. package/app/node_modules/asynckit/lib/abort.js +29 -0
  777. package/app/node_modules/asynckit/lib/async.js +34 -0
  778. package/app/node_modules/asynckit/lib/defer.js +26 -0
  779. package/app/node_modules/asynckit/lib/iterate.js +75 -0
  780. package/app/node_modules/asynckit/lib/state.js +37 -0
  781. package/app/node_modules/asynckit/lib/terminator.js +29 -0
  782. package/app/node_modules/asynckit/package.json +63 -0
  783. package/app/node_modules/asynckit/parallel.js +43 -0
  784. package/app/node_modules/asynckit/serial.js +17 -0
  785. package/app/node_modules/asynckit/serialOrdered.js +75 -0
  786. package/app/node_modules/axios/dist/node/axios.cjs +6808 -0
  787. package/app/node_modules/axios/package.json +203 -0
  788. package/app/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  789. package/app/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  790. package/app/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  791. package/app/node_modules/call-bind-apply-helpers/index.js +15 -0
  792. package/app/node_modules/call-bind-apply-helpers/package.json +85 -0
  793. package/app/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  794. package/app/node_modules/combined-stream/lib/combined_stream.js +208 -0
  795. package/app/node_modules/combined-stream/package.json +25 -0
  796. package/app/node_modules/debug/package.json +64 -0
  797. package/app/node_modules/debug/src/browser.js +272 -0
  798. package/app/node_modules/debug/src/common.js +292 -0
  799. package/app/node_modules/debug/src/index.js +10 -0
  800. package/app/node_modules/debug/src/node.js +263 -0
  801. package/app/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  802. package/app/node_modules/delayed-stream/package.json +27 -0
  803. package/app/node_modules/dunder-proto/get.js +30 -0
  804. package/app/node_modules/dunder-proto/package.json +76 -0
  805. package/app/node_modules/es-define-property/index.js +14 -0
  806. package/app/node_modules/es-define-property/package.json +81 -0
  807. package/app/node_modules/es-errors/eval.js +4 -0
  808. package/app/node_modules/es-errors/index.js +4 -0
  809. package/app/node_modules/es-errors/package.json +80 -0
  810. package/app/node_modules/es-errors/range.js +4 -0
  811. package/app/node_modules/es-errors/ref.js +4 -0
  812. package/app/node_modules/es-errors/syntax.js +4 -0
  813. package/app/node_modules/es-errors/type.js +4 -0
  814. package/app/node_modules/es-errors/uri.js +4 -0
  815. package/app/node_modules/es-object-atoms/index.js +4 -0
  816. package/app/node_modules/es-object-atoms/package.json +79 -0
  817. package/app/node_modules/es-set-tostringtag/index.js +35 -0
  818. package/app/node_modules/es-set-tostringtag/package.json +78 -0
  819. package/app/node_modules/eventemitter3/index.js +336 -0
  820. package/app/node_modules/eventemitter3/package.json +62 -0
  821. package/app/node_modules/follow-redirects/debug.js +15 -0
  822. package/app/node_modules/follow-redirects/index.js +709 -0
  823. package/app/node_modules/follow-redirects/package.json +58 -0
  824. package/app/node_modules/form-data/lib/browser.js +4 -0
  825. package/app/node_modules/form-data/lib/form_data.js +506 -0
  826. package/app/node_modules/form-data/lib/populate.js +10 -0
  827. package/app/node_modules/form-data/package.json +82 -0
  828. package/app/node_modules/function-bind/implementation.js +84 -0
  829. package/app/node_modules/function-bind/index.js +5 -0
  830. package/app/node_modules/function-bind/package.json +87 -0
  831. package/app/node_modules/get-intrinsic/index.js +378 -0
  832. package/app/node_modules/get-intrinsic/package.json +97 -0
  833. package/app/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  834. package/app/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  835. package/app/node_modules/get-proto/index.js +27 -0
  836. package/app/node_modules/get-proto/package.json +81 -0
  837. package/app/node_modules/gopd/gOPD.js +4 -0
  838. package/app/node_modules/gopd/index.js +15 -0
  839. package/app/node_modules/gopd/package.json +77 -0
  840. package/app/node_modules/has-flag/index.js +8 -0
  841. package/app/node_modules/has-flag/package.json +46 -0
  842. package/app/node_modules/has-symbols/index.js +14 -0
  843. package/app/node_modules/has-symbols/package.json +111 -0
  844. package/app/node_modules/has-symbols/shams.js +45 -0
  845. package/app/node_modules/has-tostringtag/package.json +108 -0
  846. package/app/node_modules/has-tostringtag/shams.js +8 -0
  847. package/app/node_modules/hasown/index.js +8 -0
  848. package/app/node_modules/hasown/package.json +91 -0
  849. package/app/node_modules/https-proxy-agent/dist/agent.js +177 -0
  850. package/app/node_modules/https-proxy-agent/dist/index.js +14 -0
  851. package/app/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  852. package/app/node_modules/https-proxy-agent/package.json +56 -0
  853. package/app/node_modules/is-electron/index.js +21 -0
  854. package/app/node_modules/is-electron/package.json +34 -0
  855. package/app/node_modules/is-stream/index.js +28 -0
  856. package/app/node_modules/is-stream/package.json +42 -0
  857. package/app/node_modules/math-intrinsics/abs.js +4 -0
  858. package/app/node_modules/math-intrinsics/floor.js +4 -0
  859. package/app/node_modules/math-intrinsics/isNaN.js +6 -0
  860. package/app/node_modules/math-intrinsics/max.js +4 -0
  861. package/app/node_modules/math-intrinsics/min.js +4 -0
  862. package/app/node_modules/math-intrinsics/package.json +86 -0
  863. package/app/node_modules/math-intrinsics/pow.js +4 -0
  864. package/app/node_modules/math-intrinsics/round.js +4 -0
  865. package/app/node_modules/math-intrinsics/sign.js +11 -0
  866. package/app/node_modules/mime-db/db.json +8519 -0
  867. package/app/node_modules/mime-db/index.js +12 -0
  868. package/app/node_modules/mime-db/package.json +60 -0
  869. package/app/node_modules/mime-types/index.js +188 -0
  870. package/app/node_modules/mime-types/package.json +44 -0
  871. package/app/node_modules/ms/index.js +162 -0
  872. package/app/node_modules/ms/package.json +38 -0
  873. package/app/node_modules/p-finally/index.js +15 -0
  874. package/app/node_modules/p-finally/package.json +42 -0
  875. package/app/node_modules/p-queue/dist/index.js +279 -0
  876. package/app/node_modules/p-queue/dist/lower-bound.js +21 -0
  877. package/app/node_modules/p-queue/dist/priority-queue.js +32 -0
  878. package/app/node_modules/p-queue/node_modules/eventemitter3/index.js +336 -0
  879. package/app/node_modules/p-queue/node_modules/eventemitter3/package.json +56 -0
  880. package/app/node_modules/p-queue/package.json +92 -0
  881. package/app/node_modules/p-retry/index.js +85 -0
  882. package/app/node_modules/p-retry/package.json +51 -0
  883. package/app/node_modules/p-timeout/index.js +57 -0
  884. package/app/node_modules/p-timeout/package.json +45 -0
  885. package/app/node_modules/retry/index.js +1 -0
  886. package/app/node_modules/retry/lib/retry.js +100 -0
  887. package/app/node_modules/retry/lib/retry_operation.js +162 -0
  888. package/app/node_modules/retry/package.json +36 -0
  889. package/app/node_modules/supports-color/index.js +135 -0
  890. package/app/node_modules/supports-color/package.json +53 -0
  891. package/app/node_modules/ws/index.js +22 -0
  892. package/app/node_modules/ws/lib/buffer-util.js +131 -0
  893. package/app/node_modules/ws/lib/constants.js +19 -0
  894. package/app/node_modules/ws/lib/event-target.js +292 -0
  895. package/app/node_modules/ws/lib/extension.js +203 -0
  896. package/app/node_modules/ws/lib/limiter.js +55 -0
  897. package/app/node_modules/ws/lib/permessage-deflate.js +530 -0
  898. package/app/node_modules/ws/lib/receiver.js +743 -0
  899. package/app/node_modules/ws/lib/sender.js +607 -0
  900. package/app/node_modules/ws/lib/stream.js +161 -0
  901. package/app/node_modules/ws/lib/subprotocol.js +62 -0
  902. package/app/node_modules/ws/lib/validation.js +152 -0
  903. package/app/node_modules/ws/lib/websocket-server.js +562 -0
  904. package/app/node_modules/ws/lib/websocket.js +1421 -0
  905. package/app/node_modules/ws/package.json +74 -0
  906. package/app/package.json +1 -1
  907. package/app/server.js +1 -1
  908. package/dist/cli.js +5 -2
  909. package/dist/product.d.ts +8 -0
  910. package/dist/product.js +69 -3
  911. package/package.json +2 -2
  912. package/schemas/botmancers.mcp.v2.tools.json +767 -2
  913. package/skills/botmancers-collaboration/SKILL.md +5 -1
  914. package/skills/botmancers-collaboration/references/workflows.md +21 -0
  915. package/app/.next/server/chunks/[root-of-the-server]__06qkt0f._.js +0 -3
  916. package/app/.next/server/chunks/[root-of-the-server]__08qhrch._.js +0 -3
  917. package/app/.next/server/chunks/[root-of-the-server]__097ptn_._.js +0 -3
  918. package/app/.next/server/chunks/[root-of-the-server]__09m9-pe._.js +0 -3
  919. package/app/.next/server/chunks/[root-of-the-server]__0b7w1z3._.js +0 -3
  920. package/app/.next/server/chunks/[root-of-the-server]__0f5yqjs._.js +0 -3
  921. package/app/.next/server/chunks/[root-of-the-server]__0g4um3-._.js +0 -44
  922. package/app/.next/server/chunks/[root-of-the-server]__0hro5ey._.js +0 -3
  923. package/app/.next/server/chunks/[root-of-the-server]__0hwpgxq._.js +0 -3
  924. package/app/.next/server/chunks/[root-of-the-server]__0uq7sci._.js +0 -3
  925. package/app/.next/server/chunks/[root-of-the-server]__13cd2fb._.js +0 -44
  926. package/app/.next/server/chunks/[root-of-the-server]__1879cge._.js +0 -3
  927. package/app/.next/server/chunks/[root-of-the-server]__1a2dh11._.js +0 -3
  928. package/app/.next/server/chunks/[root-of-the-server]__1co3sok._.js +0 -44
  929. package/app/.next/server/chunks/[root-of-the-server]__1eh30sp._.js +0 -3
  930. package/app/.next/server/chunks/[root-of-the-server]__1fmsid0._.js +0 -44
  931. package/app/.next/server/chunks/[root-of-the-server]__1qbgs3m._.js +0 -3
  932. package/app/.next/server/chunks/[root-of-the-server]__1s6h1sj._.js +0 -3
  933. package/app/.next/server/chunks/[root-of-the-server]__1slu7d7._.js +0 -7
  934. package/app/.next/server/chunks/[root-of-the-server]__1tuqc5v._.js +0 -3
  935. package/app/.next/server/chunks/[root-of-the-server]__1v609eq._.js +0 -44
  936. package/app/.next/server/chunks/[root-of-the-server]__1zdv-vb._.js +0 -3
  937. package/app/.next/server/chunks/[root-of-the-server]__1zjs2tr._.js +0 -3
  938. package/app/.next/server/chunks/_023se5j._.js +0 -44
  939. package/app/.next/server/chunks/_02pb_qv._.js +0 -44
  940. package/app/.next/server/chunks/_05ro-21._.js +0 -44
  941. package/app/.next/server/chunks/_07on0dc._.js +0 -44
  942. package/app/.next/server/chunks/_08208nz._.js +0 -44
  943. package/app/.next/server/chunks/_0fe5qz5._.js +0 -44
  944. package/app/.next/server/chunks/_0qoji5a._.js +0 -44
  945. package/app/.next/server/chunks/_0uv2pi5._.js +0 -44
  946. package/app/.next/server/chunks/_0wdl90-._.js +0 -44
  947. package/app/.next/server/chunks/_11ijk9k._.js +0 -44
  948. package/app/.next/server/chunks/_198sn69._.js +0 -44
  949. package/app/.next/server/chunks/_1ba_5hd._.js +0 -44
  950. package/app/.next/server/chunks/_1m89jq5._.js +0 -44
  951. package/app/.next/server/chunks/_1n39wr_._.js +0 -44
  952. package/app/.next/server/chunks/_1ryxqo1._.js +0 -44
  953. package/app/.next/server/chunks/_1vemgly._.js +0 -44
  954. package/app/.next/server/chunks/lib_0lqoyb4._.js +0 -217
  955. package/app/.next/server/chunks/lib_0riiofz._.js +0 -44
  956. package/app/.next/server/chunks/lib_16j2293._.js +0 -217
  957. package/app/.next/server/chunks/lib_1nb_61e._.js +0 -217
  958. package/app/.next/server/chunks/lib_session-pins_ts_0lmxnwj._.js +0 -20
  959. package/app/.next/server/chunks/ssr/app_components_ExchangeCard_tsx_1shfcgn._.js +0 -3
  960. package/app/.next/server/chunks/ssr/node_modules_next_dist_client_components_server-async-storage_0t1dato.js +0 -3
  961. package/app/.next/static/chunks/0bhd8eso48g27.js +0 -1
  962. package/app/.next/static/chunks/3230ywnpii0s6.js +0 -3
  963. package/app/.next/static/chunks/35l2c95bd-jud.js +0 -1
  964. package/app/.next/static/chunks/3cijpn6vx3yzv.js +0 -1
  965. package/app/.next/static/chunks/3ue9194j59kem.js +0 -1
  966. package/app/.next/static/chunks/44ese2s4gzze_.js +0 -1
  967. /package/app/.next/static/{gh3shm8hnVqXLr75rmvsL → _yrIZIFsIbXA0Gaxkytjd}/_buildManifest.js +0 -0
  968. /package/app/.next/static/{gh3shm8hnVqXLr75rmvsL → _yrIZIFsIbXA0Gaxkytjd}/_clientMiddlewareManifest.js +0 -0
  969. /package/app/.next/static/{gh3shm8hnVqXLr75rmvsL → _yrIZIFsIbXA0Gaxkytjd}/_ssgManifest.js +0 -0
@@ -1,3 +1,3 @@
1
- module.exports=[36391,5020,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d=[{id:"purple",label:"Purple",hex:"#7C3AED"},{id:"blue",label:"Blue",hex:"#2563EB"},{id:"teal",label:"Teal",hex:"#0D9488"},{id:"green",label:"Green",hex:"#16A34A"},{id:"amber",label:"Amber",hex:"#B45309"},{id:"orange",label:"Orange",hex:"#EA580C"},{id:"pink",label:"Pink",hex:"#DB2777"},{id:"slate",label:"Slate",hex:"#64748B"}],e=[{id:"dots",label:"Round dots"},{id:"sleepy",label:"Sleepy"},{id:"happy",label:"Happy arcs"},{id:"wide",label:"Wide ovals"}],f=[{id:"folded",label:"Folded arms"},{id:"reaching",label:"Reaching right"},{id:"waving",label:"Waving"}],g=[{id:"none",label:"None"},{id:"crown",label:"Crown"},{id:"glasses",label:"Glasses"},{id:"headset",label:"Headset"},{id:"hat",label:"Hat"},{id:"bow",label:"Bow"}],h={color:"purple",eyes:"dots",hands:"folded",accessory:"none"},i={...h,accessory:"crown"};function j(a,b){return"string"==typeof b&&a.some(a=>a.id===b)}function k(a){let b=j(d,a.avatar_color)?a.avatar_color:h.color,c=j(e,a.avatar_eyes)?a.avatar_eyes:h.eyes;return{color:b,eyes:c,hands:j(f,a.avatar_hands)?a.avatar_hands:h.hands,accessory:j(g,a.avatar_accessory)?a.avatar_accessory:"chief-of-staff"===String(a.name??"").trim().toLowerCase()?i.accessory:h.accessory}}let l=[{x:70,y:70.5,w:38,h:6},{x:70,y:82,w:38,h:6}];function m(a){return l.map(b=>`<rect x="${b.x}" y="${b.y}" width="${b.w}" height="${b.h}" rx="${b.h/2}" ${a}/>`).join("")}function n(a,b="static"){var c,e;let f,g,h=d.find(b=>b.id===a.color)?.hex??d[0].hex,i=String(b).replace(/[^A-Za-z0-9_-]/g,"")||"static",j=`avatar-knockout-${i}`,k=`fill="none" stroke="${h}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`,l=(c=a.hands,e=a.accessory,f=[],"reaching"===c&&f.push({x1:87.6,y1:69,x2:90.4,y2:86.5,w:8}),"waving"===c&&f.push({x1:35,y1:59,x2:28,y2:72,w:10}),"crown"===e&&f.push({x1:44,y1:30,x2:76,y2:30,w:9}),"hat"===e&&f.push({x1:38,y1:34,x2:82,y2:34,w:9}),"bow"===e&&f.push({x1:60,y1:28.5,x2:84,y2:28,w:10}),"headset"===e&&(f.push({x1:42,y1:24.5,x2:78,y2:24.5,w:10}),f.push({x1:33,y1:55,x2:37,y2:64,w:8}),f.push({x1:83,y1:55,x2:87,y2:64,w:8})),"glasses"===e&&(f.push({x1:29,y1:56,x2:34,y2:62,w:8}),f.push({x1:86,y1:62,x2:91,y2:56,w:8})),f).map(a=>`<line x1="${a.x1}" y1="${a.y1}" x2="${a.x2}" y2="${a.y2}" stroke="#000000" stroke-width="${a.w}" stroke-linecap="round"/>`).join(""),o=`avatar-arms-${i}`,p="reaching"===a.hands,q=p?`<mask id="${o}"><rect x="0" y="0" width="120" height="120" fill="#ffffff"/>${m('fill="#000000" stroke="#000000" stroke-width="7"')}</mask>`:"",r=function(a,b){let c=`fill="none" stroke="${b}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`;switch(a){case"sleepy":return`<g data-avatar-layer="eyes" data-avatar-eyes="sleepy"><path d="M42 61 Q48 64 54 61" ${c}/><path d="M66 61 Q72 64 78 61" ${c}/></g>`;case"happy":return`<g data-avatar-layer="eyes" data-avatar-eyes="happy"><path d="M42 63 Q48 54 54 63" ${c}/><path d="M66 63 Q72 54 78 63" ${c}/></g>`;case"wide":return`<g data-avatar-layer="eyes" data-avatar-eyes="wide"><ellipse cx="48" cy="60" rx="5.5" ry="8" ${c}/><ellipse cx="72" cy="60" rx="5.5" ry="8" ${c}/></g>`;default:return`<g data-avatar-layer="eyes" data-avatar-eyes="dots"><circle cx="48" cy="60" r="3.5" ${c}/><circle cx="72" cy="60" r="3.5" ${c}/></g>`}}(a.eyes,h),s=function(a,b){let c=`fill="none" stroke="${b}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`;switch(a){case"crown":return`<g data-avatar-layer="accessory" data-avatar-accessory="crown"><path d="M44 31 L46.5 14 L54 24 L60 10 L66 24 L73.5 14 L76 31 Z" ${c}/></g>`;case"glasses":return`<g data-avatar-layer="accessory" data-avatar-accessory="glasses"><circle cx="48" cy="60" r="9" ${c}/><circle cx="72" cy="60" r="9" ${c}/><path d="M57 60 Q60 57 63 60" ${c}/><path d="M39 59 L32 57" ${c}/><path d="M81 59 L88 57" ${c}/></g>`;case"headset":return`<g data-avatar-layer="accessory" data-avatar-accessory="headset"><path d="M36 62 Q34 24 60 24 Q86 24 84 62" ${c}/><rect x="79" y="54" width="10" height="17" rx="5" ${c}/><path d="M84 71 Q80 84 66 84" ${c}/></g>`;case"hat":return`<g data-avatar-layer="accessory" data-avatar-accessory="hat"><path d="M38 34 Q60 40 82 34" ${c}/><path d="M46 34 Q48 14 60 14 Q72 14 74 34" ${c}/></g>`;case"bow":return`<g data-avatar-layer="accessory" data-avatar-accessory="bow"><circle cx="79" cy="29" r="3.5" ${c}/><path d="M76 27 L62 18 Q60 26 66 32 Z" ${c}/><path d="M82 27 L95 19 Q97 27 91 32 Z" ${c}/></g>`;default:return'<g data-avatar-layer="accessory" data-avatar-accessory="none"></g>'}}(a.accessory,h);return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" role="img" data-avatar-color="${a.color}" data-avatar-eyes="${a.eyes}" data-avatar-hands="${a.hands}" data-avatar-accessory="${a.accessory}"><mask id="${j}"><rect x="0" y="0" width="120" height="120" fill="#ffffff"/>${l}</mask>`+q+`<g data-avatar-layer="body" mask="url(#${j})">`+`<path d="M60 28 C75 28 84 39 85.5 56 L91 90 C92.5 98 87 102 79 102 L41 102 C33 102 27.5 98 29 90 L34.5 56 C36 39 45 28 60 28 Z" ${k}/>`+`<path d="M54 71 Q60 75.5 66 71" ${k}/>`+`<path data-avatar-brows="straight" d="${g="wide"===a.eyes?45:46,`M42 ${g} H54 M66 ${g} H78`}" fill="none" stroke="${h}" stroke-width="4.8" stroke-linecap="round"/>`+"</g>"+(p?`<g mask="url(#${o})">${r}</g>`:r)+function(a,b){let c=`fill="none" stroke="${b}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`;switch(a){case"reaching":return'<g data-avatar-layer="hands" data-avatar-hands="reaching">'+m(c)+"</g>";case"waving":return`<g data-avatar-layer="hands" data-avatar-hands="waving"><path d="M32 68 Q24 60 22 48" ${c}/><circle cx="21" cy="41" r="5" ${c}/><path d="M11 36 Q9 46 12 54" ${c}/></g>`;default:return`<g data-avatar-layer="hands" data-avatar-hands="folded"><rect x="44" y="79" width="32" height="9" rx="4.5" ${c}/><rect x="46" y="90" width="28" height="9" rx="4.5" ${c}/></g>`}}(a.hands,h)+(p?`<g mask="url(#${o})">${s}</g>`:s)+"</svg>"}a.s(["AVATAR_ACCESSORIES",0,g,"AVATAR_COLORS",0,d,"AVATAR_EYES",0,e,"AVATAR_HANDS",0,f,"renderAvatarSvg",0,n,"resolveAvatar",0,k],5020),a.s(["default",0,function({bot:a,config:d,size:e=28,className:f,title:g}){let h=(0,c.useId)().replace(/[^A-Za-z0-9_-]/g,"")||"avatar",i=n(d??a?.avatar_config??k(a??{}),h).replace("<svg ",`<svg width="${e}" height="${e}" `);return(0,b.jsx)("span",{className:f??"bot-avatar",style:{display:"inline-flex",width:e,height:e,flex:"none"},title:g,"aria-label":g??"Agent avatar",role:"img",dangerouslySetInnerHTML:{__html:i}})}],36391)},60193,35832,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d="Permanently removes each agent with its direct conversation, messages, queue rows, approvals, launch snapshots, memories, one-shots, routines, and pending questions. There is no undo.",e="Skill files, working directories, Hermes profiles, and imported source files stay on disk.";function f(a){return"chief"===a?"Chief of Staff cannot be deleted.":"Working now — stop it or let it finish before deleting."}function g(a){return 1===a?"Delete agent":`Delete ${a} agents`}a.s(["DELETE_KEEPS_COPY",0,e,"DELETE_REMOVES_COPY",0,d,"blockedReasonCopy",0,f,"deleteConfirmLabel",0,g,"deletedStatusLine",0,function(a){return 1===a?"Deleted 1 agent.":`Deleted ${a} agents.`}],35832),a.s(["default",0,function({ids:a,onCancel:h,onDeleted:i}){let j=(0,c.useId)(),[k,l]=(0,c.useState)(null),[m,n]=(0,c.useState)(""),[o,p]=(0,c.useState)(""),[q,r]=(0,c.useState)(!1),s=(0,c.useRef)(null),t=(0,c.useRef)(null),u=a.join("\n");(0,c.useEffect)(()=>{let a=!1;return fetch("/api/bots/delete-preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:u.split("\n")})}).then(async b=>{let c=await b.json().catch(()=>null);if(!a){if(!b.ok)return void n("string"==typeof c?.error?c.error:"Could not load the deletion preview.");l(c)}}).catch(()=>{a||n("Could not load the deletion preview.")}),()=>{a=!0}},[u]),(0,c.useEffect)(()=>{s.current?.focus()},[]),(0,c.useEffect)(()=>{let a=a=>{"Escape"===a.key&&(a.stopPropagation(),q||h())};return document.addEventListener("keydown",a,!0),()=>document.removeEventListener("keydown",a,!0)},[q,h]);let v=a.length,w=!k||k.blocked.length>0||k.missing.length>0,x=async()=>{if(!q&&!w){r(!0),p("");try{let b=await fetch("/api/bots",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:a})}),c=await b.json().catch(()=>null);if(!b.ok){p("string"==typeof c?.error&&c.error?c.error:`Delete failed (${b.status}).`),r(!1),requestAnimationFrame(()=>s.current?.focus());return}i(Array.isArray(c?.deleted)?c.deleted:[])}catch{p("Delete failed: the server did not respond."),r(!1),requestAnimationFrame(()=>s.current?.focus())}}};return(0,b.jsx)("div",{className:"modal-scrim delete-scrim",onKeyDown:a=>{if("Tab"!==a.key||!t.current)return;let b=Array.from(t.current.querySelectorAll("button:not(:disabled)"));if(0===b.length)return;let c=b[0],d=b[b.length-1];a.shiftKey&&document.activeElement===c?(a.preventDefault(),d.focus()):a.shiftKey||document.activeElement!==d||(a.preventDefault(),c.focus())},children:(0,b.jsxs)("div",{ref:t,className:"delete-card",role:"alertdialog","aria-modal":"true","aria-labelledby":j,"data-testid":"delete-agents-dialog",children:[(0,b.jsx)("h2",{id:j,className:"delete-title",children:1===v?"Delete this agent permanently?":`Delete ${v} agents permanently?`}),m?(0,b.jsx)("p",{className:"delete-error",role:"alert",children:m}):null,k||m?null:(0,b.jsx)("p",{className:"delete-copy",children:"Checking what will be removed…"}),k?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("ul",{className:"delete-names","aria-label":"Agents to delete",children:[k.agents.map(a=>(0,b.jsx)("li",{children:a.name},a.id)),k.missing.map(a=>(0,b.jsxs)("li",{children:["Not found: ",a]},a))]}),k.blocked.length>0?(0,b.jsxs)("div",{className:"delete-blocked",role:"alert",children:[(0,b.jsx)("p",{children:"Nothing can be deleted until these are deselected:"}),(0,b.jsx)("ul",{children:k.blocked.map(a=>(0,b.jsxs)("li",{children:[a.name," — ",f(a.reason)]},a.id))})]}):null,(0,b.jsx)("p",{className:"delete-copy",children:d}),(0,b.jsx)("p",{className:"delete-copy delete-keeps",children:e})]}):null,o?(0,b.jsx)("p",{className:"delete-error",role:"alert",children:o}):null,(0,b.jsxs)("div",{className:"form-actions delete-actions",children:[(0,b.jsx)("button",{ref:s,type:"button",className:"cancel-btn",onClick:h,disabled:q,children:"Cancel"}),(0,b.jsx)("button",{type:"button",className:"delete-btn",onClick:()=>{x()},disabled:q||w,children:q?"Deleting…":g(v)})]})]})})}],60193)},1160,22855,79202,a=>{"use strict";var b=a.i(22151);let c="This computer",d={direct:"Direct",agent_deck:"Agent Deck"},e={read_only:"Read only",workspace_write:"Workspace write"},f={workspaces:"Selected workspaces",sessions:"Selected imported sessions",all_provider_sessions:"All sessions this runtime can see"};function g(a){return a.startsWith("/")||"~"===a||a.startsWith("~/")}function h(a){return a.length>1?a.replace(/\/+$/,""):a}b.AGENTS.join("|");var i=a.i(20851);let j="/api/runtime-connections",k={connection:"Runtime connection",scope:"Session scope",defaultWorkspace:"Default workspace (optional)",launchProfile:"Launch profile",policy:"Policy",homeSession:"Home session (optional)"},l={connection:"The runtime installation or account this Agent uses. Several Agents can share one.",workspaces:"One absolute path per line. An empty scope never means unrestricted.",sessions:"Only this Agent’s own Botmancers sessions can be selected.",noSessions:"This Agent has no sessions yet. Choose workspaces or all sessions for now.",allSessions:"Every session this runtime can see. Choose this only on purpose.",defaultWorkspace:"Where new sessions start. Convenience only — not a permission.",direct:"Launches the runtime directly. Agent Deck is not contacted.",agentDeck:"Launches through a verified Agent Deck from the configured server.",resumeEdits:"Needs Workspace write.",homeSession:"A stable session to return to. Must be one of this Agent’s sessions.",addConnection:"Stores a name and host only. Credentials stay with the runtime."},m="Loading runtime connections…",n="Couldn't load runtime connections — retry.";function o(){return{status:"loading",connections:[],error:""}}function p(a){return`${a.label} \xb7 ${b.AGENT_LABELS[a.provider]??a.provider}`}function q(a){if("object"!=typeof a||null===a)return null;let b=a.connections;if(!Array.isArray(b))return null;let c=[];for(let a of b){if("object"!=typeof a||null===a||"string"!=typeof a.id||"string"!=typeof a.provider||"string"!=typeof a.label)return null;c.push({id:a.id,provider:a.provider,label:a.label,host:"string"==typeof a.host?a.host:"",agent_count:"number"==typeof a.agent_count?a.agent_count:void 0})}return c}function r(a){let b=[];for(let c of a.split("\n")){let a=c.trim();a&&!b.includes(a)&&b.push(a)}return b}function s(a){return"workspaces"===a.scopeKind?{kind:"workspaces",workspaces:r(a.workspaces)}:"sessions"===a.scopeKind?{kind:"sessions",sessions:a.sessions}:{kind:a.scopeKind}}function t(a){return{mode:a.policyMode,allow_new_sessions:a.allowNewSessions,allow_resume_with_edits:a.allowResumeWithEdits}}a.s(["CONNECTIONS_ENDPOINT",0,j,"CONNECTIONS_ERROR_COPY",0,n,"CONNECTIONS_LOADING_COPY",0,m,"DEFAULT_REGISTRATION_FORM",0,{connectionId:"",scopeKind:"",workspaces:"",sessions:[],defaultWorkspace:"",launchProfile:"",deckId:"",workingDirectory:"",policyMode:"read_only",allowNewSessions:!0,allowResumeWithEdits:!1,homeSessionId:""},"HINTS",0,l,"LABELS",0,k,"connectionOptionLabel",0,p,"hasRegistrationErrors",0,function(a){return Object.keys(a.errors).length>0},"initialConnectionListState",0,o,"parseConnectionList",0,q,"registrationCreateBody",0,function(a,b){let c={name:String(a??"").trim(),runtime_connection_id:b.connectionId,launch_profile:b.launchProfile||null,session_scope:s(b),policy:t(b)},d=b.defaultWorkspace.trim();if(d&&(c.default_workspace=d),"agent_deck"===b.launchProfile){c.deck_id=b.deckId.trim();let a=b.workingDirectory.trim();a&&(c.working_directory=a)}return c},"registrationFormFromBot",0,function(a){let b=a.session_scope??null,c="direct"===a.launch_profile||"agent_deck"===a.launch_profile?a.launch_profile:"",d=!0===a.needs_deck_selection||1===a.needs_deck_selection,e=(a.working_directory??"").trim();return{connectionId:a.runtime_connection_id??"",scopeKind:b?.kind??"",workspaces:b?.kind==="workspaces"?b.workspaces.join("\n"):"",sessions:b?.kind==="sessions"?[...b.sessions]:[],defaultWorkspace:a.default_workspace??"",launchProfile:c,deckId:"agent_deck"!==c||d?"":(a.deck_id??"").trim(),workingDirectory:"agent_deck"===c&&e&&e!==(0,i.defaultWorkdirFor)(a.id??"")?e:"",policyMode:a.policy?.mode??"read_only",allowNewSessions:!a.policy||a.policy.allow_new_sessions,allowResumeWithEdits:!!a.policy&&a.policy.allow_resume_with_edits,homeSessionId:a.home_session_id??""}},"registrationFormView",0,function(a,b,c){let d={};a.connectionId||(d.connection="Pick a runtime connection.");let e=r(a.workspaces);a.scopeKind?"workspaces"===a.scopeKind?0===e.length?d.workspaces="Add at least one workspace.":e.every(g)||(d.workspaces="Workspaces must be absolute paths (or start with ~/)."):"sessions"===a.scopeKind&&0===a.sessions.length&&(d.sessions="Select at least one session."):d.scope="Choose a session scope.";let f=a.defaultWorkspace.trim();f&&(g(f)?"workspaces"!==a.scopeKind||d.workspaces||e.some(a=>{let b,c;return b=h(a),b===(c=h(f))||c.startsWith("/"===b?"/":`${b}/`)})||(d.defaultWorkspace="The default workspace must be inside one of the selected workspaces."):d.defaultWorkspace="The default workspace must be an absolute path (or start with ~/)."),a.launchProfile?"agent_deck"!==a.launchProfile||a.deckId.trim()||(d.deck="Select an Agent Deck for this agent."):d.launchProfile="Choose Direct or Agent Deck.",a.allowResumeWithEdits&&"workspace_write"!==a.policyMode&&(d.policy="Resume with edits needs the Workspace write policy.");let j="agent_deck"===a.launchProfile,k="",l=!1;return"ready"!==c.status?(l=!0,k="error"===c.status?n:""):j&&"connected"!==b.status&&(l=!0,k="loading"===b.status?"":i.DECK_SLOT_COPY[b.status]),{errors:d,showsAgentDeck:j,submitDisabled:l,blocker:k}},"registrationPatchBody",0,function(a,b){let c={id:a,runtime_connection_id:b.connectionId,launch_profile:b.launchProfile||null,session_scope:s(b),default_workspace:b.defaultWorkspace.trim(),policy:t(b),home_session_id:b.homeSessionId};if("agent_deck"===b.launchProfile){let d=b.workingDirectory.trim();c.deck_id=b.deckId.trim(),c.working_directory=d&&d!==(0,i.defaultWorkdirFor)(a)?d:""}return c},"registrationReadView",0,function(a,c,g){var h;let j,l=[{key:"connection",label:k.connection,value:(j=a.runtime_connection)?`${j.label} (${(0,b.agentLabel)(j.provider)} \xb7 ${j.host})`:"Not set"},{key:"scope",label:k.scope,value:function(a,b){if(!a)return"Not set — this Agent cannot launch until a scope is chosen.";if("all_provider_sessions"===a.kind)return f.all_provider_sessions;if("workspaces"===a.kind)return`${f.workspaces}: ${a.workspaces.join(", ")}`;let c=a.sessions.map(a=>b?.find(b=>b.ref===a)?.title??a);return`${f.sessions}: ${c.join(", ")}`}(a.session_scope,g)},{key:"defaultWorkspace",label:"Default workspace",value:a.default_workspace||"None"},{key:"launchProfile",label:k.launchProfile,value:"direct"===a.launch_profile?d.direct:"agent_deck"===a.launch_profile?d.agent_deck:"Not chosen"}],m=[];if("agent_deck"===a.launch_profile){let b=!0===a.needs_deck_selection||1===a.needs_deck_selection||!(a.deck_id??"").trim();l.push({key:"deck",label:"Agent Deck",value:b?"not selected":(0,i.deckLabel)(a.deck_id??"",c)});let d=(a.working_directory??"").trim();l.push({key:"workdir",label:"Working directory",value:d||(0,i.defaultWorkdirFor)(a.id??"{agentID}")}),!b&&(0,i.isDeckUnavailable)(a,c)&&m.push("This deck isn't on the configured server right now. Pick another deck, or fix the server in Settings.")}l.push({key:"policy",label:k.policy,value:(h=a.policy)?[e[h.mode],h.allow_new_sessions?"new sessions allowed":"no new sessions",h.allow_resume_with_edits?"resume with edits allowed":"no resume with edits"].join(" · "):"Not set"});let n=a.home_session_id?g?.find(b=>b.ref===a.home_session_id)?.title??a.home_session_id:"None";if(l.push({key:"homeSession",label:"Home session",value:n}),a.launch_profile)"direct_runtime"===a.launch_blocker&&m.push("Registered for direct launch. Direct sessions for this runtime arrive in a later Botmancers version.");else{let b=(a.deck_name??"").trim();m.push(`Choose Direct or Agent Deck before this Agent can run${b?` (was Agent Deck "${b}")`:""}.`)}return{rows:l,notices:m}}],1160);var u=a.i(87924),v=a.i(72131),w=a.i(39228);let x={modal:{fieldset:"agent-fieldset reg-fieldset",legend:"field-legend",label:"",picks:"runtime-picks",pick:"runtime-pick",stack:"reg-stack",control:"deck-control",input:"",hint:"runtime-hint",error:"form-error reg-error",button:"runtime-retry",note:"runtime-note"},config:{fieldset:"agent-fieldset reg-fieldset",legend:"block text-sm cfg-muted mt-3 mb-1 p-0",label:"block text-sm cfg-muted mt-3 mb-1",picks:"flex flex-wrap gap-x-4 gap-y-1 text-sm cfg-muted",pick:"text-sm cfg-muted",stack:"flex flex-col gap-1 text-sm cfg-muted",control:"cfg-input text-sm",input:"cfg-input text-sm",hint:"mt-1 text-xs cfg-faint",error:"mt-1 text-sm cfg-error",button:"cfg-link text-sm",note:"text-sm cfg-muted mt-1"}};function y({id:a,message:b,variant:c}){return b?(0,u.jsx)("p",{id:a,className:x[c].error,role:"alert",children:b}):null}function z({idPrefix:a,variant:b,onAdd:d}){let e=x[b],[f,g]=(0,v.useState)(!1),[h,j]=(0,v.useState)(i.AGENT_OPTIONS[0].value),[k,m]=(0,v.useState)(""),[n,o]=(0,v.useState)(""),[p,q]=(0,v.useState)(""),[r,s]=(0,v.useState)(!1),t=async()=>{if(r)return;s(!0),q("");let a=await d({provider:h,label:k,host:n.trim()||c});(s(!1),"string"==typeof a)?q(a):(g(!1),m(""),o(""))};return f?(0,u.jsxs)("div",{id:`${a}-add-connection`,className:"reg-add-connection",role:"group","aria-label":"Add connection",children:[(0,u.jsx)("label",{className:e.label,htmlFor:`${a}-add-provider`,children:"Provider"}),(0,u.jsx)("select",{id:`${a}-add-provider`,className:e.control,value:h,onChange:a=>j(a.target.value),children:i.AGENT_OPTIONS.map(a=>(0,u.jsx)("option",{value:a.value,children:a.label},a.value))}),(0,u.jsx)("label",{className:e.label,htmlFor:`${a}-add-label`,children:"Connection name"}),(0,u.jsx)("input",{id:`${a}-add-label`,type:"text",className:e.input||void 0,value:k,placeholder:"Codex on my laptop",onChange:a=>m(a.target.value),onKeyDown:a=>{"Enter"===a.key&&(a.preventDefault(),t())}}),(0,u.jsx)("label",{className:e.label,htmlFor:`${a}-add-host`,children:"Host"}),(0,u.jsx)("input",{id:`${a}-add-host`,type:"text",className:e.input||void 0,value:n,placeholder:c,"aria-describedby":`${a}-add-hint`,onChange:a=>o(a.target.value)}),(0,u.jsx)("p",{id:`${a}-add-hint`,className:e.hint,children:l.addConnection}),p?(0,u.jsx)("p",{className:e.error,role:"alert",children:p}):null,(0,u.jsxs)("div",{className:"reg-actions",children:[(0,u.jsx)("button",{type:"button",className:e.button,onClick:()=>void t(),disabled:r,children:r?"Adding…":"Add"}),(0,u.jsx)("button",{type:"button",className:e.button,"aria-expanded":"true",onClick:()=>g(!1),children:"Cancel"})]})]}):(0,u.jsx)("button",{type:"button",className:e.button,"aria-expanded":"false","aria-controls":`${a}-add-connection`,onClick:()=>g(!0),children:"Add connection…"})}a.s(["RegistrationFields",0,function({idPrefix:a,variant:b,form:c,onChange:g,view:h,showErrors:i,connections:j,onRetryConnections:o,onAddConnection:q,deckState:r,onRetryDecks:s,savedDeckId:t,workdirPlaceholder:v,workdirHint:A,sessions:B,includeHomeSession:C}){let D=x[b],E=a=>i?h.errors[a]:void 0,F=b=>`${a}-${b}-error`,G=(a,...b)=>[...b,E(a)?F(a):""].filter(Boolean).join(" ")||void 0,H=!!(B&&B.length>0);return(0,u.jsxs)("div",{className:"registration-fields","data-registration":b,children:[(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"connection","aria-describedby":G("connection",`${a}-connection-hint`),children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-connection-legend`,children:k.connection}),"loading"===j.status?(0,u.jsx)("p",{className:D.note,role:"status",children:m}):"error"===j.status?(0,u.jsxs)("p",{className:D.note,role:"status",children:[n," ",(0,u.jsx)("button",{type:"button",className:D.button,onClick:o,children:"Retry"})]}):(0,u.jsxs)("select",{id:`${a}-connection`,className:D.control,"aria-labelledby":`${a}-connection-legend`,"aria-required":"true","aria-invalid":!!E("connection")||void 0,value:c.connectionId,onChange:a=>g({connectionId:a.target.value}),children:[(0,u.jsx)("option",{value:"",disabled:!0,children:"Select a connection…"}),j.connections.map(a=>(0,u.jsx)("option",{value:a.id,children:p(a)},a.id))]}),(0,u.jsx)("p",{id:`${a}-connection-hint`,className:D.hint,children:l.connection}),(0,u.jsx)(y,{id:F("connection"),message:E("connection"),variant:b}),"ready"===j.status?(0,u.jsx)(z,{idPrefix:a,variant:b,onAdd:async a=>{let b=await q(a);return"string"!=typeof b&&g({connectionId:b.id}),b}}):null]}),(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"scope",children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-scope-legend`,children:k.scope}),(0,u.jsx)("div",{className:D.stack,role:"radiogroup","aria-labelledby":`${a}-scope-legend`,"aria-required":"true","aria-describedby":G("scope"),children:["workspaces","sessions","all_provider_sessions"].map(b=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"radio",name:`${a}-scope`,value:b,checked:c.scopeKind===b,disabled:"sessions"===b&&!H,onChange:()=>g({scopeKind:b})})," "+f[b]]},b))}),H?null:(0,u.jsx)("p",{className:D.hint,children:l.noSessions}),(0,u.jsx)(y,{id:F("scope"),message:E("scope"),variant:b}),"workspaces"===c.scopeKind?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("label",{className:D.label,htmlFor:`${a}-workspaces`,children:"Workspaces"}),(0,u.jsx)("textarea",{id:`${a}-workspaces`,className:D.input||void 0,rows:2,value:c.workspaces,placeholder:"/Users/you/work/project","aria-required":"true","aria-invalid":!!E("workspaces")||void 0,"aria-describedby":G("workspaces",`${a}-workspaces-hint`),onChange:a=>g({workspaces:a.target.value})}),(0,u.jsx)("p",{id:`${a}-workspaces-hint`,className:D.hint,children:l.workspaces}),(0,u.jsx)(y,{id:F("workspaces"),message:E("workspaces"),variant:b})]}):null,"sessions"===c.scopeKind&&B?(0,u.jsxs)("div",{className:D.stack,role:"group","aria-label":"Sessions in scope","aria-describedby":G("sessions",`${a}-sessions-hint`),children:[B.map(a=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"checkbox",checked:c.sessions.includes(a.ref),onChange:b=>g({sessions:b.target.checked?[...c.sessions,a.ref]:c.sessions.filter(b=>b!==a.ref)})}),` ${a.title} (${a.status})`]},a.ref)),(0,u.jsx)("p",{id:`${a}-sessions-hint`,className:D.hint,children:l.sessions}),(0,u.jsx)(y,{id:F("sessions"),message:E("sessions"),variant:b})]}):null,"all_provider_sessions"===c.scopeKind?(0,u.jsx)("p",{className:D.hint,children:l.allSessions}):null]}),(0,u.jsxs)("div",{"data-field":"default-workspace",children:[(0,u.jsx)("label",{className:D.label,htmlFor:`${a}-default-workspace`,children:k.defaultWorkspace}),(0,u.jsx)("input",{id:`${a}-default-workspace`,type:"text",className:D.input||void 0,value:c.defaultWorkspace,"aria-invalid":!!E("defaultWorkspace")||void 0,"aria-describedby":G("defaultWorkspace",`${a}-default-workspace-hint`),onChange:a=>g({defaultWorkspace:a.target.value})}),(0,u.jsx)("p",{id:`${a}-default-workspace-hint`,className:D.hint,children:l.defaultWorkspace}),(0,u.jsx)(y,{id:F("defaultWorkspace"),message:E("defaultWorkspace"),variant:b})]}),(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"launch-profile",children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-profile-legend`,children:k.launchProfile}),(0,u.jsx)("div",{className:D.stack,role:"radiogroup","aria-labelledby":`${a}-profile-legend`,"aria-required":"true","aria-describedby":G("launchProfile"),children:["direct","agent_deck"].map(b=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"radio",name:`${a}-profile`,value:b,checked:c.launchProfile===b,"aria-describedby":`${a}-profile-${b}-hint`,onChange:()=>g({launchProfile:b})})," "+d[b],(0,u.jsx)("span",{id:`${a}-profile-${b}-hint`,className:`reg-option-hint ${D.hint}`,children:"direct"===b?l.direct:l.agentDeck})]},b))}),(0,u.jsx)(y,{id:F("launchProfile"),message:E("launchProfile"),variant:b}),h.showsAgentDeck?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(w.AgentDeckFields,{idPrefix:a,variant:b,deckId:c.deckId,onDeckId:a=>g({deckId:a}),deckState:r,onRetry:s,savedDeckId:t,workingDirectory:c.workingDirectory,onWorkingDirectory:a=>g({workingDirectory:a}),workdirPlaceholder:v,workdirHint:A}),(0,u.jsx)(y,{id:F("deck"),message:E("deck"),variant:b})]}):null]}),(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"policy",children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-policy-legend`,children:k.policy}),(0,u.jsx)("div",{className:D.picks,role:"radiogroup","aria-labelledby":`${a}-policy-legend`,children:["read_only","workspace_write"].map(b=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"radio",name:`${a}-policy`,value:b,checked:c.policyMode===b,onChange:()=>g("read_only"===b?{policyMode:b,allowResumeWithEdits:!1}:{policyMode:b})})," "+e[b]]},b))}),(0,u.jsxs)("div",{className:D.stack,children:[(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"checkbox",checked:c.allowNewSessions,onChange:a=>g({allowNewSessions:a.target.checked})})," Allow new sessions"]}),(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"checkbox",checked:c.allowResumeWithEdits,disabled:"workspace_write"!==c.policyMode,"aria-describedby":`${a}-resume-hint`,onChange:a=>g({allowResumeWithEdits:a.target.checked})})," Allow resume with edits"]}),(0,u.jsx)("p",{id:`${a}-resume-hint`,className:D.hint,children:l.resumeEdits})]}),(0,u.jsx)(y,{id:F("policy"),message:E("policy"),variant:b})]}),C?(0,u.jsxs)("div",{"data-field":"home-session",children:[(0,u.jsx)("label",{className:D.label,htmlFor:`${a}-home-session`,children:k.homeSession}),(0,u.jsxs)("select",{id:`${a}-home-session`,className:D.control,value:c.homeSessionId,"aria-describedby":`${a}-home-session-hint`,onChange:a=>g({homeSessionId:a.target.value}),children:[(0,u.jsx)("option",{value:"",children:"None"}),(B??[]).map(a=>(0,u.jsx)("option",{value:a.ref,children:`${a.title} (${a.status})`},a.ref))]}),(0,u.jsx)("p",{id:`${a}-home-session-hint`,className:D.hint,children:l.homeSession})]}):null]})}],22855),a.s(["useRuntimeConnections",0,function(){let[a,b]=(0,v.useState)(()=>o()),[c,d]=(0,v.useState)(0);return(0,v.useEffect)(()=>{let a=!1;return fetch(j,{cache:"no-store"}).then(async c=>{let d=c.ok?q(await c.json().catch(()=>null)):null;a||b(d?{status:"ready",connections:d,error:""}:{status:"error",connections:[],error:`HTTP ${c.status}`})}).catch(c=>{a||b({status:"error",connections:[],error:c instanceof Error?c.message:String(c)})}),()=>{a=!0}},[c]),{state:a,retry:(0,v.useCallback)(()=>{b(o()),d(a=>a+1)},[]),add:(0,v.useCallback)(async a=>{let c=await fetch(j,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),d=await c.json().catch(()=>null);if(!c.ok)return"string"==typeof d?.error?d.error:"Failed to add the connection";let e=q({connections:[d]})?.[0];return e?(b(a=>({status:"ready",connections:[...a.connections,e],error:""})),e):"Failed to add the connection"},[])}}],79202)},80219,a=>{"use strict";let b="imported",c=/^[A-Za-z0-9_-]{1,128}$/;function d(a){let d=new URLSearchParams(a).get(b);if(null===d)return null;let e=d.trim();return c.test(e)?e:""}function e(a){return`/bots/${encodeURIComponent(a)}/config`}async function f(a,b,c){let f=d(a);if(null===f)return{kind:"none"};if(!f)return{kind:"missing"};if(f===b)return{kind:"stay"};try{return await c(f)?{kind:"open",path:e(f)}:{kind:"missing"}}catch{return{kind:"missing"}}}a.s(["HANDOFF_STATUS_PATH",0,"/api/marketplace-handoff/status","IMPORT_RETURN_QUERY",0,b,"handoffStartPath",0,function(a,b){return`/api/marketplace-handoff?return=${encodeURIComponent(a+b)}`},"importedBotId",0,d,"importedConfigPath",0,e,"marketImportView",0,function(a){switch(a){case"checking":return{busy:!0,tone:"muted",message:"Checking Grok Marketplace…"};case"redirecting":return{busy:!0,tone:"muted",message:"Opening Grok Marketplace…"};case"unavailable":return{busy:!1,tone:"error",message:"Grok Marketplace isn't configured. Set CLONE_MARKET_URL on the Botmancers server."};case"failed":return{busy:!1,tone:"error",message:"Couldn't reach Botmancers to start the import. Try again."};case"missing":return{busy:!1,tone:"error",message:"Imported agent not found. The import may not have completed."};default:return{busy:!1,tone:"muted",message:"Imports a new agent and opens its Config. This agent is not changed."}}},"resolveImportReturn",0,f])}];
1
+ module.exports=[36391,5020,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d=[{id:"purple",label:"Purple",hex:"#7C3AED"},{id:"blue",label:"Blue",hex:"#2563EB"},{id:"teal",label:"Teal",hex:"#0D9488"},{id:"green",label:"Green",hex:"#16A34A"},{id:"amber",label:"Amber",hex:"#B45309"},{id:"orange",label:"Orange",hex:"#EA580C"},{id:"pink",label:"Pink",hex:"#DB2777"},{id:"slate",label:"Slate",hex:"#64748B"}],e=[{id:"dots",label:"Round dots"},{id:"sleepy",label:"Sleepy"},{id:"happy",label:"Happy arcs"},{id:"wide",label:"Wide ovals"}],f=[{id:"folded",label:"Folded arms"},{id:"reaching",label:"Reaching right"},{id:"waving",label:"Waving"}],g=[{id:"none",label:"None"},{id:"crown",label:"Crown"},{id:"glasses",label:"Glasses"},{id:"headset",label:"Headset"},{id:"hat",label:"Hat"},{id:"bow",label:"Bow"}],h={color:"purple",eyes:"dots",hands:"folded",accessory:"none"},i={...h,accessory:"crown"};function j(a,b){return"string"==typeof b&&a.some(a=>a.id===b)}function k(a){let b=j(d,a.avatar_color)?a.avatar_color:h.color,c=j(e,a.avatar_eyes)?a.avatar_eyes:h.eyes;return{color:b,eyes:c,hands:j(f,a.avatar_hands)?a.avatar_hands:h.hands,accessory:j(g,a.avatar_accessory)?a.avatar_accessory:"chief-of-staff"===String(a.name??"").trim().toLowerCase()?i.accessory:h.accessory}}let l=[{x:70,y:70.5,w:38,h:6},{x:70,y:82,w:38,h:6}];function m(a){return l.map(b=>`<rect x="${b.x}" y="${b.y}" width="${b.w}" height="${b.h}" rx="${b.h/2}" ${a}/>`).join("")}function n(a,b="static"){var c,e;let f,g,h=d.find(b=>b.id===a.color)?.hex??d[0].hex,i=String(b).replace(/[^A-Za-z0-9_-]/g,"")||"static",j=`avatar-knockout-${i}`,k=`fill="none" stroke="${h}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`,l=(c=a.hands,e=a.accessory,f=[],"reaching"===c&&f.push({x1:87.6,y1:69,x2:90.4,y2:86.5,w:8}),"waving"===c&&f.push({x1:35,y1:59,x2:28,y2:72,w:10}),"crown"===e&&f.push({x1:44,y1:30,x2:76,y2:30,w:9}),"hat"===e&&f.push({x1:38,y1:34,x2:82,y2:34,w:9}),"bow"===e&&f.push({x1:60,y1:28.5,x2:84,y2:28,w:10}),"headset"===e&&(f.push({x1:42,y1:24.5,x2:78,y2:24.5,w:10}),f.push({x1:33,y1:55,x2:37,y2:64,w:8}),f.push({x1:83,y1:55,x2:87,y2:64,w:8})),"glasses"===e&&(f.push({x1:29,y1:56,x2:34,y2:62,w:8}),f.push({x1:86,y1:62,x2:91,y2:56,w:8})),f).map(a=>`<line x1="${a.x1}" y1="${a.y1}" x2="${a.x2}" y2="${a.y2}" stroke="#000000" stroke-width="${a.w}" stroke-linecap="round"/>`).join(""),o=`avatar-arms-${i}`,p="reaching"===a.hands,q=p?`<mask id="${o}"><rect x="0" y="0" width="120" height="120" fill="#ffffff"/>${m('fill="#000000" stroke="#000000" stroke-width="7"')}</mask>`:"",r=function(a,b){let c=`fill="none" stroke="${b}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`;switch(a){case"sleepy":return`<g data-avatar-layer="eyes" data-avatar-eyes="sleepy"><path d="M42 61 Q48 64 54 61" ${c}/><path d="M66 61 Q72 64 78 61" ${c}/></g>`;case"happy":return`<g data-avatar-layer="eyes" data-avatar-eyes="happy"><path d="M42 63 Q48 54 54 63" ${c}/><path d="M66 63 Q72 54 78 63" ${c}/></g>`;case"wide":return`<g data-avatar-layer="eyes" data-avatar-eyes="wide"><ellipse cx="48" cy="60" rx="5.5" ry="8" ${c}/><ellipse cx="72" cy="60" rx="5.5" ry="8" ${c}/></g>`;default:return`<g data-avatar-layer="eyes" data-avatar-eyes="dots"><circle cx="48" cy="60" r="3.5" ${c}/><circle cx="72" cy="60" r="3.5" ${c}/></g>`}}(a.eyes,h),s=function(a,b){let c=`fill="none" stroke="${b}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`;switch(a){case"crown":return`<g data-avatar-layer="accessory" data-avatar-accessory="crown"><path d="M44 31 L46.5 14 L54 24 L60 10 L66 24 L73.5 14 L76 31 Z" ${c}/></g>`;case"glasses":return`<g data-avatar-layer="accessory" data-avatar-accessory="glasses"><circle cx="48" cy="60" r="9" ${c}/><circle cx="72" cy="60" r="9" ${c}/><path d="M57 60 Q60 57 63 60" ${c}/><path d="M39 59 L32 57" ${c}/><path d="M81 59 L88 57" ${c}/></g>`;case"headset":return`<g data-avatar-layer="accessory" data-avatar-accessory="headset"><path d="M36 62 Q34 24 60 24 Q86 24 84 62" ${c}/><rect x="79" y="54" width="10" height="17" rx="5" ${c}/><path d="M84 71 Q80 84 66 84" ${c}/></g>`;case"hat":return`<g data-avatar-layer="accessory" data-avatar-accessory="hat"><path d="M38 34 Q60 40 82 34" ${c}/><path d="M46 34 Q48 14 60 14 Q72 14 74 34" ${c}/></g>`;case"bow":return`<g data-avatar-layer="accessory" data-avatar-accessory="bow"><circle cx="79" cy="29" r="3.5" ${c}/><path d="M76 27 L62 18 Q60 26 66 32 Z" ${c}/><path d="M82 27 L95 19 Q97 27 91 32 Z" ${c}/></g>`;default:return'<g data-avatar-layer="accessory" data-avatar-accessory="none"></g>'}}(a.accessory,h);return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" role="img" data-avatar-color="${a.color}" data-avatar-eyes="${a.eyes}" data-avatar-hands="${a.hands}" data-avatar-accessory="${a.accessory}"><mask id="${j}"><rect x="0" y="0" width="120" height="120" fill="#ffffff"/>${l}</mask>`+q+`<g data-avatar-layer="body" mask="url(#${j})">`+`<path d="M60 28 C75 28 84 39 85.5 56 L91 90 C92.5 98 87 102 79 102 L41 102 C33 102 27.5 98 29 90 L34.5 56 C36 39 45 28 60 28 Z" ${k}/>`+`<path d="M54 71 Q60 75.5 66 71" ${k}/>`+`<path data-avatar-brows="straight" d="${g="wide"===a.eyes?45:46,`M42 ${g} H54 M66 ${g} H78`}" fill="none" stroke="${h}" stroke-width="4.8" stroke-linecap="round"/>`+"</g>"+(p?`<g mask="url(#${o})">${r}</g>`:r)+function(a,b){let c=`fill="none" stroke="${b}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`;switch(a){case"reaching":return'<g data-avatar-layer="hands" data-avatar-hands="reaching">'+m(c)+"</g>";case"waving":return`<g data-avatar-layer="hands" data-avatar-hands="waving"><path d="M32 68 Q24 60 22 48" ${c}/><circle cx="21" cy="41" r="5" ${c}/><path d="M11 36 Q9 46 12 54" ${c}/></g>`;default:return`<g data-avatar-layer="hands" data-avatar-hands="folded"><rect x="44" y="79" width="32" height="9" rx="4.5" ${c}/><rect x="46" y="90" width="28" height="9" rx="4.5" ${c}/></g>`}}(a.hands,h)+(p?`<g mask="url(#${o})">${s}</g>`:s)+"</svg>"}a.s(["AVATAR_ACCESSORIES",0,g,"AVATAR_COLORS",0,d,"AVATAR_EYES",0,e,"AVATAR_HANDS",0,f,"renderAvatarSvg",0,n,"resolveAvatar",0,k],5020),a.s(["default",0,function({bot:a,config:d,size:e=28,className:f,title:g}){let h=(0,c.useId)().replace(/[^A-Za-z0-9_-]/g,"")||"avatar",i=n(d??a?.avatar_config??k(a??{}),h).replace("<svg ",`<svg width="${e}" height="${e}" `);return(0,b.jsx)("span",{className:f??"bot-avatar",style:{display:"inline-flex",width:e,height:e,flex:"none"},title:g,"aria-label":g??"Agent avatar",role:"img",dangerouslySetInnerHTML:{__html:i}})}],36391)},60193,35832,23464,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d="Permanently removes each agent with its direct conversation, messages, queue rows, approvals, launch snapshots, memories, one-shots, routines, and pending questions. There is no undo.",e="Skill files, working directories, Hermes profiles, and imported source files stay on disk.";function f(a){return"chief"===a?"Chief of Staff cannot be deleted.":"Working now — stop it or let it finish before deleting."}function g(a){return 1===a?"Delete agent":`Delete ${a} agents`}a.s(["DELETE_KEEPS_COPY",0,e,"DELETE_REMOVES_COPY",0,d,"blockedReasonCopy",0,f,"deleteConfirmLabel",0,g,"deletedStatusLine",0,function(a){return 1===a?"Deleted 1 agent.":`Deleted ${a} agents.`}],35832),a.s(["default",0,function({ids:a,onCancel:h,onDeleted:i}){let j=(0,c.useId)(),[k,l]=(0,c.useState)(null),[m,n]=(0,c.useState)(""),[o,p]=(0,c.useState)(""),[q,r]=(0,c.useState)(!1),s=(0,c.useRef)(null),t=(0,c.useRef)(null),u=a.join("\n");(0,c.useEffect)(()=>{let a=!1;return fetch("/api/bots/delete-preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:u.split("\n")})}).then(async b=>{let c=await b.json().catch(()=>null);if(!a){if(!b.ok)return void n("string"==typeof c?.error?c.error:"Could not load the deletion preview.");l(c)}}).catch(()=>{a||n("Could not load the deletion preview.")}),()=>{a=!0}},[u]),(0,c.useEffect)(()=>{s.current?.focus()},[]),(0,c.useEffect)(()=>{let a=a=>{"Escape"===a.key&&(a.stopPropagation(),q||h())};return document.addEventListener("keydown",a,!0),()=>document.removeEventListener("keydown",a,!0)},[q,h]);let v=a.length,w=!k||k.blocked.length>0||k.missing.length>0,x=async()=>{if(!q&&!w){r(!0),p("");try{let b=await fetch("/api/bots",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:a})}),c=await b.json().catch(()=>null);if(!b.ok){p("string"==typeof c?.error&&c.error?c.error:`Delete failed (${b.status}).`),r(!1),requestAnimationFrame(()=>s.current?.focus());return}i(Array.isArray(c?.deleted)?c.deleted:[])}catch{p("Delete failed: the server did not respond."),r(!1),requestAnimationFrame(()=>s.current?.focus())}}};return(0,b.jsx)("div",{className:"modal-scrim delete-scrim",onKeyDown:a=>{if("Tab"!==a.key||!t.current)return;let b=Array.from(t.current.querySelectorAll("button:not(:disabled)"));if(0===b.length)return;let c=b[0],d=b[b.length-1];a.shiftKey&&document.activeElement===c?(a.preventDefault(),d.focus()):a.shiftKey||document.activeElement!==d||(a.preventDefault(),c.focus())},children:(0,b.jsxs)("div",{ref:t,className:"delete-card",role:"alertdialog","aria-modal":"true","aria-labelledby":j,"data-testid":"delete-agents-dialog",children:[(0,b.jsx)("h2",{id:j,className:"delete-title",children:1===v?"Delete this agent permanently?":`Delete ${v} agents permanently?`}),m?(0,b.jsx)("p",{className:"delete-error",role:"alert",children:m}):null,k||m?null:(0,b.jsx)("p",{className:"delete-copy",children:"Checking what will be removed…"}),k?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("ul",{className:"delete-names","aria-label":"Agents to delete",children:[k.agents.map(a=>(0,b.jsx)("li",{children:a.name},a.id)),k.missing.map(a=>(0,b.jsxs)("li",{children:["Not found: ",a]},a))]}),k.blocked.length>0?(0,b.jsxs)("div",{className:"delete-blocked",role:"alert",children:[(0,b.jsx)("p",{children:"Nothing can be deleted until these are deselected:"}),(0,b.jsx)("ul",{children:k.blocked.map(a=>(0,b.jsxs)("li",{children:[a.name," — ",f(a.reason)]},a.id))})]}):null,(0,b.jsx)("p",{className:"delete-copy",children:d}),(0,b.jsx)("p",{className:"delete-copy delete-keeps",children:e})]}):null,o?(0,b.jsx)("p",{className:"delete-error",role:"alert",children:o}):null,(0,b.jsxs)("div",{className:"form-actions delete-actions",children:[(0,b.jsx)("button",{ref:s,type:"button",className:"cancel-btn",onClick:h,disabled:q,children:"Cancel"}),(0,b.jsx)("button",{type:"button",className:"delete-btn",onClick:()=>{x()},disabled:q||w,children:q?"Deleting…":g(v)})]})]})})}],60193);var h=a.i(65221),i=a.i(35099);function j(a){return"active"===a.state}let k=/^T[A-Z0-9]{2,20}$/,l=/^[CG][A-Z0-9]{2,20}$/;a.s(["SHARE_DURATIONS",0,[{label:"5 minutes",seconds:300},{label:"1 hour",seconds:3600},{label:"8 hours",seconds:28800},{label:"24 hours",seconds:86400}],"SHARE_STATUS_LABELS",0,{active:"Active",exhausted:"Questions used",answering:"Answering",recovering:"Recovering",expired:"Expired",revoked:"Revoked"},"audienceInputError",0,function(a,b,c){let d=a.trim(),e=b.trim();return k.test(d)?l.test(e)?c.some(a=>a.team_id===d&&a.channel_id===e)?"That channel is already on the allowlist.":null:"Channel ID must look like C0123ABCD (a public or private channel ID; no wildcards).":"Workspace ID must look like T0123ABCD (a Slack team ID; no wildcards)."},"audienceLabel",0,function(a){return`Slack channel ${a.channel_id} \xb7 workspace ${a.team_id}`},"createdByLabel",0,function(a){return"owner"===a.created_by?"Shared by you":"current_session"===a.created_by?"Shared from a turn of this session":"Shared by a service"},"expiryLabel",0,function(a,b=Date.now()){return"revoked"===a.state?`Revoked ${(0,h.formatSessionDate)(a.revoked_at??a.expires_at)}`:"expired"===a.state||a.expires_at<=b?`Expired ${(0,h.formatSessionDate)(a.expires_at)}`:`Expires ${(0,h.formatSessionDate)(a.expires_at)} (in ${function(a){let b=Math.max(1,Math.round(a/6e4));if(b<60)return`${b} min`;let c=Math.floor(b/60),d=b%60;return d?`${c} h ${d} min`:`${c} h`}(a.expires_at-b)})`},"sessionShares",0,function(a,b){let c=a.filter(a=>a.session_ref===b);return[...c.filter(j).sort((a,b)=>b.created_at-a.created_at),...c.filter(a=>!j(a)).sort((a,b)=>(b.revoked_at??b.expires_at)-(a.revoked_at??a.expires_at))]},"shareCreateAvailability",0,function(a,b){let c=`/bots/${encodeURIComponent(a.agent.id)}/config#session-sharing`;if(!b)return{available:!1,reason:"Share to Slack is unavailable: the share policy could not be loaded.",configHref:null};let d=(0,i.sessionRowActions)(a).find(a=>"ask"===a.action);return d&&!d.availability.available?{available:!1,reason:d.availability.reason.replace(/^Ask from this context is unavailable:/,"Share to Slack is unavailable:"),configHref:null}:"invalid"===b.state?{available:!1,reason:"Share to Slack is unavailable: the share policy file is invalid. Fix it in Config.",configHref:c}:0===b.audiences.length?{available:!1,reason:"Share to Slack needs a Slack channel on the share allowlist. Add one in Config.",configHref:c}:{available:!0}},"shareCreateBody",0,function(a,b,c,d){return{audience:{team_id:a.team_id,channel_id:a.channel_id},ttl_seconds:b,max_turns:c,idempotency_key:d}},"shareFromTurnNote",0,function(a){return a.agent.share_current.supported?a.agent.share_from_turn?"On: a turn Botmancers launches for this Agent can share its own session to an allowlisted channel. Turning it off revokes every live turn context at once.":"Off: no turn of this Agent can share its own session. Sessions can still be shared from the Sessions drawer.":a.agent.share_current.reason??"This runtime cannot share its own session from a turn."},"shareIsLive",0,j,"shareStatusNote",0,function(a){switch(a.status){case"active":return"Slack replies in its thread ask this session (read-only).";case"answering":return"A Slack question is being answered now. The next one waits until it finishes.";case"recovering":return"A question was interrupted by a Botmancers restart. The next Slack question clears it.";case"exhausted":return`All ${a.max_turns} questions are used. Slack questions get the limit notice; create a new share to keep going.`;case"expired":return"Expired: Slack questions get the expired notice. Its history stays here.";case"revoked":return"Revoked: Slack questions get the revoked notice. Its history stays here."}},"threadLabel",0,function(a){return a.thread.posted?`Slack thread posted ${(0,h.formatSessionDate)(a.thread.posted_at??0)}`:"active"===a.state?"Waiting for the Slack relay to post the thread":"No Slack thread was posted"},"turnsLabel",0,function(a){return`${a.turns_used} of ${a.max_turns} question${1===a.max_turns?"":"s"} used`}],23464)},1160,22855,79202,a=>{"use strict";var b=a.i(22151);let c="This computer",d={direct:"Direct",agent_deck:"Agent Deck"},e={read_only:"Read only",workspace_write:"Workspace write"},f={workspaces:"Selected workspaces",sessions:"Selected imported sessions",all_provider_sessions:"All sessions this runtime can see"};function g(a){return a.startsWith("/")||"~"===a||a.startsWith("~/")}function h(a){return a.length>1?a.replace(/\/+$/,""):a}b.AGENTS.join("|");var i=a.i(20851);let j="/api/runtime-connections",k={connection:"Runtime connection",scope:"Session scope",defaultWorkspace:"Default workspace (optional)",launchProfile:"Launch profile",policy:"Policy",homeSession:"Home session (optional)"},l={connection:"The runtime installation or account this Agent uses. Several Agents can share one.",workspaces:"One absolute path per line. An empty scope never means unrestricted.",sessions:"Only this Agent’s own Botmancers sessions can be selected.",noSessions:"This Agent has no sessions yet. Choose workspaces or all sessions for now.",allSessions:"Every session this runtime can see. Choose this only on purpose.",defaultWorkspace:"Where new sessions start. Convenience only — not a permission.",direct:"Launches the runtime directly. Agent Deck is not contacted.",agentDeck:"Launches through a verified Agent Deck from the configured server.",resumeEdits:"Needs Workspace write.",homeSession:"A stable session to return to. Must be one of this Agent’s sessions.",addConnection:"Stores a name and host only. Credentials stay with the runtime."},m="Loading runtime connections…",n="Couldn't load runtime connections — retry.";function o(){return{status:"loading",connections:[],error:""}}function p(a){return`${a.label} \xb7 ${b.AGENT_LABELS[a.provider]??a.provider}`}function q(a){if("object"!=typeof a||null===a)return null;let b=a.connections;if(!Array.isArray(b))return null;let c=[];for(let a of b){if("object"!=typeof a||null===a||"string"!=typeof a.id||"string"!=typeof a.provider||"string"!=typeof a.label)return null;c.push({id:a.id,provider:a.provider,label:a.label,host:"string"==typeof a.host?a.host:"",agent_count:"number"==typeof a.agent_count?a.agent_count:void 0})}return c}function r(a){let b=[];for(let c of a.split("\n")){let a=c.trim();a&&!b.includes(a)&&b.push(a)}return b}function s(a){return"workspaces"===a.scopeKind?{kind:"workspaces",workspaces:r(a.workspaces)}:"sessions"===a.scopeKind?{kind:"sessions",sessions:a.sessions}:{kind:a.scopeKind}}function t(a){return{mode:a.policyMode,allow_new_sessions:a.allowNewSessions,allow_resume_with_edits:a.allowResumeWithEdits}}a.s(["CONNECTIONS_ENDPOINT",0,j,"CONNECTIONS_ERROR_COPY",0,n,"CONNECTIONS_LOADING_COPY",0,m,"DEFAULT_REGISTRATION_FORM",0,{connectionId:"",scopeKind:"",workspaces:"",sessions:[],defaultWorkspace:"",launchProfile:"",deckId:"",workingDirectory:"",policyMode:"read_only",allowNewSessions:!0,allowResumeWithEdits:!1,homeSessionId:""},"HINTS",0,l,"LABELS",0,k,"connectionOptionLabel",0,p,"hasRegistrationErrors",0,function(a){return Object.keys(a.errors).length>0},"initialConnectionListState",0,o,"parseConnectionList",0,q,"registrationCreateBody",0,function(a,b){let c={name:String(a??"").trim(),runtime_connection_id:b.connectionId,launch_profile:b.launchProfile||null,session_scope:s(b),policy:t(b)},d=b.defaultWorkspace.trim();if(d&&(c.default_workspace=d),"agent_deck"===b.launchProfile){c.deck_id=b.deckId.trim();let a=b.workingDirectory.trim();a&&(c.working_directory=a)}return c},"registrationFormFromBot",0,function(a){let b=a.session_scope??null,c="direct"===a.launch_profile||"agent_deck"===a.launch_profile?a.launch_profile:"",d=!0===a.needs_deck_selection||1===a.needs_deck_selection,e=(a.working_directory??"").trim();return{connectionId:a.runtime_connection_id??"",scopeKind:b?.kind??"",workspaces:b?.kind==="workspaces"?b.workspaces.join("\n"):"",sessions:b?.kind==="sessions"?[...b.sessions]:[],defaultWorkspace:a.default_workspace??"",launchProfile:c,deckId:"agent_deck"!==c||d?"":(a.deck_id??"").trim(),workingDirectory:"agent_deck"===c&&e&&e!==(0,i.defaultWorkdirFor)(a.id??"")?e:"",policyMode:a.policy?.mode??"read_only",allowNewSessions:!a.policy||a.policy.allow_new_sessions,allowResumeWithEdits:!!a.policy&&a.policy.allow_resume_with_edits,homeSessionId:a.home_session_id??""}},"registrationFormView",0,function(a,b,c){let d={};a.connectionId||(d.connection="Pick a runtime connection.");let e=r(a.workspaces);a.scopeKind?"workspaces"===a.scopeKind?0===e.length?d.workspaces="Add at least one workspace.":e.every(g)||(d.workspaces="Workspaces must be absolute paths (or start with ~/)."):"sessions"===a.scopeKind&&0===a.sessions.length&&(d.sessions="Select at least one session."):d.scope="Choose a session scope.";let f=a.defaultWorkspace.trim();f&&(g(f)?"workspaces"!==a.scopeKind||d.workspaces||e.some(a=>{let b,c;return b=h(a),b===(c=h(f))||c.startsWith("/"===b?"/":`${b}/`)})||(d.defaultWorkspace="The default workspace must be inside one of the selected workspaces."):d.defaultWorkspace="The default workspace must be an absolute path (or start with ~/)."),a.launchProfile?"agent_deck"!==a.launchProfile||a.deckId.trim()||(d.deck="Select an Agent Deck for this agent."):d.launchProfile="Choose Direct or Agent Deck.",a.allowResumeWithEdits&&"workspace_write"!==a.policyMode&&(d.policy="Resume with edits needs the Workspace write policy.");let j="agent_deck"===a.launchProfile,k="",l=!1;return"ready"!==c.status?(l=!0,k="error"===c.status?n:""):j&&"connected"!==b.status&&(l=!0,k="loading"===b.status?"":i.DECK_SLOT_COPY[b.status]),{errors:d,showsAgentDeck:j,submitDisabled:l,blocker:k}},"registrationPatchBody",0,function(a,b){let c={id:a,runtime_connection_id:b.connectionId,launch_profile:b.launchProfile||null,session_scope:s(b),default_workspace:b.defaultWorkspace.trim(),policy:t(b),home_session_id:b.homeSessionId};if("agent_deck"===b.launchProfile){let d=b.workingDirectory.trim();c.deck_id=b.deckId.trim(),c.working_directory=d&&d!==(0,i.defaultWorkdirFor)(a)?d:""}return c},"registrationReadView",0,function(a,c,g){var h;let j,l=[{key:"connection",label:k.connection,value:(j=a.runtime_connection)?`${j.label} (${(0,b.agentLabel)(j.provider)} \xb7 ${j.host})`:"Not set"},{key:"scope",label:k.scope,value:function(a,b){if(!a)return"Not set — this Agent cannot launch until a scope is chosen.";if("all_provider_sessions"===a.kind)return f.all_provider_sessions;if("workspaces"===a.kind)return`${f.workspaces}: ${a.workspaces.join(", ")}`;let c=a.sessions.map(a=>b?.find(b=>b.ref===a)?.title??a);return`${f.sessions}: ${c.join(", ")}`}(a.session_scope,g)},{key:"defaultWorkspace",label:"Default workspace",value:a.default_workspace||"None"},{key:"launchProfile",label:k.launchProfile,value:"direct"===a.launch_profile?d.direct:"agent_deck"===a.launch_profile?d.agent_deck:"Not chosen"}],m=[];if("agent_deck"===a.launch_profile){let b=!0===a.needs_deck_selection||1===a.needs_deck_selection||!(a.deck_id??"").trim();l.push({key:"deck",label:"Agent Deck",value:b?"not selected":(0,i.deckLabel)(a.deck_id??"",c)});let d=(a.working_directory??"").trim();l.push({key:"workdir",label:"Working directory",value:d||(0,i.defaultWorkdirFor)(a.id??"{agentID}")}),!b&&(0,i.isDeckUnavailable)(a,c)&&m.push("This deck isn't on the configured server right now. Pick another deck, or fix the server in Settings.")}l.push({key:"policy",label:k.policy,value:(h=a.policy)?[e[h.mode],h.allow_new_sessions?"new sessions allowed":"no new sessions",h.allow_resume_with_edits?"resume with edits allowed":"no resume with edits"].join(" · "):"Not set"});let n=a.home_session_id?g?.find(b=>b.ref===a.home_session_id)?.title??a.home_session_id:"None";if(l.push({key:"homeSession",label:"Home session",value:n}),a.launch_profile)"direct_runtime"===a.launch_blocker&&m.push("Registered for direct launch. Direct sessions for this runtime arrive in a later Botmancers version.");else{let b=(a.deck_name??"").trim();m.push(`Choose Direct or Agent Deck before this Agent can run${b?` (was Agent Deck "${b}")`:""}.`)}return{rows:l,notices:m}}],1160);var u=a.i(87924),v=a.i(72131),w=a.i(39228);let x={modal:{fieldset:"agent-fieldset reg-fieldset",legend:"field-legend",label:"",picks:"runtime-picks",pick:"runtime-pick",stack:"reg-stack",control:"deck-control",input:"",hint:"runtime-hint",error:"form-error reg-error",button:"runtime-retry",note:"runtime-note"},config:{fieldset:"agent-fieldset reg-fieldset",legend:"block text-sm cfg-muted mt-3 mb-1 p-0",label:"block text-sm cfg-muted mt-3 mb-1",picks:"flex flex-wrap gap-x-4 gap-y-1 text-sm cfg-muted",pick:"text-sm cfg-muted",stack:"flex flex-col gap-1 text-sm cfg-muted",control:"cfg-input text-sm",input:"cfg-input text-sm",hint:"mt-1 text-xs cfg-faint",error:"mt-1 text-sm cfg-error",button:"cfg-link text-sm",note:"text-sm cfg-muted mt-1"}};function y({id:a,message:b,variant:c}){return b?(0,u.jsx)("p",{id:a,className:x[c].error,role:"alert",children:b}):null}function z({idPrefix:a,variant:b,onAdd:d}){let e=x[b],[f,g]=(0,v.useState)(!1),[h,j]=(0,v.useState)(i.AGENT_OPTIONS[0].value),[k,m]=(0,v.useState)(""),[n,o]=(0,v.useState)(""),[p,q]=(0,v.useState)(""),[r,s]=(0,v.useState)(!1),t=async()=>{if(r)return;s(!0),q("");let a=await d({provider:h,label:k,host:n.trim()||c});(s(!1),"string"==typeof a)?q(a):(g(!1),m(""),o(""))};return f?(0,u.jsxs)("div",{id:`${a}-add-connection`,className:"reg-add-connection",role:"group","aria-label":"Add connection",children:[(0,u.jsx)("label",{className:e.label,htmlFor:`${a}-add-provider`,children:"Provider"}),(0,u.jsx)("select",{id:`${a}-add-provider`,className:e.control,value:h,onChange:a=>j(a.target.value),children:i.AGENT_OPTIONS.map(a=>(0,u.jsx)("option",{value:a.value,children:a.label},a.value))}),(0,u.jsx)("label",{className:e.label,htmlFor:`${a}-add-label`,children:"Connection name"}),(0,u.jsx)("input",{id:`${a}-add-label`,type:"text",className:e.input||void 0,value:k,placeholder:"Codex on my laptop",onChange:a=>m(a.target.value),onKeyDown:a=>{"Enter"===a.key&&(a.preventDefault(),t())}}),(0,u.jsx)("label",{className:e.label,htmlFor:`${a}-add-host`,children:"Host"}),(0,u.jsx)("input",{id:`${a}-add-host`,type:"text",className:e.input||void 0,value:n,placeholder:c,"aria-describedby":`${a}-add-hint`,onChange:a=>o(a.target.value)}),(0,u.jsx)("p",{id:`${a}-add-hint`,className:e.hint,children:l.addConnection}),p?(0,u.jsx)("p",{className:e.error,role:"alert",children:p}):null,(0,u.jsxs)("div",{className:"reg-actions",children:[(0,u.jsx)("button",{type:"button",className:e.button,onClick:()=>void t(),disabled:r,children:r?"Adding…":"Add"}),(0,u.jsx)("button",{type:"button",className:e.button,"aria-expanded":"true",onClick:()=>g(!1),children:"Cancel"})]})]}):(0,u.jsx)("button",{type:"button",className:e.button,"aria-expanded":"false","aria-controls":`${a}-add-connection`,onClick:()=>g(!0),children:"Add connection…"})}a.s(["RegistrationFields",0,function({idPrefix:a,variant:b,form:c,onChange:g,view:h,showErrors:i,connections:j,onRetryConnections:o,onAddConnection:q,deckState:r,onRetryDecks:s,savedDeckId:t,workdirPlaceholder:v,workdirHint:A,sessions:B,includeHomeSession:C}){let D=x[b],E=a=>i?h.errors[a]:void 0,F=b=>`${a}-${b}-error`,G=(a,...b)=>[...b,E(a)?F(a):""].filter(Boolean).join(" ")||void 0,H=!!(B&&B.length>0);return(0,u.jsxs)("div",{className:"registration-fields","data-registration":b,children:[(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"connection","aria-describedby":G("connection",`${a}-connection-hint`),children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-connection-legend`,children:k.connection}),"loading"===j.status?(0,u.jsx)("p",{className:D.note,role:"status",children:m}):"error"===j.status?(0,u.jsxs)("p",{className:D.note,role:"status",children:[n," ",(0,u.jsx)("button",{type:"button",className:D.button,onClick:o,children:"Retry"})]}):(0,u.jsxs)("select",{id:`${a}-connection`,className:D.control,"aria-labelledby":`${a}-connection-legend`,"aria-required":"true","aria-invalid":!!E("connection")||void 0,value:c.connectionId,onChange:a=>g({connectionId:a.target.value}),children:[(0,u.jsx)("option",{value:"",disabled:!0,children:"Select a connection…"}),j.connections.map(a=>(0,u.jsx)("option",{value:a.id,children:p(a)},a.id))]}),(0,u.jsx)("p",{id:`${a}-connection-hint`,className:D.hint,children:l.connection}),(0,u.jsx)(y,{id:F("connection"),message:E("connection"),variant:b}),"ready"===j.status?(0,u.jsx)(z,{idPrefix:a,variant:b,onAdd:async a=>{let b=await q(a);return"string"!=typeof b&&g({connectionId:b.id}),b}}):null]}),(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"scope",children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-scope-legend`,children:k.scope}),(0,u.jsx)("div",{className:D.stack,role:"radiogroup","aria-labelledby":`${a}-scope-legend`,"aria-required":"true","aria-describedby":G("scope"),children:["workspaces","sessions","all_provider_sessions"].map(b=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"radio",name:`${a}-scope`,value:b,checked:c.scopeKind===b,disabled:"sessions"===b&&!H,onChange:()=>g({scopeKind:b})})," "+f[b]]},b))}),H?null:(0,u.jsx)("p",{className:D.hint,children:l.noSessions}),(0,u.jsx)(y,{id:F("scope"),message:E("scope"),variant:b}),"workspaces"===c.scopeKind?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("label",{className:D.label,htmlFor:`${a}-workspaces`,children:"Workspaces"}),(0,u.jsx)("textarea",{id:`${a}-workspaces`,className:D.input||void 0,rows:2,value:c.workspaces,placeholder:"/Users/you/work/project","aria-required":"true","aria-invalid":!!E("workspaces")||void 0,"aria-describedby":G("workspaces",`${a}-workspaces-hint`),onChange:a=>g({workspaces:a.target.value})}),(0,u.jsx)("p",{id:`${a}-workspaces-hint`,className:D.hint,children:l.workspaces}),(0,u.jsx)(y,{id:F("workspaces"),message:E("workspaces"),variant:b})]}):null,"sessions"===c.scopeKind&&B?(0,u.jsxs)("div",{className:D.stack,role:"group","aria-label":"Sessions in scope","aria-describedby":G("sessions",`${a}-sessions-hint`),children:[B.map(a=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"checkbox",checked:c.sessions.includes(a.ref),onChange:b=>g({sessions:b.target.checked?[...c.sessions,a.ref]:c.sessions.filter(b=>b!==a.ref)})}),` ${a.title} (${a.status})`]},a.ref)),(0,u.jsx)("p",{id:`${a}-sessions-hint`,className:D.hint,children:l.sessions}),(0,u.jsx)(y,{id:F("sessions"),message:E("sessions"),variant:b})]}):null,"all_provider_sessions"===c.scopeKind?(0,u.jsx)("p",{className:D.hint,children:l.allSessions}):null]}),(0,u.jsxs)("div",{"data-field":"default-workspace",children:[(0,u.jsx)("label",{className:D.label,htmlFor:`${a}-default-workspace`,children:k.defaultWorkspace}),(0,u.jsx)("input",{id:`${a}-default-workspace`,type:"text",className:D.input||void 0,value:c.defaultWorkspace,"aria-invalid":!!E("defaultWorkspace")||void 0,"aria-describedby":G("defaultWorkspace",`${a}-default-workspace-hint`),onChange:a=>g({defaultWorkspace:a.target.value})}),(0,u.jsx)("p",{id:`${a}-default-workspace-hint`,className:D.hint,children:l.defaultWorkspace}),(0,u.jsx)(y,{id:F("defaultWorkspace"),message:E("defaultWorkspace"),variant:b})]}),(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"launch-profile",children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-profile-legend`,children:k.launchProfile}),(0,u.jsx)("div",{className:D.stack,role:"radiogroup","aria-labelledby":`${a}-profile-legend`,"aria-required":"true","aria-describedby":G("launchProfile"),children:["direct","agent_deck"].map(b=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"radio",name:`${a}-profile`,value:b,checked:c.launchProfile===b,"aria-describedby":`${a}-profile-${b}-hint`,onChange:()=>g({launchProfile:b})})," "+d[b],(0,u.jsx)("span",{id:`${a}-profile-${b}-hint`,className:`reg-option-hint ${D.hint}`,children:"direct"===b?l.direct:l.agentDeck})]},b))}),(0,u.jsx)(y,{id:F("launchProfile"),message:E("launchProfile"),variant:b}),h.showsAgentDeck?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(w.AgentDeckFields,{idPrefix:a,variant:b,deckId:c.deckId,onDeckId:a=>g({deckId:a}),deckState:r,onRetry:s,savedDeckId:t,workingDirectory:c.workingDirectory,onWorkingDirectory:a=>g({workingDirectory:a}),workdirPlaceholder:v,workdirHint:A}),(0,u.jsx)(y,{id:F("deck"),message:E("deck"),variant:b})]}):null]}),(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"policy",children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-policy-legend`,children:k.policy}),(0,u.jsx)("div",{className:D.picks,role:"radiogroup","aria-labelledby":`${a}-policy-legend`,children:["read_only","workspace_write"].map(b=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"radio",name:`${a}-policy`,value:b,checked:c.policyMode===b,onChange:()=>g("read_only"===b?{policyMode:b,allowResumeWithEdits:!1}:{policyMode:b})})," "+e[b]]},b))}),(0,u.jsxs)("div",{className:D.stack,children:[(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"checkbox",checked:c.allowNewSessions,onChange:a=>g({allowNewSessions:a.target.checked})})," Allow new sessions"]}),(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"checkbox",checked:c.allowResumeWithEdits,disabled:"workspace_write"!==c.policyMode,"aria-describedby":`${a}-resume-hint`,onChange:a=>g({allowResumeWithEdits:a.target.checked})})," Allow resume with edits"]}),(0,u.jsx)("p",{id:`${a}-resume-hint`,className:D.hint,children:l.resumeEdits})]}),(0,u.jsx)(y,{id:F("policy"),message:E("policy"),variant:b})]}),C?(0,u.jsxs)("div",{"data-field":"home-session",children:[(0,u.jsx)("label",{className:D.label,htmlFor:`${a}-home-session`,children:k.homeSession}),(0,u.jsxs)("select",{id:`${a}-home-session`,className:D.control,value:c.homeSessionId,"aria-describedby":`${a}-home-session-hint`,onChange:a=>g({homeSessionId:a.target.value}),children:[(0,u.jsx)("option",{value:"",children:"None"}),(B??[]).map(a=>(0,u.jsx)("option",{value:a.ref,children:`${a.title} (${a.status})`},a.ref))]}),(0,u.jsx)("p",{id:`${a}-home-session-hint`,className:D.hint,children:l.homeSession})]}):null]})}],22855),a.s(["useRuntimeConnections",0,function(){let[a,b]=(0,v.useState)(()=>o()),[c,d]=(0,v.useState)(0);return(0,v.useEffect)(()=>{let a=!1;return fetch(j,{cache:"no-store"}).then(async c=>{let d=c.ok?q(await c.json().catch(()=>null)):null;a||b(d?{status:"ready",connections:d,error:""}:{status:"error",connections:[],error:`HTTP ${c.status}`})}).catch(c=>{a||b({status:"error",connections:[],error:c instanceof Error?c.message:String(c)})}),()=>{a=!0}},[c]),{state:a,retry:(0,v.useCallback)(()=>{b(o()),d(a=>a+1)},[]),add:(0,v.useCallback)(async a=>{let c=await fetch(j,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),d=await c.json().catch(()=>null);if(!c.ok)return"string"==typeof d?.error?d.error:"Failed to add the connection";let e=q({connections:[d]})?.[0];return e?(b(a=>({status:"ready",connections:[...a.connections,e],error:""})),e):"Failed to add the connection"},[])}}],79202)},80219,a=>{"use strict";let b="imported",c=/^[A-Za-z0-9_-]{1,128}$/;function d(a){let d=new URLSearchParams(a).get(b);if(null===d)return null;let e=d.trim();return c.test(e)?e:""}function e(a){return`/bots/${encodeURIComponent(a)}/config`}async function f(a,b,c){let f=d(a);if(null===f)return{kind:"none"};if(!f)return{kind:"missing"};if(f===b)return{kind:"stay"};try{return await c(f)?{kind:"open",path:e(f)}:{kind:"missing"}}catch{return{kind:"missing"}}}a.s(["HANDOFF_STATUS_PATH",0,"/api/marketplace-handoff/status","IMPORT_RETURN_QUERY",0,b,"handoffStartPath",0,function(a,b){return`/api/marketplace-handoff?return=${encodeURIComponent(a+b)}`},"importedBotId",0,d,"importedConfigPath",0,e,"marketImportView",0,function(a){switch(a){case"checking":return{busy:!0,tone:"muted",message:"Checking Grok Marketplace…"};case"redirecting":return{busy:!0,tone:"muted",message:"Opening Grok Marketplace…"};case"unavailable":return{busy:!1,tone:"error",message:"Grok Marketplace isn't configured. Set CLONE_MARKET_URL on the Botmancers server."};case"failed":return{busy:!1,tone:"error",message:"Couldn't reach Botmancers to start the import. Try again."};case"missing":return{busy:!1,tone:"error",message:"Imported agent not found. The import may not have completed."};default:return{busy:!1,tone:"muted",message:"Imports a new agent and opens its Config. This agent is not changed."}}},"resolveImportReturn",0,f])}];
2
2
 
3
3
  //# sourceMappingURL=_1cvuhjt._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[35099,65221,a=>{"use strict";function b(a){return`${new Date(a).toISOString().slice(0,16).replace("T"," ")} UTC`}let c="Not reported";function d(a){return a.toFixed(1).replace(/\.0$/,"")}function e(a){return a.toLocaleString("en-US")}function f(a){return 0===a?"$0.00":a>=.01?`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:a<1e-4?"<$0.0001":`$${a.toFixed(4)}`}let g={input_tokens:"Input tokens",output_tokens:"Output tokens",cost_usd:"Cost"};function h(a,b,c){return"cost_usd"===a?f(b):c?e(b):b<1e3?String(b):b<999950?`${d(b/1e3)}k`:b<99995e4?`${d(b/1e6)}M`:`${d(b/1e9)}B`}function i(a){return`${a} ${1===a?"run":"runs"}`}function j(a,b,d=!1){let e=g[a];if(!b||"unavailable"===b.quality||null===b.sum)return{name:e,text:c,quality:"unavailable",coverage:b&&b.total>0?`0 of ${i(b.total)} reported`:"No runs recorded",label:`${e}: not reported`};let f=h(a,b.sum,d),k=h(a,b.sum,!0);return"partial"===b.quality?{name:e,text:f,quality:"partial",coverage:`Partial: ${b.known} of ${i(b.total)} reported`,label:`${e}: at least ${k}, partial, reported by ${b.known} of ${i(b.total)}`}:{name:e,text:f,quality:"complete",coverage:`All ${i(b.total)} reported`,label:`${e}: ${k}, reported by all ${i(b.total)}`}}a.s(["SESSION_FILTER_OPTIONS",0,[{value:"all",label:"All"},{value:"active",label:"Active"},{value:"ended",label:"Ended"}],"attemptLabel",0,function(a){let b="source"===a.role?"Started the session":"Resumed the session";return`${b} \xb7 ${a.outcome??"running"}`},"emptySessionsCopy",0,function(a,b){return"active"===a?`${b} has no active sessions.`:"ended"===a?`${b} has no ended sessions.`:`${b} has no sessions yet. One appears after a coding run keeps its runtime context.`},"formatSessionDate",0,b,"runtimeLabel",0,function(a){return a.agent.transport?`${a.agent.adapter} \xb7 ${a.agent.transport}`:a.agent.adapter},"sessionStateTags",0,function(a){let b=[];return(a.home&&b.push("Home"),a.state?.availability==="missing")?[...b,"Missing"]:(a.state?.lifecycle==="archived"&&b.push("Archived"),a.state?.busy&&b.push("Busy"),(a.resumable||a.state?.resumable===!0)&&b.push("Resumable"),b)},"sessionUsageLine",0,function(a){let b=j("input_tokens",a?.input_tokens),d=j("output_tokens",a?.output_tokens),e=j("cost_usd",a?.cost_usd),f=[b,d,e];if(f.every(a=>"unavailable"===a.quality))return{text:c,label:"Usage: not reported",quality:"unavailable",partial:!1};let g=["unavailable"===b.quality?"input not reported":`${b.text} in`,"unavailable"===d.quality?"output not reported":`${d.text} out`,"unavailable"===e.quality?"cost not reported":e.text].join(" · "),h=f.some(a=>"partial"===a.quality),i=h||f.some(a=>"unavailable"===a.quality)?"partial":"complete";return{text:g,label:`Reported usage: ${f.map(a=>a.label).join("; ")}`,quality:i,partial:h}},"statusLabel",0,function(a){return"active"===a.status?"Active":"Ended"},"usageMetricView",0,j,"usageSampleLabel",0,function(a,b){let c="turn"===a.kind?"start"===a.turn_kind?"provider turn, started":"provider turn":"resume"===a.turn_kind?"resumed":"started";return`Run ${b+1} \xb7 ${c}`},"usageSampleValues",0,function(a){return{input:null===a.input_tokens?c:e(a.input_tokens),output:null===a.output_tokens?c:e(a.output_tokens),cost:null===a.cost_usd?c:f(a.cost_usd)}},"workRequestLabel",0,function(a){var b;let c=a.origin.work_request;return c?`${(b=c.execution_kind)?b[0].toUpperCase()+b.slice(1):b} \xb7 ${c.state}`:null}],65221);let k={ask:"Ask from this context",resume:"Resume work here",handoff:"Hand off to…"},l=["queued","extracting","delivering","completed","failed","cancelled"],m=["completed","failed","cancelled"];function n(a,b){switch(b){case"queued":return"Queued";case"extracting":return"ask"===a?"Asking the session":"Extracting handoff";case"delivering":return"Delivering handoff";case"completed":return"ask"===a?"Answered":"Handed off";case"failed":return"Failed";case"cancelled":return"Cancelled"}}function o(a,b=140){let c=String(a??"").split("\n").map(a=>a.trim()).filter(a=>a.length>0).join(" ");return c.length>b?`${c.slice(0,b-1).trimEnd()}…`:c}function p(a,b){return b.updated_at-a.updated_at||b.created_at-a.created_at||(a.id<b.id?-1:+(a.id>b.id))}a.s(["DEFAULT_LEDGER_FILTER",0,{mode:"all",state:"all",agentId:""},"INSTRUCTION_LIMIT",0,4e3,"MODE_FILTER_OPTIONS",0,[{value:"all",label:"All"},{value:"ask",label:"Ask"},{value:"continue",label:"Continue"}],"STATE_FILTER_OPTIONS",0,[{value:"all",label:"Any status"},{value:"active",label:"In progress"},{value:"queued",label:"Queued"},{value:"extracting",label:"Asking / extracting"},{value:"delivering",label:"Delivering"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"},{value:"cancelled",label:"Cancelled"}],"detailsHref",0,function(a){return`/exchanges?id=${encodeURIComponent(a)}`},"eventLabel",0,function(a,b){let c=a.data??{},d=b.source.agent_name,e=b.destination?.agent_name??"the destination Agent",f="string"==typeof c.hop?c.hop:null;switch(a.type){case"created":return"ask"===b.mode?`You asked ${d}'s session a question`:`You handed ${d}'s session to ${e}`;case"hop_queued":if("deliver"===f)return`Handoff queued for ${e}'s new session`;return"extract"===f?`Handoff extraction queued in ${d}'s session`:`Question queued for ${d}'s session`;case"hop_started":if("deliver"===f)return`${e} started a new session`;return"extract"===f?`${d}'s session started extracting the handoff`:`${d}'s session started answering`;case"state_changed":{let a="string"==typeof c.to&&l.includes(c.to)?c.to:null;return a?`Now ${n(b.mode,a).toLowerCase()}`:"State changed"}case"answer_returned":return`Answer returned to ${b.origin?.label??"the origin thread"}${c.truncated?" (shortened)":""}`;case"packet_extracted":return"Handoff packet extracted";case"packet_rejected":return`Handoff packet refused${"string"==typeof c.reason?`: ${c.reason}`:""}`;case"destination_replied":return`${e} replied in ${b.destination?.conversation?.label??"its thread"}`;case"destination_session_rejected":return`${e}'s session was not new; the handoff stopped`;case"cancel_requested":return"You asked to cancel";case"hop_result_discarded":return"A late result was discarded";default:return a.type.replace(/_/g," ")}},"excerpt",0,o,"exchangeRequestBody",0,function(a,b,c){let d={mode:a.mode,idempotency_key:c,origin_conversation_id:a.originConversationId,source:{agent_id:b.agentId,session_ref:b.sessionRef},instruction:a.instruction.trim()};return"continue"===a.mode&&(d.destination={agent_id:a.destinationAgentId}),d},"failureAdvice",0,function(a){if("failed"!==a.state)return null;switch(a.failure?.code){case"packet_invalid":case"packet_missing":return"The source session did not return a usable handoff. Start a new Continue with a clearer objective.";case"destination_session_invalid":return"The destination did not start a fresh session. Check its runtime, then start a new Continue.";case"destination_turn_failed":return"Check the destination Agent’s runtime, then start a new Continue from the source session.";case"source_turn_failed":return"Check the source Agent’s runtime, then start a new exchange from its Sessions.";default:return"Start a new exchange from the session to try again."}},"formatExchangeTime",0,function(a){return b(a)},"instructionHeading",0,function(a){return"ask"===a?"Question":"Objective"},"ledgerAgents",0,function(a){let b=new Map;for(let c of a)b.set(c.source.agent_id,c.source.agent_name),c.destination&&b.set(c.destination.agent_id,c.destination.agent_name);return[...b.entries()].map(([a,b])=>({id:a,name:b})).sort((a,b)=>a.name.localeCompare(b.name)||a.id.localeCompare(b.id))},"ledgerRows",0,function(a,b){return a.filter(a=>("all"===b.mode||a.mode===b.mode)&&("active"!==b.state||!a.terminal)&&("all"===b.state||"active"===b.state||a.state===b.state)&&(!b.agentId||a.source.agent_id===b.agentId||a.destination?.agent_id===b.agentId)).sort(p)},"ledgerView",0,function(a,b,c){return null===a?b?"error":"loading":0===a.length?"empty":0===c.length?"filtered-out":"rows"},"linkRoleLabel",0,function(a){let b={origin:"Started here",source:"Source session",destination:"Destination"};return a.map(a=>b[a]).join(" · ")},"liveStateLabel",0,function(a){var b;return a.cancel_requested&&(b=a.state,!m.includes(b))?"Cancelling…":n(a.mode,a.state)},"modeLabel",0,function(a){return"ask"===a?"Ask":"Continue"},"outcomeLine",0,function(a){if("completed"===a.state){if("ask"===a.mode){let b=a.origin?.label??"the origin thread";return a.outcome.answer?`Answer in ${b}: ${o(a.outcome.answer,200)}`:`Answered in ${b}.`}let b=a.destination?.agent_name??"The destination Agent";return a.outcome.reply?`${b} picked it up in a new session: ${o(a.outcome.reply,200)}`:`${b} picked it up in a new session.`}return"failed"===a.state?a.failure?.message||"The exchange failed.":"cancelled"===a.state?"Cancelled before it finished. Nothing more will run.":null},"participantsLabel",0,function(a){return"ask"===a.mode?`You → ${a.source.agent_name}`:`${a.source.agent_name} → ${a.destination?.agent_name??"another Agent"}`},"pinRequestBody",0,function(a,b,c,d,e){return{action:a,content:b.trim(),conversation_id:c,idempotency_key:e,..."resume"===a?{approve_write:d}:{}}},"sessionDialogMode",0,function(a){return"handoff"===a?"continue":a},"sessionDialogTitle",0,function(a){return k["continue"===a?"handoff":a]},"sessionDialogUsesPin",0,function(a,b){return"resume"===a||"ask"===a&&"provider"===b},"sessionLabel",0,function(a){return`${a.source.agent_name}'s session “${a.source.session_title}”`},"sessionRowActions",0,function(a){let b;if(a.actions)b=a.actions;else{let c="ended"===a.status?{available:!1,reason:"Ask from this context and Hand off to… are unavailable: this session has ended. Its history stays here."}:a.resumable?{available:!0}:{available:!1,reason:`Ask from this context and Hand off to… are unavailable: Botmancers can’t resume this session under ${a.agent.name}’s current runtime.`},d=c.available?{available:!0}:{available:!1,code:"ended"===a.status?"session_ended":"session_not_resumable",reason:c.reason,recovery:"choose_session"};b={ask:d,resume:{available:!1,code:"action_unavailable",reason:`${k.resume} is unavailable: this runtime can’t resume a session with edits.`,recovery:"choose_action"},handoff:d}}return["ask","resume","handoff"].map(a=>({action:a,label:k[a],availability:b[a]}))},"stateTone",0,function(a){return"completed"===a?"done":"failed"===a||"cancelled"===a?"stopped":"active"},"submitErrorMessage",0,function(a,b){switch(a){case"session_ended":return"This session has ended and can’t be resumed.";case"session_not_resumable":return"Botmancers can’t resume this session under the Agent’s current runtime.";case"source_session_busy":return"This session already has an exchange in progress. Wait for it or cancel it from its card.";case"agent_unavailable":return b||"That Agent has no Agent Deck selected.";case"idempotency_conflict":return"This request changed while it was being sent. Send again.";case"session_missing":return"The runtime no longer has this session. Its history stays here; choose another session.";case"approval_required":return"Resume work here needs your approval of edits. Tick the approval, then send again.";case"authority_not_allowed":return b||"This Agent’s policy doesn’t allow edits in a resumed session. Change it in Config.";case"action_unavailable":return b||"This runtime can’t do that in this session. Choose another action.";case"provider_failed":return"The runtime failed this turn. Nothing moved to another session; try again later.";default:return b||"The exchange could not be started. Your draft is kept; try again."}},"threadHref",0,function(a,b){let c=new URLSearchParams;if(a.thread_agent_id)return c.set("agent",a.thread_agent_id),b&&c.set("exchange",b),`/?${c.toString()}`;if("group"!==a.kind)return null;b&&c.set("exchange",b);let d=c.toString();return`/threads/${encodeURIComponent(a.id)}${d?`?${d}`:""}`},"validateDraft",0,function(a){let b={},c=a.instruction.trim(),d="ask"===a.mode?"a question":"an objective";return c?a.instruction.length>4e3&&(b.instruction="Keep it under 4000 characters."):b.instruction=`Enter ${d}.`,a.originConversationId||(b.origin="Choose the thread that follows this exchange."),"continue"!==a.mode||a.destinationAgentId||(b.destination="Choose the Agent who continues the work."),b},"validateResumeDraft",0,function(a,b){let c={};return a.trim()?a.length>4e3&&(c.instruction="Keep it under 4000 characters."):c.instruction="Enter what to work on.",b||(c.approval="Approve edits in this session to resume work here."),c}],35099)},69789,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
2
+
3
+ //# sourceMappingURL=_1i02yyi._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[36391,5020,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d=[{id:"purple",label:"Purple",hex:"#7C3AED"},{id:"blue",label:"Blue",hex:"#2563EB"},{id:"teal",label:"Teal",hex:"#0D9488"},{id:"green",label:"Green",hex:"#16A34A"},{id:"amber",label:"Amber",hex:"#B45309"},{id:"orange",label:"Orange",hex:"#EA580C"},{id:"pink",label:"Pink",hex:"#DB2777"},{id:"slate",label:"Slate",hex:"#64748B"}],e=[{id:"dots",label:"Round dots"},{id:"sleepy",label:"Sleepy"},{id:"happy",label:"Happy arcs"},{id:"wide",label:"Wide ovals"}],f=[{id:"folded",label:"Folded arms"},{id:"reaching",label:"Reaching right"},{id:"waving",label:"Waving"}],g=[{id:"none",label:"None"},{id:"crown",label:"Crown"},{id:"glasses",label:"Glasses"},{id:"headset",label:"Headset"},{id:"hat",label:"Hat"},{id:"bow",label:"Bow"}],h={color:"purple",eyes:"dots",hands:"folded",accessory:"none"},i={...h,accessory:"crown"};function j(a,b){return"string"==typeof b&&a.some(a=>a.id===b)}function k(a){let b=j(d,a.avatar_color)?a.avatar_color:h.color,c=j(e,a.avatar_eyes)?a.avatar_eyes:h.eyes;return{color:b,eyes:c,hands:j(f,a.avatar_hands)?a.avatar_hands:h.hands,accessory:j(g,a.avatar_accessory)?a.avatar_accessory:"chief-of-staff"===String(a.name??"").trim().toLowerCase()?i.accessory:h.accessory}}let l=[{x:70,y:70.5,w:38,h:6},{x:70,y:82,w:38,h:6}];function m(a){return l.map(b=>`<rect x="${b.x}" y="${b.y}" width="${b.w}" height="${b.h}" rx="${b.h/2}" ${a}/>`).join("")}function n(a,b="static"){var c,e;let f,g,h=d.find(b=>b.id===a.color)?.hex??d[0].hex,i=String(b).replace(/[^A-Za-z0-9_-]/g,"")||"static",j=`avatar-knockout-${i}`,k=`fill="none" stroke="${h}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`,l=(c=a.hands,e=a.accessory,f=[],"reaching"===c&&f.push({x1:87.6,y1:69,x2:90.4,y2:86.5,w:8}),"waving"===c&&f.push({x1:35,y1:59,x2:28,y2:72,w:10}),"crown"===e&&f.push({x1:44,y1:30,x2:76,y2:30,w:9}),"hat"===e&&f.push({x1:38,y1:34,x2:82,y2:34,w:9}),"bow"===e&&f.push({x1:60,y1:28.5,x2:84,y2:28,w:10}),"headset"===e&&(f.push({x1:42,y1:24.5,x2:78,y2:24.5,w:10}),f.push({x1:33,y1:55,x2:37,y2:64,w:8}),f.push({x1:83,y1:55,x2:87,y2:64,w:8})),"glasses"===e&&(f.push({x1:29,y1:56,x2:34,y2:62,w:8}),f.push({x1:86,y1:62,x2:91,y2:56,w:8})),f).map(a=>`<line x1="${a.x1}" y1="${a.y1}" x2="${a.x2}" y2="${a.y2}" stroke="#000000" stroke-width="${a.w}" stroke-linecap="round"/>`).join(""),o=`avatar-arms-${i}`,p="reaching"===a.hands,q=p?`<mask id="${o}"><rect x="0" y="0" width="120" height="120" fill="#ffffff"/>${m('fill="#000000" stroke="#000000" stroke-width="7"')}</mask>`:"",r=function(a,b){let c=`fill="none" stroke="${b}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`;switch(a){case"sleepy":return`<g data-avatar-layer="eyes" data-avatar-eyes="sleepy"><path d="M42 61 Q48 64 54 61" ${c}/><path d="M66 61 Q72 64 78 61" ${c}/></g>`;case"happy":return`<g data-avatar-layer="eyes" data-avatar-eyes="happy"><path d="M42 63 Q48 54 54 63" ${c}/><path d="M66 63 Q72 54 78 63" ${c}/></g>`;case"wide":return`<g data-avatar-layer="eyes" data-avatar-eyes="wide"><ellipse cx="48" cy="60" rx="5.5" ry="8" ${c}/><ellipse cx="72" cy="60" rx="5.5" ry="8" ${c}/></g>`;default:return`<g data-avatar-layer="eyes" data-avatar-eyes="dots"><circle cx="48" cy="60" r="3.5" ${c}/><circle cx="72" cy="60" r="3.5" ${c}/></g>`}}(a.eyes,h),s=function(a,b){let c=`fill="none" stroke="${b}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`;switch(a){case"crown":return`<g data-avatar-layer="accessory" data-avatar-accessory="crown"><path d="M44 31 L46.5 14 L54 24 L60 10 L66 24 L73.5 14 L76 31 Z" ${c}/></g>`;case"glasses":return`<g data-avatar-layer="accessory" data-avatar-accessory="glasses"><circle cx="48" cy="60" r="9" ${c}/><circle cx="72" cy="60" r="9" ${c}/><path d="M57 60 Q60 57 63 60" ${c}/><path d="M39 59 L32 57" ${c}/><path d="M81 59 L88 57" ${c}/></g>`;case"headset":return`<g data-avatar-layer="accessory" data-avatar-accessory="headset"><path d="M36 62 Q34 24 60 24 Q86 24 84 62" ${c}/><rect x="79" y="54" width="10" height="17" rx="5" ${c}/><path d="M84 71 Q80 84 66 84" ${c}/></g>`;case"hat":return`<g data-avatar-layer="accessory" data-avatar-accessory="hat"><path d="M38 34 Q60 40 82 34" ${c}/><path d="M46 34 Q48 14 60 14 Q72 14 74 34" ${c}/></g>`;case"bow":return`<g data-avatar-layer="accessory" data-avatar-accessory="bow"><circle cx="79" cy="29" r="3.5" ${c}/><path d="M76 27 L62 18 Q60 26 66 32 Z" ${c}/><path d="M82 27 L95 19 Q97 27 91 32 Z" ${c}/></g>`;default:return'<g data-avatar-layer="accessory" data-avatar-accessory="none"></g>'}}(a.accessory,h);return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" role="img" data-avatar-color="${a.color}" data-avatar-eyes="${a.eyes}" data-avatar-hands="${a.hands}" data-avatar-accessory="${a.accessory}"><mask id="${j}"><rect x="0" y="0" width="120" height="120" fill="#ffffff"/>${l}</mask>`+q+`<g data-avatar-layer="body" mask="url(#${j})">`+`<path d="M60 28 C75 28 84 39 85.5 56 L91 90 C92.5 98 87 102 79 102 L41 102 C33 102 27.5 98 29 90 L34.5 56 C36 39 45 28 60 28 Z" ${k}/>`+`<path d="M54 71 Q60 75.5 66 71" ${k}/>`+`<path data-avatar-brows="straight" d="${g="wide"===a.eyes?45:46,`M42 ${g} H54 M66 ${g} H78`}" fill="none" stroke="${h}" stroke-width="4.8" stroke-linecap="round"/>`+"</g>"+(p?`<g mask="url(#${o})">${r}</g>`:r)+function(a,b){let c=`fill="none" stroke="${b}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`;switch(a){case"reaching":return'<g data-avatar-layer="hands" data-avatar-hands="reaching">'+m(c)+"</g>";case"waving":return`<g data-avatar-layer="hands" data-avatar-hands="waving"><path d="M32 68 Q24 60 22 48" ${c}/><circle cx="21" cy="41" r="5" ${c}/><path d="M11 36 Q9 46 12 54" ${c}/></g>`;default:return`<g data-avatar-layer="hands" data-avatar-hands="folded"><rect x="44" y="79" width="32" height="9" rx="4.5" ${c}/><rect x="46" y="90" width="28" height="9" rx="4.5" ${c}/></g>`}}(a.hands,h)+(p?`<g mask="url(#${o})">${s}</g>`:s)+"</svg>"}a.s(["AVATAR_ACCESSORIES",0,g,"AVATAR_COLORS",0,d,"AVATAR_EYES",0,e,"AVATAR_HANDS",0,f,"renderAvatarSvg",0,n,"resolveAvatar",0,k],5020),a.s(["default",0,function({bot:a,config:d,size:e=28,className:f,title:g}){let h=(0,c.useId)().replace(/[^A-Za-z0-9_-]/g,"")||"avatar",i=n(d??a?.avatar_config??k(a??{}),h).replace("<svg ",`<svg width="${e}" height="${e}" `);return(0,b.jsx)("span",{className:f??"bot-avatar",style:{display:"inline-flex",width:e,height:e,flex:"none"},title:g,"aria-label":g??"Agent avatar",role:"img",dangerouslySetInnerHTML:{__html:i}})}],36391)},60193,35832,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d="Permanently removes each agent with its direct conversation, messages, queue rows, approvals, launch snapshots, memories, one-shots, routines, and pending questions. There is no undo.",e="Skill files, working directories, Hermes profiles, and imported source files stay on disk.";function f(a){return"chief"===a?"Chief of Staff cannot be deleted.":"Working now — stop it or let it finish before deleting."}function g(a){return 1===a?"Delete agent":`Delete ${a} agents`}a.s(["DELETE_KEEPS_COPY",0,e,"DELETE_REMOVES_COPY",0,d,"blockedReasonCopy",0,f,"deleteConfirmLabel",0,g,"deletedStatusLine",0,function(a){return 1===a?"Deleted 1 agent.":`Deleted ${a} agents.`}],35832),a.s(["default",0,function({ids:a,onCancel:h,onDeleted:i}){let j=(0,c.useId)(),[k,l]=(0,c.useState)(null),[m,n]=(0,c.useState)(""),[o,p]=(0,c.useState)(""),[q,r]=(0,c.useState)(!1),s=(0,c.useRef)(null),t=(0,c.useRef)(null),u=a.join("\n");(0,c.useEffect)(()=>{let a=!1;return fetch("/api/bots/delete-preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:u.split("\n")})}).then(async b=>{let c=await b.json().catch(()=>null);if(!a){if(!b.ok)return void n("string"==typeof c?.error?c.error:"Could not load the deletion preview.");l(c)}}).catch(()=>{a||n("Could not load the deletion preview.")}),()=>{a=!0}},[u]),(0,c.useEffect)(()=>{s.current?.focus()},[]),(0,c.useEffect)(()=>{let a=a=>{"Escape"===a.key&&(a.stopPropagation(),q||h())};return document.addEventListener("keydown",a,!0),()=>document.removeEventListener("keydown",a,!0)},[q,h]);let v=a.length,w=!k||k.blocked.length>0||k.missing.length>0,x=async()=>{if(!q&&!w){r(!0),p("");try{let b=await fetch("/api/bots",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:a})}),c=await b.json().catch(()=>null);if(!b.ok){p("string"==typeof c?.error&&c.error?c.error:`Delete failed (${b.status}).`),r(!1),requestAnimationFrame(()=>s.current?.focus());return}i(Array.isArray(c?.deleted)?c.deleted:[])}catch{p("Delete failed: the server did not respond."),r(!1),requestAnimationFrame(()=>s.current?.focus())}}};return(0,b.jsx)("div",{className:"modal-scrim delete-scrim",onKeyDown:a=>{if("Tab"!==a.key||!t.current)return;let b=Array.from(t.current.querySelectorAll("button:not(:disabled)"));if(0===b.length)return;let c=b[0],d=b[b.length-1];a.shiftKey&&document.activeElement===c?(a.preventDefault(),d.focus()):a.shiftKey||document.activeElement!==d||(a.preventDefault(),c.focus())},children:(0,b.jsxs)("div",{ref:t,className:"delete-card",role:"alertdialog","aria-modal":"true","aria-labelledby":j,"data-testid":"delete-agents-dialog",children:[(0,b.jsx)("h2",{id:j,className:"delete-title",children:1===v?"Delete this agent permanently?":`Delete ${v} agents permanently?`}),m?(0,b.jsx)("p",{className:"delete-error",role:"alert",children:m}):null,k||m?null:(0,b.jsx)("p",{className:"delete-copy",children:"Checking what will be removed…"}),k?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("ul",{className:"delete-names","aria-label":"Agents to delete",children:[k.agents.map(a=>(0,b.jsx)("li",{children:a.name},a.id)),k.missing.map(a=>(0,b.jsxs)("li",{children:["Not found: ",a]},a))]}),k.blocked.length>0?(0,b.jsxs)("div",{className:"delete-blocked",role:"alert",children:[(0,b.jsx)("p",{children:"Nothing can be deleted until these are deselected:"}),(0,b.jsx)("ul",{children:k.blocked.map(a=>(0,b.jsxs)("li",{children:[a.name," — ",f(a.reason)]},a.id))})]}):null,(0,b.jsx)("p",{className:"delete-copy",children:d}),(0,b.jsx)("p",{className:"delete-copy delete-keeps",children:e})]}):null,o?(0,b.jsx)("p",{className:"delete-error",role:"alert",children:o}):null,(0,b.jsxs)("div",{className:"form-actions delete-actions",children:[(0,b.jsx)("button",{ref:s,type:"button",className:"cancel-btn",onClick:h,disabled:q,children:"Cancel"}),(0,b.jsx)("button",{type:"button",className:"delete-btn",onClick:()=>{x()},disabled:q||w,children:q?"Deleting…":g(v)})]})]})})}],60193)},1160,22855,79202,a=>{"use strict";var b=a.i(22151);let c="This computer",d={direct:"Direct",agent_deck:"Agent Deck"},e={read_only:"Read only",workspace_write:"Workspace write"},f={workspaces:"Selected workspaces",sessions:"Selected imported sessions",all_provider_sessions:"All sessions this runtime can see"};function g(a){return a.startsWith("/")||"~"===a||a.startsWith("~/")}function h(a){return a.length>1?a.replace(/\/+$/,""):a}b.AGENTS.join("|");var i=a.i(20851);let j="/api/runtime-connections",k={connection:"Runtime connection",scope:"Session scope",defaultWorkspace:"Default workspace (optional)",launchProfile:"Launch profile",policy:"Policy",homeSession:"Home session (optional)"},l={connection:"The runtime installation or account this Agent uses. Several Agents can share one.",workspaces:"One absolute path per line. An empty scope never means unrestricted.",sessions:"Only this Agent’s own Botmancers sessions can be selected.",noSessions:"This Agent has no sessions yet. Choose workspaces or all sessions for now.",allSessions:"Every session this runtime can see. Choose this only on purpose.",defaultWorkspace:"Where new sessions start. Convenience only — not a permission.",direct:"Launches the runtime directly. Agent Deck is not contacted.",agentDeck:"Launches through a verified Agent Deck from the configured server.",resumeEdits:"Needs Workspace write.",homeSession:"A stable session to return to. Must be one of this Agent’s sessions.",addConnection:"Stores a name and host only. Credentials stay with the runtime."},m="Loading runtime connections…",n="Couldn't load runtime connections — retry.";function o(){return{status:"loading",connections:[],error:""}}function p(a){return`${a.label} \xb7 ${b.AGENT_LABELS[a.provider]??a.provider}`}function q(a){if("object"!=typeof a||null===a)return null;let b=a.connections;if(!Array.isArray(b))return null;let c=[];for(let a of b){if("object"!=typeof a||null===a||"string"!=typeof a.id||"string"!=typeof a.provider||"string"!=typeof a.label)return null;c.push({id:a.id,provider:a.provider,label:a.label,host:"string"==typeof a.host?a.host:"",agent_count:"number"==typeof a.agent_count?a.agent_count:void 0})}return c}function r(a){let b=[];for(let c of a.split("\n")){let a=c.trim();a&&!b.includes(a)&&b.push(a)}return b}function s(a){return"workspaces"===a.scopeKind?{kind:"workspaces",workspaces:r(a.workspaces)}:"sessions"===a.scopeKind?{kind:"sessions",sessions:a.sessions}:{kind:a.scopeKind}}function t(a){return{mode:a.policyMode,allow_new_sessions:a.allowNewSessions,allow_resume_with_edits:a.allowResumeWithEdits}}a.s(["CONNECTIONS_ENDPOINT",0,j,"CONNECTIONS_ERROR_COPY",0,n,"CONNECTIONS_LOADING_COPY",0,m,"DEFAULT_REGISTRATION_FORM",0,{connectionId:"",scopeKind:"",workspaces:"",sessions:[],defaultWorkspace:"",launchProfile:"",deckId:"",workingDirectory:"",policyMode:"read_only",allowNewSessions:!0,allowResumeWithEdits:!1,homeSessionId:""},"HINTS",0,l,"LABELS",0,k,"connectionOptionLabel",0,p,"hasRegistrationErrors",0,function(a){return Object.keys(a.errors).length>0},"initialConnectionListState",0,o,"parseConnectionList",0,q,"registrationCreateBody",0,function(a,b){let c={name:String(a??"").trim(),runtime_connection_id:b.connectionId,launch_profile:b.launchProfile||null,session_scope:s(b),policy:t(b)},d=b.defaultWorkspace.trim();if(d&&(c.default_workspace=d),"agent_deck"===b.launchProfile){c.deck_id=b.deckId.trim();let a=b.workingDirectory.trim();a&&(c.working_directory=a)}return c},"registrationFormFromBot",0,function(a){let b=a.session_scope??null,c="direct"===a.launch_profile||"agent_deck"===a.launch_profile?a.launch_profile:"",d=!0===a.needs_deck_selection||1===a.needs_deck_selection,e=(a.working_directory??"").trim();return{connectionId:a.runtime_connection_id??"",scopeKind:b?.kind??"",workspaces:b?.kind==="workspaces"?b.workspaces.join("\n"):"",sessions:b?.kind==="sessions"?[...b.sessions]:[],defaultWorkspace:a.default_workspace??"",launchProfile:c,deckId:"agent_deck"!==c||d?"":(a.deck_id??"").trim(),workingDirectory:"agent_deck"===c&&e&&e!==(0,i.defaultWorkdirFor)(a.id??"")?e:"",policyMode:a.policy?.mode??"read_only",allowNewSessions:!a.policy||a.policy.allow_new_sessions,allowResumeWithEdits:!!a.policy&&a.policy.allow_resume_with_edits,homeSessionId:a.home_session_id??""}},"registrationFormView",0,function(a,b,c){let d={};a.connectionId||(d.connection="Pick a runtime connection.");let e=r(a.workspaces);a.scopeKind?"workspaces"===a.scopeKind?0===e.length?d.workspaces="Add at least one workspace.":e.every(g)||(d.workspaces="Workspaces must be absolute paths (or start with ~/)."):"sessions"===a.scopeKind&&0===a.sessions.length&&(d.sessions="Select at least one session."):d.scope="Choose a session scope.";let f=a.defaultWorkspace.trim();f&&(g(f)?"workspaces"!==a.scopeKind||d.workspaces||e.some(a=>{let b,c;return b=h(a),b===(c=h(f))||c.startsWith("/"===b?"/":`${b}/`)})||(d.defaultWorkspace="The default workspace must be inside one of the selected workspaces."):d.defaultWorkspace="The default workspace must be an absolute path (or start with ~/)."),a.launchProfile?"agent_deck"!==a.launchProfile||a.deckId.trim()||(d.deck="Select an Agent Deck for this agent."):d.launchProfile="Choose Direct or Agent Deck.",a.allowResumeWithEdits&&"workspace_write"!==a.policyMode&&(d.policy="Resume with edits needs the Workspace write policy.");let j="agent_deck"===a.launchProfile,k="",l=!1;return"ready"!==c.status?(l=!0,k="error"===c.status?n:""):j&&"connected"!==b.status&&(l=!0,k="loading"===b.status?"":i.DECK_SLOT_COPY[b.status]),{errors:d,showsAgentDeck:j,submitDisabled:l,blocker:k}},"registrationPatchBody",0,function(a,b){let c={id:a,runtime_connection_id:b.connectionId,launch_profile:b.launchProfile||null,session_scope:s(b),default_workspace:b.defaultWorkspace.trim(),policy:t(b),home_session_id:b.homeSessionId};if("agent_deck"===b.launchProfile){let d=b.workingDirectory.trim();c.deck_id=b.deckId.trim(),c.working_directory=d&&d!==(0,i.defaultWorkdirFor)(a)?d:""}return c},"registrationReadView",0,function(a,c,g){var h;let j,l=[{key:"connection",label:k.connection,value:(j=a.runtime_connection)?`${j.label} (${(0,b.agentLabel)(j.provider)} \xb7 ${j.host})`:"Not set"},{key:"scope",label:k.scope,value:function(a,b){if(!a)return"Not set — this Agent cannot launch until a scope is chosen.";if("all_provider_sessions"===a.kind)return f.all_provider_sessions;if("workspaces"===a.kind)return`${f.workspaces}: ${a.workspaces.join(", ")}`;let c=a.sessions.map(a=>b?.find(b=>b.ref===a)?.title??a);return`${f.sessions}: ${c.join(", ")}`}(a.session_scope,g)},{key:"defaultWorkspace",label:"Default workspace",value:a.default_workspace||"None"},{key:"launchProfile",label:k.launchProfile,value:"direct"===a.launch_profile?d.direct:"agent_deck"===a.launch_profile?d.agent_deck:"Not chosen"}],m=[];if("agent_deck"===a.launch_profile){let b=!0===a.needs_deck_selection||1===a.needs_deck_selection||!(a.deck_id??"").trim();l.push({key:"deck",label:"Agent Deck",value:b?"not selected":(0,i.deckLabel)(a.deck_id??"",c)});let d=(a.working_directory??"").trim();l.push({key:"workdir",label:"Working directory",value:d||(0,i.defaultWorkdirFor)(a.id??"{agentID}")}),!b&&(0,i.isDeckUnavailable)(a,c)&&m.push("This deck isn't on the configured server right now. Pick another deck, or fix the server in Settings.")}l.push({key:"policy",label:k.policy,value:(h=a.policy)?[e[h.mode],h.allow_new_sessions?"new sessions allowed":"no new sessions",h.allow_resume_with_edits?"resume with edits allowed":"no resume with edits"].join(" · "):"Not set"});let n=a.home_session_id?g?.find(b=>b.ref===a.home_session_id)?.title??a.home_session_id:"None";if(l.push({key:"homeSession",label:"Home session",value:n}),a.launch_profile)"direct_runtime"===a.launch_blocker&&m.push("Registered for direct launch. Direct sessions for this runtime arrive in a later Botmancers version.");else{let b=(a.deck_name??"").trim();m.push(`Choose Direct or Agent Deck before this Agent can run${b?` (was Agent Deck "${b}")`:""}.`)}return{rows:l,notices:m}}],1160);var u=a.i(87924),v=a.i(72131),w=a.i(39228);let x={modal:{fieldset:"agent-fieldset reg-fieldset",legend:"field-legend",label:"",picks:"runtime-picks",pick:"runtime-pick",stack:"reg-stack",control:"deck-control",input:"",hint:"runtime-hint",error:"form-error reg-error",button:"runtime-retry",note:"runtime-note"},config:{fieldset:"agent-fieldset reg-fieldset",legend:"block text-sm cfg-muted mt-3 mb-1 p-0",label:"block text-sm cfg-muted mt-3 mb-1",picks:"flex flex-wrap gap-x-4 gap-y-1 text-sm cfg-muted",pick:"text-sm cfg-muted",stack:"flex flex-col gap-1 text-sm cfg-muted",control:"cfg-input text-sm",input:"cfg-input text-sm",hint:"mt-1 text-xs cfg-faint",error:"mt-1 text-sm cfg-error",button:"cfg-link text-sm",note:"text-sm cfg-muted mt-1"}};function y({id:a,message:b,variant:c}){return b?(0,u.jsx)("p",{id:a,className:x[c].error,role:"alert",children:b}):null}function z({idPrefix:a,variant:b,onAdd:d}){let e=x[b],[f,g]=(0,v.useState)(!1),[h,j]=(0,v.useState)(i.AGENT_OPTIONS[0].value),[k,m]=(0,v.useState)(""),[n,o]=(0,v.useState)(""),[p,q]=(0,v.useState)(""),[r,s]=(0,v.useState)(!1),t=async()=>{if(r)return;s(!0),q("");let a=await d({provider:h,label:k,host:n.trim()||c});(s(!1),"string"==typeof a)?q(a):(g(!1),m(""),o(""))};return f?(0,u.jsxs)("div",{id:`${a}-add-connection`,className:"reg-add-connection",role:"group","aria-label":"Add connection",children:[(0,u.jsx)("label",{className:e.label,htmlFor:`${a}-add-provider`,children:"Provider"}),(0,u.jsx)("select",{id:`${a}-add-provider`,className:e.control,value:h,onChange:a=>j(a.target.value),children:i.AGENT_OPTIONS.map(a=>(0,u.jsx)("option",{value:a.value,children:a.label},a.value))}),(0,u.jsx)("label",{className:e.label,htmlFor:`${a}-add-label`,children:"Connection name"}),(0,u.jsx)("input",{id:`${a}-add-label`,type:"text",className:e.input||void 0,value:k,placeholder:"Codex on my laptop",onChange:a=>m(a.target.value),onKeyDown:a=>{"Enter"===a.key&&(a.preventDefault(),t())}}),(0,u.jsx)("label",{className:e.label,htmlFor:`${a}-add-host`,children:"Host"}),(0,u.jsx)("input",{id:`${a}-add-host`,type:"text",className:e.input||void 0,value:n,placeholder:c,"aria-describedby":`${a}-add-hint`,onChange:a=>o(a.target.value)}),(0,u.jsx)("p",{id:`${a}-add-hint`,className:e.hint,children:l.addConnection}),p?(0,u.jsx)("p",{className:e.error,role:"alert",children:p}):null,(0,u.jsxs)("div",{className:"reg-actions",children:[(0,u.jsx)("button",{type:"button",className:e.button,onClick:()=>void t(),disabled:r,children:r?"Adding…":"Add"}),(0,u.jsx)("button",{type:"button",className:e.button,"aria-expanded":"true",onClick:()=>g(!1),children:"Cancel"})]})]}):(0,u.jsx)("button",{type:"button",className:e.button,"aria-expanded":"false","aria-controls":`${a}-add-connection`,onClick:()=>g(!0),children:"Add connection…"})}a.s(["RegistrationFields",0,function({idPrefix:a,variant:b,form:c,onChange:g,view:h,showErrors:i,connections:j,onRetryConnections:o,onAddConnection:q,deckState:r,onRetryDecks:s,savedDeckId:t,workdirPlaceholder:v,workdirHint:A,sessions:B,includeHomeSession:C}){let D=x[b],E=a=>i?h.errors[a]:void 0,F=b=>`${a}-${b}-error`,G=(a,...b)=>[...b,E(a)?F(a):""].filter(Boolean).join(" ")||void 0,H=!!(B&&B.length>0);return(0,u.jsxs)("div",{className:"registration-fields","data-registration":b,children:[(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"connection","aria-describedby":G("connection",`${a}-connection-hint`),children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-connection-legend`,children:k.connection}),"loading"===j.status?(0,u.jsx)("p",{className:D.note,role:"status",children:m}):"error"===j.status?(0,u.jsxs)("p",{className:D.note,role:"status",children:[n," ",(0,u.jsx)("button",{type:"button",className:D.button,onClick:o,children:"Retry"})]}):(0,u.jsxs)("select",{id:`${a}-connection`,className:D.control,"aria-labelledby":`${a}-connection-legend`,"aria-required":"true","aria-invalid":!!E("connection")||void 0,value:c.connectionId,onChange:a=>g({connectionId:a.target.value}),children:[(0,u.jsx)("option",{value:"",disabled:!0,children:"Select a connection…"}),j.connections.map(a=>(0,u.jsx)("option",{value:a.id,children:p(a)},a.id))]}),(0,u.jsx)("p",{id:`${a}-connection-hint`,className:D.hint,children:l.connection}),(0,u.jsx)(y,{id:F("connection"),message:E("connection"),variant:b}),"ready"===j.status?(0,u.jsx)(z,{idPrefix:a,variant:b,onAdd:async a=>{let b=await q(a);return"string"!=typeof b&&g({connectionId:b.id}),b}}):null]}),(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"scope",children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-scope-legend`,children:k.scope}),(0,u.jsx)("div",{className:D.stack,role:"radiogroup","aria-labelledby":`${a}-scope-legend`,"aria-required":"true","aria-describedby":G("scope"),children:["workspaces","sessions","all_provider_sessions"].map(b=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"radio",name:`${a}-scope`,value:b,checked:c.scopeKind===b,disabled:"sessions"===b&&!H,onChange:()=>g({scopeKind:b})})," "+f[b]]},b))}),H?null:(0,u.jsx)("p",{className:D.hint,children:l.noSessions}),(0,u.jsx)(y,{id:F("scope"),message:E("scope"),variant:b}),"workspaces"===c.scopeKind?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("label",{className:D.label,htmlFor:`${a}-workspaces`,children:"Workspaces"}),(0,u.jsx)("textarea",{id:`${a}-workspaces`,className:D.input||void 0,rows:2,value:c.workspaces,placeholder:"/Users/you/work/project","aria-required":"true","aria-invalid":!!E("workspaces")||void 0,"aria-describedby":G("workspaces",`${a}-workspaces-hint`),onChange:a=>g({workspaces:a.target.value})}),(0,u.jsx)("p",{id:`${a}-workspaces-hint`,className:D.hint,children:l.workspaces}),(0,u.jsx)(y,{id:F("workspaces"),message:E("workspaces"),variant:b})]}):null,"sessions"===c.scopeKind&&B?(0,u.jsxs)("div",{className:D.stack,role:"group","aria-label":"Sessions in scope","aria-describedby":G("sessions",`${a}-sessions-hint`),children:[B.map(a=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"checkbox",checked:c.sessions.includes(a.ref),onChange:b=>g({sessions:b.target.checked?[...c.sessions,a.ref]:c.sessions.filter(b=>b!==a.ref)})}),` ${a.title} (${a.status})`]},a.ref)),(0,u.jsx)("p",{id:`${a}-sessions-hint`,className:D.hint,children:l.sessions}),(0,u.jsx)(y,{id:F("sessions"),message:E("sessions"),variant:b})]}):null,"all_provider_sessions"===c.scopeKind?(0,u.jsx)("p",{className:D.hint,children:l.allSessions}):null]}),(0,u.jsxs)("div",{"data-field":"default-workspace",children:[(0,u.jsx)("label",{className:D.label,htmlFor:`${a}-default-workspace`,children:k.defaultWorkspace}),(0,u.jsx)("input",{id:`${a}-default-workspace`,type:"text",className:D.input||void 0,value:c.defaultWorkspace,"aria-invalid":!!E("defaultWorkspace")||void 0,"aria-describedby":G("defaultWorkspace",`${a}-default-workspace-hint`),onChange:a=>g({defaultWorkspace:a.target.value})}),(0,u.jsx)("p",{id:`${a}-default-workspace-hint`,className:D.hint,children:l.defaultWorkspace}),(0,u.jsx)(y,{id:F("defaultWorkspace"),message:E("defaultWorkspace"),variant:b})]}),(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"launch-profile",children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-profile-legend`,children:k.launchProfile}),(0,u.jsx)("div",{className:D.stack,role:"radiogroup","aria-labelledby":`${a}-profile-legend`,"aria-required":"true","aria-describedby":G("launchProfile"),children:["direct","agent_deck"].map(b=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"radio",name:`${a}-profile`,value:b,checked:c.launchProfile===b,"aria-describedby":`${a}-profile-${b}-hint`,onChange:()=>g({launchProfile:b})})," "+d[b],(0,u.jsx)("span",{id:`${a}-profile-${b}-hint`,className:`reg-option-hint ${D.hint}`,children:"direct"===b?l.direct:l.agentDeck})]},b))}),(0,u.jsx)(y,{id:F("launchProfile"),message:E("launchProfile"),variant:b}),h.showsAgentDeck?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(w.AgentDeckFields,{idPrefix:a,variant:b,deckId:c.deckId,onDeckId:a=>g({deckId:a}),deckState:r,onRetry:s,savedDeckId:t,workingDirectory:c.workingDirectory,onWorkingDirectory:a=>g({workingDirectory:a}),workdirPlaceholder:v,workdirHint:A}),(0,u.jsx)(y,{id:F("deck"),message:E("deck"),variant:b})]}):null]}),(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"policy",children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-policy-legend`,children:k.policy}),(0,u.jsx)("div",{className:D.picks,role:"radiogroup","aria-labelledby":`${a}-policy-legend`,children:["read_only","workspace_write"].map(b=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"radio",name:`${a}-policy`,value:b,checked:c.policyMode===b,onChange:()=>g("read_only"===b?{policyMode:b,allowResumeWithEdits:!1}:{policyMode:b})})," "+e[b]]},b))}),(0,u.jsxs)("div",{className:D.stack,children:[(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"checkbox",checked:c.allowNewSessions,onChange:a=>g({allowNewSessions:a.target.checked})})," Allow new sessions"]}),(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"checkbox",checked:c.allowResumeWithEdits,disabled:"workspace_write"!==c.policyMode,"aria-describedby":`${a}-resume-hint`,onChange:a=>g({allowResumeWithEdits:a.target.checked})})," Allow resume with edits"]}),(0,u.jsx)("p",{id:`${a}-resume-hint`,className:D.hint,children:l.resumeEdits})]}),(0,u.jsx)(y,{id:F("policy"),message:E("policy"),variant:b})]}),C?(0,u.jsxs)("div",{"data-field":"home-session",children:[(0,u.jsx)("label",{className:D.label,htmlFor:`${a}-home-session`,children:k.homeSession}),(0,u.jsxs)("select",{id:`${a}-home-session`,className:D.control,value:c.homeSessionId,"aria-describedby":`${a}-home-session-hint`,onChange:a=>g({homeSessionId:a.target.value}),children:[(0,u.jsx)("option",{value:"",children:"None"}),(B??[]).map(a=>(0,u.jsx)("option",{value:a.ref,children:`${a.title} (${a.status})`},a.ref))]}),(0,u.jsx)("p",{id:`${a}-home-session-hint`,className:D.hint,children:l.homeSession})]}):null]})}],22855),a.s(["useRuntimeConnections",0,function(){let[a,b]=(0,v.useState)(()=>o()),[c,d]=(0,v.useState)(0);return(0,v.useEffect)(()=>{let a=!1;return fetch(j,{cache:"no-store"}).then(async c=>{let d=c.ok?q(await c.json().catch(()=>null)):null;a||b(d?{status:"ready",connections:d,error:""}:{status:"error",connections:[],error:`HTTP ${c.status}`})}).catch(c=>{a||b({status:"error",connections:[],error:c instanceof Error?c.message:String(c)})}),()=>{a=!0}},[c]),{state:a,retry:(0,v.useCallback)(()=>{b(o()),d(a=>a+1)},[]),add:(0,v.useCallback)(async a=>{let c=await fetch(j,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),d=await c.json().catch(()=>null);if(!c.ok)return"string"==typeof d?.error?d.error:"Failed to add the connection";let e=q({connections:[d]})?.[0];return e?(b(a=>({status:"ready",connections:[...a.connections,e],error:""})),e):"Failed to add the connection"},[])}}],79202)},80219,a=>{"use strict";let b="imported",c=/^[A-Za-z0-9_-]{1,128}$/;function d(a){let d=new URLSearchParams(a).get(b);if(null===d)return null;let e=d.trim();return c.test(e)?e:""}function e(a){return`/bots/${encodeURIComponent(a)}/config`}async function f(a,b,c){let f=d(a);if(null===f)return{kind:"none"};if(!f)return{kind:"missing"};if(f===b)return{kind:"stay"};try{return await c(f)?{kind:"open",path:e(f)}:{kind:"missing"}}catch{return{kind:"missing"}}}a.s(["HANDOFF_STATUS_PATH",0,"/api/marketplace-handoff/status","IMPORT_RETURN_QUERY",0,b,"handoffStartPath",0,function(a,b){return`/api/marketplace-handoff?return=${encodeURIComponent(a+b)}`},"importedBotId",0,d,"importedConfigPath",0,e,"marketImportView",0,function(a){switch(a){case"checking":return{busy:!0,tone:"muted",message:"Checking Grok Marketplace…"};case"redirecting":return{busy:!0,tone:"muted",message:"Opening Grok Marketplace…"};case"unavailable":return{busy:!1,tone:"error",message:"Grok Marketplace isn't configured. Set CLONE_MARKET_URL on the Botmancers server."};case"failed":return{busy:!1,tone:"error",message:"Couldn't reach Botmancers to start the import. Try again."};case"missing":return{busy:!1,tone:"error",message:"Imported agent not found. The import may not have completed."};default:return{busy:!1,tone:"muted",message:"Imports a new agent and opens its Config. This agent is not changed."}}},"resolveImportReturn",0,f])}];
1
+ module.exports=[36391,5020,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d=[{id:"purple",label:"Purple",hex:"#7C3AED"},{id:"blue",label:"Blue",hex:"#2563EB"},{id:"teal",label:"Teal",hex:"#0D9488"},{id:"green",label:"Green",hex:"#16A34A"},{id:"amber",label:"Amber",hex:"#B45309"},{id:"orange",label:"Orange",hex:"#EA580C"},{id:"pink",label:"Pink",hex:"#DB2777"},{id:"slate",label:"Slate",hex:"#64748B"}],e=[{id:"dots",label:"Round dots"},{id:"sleepy",label:"Sleepy"},{id:"happy",label:"Happy arcs"},{id:"wide",label:"Wide ovals"}],f=[{id:"folded",label:"Folded arms"},{id:"reaching",label:"Reaching right"},{id:"waving",label:"Waving"}],g=[{id:"none",label:"None"},{id:"crown",label:"Crown"},{id:"glasses",label:"Glasses"},{id:"headset",label:"Headset"},{id:"hat",label:"Hat"},{id:"bow",label:"Bow"}],h={color:"purple",eyes:"dots",hands:"folded",accessory:"none"},i={...h,accessory:"crown"};function j(a,b){return"string"==typeof b&&a.some(a=>a.id===b)}function k(a){let b=j(d,a.avatar_color)?a.avatar_color:h.color,c=j(e,a.avatar_eyes)?a.avatar_eyes:h.eyes;return{color:b,eyes:c,hands:j(f,a.avatar_hands)?a.avatar_hands:h.hands,accessory:j(g,a.avatar_accessory)?a.avatar_accessory:"chief-of-staff"===String(a.name??"").trim().toLowerCase()?i.accessory:h.accessory}}let l=[{x:70,y:70.5,w:38,h:6},{x:70,y:82,w:38,h:6}];function m(a){return l.map(b=>`<rect x="${b.x}" y="${b.y}" width="${b.w}" height="${b.h}" rx="${b.h/2}" ${a}/>`).join("")}function n(a,b="static"){var c,e;let f,g,h=d.find(b=>b.id===a.color)?.hex??d[0].hex,i=String(b).replace(/[^A-Za-z0-9_-]/g,"")||"static",j=`avatar-knockout-${i}`,k=`fill="none" stroke="${h}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`,l=(c=a.hands,e=a.accessory,f=[],"reaching"===c&&f.push({x1:87.6,y1:69,x2:90.4,y2:86.5,w:8}),"waving"===c&&f.push({x1:35,y1:59,x2:28,y2:72,w:10}),"crown"===e&&f.push({x1:44,y1:30,x2:76,y2:30,w:9}),"hat"===e&&f.push({x1:38,y1:34,x2:82,y2:34,w:9}),"bow"===e&&f.push({x1:60,y1:28.5,x2:84,y2:28,w:10}),"headset"===e&&(f.push({x1:42,y1:24.5,x2:78,y2:24.5,w:10}),f.push({x1:33,y1:55,x2:37,y2:64,w:8}),f.push({x1:83,y1:55,x2:87,y2:64,w:8})),"glasses"===e&&(f.push({x1:29,y1:56,x2:34,y2:62,w:8}),f.push({x1:86,y1:62,x2:91,y2:56,w:8})),f).map(a=>`<line x1="${a.x1}" y1="${a.y1}" x2="${a.x2}" y2="${a.y2}" stroke="#000000" stroke-width="${a.w}" stroke-linecap="round"/>`).join(""),o=`avatar-arms-${i}`,p="reaching"===a.hands,q=p?`<mask id="${o}"><rect x="0" y="0" width="120" height="120" fill="#ffffff"/>${m('fill="#000000" stroke="#000000" stroke-width="7"')}</mask>`:"",r=function(a,b){let c=`fill="none" stroke="${b}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`;switch(a){case"sleepy":return`<g data-avatar-layer="eyes" data-avatar-eyes="sleepy"><path d="M42 61 Q48 64 54 61" ${c}/><path d="M66 61 Q72 64 78 61" ${c}/></g>`;case"happy":return`<g data-avatar-layer="eyes" data-avatar-eyes="happy"><path d="M42 63 Q48 54 54 63" ${c}/><path d="M66 63 Q72 54 78 63" ${c}/></g>`;case"wide":return`<g data-avatar-layer="eyes" data-avatar-eyes="wide"><ellipse cx="48" cy="60" rx="5.5" ry="8" ${c}/><ellipse cx="72" cy="60" rx="5.5" ry="8" ${c}/></g>`;default:return`<g data-avatar-layer="eyes" data-avatar-eyes="dots"><circle cx="48" cy="60" r="3.5" ${c}/><circle cx="72" cy="60" r="3.5" ${c}/></g>`}}(a.eyes,h),s=function(a,b){let c=`fill="none" stroke="${b}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`;switch(a){case"crown":return`<g data-avatar-layer="accessory" data-avatar-accessory="crown"><path d="M44 31 L46.5 14 L54 24 L60 10 L66 24 L73.5 14 L76 31 Z" ${c}/></g>`;case"glasses":return`<g data-avatar-layer="accessory" data-avatar-accessory="glasses"><circle cx="48" cy="60" r="9" ${c}/><circle cx="72" cy="60" r="9" ${c}/><path d="M57 60 Q60 57 63 60" ${c}/><path d="M39 59 L32 57" ${c}/><path d="M81 59 L88 57" ${c}/></g>`;case"headset":return`<g data-avatar-layer="accessory" data-avatar-accessory="headset"><path d="M36 62 Q34 24 60 24 Q86 24 84 62" ${c}/><rect x="79" y="54" width="10" height="17" rx="5" ${c}/><path d="M84 71 Q80 84 66 84" ${c}/></g>`;case"hat":return`<g data-avatar-layer="accessory" data-avatar-accessory="hat"><path d="M38 34 Q60 40 82 34" ${c}/><path d="M46 34 Q48 14 60 14 Q72 14 74 34" ${c}/></g>`;case"bow":return`<g data-avatar-layer="accessory" data-avatar-accessory="bow"><circle cx="79" cy="29" r="3.5" ${c}/><path d="M76 27 L62 18 Q60 26 66 32 Z" ${c}/><path d="M82 27 L95 19 Q97 27 91 32 Z" ${c}/></g>`;default:return'<g data-avatar-layer="accessory" data-avatar-accessory="none"></g>'}}(a.accessory,h);return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" role="img" data-avatar-color="${a.color}" data-avatar-eyes="${a.eyes}" data-avatar-hands="${a.hands}" data-avatar-accessory="${a.accessory}"><mask id="${j}"><rect x="0" y="0" width="120" height="120" fill="#ffffff"/>${l}</mask>`+q+`<g data-avatar-layer="body" mask="url(#${j})">`+`<path d="M60 28 C75 28 84 39 85.5 56 L91 90 C92.5 98 87 102 79 102 L41 102 C33 102 27.5 98 29 90 L34.5 56 C36 39 45 28 60 28 Z" ${k}/>`+`<path d="M54 71 Q60 75.5 66 71" ${k}/>`+`<path data-avatar-brows="straight" d="${g="wide"===a.eyes?45:46,`M42 ${g} H54 M66 ${g} H78`}" fill="none" stroke="${h}" stroke-width="4.8" stroke-linecap="round"/>`+"</g>"+(p?`<g mask="url(#${o})">${r}</g>`:r)+function(a,b){let c=`fill="none" stroke="${b}" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"`;switch(a){case"reaching":return'<g data-avatar-layer="hands" data-avatar-hands="reaching">'+m(c)+"</g>";case"waving":return`<g data-avatar-layer="hands" data-avatar-hands="waving"><path d="M32 68 Q24 60 22 48" ${c}/><circle cx="21" cy="41" r="5" ${c}/><path d="M11 36 Q9 46 12 54" ${c}/></g>`;default:return`<g data-avatar-layer="hands" data-avatar-hands="folded"><rect x="44" y="79" width="32" height="9" rx="4.5" ${c}/><rect x="46" y="90" width="28" height="9" rx="4.5" ${c}/></g>`}}(a.hands,h)+(p?`<g mask="url(#${o})">${s}</g>`:s)+"</svg>"}a.s(["AVATAR_ACCESSORIES",0,g,"AVATAR_COLORS",0,d,"AVATAR_EYES",0,e,"AVATAR_HANDS",0,f,"renderAvatarSvg",0,n,"resolveAvatar",0,k],5020),a.s(["default",0,function({bot:a,config:d,size:e=28,className:f,title:g}){let h=(0,c.useId)().replace(/[^A-Za-z0-9_-]/g,"")||"avatar",i=n(d??a?.avatar_config??k(a??{}),h).replace("<svg ",`<svg width="${e}" height="${e}" `);return(0,b.jsx)("span",{className:f??"bot-avatar",style:{display:"inline-flex",width:e,height:e,flex:"none"},title:g,"aria-label":g??"Agent avatar",role:"img",dangerouslySetInnerHTML:{__html:i}})}],36391)},60193,35832,23464,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d="Permanently removes each agent with its direct conversation, messages, queue rows, approvals, launch snapshots, memories, one-shots, routines, and pending questions. There is no undo.",e="Skill files, working directories, Hermes profiles, and imported source files stay on disk.";function f(a){return"chief"===a?"Chief of Staff cannot be deleted.":"Working now — stop it or let it finish before deleting."}function g(a){return 1===a?"Delete agent":`Delete ${a} agents`}a.s(["DELETE_KEEPS_COPY",0,e,"DELETE_REMOVES_COPY",0,d,"blockedReasonCopy",0,f,"deleteConfirmLabel",0,g,"deletedStatusLine",0,function(a){return 1===a?"Deleted 1 agent.":`Deleted ${a} agents.`}],35832),a.s(["default",0,function({ids:a,onCancel:h,onDeleted:i}){let j=(0,c.useId)(),[k,l]=(0,c.useState)(null),[m,n]=(0,c.useState)(""),[o,p]=(0,c.useState)(""),[q,r]=(0,c.useState)(!1),s=(0,c.useRef)(null),t=(0,c.useRef)(null),u=a.join("\n");(0,c.useEffect)(()=>{let a=!1;return fetch("/api/bots/delete-preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:u.split("\n")})}).then(async b=>{let c=await b.json().catch(()=>null);if(!a){if(!b.ok)return void n("string"==typeof c?.error?c.error:"Could not load the deletion preview.");l(c)}}).catch(()=>{a||n("Could not load the deletion preview.")}),()=>{a=!0}},[u]),(0,c.useEffect)(()=>{s.current?.focus()},[]),(0,c.useEffect)(()=>{let a=a=>{"Escape"===a.key&&(a.stopPropagation(),q||h())};return document.addEventListener("keydown",a,!0),()=>document.removeEventListener("keydown",a,!0)},[q,h]);let v=a.length,w=!k||k.blocked.length>0||k.missing.length>0,x=async()=>{if(!q&&!w){r(!0),p("");try{let b=await fetch("/api/bots",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:a})}),c=await b.json().catch(()=>null);if(!b.ok){p("string"==typeof c?.error&&c.error?c.error:`Delete failed (${b.status}).`),r(!1),requestAnimationFrame(()=>s.current?.focus());return}i(Array.isArray(c?.deleted)?c.deleted:[])}catch{p("Delete failed: the server did not respond."),r(!1),requestAnimationFrame(()=>s.current?.focus())}}};return(0,b.jsx)("div",{className:"modal-scrim delete-scrim",onKeyDown:a=>{if("Tab"!==a.key||!t.current)return;let b=Array.from(t.current.querySelectorAll("button:not(:disabled)"));if(0===b.length)return;let c=b[0],d=b[b.length-1];a.shiftKey&&document.activeElement===c?(a.preventDefault(),d.focus()):a.shiftKey||document.activeElement!==d||(a.preventDefault(),c.focus())},children:(0,b.jsxs)("div",{ref:t,className:"delete-card",role:"alertdialog","aria-modal":"true","aria-labelledby":j,"data-testid":"delete-agents-dialog",children:[(0,b.jsx)("h2",{id:j,className:"delete-title",children:1===v?"Delete this agent permanently?":`Delete ${v} agents permanently?`}),m?(0,b.jsx)("p",{className:"delete-error",role:"alert",children:m}):null,k||m?null:(0,b.jsx)("p",{className:"delete-copy",children:"Checking what will be removed…"}),k?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("ul",{className:"delete-names","aria-label":"Agents to delete",children:[k.agents.map(a=>(0,b.jsx)("li",{children:a.name},a.id)),k.missing.map(a=>(0,b.jsxs)("li",{children:["Not found: ",a]},a))]}),k.blocked.length>0?(0,b.jsxs)("div",{className:"delete-blocked",role:"alert",children:[(0,b.jsx)("p",{children:"Nothing can be deleted until these are deselected:"}),(0,b.jsx)("ul",{children:k.blocked.map(a=>(0,b.jsxs)("li",{children:[a.name," — ",f(a.reason)]},a.id))})]}):null,(0,b.jsx)("p",{className:"delete-copy",children:d}),(0,b.jsx)("p",{className:"delete-copy delete-keeps",children:e})]}):null,o?(0,b.jsx)("p",{className:"delete-error",role:"alert",children:o}):null,(0,b.jsxs)("div",{className:"form-actions delete-actions",children:[(0,b.jsx)("button",{ref:s,type:"button",className:"cancel-btn",onClick:h,disabled:q,children:"Cancel"}),(0,b.jsx)("button",{type:"button",className:"delete-btn",onClick:()=>{x()},disabled:q||w,children:q?"Deleting…":g(v)})]})]})})}],60193);var h=a.i(65221),i=a.i(35099);function j(a){return"active"===a.state}let k=/^T[A-Z0-9]{2,20}$/,l=/^[CG][A-Z0-9]{2,20}$/;a.s(["SHARE_DURATIONS",0,[{label:"5 minutes",seconds:300},{label:"1 hour",seconds:3600},{label:"8 hours",seconds:28800},{label:"24 hours",seconds:86400}],"SHARE_STATUS_LABELS",0,{active:"Active",exhausted:"Questions used",answering:"Answering",recovering:"Recovering",expired:"Expired",revoked:"Revoked"},"audienceInputError",0,function(a,b,c){let d=a.trim(),e=b.trim();return k.test(d)?l.test(e)?c.some(a=>a.team_id===d&&a.channel_id===e)?"That channel is already on the allowlist.":null:"Channel ID must look like C0123ABCD (a public or private channel ID; no wildcards).":"Workspace ID must look like T0123ABCD (a Slack team ID; no wildcards)."},"audienceLabel",0,function(a){return`Slack channel ${a.channel_id} \xb7 workspace ${a.team_id}`},"createdByLabel",0,function(a){return"owner"===a.created_by?"Shared by you":"current_session"===a.created_by?"Shared from a turn of this session":"Shared by a service"},"expiryLabel",0,function(a,b=Date.now()){return"revoked"===a.state?`Revoked ${(0,h.formatSessionDate)(a.revoked_at??a.expires_at)}`:"expired"===a.state||a.expires_at<=b?`Expired ${(0,h.formatSessionDate)(a.expires_at)}`:`Expires ${(0,h.formatSessionDate)(a.expires_at)} (in ${function(a){let b=Math.max(1,Math.round(a/6e4));if(b<60)return`${b} min`;let c=Math.floor(b/60),d=b%60;return d?`${c} h ${d} min`:`${c} h`}(a.expires_at-b)})`},"sessionShares",0,function(a,b){let c=a.filter(a=>a.session_ref===b);return[...c.filter(j).sort((a,b)=>b.created_at-a.created_at),...c.filter(a=>!j(a)).sort((a,b)=>(b.revoked_at??b.expires_at)-(a.revoked_at??a.expires_at))]},"shareCreateAvailability",0,function(a,b){let c=`/bots/${encodeURIComponent(a.agent.id)}/config#session-sharing`;if(!b)return{available:!1,reason:"Share to Slack is unavailable: the share policy could not be loaded.",configHref:null};let d=(0,i.sessionRowActions)(a).find(a=>"ask"===a.action);return d&&!d.availability.available?{available:!1,reason:d.availability.reason.replace(/^Ask from this context is unavailable:/,"Share to Slack is unavailable:"),configHref:null}:"invalid"===b.state?{available:!1,reason:"Share to Slack is unavailable: the share policy file is invalid. Fix it in Config.",configHref:c}:0===b.audiences.length?{available:!1,reason:"Share to Slack needs a Slack channel on the share allowlist. Add one in Config.",configHref:c}:{available:!0}},"shareCreateBody",0,function(a,b,c,d){return{audience:{team_id:a.team_id,channel_id:a.channel_id},ttl_seconds:b,max_turns:c,idempotency_key:d}},"shareFromTurnNote",0,function(a){return a.agent.share_current.supported?a.agent.share_from_turn?"On: a turn Botmancers launches for this Agent can share its own session to an allowlisted channel. Turning it off revokes every live turn context at once.":"Off: no turn of this Agent can share its own session. Sessions can still be shared from the Sessions drawer.":a.agent.share_current.reason??"This runtime cannot share its own session from a turn."},"shareIsLive",0,j,"shareStatusNote",0,function(a){switch(a.status){case"active":return"Slack replies in its thread ask this session (read-only).";case"answering":return"A Slack question is being answered now. The next one waits until it finishes.";case"recovering":return"A question was interrupted by a Botmancers restart. The next Slack question clears it.";case"exhausted":return`All ${a.max_turns} questions are used. Slack questions get the limit notice; create a new share to keep going.`;case"expired":return"Expired: Slack questions get the expired notice. Its history stays here.";case"revoked":return"Revoked: Slack questions get the revoked notice. Its history stays here."}},"threadLabel",0,function(a){return a.thread.posted?`Slack thread posted ${(0,h.formatSessionDate)(a.thread.posted_at??0)}`:"active"===a.state?"Waiting for the Slack relay to post the thread":"No Slack thread was posted"},"turnsLabel",0,function(a){return`${a.turns_used} of ${a.max_turns} question${1===a.max_turns?"":"s"} used`}],23464)},1160,22855,79202,a=>{"use strict";var b=a.i(22151);let c="This computer",d={direct:"Direct",agent_deck:"Agent Deck"},e={read_only:"Read only",workspace_write:"Workspace write"},f={workspaces:"Selected workspaces",sessions:"Selected imported sessions",all_provider_sessions:"All sessions this runtime can see"};function g(a){return a.startsWith("/")||"~"===a||a.startsWith("~/")}function h(a){return a.length>1?a.replace(/\/+$/,""):a}b.AGENTS.join("|");var i=a.i(20851);let j="/api/runtime-connections",k={connection:"Runtime connection",scope:"Session scope",defaultWorkspace:"Default workspace (optional)",launchProfile:"Launch profile",policy:"Policy",homeSession:"Home session (optional)"},l={connection:"The runtime installation or account this Agent uses. Several Agents can share one.",workspaces:"One absolute path per line. An empty scope never means unrestricted.",sessions:"Only this Agent’s own Botmancers sessions can be selected.",noSessions:"This Agent has no sessions yet. Choose workspaces or all sessions for now.",allSessions:"Every session this runtime can see. Choose this only on purpose.",defaultWorkspace:"Where new sessions start. Convenience only — not a permission.",direct:"Launches the runtime directly. Agent Deck is not contacted.",agentDeck:"Launches through a verified Agent Deck from the configured server.",resumeEdits:"Needs Workspace write.",homeSession:"A stable session to return to. Must be one of this Agent’s sessions.",addConnection:"Stores a name and host only. Credentials stay with the runtime."},m="Loading runtime connections…",n="Couldn't load runtime connections — retry.";function o(){return{status:"loading",connections:[],error:""}}function p(a){return`${a.label} \xb7 ${b.AGENT_LABELS[a.provider]??a.provider}`}function q(a){if("object"!=typeof a||null===a)return null;let b=a.connections;if(!Array.isArray(b))return null;let c=[];for(let a of b){if("object"!=typeof a||null===a||"string"!=typeof a.id||"string"!=typeof a.provider||"string"!=typeof a.label)return null;c.push({id:a.id,provider:a.provider,label:a.label,host:"string"==typeof a.host?a.host:"",agent_count:"number"==typeof a.agent_count?a.agent_count:void 0})}return c}function r(a){let b=[];for(let c of a.split("\n")){let a=c.trim();a&&!b.includes(a)&&b.push(a)}return b}function s(a){return"workspaces"===a.scopeKind?{kind:"workspaces",workspaces:r(a.workspaces)}:"sessions"===a.scopeKind?{kind:"sessions",sessions:a.sessions}:{kind:a.scopeKind}}function t(a){return{mode:a.policyMode,allow_new_sessions:a.allowNewSessions,allow_resume_with_edits:a.allowResumeWithEdits}}a.s(["CONNECTIONS_ENDPOINT",0,j,"CONNECTIONS_ERROR_COPY",0,n,"CONNECTIONS_LOADING_COPY",0,m,"DEFAULT_REGISTRATION_FORM",0,{connectionId:"",scopeKind:"",workspaces:"",sessions:[],defaultWorkspace:"",launchProfile:"",deckId:"",workingDirectory:"",policyMode:"read_only",allowNewSessions:!0,allowResumeWithEdits:!1,homeSessionId:""},"HINTS",0,l,"LABELS",0,k,"connectionOptionLabel",0,p,"hasRegistrationErrors",0,function(a){return Object.keys(a.errors).length>0},"initialConnectionListState",0,o,"parseConnectionList",0,q,"registrationCreateBody",0,function(a,b){let c={name:String(a??"").trim(),runtime_connection_id:b.connectionId,launch_profile:b.launchProfile||null,session_scope:s(b),policy:t(b)},d=b.defaultWorkspace.trim();if(d&&(c.default_workspace=d),"agent_deck"===b.launchProfile){c.deck_id=b.deckId.trim();let a=b.workingDirectory.trim();a&&(c.working_directory=a)}return c},"registrationFormFromBot",0,function(a){let b=a.session_scope??null,c="direct"===a.launch_profile||"agent_deck"===a.launch_profile?a.launch_profile:"",d=!0===a.needs_deck_selection||1===a.needs_deck_selection,e=(a.working_directory??"").trim();return{connectionId:a.runtime_connection_id??"",scopeKind:b?.kind??"",workspaces:b?.kind==="workspaces"?b.workspaces.join("\n"):"",sessions:b?.kind==="sessions"?[...b.sessions]:[],defaultWorkspace:a.default_workspace??"",launchProfile:c,deckId:"agent_deck"!==c||d?"":(a.deck_id??"").trim(),workingDirectory:"agent_deck"===c&&e&&e!==(0,i.defaultWorkdirFor)(a.id??"")?e:"",policyMode:a.policy?.mode??"read_only",allowNewSessions:!a.policy||a.policy.allow_new_sessions,allowResumeWithEdits:!!a.policy&&a.policy.allow_resume_with_edits,homeSessionId:a.home_session_id??""}},"registrationFormView",0,function(a,b,c){let d={};a.connectionId||(d.connection="Pick a runtime connection.");let e=r(a.workspaces);a.scopeKind?"workspaces"===a.scopeKind?0===e.length?d.workspaces="Add at least one workspace.":e.every(g)||(d.workspaces="Workspaces must be absolute paths (or start with ~/)."):"sessions"===a.scopeKind&&0===a.sessions.length&&(d.sessions="Select at least one session."):d.scope="Choose a session scope.";let f=a.defaultWorkspace.trim();f&&(g(f)?"workspaces"!==a.scopeKind||d.workspaces||e.some(a=>{let b,c;return b=h(a),b===(c=h(f))||c.startsWith("/"===b?"/":`${b}/`)})||(d.defaultWorkspace="The default workspace must be inside one of the selected workspaces."):d.defaultWorkspace="The default workspace must be an absolute path (or start with ~/)."),a.launchProfile?"agent_deck"!==a.launchProfile||a.deckId.trim()||(d.deck="Select an Agent Deck for this agent."):d.launchProfile="Choose Direct or Agent Deck.",a.allowResumeWithEdits&&"workspace_write"!==a.policyMode&&(d.policy="Resume with edits needs the Workspace write policy.");let j="agent_deck"===a.launchProfile,k="",l=!1;return"ready"!==c.status?(l=!0,k="error"===c.status?n:""):j&&"connected"!==b.status&&(l=!0,k="loading"===b.status?"":i.DECK_SLOT_COPY[b.status]),{errors:d,showsAgentDeck:j,submitDisabled:l,blocker:k}},"registrationPatchBody",0,function(a,b){let c={id:a,runtime_connection_id:b.connectionId,launch_profile:b.launchProfile||null,session_scope:s(b),default_workspace:b.defaultWorkspace.trim(),policy:t(b),home_session_id:b.homeSessionId};if("agent_deck"===b.launchProfile){let d=b.workingDirectory.trim();c.deck_id=b.deckId.trim(),c.working_directory=d&&d!==(0,i.defaultWorkdirFor)(a)?d:""}return c},"registrationReadView",0,function(a,c,g){var h;let j,l=[{key:"connection",label:k.connection,value:(j=a.runtime_connection)?`${j.label} (${(0,b.agentLabel)(j.provider)} \xb7 ${j.host})`:"Not set"},{key:"scope",label:k.scope,value:function(a,b){if(!a)return"Not set — this Agent cannot launch until a scope is chosen.";if("all_provider_sessions"===a.kind)return f.all_provider_sessions;if("workspaces"===a.kind)return`${f.workspaces}: ${a.workspaces.join(", ")}`;let c=a.sessions.map(a=>b?.find(b=>b.ref===a)?.title??a);return`${f.sessions}: ${c.join(", ")}`}(a.session_scope,g)},{key:"defaultWorkspace",label:"Default workspace",value:a.default_workspace||"None"},{key:"launchProfile",label:k.launchProfile,value:"direct"===a.launch_profile?d.direct:"agent_deck"===a.launch_profile?d.agent_deck:"Not chosen"}],m=[];if("agent_deck"===a.launch_profile){let b=!0===a.needs_deck_selection||1===a.needs_deck_selection||!(a.deck_id??"").trim();l.push({key:"deck",label:"Agent Deck",value:b?"not selected":(0,i.deckLabel)(a.deck_id??"",c)});let d=(a.working_directory??"").trim();l.push({key:"workdir",label:"Working directory",value:d||(0,i.defaultWorkdirFor)(a.id??"{agentID}")}),!b&&(0,i.isDeckUnavailable)(a,c)&&m.push("This deck isn't on the configured server right now. Pick another deck, or fix the server in Settings.")}l.push({key:"policy",label:k.policy,value:(h=a.policy)?[e[h.mode],h.allow_new_sessions?"new sessions allowed":"no new sessions",h.allow_resume_with_edits?"resume with edits allowed":"no resume with edits"].join(" · "):"Not set"});let n=a.home_session_id?g?.find(b=>b.ref===a.home_session_id)?.title??a.home_session_id:"None";if(l.push({key:"homeSession",label:"Home session",value:n}),a.launch_profile)"direct_runtime"===a.launch_blocker&&m.push("Registered for direct launch. Direct sessions for this runtime arrive in a later Botmancers version.");else{let b=(a.deck_name??"").trim();m.push(`Choose Direct or Agent Deck before this Agent can run${b?` (was Agent Deck "${b}")`:""}.`)}return{rows:l,notices:m}}],1160);var u=a.i(87924),v=a.i(72131),w=a.i(39228);let x={modal:{fieldset:"agent-fieldset reg-fieldset",legend:"field-legend",label:"",picks:"runtime-picks",pick:"runtime-pick",stack:"reg-stack",control:"deck-control",input:"",hint:"runtime-hint",error:"form-error reg-error",button:"runtime-retry",note:"runtime-note"},config:{fieldset:"agent-fieldset reg-fieldset",legend:"block text-sm cfg-muted mt-3 mb-1 p-0",label:"block text-sm cfg-muted mt-3 mb-1",picks:"flex flex-wrap gap-x-4 gap-y-1 text-sm cfg-muted",pick:"text-sm cfg-muted",stack:"flex flex-col gap-1 text-sm cfg-muted",control:"cfg-input text-sm",input:"cfg-input text-sm",hint:"mt-1 text-xs cfg-faint",error:"mt-1 text-sm cfg-error",button:"cfg-link text-sm",note:"text-sm cfg-muted mt-1"}};function y({id:a,message:b,variant:c}){return b?(0,u.jsx)("p",{id:a,className:x[c].error,role:"alert",children:b}):null}function z({idPrefix:a,variant:b,onAdd:d}){let e=x[b],[f,g]=(0,v.useState)(!1),[h,j]=(0,v.useState)(i.AGENT_OPTIONS[0].value),[k,m]=(0,v.useState)(""),[n,o]=(0,v.useState)(""),[p,q]=(0,v.useState)(""),[r,s]=(0,v.useState)(!1),t=async()=>{if(r)return;s(!0),q("");let a=await d({provider:h,label:k,host:n.trim()||c});(s(!1),"string"==typeof a)?q(a):(g(!1),m(""),o(""))};return f?(0,u.jsxs)("div",{id:`${a}-add-connection`,className:"reg-add-connection",role:"group","aria-label":"Add connection",children:[(0,u.jsx)("label",{className:e.label,htmlFor:`${a}-add-provider`,children:"Provider"}),(0,u.jsx)("select",{id:`${a}-add-provider`,className:e.control,value:h,onChange:a=>j(a.target.value),children:i.AGENT_OPTIONS.map(a=>(0,u.jsx)("option",{value:a.value,children:a.label},a.value))}),(0,u.jsx)("label",{className:e.label,htmlFor:`${a}-add-label`,children:"Connection name"}),(0,u.jsx)("input",{id:`${a}-add-label`,type:"text",className:e.input||void 0,value:k,placeholder:"Codex on my laptop",onChange:a=>m(a.target.value),onKeyDown:a=>{"Enter"===a.key&&(a.preventDefault(),t())}}),(0,u.jsx)("label",{className:e.label,htmlFor:`${a}-add-host`,children:"Host"}),(0,u.jsx)("input",{id:`${a}-add-host`,type:"text",className:e.input||void 0,value:n,placeholder:c,"aria-describedby":`${a}-add-hint`,onChange:a=>o(a.target.value)}),(0,u.jsx)("p",{id:`${a}-add-hint`,className:e.hint,children:l.addConnection}),p?(0,u.jsx)("p",{className:e.error,role:"alert",children:p}):null,(0,u.jsxs)("div",{className:"reg-actions",children:[(0,u.jsx)("button",{type:"button",className:e.button,onClick:()=>void t(),disabled:r,children:r?"Adding…":"Add"}),(0,u.jsx)("button",{type:"button",className:e.button,"aria-expanded":"true",onClick:()=>g(!1),children:"Cancel"})]})]}):(0,u.jsx)("button",{type:"button",className:e.button,"aria-expanded":"false","aria-controls":`${a}-add-connection`,onClick:()=>g(!0),children:"Add connection…"})}a.s(["RegistrationFields",0,function({idPrefix:a,variant:b,form:c,onChange:g,view:h,showErrors:i,connections:j,onRetryConnections:o,onAddConnection:q,deckState:r,onRetryDecks:s,savedDeckId:t,workdirPlaceholder:v,workdirHint:A,sessions:B,includeHomeSession:C}){let D=x[b],E=a=>i?h.errors[a]:void 0,F=b=>`${a}-${b}-error`,G=(a,...b)=>[...b,E(a)?F(a):""].filter(Boolean).join(" ")||void 0,H=!!(B&&B.length>0);return(0,u.jsxs)("div",{className:"registration-fields","data-registration":b,children:[(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"connection","aria-describedby":G("connection",`${a}-connection-hint`),children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-connection-legend`,children:k.connection}),"loading"===j.status?(0,u.jsx)("p",{className:D.note,role:"status",children:m}):"error"===j.status?(0,u.jsxs)("p",{className:D.note,role:"status",children:[n," ",(0,u.jsx)("button",{type:"button",className:D.button,onClick:o,children:"Retry"})]}):(0,u.jsxs)("select",{id:`${a}-connection`,className:D.control,"aria-labelledby":`${a}-connection-legend`,"aria-required":"true","aria-invalid":!!E("connection")||void 0,value:c.connectionId,onChange:a=>g({connectionId:a.target.value}),children:[(0,u.jsx)("option",{value:"",disabled:!0,children:"Select a connection…"}),j.connections.map(a=>(0,u.jsx)("option",{value:a.id,children:p(a)},a.id))]}),(0,u.jsx)("p",{id:`${a}-connection-hint`,className:D.hint,children:l.connection}),(0,u.jsx)(y,{id:F("connection"),message:E("connection"),variant:b}),"ready"===j.status?(0,u.jsx)(z,{idPrefix:a,variant:b,onAdd:async a=>{let b=await q(a);return"string"!=typeof b&&g({connectionId:b.id}),b}}):null]}),(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"scope",children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-scope-legend`,children:k.scope}),(0,u.jsx)("div",{className:D.stack,role:"radiogroup","aria-labelledby":`${a}-scope-legend`,"aria-required":"true","aria-describedby":G("scope"),children:["workspaces","sessions","all_provider_sessions"].map(b=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"radio",name:`${a}-scope`,value:b,checked:c.scopeKind===b,disabled:"sessions"===b&&!H,onChange:()=>g({scopeKind:b})})," "+f[b]]},b))}),H?null:(0,u.jsx)("p",{className:D.hint,children:l.noSessions}),(0,u.jsx)(y,{id:F("scope"),message:E("scope"),variant:b}),"workspaces"===c.scopeKind?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("label",{className:D.label,htmlFor:`${a}-workspaces`,children:"Workspaces"}),(0,u.jsx)("textarea",{id:`${a}-workspaces`,className:D.input||void 0,rows:2,value:c.workspaces,placeholder:"/Users/you/work/project","aria-required":"true","aria-invalid":!!E("workspaces")||void 0,"aria-describedby":G("workspaces",`${a}-workspaces-hint`),onChange:a=>g({workspaces:a.target.value})}),(0,u.jsx)("p",{id:`${a}-workspaces-hint`,className:D.hint,children:l.workspaces}),(0,u.jsx)(y,{id:F("workspaces"),message:E("workspaces"),variant:b})]}):null,"sessions"===c.scopeKind&&B?(0,u.jsxs)("div",{className:D.stack,role:"group","aria-label":"Sessions in scope","aria-describedby":G("sessions",`${a}-sessions-hint`),children:[B.map(a=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"checkbox",checked:c.sessions.includes(a.ref),onChange:b=>g({sessions:b.target.checked?[...c.sessions,a.ref]:c.sessions.filter(b=>b!==a.ref)})}),` ${a.title} (${a.status})`]},a.ref)),(0,u.jsx)("p",{id:`${a}-sessions-hint`,className:D.hint,children:l.sessions}),(0,u.jsx)(y,{id:F("sessions"),message:E("sessions"),variant:b})]}):null,"all_provider_sessions"===c.scopeKind?(0,u.jsx)("p",{className:D.hint,children:l.allSessions}):null]}),(0,u.jsxs)("div",{"data-field":"default-workspace",children:[(0,u.jsx)("label",{className:D.label,htmlFor:`${a}-default-workspace`,children:k.defaultWorkspace}),(0,u.jsx)("input",{id:`${a}-default-workspace`,type:"text",className:D.input||void 0,value:c.defaultWorkspace,"aria-invalid":!!E("defaultWorkspace")||void 0,"aria-describedby":G("defaultWorkspace",`${a}-default-workspace-hint`),onChange:a=>g({defaultWorkspace:a.target.value})}),(0,u.jsx)("p",{id:`${a}-default-workspace-hint`,className:D.hint,children:l.defaultWorkspace}),(0,u.jsx)(y,{id:F("defaultWorkspace"),message:E("defaultWorkspace"),variant:b})]}),(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"launch-profile",children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-profile-legend`,children:k.launchProfile}),(0,u.jsx)("div",{className:D.stack,role:"radiogroup","aria-labelledby":`${a}-profile-legend`,"aria-required":"true","aria-describedby":G("launchProfile"),children:["direct","agent_deck"].map(b=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"radio",name:`${a}-profile`,value:b,checked:c.launchProfile===b,"aria-describedby":`${a}-profile-${b}-hint`,onChange:()=>g({launchProfile:b})})," "+d[b],(0,u.jsx)("span",{id:`${a}-profile-${b}-hint`,className:`reg-option-hint ${D.hint}`,children:"direct"===b?l.direct:l.agentDeck})]},b))}),(0,u.jsx)(y,{id:F("launchProfile"),message:E("launchProfile"),variant:b}),h.showsAgentDeck?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(w.AgentDeckFields,{idPrefix:a,variant:b,deckId:c.deckId,onDeckId:a=>g({deckId:a}),deckState:r,onRetry:s,savedDeckId:t,workingDirectory:c.workingDirectory,onWorkingDirectory:a=>g({workingDirectory:a}),workdirPlaceholder:v,workdirHint:A}),(0,u.jsx)(y,{id:F("deck"),message:E("deck"),variant:b})]}):null]}),(0,u.jsxs)("fieldset",{className:D.fieldset,"data-field":"policy",children:[(0,u.jsx)("legend",{className:D.legend,id:`${a}-policy-legend`,children:k.policy}),(0,u.jsx)("div",{className:D.picks,role:"radiogroup","aria-labelledby":`${a}-policy-legend`,children:["read_only","workspace_write"].map(b=>(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"radio",name:`${a}-policy`,value:b,checked:c.policyMode===b,onChange:()=>g("read_only"===b?{policyMode:b,allowResumeWithEdits:!1}:{policyMode:b})})," "+e[b]]},b))}),(0,u.jsxs)("div",{className:D.stack,children:[(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"checkbox",checked:c.allowNewSessions,onChange:a=>g({allowNewSessions:a.target.checked})})," Allow new sessions"]}),(0,u.jsxs)("label",{className:D.pick,children:[(0,u.jsx)("input",{type:"checkbox",checked:c.allowResumeWithEdits,disabled:"workspace_write"!==c.policyMode,"aria-describedby":`${a}-resume-hint`,onChange:a=>g({allowResumeWithEdits:a.target.checked})})," Allow resume with edits"]}),(0,u.jsx)("p",{id:`${a}-resume-hint`,className:D.hint,children:l.resumeEdits})]}),(0,u.jsx)(y,{id:F("policy"),message:E("policy"),variant:b})]}),C?(0,u.jsxs)("div",{"data-field":"home-session",children:[(0,u.jsx)("label",{className:D.label,htmlFor:`${a}-home-session`,children:k.homeSession}),(0,u.jsxs)("select",{id:`${a}-home-session`,className:D.control,value:c.homeSessionId,"aria-describedby":`${a}-home-session-hint`,onChange:a=>g({homeSessionId:a.target.value}),children:[(0,u.jsx)("option",{value:"",children:"None"}),(B??[]).map(a=>(0,u.jsx)("option",{value:a.ref,children:`${a.title} (${a.status})`},a.ref))]}),(0,u.jsx)("p",{id:`${a}-home-session-hint`,className:D.hint,children:l.homeSession})]}):null]})}],22855),a.s(["useRuntimeConnections",0,function(){let[a,b]=(0,v.useState)(()=>o()),[c,d]=(0,v.useState)(0);return(0,v.useEffect)(()=>{let a=!1;return fetch(j,{cache:"no-store"}).then(async c=>{let d=c.ok?q(await c.json().catch(()=>null)):null;a||b(d?{status:"ready",connections:d,error:""}:{status:"error",connections:[],error:`HTTP ${c.status}`})}).catch(c=>{a||b({status:"error",connections:[],error:c instanceof Error?c.message:String(c)})}),()=>{a=!0}},[c]),{state:a,retry:(0,v.useCallback)(()=>{b(o()),d(a=>a+1)},[]),add:(0,v.useCallback)(async a=>{let c=await fetch(j,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),d=await c.json().catch(()=>null);if(!c.ok)return"string"==typeof d?.error?d.error:"Failed to add the connection";let e=q({connections:[d]})?.[0];return e?(b(a=>({status:"ready",connections:[...a.connections,e],error:""})),e):"Failed to add the connection"},[])}}],79202)},80219,a=>{"use strict";let b="imported",c=/^[A-Za-z0-9_-]{1,128}$/;function d(a){let d=new URLSearchParams(a).get(b);if(null===d)return null;let e=d.trim();return c.test(e)?e:""}function e(a){return`/bots/${encodeURIComponent(a)}/config`}async function f(a,b,c){let f=d(a);if(null===f)return{kind:"none"};if(!f)return{kind:"missing"};if(f===b)return{kind:"stay"};try{return await c(f)?{kind:"open",path:e(f)}:{kind:"missing"}}catch{return{kind:"missing"}}}a.s(["HANDOFF_STATUS_PATH",0,"/api/marketplace-handoff/status","IMPORT_RETURN_QUERY",0,b,"handoffStartPath",0,function(a,b){return`/api/marketplace-handoff?return=${encodeURIComponent(a+b)}`},"importedBotId",0,d,"importedConfigPath",0,e,"marketImportView",0,function(a){switch(a){case"checking":return{busy:!0,tone:"muted",message:"Checking Grok Marketplace…"};case"redirecting":return{busy:!0,tone:"muted",message:"Opening Grok Marketplace…"};case"unavailable":return{busy:!1,tone:"error",message:"Grok Marketplace isn't configured. Set CLONE_MARKET_URL on the Botmancers server."};case"failed":return{busy:!1,tone:"error",message:"Couldn't reach Botmancers to start the import. Try again."};case"missing":return{busy:!1,tone:"error",message:"Imported agent not found. The import may not have completed."};default:return{busy:!1,tone:"muted",message:"Imports a new agent and opens its Config. This agent is not changed."}}},"resolveImportReturn",0,f])}];
2
2
 
3
3
  //# sourceMappingURL=_1n5mvo5._.js.map