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,6 +1,6 @@
1
1
  ---
2
2
  name: botmancers-collaboration
3
- description: Work with other Botmancers Agents and their sessions through the Botmancers MCP server (botmancers_* tools). Use when the user asks to message, ask, or hand work to a Botmancers Agent (for example Codex or Grok), ask several questions in or resume one of an Agent's past sessions, hand off a task between Agents, or check an exchange, pin, or conversation result.
3
+ description: Work with other Botmancers Agents and their sessions through the Botmancers MCP server (botmancers_* tools). Use when the user asks to message, ask, or hand work to a Botmancers Agent (for example Codex or Grok), ask several questions in or resume one of an Agent's past sessions, hand off a task between Agents, share a session read-only with a team channel, or check an exchange, pin, share, or conversation result.
4
4
  license: MIT
5
5
  compatibility: Needs an MCP connection to the Botmancers bridge (contract botmancers.mcp.v2). The MCP tools work without this skill.
6
6
  ---
@@ -45,6 +45,7 @@ Check the rows in order and use the first one that fits:
45
45
  | Several questions, one after another, in one past session (Ask from this context) | Pinned ask | `botmancers_pin_session` (`action: "ask"`), `botmancers_send_to_pin`, `botmancers_get_pin`, `botmancers_detach_pin` |
46
46
  | Edits in that exact session, approved by the user (Resume work here) | Resume work here | `botmancers_pin_session` (`action: "resume"`, `approve_write: true`), `botmancers_send_to_pin`, `botmancers_get_pin`, `botmancers_detach_pin` |
47
47
  | A message to a named Agent, with no session named | Message an Agent | `botmancers_message_agent`, `botmancers_get_pin`, `botmancers_send_to_pin` |
48
+ | Let a team channel ask one exact session questions for a while (share it) | Share a session | `botmancers_create_share`, `botmancers_get_share`, `botmancers_list_shares`, `botmancers_revoke_share` |
48
49
 
49
50
  - A question about a session's earlier work is an `Ask`, even when the user
50
51
  names that session ("ask Grok in the uploader review whether the cap is
@@ -65,6 +66,9 @@ Check the rows in order and use the first one that fits:
65
66
  `botmancers_detach_pin` when done. Set `approve_write` only after the
66
67
  user explicitly approved edits. See
67
68
  [pinned sessions](references/workflows.md#pinned-session).
69
+ - A share is read-only and names one session by its `ref` only; never by
70
+ title, workspace, or "latest". See
71
+ [share a session](references/workflows.md#share-a-session).
68
72
 
69
73
  ## 3. Observe
70
74
 
@@ -18,6 +18,7 @@ up. Codex and Grok are example Agent names.
18
18
  - [Pinned session](#pinned-session)
19
19
  - [Resume work here](#resume-work-here)
20
20
  - [Detach or switch](#detach-or-switch)
21
+ - [Share a session](#share-a-session)
21
22
  - [Polling and backoff](#polling-and-backoff)
22
23
  - [Permission and grants](#permission-and-grants)
23
24
  - [Ended session](#ended-session)
@@ -170,6 +171,26 @@ To give the work to a different Agent instead, use
170
171
  - Detach: `botmancers_detach_pin { "pin_ref": "<pin_ref>" }`. A detached pin
171
172
  answers `pin_detached` (`recovery: pin_again`).
172
173
 
174
+ ## Share a session
175
+
176
+ "Share the uploader-retry session with the #release channel for an hour."
177
+ One exact session, read-only, for one channel the owner allowed.
178
+
179
+ 1. Find the session with `botmancers_list_sessions` and match its `title`
180
+ as in step 1 of SKILL.md. Never pick it by workspace, provider id, or
181
+ "latest": a share takes only `session_ref`.
182
+ 2. `botmancers_create_share { "session_ref": "<ref>", "audience": { "kind": "slack", "team_id": "<team id the user gave>", "channel_id": "<channel id the user gave>" }, "ttl_seconds": 3600, "idempotency_key": "<new key>" }`
183
+ returns `share.share_ref`, `share.expires_at`, and `share.max_turns`
184
+ (default 20 questions). `audience_not_allowed` means the owner has not
185
+ allowed that channel: tell the user, do not try another one.
186
+ 3. `botmancers_get_share { "share_ref": "<share_ref>" }` shows its `state`
187
+ (`active`, `expired`, `revoked`) and `turns_used`;
188
+ `botmancers_list_shares { "session_ref": "<ref>" }` lists your shares of
189
+ that session.
190
+ 4. To stop it early: `botmancers_revoke_share { "share_ref": "<share_ref>" }`.
191
+
192
+ A share never lets anyone edit, and it never broadens your own grants.
193
+
173
194
  ## Polling and backoff
174
195
 
175
196
  - Wait 2 seconds after creating a request or exchange, then 4, 8, 16, and
@@ -1,3 +0,0 @@
1
- module.exports=[20635,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},20570,e=>{"use strict";var t=e.i(89171),r=e.i(62294);async function a(e){try{let a,{searchParams:n}=new URL(e.url),o=n.get("botId"),s=n.get("groupId");if(o?a=r.conversations.getByBotId(o):s&&(a=r.conversations.getByGroupId(s)),!a)return t.NextResponse.json({error:"Conversation not found"},{status:404});return t.NextResponse.json(a)}catch(e){return console.error("Error fetching conversation:",e),t.NextResponse.json({error:"Failed to fetch conversation"},{status:500})}}e.s(["GET",0,a])},16906,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),o=e.i(61916),s=e.i(74677),i=e.i(69741),l=e.i(16795),u=e.i(87718),d=e.i(95169),c=e.i(47587),p=e.i(66012),h=e.i(70101),R=e.i(26937),v=e.i(10372),g=e.i(93695),f=e.i(9580);e.i(52474);var x=e.i(220);let E=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/conversations/route",pathname:"/api/conversations",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/conversations/route.ts",nextConfigOutput:"standalone",userland:()=>e.r(20570),...{}}),{workAsyncStorage:m,workUnitAsyncStorage:w,serverHooks:C}=E;async function y(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),E.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let m="/api/conversations/route";m=m.replace(/\/index$/,"")||"/";let w=await E.prepare(e,t,{srcPage:m,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:C,deploymentId:y,params:A,nextConfig:T,parsedUrl:N,isDraftMode:P,prerenderManifest:S,routerServerContext:b,isOnDemandRevalidate:O,revalidateOnlyGenerated:_,resolvedPathname:q,clientReferenceManifest:I,serverActionsManifest:H}=w,M=(0,i.normalizeAppPath)(m),U=!!S.routes[q]&&(E.isDev||(0,f.isRouteCacheOwner)(q,E.cacheOwner,S.routes[q])),k=!!(S.dynamicRoutes[M]||U),j=async()=>((null==b?void 0:b.render404)?await b.render404(e,t,N,!1):t.end("This page could not be found"),null);if(k&&!P){let e=S.dynamicRoutes[M];if(e&&!1===e.fallback&&!U){if(T.adapterPath)return await j();throw new g.NoFallbackError}}let D=null;!k||E.isDev||P||(D="/index"===(D=q)?"/":D);let B=!0===E.isDev||!k,F=k&&!B;H&&I&&(0,s.setManifestsSingleton)({page:m,clientReferenceManifest:I,serverActionsManifest:H});let K=e.method||"GET",L=(0,o.getTracer)(),G=L.getActiveScopeSpan(),$=!!(null==b?void 0:b.isWrappedByNextServer),V=!!(0,n.getRequestMeta)(e,"minimalMode"),X=(0,n.getRequestMeta)(e,"incrementalCache")||await E.getIncrementalCache(e,T,S,V);null==X||X.resetRequestCache(),globalThis.__incrementalCache=X;let W={params:A,previewProps:S.preview,renderOpts:{experimental:{authInterrupts:!!T.experimental.authInterrupts,useCacheTimeout:T.experimental.useCacheTimeout},cacheComponents:!!T.cacheComponents,validationLevel:T.experimental.instantInsights.validationLevel,isDraftMode:P,supportsDynamicResponse:B,incrementalCache:X,hmrRefreshHash:(0,n.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:T.cacheLife,staticPageGenerationTimeout:T.staticPageGenerationTimeout,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>E.onRequestError(e,t,a,n,b)},sharedContext:{buildId:C,deploymentId:y}},z=new l.NodeNextRequest(e),Z=new l.NodeNextResponse(t),J=u.NextRequestAdapter.fromNodeNextRequest(z,(0,u.signalFromNodeResponse)(t)),Q=async({previousCacheEntry:r})=>{try{if(!V&&O&&_&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await E.handle(J,W);e.fetchMetrics=W.renderOpts.fetchMetrics;let o=W.renderOpts.pendingWaitUntil;o&&a.waitUntil&&(a.waitUntil(o),o=void 0);let s=W.renderOpts.collectedTags;if(!k)return await (0,p.sendResponse)(z,Z,n,o),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);s&&(t[v.NEXT_CACHE_TAGS_HEADER]=s),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==W.renderOpts.collectedRevalidate&&!(W.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&W.renderOpts.collectedRevalidate,a=void 0===W.renderOpts.collectedExpire||W.renderOpts.collectedExpire>=v.INFINITE_CACHE?!1!==r&&r>0?T.expireTime:void 0:W.renderOpts.collectedExpire;return{value:{kind:x.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await E.onRequestError(e,t,{routerKind:"App Router",routePath:m,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:F,isOnDemandRevalidate:O})},!1,b),t}},Y=async(n,s)=>{try{var i,l;let n=await E.handleResponse({req:e,nextConfig:T,cacheKey:D,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:S,isRoutePPREnabled:!1,isOnDemandRevalidate:O,revalidateOnlyGenerated:_,responseGenerator:Q,waitUntil:a.waitUntil,isMinimalMode:V});if(!k)return;if((null==n||null==(i=n.value)?void 0:i.kind)!==x.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==n||null==(l=n.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});V||t.setHeader("x-nextjs-cache",O?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),P&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let o=(0,h.fromNodeOutgoingHttpHeaders)(n.value.headers);V&&k||o.delete(v.NEXT_CACHE_TAGS_HEADER),!n.cacheControl||t.getHeader("Cache-Control")||o.get("Cache-Control")||o.set("Cache-Control",(0,R.getCacheControlHeader)(n.cacheControl)),await (0,p.sendResponse)(z,Z,new Response(n.value.body,{headers:o,status:n.value.status||200}));return}catch(t){if(t instanceof g.NoFallbackError||await E.onRequestError(e,t,{routerKind:"App Router",routePath:M,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:F,isOnDemandRevalidate:O})},!1,b),k)throw t;await (0,p.sendResponse)(z,Z,new Response(null,{status:500}));return}finally{(()=>{if(!n)return;let e=t.statusCode;n.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(n.setStatus({code:o.SpanStatusCode.ERROR}),n.setAttribute("error.type",e.toString()));let r=L.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route")||M,i=`${K} ${a}`;n.setAttributes({"next.route":a,"http.route":a,"next.span_name":i}),n.updateName(i),s&&s!==n&&(s.setAttribute("http.route",a),s.updateName(i))})()}};if($&&G)await Y(G,void 0);else{let t=L.getActiveScopeSpan();await L.withPropagatedContext(e.headers,()=>L.trace(d.BaseServerSpan.handleRequest,{spanName:`${K} ${m}`,kind:o.SpanKind.SERVER,attributes:{"http.method":K,"http.target":e.url}},e=>Y(e,t)),void 0,!$)}}e.s(["handler",0,y,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:m,workUnitAsyncStorage:w})},"routeModule",0,E,"serverHooks",0,C,"workAsyncStorage",0,m,"workUnitAsyncStorage",0,w])}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__06qkt0f._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[20635,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},89570,e=>{"use strict";var t=e.i(89171),a=e.i(62294);async function r(){try{return t.NextResponse.json({renames:a.agentNameMigrations.list()})}catch(e){return console.error("Error fetching Agent name migrations:",e),t.NextResponse.json({error:"Failed to fetch Agent name migrations"},{status:500})}}e.s(["GET",0,r])},73010,e=>{"use strict";var t=e.i(47909),a=e.i(74017),r=e.i(96250),n=e.i(59756),s=e.i(61916),i=e.i(74677),o=e.i(69741),l=e.i(16795),u=e.i(87718),d=e.i(95169),c=e.i(47587),p=e.i(66012),h=e.i(70101),R=e.i(26937),v=e.i(10372),g=e.i(93695),m=e.i(9580);e.i(52474);var x=e.i(220);let f=new t.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/bots/name-migrations/route",pathname:"/api/bots/name-migrations",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/bots/name-migrations/route.ts",nextConfigOutput:"standalone",userland:()=>e.r(89570),...{}}),{workAsyncStorage:E,workUnitAsyncStorage:w,serverHooks:C}=f;async function A(e,t,r){r.requestMeta&&(0,n.setRequestMeta)(e,r.requestMeta),f.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let E="/api/bots/name-migrations/route";E=E.replace(/\/index$/,"")||"/";let w=await f.prepare(e,t,{srcPage:E,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:C,deploymentId:A,params:y,nextConfig:T,parsedUrl:b,isDraftMode:N,prerenderManifest:P,routerServerContext:S,isOnDemandRevalidate:O,revalidateOnlyGenerated:_,resolvedPathname:q,clientReferenceManifest:H,serverActionsManifest:I}=w,M=(0,o.normalizeAppPath)(E),k=!!P.routes[q]&&(f.isDev||(0,m.isRouteCacheOwner)(q,f.cacheOwner,P.routes[q])),U=!!(P.dynamicRoutes[M]||k),D=async()=>((null==S?void 0:S.render404)?await S.render404(e,t,b,!1):t.end("This page could not be found"),null);if(U&&!N){let e=P.dynamicRoutes[M];if(e&&!1===e.fallback&&!k){if(T.adapterPath)return await D();throw new g.NoFallbackError}}let j=null;!U||f.isDev||N||(j="/index"===(j=q)?"/":j);let F=!0===f.isDev||!U,K=U&&!F;I&&H&&(0,i.setManifestsSingleton)({page:E,clientReferenceManifest:H,serverActionsManifest:I});let L=e.method||"GET",$=(0,s.getTracer)(),B=$.getActiveScopeSpan(),G=!!(null==S?void 0:S.isWrappedByNextServer),V=!!(0,n.getRequestMeta)(e,"minimalMode"),X=(0,n.getRequestMeta)(e,"incrementalCache")||await f.getIncrementalCache(e,T,P,V);null==X||X.resetRequestCache(),globalThis.__incrementalCache=X;let W={params:y,previewProps:P.preview,renderOpts:{experimental:{authInterrupts:!!T.experimental.authInterrupts,useCacheTimeout:T.experimental.useCacheTimeout},cacheComponents:!!T.cacheComponents,validationLevel:T.experimental.instantInsights.validationLevel,isDraftMode:N,supportsDynamicResponse:F,incrementalCache:X,hmrRefreshHash:(0,n.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:T.cacheLife,staticPageGenerationTimeout:T.staticPageGenerationTimeout,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,a,r,n)=>f.onRequestError(e,t,r,n,S)},sharedContext:{buildId:C,deploymentId:A}},z=new l.NodeNextRequest(e),Z=new l.NodeNextResponse(t),J=u.NextRequestAdapter.fromNodeNextRequest(z,(0,u.signalFromNodeResponse)(t)),Q=async({previousCacheEntry:a})=>{try{if(!V&&O&&_&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await f.handle(J,W);e.fetchMetrics=W.renderOpts.fetchMetrics;let s=W.renderOpts.pendingWaitUntil;s&&r.waitUntil&&(r.waitUntil(s),s=void 0);let i=W.renderOpts.collectedTags;if(!U)return await (0,p.sendResponse)(z,Z,n,s),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);i&&(t[v.NEXT_CACHE_TAGS_HEADER]=i),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let a=void 0!==W.renderOpts.collectedRevalidate&&!(W.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&W.renderOpts.collectedRevalidate,r=void 0===W.renderOpts.collectedExpire||W.renderOpts.collectedExpire>=v.INFINITE_CACHE?!1!==a&&a>0?T.expireTime:void 0:W.renderOpts.collectedExpire;return{value:{kind:x.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:a,expire:r}}}}catch(t){throw(null==a?void 0:a.isStale)&&await f.onRequestError(e,t,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:K,isOnDemandRevalidate:O})},!1,S),t}},Y=async(n,i)=>{try{var o,l;let n=await f.handleResponse({req:e,nextConfig:T,cacheKey:j,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:P,isRoutePPREnabled:!1,isOnDemandRevalidate:O,revalidateOnlyGenerated:_,responseGenerator:Q,waitUntil:r.waitUntil,isMinimalMode:V});if(!U)return;if((null==n||null==(o=n.value)?void 0:o.kind)!==x.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==n||null==(l=n.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});V||t.setHeader("x-nextjs-cache",O?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),N&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let s=(0,h.fromNodeOutgoingHttpHeaders)(n.value.headers);V&&U||s.delete(v.NEXT_CACHE_TAGS_HEADER),!n.cacheControl||t.getHeader("Cache-Control")||s.get("Cache-Control")||s.set("Cache-Control",(0,R.getCacheControlHeader)(n.cacheControl)),await (0,p.sendResponse)(z,Z,new Response(n.value.body,{headers:s,status:n.value.status||200}));return}catch(t){if(t instanceof g.NoFallbackError||await f.onRequestError(e,t,{routerKind:"App Router",routePath:M,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:K,isOnDemandRevalidate:O})},!1,S),U)throw t;await (0,p.sendResponse)(z,Z,new Response(null,{status:500}));return}finally{(()=>{if(!n)return;let e=t.statusCode;n.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(n.setStatus({code:s.SpanStatusCode.ERROR}),n.setAttribute("error.type",e.toString()));let a=$.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==d.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let r=a.get("next.route")||M,o=`${L} ${r}`;n.setAttributes({"next.route":r,"http.route":r,"next.span_name":o}),n.updateName(o),i&&i!==n&&(i.setAttribute("http.route",r),i.updateName(o))})()}};if(G&&B)await Y(B,void 0);else{let t=$.getActiveScopeSpan();await $.withPropagatedContext(e.headers,()=>$.trace(d.BaseServerSpan.handleRequest,{spanName:`${L} ${E}`,kind:s.SpanKind.SERVER,attributes:{"http.method":L,"http.target":e.url}},e=>Y(e,t)),void 0,!G)}}e.s(["handler",0,A,"patchFetch",0,function(){return(0,r.patchFetch)({workAsyncStorage:E,workUnitAsyncStorage:w})},"routeModule",0,f,"serverHooks",0,C,"workAsyncStorage",0,E,"workUnitAsyncStorage",0,w])}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__08qhrch._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[20635,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},43272,e=>{"use strict";var t=e.i(89171),r=e.i(62294);async function a(e,{params:n}){try{let{id:a}=await n,s=r.messages.getById(a);if(!s)return t.NextResponse.json({error:"Message not found"},{status:404});let{searchParams:o}=new URL(e.url),i=o.get("other")||o.get("to")||o.get("target")||o.get("end");if(!i)return t.NextResponse.json({error:"Other message id is required (other, to, target, or end)"},{status:400});let l=r.messages.getById(i);if(!l)return t.NextResponse.json({error:"Other message not found"},{status:404});if(l.conversation_id!==s.conversation_id)return t.NextResponse.json({error:"Messages are in different conversations"},{status:400});let d=(r.messages.getBetween(a,i)??[]).map(e=>{if("bot"===e.sender_type&&e.sender_id){let t=r.bots.getById(e.sender_id);return{...e,sender_name:t?.name}}return e});return t.NextResponse.json(d)}catch(e){return console.error("Error fetching messages between:",e),t.NextResponse.json({error:"Failed to fetch messages between"},{status:500})}}e.s(["GET",0,a])},84296,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),s=e.i(61916),o=e.i(74677),i=e.i(69741),l=e.i(16795),d=e.i(87718),u=e.i(95169),c=e.i(47587),p=e.i(66012),h=e.i(70101),R=e.i(26937),g=e.i(10372),v=e.i(93695),m=e.i(9580);e.i(52474);var f=e.i(220);let x=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/messages/[id]/between/route",pathname:"/api/messages/[id]/between",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/messages/[id]/between/route.ts",nextConfigOutput:"standalone",userland:()=>e.r(43272),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:E,serverHooks:C}=x;async function y(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),x.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let w="/api/messages/[id]/between/route";w=w.replace(/\/index$/,"")||"/";let E=await x.prepare(e,t,{srcPage:w,multiZoneDraftMode:!1});if(!E)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:C,deploymentId:y,params:b,nextConfig:A,parsedUrl:T,isDraftMode:N,prerenderManifest:_,routerServerContext:P,isOnDemandRevalidate:S,revalidateOnlyGenerated:O,resolvedPathname:q,clientReferenceManifest:I,serverActionsManifest:H}=E,M=(0,i.normalizeAppPath)(w),j=!!_.routes[q]&&(x.isDev||(0,m.isRouteCacheOwner)(q,x.cacheOwner,_.routes[q])),U=!!(_.dynamicRoutes[M]||j),k=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,T,!1):t.end("This page could not be found"),null);if(U&&!N){let e=_.dynamicRoutes[M];if(e&&!1===e.fallback&&!j){if(A.adapterPath)return await k();throw new v.NoFallbackError}}let D=null;!U||x.isDev||N||(D="/index"===(D=q)?"/":D);let B=!0===x.isDev||!U,F=U&&!B;H&&I&&(0,o.setManifestsSingleton)({page:w,clientReferenceManifest:I,serverActionsManifest:H});let K=e.method||"GET",L=(0,s.getTracer)(),$=L.getActiveScopeSpan(),G=!!(null==P?void 0:P.isWrappedByNextServer),V=!!(0,n.getRequestMeta)(e,"minimalMode"),X=(0,n.getRequestMeta)(e,"incrementalCache")||await x.getIncrementalCache(e,A,_,V);null==X||X.resetRequestCache(),globalThis.__incrementalCache=X;let W={params:b,previewProps:_.preview,renderOpts:{experimental:{authInterrupts:!!A.experimental.authInterrupts,useCacheTimeout:A.experimental.useCacheTimeout},cacheComponents:!!A.cacheComponents,validationLevel:A.experimental.instantInsights.validationLevel,isDraftMode:N,supportsDynamicResponse:B,incrementalCache:X,hmrRefreshHash:(0,n.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:A.cacheLife,staticPageGenerationTimeout:A.staticPageGenerationTimeout,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>x.onRequestError(e,t,a,n,P)},sharedContext:{buildId:C,deploymentId:y}},z=new l.NodeNextRequest(e),Z=new l.NodeNextResponse(t),J=d.NextRequestAdapter.fromNodeNextRequest(z,(0,d.signalFromNodeResponse)(t)),Q=async({previousCacheEntry:r})=>{try{if(!V&&S&&O&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await x.handle(J,W);e.fetchMetrics=W.renderOpts.fetchMetrics;let s=W.renderOpts.pendingWaitUntil;s&&a.waitUntil&&(a.waitUntil(s),s=void 0);let o=W.renderOpts.collectedTags;if(!U)return await (0,p.sendResponse)(z,Z,n,s),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);o&&(t[g.NEXT_CACHE_TAGS_HEADER]=o),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==W.renderOpts.collectedRevalidate&&!(W.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&W.renderOpts.collectedRevalidate,a=void 0===W.renderOpts.collectedExpire||W.renderOpts.collectedExpire>=g.INFINITE_CACHE?!1!==r&&r>0?A.expireTime:void 0:W.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await x.onRequestError(e,t,{routerKind:"App Router",routePath:w,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:F,isOnDemandRevalidate:S})},!1,P),t}},Y=async(n,o)=>{try{var i,l;let n=await x.handleResponse({req:e,nextConfig:A,cacheKey:D,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:_,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:O,responseGenerator:Q,waitUntil:a.waitUntil,isMinimalMode:V});if(!U)return;if((null==n||null==(i=n.value)?void 0:i.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==n||null==(l=n.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});V||t.setHeader("x-nextjs-cache",S?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),N&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let s=(0,h.fromNodeOutgoingHttpHeaders)(n.value.headers);V&&U||s.delete(g.NEXT_CACHE_TAGS_HEADER),!n.cacheControl||t.getHeader("Cache-Control")||s.get("Cache-Control")||s.set("Cache-Control",(0,R.getCacheControlHeader)(n.cacheControl)),await (0,p.sendResponse)(z,Z,new Response(n.value.body,{headers:s,status:n.value.status||200}));return}catch(t){if(t instanceof v.NoFallbackError||await x.onRequestError(e,t,{routerKind:"App Router",routePath:M,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:F,isOnDemandRevalidate:S})},!1,P),U)throw t;await (0,p.sendResponse)(z,Z,new Response(null,{status:500}));return}finally{(()=>{if(!n)return;let e=t.statusCode;n.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(n.setStatus({code:s.SpanStatusCode.ERROR}),n.setAttribute("error.type",e.toString()));let r=L.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route")||M,i=`${K} ${a}`;n.setAttributes({"next.route":a,"http.route":a,"next.span_name":i}),n.updateName(i),o&&o!==n&&(o.setAttribute("http.route",a),o.updateName(i))})()}};if(G&&$)await Y($,void 0);else{let t=L.getActiveScopeSpan();await L.withPropagatedContext(e.headers,()=>L.trace(u.BaseServerSpan.handleRequest,{spanName:`${K} ${w}`,kind:s.SpanKind.SERVER,attributes:{"http.method":K,"http.target":e.url}},e=>Y(e,t)),void 0,!G)}}e.s(["handler",0,y,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:E})},"routeModule",0,x,"serverHooks",0,C,"workAsyncStorage",0,w,"workUnitAsyncStorage",0,E])}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__097ptn_._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[20635,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},18150,e=>{"use strict";var t=e.i(89171),a=e.i(62294);async function r(){try{let e=a.bots.managementRows().map(e=>{let t=(0,a.serializeAgent)(e.bot);return{id:e.bot.id,name:e.bot.name,hidden:+!!e.bot.hidden,agent:t.agent,deck_id:t.deck_id,deck_name:t.deck_name,needs_deck_selection:t.needs_deck_selection,launch_profile:t.launch_profile,needs_launch_profile:t.needs_launch_profile,source_provider:e.bot.source_provider??null,created_at:e.bot.created_at,last_activity:e.last_activity,blocked:e.blocked}});return t.NextResponse.json(e)}catch(e){return console.error("Error listing agents for management:",e),t.NextResponse.json({error:"Failed to list agents"},{status:500})}}e.s(["GET",0,r])},84629,e=>{"use strict";var t=e.i(47909),a=e.i(74017),r=e.i(96250),n=e.i(59756),o=e.i(61916),s=e.i(74677),i=e.i(69741),l=e.i(16795),d=e.i(87718),u=e.i(95169),c=e.i(47587),p=e.i(66012),h=e.i(70101),R=e.i(26937),v=e.i(10372),g=e.i(93695),m=e.i(9580);e.i(52474);var f=e.i(220);let x=new t.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/bots/manage/route",pathname:"/api/bots/manage",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/bots/manage/route.ts",nextConfigOutput:"standalone",userland:()=>e.r(18150),...{}}),{workAsyncStorage:E,workUnitAsyncStorage:w,serverHooks:_}=x;async function C(e,t,r){r.requestMeta&&(0,n.setRequestMeta)(e,r.requestMeta),x.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let E="/api/bots/manage/route";E=E.replace(/\/index$/,"")||"/";let w=await x.prepare(e,t,{srcPage:E,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:_,deploymentId:C,params:b,nextConfig:y,parsedUrl:A,isDraftMode:T,prerenderManifest:N,routerServerContext:P,isOnDemandRevalidate:S,revalidateOnlyGenerated:k,resolvedPathname:O,clientReferenceManifest:q,serverActionsManifest:H}=w,I=(0,i.normalizeAppPath)(E),M=!!N.routes[O]&&(x.isDev||(0,m.isRouteCacheOwner)(O,x.cacheOwner,N.routes[O])),U=!!(N.dynamicRoutes[I]||M),D=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,A,!1):t.end("This page could not be found"),null);if(U&&!T){let e=N.dynamicRoutes[I];if(e&&!1===e.fallback&&!M){if(y.adapterPath)return await D();throw new g.NoFallbackError}}let j=null;!U||x.isDev||T||(j="/index"===(j=O)?"/":j);let F=!0===x.isDev||!U,K=U&&!F;H&&q&&(0,s.setManifestsSingleton)({page:E,clientReferenceManifest:q,serverActionsManifest:H});let L=e.method||"GET",$=(0,o.getTracer)(),B=$.getActiveScopeSpan(),G=!!(null==P?void 0:P.isWrappedByNextServer),V=!!(0,n.getRequestMeta)(e,"minimalMode"),X=(0,n.getRequestMeta)(e,"incrementalCache")||await x.getIncrementalCache(e,y,N,V);null==X||X.resetRequestCache(),globalThis.__incrementalCache=X;let z={params:b,previewProps:N.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,isDraftMode:T,supportsDynamicResponse:F,incrementalCache:X,hmrRefreshHash:(0,n.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,a,r,n)=>x.onRequestError(e,t,r,n,P)},sharedContext:{buildId:_,deploymentId:C}},W=new l.NodeNextRequest(e),Z=new l.NodeNextResponse(t),J=d.NextRequestAdapter.fromNodeNextRequest(W,(0,d.signalFromNodeResponse)(t)),Q=async({previousCacheEntry:a})=>{try{if(!V&&S&&k&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await x.handle(J,z);e.fetchMetrics=z.renderOpts.fetchMetrics;let o=z.renderOpts.pendingWaitUntil;o&&r.waitUntil&&(r.waitUntil(o),o=void 0);let s=z.renderOpts.collectedTags;if(!U)return await (0,p.sendResponse)(W,Z,n,o),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);s&&(t[v.NEXT_CACHE_TAGS_HEADER]=s),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let a=void 0!==z.renderOpts.collectedRevalidate&&!(z.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&z.renderOpts.collectedRevalidate,r=void 0===z.renderOpts.collectedExpire||z.renderOpts.collectedExpire>=v.INFINITE_CACHE?!1!==a&&a>0?y.expireTime:void 0:z.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:a,expire:r}}}}catch(t){throw(null==a?void 0:a.isStale)&&await x.onRequestError(e,t,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:K,isOnDemandRevalidate:S})},!1,P),t}},Y=async(n,s)=>{try{var i,l;let n=await x.handleResponse({req:e,nextConfig:y,cacheKey:j,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:k,responseGenerator:Q,waitUntil:r.waitUntil,isMinimalMode:V});if(!U)return;if((null==n||null==(i=n.value)?void 0:i.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==n||null==(l=n.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});V||t.setHeader("x-nextjs-cache",S?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),T&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let o=(0,h.fromNodeOutgoingHttpHeaders)(n.value.headers);V&&U||o.delete(v.NEXT_CACHE_TAGS_HEADER),!n.cacheControl||t.getHeader("Cache-Control")||o.get("Cache-Control")||o.set("Cache-Control",(0,R.getCacheControlHeader)(n.cacheControl)),await (0,p.sendResponse)(W,Z,new Response(n.value.body,{headers:o,status:n.value.status||200}));return}catch(t){if(t instanceof g.NoFallbackError||await x.onRequestError(e,t,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:K,isOnDemandRevalidate:S})},!1,P),U)throw t;await (0,p.sendResponse)(W,Z,new Response(null,{status:500}));return}finally{(()=>{if(!n)return;let e=t.statusCode;n.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(n.setStatus({code:o.SpanStatusCode.ERROR}),n.setAttribute("error.type",e.toString()));let a=$.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==u.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let r=a.get("next.route")||I,i=`${L} ${r}`;n.setAttributes({"next.route":r,"http.route":r,"next.span_name":i}),n.updateName(i),s&&s!==n&&(s.setAttribute("http.route",r),s.updateName(i))})()}};if(G&&B)await Y(B,void 0);else{let t=$.getActiveScopeSpan();await $.withPropagatedContext(e.headers,()=>$.trace(u.BaseServerSpan.handleRequest,{spanName:`${L} ${E}`,kind:o.SpanKind.SERVER,attributes:{"http.method":L,"http.target":e.url}},e=>Y(e,t)),void 0,!G)}}e.s(["handler",0,C,"patchFetch",0,function(){return(0,r.patchFetch)({workAsyncStorage:E,workUnitAsyncStorage:w})},"routeModule",0,x,"serverHooks",0,_,"workAsyncStorage",0,E,"workUnitAsyncStorage",0,w])}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__09m9-pe._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[20635,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},25211,e=>{"use strict";let t=/^[A-Za-z0-9][A-Za-z0-9._-]*$/;e.s(["isSafeFileName",0,function(e){return t.test(e)},"parseApprovalCode",0,function(e){let t=e.match(/approve using the code ([A-Za-z0-9][A-Za-z0-9_-]*)/i);return t?t[1]:null},"parseDraft",0,function(e){let t,r=e.match(/^\s*\[draft\]\s*([\s\S]*)$/);if(!r)return null;try{t=JSON.parse(r[1])}catch{return null}if(!t||"object"!=typeof t)return null;let n=t;return"email"!==n.channel&&"slack"!==n.channel||"open"!==n.state&&"sent"!==n.state&&"discarded"!==n.state||"string"!=typeof n.recipient||"string"!=typeof n.body?null:{channel:n.channel,recipient:n.recipient,body:n.body,state:n.state}},"parseFileNames",0,function(e){let t=[];for(let r of e.split("\n")){let e=r.match(/^\s*\[file\]\s*(\S+)\s*$/i);e&&!t.includes(e[1])&&t.push(e[1])}return t},"serializeDraft",0,function(e){return"[draft]\n"+JSON.stringify({channel:e.channel,recipient:e.recipient,body:e.body,state:e.state})}])}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__0b7w1z3._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[20635,(e,r,s)=>{r.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,r,s)=>{r.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},49166,e=>{"use strict";var r=e.i(89171);let s="1.0.0";async function t(){return r.NextResponse.json({schema_version:s,supported:{identity:!0,description:!0,avatar:!0,verification:!0},unsupported:{memories:!0,skills:!0,routines:!0,integrations:!0}})}e.s(["GET",0,t,"IMPORT_SCHEMA_VERSION",0,s])}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__0f5yqjs._.js.map
@@ -1,44 +0,0 @@
1
- module.exports=[20635,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},53293,e=>{"use strict";var t=e.i(89171),a=e.i(62294),n=e.i(90027),s=e.i(674),r=e.i(16789);async function i(e,{params:o}){try{let{id:i}=await o;if(!(0,n.agentExists)(a.default,i))return t.NextResponse.json({error:"Agent not found"},{status:404});let d=new URL(e.url).searchParams.get("status")??"all";if(!(0,n.isSessionFilter)(d))return t.NextResponse.json({error:"status must be active, ended, or all"},{status:400});return await (0,r.warmAgentProvider)(a.default,i,{onlyWithSessions:!0}),t.NextResponse.json({status:d,sessions:(0,s.sessionsWithActions)(i,(0,n.listAgentSessions)(a.default,i,d))})}catch(e){return console.error("Error listing agent sessions:",e),t.NextResponse.json({error:"Failed to list sessions"},{status:500})}}e.s(["GET",0,i])},58554,e=>{"use strict";var t=e.i(47909),a=e.i(74017),n=e.i(96250),s=e.i(59756),r=e.i(61916),i=e.i(74677),o=e.i(69741),d=e.i(16795),l=e.i(87718),u=e.i(95169),p=e.i(47587),c=e.i(66012),_=e.i(70101),g=e.i(26937),v=e.i(10372),E=e.i(93695),m=e.i(9580);e.i(52474);var h=e.i(220);let b=new t.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/bots/[id]/sessions/route",pathname:"/api/bots/[id]/sessions",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/bots/[id]/sessions/route.ts",nextConfigOutput:"standalone",userland:()=>e.r(53293),...{}}),{workAsyncStorage:f,workUnitAsyncStorage:S,serverHooks:R}=b;async function A(e,t,n){n.requestMeta&&(0,s.setRequestMeta)(e,n.requestMeta),b.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/bots/[id]/sessions/route";f=f.replace(/\/index$/,"")||"/";let S=await b.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!S)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:R,deploymentId:A,params:y,nextConfig:N,parsedUrl:C,isDraftMode:O,prerenderManifest:x,routerServerContext:w,isOnDemandRevalidate:T,revalidateOnlyGenerated:k,resolvedPathname:q,clientReferenceManifest:L,serverActionsManifest:I}=S,H=(0,o.normalizeAppPath)(f),M=!!x.routes[q]&&(b.isDev||(0,m.isRouteCacheOwner)(q,b.cacheOwner,x.routes[q])),D=!!(x.dynamicRoutes[H]||M),F=async()=>((null==w?void 0:w.render404)?await w.render404(e,t,C,!1):t.end("This page could not be found"),null);if(D&&!O){let e=x.dynamicRoutes[H];if(e&&!1===e.fallback&&!M){if(N.adapterPath)return await F();throw new E.NoFallbackError}}let P=null;!D||b.isDev||O||(P="/index"===(P=q)?"/":P);let U=!0===b.isDev||!D,$=D&&!U;I&&L&&(0,i.setManifestsSingleton)({page:f,clientReferenceManifest:L,serverActionsManifest:I});let W=e.method||"GET",j=(0,r.getTracer)(),J=j.getActiveScopeSpan(),G=!!(null==w?void 0:w.isWrappedByNextServer),K=!!(0,s.getRequestMeta)(e,"minimalMode"),X=(0,s.getRequestMeta)(e,"incrementalCache")||await b.getIncrementalCache(e,N,x,K);null==X||X.resetRequestCache(),globalThis.__incrementalCache=X;let B={params:y,previewProps:x.preview,renderOpts:{experimental:{authInterrupts:!!N.experimental.authInterrupts,useCacheTimeout:N.experimental.useCacheTimeout},cacheComponents:!!N.cacheComponents,validationLevel:N.experimental.instantInsights.validationLevel,isDraftMode:O,supportsDynamicResponse:U,incrementalCache:X,hmrRefreshHash:(0,s.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:N.cacheLife,staticPageGenerationTimeout:N.staticPageGenerationTimeout,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,a,n,s)=>b.onRequestError(e,t,n,s,w)},sharedContext:{buildId:R,deploymentId:A}},V=new d.NodeNextRequest(e),z=new d.NodeNextResponse(t),Y=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(t)),Z=async({previousCacheEntry:a})=>{try{if(!K&&T&&k&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await b.handle(Y,B);e.fetchMetrics=B.renderOpts.fetchMetrics;let r=B.renderOpts.pendingWaitUntil;r&&n.waitUntil&&(n.waitUntil(r),r=void 0);let i=B.renderOpts.collectedTags;if(!D)return await (0,c.sendResponse)(V,z,s,r),null;{let e=await s.blob(),t=(0,_.toNodeOutgoingHttpHeaders)(s.headers);i&&(t[v.NEXT_CACHE_TAGS_HEADER]=i),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let a=void 0!==B.renderOpts.collectedRevalidate&&!(B.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&B.renderOpts.collectedRevalidate,n=void 0===B.renderOpts.collectedExpire||B.renderOpts.collectedExpire>=v.INFINITE_CACHE?!1!==a&&a>0?N.expireTime:void 0:B.renderOpts.collectedExpire;return{value:{kind:h.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:a,expire:n}}}}catch(t){throw(null==a?void 0:a.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:T})},!1,w),t}},Q=async(s,i)=>{try{var o,d;let s=await b.handleResponse({req:e,nextConfig:N,cacheKey:P,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:x,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:k,responseGenerator:Z,waitUntil:n.waitUntil,isMinimalMode:K});if(!D)return;if((null==s||null==(o=s.value)?void 0:o.kind)!==h.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==s||null==(d=s.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",T?"REVALIDATED":s.isMiss?"MISS":s.isStale?"STALE":"HIT"),O&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let r=(0,_.fromNodeOutgoingHttpHeaders)(s.value.headers);K&&D||r.delete(v.NEXT_CACHE_TAGS_HEADER),!s.cacheControl||t.getHeader("Cache-Control")||r.get("Cache-Control")||r.set("Cache-Control",(0,g.getCacheControlHeader)(s.cacheControl)),await (0,c.sendResponse)(V,z,new Response(s.value.body,{headers:r,status:s.value.status||200}));return}catch(t){if(t instanceof E.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:T})},!1,w),D)throw t;await (0,c.sendResponse)(V,z,new Response(null,{status:500}));return}finally{(()=>{if(!s)return;let e=t.statusCode;s.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(s.setStatus({code:r.SpanStatusCode.ERROR}),s.setAttribute("error.type",e.toString()));let a=j.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==u.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=a.get("next.route")||H,o=`${W} ${n}`;s.setAttributes({"next.route":n,"http.route":n,"next.span_name":o}),s.updateName(o),i&&i!==s&&(i.setAttribute("http.route",n),i.updateName(o))})()}};if(G&&J)await Q(J,void 0);else{let t=j.getActiveScopeSpan();await j.withPropagatedContext(e.headers,()=>j.trace(u.BaseServerSpan.handleRequest,{spanName:`${W} ${f}`,kind:r.SpanKind.SERVER,attributes:{"http.method":W,"http.target":e.url}},e=>Q(e,t)),void 0,!G)}}e.s(["handler",0,A,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:f,workUnitAsyncStorage:S})},"routeModule",0,b,"serverHooks",0,R,"workAsyncStorage",0,f,"workUnitAsyncStorage",0,S])},90027,e=>{"use strict";var t=e.i(62349),a=e.i(28420);let n=["active","ended","all"],s=["implementation","revision"],r=`
2
- SELECT b.*, bot.name AS agent_name, bot.agent AS agent_runtime, r.id AS origin_request_id, c.id AS origin_conversation_id,
3
- c.type AS conversation_type, c.bot_id AS conversation_bot_id, tb.name AS thread_agent_name, g.name AS group_name,
4
- r.intent AS request_intent, r.execution_kind AS request_kind, r.state AS request_state,
5
- r.source_conversation_id AS request_conversation_id, r.target_agent_id AS request_target_agent_id,
6
- sa.launch_snapshot AS source_snapshot, sa.finished_at AS source_finished_at,
7
- (SELECT MAX(COALESCE(ra.finished_at, ra.started_at)) FROM work_attempts ra WHERE ra.resumed_session_binding_id = b.id) AS resumed_last_at,
8
- EXISTS (SELECT 1 FROM work_attempts oa WHERE oa.resumed_session_binding_id = b.id AND oa.finished_at IS NULL) AS attempt_running,
9
- ps.availability AS ps_availability, ps.lifecycle AS ps_lifecycle, ps.resumable AS ps_resumable, ps.busy AS ps_busy,
10
- ps.workspace AS ps_workspace, ps.last_synced_at AS ps_synced_at,
11
- EXISTS (SELECT 1 FROM provider_session_turns pt WHERE pt.session_ref = ps.id AND pt.state = 'running') AS ps_running
12
- FROM session_bindings b
13
- JOIN bots bot ON bot.id = b.agent_id
14
- LEFT JOIN provider_sessions ps ON ps.binding_id = b.id
15
- LEFT JOIN work_attempts sa ON sa.id = b.source_attempt_id
16
- LEFT JOIN work_requests r ON r.id = COALESCE(b.request_id, sa.request_id)
17
- LEFT JOIN conversations c ON c.id = COALESCE(b.conversation_id, r.source_conversation_id)
18
- LEFT JOIN bots tb ON tb.id = c.bot_id
19
- LEFT JOIN groups g ON g.id = c.group_id
20
- `,i=`
21
- SELECT ps.id, ps.agent_id, bot.name AS agent_name, ps.provider_kind, ps.title, ps.workspace,
22
- ps.provider_created_at, ps.provider_updated_at, ps.availability, ps.lifecycle, ps.resumable, ps.busy,
23
- ps.last_synced_at, ps.created_at, ps.updated_at,
24
- (SELECT MAX(COALESCE(t.finished_at, t.created_at)) FROM provider_session_turns t WHERE t.session_ref = ps.id) AS turn_last_at,
25
- EXISTS (SELECT 1 FROM provider_session_turns t WHERE t.session_ref = ps.id AND t.state = 'running') AS running
26
- FROM provider_sessions ps
27
- JOIN bots bot ON bot.id = ps.agent_id
28
- WHERE ps.binding_id IS NULL
29
- `;function o(e){return`${new Date(e).toISOString().slice(0,16).replace("T"," ")} UTC`}function d(e,t){let a=e?.[t];return"string"==typeof a&&a.trim().length>0?a:null}function l(e){let t=e.origin_conversation_id;return t?"group"===e.conversation_type?{id:t,kind:"group",label:e.group_name?`Group ${e.group_name}`:"Group thread",thread_agent_id:null}:"bot"===e.conversation_type&&e.conversation_bot_id?{id:t,kind:"direct",label:e.thread_agent_name?`${e.thread_agent_name} thread`:"Agent thread",thread_agent_id:e.thread_agent_name?e.conversation_bot_id:null}:{id:t,kind:"agent_api",label:"Agent API conversation",thread_agent_id:null}:null}function u(e,n=(0,a.emptyUsage)()){let r,i=null;try{i=e.source_snapshot?JSON.parse(e.source_snapshot):null}catch{}let p=l(e),c=null===e.released_at?"active":"ended",_=((r=(e.request_intent??"").split("\n").map(e=>e.trim()).find(e=>e.length>0))?r.length>80?`${r.slice(0,79).trimEnd()}…`:r:null)??(p?.kind==="group"?p.label:null)??`${e.agent_name} \xb7 ${o(e.created_at)}`;return{ref:e.id,source:"botmancers",agent:{id:e.agent_id,name:e.agent_name,adapter:e.adapter,transport:d(i,"transport")},title:_,status:c,resumable:null===e.released_at&&null!==e.request_id&&null!==e.request_kind&&s.includes(e.request_kind)&&e.request_target_agent_id===e.agent_id&&(e.conversation_id??"")===(e.request_conversation_id??"")&&e.adapter===(0,t.resolveAgent)({agent:e.agent_runtime}).agent,state:{availability:e.ps_availability??"available",lifecycle:e.ps_lifecycle??"open",resumable:null===e.ps_resumable||void 0===e.ps_resumable?null:1===e.ps_resumable,busy:1===e.ps_busy||!!e.attempt_running||!!e.ps_running,synced_at:e.ps_synced_at??null},created_at:e.created_at,ended_at:e.released_at,last_activity_at:Math.max(e.created_at,e.released_at??0,e.source_finished_at??0,e.resumed_last_at??0),origin:{conversation:p,work_request:e.origin_request_id&&e.request_kind&&e.request_state?{id:e.origin_request_id,execution_kind:e.request_kind,state:e.request_state}:null},context:{workspace:d(i,"cwd")??e.ps_workspace??null,deck:d(i,"deck")},usage:n}}function p(e,t=(0,a.emptyUsage)()){let n=e.provider_created_at??e.created_at,s=null===e.resumable?null:1===e.resumable,r="archived"===e.lifecycle?e.provider_updated_at??e.updated_at:null;return{ref:e.id,source:"native",agent:{id:e.agent_id,name:e.agent_name,adapter:e.provider_kind,transport:null},title:e.title??`${e.agent_name} \xb7 ${o(n)}`,status:"open"===e.lifecycle?"active":"ended",resumable:!1,state:{availability:e.availability,lifecycle:e.lifecycle,resumable:s,busy:1===e.busy||!!e.running,synced_at:e.last_synced_at},created_at:n,ended_at:r,last_activity_at:Math.max(n,e.provider_updated_at??0,e.turn_last_at??0),origin:{conversation:null,work_request:null},context:{workspace:e.workspace,deck:null},usage:t}}function c(e,t){return t.last_activity_at-e.last_activity_at||t.created_at-e.created_at||(e.ref<t.ref?-1:+(e.ref>t.ref))}function _(e,t,a){return e.prepare(`${i} AND ps.id = ? AND ps.agent_id = ?`).get(a,t)}function g(e,t,a){return e.prepare(`${r} WHERE b.id = ? AND b.agent_id = ?`).get(a,t)}e.s(["agentExists",0,function(e,t){return!!e.prepare("SELECT 1 FROM bots WHERE id = ?").get(t)},"conversationRef",0,function(e,t){let a=e.prepare(`
30
- SELECT c.id AS origin_conversation_id, c.type AS conversation_type, c.bot_id AS conversation_bot_id,
31
- tb.name AS thread_agent_name, g.name AS group_name
32
- FROM conversations c
33
- LEFT JOIN bots tb ON tb.id = c.bot_id
34
- LEFT JOIN groups g ON g.id = c.group_id
35
- WHERE c.id = ?
36
- `).get(t);return a?l(a):null},"getAgentSession",0,function(e,t,n){let s=g(e,t,n);if(!s){let s=_(e,t,n);if(!s)return;let{usage:r,samples:i}=(0,a.sessionUsageSamples)(e,t,n);return{...p(s,r),attempts:[],usage_samples:i}}let r=e.prepare(`
37
- SELECT a.attempt_number, a.kind, a.request_id, a.outcome, a.started_at, a.finished_at,
38
- CASE WHEN a.id = ? THEN 'source' ELSE 'resume' END AS role
39
- FROM work_attempts a
40
- WHERE a.id = ? OR a.resumed_session_binding_id = ?
41
- ORDER BY a.started_at ASC, a.id ASC
42
- `).all(s.source_attempt_id,s.source_attempt_id,s.id),{usage:i,samples:o}=(0,a.sessionUsageSamples)(e,t,n);return{...u(s,i),attempts:r,usage_samples:o}},"isSessionFilter",0,function(e){return"string"==typeof e&&n.includes(e)},"listAgentSessions",0,function(e,t,n="all"){let s=e.prepare(`${r} WHERE b.agent_id = ? ${"active"===n?"AND b.released_at IS NULL":"ended"===n?"AND b.released_at IS NOT NULL":""}`).all(t),o=e.prepare(`${i} AND ps.agent_id = ? ${"active"===n?"AND ps.lifecycle = 'open'":"ended"===n?"AND ps.lifecycle = 'archived'":""}`).all(t),d=(0,a.agentSessionUsage)(e,t);return[...s.map(e=>u(e,d.get(e.id))),...o.map(e=>p(e,d.get(e.id)))].sort(c)},"sessionDebugExternalId",0,function(e,t,a){let n=g(e,t,a)?.external_session_id;if(void 0!==n)return n;if(!_(e,t,a))return;let s=e.prepare("SELECT provider_session_id FROM provider_sessions WHERE id = ? AND agent_id = ?").get(a,t);return s?.provider_session_id},"sessionTitle",0,function(e,t,a){let n=g(e,t,a);if(n)return u(n).title;let s=_(e,t,a);return s?p(s).title:null}])}];
43
-
44
- //# sourceMappingURL=%5Broot-of-the-server%5D__0g4um3-._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[20635,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},4646,e=>{"use strict";var t=e.i(89171),r=e.i(62294);let a="Pick 2 to 6 bots.";async function n(){try{let e=r.groups.getAll().map(e=>({...e,members:r.groups.getMembers(e.id)}));return t.NextResponse.json(e)}catch(e){return console.error("Error fetching groups:",e),t.NextResponse.json({error:"Failed to fetch groups"},{status:500})}}async function s(e){try{let{name:n,botIds:s,ownerId:o}=await e.json();if(!n||!s||!Array.isArray(s)||0===s.length)return t.NextResponse.json({error:"Name and botIds array are required"},{status:400});if(s.length<2||s.length>6)return t.NextResponse.json({error:a},{status:400});for(let e of s)if("string"!=typeof e||!r.bots.getById(e))return t.NextResponse.json({error:"Unknown botId"},{status:400});let i="string"==typeof o&&s.includes(o)?o:void 0,u=r.groups.create(n,s,i);return t.NextResponse.json({...u,members:r.groups.getMembers(u.id)})}catch(e){return console.error("Error creating group:",e),t.NextResponse.json({error:"Failed to create group"},{status:500})}}async function o(e){try{let{id:a,name:n}=await e.json().catch(()=>null)??{};if("string"!=typeof a||!a)return t.NextResponse.json({error:"id is required"},{status:400});if("string"!=typeof n||!n.trim())return t.NextResponse.json({error:"name is required"},{status:400});if(!r.groups.getById(a))return t.NextResponse.json({error:"Group not found"},{status:404});r.groups.rename(a,n.trim());let s=r.groups.getById(a);return t.NextResponse.json({...s,members:r.groups.getMembers(a)})}catch(e){return console.error("Error renaming group:",e),t.NextResponse.json({error:"Failed to rename group"},{status:500})}}e.s(["GET",0,n,"GROUP_MAX_MEMBERS",0,6,"GROUP_MIN_MEMBERS",0,2,"GROUP_SIZE_ERROR",0,a,"PATCH",0,o,"POST",0,s])},71798,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),s=e.i(61916),o=e.i(74677),i=e.i(69741),u=e.i(16795),l=e.i(87718),d=e.i(95169),p=e.i(47587),c=e.i(66012),h=e.i(70101),R=e.i(26937),g=e.i(10372),f=e.i(93695),v=e.i(9580);e.i(52474);var m=e.i(220);let x=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/groups/route",pathname:"/api/groups",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/groups/route.ts",nextConfigOutput:"standalone",userland:()=>e.r(4646),...{}}),{workAsyncStorage:E,workUnitAsyncStorage:y,serverHooks:w}=x;async function C(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),x.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let E="/api/groups/route";E=E.replace(/\/index$/,"")||"/";let y=await x.prepare(e,t,{srcPage:E,multiZoneDraftMode:!1});if(!y)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,deploymentId:C,params:N,nextConfig:A,parsedUrl:b,isDraftMode:T,prerenderManifest:P,routerServerContext:S,isOnDemandRevalidate:O,revalidateOnlyGenerated:_,resolvedPathname:j,clientReferenceManifest:M,serverActionsManifest:q}=y,I=(0,i.normalizeAppPath)(E),H=!!P.routes[j]&&(x.isDev||(0,v.isRouteCacheOwner)(j,x.cacheOwner,P.routes[j])),U=!!(P.dynamicRoutes[I]||H),k=async()=>((null==S?void 0:S.render404)?await S.render404(e,t,b,!1):t.end("This page could not be found"),null);if(U&&!T){let e=P.dynamicRoutes[I];if(e&&!1===e.fallback&&!H){if(A.adapterPath)return await k();throw new f.NoFallbackError}}let D=null;!U||x.isDev||T||(D="/index"===(D=j)?"/":D);let B=!0===x.isDev||!U,F=U&&!B;q&&M&&(0,o.setManifestsSingleton)({page:E,clientReferenceManifest:M,serverActionsManifest:q});let G=e.method||"GET",K=(0,s.getTracer)(),L=K.getActiveScopeSpan(),$=!!(null==S?void 0:S.isWrappedByNextServer),X=!!(0,n.getRequestMeta)(e,"minimalMode"),V=(0,n.getRequestMeta)(e,"incrementalCache")||await x.getIncrementalCache(e,A,P,X);null==V||V.resetRequestCache(),globalThis.__incrementalCache=V;let W={params:N,previewProps:P.preview,renderOpts:{experimental:{authInterrupts:!!A.experimental.authInterrupts,useCacheTimeout:A.experimental.useCacheTimeout},cacheComponents:!!A.cacheComponents,validationLevel:A.experimental.instantInsights.validationLevel,isDraftMode:T,supportsDynamicResponse:B,incrementalCache:V,hmrRefreshHash:(0,n.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:A.cacheLife,staticPageGenerationTimeout:A.staticPageGenerationTimeout,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>x.onRequestError(e,t,a,n,S)},sharedContext:{buildId:w,deploymentId:C}},Z=new u.NodeNextRequest(e),z=new u.NodeNextResponse(t),J=l.NextRequestAdapter.fromNodeNextRequest(Z,(0,l.signalFromNodeResponse)(t)),Q=async({previousCacheEntry:r})=>{try{if(!X&&O&&_&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await x.handle(J,W);e.fetchMetrics=W.renderOpts.fetchMetrics;let s=W.renderOpts.pendingWaitUntil;s&&a.waitUntil&&(a.waitUntil(s),s=void 0);let o=W.renderOpts.collectedTags;if(!U)return await (0,c.sendResponse)(Z,z,n,s),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);o&&(t[g.NEXT_CACHE_TAGS_HEADER]=o),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==W.renderOpts.collectedRevalidate&&!(W.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&W.renderOpts.collectedRevalidate,a=void 0===W.renderOpts.collectedExpire||W.renderOpts.collectedExpire>=g.INFINITE_CACHE?!1!==r&&r>0?A.expireTime:void 0:W.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await x.onRequestError(e,t,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:F,isOnDemandRevalidate:O})},!1,S),t}},Y=async(n,o)=>{try{var i,u;let n=await x.handleResponse({req:e,nextConfig:A,cacheKey:D,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:P,isRoutePPREnabled:!1,isOnDemandRevalidate:O,revalidateOnlyGenerated:_,responseGenerator:Q,waitUntil:a.waitUntil,isMinimalMode:X});if(!U)return;if((null==n||null==(i=n.value)?void 0:i.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==n||null==(u=n.value)?void 0:u.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});X||t.setHeader("x-nextjs-cache",O?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),T&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let s=(0,h.fromNodeOutgoingHttpHeaders)(n.value.headers);X&&U||s.delete(g.NEXT_CACHE_TAGS_HEADER),!n.cacheControl||t.getHeader("Cache-Control")||s.get("Cache-Control")||s.set("Cache-Control",(0,R.getCacheControlHeader)(n.cacheControl)),await (0,c.sendResponse)(Z,z,new Response(n.value.body,{headers:s,status:n.value.status||200}));return}catch(t){if(t instanceof f.NoFallbackError||await x.onRequestError(e,t,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:F,isOnDemandRevalidate:O})},!1,S),U)throw t;await (0,c.sendResponse)(Z,z,new Response(null,{status:500}));return}finally{(()=>{if(!n)return;let e=t.statusCode;n.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(n.setStatus({code:s.SpanStatusCode.ERROR}),n.setAttribute("error.type",e.toString()));let r=K.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route")||I,i=`${G} ${a}`;n.setAttributes({"next.route":a,"http.route":a,"next.span_name":i}),n.updateName(i),o&&o!==n&&(o.setAttribute("http.route",a),o.updateName(i))})()}};if($&&L)await Y(L,void 0);else{let t=K.getActiveScopeSpan();await K.withPropagatedContext(e.headers,()=>K.trace(d.BaseServerSpan.handleRequest,{spanName:`${G} ${E}`,kind:s.SpanKind.SERVER,attributes:{"http.method":G,"http.target":e.url}},e=>Y(e,t)),void 0,!$)}}e.s(["handler",0,C,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:E,workUnitAsyncStorage:y})},"routeModule",0,x,"serverHooks",0,w,"workAsyncStorage",0,E,"workUnitAsyncStorage",0,y])}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__0hro5ey._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[20635,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},88831,e=>{"use strict";var t=e.i(89171),r=e.i(62294),n=e.i(10860),a=e.i(38636);function s(e){let t=r.bots.getById(e);if(!t)return null;let s=(0,n.readSkillState)(t.name);return{bot:t,skill:s,currentHash:(0,a.hashSnapshot)((0,a.buildSnapshotInput)(t,s,r.memories.latestFacts(t.id)))}}async function i(e,{params:a}){try{let{id:i}=await a,o=r.bots.getById(i);if(!o)return t.NextResponse.json({error:"Bot not found"},{status:404});let l=await e.json(),u=void 0===l.content||null===l.content?"":String(l.content);try{(0,n.writeSkillForBot)(o.name,u)}catch(e){return t.NextResponse.json({error:e instanceof Error?e.message:"Failed to save skill"},{status:400})}return t.NextResponse.json(s(i))}catch(e){return console.error("Error saving skill:",e),t.NextResponse.json({error:"Failed to save skill"},{status:500})}}async function o(e,{params:a}){try{let{id:e}=await a,i=r.bots.getById(e);if(!i)return t.NextResponse.json({error:"Bot not found"},{status:404});try{(0,n.writeSkillForBot)(i.name,"")}catch(e){return t.NextResponse.json({error:e instanceof Error?e.message:"Failed to delete skill"},{status:400})}return t.NextResponse.json(s(e))}catch(e){return console.error("Error deleting skill:",e),t.NextResponse.json({error:"Failed to delete skill"},{status:500})}}e.s(["DELETE",0,o,"PUT",0,i])},15418,e=>{"use strict";var t=e.i(47909),r=e.i(74017),n=e.i(96250),a=e.i(59756),s=e.i(61916),i=e.i(74677),o=e.i(69741),l=e.i(16795),u=e.i(87718),d=e.i(95169),c=e.i(47587),p=e.i(66012),h=e.i(70101),f=e.i(26937),m=e.i(10372),v=e.i(93695),R=e.i(9580);e.i(52474);var g=e.i(220);let _=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/bots/[id]/skill/route",pathname:"/api/bots/[id]/skill",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/bots/[id]/skill/route.ts",nextConfigOutput:"standalone",userland:()=>e.r(88831),...{}}),{workAsyncStorage:y,workUnitAsyncStorage:S,serverHooks:x}=_;async function k(e,t,n){n.requestMeta&&(0,a.setRequestMeta)(e,n.requestMeta),_.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let y="/api/bots/[id]/skill/route";y=y.replace(/\/index$/,"")||"/";let S=await _.prepare(e,t,{srcPage:y,multiZoneDraftMode:!1});if(!S)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:x,deploymentId:k,params:w,nextConfig:E,parsedUrl:C,isDraftMode:b,prerenderManifest:A,routerServerContext:N,isOnDemandRevalidate:T,revalidateOnlyGenerated:P,resolvedPathname:I,clientReferenceManifest:O,serverActionsManifest:j}=S,q=(0,o.normalizeAppPath)(y),H=!!A.routes[I]&&(_.isDev||(0,R.isRouteCacheOwner)(I,_.cacheOwner,A.routes[I])),F=!!(A.dynamicRoutes[q]||H),M=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,C,!1):t.end("This page could not be found"),null);if(F&&!b){let e=A.dynamicRoutes[q];if(e&&!1===e.fallback&&!H){if(E.adapterPath)return await M();throw new v.NoFallbackError}}let U=null;!F||_.isDev||b||(U="/index"===(U=I)?"/":U);let B=!0===_.isDev||!F,D=F&&!B;j&&O&&(0,i.setManifestsSingleton)({page:y,clientReferenceManifest:O,serverActionsManifest:j});let L=e.method||"GET",$=(0,s.getTracer)(),K=$.getActiveScopeSpan(),z=!!(null==N?void 0:N.isWrappedByNextServer),G=!!(0,a.getRequestMeta)(e,"minimalMode"),W=(0,a.getRequestMeta)(e,"incrementalCache")||await _.getIncrementalCache(e,E,A,G);null==W||W.resetRequestCache(),globalThis.__incrementalCache=W;let Z={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts,useCacheTimeout:E.experimental.useCacheTimeout},cacheComponents:!!E.cacheComponents,validationLevel:E.experimental.instantInsights.validationLevel,isDraftMode:b,supportsDynamicResponse:B,incrementalCache:W,hmrRefreshHash:(0,a.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:E.cacheLife,staticPageGenerationTimeout:E.staticPageGenerationTimeout,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>_.onRequestError(e,t,n,a,N)},sharedContext:{buildId:x,deploymentId:k}},V=new l.NodeNextRequest(e),X=new l.NodeNextResponse(t),J=u.NextRequestAdapter.fromNodeNextRequest(V,(0,u.signalFromNodeResponse)(t)),Q=async({previousCacheEntry:r})=>{try{if(!G&&T&&P&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await _.handle(J,Z);e.fetchMetrics=Z.renderOpts.fetchMetrics;let s=Z.renderOpts.pendingWaitUntil;s&&n.waitUntil&&(n.waitUntil(s),s=void 0);let i=Z.renderOpts.collectedTags;if(!F)return await (0,p.sendResponse)(V,X,a,s),null;{let e=await a.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(a.headers);i&&(t[m.NEXT_CACHE_TAGS_HEADER]=i),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==Z.renderOpts.collectedRevalidate&&!(Z.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&Z.renderOpts.collectedRevalidate,n=void 0===Z.renderOpts.collectedExpire||Z.renderOpts.collectedExpire>=m.INFINITE_CACHE?!1!==r&&r>0?E.expireTime:void 0:Z.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await _.onRequestError(e,t,{routerKind:"App Router",routePath:y,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:T})},!1,N),t}},Y=async(a,i)=>{try{var o,l;let a=await _.handleResponse({req:e,nextConfig:E,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:P,responseGenerator:Q,waitUntil:n.waitUntil,isMinimalMode:G});if(!F)return;if((null==a||null==(o=a.value)?void 0:o.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==a||null==(l=a.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});G||t.setHeader("x-nextjs-cache",T?"REVALIDATED":a.isMiss?"MISS":a.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let s=(0,h.fromNodeOutgoingHttpHeaders)(a.value.headers);G&&F||s.delete(m.NEXT_CACHE_TAGS_HEADER),!a.cacheControl||t.getHeader("Cache-Control")||s.get("Cache-Control")||s.set("Cache-Control",(0,f.getCacheControlHeader)(a.cacheControl)),await (0,p.sendResponse)(V,X,new Response(a.value.body,{headers:s,status:a.value.status||200}));return}catch(t){if(t instanceof v.NoFallbackError||await _.onRequestError(e,t,{routerKind:"App Router",routePath:q,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:T})},!1,N),F)throw t;await (0,p.sendResponse)(V,X,new Response(null,{status:500}));return}finally{(()=>{if(!a)return;let e=t.statusCode;a.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(a.setStatus({code:s.SpanStatusCode.ERROR}),a.setAttribute("error.type",e.toString()));let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route")||q,o=`${L} ${n}`;a.setAttributes({"next.route":n,"http.route":n,"next.span_name":o}),a.updateName(o),i&&i!==a&&(i.setAttribute("http.route",n),i.updateName(o))})()}};if(z&&K)await Y(K,void 0);else{let t=$.getActiveScopeSpan();await $.withPropagatedContext(e.headers,()=>$.trace(d.BaseServerSpan.handleRequest,{spanName:`${L} ${y}`,kind:s.SpanKind.SERVER,attributes:{"http.method":L,"http.target":e.url}},e=>Y(e,t)),void 0,!z)}}e.s(["handler",0,k,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:S})},"routeModule",0,_,"serverHooks",0,x,"workAsyncStorage",0,y,"workUnitAsyncStorage",0,S])},10860,e=>{"use strict";var t=e.i(22734),r=e.i(14747),n=e.i(52036);function a(e){if(!/^[A-Za-z0-9_-]+$/.test(e))return null;let a=(0,n.skillsRootPath)(),s=r.default.resolve(a,e,"SKILL.md");if(!s.startsWith(a+r.default.sep))return null;try{let e=t.default.readFileSync(s,"utf8");return e.trim()?e:null}catch{return null}}function s(e){return/^[A-Za-z0-9_-]+$/.test(e)}function i(e){if(!e)return null;let t=a(e);if(!t)return null;let r=t.match(/ends with the exact token\s+(\S+)/i);return r?r[1]:null}function o(e){return s(e)?`skills/${e}/SKILL.md`:null}e.s(["applySkillEndToken",0,function(e,t){let r=i(e);return r?t?t.trimEnd().endsWith(r)?t:t+"\n"+r:r:t},"isSupportedSkillName",0,s,"localSkillForBot",0,a,"readSkillState",0,function(e){let t=o(e);if(!t)return{path:null,present:!1,content:null,status:"unsupported"};let r=a(e);return null===r?{path:t,present:!1,content:null,status:"absent"}:{path:t,present:!0,content:r,status:"present"}},"skillEndToken",0,i,"writeSkillForBot",0,function(e,a){let s=o(e);if(!s)throw Error("Skill files need a bot name matching /^[A-Za-z0-9_-]+$/");let i=(0,n.skillsRootPath)(),l=r.default.resolve(i,e,"SKILL.md");if(!l.startsWith(i+r.default.sep))throw Error("Skill files need a bot name matching /^[A-Za-z0-9_-]+$/");if(!a.trim()){try{t.default.rmSync(l)}catch{}return{path:s,present:!1,content:null,status:"absent"}}return t.default.mkdirSync(r.default.dirname(l),{recursive:!0}),t.default.writeFileSync(l,a),{path:s,present:!0,content:a,status:"present"}}])},38636,(e,t,r)=>{let{createHash:n}=e.r(54799);function a(e){if(Array.isArray(e))return e.map(a);if(null!==e&&"object"==typeof e){let t={};for(let r of Object.keys(e).sort())t[r]=a(e[r]);return t}return e}function s(e){return JSON.stringify(a(e))}function i(e){return null==e?null:String(e)}function o(e){return null==e?null:String(e).trim()||null}t.exports={sortKeysDeep:a,canonicalJson:s,hashSnapshot:function(e){return n("sha256").update(s(e),"utf8").digest("hex")},buildSnapshotInput:function(e,t,r=null){let n=o(e.agent)||"hermes",a=o(e.deck_id);return{agent:n,avatar_accessory:i(e.avatar_accessory),avatar_color:i(e.avatar_color),avatar_eyes:i(e.avatar_eyes),avatar_hands:i(e.avatar_hands),deck_id:a,deck_name:o(e.deck_name),description:null===e.description||void 0===e.description?"":String(e.description),import_operation_id:i(e.import_operation_id),import_schema_version:i(e.import_schema_version),memories:null==r?null:r.map(e=>String(e)),name:String(e.name),needs_deck_selection:null===a||function(e){if(!0===e||1===e)return!0;if("string"==typeof e){let t=e.trim().toLowerCase();return"1"===t||"true"===t}return!1}(e.needs_deck_selection),skill_content:i(t.content),skill_path:i(t.path),skill_present:null===t.present||void 0===t.present?null:!!t.present,source_provider:i(e.source_provider),template_id:i(e.template_id),template_url:i(e.template_url),title:null===e.title||void 0===e.title?"":String(e.title),working_directory:o(e.working_directory)}}}}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__0hwpgxq._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[33405,(e,t,n)=>{t.exports=e.x("child_process",()=>require("child_process"))},24836,(e,t,n)=>{t.exports=e.x("https",()=>require("https"))},20635,(e,t,n)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,t,n)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},51714,e=>{"use strict";let t=/^[A-Za-z0-9_-]+$/;function n(e){return"printf"===e}class s extends Error{}function r(e){throw new s(e)}function o(e){return"string"==typeof e&&t.test(e)||r("refused: command not allowlisted"),e.length>64&&r("refused: command not allowlisted"),e}let i=/^(?:please\s+)?(?:print|output|display|show|echo)\s+(?:the\s+)?word\s+([A-Za-z0-9_-]+)\s*(.*?)\s*[.?!]?\s*$/i,a=[/^$/,/^wait\s+(\d+)\s*seconds?$/,/^and\s+wait\s+(\d+)\s*seconds?$/,/^wait\s+for\s+(\d+)\s*seconds?$/,/^and\s+wait\s+for\s+(\d+)\s*seconds?$/,/^then\s+wait\s+(\d+)\s*seconds?$/];function l(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}e.s(["COMMAND_OUTPUT_MAX_BYTES",0,4096,"commandRunPage",0,function(e,t){let n=`printf %s ${e.args.word}`;return'<!doctype html><html><body style="margin:0;background:#0d1117;color:#c9d1d9;font:13px/1.5 ui-monospace,monospace;padding:12px">'+(null===t?`<div class="cmd">$ ${l(n)}</div><div class="dim">waiting ${e.waitSeconds}s…</div>`:`<div class="cmd">$ ${l(n)}</div><div class="out">${l(t)}</div>`)+"</body></html>"},"commandTimeoutMs",0,function(e){return 1e3*e+1e4},"parseCommandAsk",0,function(e){let n=(e||"").trim();if(!n||/^(?:please\s+)?(run|execute)\s+(?:a\s+)?command\b/i.test(n))return null;let s=n.match(i);if(!s)return null;let r=s[1];if(!t.test(r)||r.length>64)return null;let o=(s[2]||"").trim().replace(/^[,\s]+/,"").trim();for(let e of(o=o.replace(/\s+/g," "),a)){let t=o.match(e);if(!t)continue;if(!t[1])return{command:"printf",args:{word:r},waitSeconds:4};let n=Number(t[1]);if(!Number.isInteger(n)||n<1||n>30)break;return{command:"printf",args:{word:r},waitSeconds:n}}return null},"resolveCommand",0,function(e){n(e.command)||r("refused: command not allowlisted");let t=e.args??null,s=t?.format??e.format;void 0!==s&&"%s"!==s&&r("refused: command not allowlisted");let i=o(t?.word??e.word);return{bin:"/usr/bin/printf",argv:["%s",i],display:`printf %s ${i}`}},"validateCommandRequest",0,function(e){var t;n(e.command)||r("refused: command not allowlisted");let s=e.args,i=o(s?.word);return{command:e.command,args:{word:i},waitSeconds:(("number"!=typeof(t=e.waitSeconds)||!Number.isInteger(t)||t<1||t>30)&&r("refused: wait must be 1 to 30 seconds"),t)}}])},2803,77099,e=>{"use strict";var t=e.i(33405),n=e.i(14747),s=e.i(24836),r=e.i(62294);function o(e){try{let t=new URL(e);if("https:"!==t.protocol||t.username||t.password)return null;return e}catch{return null}}function i(e){let t,n=e.match(/^\s*\[run\]\s*([\s\S]*)$/);if(!n)return null;try{t=JSON.parse(n[1])}catch{return null}if(!t||"object"!=typeof t)return null;let s=t,r="string"==typeof s.page?s.page:"string"==typeof s.html?s.html:void 0,o=void 0===r?{}:{page:r,html:r};return"running"===s.state||"stopped"===s.state?{state:s.state,...o}:"done"===s.state&&"string"==typeof s.output?{state:"done",output:s.output,...o}:null}function a(e){let t={state:e.state};"done"===e.state&&"string"==typeof e.output&&(t.output=e.output);let n="string"==typeof e.page?e.page:"string"==typeof e.html?e.html:void 0;return void 0!==n&&(t.page=n),"[run]\n"+JSON.stringify(t)}e.s(["parseCodingLimbAsk",0,function(e){let t=e.trim();return(t.endsWith(".")&&(t=t.slice(0,-1).trim()),"Ask the coding limb which file holds parsePublicPageReadAsk and reply with that path"===t)?{seconds:4}:"Ask the coding limb which file holds parsePublicPageReadAsk and reply with that path wait 20 seconds"===t?{seconds:20}:null},"parseFileReadAsk",0,function(e){let t=e.trim();return(t.endsWith(".")&&(t=t.slice(0,-1).trim()),"Read the file filemint6.txt"===t)?{seconds:4}:"Read the file filemint6.txt wait 20 seconds"===t?{seconds:20}:null},"parsePublicPageReadAsk",0,function(e){let t=e.trim();if(t.endsWith(".")&&(t=t.slice(0,-1).trim()),"Open https://example.com and reply with one word from it"===t)return{seconds:4};let n=t.match(/^Open https:\/\/example\.com and reply with one word from it wait (\d+) seconds$/);if(n&&"20"===n[1])return{seconds:20};let s=t.match(/^Open (https:\/\/[^\s]+) and reply with the page title$/);if(s){let e=o(s[1]);return e?{seconds:4,url:e}:null}let r=t.match(/^Open (https:\/\/[^\s]+) and reply with the page title wait (\d+) seconds$/);if(r&&"20"===r[2]){let e=o(r[1]);return e?{seconds:20,url:e}:null}return null},"parseRun",0,i,"serializeRun",0,a],77099);var l=e.i(52036),d=e.i(51714);let u=globalThis;u.__botmancerFileRuns||(u.__botmancerFileRuns=new Map);let p=u.__botmancerFileRuns;function c(e,t){if(t.stopped)return!1;let n=r.messages.getById(e),s=n?i(n.content):null;return s?.state==="running"}function m(e){let t=r.messages.getById(e),n=t?i(t.content):null;n&&"running"===n.state&&r.messages.replaceContent(e,a({state:"stopped"}))}function f(e,t){let n=p.get(e);n?.child===t&&p.delete(e)}function g(){let e=(0,l.filesRootPath)(),t=n.default.resolve(e,"filemint6.txt");return"filemint6.txt"===n.default.relative(e,t)&&t.startsWith(e+n.default.sep)?t:null}let h=globalThis;h.__botmancerPageRuns||(h.__botmancerPageRuns=new Map);let w=h.__botmancerPageRuns;function b(e,t){let n=w.get(e);n?.child===t&&w.delete(e)}function R(e,t){return new Promise((n,r)=>{let o=s.default.get(e,{timeout:1e4},s=>{if(301===s.statusCode||302===s.statusCode||307===s.statusCode||308===s.statusCode){let n=s.headers.location;if(n)try{if(new URL(n,e).hostname!==t)return void r(Error("Redirect to different host not allowed"))}catch{r(Error("Invalid redirect location"));return}r(Error("Redirect detected"));return}if(200!==s.statusCode)return void r(Error(`HTTP ${s.statusCode}`));let o="";s.on("data",e=>{(o+=e.toString("utf8")).length>1e5&&(s.destroy(),r(Error("Response too large")))}),s.on("end",()=>n(o))});o.on("error",r),o.on("timeout",()=>{o.destroy(),r(Error("Timeout"))})})}let y=globalThis;y.__botmancerCodingLimbRuns||(y.__botmancerCodingLimbRuns=new Map);let C=y.__botmancerCodingLimbRuns;function v(e,t){let n=C.get(e);n?.child===t&&C.delete(e)}async function _(e,t){let n=process.env.CURSOR_API_KEY;if(n)try{await fetch(`https://api.cursor.com/v1/agents/${e}/runs/${t}/cancel`,{method:"POST",headers:{Authorization:`Bearer ${n}`}})}catch{}}let x=globalThis;x.__botmancerCommandRuns||(x.__botmancerCommandRuns=new Map);let S=x.__botmancerCommandRuns;function P(e,t){let n=S.get(e);n?.child===t&&(n.timer&&clearTimeout(n.timer),S.delete(e))}function $(e){try{e.child.kill("SIGTERM")}catch{}setTimeout(()=>{try{e.child.kill("SIGKILL")}catch{}},2e3).unref?.()}e.s(["beginCodingLimbRun",0,function(e,n){if(4!==n&&20!==n||C.has(e))return;let s=r.messages.getById(e),o=s?i(s.content):null;if(!o||"running"!==o.state)return;let l={child:void 0,stopped:!1,agentId:void 0,runId:void 0},d=(0,t.spawn)("/bin/sleep",[String(n)],{stdio:"ignore"});l.child=d,C.set(e,l),d.on("error",()=>{l.stopped=!0,v(e,d),m(e)}),d.on("exit",async(t,n)=>{if(v(e,d),l.stopped||!c(e,l)||n||0!==t||l.stopped||!c(e,l)){l.stopped&&m(e);return}try{let t=process.env.CURSOR_API_KEY;if(!t){!l.stopped&&c(e,l)&&r.messages.replaceContent(e,a({state:"done",output:"Error: CURSOR_API_KEY not set"}));return}let n=await fetch("https://api.cursor.com/v1/agents",{method:"POST",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"},body:JSON.stringify({prompt:{text:"Which file holds parsePublicPageReadAsk in not-so-fat/botmancers? Reply with the path. Do not edit, commit, push, or open a pull request."},repos:[{url:"https://github.com/not-so-fat/botmancers",startingRef:"main"}],autoCreatePR:!1,mode:"plan"})});if(l.stopped||!c(e,l)){l.stopped&&m(e);return}if(!n.ok){!l.stopped&&c(e,l)&&r.messages.replaceContent(e,a({state:"done",output:`Create failed: ${n.status}`}));return}let s=await n.json(),o=s.agent?.id,i=s.run?.id;if(!o||!i){!l.stopped&&c(e,l)&&r.messages.replaceContent(e,a({state:"done",output:"Error: No agent or run ID returned"}));return}if(l.agentId=o,l.runId=i,l.stopped||!c(e,l)){await _(o,i),l.stopped&&m(e);return}let d=0;for(;d<120;){if(await new Promise(e=>setTimeout(e,2e3)),d++,l.stopped||!c(e,l)){await _(o,i),l.stopped&&m(e);return}let n=await fetch(`https://api.cursor.com/v1/agents/${o}/runs/${i}`,{headers:{Authorization:`Bearer ${t}`}});if(!n.ok){!l.stopped&&c(e,l)&&r.messages.replaceContent(e,a({state:"done",output:`Poll failed: ${n.status}`}));return}let s=await n.json();if(l.stopped||!c(e,l)){await _(o,i),l.stopped&&m(e);return}if("FINISHED"===s.status){if("string"==typeof s.result&&c(e,l))return void r.messages.replaceContent(e,a({state:"done",output:s.result}));!l.stopped&&c(e,l)&&r.messages.replaceContent(e,a({state:"done",output:"Error: No result in response"}));return}if("FAILED"===s.status||"CANCELLED"===s.status){!l.stopped&&c(e,l)&&r.messages.replaceContent(e,a({state:"done",output:`Run ${s.status.toLowerCase()}`}));return}}!l.stopped&&c(e,l)&&r.messages.replaceContent(e,a({state:"done",output:"Timeout waiting for result"}))}catch(t){if(!l.stopped&&c(e,l)){let n=t instanceof Error?t.message.slice(0,40):"Unknown";r.messages.replaceContent(e,a({state:"done",output:`Network error: ${n}`}))}}})},"beginCommandRun",0,function(e,n,s={}){let o=(0,d.validateCommandRequest)({command:n.command,args:n.args,waitSeconds:n.waitSeconds}),l=(0,d.resolveCommand)({command:o.command,args:o.args});if(S.has(e))return;let u=r.messages.getById(e),p=u?i(u.content):null;if(!p||"running"!==p.state)return;let f=s.timeoutMs??(0,d.commandTimeoutMs)(o.waitSeconds),g=s.outputMaxBytes??d.COMMAND_OUTPUT_MAX_BYTES,h={child:void 0,stopped:!1},w=(0,t.spawn)("/bin/sleep",[String(o.waitSeconds)],{stdio:"ignore"});h.child=w,S.set(e,h);let b=()=>{h.stopped=!0,P(e,h.child),m(e)};h.timer=setTimeout(()=>{$(h),b()},f),h.timer.unref?.(),r.messages.replaceContent(e,a({state:"running",page:(0,d.commandRunPage)(o,null)})),w.on("error",()=>{$(h),b()}),w.on("exit",(n,s)=>{if(h.stopped||!c(e,h)||s||0!==n){h.stopped&&(P(e,w),m(e));return}let i="",u=!1,p=(0,t.spawn)(l.bin,l.argv,{stdio:["ignore","pipe","ignore"]});h.child=p,S.set(e,h),p.stdout?.on("data",e=>{!u&&(i+=e.toString("utf8"),Buffer.byteLength(i,"utf8")>g&&(u=!0,i=Buffer.from(i,"utf8").subarray(0,g).toString("utf8"),$({child:p})))}),p.on("error",()=>{$(h),b()}),p.on("close",(t,n)=>{if(P(e,p),h.stopped||!c(e,h)){h.stopped&&m(e);return}if((n||0!==t)&&!u)return void m(e);let s=(0,d.commandRunPage)(o,i);r.messages.replaceContent(e,a({state:"done",output:i,page:s}))}),(h.stopped||!c(e,h))&&$(h)})},"beginFileReadRun",0,function(e,n){if(4!==n&&20!==n||p.has(e))return;let s=r.messages.getById(e),o=s?i(s.content):null;if(!o||"running"!==o.state||!g())return;let l={child:void 0,stopped:!1},d=(0,t.spawn)("/bin/sleep",[String(n)],{stdio:"ignore"});l.child=d,p.set(e,l),d.on("error",()=>{l.stopped=!0,f(e,d),m(e)}),d.on("exit",(n,s)=>{if(f(e,d),l.stopped||!c(e,l)||s||0!==n){l.stopped&&m(e);return}let o=g();if(!o||l.stopped){l.stopped&&m(e);return}let i="",u=(0,t.spawn)("/bin/cat",[o],{stdio:["ignore","pipe","ignore"]});if(l.child=u,p.set(e,l),u.stdout?.on("data",e=>{i+=e.toString("utf8")}),u.on("error",()=>{l.stopped=!0,f(e,u),m(e)}),u.on("close",(t,n)=>{if(f(e,u),!c(e,l)||n||0!==t){l.stopped&&m(e);return}let s=i.endsWith("\n")?i.slice(0,-1):"";i===s+"\n"&&"filemint6"===s&&r.messages.replaceContent(e,a({state:"done",output:s}))}),l.stopped||!c(e,l))try{u.kill("SIGTERM")}catch{}})},"beginPublicPageReadRun",0,function(e,n,s){if(4!==n&&20!==n||w.has(e))return;let o=r.messages.getById(e),l=o?i(o.content):null;if(!l||"running"!==l.state)return;let d={child:void 0,stopped:!1},u=(0,t.spawn)("/bin/sleep",[String(n)],{stdio:"ignore"});d.child=u,w.set(e,d),u.on("error",()=>{d.stopped=!0,b(e,u),m(e)}),u.on("exit",async(t,n)=>{if(b(e,u),d.stopped||!c(e,d)||n||0!==t||d.stopped||!c(e,d)){d.stopped&&m(e);return}try{if(s){let t,n=new URL(s),o=await R(s,n.hostname);if(d.stopped||!c(e,d)||(r.messages.replaceContent(e,a({state:"running",page:o})),await new Promise(e=>setTimeout(e,3e3)),d.stopped||!c(e,d))){d.stopped&&m(e);return}let i=(t=o.match(/<title[^>]*>([\s\S]*?)<\/title>/i))&&t[1].replace(/<[^>]+>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&apos;/g,"'").replace(/\s+/g," ").trim()||null;i&&c(e,d)&&r.messages.replaceContent(e,a({state:"done",output:i,page:o}))}else{let t=await R("https://example.com","example.com");if(d.stopped||!c(e,d)){d.stopped&&m(e);return}let n=function(e){let t=e.match(/<title[^>]*>([^<]*)<\/title>/i);if(t&&t[1]){let e=t[1].trim().split(/\s+/)[0];if(e)return e}let n=e.match(/<h1[^>]*>([^<]*)<\/h1>/i);if(n&&n[1]){let e=n[1].trim().split(/\s+/)[0];if(e)return e}return null}(t);"Example"===n&&c(e,d)&&r.messages.replaceContent(e,a({state:"done",output:"Example"}))}}catch(e){console.error("Public page fetch failed:",e)}})},"stopCodingLimbRun",0,function(e){let t=C.get(e);if(t&&(t.stopped=!0,t.agentId&&t.runId&&_(t.agentId,t.runId).catch(()=>{})),m(e),t){try{t.child.kill("SIGTERM")}catch{}v(e,t.child)}},"stopCommandRun",0,function(e){let t=S.get(e);t&&(t.stopped=!0),m(e),t&&($(t),P(e,t.child))},"stopFileReadRun",0,function(e){let t=p.get(e);if(t&&(t.stopped=!0),m(e),t){try{t.child.kill("SIGTERM")}catch{}f(e,t.child)}},"stopPublicPageReadRun",0,function(e){let t=w.get(e);if(t&&(t.stopped=!0),m(e),t){try{t.child.kill("SIGTERM")}catch{}b(e,t.child)}}],2803)}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__0uq7sci._.js.map
@@ -1,44 +0,0 @@
1
- module.exports=[20635,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},8637,e=>{"use strict";var t=e.i(89171),a=e.i(62294),n=e.i(90027);async function r(e,{params:s}){try{let{id:r,ref:i}=await s;if(!(0,n.agentExists)(a.default,r))return t.NextResponse.json({error:"Agent not found"},{status:404});let o=(0,n.getAgentSession)(a.default,r,i);if(!o)return t.NextResponse.json({error:"Session not found"},{status:404});if("external_session_id"===new URL(e.url).searchParams.get("debug"))return t.NextResponse.json({session:o,debug:{external_session_id:(0,n.sessionDebugExternalId)(a.default,r,i)??null}});return t.NextResponse.json({session:o})}catch(e){return console.error("Error reading agent session:",e),t.NextResponse.json({error:"Failed to read session"},{status:500})}}e.s(["GET",0,r])},84098,e=>{"use strict";var t=e.i(47909),a=e.i(74017),n=e.i(96250),r=e.i(59756),s=e.i(61916),i=e.i(74677),o=e.i(69741),d=e.i(16795),l=e.i(87718),u=e.i(95169),p=e.i(47587),_=e.i(66012),c=e.i(70101),g=e.i(26937),v=e.i(10372),E=e.i(93695),m=e.i(9580);e.i(52474);var b=e.i(220);let h=new t.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/bots/[id]/sessions/[ref]/route",pathname:"/api/bots/[id]/sessions/[ref]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/bots/[id]/sessions/[ref]/route.ts",nextConfigOutput:"standalone",userland:()=>e.r(8637),...{}}),{workAsyncStorage:f,workUnitAsyncStorage:R,serverHooks:S}=h;async function A(e,t,n){n.requestMeta&&(0,r.setRequestMeta)(e,n.requestMeta),h.isDev&&(0,r.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/bots/[id]/sessions/[ref]/route";f=f.replace(/\/index$/,"")||"/";let R=await h.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!R)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:S,deploymentId:A,params:y,nextConfig:N,parsedUrl:x,isDraftMode:C,prerenderManifest:O,routerServerContext:w,isOnDemandRevalidate:T,revalidateOnlyGenerated:k,resolvedPathname:q,clientReferenceManifest:L,serverActionsManifest:I}=R,H=(0,o.normalizeAppPath)(f),D=!!O.routes[q]&&(h.isDev||(0,m.isRouteCacheOwner)(q,h.cacheOwner,O.routes[q])),M=!!(O.dynamicRoutes[H]||D),F=async()=>((null==w?void 0:w.render404)?await w.render404(e,t,x,!1):t.end("This page could not be found"),null);if(M&&!C){let e=O.dynamicRoutes[H];if(e&&!1===e.fallback&&!D){if(N.adapterPath)return await F();throw new E.NoFallbackError}}let P=null;!M||h.isDev||C||(P="/index"===(P=q)?"/":P);let U=!0===h.isDev||!M,$=M&&!U;I&&L&&(0,i.setManifestsSingleton)({page:f,clientReferenceManifest:L,serverActionsManifest:I});let j=e.method||"GET",W=(0,s.getTracer)(),J=W.getActiveScopeSpan(),G=!!(null==w?void 0:w.isWrappedByNextServer),K=!!(0,r.getRequestMeta)(e,"minimalMode"),X=(0,r.getRequestMeta)(e,"incrementalCache")||await h.getIncrementalCache(e,N,O,K);null==X||X.resetRequestCache(),globalThis.__incrementalCache=X;let B={params:y,previewProps:O.preview,renderOpts:{experimental:{authInterrupts:!!N.experimental.authInterrupts,useCacheTimeout:N.experimental.useCacheTimeout},cacheComponents:!!N.cacheComponents,validationLevel:N.experimental.instantInsights.validationLevel,isDraftMode:C,supportsDynamicResponse:U,incrementalCache:X,hmrRefreshHash:(0,r.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:N.cacheLife,staticPageGenerationTimeout:N.staticPageGenerationTimeout,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,a,n,r)=>h.onRequestError(e,t,n,r,w)},sharedContext:{buildId:S,deploymentId:A}},V=new d.NodeNextRequest(e),z=new d.NodeNextResponse(t),Y=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(t)),Z=async({previousCacheEntry:a})=>{try{if(!K&&T&&k&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let r=await h.handle(Y,B);e.fetchMetrics=B.renderOpts.fetchMetrics;let s=B.renderOpts.pendingWaitUntil;s&&n.waitUntil&&(n.waitUntil(s),s=void 0);let i=B.renderOpts.collectedTags;if(!M)return await (0,_.sendResponse)(V,z,r,s),null;{let e=await r.blob(),t=(0,c.toNodeOutgoingHttpHeaders)(r.headers);i&&(t[v.NEXT_CACHE_TAGS_HEADER]=i),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let a=void 0!==B.renderOpts.collectedRevalidate&&!(B.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&B.renderOpts.collectedRevalidate,n=void 0===B.renderOpts.collectedExpire||B.renderOpts.collectedExpire>=v.INFINITE_CACHE?!1!==a&&a>0?N.expireTime:void 0:B.renderOpts.collectedExpire;return{value:{kind:b.CachedRouteKind.APP_ROUTE,status:r.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:a,expire:n}}}}catch(t){throw(null==a?void 0:a.isStale)&&await h.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:T})},!1,w),t}},Q=async(r,i)=>{try{var o,d;let r=await h.handleResponse({req:e,nextConfig:N,cacheKey:P,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:O,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:k,responseGenerator:Z,waitUntil:n.waitUntil,isMinimalMode:K});if(!M)return;if((null==r||null==(o=r.value)?void 0:o.kind)!==b.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==r||null==(d=r.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",T?"REVALIDATED":r.isMiss?"MISS":r.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let s=(0,c.fromNodeOutgoingHttpHeaders)(r.value.headers);K&&M||s.delete(v.NEXT_CACHE_TAGS_HEADER),!r.cacheControl||t.getHeader("Cache-Control")||s.get("Cache-Control")||s.set("Cache-Control",(0,g.getCacheControlHeader)(r.cacheControl)),await (0,_.sendResponse)(V,z,new Response(r.value.body,{headers:s,status:r.value.status||200}));return}catch(t){if(t instanceof E.NoFallbackError||await h.onRequestError(e,t,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:T})},!1,w),M)throw t;await (0,_.sendResponse)(V,z,new Response(null,{status:500}));return}finally{(()=>{if(!r)return;let e=t.statusCode;r.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(r.setStatus({code:s.SpanStatusCode.ERROR}),r.setAttribute("error.type",e.toString()));let a=W.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==u.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=a.get("next.route")||H,o=`${j} ${n}`;r.setAttributes({"next.route":n,"http.route":n,"next.span_name":o}),r.updateName(o),i&&i!==r&&(i.setAttribute("http.route",n),i.updateName(o))})()}};if(G&&J)await Q(J,void 0);else{let t=W.getActiveScopeSpan();await W.withPropagatedContext(e.headers,()=>W.trace(u.BaseServerSpan.handleRequest,{spanName:`${j} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":j,"http.target":e.url}},e=>Q(e,t)),void 0,!G)}}e.s(["handler",0,A,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:f,workUnitAsyncStorage:R})},"routeModule",0,h,"serverHooks",0,S,"workAsyncStorage",0,f,"workUnitAsyncStorage",0,R])},90027,e=>{"use strict";var t=e.i(62349),a=e.i(28420);let n=["active","ended","all"],r=["implementation","revision"],s=`
2
- SELECT b.*, bot.name AS agent_name, bot.agent AS agent_runtime, r.id AS origin_request_id, c.id AS origin_conversation_id,
3
- c.type AS conversation_type, c.bot_id AS conversation_bot_id, tb.name AS thread_agent_name, g.name AS group_name,
4
- r.intent AS request_intent, r.execution_kind AS request_kind, r.state AS request_state,
5
- r.source_conversation_id AS request_conversation_id, r.target_agent_id AS request_target_agent_id,
6
- sa.launch_snapshot AS source_snapshot, sa.finished_at AS source_finished_at,
7
- (SELECT MAX(COALESCE(ra.finished_at, ra.started_at)) FROM work_attempts ra WHERE ra.resumed_session_binding_id = b.id) AS resumed_last_at,
8
- EXISTS (SELECT 1 FROM work_attempts oa WHERE oa.resumed_session_binding_id = b.id AND oa.finished_at IS NULL) AS attempt_running,
9
- ps.availability AS ps_availability, ps.lifecycle AS ps_lifecycle, ps.resumable AS ps_resumable, ps.busy AS ps_busy,
10
- ps.workspace AS ps_workspace, ps.last_synced_at AS ps_synced_at,
11
- EXISTS (SELECT 1 FROM provider_session_turns pt WHERE pt.session_ref = ps.id AND pt.state = 'running') AS ps_running
12
- FROM session_bindings b
13
- JOIN bots bot ON bot.id = b.agent_id
14
- LEFT JOIN provider_sessions ps ON ps.binding_id = b.id
15
- LEFT JOIN work_attempts sa ON sa.id = b.source_attempt_id
16
- LEFT JOIN work_requests r ON r.id = COALESCE(b.request_id, sa.request_id)
17
- LEFT JOIN conversations c ON c.id = COALESCE(b.conversation_id, r.source_conversation_id)
18
- LEFT JOIN bots tb ON tb.id = c.bot_id
19
- LEFT JOIN groups g ON g.id = c.group_id
20
- `,i=`
21
- SELECT ps.id, ps.agent_id, bot.name AS agent_name, ps.provider_kind, ps.title, ps.workspace,
22
- ps.provider_created_at, ps.provider_updated_at, ps.availability, ps.lifecycle, ps.resumable, ps.busy,
23
- ps.last_synced_at, ps.created_at, ps.updated_at,
24
- (SELECT MAX(COALESCE(t.finished_at, t.created_at)) FROM provider_session_turns t WHERE t.session_ref = ps.id) AS turn_last_at,
25
- EXISTS (SELECT 1 FROM provider_session_turns t WHERE t.session_ref = ps.id AND t.state = 'running') AS running
26
- FROM provider_sessions ps
27
- JOIN bots bot ON bot.id = ps.agent_id
28
- WHERE ps.binding_id IS NULL
29
- `;function o(e){return`${new Date(e).toISOString().slice(0,16).replace("T"," ")} UTC`}function d(e,t){let a=e?.[t];return"string"==typeof a&&a.trim().length>0?a:null}function l(e){let t=e.origin_conversation_id;return t?"group"===e.conversation_type?{id:t,kind:"group",label:e.group_name?`Group ${e.group_name}`:"Group thread",thread_agent_id:null}:"bot"===e.conversation_type&&e.conversation_bot_id?{id:t,kind:"direct",label:e.thread_agent_name?`${e.thread_agent_name} thread`:"Agent thread",thread_agent_id:e.thread_agent_name?e.conversation_bot_id:null}:{id:t,kind:"agent_api",label:"Agent API conversation",thread_agent_id:null}:null}function u(e,n=(0,a.emptyUsage)()){let s,i=null;try{i=e.source_snapshot?JSON.parse(e.source_snapshot):null}catch{}let p=l(e),_=null===e.released_at?"active":"ended",c=((s=(e.request_intent??"").split("\n").map(e=>e.trim()).find(e=>e.length>0))?s.length>80?`${s.slice(0,79).trimEnd()}…`:s:null)??(p?.kind==="group"?p.label:null)??`${e.agent_name} \xb7 ${o(e.created_at)}`;return{ref:e.id,source:"botmancers",agent:{id:e.agent_id,name:e.agent_name,adapter:e.adapter,transport:d(i,"transport")},title:c,status:_,resumable:null===e.released_at&&null!==e.request_id&&null!==e.request_kind&&r.includes(e.request_kind)&&e.request_target_agent_id===e.agent_id&&(e.conversation_id??"")===(e.request_conversation_id??"")&&e.adapter===(0,t.resolveAgent)({agent:e.agent_runtime}).agent,state:{availability:e.ps_availability??"available",lifecycle:e.ps_lifecycle??"open",resumable:null===e.ps_resumable||void 0===e.ps_resumable?null:1===e.ps_resumable,busy:1===e.ps_busy||!!e.attempt_running||!!e.ps_running,synced_at:e.ps_synced_at??null},created_at:e.created_at,ended_at:e.released_at,last_activity_at:Math.max(e.created_at,e.released_at??0,e.source_finished_at??0,e.resumed_last_at??0),origin:{conversation:p,work_request:e.origin_request_id&&e.request_kind&&e.request_state?{id:e.origin_request_id,execution_kind:e.request_kind,state:e.request_state}:null},context:{workspace:d(i,"cwd")??e.ps_workspace??null,deck:d(i,"deck")},usage:n}}function p(e,t=(0,a.emptyUsage)()){let n=e.provider_created_at??e.created_at,r=null===e.resumable?null:1===e.resumable,s="archived"===e.lifecycle?e.provider_updated_at??e.updated_at:null;return{ref:e.id,source:"native",agent:{id:e.agent_id,name:e.agent_name,adapter:e.provider_kind,transport:null},title:e.title??`${e.agent_name} \xb7 ${o(n)}`,status:"open"===e.lifecycle?"active":"ended",resumable:!1,state:{availability:e.availability,lifecycle:e.lifecycle,resumable:r,busy:1===e.busy||!!e.running,synced_at:e.last_synced_at},created_at:n,ended_at:s,last_activity_at:Math.max(n,e.provider_updated_at??0,e.turn_last_at??0),origin:{conversation:null,work_request:null},context:{workspace:e.workspace,deck:null},usage:t}}function _(e,t){return t.last_activity_at-e.last_activity_at||t.created_at-e.created_at||(e.ref<t.ref?-1:+(e.ref>t.ref))}function c(e,t,a){return e.prepare(`${i} AND ps.id = ? AND ps.agent_id = ?`).get(a,t)}function g(e,t,a){return e.prepare(`${s} WHERE b.id = ? AND b.agent_id = ?`).get(a,t)}e.s(["agentExists",0,function(e,t){return!!e.prepare("SELECT 1 FROM bots WHERE id = ?").get(t)},"conversationRef",0,function(e,t){let a=e.prepare(`
30
- SELECT c.id AS origin_conversation_id, c.type AS conversation_type, c.bot_id AS conversation_bot_id,
31
- tb.name AS thread_agent_name, g.name AS group_name
32
- FROM conversations c
33
- LEFT JOIN bots tb ON tb.id = c.bot_id
34
- LEFT JOIN groups g ON g.id = c.group_id
35
- WHERE c.id = ?
36
- `).get(t);return a?l(a):null},"getAgentSession",0,function(e,t,n){let r=g(e,t,n);if(!r){let r=c(e,t,n);if(!r)return;let{usage:s,samples:i}=(0,a.sessionUsageSamples)(e,t,n);return{...p(r,s),attempts:[],usage_samples:i}}let s=e.prepare(`
37
- SELECT a.attempt_number, a.kind, a.request_id, a.outcome, a.started_at, a.finished_at,
38
- CASE WHEN a.id = ? THEN 'source' ELSE 'resume' END AS role
39
- FROM work_attempts a
40
- WHERE a.id = ? OR a.resumed_session_binding_id = ?
41
- ORDER BY a.started_at ASC, a.id ASC
42
- `).all(r.source_attempt_id,r.source_attempt_id,r.id),{usage:i,samples:o}=(0,a.sessionUsageSamples)(e,t,n);return{...u(r,i),attempts:s,usage_samples:o}},"isSessionFilter",0,function(e){return"string"==typeof e&&n.includes(e)},"listAgentSessions",0,function(e,t,n="all"){let r=e.prepare(`${s} WHERE b.agent_id = ? ${"active"===n?"AND b.released_at IS NULL":"ended"===n?"AND b.released_at IS NOT NULL":""}`).all(t),o=e.prepare(`${i} AND ps.agent_id = ? ${"active"===n?"AND ps.lifecycle = 'open'":"ended"===n?"AND ps.lifecycle = 'archived'":""}`).all(t),d=(0,a.agentSessionUsage)(e,t);return[...r.map(e=>u(e,d.get(e.id))),...o.map(e=>p(e,d.get(e.id)))].sort(_)},"sessionDebugExternalId",0,function(e,t,a){let n=g(e,t,a)?.external_session_id;if(void 0!==n)return n;if(!c(e,t,a))return;let r=e.prepare("SELECT provider_session_id FROM provider_sessions WHERE id = ? AND agent_id = ?").get(a,t);return r?.provider_session_id},"sessionTitle",0,function(e,t,a){let n=g(e,t,a);if(n)return u(n).title;let r=c(e,t,a);return r?p(r).title:null}])}];
43
-
44
- //# sourceMappingURL=%5Broot-of-the-server%5D__13cd2fb._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[20635,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},46786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},45746,e=>{"use strict";var t=e.i(89171),r=e.i(67505);async function n(){let e=(0,r.getAgentDeckServerUrl)();try{let n=await (0,r.listAgentDecks)({serverUrl:e});return t.NextResponse.json({server_url:e,decks:n})}catch(i){let n=i instanceof r.AgentDeckDiscoveryError&&i.attemptedUrls.length>0?i.attemptedUrls:[(0,r.agentDeckDecksUrl)(e)],a=i instanceof Error?i.message:String(i),s=i instanceof r.AgentDeckDiscoveryError?i.code:"agent-deck-discovery-failed";return console.error("Agent Deck deck discovery failed:",a),t.NextResponse.json({error:a,code:s,attemptedUrls:n,server_url:e},{status:502})}}e.s(["GET",0,n])},85581,e=>{"use strict";var t=e.i(47909),r=e.i(74017),n=e.i(96250),a=e.i(59756),s=e.i(61916),i=e.i(74677),o=e.i(69741),c=e.i(16795),l=e.i(87718),d=e.i(95169),u=e.i(47587),p=e.i(66012),h=e.i(70101),f=e.i(26937),g=e.i(10372),v=e.i(93695),R=e.i(9580);e.i(52474);var m=e.i(220);let E=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/agent-deck/decks/route",pathname:"/api/agent-deck/decks",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/agent-deck/decks/route.ts",nextConfigOutput:"standalone",userland:()=>e.r(45746),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:k,serverHooks:y}=E;async function A(e,t,n){n.requestMeta&&(0,a.setRequestMeta)(e,n.requestMeta),E.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let w="/api/agent-deck/decks/route";w=w.replace(/\/index$/,"")||"/";let k=await E.prepare(e,t,{srcPage:w,multiZoneDraftMode:!1});if(!k)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:y,deploymentId:A,params:x,nextConfig:D,parsedUrl:C,isDraftMode:S,prerenderManifest:T,routerServerContext:U,isOnDemandRevalidate:_,revalidateOnlyGenerated:b,resolvedPathname:N,clientReferenceManifest:O,serverActionsManifest:P}=k,q=(0,o.normalizeAppPath)(w),I=!!T.routes[N]&&(E.isDev||(0,R.isRouteCacheOwner)(N,E.cacheOwner,T.routes[N])),H=!!(T.dynamicRoutes[q]||I),j=async()=>((null==U?void 0:U.render404)?await U.render404(e,t,C,!1):t.end("This page could not be found"),null);if(H&&!S){let e=T.dynamicRoutes[q];if(e&&!1===e.fallback&&!I){if(D.adapterPath)return await j();throw new v.NoFallbackError}}let L=null;!H||E.isDev||S||(L="/index"===(L=N)?"/":L);let M=!0===E.isDev||!H,$=H&&!M;P&&O&&(0,i.setManifestsSingleton)({page:w,clientReferenceManifest:O,serverActionsManifest:P});let G=e.method||"GET",F=(0,s.getTracer)(),K=F.getActiveScopeSpan(),B=!!(null==U?void 0:U.isWrappedByNextServer),W=!!(0,a.getRequestMeta)(e,"minimalMode"),V=(0,a.getRequestMeta)(e,"incrementalCache")||await E.getIncrementalCache(e,D,T,W);null==V||V.resetRequestCache(),globalThis.__incrementalCache=V;let Q={params:x,previewProps:T.preview,renderOpts:{experimental:{authInterrupts:!!D.experimental.authInterrupts,useCacheTimeout:D.experimental.useCacheTimeout},cacheComponents:!!D.cacheComponents,validationLevel:D.experimental.instantInsights.validationLevel,isDraftMode:S,supportsDynamicResponse:M,incrementalCache:V,hmrRefreshHash:(0,a.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:D.cacheLife,staticPageGenerationTimeout:D.staticPageGenerationTimeout,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>E.onRequestError(e,t,n,a,U)},sharedContext:{buildId:y,deploymentId:A}},X=new c.NodeNextRequest(e),J=new c.NodeNextResponse(t),z=l.NextRequestAdapter.fromNodeNextRequest(X,(0,l.signalFromNodeResponse)(t)),Z=async({previousCacheEntry:r})=>{try{if(!W&&_&&b&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await E.handle(z,Q);e.fetchMetrics=Q.renderOpts.fetchMetrics;let s=Q.renderOpts.pendingWaitUntil;s&&n.waitUntil&&(n.waitUntil(s),s=void 0);let i=Q.renderOpts.collectedTags;if(!H)return await (0,p.sendResponse)(X,J,a,s),null;{let e=await a.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(a.headers);i&&(t[g.NEXT_CACHE_TAGS_HEADER]=i),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==Q.renderOpts.collectedRevalidate&&!(Q.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&Q.renderOpts.collectedRevalidate,n=void 0===Q.renderOpts.collectedExpire||Q.renderOpts.collectedExpire>=g.INFINITE_CACHE?!1!==r&&r>0?D.expireTime:void 0:Q.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await E.onRequestError(e,t,{routerKind:"App Router",routePath:w,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:_})},!1,U),t}},Y=async(a,i)=>{try{var o,c;let a=await E.handleResponse({req:e,nextConfig:D,cacheKey:L,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:_,revalidateOnlyGenerated:b,responseGenerator:Z,waitUntil:n.waitUntil,isMinimalMode:W});if(!H)return;if((null==a||null==(o=a.value)?void 0:o.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==a||null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});W||t.setHeader("x-nextjs-cache",_?"REVALIDATED":a.isMiss?"MISS":a.isStale?"STALE":"HIT"),S&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let s=(0,h.fromNodeOutgoingHttpHeaders)(a.value.headers);W&&H||s.delete(g.NEXT_CACHE_TAGS_HEADER),!a.cacheControl||t.getHeader("Cache-Control")||s.get("Cache-Control")||s.set("Cache-Control",(0,f.getCacheControlHeader)(a.cacheControl)),await (0,p.sendResponse)(X,J,new Response(a.value.body,{headers:s,status:a.value.status||200}));return}catch(t){if(t instanceof v.NoFallbackError||await E.onRequestError(e,t,{routerKind:"App Router",routePath:q,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:_})},!1,U),H)throw t;await (0,p.sendResponse)(X,J,new Response(null,{status:500}));return}finally{(()=>{if(!a)return;let e=t.statusCode;a.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(a.setStatus({code:s.SpanStatusCode.ERROR}),a.setAttribute("error.type",e.toString()));let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route")||q,o=`${G} ${n}`;a.setAttributes({"next.route":n,"http.route":n,"next.span_name":o}),a.updateName(o),i&&i!==a&&(i.setAttribute("http.route",n),i.updateName(o))})()}};if(B&&K)await Y(K,void 0);else{let t=F.getActiveScopeSpan();await F.withPropagatedContext(e.headers,()=>F.trace(d.BaseServerSpan.handleRequest,{spanName:`${G} ${w}`,kind:s.SpanKind.SERVER,attributes:{"http.method":G,"http.target":e.url}},e=>Y(e,t)),void 0,!B)}}e.s(["handler",0,A,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:k})},"routeModule",0,E,"serverHooks",0,y,"workAsyncStorage",0,w,"workUnitAsyncStorage",0,k])},67505,e=>{"use strict";var t=e.i(22734),r=e.i(46786),n=e.i(14747),a=e.i(62294);let s="http://127.0.0.1:1111",i="agent_deck_server_url";class o extends Error{code="invalid-agent-deck-server-url";constructor(e){super(`Invalid Agent Deck server URL: ${JSON.stringify(String(e??""))}. Expected an http(s) URL such as ${s}.`)}}function c(e){let t;if("string"!=typeof e)throw new o(e);let r=e.trim();if(!r)throw new o(e);try{t=new URL(r)}catch{throw new o(e)}if("http:"!==t.protocol&&"https:"!==t.protocol||!t.hostname)throw new o(e);return t.toString().replace(/\/+$/,"")}function l(){try{let e=a.workspaceSettings.get(i);if(null===e)return s;return c(e)}catch{return s}}function d(e){return`${c(e)}/api/launch/decks`}class u extends Error{code;attemptedUrls;constructor(e,t,r="agent-deck-discovery-failed"){super(e),this.code=r,this.attemptedUrls=t}}function p(e,t){let r=globalThis.fetch;if("function"!=typeof r)throw Error("fetch is not available in this runtime.");return r(e,t).then(e=>({json:()=>e.json()}))}function h(e){try{return JSON.stringify(e??"").includes("GRANT_REQUIRED")}catch{return!1}}async function f(e){let t,r=d(e?.serverUrl!==void 0?c(e.serverUrl):l()),n=e?.fetchImpl??p;try{let e=await n(r,{method:"GET"});t=await e.json()}catch(e){if(e instanceof u){if(0===e.attemptedUrls.length)throw new u(e.message,[r],e.code);throw e}throw new u(`Cannot reach the Agent Deck server at ${r}: ${e instanceof Error?e.message:String(e)}. Check the workspace Agent Deck URL and that the server is running.`,[r],"connection-failed")}if(h(t))throw new u("Agent Deck server refused deck discovery with GRANT_REQUIRED. Only GET /api/launch/decks is supported; GET /api/decks must not be used.",[r],"grant-required");try{var a=t;if("object"!=typeof a||null===a)throw Error('Expected {"success":true,"data":{"decks":[{"id","name"}]}}.');if(h(a))throw new u("Agent Deck server refused deck discovery with GRANT_REQUIRED. Only GET /api/launch/decks is supported; GET /api/decks must not be used.",[],"grant-required");if(!0!==a.success)throw Error('Expected {"success":true,"data":{"decks":[{"id","name"}]}}.');let e=a.data,r=e?.decks;if(!Array.isArray(r))throw Error('Expected {"success":true,"data":{"decks":[{"id","name"}]}}.');let n=r.map(e=>{if("object"!=typeof e||null===e)throw Error("Expected every deck to carry a string id and name.");let t="string"==typeof e.id?e.id.trim():"",r="string"==typeof e.name?e.name.trim():"";if(!t||!r)throw Error("Expected every deck to carry a string id and name.");return{id:t,name:r}});return n.sort((e,t)=>e.id<t.id?-1:+(e.id>t.id)),n}catch(e){if(e instanceof u)throw e;throw new u(`Agent Deck server at ${r} returned an unexpected deck payload: ${e instanceof Error?e.message:String(e)}`,[r],"invalid-payload")}}function g(e){if(e&&e.trim())return e;let t=(process.env.HOME??"").trim();return t||r.default.homedir()}e.s(["AgentDeckDiscoveryError",0,u,"DEFAULT_AGENT_DECK_SERVER_URL",0,s,"InvalidAgentDeckServerUrlError",0,o,"agentDeckDecksUrl",0,d,"getAgentDeckServerUrl",0,l,"isLocalAgentDeckUrl",0,function(e){let t;try{t=new URL("string"==typeof e?e.trim():"")}catch{return!1}let r=t.hostname.trim().toLowerCase().replace(/^\[|\]$/g,"");return!!("localhost"===r||"::1"===r||"::ffff:127.0.0.1"===r||/^127\.\d+\.\d+\.\d+$/.test(r))},"listAgentDecks",0,f,"remoteLaunchUnsupportedMessage",0,function(e){return`[Deck failed] Remote Agent Deck launch is not supported: the workspace Agent Deck server is non-local and remote \`agent-deck run\` targeting is unconfirmed. Point the workspace server URL at the local Agent Deck server to launch. (server_url=${e})`},"resolveAndEnsureBotWorkdir",0,function(e,r,a){let s=function(e,t,r){let a="string"==typeof t?t.trim():"";if(a)return"~"===a?g(r):a.startsWith("~/")||a.startsWith("~\\")?n.default.join(g(r),a.slice(2)):a;let s=String(e??"").trim();if(!s)throw Error("defaultBotWorkdir requires a bot id.");let i=g(r);return n.default.resolve(i,".botmancers",s)}(e,r,a);return t.default.mkdirSync(s,{recursive:!0}),s},"setAgentDeckServerUrl",0,function(e){let t=c(e);return a.workspaceSettings.set(i,t),t}])}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__1879cge._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[20635,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},46786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},18934,e=>{"use strict";var t=e.i(89171),r=e.i(67505);async function n(){try{return t.NextResponse.json({server_url:(0,r.getAgentDeckServerUrl)(),default_server_url:r.DEFAULT_AGENT_DECK_SERVER_URL})}catch(e){return console.error("Error reading Agent Deck settings:",e),t.NextResponse.json({error:"Failed to read Agent Deck settings"},{status:500})}}async function a(e){try{let n=await e.json(),a=n.server_url??n.serverUrl??n.url;try{let e=(0,r.setAgentDeckServerUrl)(a);return t.NextResponse.json({server_url:e,default_server_url:r.DEFAULT_AGENT_DECK_SERVER_URL})}catch(n){let e=n instanceof r.InvalidAgentDeckServerUrlError?n.message:`Invalid Agent Deck server URL: ${JSON.stringify(String(a??""))}. Expected an http(s) URL such as ${r.DEFAULT_AGENT_DECK_SERVER_URL}.`;return t.NextResponse.json({error:e},{status:400})}}catch(e){return console.error("Error saving Agent Deck settings:",e),t.NextResponse.json({error:"Failed to save Agent Deck settings"},{status:500})}}e.s(["GET",0,n,"PUT",0,a])},40128,e=>{"use strict";var t=e.i(47909),r=e.i(74017),n=e.i(96250),a=e.i(59756),s=e.i(61916),i=e.i(74677),o=e.i(69741),c=e.i(16795),l=e.i(87718),u=e.i(95169),d=e.i(47587),p=e.i(66012),h=e.i(70101),g=e.i(26937),f=e.i(10372),v=e.i(93695),R=e.i(9580);e.i(52474);var E=e.i(220);let m=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/agent-deck/settings/route",pathname:"/api/agent-deck/settings",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/agent-deck/settings/route.ts",nextConfigOutput:"standalone",userland:()=>e.r(18934),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:k,serverHooks:y}=m;async function A(e,t,n){n.requestMeta&&(0,a.setRequestMeta)(e,n.requestMeta),m.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let w="/api/agent-deck/settings/route";w=w.replace(/\/index$/,"")||"/";let k=await m.prepare(e,t,{srcPage:w,multiZoneDraftMode:!1});if(!k)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:y,deploymentId:A,params:x,nextConfig:D,parsedUrl:_,isDraftMode:U,prerenderManifest:T,routerServerContext:C,isOnDemandRevalidate:S,revalidateOnlyGenerated:N,resolvedPathname:b,clientReferenceManifest:O,serverActionsManifest:P}=k,L=(0,o.normalizeAppPath)(w),q=!!T.routes[b]&&(m.isDev||(0,R.isRouteCacheOwner)(b,m.cacheOwner,T.routes[b])),I=!!(T.dynamicRoutes[L]||q),j=async()=>((null==C?void 0:C.render404)?await C.render404(e,t,_,!1):t.end("This page could not be found"),null);if(I&&!U){let e=T.dynamicRoutes[L];if(e&&!1===e.fallback&&!q){if(D.adapterPath)return await j();throw new v.NoFallbackError}}let H=null;!I||m.isDev||U||(H="/index"===(H=b)?"/":H);let $=!0===m.isDev||!I,G=I&&!$;P&&O&&(0,i.setManifestsSingleton)({page:w,clientReferenceManifest:O,serverActionsManifest:P});let M=e.method||"GET",F=(0,s.getTracer)(),K=F.getActiveScopeSpan(),B=!!(null==C?void 0:C.isWrappedByNextServer),V=!!(0,a.getRequestMeta)(e,"minimalMode"),W=(0,a.getRequestMeta)(e,"incrementalCache")||await m.getIncrementalCache(e,D,T,V);null==W||W.resetRequestCache(),globalThis.__incrementalCache=W;let J={params:x,previewProps:T.preview,renderOpts:{experimental:{authInterrupts:!!D.experimental.authInterrupts,useCacheTimeout:D.experimental.useCacheTimeout},cacheComponents:!!D.cacheComponents,validationLevel:D.experimental.instantInsights.validationLevel,isDraftMode:U,supportsDynamicResponse:$,incrementalCache:W,hmrRefreshHash:(0,a.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:D.cacheLife,staticPageGenerationTimeout:D.staticPageGenerationTimeout,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>m.onRequestError(e,t,n,a,C)},sharedContext:{buildId:y,deploymentId:A}},Q=new c.NodeNextRequest(e),X=new c.NodeNextResponse(t),z=l.NextRequestAdapter.fromNodeNextRequest(Q,(0,l.signalFromNodeResponse)(t)),Z=async({previousCacheEntry:r})=>{try{if(!V&&S&&N&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await m.handle(z,J);e.fetchMetrics=J.renderOpts.fetchMetrics;let s=J.renderOpts.pendingWaitUntil;s&&n.waitUntil&&(n.waitUntil(s),s=void 0);let i=J.renderOpts.collectedTags;if(!I)return await (0,p.sendResponse)(Q,X,a,s),null;{let e=await a.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(a.headers);i&&(t[f.NEXT_CACHE_TAGS_HEADER]=i),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==J.renderOpts.collectedRevalidate&&!(J.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&J.renderOpts.collectedRevalidate,n=void 0===J.renderOpts.collectedExpire||J.renderOpts.collectedExpire>=f.INFINITE_CACHE?!1!==r&&r>0?D.expireTime:void 0:J.renderOpts.collectedExpire;return{value:{kind:E.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await m.onRequestError(e,t,{routerKind:"App Router",routePath:w,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:G,isOnDemandRevalidate:S})},!1,C),t}},Y=async(a,i)=>{try{var o,c;let a=await m.handleResponse({req:e,nextConfig:D,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:N,responseGenerator:Z,waitUntil:n.waitUntil,isMinimalMode:V});if(!I)return;if((null==a||null==(o=a.value)?void 0:o.kind)!==E.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==a||null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});V||t.setHeader("x-nextjs-cache",S?"REVALIDATED":a.isMiss?"MISS":a.isStale?"STALE":"HIT"),U&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let s=(0,h.fromNodeOutgoingHttpHeaders)(a.value.headers);V&&I||s.delete(f.NEXT_CACHE_TAGS_HEADER),!a.cacheControl||t.getHeader("Cache-Control")||s.get("Cache-Control")||s.set("Cache-Control",(0,g.getCacheControlHeader)(a.cacheControl)),await (0,p.sendResponse)(Q,X,new Response(a.value.body,{headers:s,status:a.value.status||200}));return}catch(t){if(t instanceof v.NoFallbackError||await m.onRequestError(e,t,{routerKind:"App Router",routePath:L,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:G,isOnDemandRevalidate:S})},!1,C),I)throw t;await (0,p.sendResponse)(Q,X,new Response(null,{status:500}));return}finally{(()=>{if(!a)return;let e=t.statusCode;a.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(a.setStatus({code:s.SpanStatusCode.ERROR}),a.setAttribute("error.type",e.toString()));let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route")||L,o=`${M} ${n}`;a.setAttributes({"next.route":n,"http.route":n,"next.span_name":o}),a.updateName(o),i&&i!==a&&(i.setAttribute("http.route",n),i.updateName(o))})()}};if(B&&K)await Y(K,void 0);else{let t=F.getActiveScopeSpan();await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${M} ${w}`,kind:s.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},e=>Y(e,t)),void 0,!B)}}e.s(["handler",0,A,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:k})},"routeModule",0,m,"serverHooks",0,y,"workAsyncStorage",0,w,"workUnitAsyncStorage",0,k])},67505,e=>{"use strict";var t=e.i(22734),r=e.i(46786),n=e.i(14747),a=e.i(62294);let s="http://127.0.0.1:1111",i="agent_deck_server_url";class o extends Error{code="invalid-agent-deck-server-url";constructor(e){super(`Invalid Agent Deck server URL: ${JSON.stringify(String(e??""))}. Expected an http(s) URL such as ${s}.`)}}function c(e){let t;if("string"!=typeof e)throw new o(e);let r=e.trim();if(!r)throw new o(e);try{t=new URL(r)}catch{throw new o(e)}if("http:"!==t.protocol&&"https:"!==t.protocol||!t.hostname)throw new o(e);return t.toString().replace(/\/+$/,"")}function l(){try{let e=a.workspaceSettings.get(i);if(null===e)return s;return c(e)}catch{return s}}function u(e){return`${c(e)}/api/launch/decks`}class d extends Error{code;attemptedUrls;constructor(e,t,r="agent-deck-discovery-failed"){super(e),this.code=r,this.attemptedUrls=t}}function p(e,t){let r=globalThis.fetch;if("function"!=typeof r)throw Error("fetch is not available in this runtime.");return r(e,t).then(e=>({json:()=>e.json()}))}function h(e){try{return JSON.stringify(e??"").includes("GRANT_REQUIRED")}catch{return!1}}async function g(e){let t,r=u(e?.serverUrl!==void 0?c(e.serverUrl):l()),n=e?.fetchImpl??p;try{let e=await n(r,{method:"GET"});t=await e.json()}catch(e){if(e instanceof d){if(0===e.attemptedUrls.length)throw new d(e.message,[r],e.code);throw e}throw new d(`Cannot reach the Agent Deck server at ${r}: ${e instanceof Error?e.message:String(e)}. Check the workspace Agent Deck URL and that the server is running.`,[r],"connection-failed")}if(h(t))throw new d("Agent Deck server refused deck discovery with GRANT_REQUIRED. Only GET /api/launch/decks is supported; GET /api/decks must not be used.",[r],"grant-required");try{var a=t;if("object"!=typeof a||null===a)throw Error('Expected {"success":true,"data":{"decks":[{"id","name"}]}}.');if(h(a))throw new d("Agent Deck server refused deck discovery with GRANT_REQUIRED. Only GET /api/launch/decks is supported; GET /api/decks must not be used.",[],"grant-required");if(!0!==a.success)throw Error('Expected {"success":true,"data":{"decks":[{"id","name"}]}}.');let e=a.data,r=e?.decks;if(!Array.isArray(r))throw Error('Expected {"success":true,"data":{"decks":[{"id","name"}]}}.');let n=r.map(e=>{if("object"!=typeof e||null===e)throw Error("Expected every deck to carry a string id and name.");let t="string"==typeof e.id?e.id.trim():"",r="string"==typeof e.name?e.name.trim():"";if(!t||!r)throw Error("Expected every deck to carry a string id and name.");return{id:t,name:r}});return n.sort((e,t)=>e.id<t.id?-1:+(e.id>t.id)),n}catch(e){if(e instanceof d)throw e;throw new d(`Agent Deck server at ${r} returned an unexpected deck payload: ${e instanceof Error?e.message:String(e)}`,[r],"invalid-payload")}}function f(e){if(e&&e.trim())return e;let t=(process.env.HOME??"").trim();return t||r.default.homedir()}e.s(["AgentDeckDiscoveryError",0,d,"DEFAULT_AGENT_DECK_SERVER_URL",0,s,"InvalidAgentDeckServerUrlError",0,o,"agentDeckDecksUrl",0,u,"getAgentDeckServerUrl",0,l,"isLocalAgentDeckUrl",0,function(e){let t;try{t=new URL("string"==typeof e?e.trim():"")}catch{return!1}let r=t.hostname.trim().toLowerCase().replace(/^\[|\]$/g,"");return!!("localhost"===r||"::1"===r||"::ffff:127.0.0.1"===r||/^127\.\d+\.\d+\.\d+$/.test(r))},"listAgentDecks",0,g,"remoteLaunchUnsupportedMessage",0,function(e){return`[Deck failed] Remote Agent Deck launch is not supported: the workspace Agent Deck server is non-local and remote \`agent-deck run\` targeting is unconfirmed. Point the workspace server URL at the local Agent Deck server to launch. (server_url=${e})`},"resolveAndEnsureBotWorkdir",0,function(e,r,a){let s=function(e,t,r){let a="string"==typeof t?t.trim():"";if(a)return"~"===a?f(r):a.startsWith("~/")||a.startsWith("~\\")?n.default.join(f(r),a.slice(2)):a;let s=String(e??"").trim();if(!s)throw Error("defaultBotWorkdir requires a bot id.");let i=f(r);return n.default.resolve(i,".botmancers",s)}(e,r,a);return t.default.mkdirSync(s,{recursive:!0}),s},"setAgentDeckServerUrl",0,function(e){let t=c(e);return a.workspaceSettings.set(i,t),t}])}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__1a2dh11._.js.map
@@ -1,44 +0,0 @@
1
- module.exports=[20635,(e,t,n)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,t,n)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},30056,e=>{"use strict";var t=e.i(89171),n=e.i(62294),a=e.i(45383),r=e.i(63020),i=e.i(92628);async function s(e,{params:o}){try{let{id:e}=await o,s=(0,a.getExchangeView)(e);if(s.requester.kind!==n.UI_OWNER_PRINCIPAL.kind||s.requester.id!==n.UI_OWNER_PRINCIPAL.id)throw new r.ExchangeError("exchange_not_found",`No exchange ${e}.`);return t.NextResponse.json({exchange:s,detail:(0,i.exchangeDetail)(n.default,s)})}catch(e){if(e instanceof r.ExchangeError)return t.NextResponse.json((0,r.exchangeErrorBody)(e),{status:e.status});return console.error("Error reading exchange:",e instanceof Error?e.message:"unknown error"),t.NextResponse.json({error:{code:"internal_error",message:"The exchange could not be read."}},{status:500})}}e.s(["GET",0,s])},48601,e=>{"use strict";var t=e.i(47909),n=e.i(74017),a=e.i(96250),r=e.i(59756),i=e.i(61916),s=e.i(74677),o=e.i(69741),d=e.i(16795),l=e.i(87718),u=e.i(95169),c=e.i(47587),_=e.i(66012),p=e.i(70101),g=e.i(26937),E=e.i(10372),v=e.i(93695),m=e.i(9580);e.i(52474);var h=e.i(220);let f=new t.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/exchanges/[id]/route",pathname:"/api/exchanges/[id]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/exchanges/[id]/route.ts",nextConfigOutput:"standalone",userland:()=>e.r(30056),...{}}),{workAsyncStorage:R,workUnitAsyncStorage:b,serverHooks:S}=f;async function A(e,t,a){a.requestMeta&&(0,r.setRequestMeta)(e,a.requestMeta),f.isDev&&(0,r.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let R="/api/exchanges/[id]/route";R=R.replace(/\/index$/,"")||"/";let b=await f.prepare(e,t,{srcPage:R,multiZoneDraftMode:!1});if(!b)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:S,deploymentId:A,params:y,nextConfig:N,parsedUrl:x,isDraftMode:C,prerenderManifest:O,routerServerContext:T,isOnDemandRevalidate:w,revalidateOnlyGenerated:q,resolvedPathname:k,clientReferenceManifest:I,serverActionsManifest:L}=b,H=(0,o.normalizeAppPath)(R),M=!!O.routes[k]&&(f.isDev||(0,m.isRouteCacheOwner)(k,f.cacheOwner,O.routes[k])),D=!!(O.dynamicRoutes[H]||M),F=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,x,!1):t.end("This page could not be found"),null);if(D&&!C){let e=O.dynamicRoutes[H];if(e&&!1===e.fallback&&!M){if(N.adapterPath)return await F();throw new v.NoFallbackError}}let P=null;!D||f.isDev||C||(P="/index"===(P=k)?"/":P);let U=!0===f.isDev||!D,W=D&&!U;L&&I&&(0,s.setManifestsSingleton)({page:R,clientReferenceManifest:I,serverActionsManifest:L});let $=e.method||"GET",j=(0,i.getTracer)(),J=j.getActiveScopeSpan(),B=!!(null==T?void 0:T.isWrappedByNextServer),G=!!(0,r.getRequestMeta)(e,"minimalMode"),X=(0,r.getRequestMeta)(e,"incrementalCache")||await f.getIncrementalCache(e,N,O,G);null==X||X.resetRequestCache(),globalThis.__incrementalCache=X;let K={params:y,previewProps:O.preview,renderOpts:{experimental:{authInterrupts:!!N.experimental.authInterrupts,useCacheTimeout:N.experimental.useCacheTimeout},cacheComponents:!!N.cacheComponents,validationLevel:N.experimental.instantInsights.validationLevel,isDraftMode:C,supportsDynamicResponse:U,incrementalCache:X,hmrRefreshHash:(0,r.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:N.cacheLife,staticPageGenerationTimeout:N.staticPageGenerationTimeout,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,n,a,r)=>f.onRequestError(e,t,a,r,T)},sharedContext:{buildId:S,deploymentId:A}},V=new d.NodeNextRequest(e),Y=new d.NodeNextResponse(t),z=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(t)),Z=async({previousCacheEntry:n})=>{try{if(!G&&w&&q&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let r=await f.handle(z,K);e.fetchMetrics=K.renderOpts.fetchMetrics;let i=K.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let s=K.renderOpts.collectedTags;if(!D)return await (0,_.sendResponse)(V,Y,r,i),null;{let e=await r.blob(),t=(0,p.toNodeOutgoingHttpHeaders)(r.headers);s&&(t[E.NEXT_CACHE_TAGS_HEADER]=s),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let n=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=E.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,a=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=E.INFINITE_CACHE?!1!==n&&n>0?N.expireTime:void 0:K.renderOpts.collectedExpire;return{value:{kind:h.CachedRouteKind.APP_ROUTE,status:r.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:n,expire:a}}}}catch(t){throw(null==n?void 0:n.isStale)&&await f.onRequestError(e,t,{routerKind:"App Router",routePath:R,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:W,isOnDemandRevalidate:w})},!1,T),t}},Q=async(r,s)=>{try{var o,d;let r=await f.handleResponse({req:e,nextConfig:N,cacheKey:P,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:O,isRoutePPREnabled:!1,isOnDemandRevalidate:w,revalidateOnlyGenerated:q,responseGenerator:Z,waitUntil:a.waitUntil,isMinimalMode:G});if(!D)return;if((null==r||null==(o=r.value)?void 0:o.kind)!==h.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==r||null==(d=r.value)?void 0:d.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});G||t.setHeader("x-nextjs-cache",w?"REVALIDATED":r.isMiss?"MISS":r.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let i=(0,p.fromNodeOutgoingHttpHeaders)(r.value.headers);G&&D||i.delete(E.NEXT_CACHE_TAGS_HEADER),!r.cacheControl||t.getHeader("Cache-Control")||i.get("Cache-Control")||i.set("Cache-Control",(0,g.getCacheControlHeader)(r.cacheControl)),await (0,_.sendResponse)(V,Y,new Response(r.value.body,{headers:i,status:r.value.status||200}));return}catch(t){if(t instanceof v.NoFallbackError||await f.onRequestError(e,t,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:W,isOnDemandRevalidate:w})},!1,T),D)throw t;await (0,_.sendResponse)(V,Y,new Response(null,{status:500}));return}finally{(()=>{if(!r)return;let e=t.statusCode;r.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(r.setStatus({code:i.SpanStatusCode.ERROR}),r.setAttribute("error.type",e.toString()));let n=j.getRootSpanAttributes();if(!n)return;if(n.get("next.span_type")!==u.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${n.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=n.get("next.route")||H,o=`${$} ${a}`;r.setAttributes({"next.route":a,"http.route":a,"next.span_name":o}),r.updateName(o),s&&s!==r&&(s.setAttribute("http.route",a),s.updateName(o))})()}};if(B&&J)await Q(J,void 0);else{let t=j.getActiveScopeSpan();await j.withPropagatedContext(e.headers,()=>j.trace(u.BaseServerSpan.handleRequest,{spanName:`${$} ${R}`,kind:i.SpanKind.SERVER,attributes:{"http.method":$,"http.target":e.url}},e=>Q(e,t)),void 0,!B)}}e.s(["handler",0,A,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:R,workUnitAsyncStorage:b})},"routeModule",0,f,"serverHooks",0,S,"workAsyncStorage",0,R,"workUnitAsyncStorage",0,b])},92628,e=>{"use strict";var t=e.i(90027),n=e.i(35613);function a(e){return null==e?null:e.length>600?`${e.slice(0,599).trimEnd()}…`:e}function r(e,t){return e.prepare("SELECT name FROM bots WHERE id = ?").get(t)?.name??"Removed Agent"}function i(e,t){return"string"!=typeof t?null:e.prepare("SELECT content FROM messages WHERE id = ?").get(t)?.content??null}function s(e,s){let o=n=>n?(0,t.conversationRef)(e,n):null,d=o(s.origin_conversation_id),l=o(function(e,t){if(t.source_request_id){let n=e.prepare("SELECT source_conversation_id FROM work_requests WHERE id = ?").get(t.source_request_id);if(n?.source_conversation_id)return n.source_conversation_id}let n=e.prepare("SELECT conversation_id FROM session_bindings WHERE id = ?").get(t.source_binding_id);return n?.conversation_id??null}(e,s)),u=o(s.destination_conversation_id),c=[],_=(e,t)=>{if(!e)return;let n=c.find(t=>t.id===e.id);n?n.roles.push(t):c.push({...e,roles:[t]})};_(d,"origin"),_(l,"source"),_(u,"destination");let p=n.EXCHANGE_TERMINAL_STATES.includes(s.state);return{id:s.id,mode:s.mode,state:s.state,terminal:p,can_cancel:!p&&null===s.cancel_requested_at,cancel_requested:null!==s.cancel_requested_at,instruction:s.instruction,source:{agent_id:s.source_agent_id,agent_name:r(e,s.source_agent_id),session_title:(0,t.sessionTitle)(e,s.source_agent_id,s.source_binding_id)??"Session",conversation:l},destination:"continue"===s.mode&&s.destination_agent_id?{agent_id:s.destination_agent_id,agent_name:r(e,s.destination_agent_id),session_title:s.destination_binding_id?(0,t.sessionTitle)(e,s.destination_agent_id,s.destination_binding_id):null,conversation:u}:null,origin:d,links:c,outcome:{answer:a(i(e,s.answer_message_id)),objective:a(function(e){if(!e)return null;try{let t=JSON.parse(e);return"string"==typeof t.objective?t.objective:null}catch{return null}}(s.packet)),reply:a(i(e,function(e,t){let n=e.prepare("SELECT data FROM session_exchange_events WHERE exchange_id = ? AND type = 'destination_replied' ORDER BY sequence DESC LIMIT 1").get(t);try{return n?.data?JSON.parse(n.data).message_id:null}catch{return null}}(e,s.id)))},failure:"failed"===s.state?{code:s.failure_code??"failed",message:s.failure_message??""}:null,created_at:s.created_at,updated_at:s.updated_at,terminal_at:s.terminal_at}}e.s(["exchangeDetail",0,function(e,t){let n=e.prepare("SELECT * FROM session_exchanges WHERE id = ?").get(t.id);return{summary:s(e,n),events:t.events.map(e=>{var t;return{...e,data:(t=e.data)?Object.fromEntries(Object.entries(t).filter(([e])=>!e.endsWith("_id")&&"session_ref"!==e&&"by"!==e)):null}}),packet:t.packet,answer:t.answer?.content??null}},"listExchanges",0,function(e,t){return e.prepare("SELECT * FROM session_exchanges WHERE requester_kind = ? AND requester_id = ? ORDER BY updated_at DESC, created_at DESC, id ASC").all(t.requester.kind,t.requester.id).filter(e=>!t.mode||e.mode===t.mode).filter(e=>!t.state||("active"===t.state?!n.EXCHANGE_TERMINAL_STATES.includes(e.state):e.state===t.state)).filter(e=>!t.agentId||e.source_agent_id===t.agentId||e.destination_agent_id===t.agentId).map(t=>s(e,t)).filter(e=>!t.conversationId||e.links.some(e=>e.id===t.conversationId))}])},90027,e=>{"use strict";var t=e.i(62349),n=e.i(28420);let a=["active","ended","all"],r=["implementation","revision"],i=`
2
- SELECT b.*, bot.name AS agent_name, bot.agent AS agent_runtime, r.id AS origin_request_id, c.id AS origin_conversation_id,
3
- c.type AS conversation_type, c.bot_id AS conversation_bot_id, tb.name AS thread_agent_name, g.name AS group_name,
4
- r.intent AS request_intent, r.execution_kind AS request_kind, r.state AS request_state,
5
- r.source_conversation_id AS request_conversation_id, r.target_agent_id AS request_target_agent_id,
6
- sa.launch_snapshot AS source_snapshot, sa.finished_at AS source_finished_at,
7
- (SELECT MAX(COALESCE(ra.finished_at, ra.started_at)) FROM work_attempts ra WHERE ra.resumed_session_binding_id = b.id) AS resumed_last_at,
8
- EXISTS (SELECT 1 FROM work_attempts oa WHERE oa.resumed_session_binding_id = b.id AND oa.finished_at IS NULL) AS attempt_running,
9
- ps.availability AS ps_availability, ps.lifecycle AS ps_lifecycle, ps.resumable AS ps_resumable, ps.busy AS ps_busy,
10
- ps.workspace AS ps_workspace, ps.last_synced_at AS ps_synced_at,
11
- EXISTS (SELECT 1 FROM provider_session_turns pt WHERE pt.session_ref = ps.id AND pt.state = 'running') AS ps_running
12
- FROM session_bindings b
13
- JOIN bots bot ON bot.id = b.agent_id
14
- LEFT JOIN provider_sessions ps ON ps.binding_id = b.id
15
- LEFT JOIN work_attempts sa ON sa.id = b.source_attempt_id
16
- LEFT JOIN work_requests r ON r.id = COALESCE(b.request_id, sa.request_id)
17
- LEFT JOIN conversations c ON c.id = COALESCE(b.conversation_id, r.source_conversation_id)
18
- LEFT JOIN bots tb ON tb.id = c.bot_id
19
- LEFT JOIN groups g ON g.id = c.group_id
20
- `,s=`
21
- SELECT ps.id, ps.agent_id, bot.name AS agent_name, ps.provider_kind, ps.title, ps.workspace,
22
- ps.provider_created_at, ps.provider_updated_at, ps.availability, ps.lifecycle, ps.resumable, ps.busy,
23
- ps.last_synced_at, ps.created_at, ps.updated_at,
24
- (SELECT MAX(COALESCE(t.finished_at, t.created_at)) FROM provider_session_turns t WHERE t.session_ref = ps.id) AS turn_last_at,
25
- EXISTS (SELECT 1 FROM provider_session_turns t WHERE t.session_ref = ps.id AND t.state = 'running') AS running
26
- FROM provider_sessions ps
27
- JOIN bots bot ON bot.id = ps.agent_id
28
- WHERE ps.binding_id IS NULL
29
- `;function o(e){return`${new Date(e).toISOString().slice(0,16).replace("T"," ")} UTC`}function d(e,t){let n=e?.[t];return"string"==typeof n&&n.trim().length>0?n:null}function l(e){let t=e.origin_conversation_id;return t?"group"===e.conversation_type?{id:t,kind:"group",label:e.group_name?`Group ${e.group_name}`:"Group thread",thread_agent_id:null}:"bot"===e.conversation_type&&e.conversation_bot_id?{id:t,kind:"direct",label:e.thread_agent_name?`${e.thread_agent_name} thread`:"Agent thread",thread_agent_id:e.thread_agent_name?e.conversation_bot_id:null}:{id:t,kind:"agent_api",label:"Agent API conversation",thread_agent_id:null}:null}function u(e,a=(0,n.emptyUsage)()){let i,s=null;try{s=e.source_snapshot?JSON.parse(e.source_snapshot):null}catch{}let c=l(e),_=null===e.released_at?"active":"ended",p=((i=(e.request_intent??"").split("\n").map(e=>e.trim()).find(e=>e.length>0))?i.length>80?`${i.slice(0,79).trimEnd()}…`:i:null)??(c?.kind==="group"?c.label:null)??`${e.agent_name} \xb7 ${o(e.created_at)}`;return{ref:e.id,source:"botmancers",agent:{id:e.agent_id,name:e.agent_name,adapter:e.adapter,transport:d(s,"transport")},title:p,status:_,resumable:null===e.released_at&&null!==e.request_id&&null!==e.request_kind&&r.includes(e.request_kind)&&e.request_target_agent_id===e.agent_id&&(e.conversation_id??"")===(e.request_conversation_id??"")&&e.adapter===(0,t.resolveAgent)({agent:e.agent_runtime}).agent,state:{availability:e.ps_availability??"available",lifecycle:e.ps_lifecycle??"open",resumable:null===e.ps_resumable||void 0===e.ps_resumable?null:1===e.ps_resumable,busy:1===e.ps_busy||!!e.attempt_running||!!e.ps_running,synced_at:e.ps_synced_at??null},created_at:e.created_at,ended_at:e.released_at,last_activity_at:Math.max(e.created_at,e.released_at??0,e.source_finished_at??0,e.resumed_last_at??0),origin:{conversation:c,work_request:e.origin_request_id&&e.request_kind&&e.request_state?{id:e.origin_request_id,execution_kind:e.request_kind,state:e.request_state}:null},context:{workspace:d(s,"cwd")??e.ps_workspace??null,deck:d(s,"deck")},usage:a}}function c(e,t=(0,n.emptyUsage)()){let a=e.provider_created_at??e.created_at,r=null===e.resumable?null:1===e.resumable,i="archived"===e.lifecycle?e.provider_updated_at??e.updated_at:null;return{ref:e.id,source:"native",agent:{id:e.agent_id,name:e.agent_name,adapter:e.provider_kind,transport:null},title:e.title??`${e.agent_name} \xb7 ${o(a)}`,status:"open"===e.lifecycle?"active":"ended",resumable:!1,state:{availability:e.availability,lifecycle:e.lifecycle,resumable:r,busy:1===e.busy||!!e.running,synced_at:e.last_synced_at},created_at:a,ended_at:i,last_activity_at:Math.max(a,e.provider_updated_at??0,e.turn_last_at??0),origin:{conversation:null,work_request:null},context:{workspace:e.workspace,deck:null},usage:t}}function _(e,t){return t.last_activity_at-e.last_activity_at||t.created_at-e.created_at||(e.ref<t.ref?-1:+(e.ref>t.ref))}function p(e,t,n){return e.prepare(`${s} AND ps.id = ? AND ps.agent_id = ?`).get(n,t)}function g(e,t,n){return e.prepare(`${i} WHERE b.id = ? AND b.agent_id = ?`).get(n,t)}e.s(["agentExists",0,function(e,t){return!!e.prepare("SELECT 1 FROM bots WHERE id = ?").get(t)},"conversationRef",0,function(e,t){let n=e.prepare(`
30
- SELECT c.id AS origin_conversation_id, c.type AS conversation_type, c.bot_id AS conversation_bot_id,
31
- tb.name AS thread_agent_name, g.name AS group_name
32
- FROM conversations c
33
- LEFT JOIN bots tb ON tb.id = c.bot_id
34
- LEFT JOIN groups g ON g.id = c.group_id
35
- WHERE c.id = ?
36
- `).get(t);return n?l(n):null},"getAgentSession",0,function(e,t,a){let r=g(e,t,a);if(!r){let r=p(e,t,a);if(!r)return;let{usage:i,samples:s}=(0,n.sessionUsageSamples)(e,t,a);return{...c(r,i),attempts:[],usage_samples:s}}let i=e.prepare(`
37
- SELECT a.attempt_number, a.kind, a.request_id, a.outcome, a.started_at, a.finished_at,
38
- CASE WHEN a.id = ? THEN 'source' ELSE 'resume' END AS role
39
- FROM work_attempts a
40
- WHERE a.id = ? OR a.resumed_session_binding_id = ?
41
- ORDER BY a.started_at ASC, a.id ASC
42
- `).all(r.source_attempt_id,r.source_attempt_id,r.id),{usage:s,samples:o}=(0,n.sessionUsageSamples)(e,t,a);return{...u(r,s),attempts:i,usage_samples:o}},"isSessionFilter",0,function(e){return"string"==typeof e&&a.includes(e)},"listAgentSessions",0,function(e,t,a="all"){let r=e.prepare(`${i} WHERE b.agent_id = ? ${"active"===a?"AND b.released_at IS NULL":"ended"===a?"AND b.released_at IS NOT NULL":""}`).all(t),o=e.prepare(`${s} AND ps.agent_id = ? ${"active"===a?"AND ps.lifecycle = 'open'":"ended"===a?"AND ps.lifecycle = 'archived'":""}`).all(t),d=(0,n.agentSessionUsage)(e,t);return[...r.map(e=>u(e,d.get(e.id))),...o.map(e=>c(e,d.get(e.id)))].sort(_)},"sessionDebugExternalId",0,function(e,t,n){let a=g(e,t,n)?.external_session_id;if(void 0!==a)return a;if(!p(e,t,n))return;let r=e.prepare("SELECT provider_session_id FROM provider_sessions WHERE id = ? AND agent_id = ?").get(n,t);return r?.provider_session_id},"sessionTitle",0,function(e,t,n){let a=g(e,t,n);if(a)return u(a).title;let r=p(e,t,n);return r?c(r).title:null}])}];
43
-
44
- //# sourceMappingURL=%5Broot-of-the-server%5D__1co3sok._.js.map