botmancers 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +81 -0
- package/README.md +17 -12
- package/app/.next/BUILD_ID +1 -1
- package/app/.next/app-path-routes-manifest.json +9 -2
- package/app/.next/build-manifest.json +3 -3
- package/app/.next/node_modules/@slack/socket-mode-77e8cba3b9ba4738/index.js +1 -0
- package/app/.next/node_modules/@slack/socket-mode-77e8cba3b9ba4738/package.json +1 -0
- package/app/.next/node_modules/@slack/web-api-d6dbe405b6902642/index.js +1 -0
- package/app/.next/node_modules/@slack/web-api-d6dbe405b6902642/package.json +1 -0
- package/app/.next/prerender-manifest.json +4 -4
- package/app/.next/required-server-files.json +8 -3
- package/app/.next/routes-manifest.json +67 -12
- package/app/.next/server/app/_global-error/page.js +1 -1
- package/app/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next/server/app/_global-error.html +1 -1
- package/app/.next/server/app/_global-error.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/_not-found/page.js +1 -1
- package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_not-found.html +1 -1
- package/app/.next/server/app/_not-found.rsc +2 -2
- package/app/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/api/bots/[id]/config/route.js +3 -3
- package/app/.next/server/app/api/bots/[id]/config/route.js.nft.json +1 -1
- package/app/.next/server/app/api/bots/[id]/sessions/[ref]/pins/route.js +5 -6
- package/app/.next/server/app/api/bots/[id]/sessions/[ref]/pins/route.js.nft.json +1 -1
- package/app/.next/server/app/api/bots/[id]/sessions/[ref]/route.js +3 -3
- package/app/.next/server/app/api/bots/[id]/sessions/[ref]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/bots/[id]/sessions/[ref]/shares/route/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/bots/[id]/sessions/[ref]/shares/route.js +11 -0
- package/app/.next/server/app/api/bots/[id]/sessions/[ref]/shares/route.js.nft.json +1 -0
- package/app/.next/server/app/api/bots/[id]/sessions/[ref]/shares/route_client-reference-manifest.js +3 -0
- package/app/.next/server/app/api/bots/[id]/sessions/route.js +5 -6
- package/app/.next/server/app/api/bots/[id]/sessions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/bots/[id]/share-policy/route/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/bots/[id]/share-policy/route.js +11 -0
- package/app/.next/server/app/api/bots/[id]/share-policy/route.js.nft.json +1 -0
- package/app/.next/server/app/api/bots/[id]/share-policy/route_client-reference-manifest.js +3 -0
- package/app/.next/server/app/api/bots/[id]/skill/route.js +3 -3
- package/app/.next/server/app/api/bots/[id]/skill/route.js.nft.json +1 -1
- package/app/.next/server/app/api/bots/availability/route.js +3 -2
- package/app/.next/server/app/api/bots/availability/route.js.nft.json +1 -1
- package/app/.next/server/app/api/bots/delete-preview/route.js +3 -3
- package/app/.next/server/app/api/bots/delete-preview/route.js.nft.json +1 -1
- package/app/.next/server/app/api/bots/import/route.js +3 -3
- package/app/.next/server/app/api/bots/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/bots/manage/route.js +3 -3
- package/app/.next/server/app/api/bots/manage/route.js.nft.json +1 -1
- package/app/.next/server/app/api/bots/name-migrations/route.js +3 -3
- package/app/.next/server/app/api/bots/name-migrations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/bots/route.js +7 -7
- package/app/.next/server/app/api/bots/route.js.nft.json +1 -1
- package/app/.next/server/app/api/conversations/[id]/approve/route.js +4 -4
- package/app/.next/server/app/api/conversations/[id]/approve/route.js.nft.json +1 -1
- package/app/.next/server/app/api/conversations/[id]/deny/route.js +4 -4
- package/app/.next/server/app/api/conversations/[id]/deny/route.js.nft.json +1 -1
- package/app/.next/server/app/api/conversations/[id]/draft/route.js +4 -4
- package/app/.next/server/app/api/conversations/[id]/draft/route.js.nft.json +1 -1
- package/app/.next/server/app/api/conversations/[id]/messages/[messageId]/stop/route.js +3 -3
- package/app/.next/server/app/api/conversations/[id]/messages/[messageId]/stop/route.js.nft.json +1 -1
- package/app/.next/server/app/api/conversations/[id]/messages/route.js +7 -7
- package/app/.next/server/app/api/conversations/[id]/messages/route.js.nft.json +1 -1
- package/app/.next/server/app/api/conversations/[id]/route.js +3 -3
- package/app/.next/server/app/api/conversations/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/conversations/[id]/stop/route.js +4 -4
- package/app/.next/server/app/api/conversations/[id]/stop/route.js.nft.json +1 -1
- package/app/.next/server/app/api/conversations/route.js +3 -3
- package/app/.next/server/app/api/conversations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/exchanges/[id]/cancel/route.js +4 -4
- package/app/.next/server/app/api/exchanges/[id]/cancel/route.js.nft.json +1 -1
- package/app/.next/server/app/api/exchanges/[id]/route.js +5 -5
- package/app/.next/server/app/api/exchanges/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/exchanges/route.js +6 -6
- package/app/.next/server/app/api/exchanges/route.js.nft.json +1 -1
- package/app/.next/server/app/api/files/[name]/route.js +1 -1
- package/app/.next/server/app/api/files/[name]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/groups/route.js +3 -3
- package/app/.next/server/app/api/groups/route.js.nft.json +1 -1
- package/app/.next/server/app/api/health/route.js +5 -2
- package/app/.next/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next/server/app/api/import-capabilities/route.js +1 -1
- package/app/.next/server/app/api/import-capabilities/route.js.nft.json +1 -1
- package/app/.next/server/app/api/marketplace-handoff/route.js +1 -1
- package/app/.next/server/app/api/marketplace-handoff/route.js.nft.json +1 -1
- package/app/.next/server/app/api/marketplace-handoff/status/route.js +1 -1
- package/app/.next/server/app/api/marketplace-handoff/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/mcp/route.js +3 -3
- package/app/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/app/.next/server/app/api/messages/[id]/between/route.js +3 -3
- package/app/.next/server/app/api/messages/[id]/between/route.js.nft.json +1 -1
- package/app/.next/server/app/api/runtime-connections/route.js +3 -3
- package/app/.next/server/app/api/runtime-connections/route.js.nft.json +1 -1
- package/app/.next/server/app/api/service-grants/route.js +3 -3
- package/app/.next/server/app/api/service-grants/route.js.nft.json +1 -1
- package/app/.next/server/app/api/shares/[shareRef]/revoke/route/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/shares/[shareRef]/revoke/route/build-manifest.json +12 -0
- package/app/.next/server/app/api/shares/[shareRef]/revoke/route/server-reference-manifest.json +4 -0
- package/app/.next/server/app/api/shares/[shareRef]/revoke/route.js +11 -0
- package/app/.next/server/app/api/shares/[shareRef]/revoke/route.js.nft.json +1 -0
- package/app/.next/server/app/api/shares/[shareRef]/revoke/route_client-reference-manifest.js +3 -0
- package/app/.next/server/app/api/shares/route/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/shares/route/build-manifest.json +12 -0
- package/app/.next/server/app/api/shares/route/server-reference-manifest.json +4 -0
- package/app/.next/server/app/api/shares/route.js +11 -0
- package/app/.next/server/app/api/shares/route.js.nft.json +1 -0
- package/app/.next/server/app/api/shares/route_client-reference-manifest.js +3 -0
- package/app/.next/server/app/api/v0/agents/[agentId]/conversations/[conversationId]/route.js +5 -6
- package/app/.next/server/app/api/v0/agents/[agentId]/conversations/[conversationId]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/agents/[agentId]/conversations/route.js +5 -6
- package/app/.next/server/app/api/v0/agents/[agentId]/conversations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/agents/[agentId]/messages/route.js +4 -4
- package/app/.next/server/app/api/v0/agents/[agentId]/messages/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/agents/[agentId]/pins/route.js +5 -6
- package/app/.next/server/app/api/v0/agents/[agentId]/pins/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/agents/[agentId]/route.js +5 -6
- package/app/.next/server/app/api/v0/agents/[agentId]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/agents/[agentId]/sessions/[ref]/route.js +5 -6
- package/app/.next/server/app/api/v0/agents/[agentId]/sessions/[ref]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/agents/[agentId]/sessions/route.js +5 -6
- package/app/.next/server/app/api/v0/agents/[agentId]/sessions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/agents/route.js +5 -6
- package/app/.next/server/app/api/v0/agents/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/capabilities/route.js +5 -6
- package/app/.next/server/app/api/v0/capabilities/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/conversations/[id]/route.js +4 -4
- package/app/.next/server/app/api/v0/conversations/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/exchanges/[id]/cancel/route.js +5 -6
- package/app/.next/server/app/api/v0/exchanges/[id]/cancel/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/exchanges/[id]/route.js +5 -6
- package/app/.next/server/app/api/v0/exchanges/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/exchanges/route.js +5 -6
- package/app/.next/server/app/api/v0/exchanges/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/mcp/route.js +6 -7
- package/app/.next/server/app/api/v0/mcp/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/pins/[pinRef]/detach/route.js +5 -6
- package/app/.next/server/app/api/v0/pins/[pinRef]/detach/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/pins/[pinRef]/messages/route.js +5 -6
- package/app/.next/server/app/api/v0/pins/[pinRef]/messages/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/pins/[pinRef]/route.js +5 -6
- package/app/.next/server/app/api/v0/pins/[pinRef]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/requests/[id]/route.js +4 -4
- package/app/.next/server/app/api/v0/requests/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/sessions/[ref]/messages/route.js +5 -6
- package/app/.next/server/app/api/v0/sessions/[ref]/messages/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/sessions/[ref]/pins/route.js +5 -6
- package/app/.next/server/app/api/v0/sessions/[ref]/pins/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/sessions/[ref]/shares/route/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/v0/sessions/[ref]/shares/route/build-manifest.json +12 -0
- package/app/.next/server/app/api/v0/sessions/[ref]/shares/route/server-reference-manifest.json +4 -0
- package/app/.next/server/app/api/v0/sessions/[ref]/shares/route.js +11 -0
- package/app/.next/server/app/api/v0/sessions/[ref]/shares/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v0/sessions/[ref]/shares/route_client-reference-manifest.js +3 -0
- package/app/.next/server/app/api/v0/shares/[shareRef]/revoke/route/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/v0/shares/[shareRef]/revoke/route/build-manifest.json +12 -0
- package/app/.next/server/app/api/v0/shares/[shareRef]/revoke/route/server-reference-manifest.json +4 -0
- package/app/.next/server/app/api/v0/shares/[shareRef]/revoke/route.js +11 -0
- package/app/.next/server/app/api/v0/shares/[shareRef]/revoke/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v0/shares/[shareRef]/revoke/route_client-reference-manifest.js +3 -0
- package/app/.next/server/app/api/v0/shares/[shareRef]/route/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/v0/shares/[shareRef]/route/build-manifest.json +12 -0
- package/app/.next/server/app/api/v0/shares/[shareRef]/route/server-reference-manifest.json +4 -0
- package/app/.next/server/app/api/v0/shares/[shareRef]/route.js +11 -0
- package/app/.next/server/app/api/v0/shares/[shareRef]/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v0/shares/[shareRef]/route_client-reference-manifest.js +3 -0
- package/app/.next/server/app/api/v0/shares/current/route/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/v0/shares/current/route/build-manifest.json +12 -0
- package/app/.next/server/app/api/v0/shares/current/route/server-reference-manifest.json +4 -0
- package/app/.next/server/app/api/v0/shares/current/route.js +11 -0
- package/app/.next/server/app/api/v0/shares/current/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v0/shares/current/route_client-reference-manifest.js +3 -0
- package/app/.next/server/app/api/v0/shares/route/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/v0/shares/route/build-manifest.json +12 -0
- package/app/.next/server/app/api/v0/shares/route/server-reference-manifest.json +4 -0
- package/app/.next/server/app/api/v0/shares/route.js +11 -0
- package/app/.next/server/app/api/v0/shares/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v0/shares/route_client-reference-manifest.js +3 -0
- package/app/.next/server/app/api/wake-grants/[id]/revoke/route.js +4 -4
- package/app/.next/server/app/api/wake-grants/[id]/revoke/route.js.nft.json +1 -1
- package/app/.next/server/app/api/wakes/[id]/decision/route.js +4 -4
- package/app/.next/server/app/api/wakes/[id]/decision/route.js.nft.json +1 -1
- package/app/.next/server/app/api/wakes/[id]/retry/route.js +4 -4
- package/app/.next/server/app/api/wakes/[id]/retry/route.js.nft.json +1 -1
- package/app/.next/server/app/bots/[id]/config/page.js +1 -1
- package/app/.next/server/app/bots/[id]/config/page.js.nft.json +1 -1
- package/app/.next/server/app/bots/[id]/config/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/exchanges/page.js +1 -1
- package/app/.next/server/app/exchanges/page.js.nft.json +1 -1
- package/app/.next/server/app/exchanges/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/exchanges.html +1 -1
- package/app/.next/server/app/exchanges.rsc +3 -3
- package/app/.next/server/app/exchanges.segments/_full.segment.rsc +3 -3
- package/app/.next/server/app/exchanges.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/exchanges.segments/exchanges/__PAGE__.segment.rsc +3 -3
- package/app/.next/server/app/index.html +1 -1
- package/app/.next/server/app/index.rsc +3 -3
- package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
- package/app/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/page.js +1 -1
- package/app/.next/server/app/page.js.nft.json +1 -1
- package/app/.next/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/settings/page.js +1 -1
- package/app/.next/server/app/settings/page.js.nft.json +1 -1
- package/app/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/settings.html +1 -1
- package/app/.next/server/app/settings.rsc +3 -3
- package/app/.next/server/app/settings.segments/_full.segment.rsc +3 -3
- package/app/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +3 -3
- package/app/.next/server/app/threads/[id]/page.js +1 -1
- package/app/.next/server/app/threads/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/threads/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app-paths-manifest.json +9 -2
- package/app/.next/server/chunks/1oeh_server_app_api_bots_[id]_sessions_[ref]_shares_route_actions_1jr6f0v.js +3 -0
- package/app/.next/server/chunks/[externals]_@slack_0owayck._.js +3 -0
- package/app/.next/server/chunks/[externals]__17bolvp._.js +3 -0
- package/app/.next/server/chunks/{[externals]__06lqs5i._.js → [externals]__1eaoma8._.js} +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__0-vcyi-._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0-w_t2y._.js +3 -0
- package/app/.next/server/chunks/{[root-of-the-server]__1_01-13._.js → [root-of-the-server]__029-_9t._.js} +2 -2
- package/app/.next/server/chunks/[root-of-the-server]__02vrtib._.js +4 -0
- package/app/.next/server/chunks/[root-of-the-server]__04b3ml2._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__06w5xhe._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0792yb1._.js +44 -0
- package/app/.next/server/chunks/[root-of-the-server]__07q5mnr._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0888o0_._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0aincj4._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0d3fjix._.js +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__0e_agq4._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0ey3_2x._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0fku-bw._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0iqh5ta._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0ivjcgs._.js +4 -0
- package/app/.next/server/chunks/[root-of-the-server]__0kgnysc._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0mp8bap._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0o9ijih._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0qaiqut._.js +44 -0
- package/app/.next/server/chunks/[root-of-the-server]__0zrx1iz._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__10b5-i-._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__17mum5-._.js +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__17xl_55._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__1dxr858._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__1eps2a4._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__1ggmit0._.js +4 -0
- package/app/.next/server/chunks/{[root-of-the-server]__1y_j43n._.js → [root-of-the-server]__1hwy3jx._.js} +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__1i8glt4._.js +4 -0
- package/app/.next/server/chunks/{[root-of-the-server]__0j0i8xz._.js → [root-of-the-server]__1igzl05._.js} +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__1j8fg_n._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__1kczttr._.js +3 -0
- package/app/.next/server/chunks/{[root-of-the-server]__1c3e2ds._.js → [root-of-the-server]__1kik2zt._.js} +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__1v3ikuo._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__1x8phwp._.js +44 -0
- package/app/.next/server/chunks/{[root-of-the-server]__0-45blq._.js → [root-of-the-server]__1z5l5cg._.js} +2 -2
- package/app/.next/server/chunks/[root-of-the-server]__200ep0k._.js +3 -0
- package/app/.next/server/chunks/_0061c2q._.js +48 -1
- package/app/.next/server/chunks/_04e2bgj._.js +3 -0
- package/app/.next/server/chunks/_057h7zr._.js +3 -0
- package/app/.next/server/chunks/_05po7b4._.js +3 -0
- package/app/.next/server/chunks/_06sxx0e._.js +3 -0
- package/app/.next/server/chunks/_0a2do3x._.js +1 -1
- package/app/.next/server/chunks/_0ar2ooe._.js +3 -0
- package/app/.next/server/chunks/_0fmotaz._.js +3 -0
- package/app/.next/server/chunks/_0kpfto_._.js +3 -0
- package/app/.next/server/chunks/_0lm6uis._.js +3 -0
- package/app/.next/server/chunks/_0mpu5tl._.js +3 -0
- package/app/.next/server/chunks/_0qv-4by._.js +3 -0
- package/app/.next/server/chunks/_0u9cfq9._.js +3 -0
- package/app/.next/server/chunks/_0ul8k7g._.js +3 -0
- package/app/.next/server/chunks/_1-5mthb._.js +1 -1
- package/app/.next/server/chunks/_1-60d3o._.js +3 -0
- package/app/.next/server/chunks/_133y3b0._.js +3 -0
- package/app/.next/server/chunks/_167960a._.js +3 -0
- package/app/.next/server/chunks/_17vgjlt._.js +3 -0
- package/app/.next/server/chunks/_1amx9_4._.js +3 -0
- package/app/.next/server/chunks/_1b01v-_._.js +3 -0
- package/app/.next/server/chunks/_1c-g4gq._.js +3 -0
- package/app/.next/server/chunks/_1ey6l4p._.js +3 -0
- package/app/.next/server/chunks/_1nlg4x_._.js +3 -0
- package/app/.next/server/chunks/_1x4dqzv._.js +3 -0
- package/app/.next/server/chunks/_1z0qbzc._.js +3 -0
- package/app/.next/server/chunks/_next-internal_server_app_api_bots_[id]_share-policy_route_actions_0x-p250.js +3 -0
- package/app/.next/server/chunks/_next-internal_server_app_api_shares_[shareRef]_revoke_route_actions_1cu5kah.js +3 -0
- package/app/.next/server/chunks/_next-internal_server_app_api_shares_route_actions_0wk7x1r.js +3 -0
- package/app/.next/server/chunks/_next-internal_server_app_api_v0_sessions_[ref]_shares_route_actions_11fh--7.js +3 -0
- package/app/.next/server/chunks/_next-internal_server_app_api_v0_shares_[shareRef]_revoke_route_actions_00rzyj9.js +3 -0
- package/app/.next/server/chunks/_next-internal_server_app_api_v0_shares_[shareRef]_route_actions_0i1t5qb.js +3 -0
- package/app/.next/server/chunks/_next-internal_server_app_api_v0_shares_current_route_actions_1w_bpas.js +3 -0
- package/app/.next/server/chunks/_next-internal_server_app_api_v0_shares_route_actions_1b38was.js +3 -0
- package/app/.next/server/chunks/lib_0-opbv7._.js +316 -0
- package/app/.next/server/chunks/lib_0aejojj._.js +316 -0
- package/app/.next/server/chunks/lib_0il0ml1._.js +316 -0
- package/app/.next/server/chunks/lib_0iujsdg._.js +316 -0
- package/app/.next/server/chunks/lib_0kik6bx._.js +20 -20
- package/app/.next/server/chunks/lib_0pe3tiv._.js +20 -20
- package/app/.next/server/chunks/lib_15adnlz._.js +2172 -0
- package/app/.next/server/chunks/lib_1dehbst._.js +316 -0
- package/app/.next/server/chunks/lib_1z4vnh4._.js +316 -0
- package/app/.next/server/chunks/lib_1zc7-gl._.js +2172 -0
- package/app/.next/server/chunks/lib_agent-api_ts_0iv52-o._.js +3 -0
- package/app/.next/server/chunks/{[root-of-the-server]__0izjfmr._.js → lib_db_ts_1ttuckb._.js} +59 -57
- package/app/.next/server/chunks/lib_service-api-http_ts_0xzqhny._.js +5 -5
- package/app/.next/server/chunks/lib_slack-runtime_ts_0fgsejy._.js +63 -0
- package/app/.next/server/chunks/ssr/{[root-of-the-server]__03186rx._.js → [root-of-the-server]__1smmfpx._.js} +1 -1
- package/app/.next/server/chunks/ssr/_0_fa0na._.js +3 -0
- package/app/.next/server/chunks/ssr/_0a6r_bx._.js +3 -0
- package/app/.next/server/chunks/ssr/_14d-lxn._.js +3 -0
- package/app/.next/server/chunks/ssr/_1cvuhjt._.js +1 -1
- package/app/.next/server/chunks/ssr/_1is_iwu._.js +3 -0
- package/app/.next/server/chunks/ssr/_1n5mvo5._.js +1 -1
- package/app/.next/server/chunks/ssr/_1o94bnv._.js +1 -1
- package/app/.next/server/chunks/ssr/app_bots_[id]_config_page_tsx_1e0uue9._.js +1 -1
- package/app/.next/server/instrumentation.js +4 -0
- package/app/.next/server/middleware-build-manifest.js +3 -3
- package/app/.next/server/middleware.js +1 -1
- package/app/.next/server/pages/404.html +1 -1
- package/app/.next/server/pages/500.html +1 -1
- package/app/.next/server/server-reference-manifest.js +1 -1
- package/app/.next/server/server-reference-manifest.json +1 -1
- package/app/.next/static/chunks/1ouuczm-gmvxs.js +1 -0
- package/app/.next/static/chunks/1w72fds3-utrx.js +1 -0
- package/app/.next/static/chunks/2095-o17ji0fs.css +3 -0
- package/app/.next/static/chunks/2q-tgwkalrnms.js +1 -0
- package/app/.next/static/chunks/34bv9o9bjkwk0.js +3 -0
- package/app/.next/static/chunks/3rwwunh5sdjzg.js +1 -0
- package/app/.next/static/chunks/3whw2-l4a2sli.js +1 -0
- package/app/.next/static/chunks/3z3mn526_3fwd.js +1 -0
- package/app/BUILD_INFO.json +2 -2
- package/app/node_modules/@slack/logger/dist/index.js +94 -0
- package/app/node_modules/@slack/logger/package.json +43 -0
- package/app/node_modules/@slack/socket-mode/dist/package.json +67 -0
- package/app/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js +242 -0
- package/app/node_modules/@slack/socket-mode/dist/src/SocketModeClient.js +363 -0
- package/app/node_modules/@slack/socket-mode/dist/src/UnrecoverableSocketModeStartError.js +14 -0
- package/app/node_modules/@slack/socket-mode/dist/src/errors.js +68 -0
- package/app/node_modules/@slack/socket-mode/dist/src/index.js +13 -0
- package/app/node_modules/@slack/socket-mode/dist/src/logger.js +26 -0
- package/app/node_modules/@slack/socket-mode/package.json +67 -0
- package/app/node_modules/@slack/types/dist/block-kit/block-elements.js +4 -0
- package/app/node_modules/@slack/types/dist/block-kit/blocks.js +3 -0
- package/app/node_modules/@slack/types/dist/block-kit/composition-objects.js +4 -0
- package/app/node_modules/@slack/types/dist/block-kit/extensions.js +3 -0
- package/app/node_modules/@slack/types/dist/calls.js +6 -0
- package/app/node_modules/@slack/types/dist/chunk.js +3 -0
- package/app/node_modules/@slack/types/dist/dialog.js +3 -0
- package/app/node_modules/@slack/types/dist/events/app.js +3 -0
- package/app/node_modules/@slack/types/dist/events/assistant.js +3 -0
- package/app/node_modules/@slack/types/dist/events/call.js +3 -0
- package/app/node_modules/@slack/types/dist/events/channel.js +3 -0
- package/app/node_modules/@slack/types/dist/events/dnd.js +3 -0
- package/app/node_modules/@slack/types/dist/events/email.js +3 -0
- package/app/node_modules/@slack/types/dist/events/emoji.js +3 -0
- package/app/node_modules/@slack/types/dist/events/file.js +4 -0
- package/app/node_modules/@slack/types/dist/events/function.js +3 -0
- package/app/node_modules/@slack/types/dist/events/grid-migration.js +3 -0
- package/app/node_modules/@slack/types/dist/events/group.js +3 -0
- package/app/node_modules/@slack/types/dist/events/im.js +3 -0
- package/app/node_modules/@slack/types/dist/events/index.js +43 -0
- package/app/node_modules/@slack/types/dist/events/invite.js +3 -0
- package/app/node_modules/@slack/types/dist/events/link-shared.js +3 -0
- package/app/node_modules/@slack/types/dist/events/member.js +3 -0
- package/app/node_modules/@slack/types/dist/events/message-metadata.js +3 -0
- package/app/node_modules/@slack/types/dist/events/message.js +3 -0
- package/app/node_modules/@slack/types/dist/events/pin.js +3 -0
- package/app/node_modules/@slack/types/dist/events/reaction.js +3 -0
- package/app/node_modules/@slack/types/dist/events/shared-channel.js +3 -0
- package/app/node_modules/@slack/types/dist/events/star.js +3 -0
- package/app/node_modules/@slack/types/dist/events/steps-from-apps.js +3 -0
- package/app/node_modules/@slack/types/dist/events/subteam.js +3 -0
- package/app/node_modules/@slack/types/dist/events/team.js +3 -0
- package/app/node_modules/@slack/types/dist/events/token.js +3 -0
- package/app/node_modules/@slack/types/dist/events/user.js +3 -0
- package/app/node_modules/@slack/types/dist/index.js +28 -0
- package/app/node_modules/@slack/types/dist/message-attachments.js +3 -0
- package/app/node_modules/@slack/types/dist/message-metadata.js +27 -0
- package/app/node_modules/@slack/types/dist/views.js +3 -0
- package/app/node_modules/@slack/types/package.json +47 -0
- package/app/node_modules/@slack/web-api/dist/WebClient.js +818 -0
- package/app/node_modules/@slack/web-api/dist/chat-stream.js +178 -0
- package/app/node_modules/@slack/web-api/dist/errors.js +80 -0
- package/app/node_modules/@slack/web-api/dist/file-upload.js +360 -0
- package/app/node_modules/@slack/web-api/dist/helpers.js +14 -0
- package/app/node_modules/@slack/web-api/dist/index.js +39 -0
- package/app/node_modules/@slack/web-api/dist/instrument.js +87 -0
- package/app/node_modules/@slack/web-api/dist/logger.js +29 -0
- package/app/node_modules/@slack/web-api/dist/methods.js +1647 -0
- package/app/node_modules/@slack/web-api/dist/retry-policies.js +34 -0
- package/app/node_modules/@slack/web-api/dist/types/helpers.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/admin/analytics.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/admin/apps.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/admin/auth.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/admin/barriers.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/admin/conversations.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/admin/emoji.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/admin/functions.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/admin/inviteRequests.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/admin/roles.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/admin/teams.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/admin/usergroups.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/admin/users.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/admin/workflows.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/api.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/apps.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/assistant.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/auth.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/bookmarks.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/bots.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/calls.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/canvas.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/chat.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/common.js +4 -0
- package/app/node_modules/@slack/web-api/dist/types/request/conversations.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/dialog.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/dnd.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/emoji.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/entity.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/files.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/functions.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/index.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/manifest.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/migration.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/oauth.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/openid.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/pins.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/reactions.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/reminders.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/rtm.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/search.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/slackLists.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/stars.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/team.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/tooling.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/usergroups.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/users.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/views.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/request/workflows.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminAnalyticsGetFileResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsActivitiesListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsApproveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsApprovedListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsClearResolutionResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsConfigLookupResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsConfigSetResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsRequestsCancelResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsRequestsListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsRestrictResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsRestrictedListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminAppsUninstallResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminAuthPolicyAssignEntitiesResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminAuthPolicyGetEntitiesResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminAuthPolicyRemoveEntitiesResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminBarriersCreateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminBarriersDeleteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminBarriersListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminBarriersUpdateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsArchiveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsBulkArchiveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsBulkDeleteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsBulkMoveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsConvertToPrivateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsConvertToPublicResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsCreateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsDeleteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsDisconnectSharedResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsGetConversationPrefsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsGetCustomRetentionResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsGetTeamsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsInviteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsLookupResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsRemoveCustomRetentionResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsRenameResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsRestrictAccessAddGroupResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsRestrictAccessListGroupsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsSearchResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsSetConversationPrefsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsSetCustomRetentionResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsSetTeamsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsUnarchiveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsWhitelistAddResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminConversationsWhitelistRemoveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminEmojiAddAliasResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminEmojiAddResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminEmojiListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminEmojiRemoveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminEmojiRenameResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminFunctionsListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminFunctionsPermissionsLookupResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminFunctionsPermissionsSetResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminInviteRequestsApproveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminInviteRequestsApprovedListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminInviteRequestsDeniedListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminInviteRequestsDenyResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminInviteRequestsListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminRolesAddAssignmentsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminRolesListAssignmentsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminRolesRemoveAssignmentsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsAdminsListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsCreateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsOwnersListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsSettingsInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsSettingsSetDescriptionResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsSettingsSetIconResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminTeamsSettingsSetNameResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsergroupsAddChannelsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsergroupsAddTeamsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsergroupsListChannelsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsergroupsRemoveChannelsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersAssignResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersInviteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersRemoveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSessionClearSettingsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSessionGetSettingsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSessionInvalidateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSessionListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSessionResetBulkResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSessionResetResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSessionSetSettingsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSetAdminResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSetExpirationResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSetOwnerResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersSetRegularResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminUsersUnsupportedVersionsExportResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminWorkflowsCollaboratorsAddResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminWorkflowsCollaboratorsRemoveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminWorkflowsPermissionsLookupResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminWorkflowsSearchResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AdminWorkflowsUnpublishResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ApiTestResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AppsConnectionsOpenResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AppsEventAuthorizationsListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AppsManifestCreateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AppsManifestDeleteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AppsManifestExportResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AppsManifestUpdateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AppsManifestValidateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AppsPermissionsInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AppsPermissionsRequestResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AppsPermissionsResourcesListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AppsPermissionsScopesListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AppsPermissionsUsersListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AppsPermissionsUsersRequestResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AppsUninstallResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AppsUserConnectionUpdateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AssistantThreadsSetStatusResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AssistantThreadsSetSuggestedPromptsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AssistantThreadsSetTitleResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AuthRevokeResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AuthTeamsListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/AuthTestResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/BookmarksAddResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/BookmarksEditResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/BookmarksListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/BookmarksRemoveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/BotsInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/CallsAddResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/CallsEndResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/CallsInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/CallsParticipantsAddResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/CallsParticipantsRemoveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/CallsUpdateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/CanvasesAccessDeleteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/CanvasesAccessSetResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/CanvasesCreateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/CanvasesDeleteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/CanvasesEditResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/CanvasesSectionsLookupResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChannelsArchiveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChannelsCreateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChannelsHistoryResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChannelsInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChannelsInviteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChannelsJoinResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChannelsKickResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChannelsLeaveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChannelsListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChannelsMarkResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChannelsRenameResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChannelsRepliesResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChannelsSetPurposeResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChannelsSetTopicResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChannelsUnarchiveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChatDeleteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChatDeleteScheduledMessageResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChatGetPermalinkResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChatMeMessageResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChatPostEphemeralResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.js +67 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChatScheduleMessageResponse.js +48 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChatScheduledMessagesListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChatUnfurlResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ChatUpdateResponse.js +48 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsAcceptSharedInviteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsApproveSharedInviteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsArchiveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsCanvasesCreateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsCloseResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsCreateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsDeclineSharedInviteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsExternalInvitePermissionsSetResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.js +67 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsInviteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsInviteSharedResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsJoinResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsKickResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsLeaveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsListConnectInvitesResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsMarkResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsMembersResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsOpenResponse.js +48 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsRenameResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.js +67 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteApproveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteDenyResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsSetPurposeResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsSetTopicResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ConversationsUnarchiveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/DialogOpenResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/DndEndDndResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/DndEndSnoozeResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/DndInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/DndSetSnoozeResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/DndTeamInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/EmojiListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesCommentsAddResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesCommentsDeleteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesCommentsEditResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesCompleteUploadExternalResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesDeleteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesGetUploadURLExternalResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.js +37 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesListResponse.js +37 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.js +37 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.js +37 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.js +37 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesRemoteRemoveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.js +37 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.js +37 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.js +37 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.js +37 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.js +37 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FunctionsCompleteErrorResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/FunctionsCompleteSuccessResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsArchiveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsCloseResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsCreateChildResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsCreateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsHistoryResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsInviteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsKickResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsLeaveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsMarkResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsOpenResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsRenameResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsRepliesResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsSetPurposeResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsSetTopicResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/GroupsUnarchiveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ImCloseResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ImHistoryResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ImListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ImMarkResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ImOpenResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ImRepliesResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/MigrationExchangeResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/MpimCloseResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/MpimHistoryResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/MpimListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/MpimMarkResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/MpimOpenResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/MpimRepliesResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/OauthAccessResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/OauthTokenResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/OauthV2AccessResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/OauthV2ExchangeResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/OpenIDConnectTokenResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/OpenIDConnectUserInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/PinsAddResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js +37 -0
- package/app/node_modules/@slack/web-api/dist/types/response/PinsRemoveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ReactionsAddResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ReactionsGetResponse.js +48 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.js +67 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ReactionsRemoveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/RemindersAddResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/RemindersCompleteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/RemindersDeleteResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/RemindersInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/RemindersListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/RtmConnectResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/RtmStartResponse.js +77 -0
- package/app/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js +82 -0
- package/app/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js +63 -0
- package/app/node_modules/@slack/web-api/dist/types/response/SearchMessagesResponse.js +67 -0
- package/app/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/StarsAddResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/StarsListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/StarsRemoveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/TeamAccessLogsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/TeamBillableInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/TeamBillingInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/TeamExternalTeamsDisconnectResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/TeamExternalTeamsListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/TeamInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/TeamIntegrationLogsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/TeamPreferencesListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/TeamProfileGetResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ToolingTokensRotateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsergroupsCreateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsergroupsDisableResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsergroupsEnableResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsergroupsListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsergroupsUpdateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsergroupsUsersListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsergroupsUsersUpdateResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsersConversationsResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsersDeletePhotoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsersDiscoverableContactsLookupResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsersGetPresenceResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsersIdentityResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsersInfoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsersListResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsersLookupByEmailResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsersProfileGetResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsersProfileSetResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsersSetActiveResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsersSetPhotoResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/UsersSetPresenceResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ViewsOpenResponse.js +31 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ViewsPublishResponse.js +31 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ViewsPushResponse.js +31 -0
- package/app/node_modules/@slack/web-api/dist/types/response/ViewsUpdateResponse.js +31 -0
- package/app/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js +3 -0
- package/app/node_modules/@slack/web-api/dist/types/response/WorkflowsStepCompletedResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/WorkflowsStepFailedResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/WorkflowsUpdateStepResponse.js +11 -0
- package/app/node_modules/@slack/web-api/dist/types/response/index.js +3 -0
- package/app/node_modules/@slack/web-api/package.json +75 -0
- package/app/node_modules/agent-base/dist/src/index.js +203 -0
- package/app/node_modules/agent-base/dist/src/promisify.js +18 -0
- package/app/node_modules/agent-base/package.json +64 -0
- package/app/node_modules/asynckit/index.js +6 -0
- package/app/node_modules/asynckit/lib/abort.js +29 -0
- package/app/node_modules/asynckit/lib/async.js +34 -0
- package/app/node_modules/asynckit/lib/defer.js +26 -0
- package/app/node_modules/asynckit/lib/iterate.js +75 -0
- package/app/node_modules/asynckit/lib/state.js +37 -0
- package/app/node_modules/asynckit/lib/terminator.js +29 -0
- package/app/node_modules/asynckit/package.json +63 -0
- package/app/node_modules/asynckit/parallel.js +43 -0
- package/app/node_modules/asynckit/serial.js +17 -0
- package/app/node_modules/asynckit/serialOrdered.js +75 -0
- package/app/node_modules/axios/dist/node/axios.cjs +6808 -0
- package/app/node_modules/axios/package.json +203 -0
- package/app/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/app/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/app/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/app/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/app/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/app/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/app/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/app/node_modules/combined-stream/package.json +25 -0
- package/app/node_modules/debug/package.json +64 -0
- package/app/node_modules/debug/src/browser.js +272 -0
- package/app/node_modules/debug/src/common.js +292 -0
- package/app/node_modules/debug/src/index.js +10 -0
- package/app/node_modules/debug/src/node.js +263 -0
- package/app/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/app/node_modules/delayed-stream/package.json +27 -0
- package/app/node_modules/dunder-proto/get.js +30 -0
- package/app/node_modules/dunder-proto/package.json +76 -0
- package/app/node_modules/es-define-property/index.js +14 -0
- package/app/node_modules/es-define-property/package.json +81 -0
- package/app/node_modules/es-errors/eval.js +4 -0
- package/app/node_modules/es-errors/index.js +4 -0
- package/app/node_modules/es-errors/package.json +80 -0
- package/app/node_modules/es-errors/range.js +4 -0
- package/app/node_modules/es-errors/ref.js +4 -0
- package/app/node_modules/es-errors/syntax.js +4 -0
- package/app/node_modules/es-errors/type.js +4 -0
- package/app/node_modules/es-errors/uri.js +4 -0
- package/app/node_modules/es-object-atoms/index.js +4 -0
- package/app/node_modules/es-object-atoms/package.json +79 -0
- package/app/node_modules/es-set-tostringtag/index.js +35 -0
- package/app/node_modules/es-set-tostringtag/package.json +78 -0
- package/app/node_modules/eventemitter3/index.js +336 -0
- package/app/node_modules/eventemitter3/package.json +62 -0
- package/app/node_modules/follow-redirects/debug.js +15 -0
- package/app/node_modules/follow-redirects/index.js +709 -0
- package/app/node_modules/follow-redirects/package.json +58 -0
- package/app/node_modules/form-data/lib/browser.js +4 -0
- package/app/node_modules/form-data/lib/form_data.js +506 -0
- package/app/node_modules/form-data/lib/populate.js +10 -0
- package/app/node_modules/form-data/package.json +82 -0
- package/app/node_modules/function-bind/implementation.js +84 -0
- package/app/node_modules/function-bind/index.js +5 -0
- package/app/node_modules/function-bind/package.json +87 -0
- package/app/node_modules/get-intrinsic/index.js +378 -0
- package/app/node_modules/get-intrinsic/package.json +97 -0
- package/app/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/app/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/app/node_modules/get-proto/index.js +27 -0
- package/app/node_modules/get-proto/package.json +81 -0
- package/app/node_modules/gopd/gOPD.js +4 -0
- package/app/node_modules/gopd/index.js +15 -0
- package/app/node_modules/gopd/package.json +77 -0
- package/app/node_modules/has-flag/index.js +8 -0
- package/app/node_modules/has-flag/package.json +46 -0
- package/app/node_modules/has-symbols/index.js +14 -0
- package/app/node_modules/has-symbols/package.json +111 -0
- package/app/node_modules/has-symbols/shams.js +45 -0
- package/app/node_modules/has-tostringtag/package.json +108 -0
- package/app/node_modules/has-tostringtag/shams.js +8 -0
- package/app/node_modules/hasown/index.js +8 -0
- package/app/node_modules/hasown/package.json +91 -0
- package/app/node_modules/https-proxy-agent/dist/agent.js +177 -0
- package/app/node_modules/https-proxy-agent/dist/index.js +14 -0
- package/app/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
- package/app/node_modules/https-proxy-agent/package.json +56 -0
- package/app/node_modules/is-electron/index.js +21 -0
- package/app/node_modules/is-electron/package.json +34 -0
- package/app/node_modules/is-stream/index.js +28 -0
- package/app/node_modules/is-stream/package.json +42 -0
- package/app/node_modules/math-intrinsics/abs.js +4 -0
- package/app/node_modules/math-intrinsics/floor.js +4 -0
- package/app/node_modules/math-intrinsics/isNaN.js +6 -0
- package/app/node_modules/math-intrinsics/max.js +4 -0
- package/app/node_modules/math-intrinsics/min.js +4 -0
- package/app/node_modules/math-intrinsics/package.json +86 -0
- package/app/node_modules/math-intrinsics/pow.js +4 -0
- package/app/node_modules/math-intrinsics/round.js +4 -0
- package/app/node_modules/math-intrinsics/sign.js +11 -0
- package/app/node_modules/mime-db/db.json +8519 -0
- package/app/node_modules/mime-db/index.js +12 -0
- package/app/node_modules/mime-db/package.json +60 -0
- package/app/node_modules/mime-types/index.js +188 -0
- package/app/node_modules/mime-types/package.json +44 -0
- package/app/node_modules/ms/index.js +162 -0
- package/app/node_modules/ms/package.json +38 -0
- package/app/node_modules/p-finally/index.js +15 -0
- package/app/node_modules/p-finally/package.json +42 -0
- package/app/node_modules/p-queue/dist/index.js +279 -0
- package/app/node_modules/p-queue/dist/lower-bound.js +21 -0
- package/app/node_modules/p-queue/dist/priority-queue.js +32 -0
- package/app/node_modules/p-queue/node_modules/eventemitter3/index.js +336 -0
- package/app/node_modules/p-queue/node_modules/eventemitter3/package.json +56 -0
- package/app/node_modules/p-queue/package.json +92 -0
- package/app/node_modules/p-retry/index.js +85 -0
- package/app/node_modules/p-retry/package.json +51 -0
- package/app/node_modules/p-timeout/index.js +57 -0
- package/app/node_modules/p-timeout/package.json +45 -0
- package/app/node_modules/retry/index.js +1 -0
- package/app/node_modules/retry/lib/retry.js +100 -0
- package/app/node_modules/retry/lib/retry_operation.js +162 -0
- package/app/node_modules/retry/package.json +36 -0
- package/app/node_modules/supports-color/index.js +135 -0
- package/app/node_modules/supports-color/package.json +53 -0
- package/app/node_modules/ws/index.js +22 -0
- package/app/node_modules/ws/lib/buffer-util.js +131 -0
- package/app/node_modules/ws/lib/constants.js +19 -0
- package/app/node_modules/ws/lib/event-target.js +292 -0
- package/app/node_modules/ws/lib/extension.js +203 -0
- package/app/node_modules/ws/lib/limiter.js +55 -0
- package/app/node_modules/ws/lib/permessage-deflate.js +530 -0
- package/app/node_modules/ws/lib/receiver.js +743 -0
- package/app/node_modules/ws/lib/sender.js +607 -0
- package/app/node_modules/ws/lib/stream.js +161 -0
- package/app/node_modules/ws/lib/subprotocol.js +62 -0
- package/app/node_modules/ws/lib/validation.js +152 -0
- package/app/node_modules/ws/lib/websocket-server.js +562 -0
- package/app/node_modules/ws/lib/websocket.js +1421 -0
- package/app/node_modules/ws/package.json +74 -0
- package/app/package.json +1 -1
- package/app/server.js +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +7 -4
- package/dist/product.d.ts +8 -1
- package/dist/product.js +79 -23
- package/dist/setup.js +9 -9
- package/package.json +2 -3
- package/schemas/botmancers.mcp.v2.tools.json +770 -5
- package/skills/botmancers-collaboration/SKILL.md +5 -1
- package/skills/botmancers-collaboration/references/workflows.md +21 -0
- package/app/.next/server/app/api/agent-deck/decks/route/app-paths-manifest.json +0 -3
- package/app/.next/server/app/api/agent-deck/decks/route.js +0 -9
- package/app/.next/server/app/api/agent-deck/decks/route.js.nft.json +0 -1
- package/app/.next/server/app/api/agent-deck/decks/route_client-reference-manifest.js +0 -3
- package/app/.next/server/app/api/agent-deck/settings/route/app-paths-manifest.json +0 -3
- package/app/.next/server/app/api/agent-deck/settings/route.js +0 -9
- package/app/.next/server/app/api/agent-deck/settings/route.js.nft.json +0 -1
- package/app/.next/server/app/api/agent-deck/settings/route_client-reference-manifest.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__06qkt0f._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__08qhrch._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__097ptn_._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__09m9-pe._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__0b7w1z3._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__0f5yqjs._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__0g4um3-._.js +0 -44
- package/app/.next/server/chunks/[root-of-the-server]__0hro5ey._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__0hwpgxq._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__0uq7sci._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__13cd2fb._.js +0 -44
- package/app/.next/server/chunks/[root-of-the-server]__1879cge._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__1a2dh11._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__1bhzfu_._.js +0 -7
- package/app/.next/server/chunks/[root-of-the-server]__1co3sok._.js +0 -44
- package/app/.next/server/chunks/[root-of-the-server]__1eh30sp._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__1fmsid0._.js +0 -44
- package/app/.next/server/chunks/[root-of-the-server]__1kvvs4u._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__1qbgs3m._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__1s6h1sj._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__1slu7d7._.js +0 -7
- package/app/.next/server/chunks/[root-of-the-server]__1tuqc5v._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__1v609eq._.js +0 -44
- package/app/.next/server/chunks/[root-of-the-server]__1zdv-vb._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__1zjs2tr._.js +0 -3
- package/app/.next/server/chunks/_023se5j._.js +0 -44
- package/app/.next/server/chunks/_02pb_qv._.js +0 -44
- package/app/.next/server/chunks/_05ro-21._.js +0 -44
- package/app/.next/server/chunks/_07on0dc._.js +0 -44
- package/app/.next/server/chunks/_08208nz._.js +0 -44
- package/app/.next/server/chunks/_0fe5qz5._.js +0 -44
- package/app/.next/server/chunks/_0qoji5a._.js +0 -44
- package/app/.next/server/chunks/_0uv2pi5._.js +0 -44
- package/app/.next/server/chunks/_0wdl90-._.js +0 -44
- package/app/.next/server/chunks/_11ijk9k._.js +0 -44
- package/app/.next/server/chunks/_198sn69._.js +0 -44
- package/app/.next/server/chunks/_1ba_5hd._.js +0 -44
- package/app/.next/server/chunks/_1m89jq5._.js +0 -44
- package/app/.next/server/chunks/_1n39wr_._.js +0 -44
- package/app/.next/server/chunks/_1ryxqo1._.js +0 -44
- package/app/.next/server/chunks/_1vemgly._.js +0 -44
- package/app/.next/server/chunks/_next-internal_server_app_api_agent-deck_decks_route_actions_0yguyfv.js +0 -3
- package/app/.next/server/chunks/_next-internal_server_app_api_agent-deck_settings_route_actions_0z_nbkb.js +0 -3
- package/app/.next/server/chunks/lib_0lqoyb4._.js +0 -217
- package/app/.next/server/chunks/lib_0riiofz._.js +0 -44
- package/app/.next/server/chunks/lib_16j2293._.js +0 -217
- package/app/.next/server/chunks/lib_1nb_61e._.js +0 -217
- package/app/.next/server/chunks/lib_session-pins_ts_0lmxnwj._.js +0 -20
- package/app/.next/server/chunks/ssr/app_components_AgentDeckRuntime_tsx_024janf._.js +0 -3
- package/app/.next/server/chunks/ssr/app_components_ExchangeCard_tsx_1shfcgn._.js +0 -3
- package/app/.next/server/chunks/ssr/app_settings_page_tsx_1t-rdz-._.js +0 -3
- package/app/.next/server/chunks/ssr/node_modules_@swc_helpers_cjs__interop_require_default_cjs_1ztp13a._.js +0 -3
- package/app/.next/server/chunks/ssr/node_modules_next_dist_client_components_server-async-storage_0t1dato.js +0 -3
- package/app/.next/static/chunks/0bhd8eso48g27.js +0 -1
- package/app/.next/static/chunks/1ku9himlsx-hn.js +0 -1
- package/app/.next/static/chunks/21aqekm5z0j47.js +0 -1
- package/app/.next/static/chunks/2a8bomryx66oj.css +0 -3
- package/app/.next/static/chunks/3230ywnpii0s6.js +0 -3
- package/app/.next/static/chunks/35l2c95bd-jud.js +0 -1
- package/app/.next/static/chunks/3cijpn6vx3yzv.js +0 -1
- package/app/.next/static/chunks/3ue9194j59kem.js +0 -1
- package/app/.next/static/chunks/44ese2s4gzze_.js +0 -1
- /package/app/.next/server/app/api/{agent-deck/decks → bots/[id]/sessions/[ref]/shares}/route/build-manifest.json +0 -0
- /package/app/.next/server/app/api/{agent-deck/decks → bots/[id]/sessions/[ref]/shares}/route/server-reference-manifest.json +0 -0
- /package/app/.next/server/app/api/{agent-deck/settings → bots/[id]/share-policy}/route/build-manifest.json +0 -0
- /package/app/.next/server/app/api/{agent-deck/settings → bots/[id]/share-policy}/route/server-reference-manifest.json +0 -0
- /package/app/.next/static/{gh3shm8hnVqXLr75rmvsL → A9sQnaf9i6YzjHNoPgRfU}/_buildManifest.js +0 -0
- /package/app/.next/static/{gh3shm8hnVqXLr75rmvsL → A9sQnaf9i6YzjHNoPgRfU}/_clientMiddlewareManifest.js +0 -0
- /package/app/.next/static/{gh3shm8hnVqXLr75rmvsL → A9sQnaf9i6YzjHNoPgRfU}/_ssgManifest.js +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
module.exports=[52694,e=>{"use strict";var t=e.i(22734),n=e.i(62294),r=e.i(57147),i=e.i(43084),o=e.i(25211),a=e.i(3620),s=e.i(85072),d=e.i(1912),l=e.i(10860),u=e.i(38636),c=e.i(51749),f=e.i(77099),p=e.i(2803),m=e.i(51714),g=e.i(15467),
|
|
1
|
+
module.exports=[52694,e=>{"use strict";var t=e.i(22734),n=e.i(62294),r=e.i(57147),i=e.i(43084),o=e.i(25211),a=e.i(3620),s=e.i(85072),d=e.i(1912),l=e.i(10860),u=e.i(38636),c=e.i(51749),f=e.i(77099),p=e.i(2803),m=e.i(51714),g=e.i(15467),h=e.i(88355),_=e.i(64909),v=e.i(6200),y=e.i(45383),b=e.i(64974),k=e.i(62349),w=e.i(18966),E=e.i(93029);let S="[Delegation limit] Depth limit reached (max 3 handoffs). No further handoff.",T="[Delegation limit] Budget limit reached (max 12 delegated turns per user message). No further delegated turn.",A="hermes-gateway",R="session-provider",I=new Map;function C(e,t){let n=I.get(e);n||(n=new Set,I.set(e,n)),n.add(t)}function $(e,t){let n=I.get(e);n&&(n.delete(t),0===n.size&&I.delete(e))}function N(e,t,n){if(!t||t.stopped)return;let i=t.popCaller(n);i&&r.uiTurns.enqueue(e.conversation_id,i,{reason:"report_back",parentRequestId:e.id})}function D(e,t){r.uiTurns.enqueue(e.conversation_id,t,{reason:"handoff",parentRequestId:e.id,delegated:!0})}function q(e){let t=[...n.messages.getByConversation(e)].reverse().find(e=>"user"===e.sender_type);if(!t)return!1;let r=(0,i.existingChain)(e,t.id);return!!r&&r.stopped}function x(e){let t=[...n.messages.getByConversation(e)].reverse().find(e=>"user"===e.sender_type);if(!t)return!1;let r=(0,i.existingChain)(e,t.id);return!!r&&r.turns>=12}function P(e,t,r){if(!r||!function(e,t){if(!t)return!1;let n=e.findIndex(e=>e.id===t.id);return n>=0&&!e.slice(n+1).some(e=>"bot"===e.sender_type)}(t,r))return!1;let i=n.conversations.getById(e);return i?.type!=="bot"||null===L(r.content)&&null===U(r.content)}let M=new Set,O=new Set;function W(e,t){q(e)||x(e)||r.uiTurns.countPending(e)>0||(r.uiTurns.enqueue(e,t,{reason:"tick"}),j())}function B(e){e.fired||M.has(e.id)||q(e.conversation_id)||x(e.conversation_id)||r.uiTurns.countPending(e.conversation_id)>0||(M.add(e.id),setTimeout(()=>{M.delete(e.id),W(e.conversation_id,e.bot_id)},Math.max(0,e.due_at-Date.now())))}function F(e){O.has(e.id)||q(e.conversation_id)||x(e.conversation_id)||r.uiTurns.countPending(e.conversation_id)>0||(O.add(e.id),setTimeout(()=>{O.delete(e.id),W(e.conversation_id,e.bot_id)},Math.max(0,e.next_due_at-Date.now())))}function H(){for(let e of n.oneShots.unfired())B(e);for(let e of n.routines.all())F(e)}function L(e){let t=e.trim().match(/^reply with the word (\S+?)\.?$/i);return t&&t[1].replace(/^[`"'"]+|[`"'"]+$/g,"")||null}function U(e){let t=e.trim().match(/^set a one-shot(?: in (\d+) seconds?)?\.?$/i);return t?t[1]?1e3*Number(t[1]):6e4:null}let K="1"!==process.env.BOTMANCERS_NO_AUTOPROCESS;function j(){K&&setImmediate(()=>er())}let z=!1,Y=new Map;function J(e,t,n,r=null,i=function(e){return"hermes-gateway"===(0,k.agentTransport)((0,k.resolveAgent)(e).agent)?A:R}(t)){let o=(0,u.buildSnapshotInput)(t,n,r);Y.set(e.id,{json:JSON.stringify(o),hash:(0,u.hashSnapshot)(o),transport:i})}function Q(e){let t=Y.get(e.id);if(Y.delete(e.id),t)try{n.launchSnapshots.record(e.id,e.bot_id,t.hash,t.json,t.transport)}catch(e){console.error("Error recording launch snapshot:",e)}}function V(e){Y.delete(e.id)}function Z(e,t,r){n.messages.create(e.conversation_id,"bot",function(e){switch((0,k.resolveAgent)(e).launch_blocker){case"connection":return`[Agent unavailable] ${e.name} cannot launch: no runtime connection. Choose one in Config.`;case"session_scope":return`[Session scope needed] ${e.name} cannot launch: select its session scope in Config.`;case"agent":return`[Launch blocked] ${e.name} has an unsupported Agent type.`;default:return`[Launch blocked] ${e.name} cannot launch. Check its registration in Config.`}}(t),t.id),N(e,r,t.id),j()}async function G(e){let{item:t,bot:i,conversationMessages:o,latestUser:a,chain:s,openGroupTurn:d,delegated:u}=e;if(J(t,i,{path:null,present:null,content:null},null,R),d){V(t),j();return}if(s&&s.turns>=12){n.messages.create(t.conversation_id,"bot",T,i.id),r.uiTurns.cancelPending(t.conversation_id),j();return}let c=(0,k.resolveAgent)(i);if(!c.launchable){if(!a&&!u){V(t),j();return}Z(t,i,s);return}let f=c.agent,p=(u?function(e,t){let n=-1;for(let t=0;t<e.length;t++)"user"===e[t].sender_type&&(n=t);if(n<0)return null;let r=`[Handing off to ${t}]`;for(let t=e.length-1;t>n;t--){let n=e[t];if("bot"===n.sender_type&&n.content.includes(r))return n.content.slice(n.content.indexOf(r)+r.length).trim()||null}return null}(o,i.name):null)??a?.content??null;if(!p||!p.trim()||s?.stopped){V(t),j();return}s?.addTurns(1);let m=(0,l.readSkillState)(i.name),g=n.memories.latestFacts(i.id);J(t,{...i,agent:f},m,g,R),("message"===t.kind?await ee(t,i,f):await et({item:t,bot:i,client:f,task:p.trim(),chain:s,delegated:u}))&&N(t,s,i.id),j()}function X(e,t,r,i){n.messages.create(e.conversation_id,"bot",`[Agent failed] agent=${r} error=${i.slice(0,300)}`,t.id)}async function ee(e,t,i){let o=e.id;r.uiTurns.handOff(o),await (0,y.startAgentDispatch)(o);let a=n.engine.getWorkRequest(o);return a?.state==="failed"?(X(e,t,i,a.error_message??a.error_code??"The agent runtime did not complete the turn."),!0):a?.state==="completed"}async function et(e){let{item:t,bot:r,client:i,task:o,chain:a,delegated:s}=e,d=(0,b.selectExecutionPolicy)(s?{entryPoint:"wake",executionKind:"conversation",wakeSyntax:"legacy"}:{entryPoint:"ui",executionKind:"conversation"});if(!d.ok)return X(t,r,i,d.reason),!0;let l=function(e){let t=(0,w.directLaunchWorkspace)(e);if(!t)return null;try{return(0,E.ensureBotWorkdir)(t)}catch{return null}}(r);if(!l){let e=(0,w.readStoredScope)(r);return X(t,r,i,e?.kind==="sessions"?"This turn starts a new session but the agent is limited to selected sessions.":"The agent has no default workspace for a new session. Set one in Config."),!0}let u=await (0,v.createSessionProviderAttemptAdapter)().run({target:{agentId:r.id,agent:i},prompt:{kind:"text",text:o},cwd:l,toolProfile:d.policy.tool_profile,sessionBinding:null,correlation:{conversationId:t.conversation_id}});return!a?.stopped&&("completed"!==u.status||null===u.output?X(t,r,i,u.failure?.message??`provider turn ${u.externalRunId??"unknown"} failed`):n.messages.create(t.conversation_id,"bot",u.output,r.id),!0)}async function en(){let e=r.uiTurns.next();if(!e)return!1;if(!r.uiTurns.start(e.id))return!0;try{await ea(e),r.uiTurns.finish(e.id,"completed"),Q(e)}catch(t){console.error("Error processing UI turn:",t),r.uiTurns.finish(e.id,"failed"),Q(e)}return!0}async function er(){if(!z){z=!0;try{for(;await en(););}finally{z=!1}}}async function ei(e){let{caller:t,callerTurnId:i,target:o,conversationId:a,taskMessage:s,chain:d,hermesConfig:u}=e,f=r.uiTurns.enqueue(a,o.id,{reason:"gateway_poke",parentRequestId:i,delegated:!0,start:!0});if(!f)return;let p=Date.now();(0,c.appendHermesWaitLog)({event:"wait_start",wait_id:f.id,bot:o.name,bot_id:o.id,conversation_id:a,caller:t.name,started_at:p});let m=`Standing rules, verbatim. They are a hard constraint on this reply. They beat the user's request for detail, length, or thoroughness, and they beat every earlier reply:
|
|
2
2
|
${o.description}
|
|
3
3
|
If those rules limit the reply to one short sentence, the whole reply is that one short sentence and nothing more.`,g=`You are ${o.name}, ${o.title}.
|
|
4
4
|
|
|
5
5
|
You were delegated by @${t.name}. Complete the task in your context and reply with your result in this thread.
|
|
6
6
|
Do not use WAKE on this turn. Do not hand off. Do not call tools. Answer only from the standing rules and the latest handoff message.
|
|
7
7
|
|
|
8
|
-
${m}`,
|
|
8
|
+
${m}`,h=`Standing rules for the reply you are about to write, verbatim:
|
|
9
9
|
${o.description}
|
|
10
|
-
The standing rules decide the whole reply. If they require one short sentence, write one short clause and stop. Do not answer with a long sentence, a list, or extra detail.`,
|
|
11
|
-
${s}`},{role:"system",content:
|
|
10
|
+
The standing rules decide the whole reply. If they require one short sentence, write one short clause and stop. Do not answer with a long sentence, a list, or extra detail.`,_=n.memories.latestFacts(o.id),v=(0,l.readSkillState)(o.name);J(f,o,v,_,A);let y=[{role:"system",content:g},{role:"user",content:`Peer handoff from @${t.name}:
|
|
11
|
+
${s}`},{role:"system",content:h}];_.length>0&&y.push({role:"system",content:["Remembered facts:",..._.map(e=>"- "+e)].join("\n")}),v.content&&y.push({role:"system",content:v.content});let b=new AbortController;C(a,b);try{let e=await (0,c.hermesChat)({config:u,profilePath:(0,c.hermesProfilePathForBot)(o),sessionId:(0,c.hermesSessionIdForBot)(o.id,u),messages:y,signal:b.signal}),i=Date.now();if(d?.stopped){r.uiTurns.finish(f.id,"completed"),Q(f),(0,c.appendHermesWaitLog)({event:"wait_finish",wait_id:f.id,bot:o.name,bot_id:o.id,conversation_id:a,started_at:p,finished_at:i,delivered:!1});return}let{callerMessageId:m}=function(e){let{callerConversationId:t,caller:r,target:i,taskMessage:o,reply:a}=e,s=(0,l.applySkillEndToken)(i.name,a),d=null,u=null,c=`[Handing off to ${i.name}]
|
|
12
12
|
${o}`,f=n.messages.getByConversation(t),p=[...f].reverse().find(e=>"bot"===e.sender_type&&e.sender_id===r.id&&e.content===c),m=p?p.created_at:0,g=n.conversations.getByBotId(i.id);if(g&&g.id!==t){let e=`[From ${r.name}]
|
|
13
|
-
${o}`,t=n.messages.getByConversation(g.id),a=[...t].reverse().find(t=>"bot"===t.sender_type&&t.sender_id===r.id&&t.content===e&&t.created_at>=m);a||(a=n.messages.create(g.id,"bot",e,r.id),t=n.messages.getByConversation(g.id)),t.some(e=>"bot"===e.sender_type&&e.sender_id===i.id&&e.content===s&&e.created_at>=a.created_at)||(u=n.messages.create(g.id,"bot",s,i.id).id)}return f.some(e=>"bot"===e.sender_type&&e.sender_id===i.id&&e.content===s&&e.created_at>=m)||(d=n.messages.create(t,"bot",s,i.id).id),{callerMessageId:d,targetMessageId:u}}({callerConversationId:a,caller:t,target:o,taskMessage:s,reply:e});r.uiTurns.finish(f.id,"completed"),
|
|
14
|
-
${e.message}`,i.id);
|
|
15
|
-
${t.task}`,
|
|
13
|
+
${o}`,t=n.messages.getByConversation(g.id),a=[...t].reverse().find(t=>"bot"===t.sender_type&&t.sender_id===r.id&&t.content===e&&t.created_at>=m);a||(a=n.messages.create(g.id,"bot",e,r.id),t=n.messages.getByConversation(g.id)),t.some(e=>"bot"===e.sender_type&&e.sender_id===i.id&&e.content===s&&e.created_at>=a.created_at)||(u=n.messages.create(g.id,"bot",s,i.id).id)}return f.some(e=>"bot"===e.sender_type&&e.sender_id===i.id&&e.content===s&&e.created_at>=m)||(d=n.messages.create(t,"bot",s,i.id).id),{callerMessageId:d,targetMessageId:u}}({callerConversationId:a,caller:t,target:o,taskMessage:s,reply:e});r.uiTurns.finish(f.id,"completed"),Q(f),(0,c.appendHermesWaitLog)({event:"wait_finish",wait_id:f.id,bot:o.name,bot_id:o.id,conversation_id:a,started_at:p,finished_at:i,message_id:m,reply:e})}catch(l){var k;let e,i,s=Date.now();r.uiTurns.finish(f.id,"failed"),Q(f),(0,c.appendHermesWaitLog)({event:"wait_failed",wait_id:f.id,bot:o.name,bot_id:o.id,conversation_id:a,started_at:p,finished_at:s,code:l instanceof c.HermesError?l.code:"unknown",error:String(l)}),l instanceof c.HermesError&&"aborted"===l.code||d?.stopped||n.messages.create(a,"bot",(k=o.name,i=(e=l instanceof c.HermesError?l.message:String(l)).length>160?e.slice(0,157)+"...":e,`[Specialist ${k} failed: ${i}]`),t.id)}finally{$(a,b)}}async function eo(e){let{item:t,bot:i,conversation:o,chain:a,responseContent:s,targets:d,hermesConfig:u}=e;if(a?.stopped)return void j();if(a&&a.handoffs>=3){n.messages.create(o.id,"bot",S,i.id),j();return}let c=a?3-a.handoffs:d.length,f=a?12-a.turns:d.length,p=Math.max(0,Math.min(c,f,d.length)),m=d.slice(0,p);if(0===m.length){c<=0||c<=f?n.messages.create(o.id,"bot",S,i.id):(n.messages.create(o.id,"bot",T,i.id),r.uiTurns.cancelPending(o.id)),j();return}let g=s.search(/WAKE\s+[A-Za-z0-9_-]+\s*:/i),h=(g>=0?s.slice(0,g):"").trim();for(let{directive:e,bot:t}of(h&&es(o.id,n.messages.create(o.id,"bot",(0,l.applySkillEndToken)(i.name,h),i.id)),m)){let r=n.messages.create(o.id,"bot",`[Handing off to ${t.name}]
|
|
14
|
+
${e.message}`,i.id);es(o.id,r),n.wakeTargets.accept({conversationId:o.id,requestedTarget:e.target,sourceBotId:i.id,sourceMessageId:r.id})}if(a&&(a.addHandoffs(m.length),a.addTurns(m.length)),await Promise.allSettled(m.map(({directive:e,bot:n})=>ei({caller:i,callerTurnId:t.id,target:n,conversationId:o.id,taskMessage:e.message,chain:a,hermesConfig:u}))),m.length<d.length)if(c<=f)n.messages.create(o.id,"bot",S,i.id);else{n.messages.create(o.id,"bot",T,i.id),r.uiTurns.cancelPending(o.id),j();return}a&&!a.stopped&&r.uiTurns.enqueue(o.id,i.id,{reason:"report_back",parentRequestId:t.id}),j()}async function ea(e){var u,v,y,b,w,E,R;let I,q,x=n.bots.getById(e.bot_id);if(!x)return void console.error("Bot not found:",e.bot_id);J(e,x,{path:null,present:null,content:null});let M=n.conversations.getById(e.conversation_id);if(!M)return void console.error("Conversation not found:",e.conversation_id);let O=n.messages.getByConversation(e.conversation_id),W=[...O].reverse().find(e=>"user"===e.sender_type),H=W?(0,i.chainFor)(e.conversation_id,W.id):null;if(H?.stopped)return void j();let K=null;if(W){let t=(0,h.pendingForBot)(e.conversation_id,x.id);if(t){if(W.id===t.task_message_id)return void j();let e=(0,h.resolveQuestion)(t.id,W.id,W.content);if(!e||!e.answer)return void j();K={question:e.question,answer:e.answer,taskContent:e.task_content}}else if((0,h.findAnsweredByAnswer)(e.conversation_id,x.id,W.id))return void j()}let z=eu(O,x.name),Y=H?.callerFor(x.id)??null,Q=Y?eh(Y):null;if(!K&&!z&&function(e,t,r,i){if(P(e,r,i))return!1;let o=Date.now(),a=n.oneShots.pending(e);if(a&&a.bot_id===t&&a.due_at<=o)return!0;let s=n.routines.forConversation(e);return!!s&&s.bot_id===t&&!!(s.next_due_at<=o)}(e.conversation_id,x.id,O,W??null)){if(H&&H.turns>=12){n.messages.create(e.conversation_id,"bot",T,x.id),r.uiTurns.cancelPending(e.conversation_id),j();return}if(function(e,t,r,i){if(P(e,r,i))return!1;let o=Date.now(),a=n.oneShots.pending(e);if(a&&a.bot_id===t&&a.due_at<=o&&n.oneShots.claim(a.id))return n.messages.create(e,"bot","[one-shot]",t),!0;let s=n.routines.forConversation(e);return!!s&&s.bot_id===t&&s.next_due_at<=o&&n.routines.postIfDue(s.id,o)}(e.conversation_id,x.id,O,W??null)){H?.addTurns(1),j();return}j();return}if(!K&&"chief-of-staff"===x.name.toLowerCase()&&W&&!z&&await (0,g.handleCosBirthRequest)(e.conversation_id,x.id,W,O))return void j();if(!K&&"bot"===M.type&&W){let t=(0,a.parseDraftRequest)(W.content);if(t){let r=O.findIndex(e=>e.id===W.id);r>=0&&O.slice(r+1).some(e=>"bot"===e.sender_type)||n.messages.create(e.conversation_id,"bot",(0,o.serializeDraft)((0,a.createDraft)(t)),x.id),j();return}}if(!K&&"bot"===M.type&&W){let r=(0,s.parseFileWriteRequest)(W.content);if(r){let i;try{i=(0,s.validateArtifact)(r)}catch{j();return}let o=O.findIndex(e=>e.id===W.id),a=o>=0?O.slice(o+1):[];if(a.some(e=>"bot"===e.sender_type&&e.sender_id===x.id&&e.content.startsWith((0,s.artifactCardText)(i.name))))return void j();let d=!1;try{d=t.default.existsSync((0,s.resolveArtifactPath)(i.name))}catch{j();return}if(d){if(!ed(e.conversation_id,a,x.id)){let t=el(e.conversation_id,i.name);try{(0,_.createApprovalRequest)({conversationId:e.conversation_id,botId:x.id,code:t,actionType:"write_file",actionArgs:{name:i.name,content:i.content}})}catch(e){if(e instanceof _.ApprovalActionRefused)return void j();throw e}let r=(0,l.applySkillEndToken)(x.name,(0,_.approvalCardText)(t)),o=n.messages.create(e.conversation_id,"bot",r,x.id);(0,_.setApprovalMessage)(e.conversation_id,t,o.id)}j();return}try{(0,s.writeArtifactFile)(i.name,i.content,{allowOverwrite:!1})}catch{j();return}return n.messages.create(e.conversation_id,"bot",(0,l.applySkillEndToken)(x.name,(0,s.artifactCardText)(i.name)),x.id),void j()}}if(!K&&"bot"===M.type&&W){let t=U(W.content);if(null!==t){let r;u=e.conversation_id,v=x.id,(r=n.oneShots.pending(u))?B(r):B(n.oneShots.create(u,v,Date.now()+t)),j();return}let r=L(W.content);if(r){!function(e,t,r){let i,o=n.routines.forConversation(e);if(o)return F(o);F(n.routines.create(e,t,r,Date.now()+(Number.isFinite(i=Number(process.env.BOTMANCERS_ROUTINE_FIRST_DUE_MS))&&i>=0?i:8e3),864e5))}(e.conversation_id,x.id,r),j();return}}if(!K&&"chief-of-staff"===x.name.toLowerCase()&&W){let t=(0,m.parseCommandAsk)(W.content);if(t){let r=n.messages.create(e.conversation_id,"bot",(0,f.serializeRun)({state:"running",page:(0,m.commandRunPage)(t,null)}),x.id);(0,p.beginCommandRun)(r.id,t),j();return}let r=(0,f.parseFileReadAsk)(W.content);if(r){let t=n.messages.create(e.conversation_id,"bot",(0,f.serializeRun)({state:"running"}),x.id);(0,p.beginFileReadRun)(t.id,r.seconds),j();return}let i=(0,f.parsePublicPageReadAsk)(W.content);if(i){let t=n.messages.create(e.conversation_id,"bot",(0,f.serializeRun)({state:"running"}),x.id);(0,p.beginPublicPageReadRun)(t.id,i.seconds,i.url),j();return}let o=(0,f.parseCodingLimbAsk)(W.content);if(o){let t=n.messages.create(e.conversation_id,"bot",(0,f.serializeRun)({state:"running"}),x.id);(0,p.beginCodingLimbRun)(t.id,o.seconds),j();return}}if(!K&&"bot"===M.type&&W&&(0,_.raiseApprovalFromUserInstruction)({conversationId:e.conversation_id,botId:x.id,botName:x.name,userMessage:W,thread:O}))return void j();if(!K&&W){let t=(0,h.parseAskRequest)(W.content);if(t){if((0,h.listAskedForConversation)(e.conversation_id).some(e=>e.task_message_id===W.id)||(0,h.findByTask)(e.conversation_id,x.id,W.id))return void j();let r=(0,h.createPendingQuestion)({conversationId:e.conversation_id,botId:x.id,question:t,taskMessageId:W.id,taskContent:W.content}),i=n.messages.create(e.conversation_id,"bot",(0,l.applySkillEndToken)(x.name,t),x.id);return(0,h.setQuestionMessage)(r.id,i.id),es(e.conversation_id,i),void j()}}let X=!1;K||"group"!==M.type||!W||z||ec(W,x)||(X=!O.some(t=>"bot"===t.sender_type&&!!t.sender_id&&t.sender_id!==x.id&&t.created_at>W.created_at&&t.created_at<=e.created_at));let ee=null;if(!K&&W&&W.content.includes("{"))for(let t of n.mcpServers.list()){let r=[];try{let e=JSON.parse(t.args);Array.isArray(e)&&(r=e.map(e=>String(e)))}catch{r=[]}let i=await (0,d.mcpTurn)(t.command,r,W.content);if(i?.invocation){n.messages.create(e.conversation_id,"bot",`[mcp] tools: ${i.tools.join(", ")}`,x.id),n.messages.create(e.conversation_id,"bot",`[tool call] ${i.invocation.name} ${JSON.stringify(i.invocation.args)}`,x.id),n.messages.create(e.conversation_id,"bot",`[tool result] ${i.invocation.text}`,x.id),ee={role:"user",content:`Tool result ${i.invocation.name} ${JSON.stringify(i.invocation.args)} = ${i.invocation.text}`};break}}if(!K&&"group"===M.type&&W&&M.group_id){let t=ep(W.content);if(t){let i=n.groups.getMembers(M.group_id).find(e=>em(e,t.toName));if(ec(W,x)&&em(x,t.fromName)){if(H?.stopped||!i||i.id===x.id)return void j();if(H&&H.handoffs>=3){O.some(e=>"bot"===e.sender_type&&e.sender_id===x.id&&e.created_at>W.created_at&&e.content===S)||n.messages.create(e.conversation_id,"bot",S,x.id),j();return}if(H&&H.turns>=12){O.some(e=>"bot"===e.sender_type&&e.sender_id===x.id&&e.created_at>W.created_at&&e.content===T)||n.messages.create(e.conversation_id,"bot",T,x.id),r.uiTurns.cancelPending(e.conversation_id),j();return}if(!O.some(e=>"bot"===e.sender_type&&e.sender_id===x.id&&e.created_at>W.created_at&&e.content.startsWith(`[Handing off to ${i.name}]`))){n.messages.create(e.conversation_id,"bot",`[Handing off to ${i.name}]
|
|
15
|
+
${t.task}`,x.id),D(e,i.id),H?.addHandoffs(1),j();return}if(!eu(O,x.name))return void j();{let e=Math.max(0,...O.filter(e=>"bot"===e.sender_type&&e.created_at>W.created_at&&e.content.includes(`[Handing off to ${x.name}]`)).map(e=>e.created_at));if(O.some(t=>"bot"===t.sender_type&&t.sender_id===x.id&&t.created_at>e))return void j()}}else{if(!i||x.id!==i.id||H?.stopped||!O.some(e=>"bot"===e.sender_type&&!!e.sender_id&&e.sender_id!==x.id&&e.created_at>W.created_at&&e.content.startsWith(`[Handing off to ${x.name}]`)))return void j();let o=ef(t.task);if(o&&(!o.named||em(x,o.named))){if(O.some(e=>"bot"===e.sender_type&&e.sender_id===x.id&&e.created_at>W.created_at&&e.content.trim()===o.word))return void j();if(H&&H.turns>=12){n.messages.create(e.conversation_id,"bot",T,x.id),r.uiTurns.cancelPending(e.conversation_id),j();return}return n.messages.create(e.conversation_id,"bot",o.word,x.id),H?.addTurns(1),void j()}let a=Math.max(0,...O.filter(e=>"bot"===e.sender_type&&e.created_at>W.created_at&&e.content.includes(`[Handing off to ${x.name}]`)).map(e=>e.created_at));if(O.some(e=>"bot"===e.sender_type&&e.sender_id===x.id&&e.created_at>a))return void j()}}}let et=(0,k.resolveAgent)(x);if("session-provider"===(0,k.agentTransport)(et.agent))return void await G({item:e,bot:x,conversationMessages:O,latestUser:W??null,chain:H,openGroupTurn:X,delegated:z});if(!et.launchable){if(X){V(e),j();return}Z(e,x,H);return}if(X&&W&&M.group_id){let t=ef(W.content);if(t){return(b=x,w=n.groups.getMembers(M.group_id),(E=t).named?em(b,E.named):!eg(b.description)||!w.some(e=>e.id!==b.id&&!eg(e.description)))?(n.messages.create(e.conversation_id,"bot",t.word,x.id),void j()):void j()}}let en=(X&&W?[W]:O).flatMap(e=>{let t=function(e,t){if("user"===e.sender_type){let t=function(e){if(!e.handoff_targets)return null;try{let t=JSON.parse(e.handoff_targets);if(!Array.isArray(t))return null;let r=t.map(e=>n.bots.getById(String(e))?.name).filter(e=>!!e);if(0===r.length)return null;return`Peer handoff: ${r.map(e=>"@"+e).join(" ")}`}catch{return null}}(e);if(!t)return{role:"user",content:e.content};let r=n.messages.priorSentenceForHandoff(e);return r?{role:"user",content:`${t}
|
|
16
16
|
${r}
|
|
17
17
|
${e.content}`}:{role:"user",content:`${t}
|
|
18
|
-
${e.content}`}}return"bot"===e.sender_type&&e.sender_id&&e.sender_id!==t?{role:"user",content:`Peer handoff from @${
|
|
19
|
-
${e.content}`}:null}(e,
|
|
20
|
-
Your reply will be returned to @${
|
|
18
|
+
${e.content}`}}return"bot"===e.sender_type&&e.sender_id&&e.sender_id!==t?{role:"user",content:`Peer handoff from @${eh(e.sender_id)}:
|
|
19
|
+
${e.content}`}:null}(e,x.id);return t?[t]:[]});0===en.length&&en.push({role:"user",content:"You were just created. Greet in one short sentence and include your name. Do not use WAKE."}),ee&&en.push(ee),K&&en.push({role:"user",content:(0,h.resumePrompt)({question:K.question,answer:K.answer,taskContent:K.taskContent})});let er=Q?`You were delegated by @${Q}. Complete the task in your context and reply with your result in this thread.
|
|
20
|
+
Your reply will be returned to @${Q}, who manages the sequence and reports back.
|
|
21
21
|
Only use WAKE to sub-delegate part of this task to another bot:
|
|
22
22
|
- WAKE <bot_name>: <message>
|
|
23
23
|
Otherwise reply normally with your result; do not WAKE your caller back.`:`You can communicate with other bots by using the WAKE command:
|
|
@@ -28,19 +28,19 @@ Examples:
|
|
|
28
28
|
- WAKE Alice: Can you research this topic?
|
|
29
29
|
- WAKE GROUP: I've completed my analysis.
|
|
30
30
|
|
|
31
|
-
Important: Only use WAKE when you need to hand off work to another bot or inform the group. When you hand off, you stay the caller: the delegate's reply will come back to you, and you decide the next step and the final report. For regular responses to the user, just reply normally.`,
|
|
32
|
-
${
|
|
33
|
-
${
|
|
34
|
-
If those rules limit the reply to one short sentence, the whole reply is that one short sentence and nothing more.`,
|
|
31
|
+
Important: Only use WAKE when you need to hand off work to another bot or inform the group. When you hand off, you stay the caller: the delegate's reply will come back to you, and you decide the next step and the final report. For regular responses to the user, just reply normally.`,ei=X?"Do not use WAKE on this turn. Do not hand off. Do not repeat an earlier handoff.":er,ea=X?`Standing description, verbatim. It does not decide this reply. The open-group instruction beats it, including any rule inside it that says to WAKE, hand off, or acknowledge a handoff:
|
|
32
|
+
${x.description}`:`Standing rules, verbatim. They are a hard constraint on this reply. They beat the user's request for detail, length, or thoroughness, and they beat every earlier reply:
|
|
33
|
+
${x.description}
|
|
34
|
+
If those rules limit the reply to one short sentence, the whole reply is that one short sentence and nothing more.`,e_=n.memories.latestFacts(x.id),ev=0===e_.length?"":["Remembered facts:",...e_.map(e=>"- "+e),"These saved facts belong to this bot only. When the user asks about one of them, put that remembered fact in the reply even if the question does not repeat it. If the user is not asking about a remembered fact, do not recite this list. Do not store or invent facts from your own replies, tool lines, or group handoff lines. Standing rules and open-group instructions still apply."].join("\n"),ey=`You are ${x.name}, ${x.title}.
|
|
35
35
|
|
|
36
|
-
${
|
|
36
|
+
${ei}
|
|
37
37
|
|
|
38
|
-
${
|
|
38
|
+
${ea}${ev?`
|
|
39
39
|
|
|
40
40
|
${ev}`:""}`,eb=X?'This plain group turn is decided by the open-group instruction, not by your standing description. Do not use WAKE. Do not repeat an earlier handoff. Do not post "Please review my research". Do not acknowledge a handoff.':`Standing rules for the reply you are about to write, verbatim:
|
|
41
|
-
${
|
|
42
|
-
The standing rules decide the whole reply. If they require one short sentence, write one short clause and stop. Do not answer with a long sentence, a list, or extra detail.`;if(
|
|
43
|
-
${r.trim()}`,
|
|
41
|
+
${x.description}
|
|
42
|
+
The standing rules decide the whole reply. If they require one short sentence, write one short clause and stop. Do not answer with a long sentence, a list, or extra detail.`;if(H&&H.turns>=12){n.messages.create(e.conversation_id,"bot",T,x.id),r.uiTurns.cancelPending(e.conversation_id),j();return}H?.addTurns(1);let ek=[{role:"system",content:ey},...en,{role:"system",content:eb}];ev&&ek.push({role:"system",content:ev});let ew=(0,l.readSkillState)(x.name);J(e,x,ew,e_,A);let eE=ew.content;if(eE&&ek.push({role:"system",content:eE}),X&&M.group_id&&W){let e=n.groups.getMembers(M.group_id).filter(e=>e.id!==x.id).map(e=>e.title?e.name+" ("+e.title+")":e.name),t=O.some(e=>"bot"===e.sender_type&&!!e.sender_id&&e.sender_id!==x.id&&e.created_at>W.created_at),r=x.title?x.name+" ("+x.title+")":x.name;ek.push({role:"system",content:["Open group turn. Nobody used @. This instruction beats your standing description, the WAKE rules, and every earlier message.\nDecide only from the latest user message:",W.content,'Do not use WAKE. Do not repeat an earlier handoff. Do not post "Please review my research". Do not acknowledge a handoff.',"You are "+r+".",e.length?"Other members: "+e.join(", ")+".":"You are the only member.",t?"A peer may already have posted. Ignore that if it is an earlier handoff. Still decide from the latest user message.":"No peer has replied yet.","If the latest message asks a named role or person to say an exact word, only the member whose name or role fits replies, and the entire reply is that word and nothing else. Everyone else replies exactly PASS.\nIf it asks for an exact word and names nobody: reply exactly PASS when your standing description tells you to WAKE or to hand off research. Otherwise the entire reply is that word and nothing else.\nIf you stay silent, the entire reply is exactly PASS. PASS is discarded and not shown.\nIf you reply, write the reply only. Do not include PASS."].join("\n")})}{let t=(0,c.loadHermesConfig)(),r=t?(0,c.hermesSessionIdForBot)(x.id,t):null;{if(!t){n.messages.create(e.conversation_id,"bot","[Hermes configuration missing: HERMES_API_SERVER_KEY is not set. Set it to enable persistent Hermes turns. No fallback transport attempted.]",x.id),j();return}let i=new AbortController;C(e.conversation_id,i);try{q=await (0,c.hermesChat)({config:t,profilePath:(0,c.hermesProfilePathForBot)(x),sessionId:r,messages:ek.map(e=>({role:e.role,content:e.content})),signal:i.signal})}catch(i){let t,r;i instanceof c.HermesError&&"aborted"===i.code||H?.stopped||n.messages.create(e.conversation_id,"bot",(y=x.name,r=(t=i instanceof c.HermesError?i.message:String(i)).length>200?t.slice(0,197)+"...":t,`[Hermes turn failed for ${y}: ${r}]`),x.id),j();return}finally{$(e.conversation_id,i)}}}if(H?.stopped||X&&(I=q.trim().replace(/^`+|`+$/g,"").trim(),/^pass[.!]?$/i.test(I)||(R=q,/WAKE\s+\w+\s*:/.test(R)||/please review my research/i.test(R)||/\[Handing off to\b/i.test(R))))return void j();!function(e){try{let t=(0,o.parseFileNames)(e);if(0===t.length)return;for(let n of t){let t=function(e,t){let n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=e.split("\n"),i=r.findIndex(e=>RegExp(`^\\s*\\[file\\]\\s*${n}\\s*$`,"i").test(e));if(i<0)return null;let o=r.slice(i+1).join("\n").match(/```(?:[a-zA-Z0-9_-]+)?\r?\n([\s\S]*?)```/);return o?o[1].replace(/\r\n/g,"\n"):null}(e,n);if(null!==t)try{(0,s.writeArtifactFile)(n,t,{allowOverwrite:!1})}catch{continue}}}catch(e){console.error("Error materializing file artifact:",e)}}(q);let eS=(0,s.parseTypedResult)(q);if(eS){let r=W?O.findIndex(e=>e.id===W.id):-1,i=r>=0?O.slice(r+1):[];if("draft"===eS.kind){i.some(e=>"bot"===e.sender_type&&e.sender_id===x.id&&(0,o.parseDraft)(e.content))||n.messages.create(e.conversation_id,"bot",(0,o.serializeDraft)((0,a.createDraft)(eS.draft)),x.id),j();return}let d=eS.file;if(i.some(e=>"bot"===e.sender_type&&e.sender_id===x.id&&e.content.startsWith((0,s.artifactCardText)(d.name))))return void j();let u=!1;try{u=t.default.existsSync((0,s.resolveArtifactPath)(d.name))}catch{j();return}if(u){if(!ed(e.conversation_id,i,x.id)){let t=el(e.conversation_id,d.name);try{(0,_.createApprovalRequest)({conversationId:e.conversation_id,botId:x.id,code:t,actionType:"write_file",actionArgs:{name:d.name,content:d.content}})}catch(e){if(e instanceof _.ApprovalActionRefused)return void j();throw e}let r=(0,l.applySkillEndToken)(x.name,(0,_.approvalCardText)(t)),i=n.messages.create(e.conversation_id,"bot",r,x.id);(0,_.setApprovalMessage)(e.conversation_id,t,i.id)}j();return}try{(0,s.writeArtifactFile)(d.name,d.content,{allowOverwrite:!1})}catch{j();return}return n.messages.create(e.conversation_id,"bot",(0,l.applySkillEndToken)(x.name,(0,s.artifactCardText)(d.name)),x.id),void j()}let eT=(0,h.parseAskMarker)(q);if(eT){let t=W?W.id:null,r=(0,h.pendingForBot)(e.conversation_id,x.id);if(r&&t&&r.task_message_id===t)return void j();let i=(0,h.createPendingQuestion)({conversationId:e.conversation_id,botId:x.id,question:eT,taskMessageId:t,taskContent:W?W.content:null}),o=n.messages.create(e.conversation_id,"bot",(0,l.applySkillEndToken)(x.name,eT),x.id);return(0,h.setQuestionMessage)(i.id,o.id),es(e.conversation_id,o),void j()}let eA=(0,c.loadHermesConfig)();if(eA&&!X){let t=q.split(/(?=WAKE\s+[A-Za-z0-9_-]+\s*:)/gi).map(e=>e.match(/WAKE\s+([A-Za-z0-9_-]+)\s*:\s*([\s\S]*)/i)).filter(e=>!!e).map(e=>({target:e[1],message:(e[2]||"").trim()})).filter(e=>e.message.length>0);if(t.length>0){let r=t.map(e=>{if("GROUP"===e.target.toUpperCase()&&"group"===M.type)return{directive:e,bot:null,group:!0,unknown:!1};let t=n.bots.getByName(e.target);return t?{directive:e,bot:t,group:!1,unknown:!1}:{directive:e,bot:null,group:!1,unknown:!0}}),i=r.filter(e=>!e.group&&!e.unknown&&"hermes-gateway"===(0,k.agentTransport)((0,k.resolveAgent)(e.bot).agent)&&(0,k.resolveAgent)(e.bot).launchable);if(i.length===r.length)return void await eo({item:e,bot:x,conversation:M,chain:H,responseContent:q,targets:i.map(e=>({directive:e.directive,bot:e.bot})),hermesConfig:eA})}}let eR=q.match(/WAKE\s+(\w+):\s*([\s\S]+)/);if(eR){let[,t,r]=eR,i="GROUP"===t.toUpperCase()&&"group"===M.type,o=i?null:n.bots.getByName(t);if(i||o){let a=eR.index??q.indexOf(eR[0]),s=q.slice(0,a).trim();if(s&&es(e.conversation_id,n.messages.create(e.conversation_id,"bot",(0,l.applySkillEndToken)(x.name,s),x.id)),H?.stopped)return void j();if(H&&H.handoffs>=3){n.messages.create(e.conversation_id,"bot",S,x.id),j();return}if(i){let t=r.replace(/data:image\/[a-zA-Z0-9.+-]+;base64,[A-Za-z0-9+/=\s]+/g,"").trim();if(t){es(e.conversation_id,n.messages.create(e.conversation_id,"bot",(0,l.applySkillEndToken)(x.name,t),x.id));let r=n.groups.getMembers(M.group_id).find(e=>e.id!==x.id);r&&(D(e,r.id),H&&(H.addHandoffs(1),H.pushFrame({delegateId:r.id,callerId:x.id})))}}else if(o){let i=n.messages.create(e.conversation_id,"bot",`[Handing off to ${o.name}]
|
|
43
|
+
${r.trim()}`,x.id);es(e.conversation_id,i),n.wakeTargets.accept({conversationId:e.conversation_id,requestedTarget:t,sourceBotId:x.id,sourceMessageId:i.id}),D(e,o.id),H&&(H.addHandoffs(1),H.pushFrame({delegateId:o.id,callerId:x.id}))}}else es(e.conversation_id,n.messages.create(e.conversation_id,"bot",(0,l.applySkillEndToken)(x.name,q),x.id)),N(e,H,x.id)}else es(e.conversation_id,n.messages.create(e.conversation_id,"bot",(0,l.applySkillEndToken)(x.name,q),x.id)),N(e,H,x.id);j()}function es(e,t){try{(0,_.recordModelApproval)(e,t)}catch(e){console.error("Error recording approval:",e)}}function ed(e,t,n){return t.some(t=>{if("bot"!==t.sender_type||t.sender_id!==n)return!1;let r=(0,o.parseApprovalCode)(t.content);return!!r&&!!(0,_.getApprovalByCode)(e,r)})}function el(e,t){for(let n=0;n<8;n++){let n=(0,_.mintApprovalCode)(`write-${t}`);if(!(0,_.getApprovalByCode)(e,n))return n}return(0,_.mintApprovalCode)(`write-${t}-${Date.now().toString(36)}`)}function eu(e,t){let n=-1;for(let t=0;t<e.length;t++)"user"===e[t].sender_type&&(n=t);if(n<0)return!1;let r=`[Handing off to ${t}]`;for(let t=n+1;t<e.length;t++){let n=e[t];if("bot"===n.sender_type&&n.content.includes(r))return!0}return!1}function ec(e,t){if(e.handoff_targets)try{let n=JSON.parse(e.handoff_targets);if(Array.isArray(n)&&n.map(e=>String(e)).includes(t.id))return!0}catch{}let n="@"+t.name,r=0;for(;r<e.content.length;){let t=e.content.indexOf(n,r);if(t<0)break;let i=e.content[t+n.length];if(!i||/[\s.,!?:;]/.test(i))return!0;r=t+n.length}return!1}function ef(e){if(ep(e))return null;let t=e.trim().replace(/[.!\s]+$/,"").match(/^(?:(.+?),\s*)?reply with exactly the (?:word|token)\s+(\S+)$/i);if(!t)return null;let n=t[2].replace(/^[`"']+|[`"']+$/g,"");return n?{word:n,named:(t[1]?t[1].trim():null)||null}:null}function ep(e){let t=e.trim().replace(/[.!\s]+$/,"").match(/^@(\S+)\s+(?:hand this to|hand off to|pass this to)\s+(.+?):\s*(.+)$/i);if(!t)return null;let n=t[1].replace(/^[`"'"]+|[`"'"]+$/g,"").trim(),r=t[2].trim().replace(/^[`"'"]+|[`"'"]+$/g,"").trim(),i=t[3].trim();return n&&r&&i?{fromName:n,toName:r,task:i}:null}function em(e,t){let n=t.trim().toLowerCase().replace(/^the\s+/,"");return!!n&&(e.name.toLowerCase()===n||(e.title||"").trim().toLowerCase()===n)}function eg(e){return/WAKE\s+\w+\s*:/.test(e)||/please review my research/i.test(e)}function eh(e){let t=n.bots.getById(e);return t?.name||"Unknown"}K&&(n.bots.touchSeen(),r.uiTurns.recoverInterrupted(),H(),(0,y.recoverCoordinatorLoops)().catch(console.error),setInterval(()=>{n.bots.touchSeen(),H(),er().catch(console.error),(0,y.sweepDispatch)().catch(console.error)},2e3)),e.s(["processUiTurns",0,er,"stopDelegation",0,function(e){let t=[...n.messages.getByConversation(e)].reverse().find(e=>"user"===e.sender_type),o=t?(0,i.chainFor)(e,t.id):null,a=o?.stopped??!1,s=!!o&&(o.turns>0||o.handoffs>0),d=r.uiTurns.cancelPending(e),l=function(e){let t=I.get(e);if(!t||0===t.size)return 0;let n=t.size;for(let e of t)try{e.abort()}catch{}return I.delete(e),n}(e),u=0;try{u=(0,h.clearForConversation)(e)}catch(e){console.error("Error clearing pending questions:",e)}o&&o.stop();let c=d>0||l>0||u>0||s&&!a;return c&&n.messages.create(e,"bot","[Delegation stopped] Delegation stopped. No further handoffs or delegated turns."),c}])},88355,e=>{"use strict";var t=e.i(54799),n=e.i(62294);function r(e){return{id:String(e.id),conversation_id:String(e.conversation_id),bot_id:String(e.bot_id),question:String(e.question),task_message_id:e.task_message_id??null,task_content:e.task_content??null,question_message_id:e.question_message_id??null,answer_message_id:e.answer_message_id??null,answer:e.answer??null,status:e.status,created_at:Number(e.created_at),resolved_at:e.resolved_at??null}}function i(e){let t=n.default.prepare("SELECT * FROM pending_questions WHERE id = ?").get(e);return t?r(t):void 0}function o(e){return n.default.prepare("SELECT * FROM pending_questions WHERE conversation_id = ? AND status = 'asked' ORDER BY created_at ASC, rowid ASC").all(e).map(r)}function a(e){let t=e.trim().replace(/\s+/g," ");return(t=(t=t.replace(/^—\s*/,"").replace(/\s*—\s*$/,"").trim()).replace(/\s*,?\s*(?:then|and)\s+wait(?:\s+for\s+my\s+answer)?\s*[.!]?\s*$/i,"").trim())?t:null}e.s(["clearForConversation",0,function(e){return Number(n.default.prepare("UPDATE pending_questions SET status = 'expired', resolved_at = ? WHERE conversation_id = ? AND status = 'asked'").run(Date.now(),e).changes)},"createPendingQuestion",0,function(e){let r=e.question.trim();if(!r)throw Error("question is required");let o=Date.now();return n.default.transaction(()=>{n.default.prepare("UPDATE pending_questions SET status = 'expired', resolved_at = ? WHERE conversation_id = ? AND bot_id = ? AND status = 'asked'").run(o,e.conversationId,e.botId);let a=(0,t.randomUUID)();return n.default.prepare(`INSERT INTO pending_questions
|
|
44
44
|
(id, conversation_id, bot_id, question, task_message_id, task_content, question_message_id, status, created_at)
|
|
45
45
|
VALUES (?, ?, ?, ?, ?, ?, ?, 'asked', ?)`).run(a,e.conversationId,e.botId,r,e.taskMessageId??null,e.taskContent??null,e.questionMessageId??null,o),i(a)})()},"findAnsweredByAnswer",0,function(e,t,i){let o=n.default.prepare("SELECT * FROM pending_questions WHERE conversation_id = ? AND bot_id = ? AND answer_message_id = ? AND status = 'answered' ORDER BY created_at DESC LIMIT 1").get(e,t,i);return o?r(o):void 0},"findByTask",0,function(e,t,i){let o=n.default.prepare("SELECT * FROM pending_questions WHERE conversation_id = ? AND bot_id = ? AND task_message_id = ? ORDER BY created_at DESC LIMIT 1").get(e,t,i);return o?r(o):void 0},"listAskedForConversation",0,o,"parseAskMarker",0,function(e){if(!e)return null;let t=e.match(/<ask>\s*([\s\S]*?)\s*<\/ask>/i);if(t)return t[1].trim()||null;for(let t of e.split(/\r?\n/)){let e=t.match(/^\s*\[ask\]\s*(.+?)\s*$/i);if(e){let t=e[1].trim();if(t)return t}}return null},"parseAskRequest",0,function(e){let t=(e||"").trim();if(!t||!/\bask\b/i.test(t)||!/\bwait\b/i.test(t))return null;let n=t.match(/ask\b[^:—]*[:—]\s*(.+?)\s*(?:then|and)\s+wait\b/is);if(n){let e=a(n[1]||"");if(e)return e}let r=t.match(/ask\b(.+?)\bthen\s+wait\b/is);if(r){let e=(r[1]||"").trim(),t=a(e=e.replace(/^me\b\s*/i,"").replace(/^(?:this|that|one|a)\b\s*/i,"").replace(/^(?:question|thing)\b\s*/i,"").replace(/^first\b\s*/i,"").replace(/^[:—,\-\s]+/,"").trim());if(t&&t.length>=2)return t}let i=t.match(/first\b\s*[:—]?\s*(.+?)\s*(?:then|and)\s+wait\b/is);if(i){let e=a(i[1]||"");if(e)return e}return null},"pendingForBot",0,function(e,t){let i=n.default.prepare("SELECT * FROM pending_questions WHERE conversation_id = ? AND bot_id = ? AND status = 'asked' ORDER BY created_at DESC LIMIT 1").get(e,t);return i?r(i):void 0},"resolveQuestion",0,function(e,t,r){let o=r.trim();if(!o)return null;let a=Date.now();return 1!==n.default.prepare(`UPDATE pending_questions SET status = 'answered', answer_message_id = ?, answer = ?, resolved_at = ?
|
|
46
46
|
WHERE id = ? AND status = 'asked'`).run(t,o,a,e).changes?null:i(e)??null},"resumeBotIdsForConversation",0,function(e){let t=o(e);return 0===t.length?null:[...new Set(t.map(e=>e.bot_id))]},"resumePrompt",0,function(e){let t=(e.taskContent||"").trim(),n=["[ask-resume] The person answered your parked question. Continue the original task using the answer exactly once.",`Question: ${e.question.trim()}`,`Answer: ${e.answer.trim()}`];return t&&n.push(`Original task: ${t}`),n.push("Reply with the continued task result. Do not ask the question again."),n.join("\n")},"setQuestionMessage",0,function(e,t){n.default.prepare("UPDATE pending_questions SET question_message_id = ? WHERE id = ?").run(t,e)}])},57147,43084,1912,15467,e=>{"use strict";var t=e.i(54799),n=e.i(62294),r=e.i(35613);let i="('ui_message', 'ui_continuation')";function o(e){return{id:e.id,conversation_id:e.source_conversation_id,bot_id:e.target_agent_id,created_at:e.created_at,kind:"ui_continuation"===e.executor?"continuation":"message"}}function a(e){return!!e&&("ui_message"===e.executor||"ui_continuation"===e.executor)}function s(e){try{return e(),!0}catch(e){if(e instanceof r.EngineStoreError&&"stale_state"===e.code)return!1;throw e}}let d={get(e){let t=n.engine.getWorkRequest(e);return a(t)?o(t):void 0},listByConversation:e=>n.default.prepare(`
|
|
@@ -54,6 +54,6 @@ ${r.trim()}`,M.id);ea(e.conversation_id,i),n.wakeTargets.accept({conversationId:
|
|
|
54
54
|
VALUES (?, ?, ?, ?)
|
|
55
55
|
`).run(e,t,r,r),new c(e,t)},"existingChain",0,function(e,t){return n.default.prepare("SELECT 1 FROM delegation_chains WHERE conversation_id = ? AND user_message_id = ?").get(e,t)?new c(e,t):null}],43084);var f=e.i(33405);async function p(e,t,n){return n.includes("{")?new Promise((r,i)=>{let o=(0,f.spawn)(e,t,{stdio:["pipe","pipe","pipe"]}),a=Buffer.alloc(0),s=1,d=new Map,l=!1,u=e=>{l||(l=!0,clearTimeout(p),o.kill(),i(e))},c=e=>{l||(l=!0,clearTimeout(p),o.kill(),r(e))},p=setTimeout(()=>u(Error("MCP server timed out")),8e3);o.stdin.on("error",()=>void 0),o.on("error",e=>u(e)),o.on("exit",e=>{l||u(Error(`MCP server exited ${e}`))});let m=e=>{let t;o.stdin.write((t=JSON.stringify(e),`Content-Length: ${Buffer.byteLength(t,"utf8")}\r
|
|
56
56
|
\r
|
|
57
|
-
${t}`))},g=(e,t)=>{let n=s++;return new Promise((r,i)=>{d.set(n,e=>{e.error?i(Error(e.error.message||"MCP error")):r(e)}),m({jsonrpc:"2.0",id:n,method:e,params:t})})};o.stdout.on("data",e=>{for(a=Buffer.concat([a,e]);;){let e,t=a.indexOf("\r\n\r\n");if(t<0)break;let n=a.slice(0,t).toString("utf8").match(/Content-Length:\s*(\d+)/i);if(!n)return void u(Error("MCP response missing Content-Length"));let r=Number(n[1]),i=t+4;if(a.length<i+r)break;let o=a.slice(i,i+r).toString("utf8");a=a.slice(i+r);try{e=JSON.parse(o)}catch(e){u(e instanceof Error?e:Error("Bad MCP JSON"));return}if("number"==typeof e.id&&d.has(e.id)){let t=d.get(e.id);d.delete(e.id),t&&t(e)}}}),(async()=>{try{await g("initialize",{protocolVersion:"2024-11-05",capabilities:{},clientInfo:{name:"botmancers",version:"0.1.0"}}),m({jsonrpc:"2.0",method:"notifications/initialized"});let e=(await g("tools/list")).result,t=(e?.tools||[]).map(e=>e.name).filter(Boolean),r=function(e,t){let n,r=e.match(/\{[\s\S]*\}/);if(!r)return null;try{let e=JSON.parse(r[0]);if(!e||"object"!=typeof e||Array.isArray(e))return null;n=e}catch{return null}for(let r of[...t].sort((e,t)=>t.length-e.length)){let t=e.indexOf(r);if(t<0)continue;let i=0===t?"":e[t-1],o=e[t+r.length]||"";if(!(i&&/[A-Za-z0-9_]/.test(i))&&!(o&&/[A-Za-z0-9_]/.test(o)))return{name:r,args:n}}return null}(n,t);if(!r)return void c({tools:t});let i=(await g("tools/call",{name:r.name,arguments:r.args})).result,o=(i?.content||[]).map(e=>e.text||"").join("");if(i?.isError)return void u(Error(o||"MCP tool error"));c({tools:t,invocation:{name:r.name,args:r.args,text:o}})}catch(e){u(e instanceof Error?e:Error("MCP failed"))}})()}):null}e.s(["mcpTurn",0,p],1912);var m=e.i(30098),g=e.i(10860);let
|
|
57
|
+
${t}`))},g=(e,t)=>{let n=s++;return new Promise((r,i)=>{d.set(n,e=>{e.error?i(Error(e.error.message||"MCP error")):r(e)}),m({jsonrpc:"2.0",id:n,method:e,params:t})})};o.stdout.on("data",e=>{for(a=Buffer.concat([a,e]);;){let e,t=a.indexOf("\r\n\r\n");if(t<0)break;let n=a.slice(0,t).toString("utf8").match(/Content-Length:\s*(\d+)/i);if(!n)return void u(Error("MCP response missing Content-Length"));let r=Number(n[1]),i=t+4;if(a.length<i+r)break;let o=a.slice(i,i+r).toString("utf8");a=a.slice(i+r);try{e=JSON.parse(o)}catch(e){u(e instanceof Error?e:Error("Bad MCP JSON"));return}if("number"==typeof e.id&&d.has(e.id)){let t=d.get(e.id);d.delete(e.id),t&&t(e)}}}),(async()=>{try{await g("initialize",{protocolVersion:"2024-11-05",capabilities:{},clientInfo:{name:"botmancers",version:"0.1.0"}}),m({jsonrpc:"2.0",method:"notifications/initialized"});let e=(await g("tools/list")).result,t=(e?.tools||[]).map(e=>e.name).filter(Boolean),r=function(e,t){let n,r=e.match(/\{[\s\S]*\}/);if(!r)return null;try{let e=JSON.parse(r[0]);if(!e||"object"!=typeof e||Array.isArray(e))return null;n=e}catch{return null}for(let r of[...t].sort((e,t)=>t.length-e.length)){let t=e.indexOf(r);if(t<0)continue;let i=0===t?"":e[t-1],o=e[t+r.length]||"";if(!(i&&/[A-Za-z0-9_]/.test(i))&&!(o&&/[A-Za-z0-9_]/.test(o)))return{name:r,args:n}}return null}(n,t);if(!r)return void c({tools:t});let i=(await g("tools/call",{name:r.name,arguments:r.args})).result,o=(i?.content||[]).map(e=>e.text||"").join("");if(i?.isError)return void u(Error(o||"MCP tool error"));c({tools:t,invocation:{name:r.name,args:r.args,text:o}})}catch(e){u(e instanceof Error?e:Error("MCP failed"))}})()}):null}e.s(["mcpTurn",0,p],1912);var m=e.i(30098),g=e.i(10860);let h=e.i(49166).IMPORT_SCHEMA_VERSION,_="[A-Za-z0-9_-]+";function v(e){return e.trim().replace(/[.?!;,:'"`]+$/g,"").trim()}function y(e){return e.trim().replace(/\s+/g," ").replace(/[.?!]+$/g,"").trim()}function b(e){return e.trim().replace(/[.?!;,:'"`]+$/g,"").trim()}async function k(e){let t=e.trim();if(!t)return{kind:"none"};let n=function(e){for(let t of[RegExp(`^duplicate\\s+(${_})\\s+as\\s+(${_})\\.?\\s*$`,"i"),RegExp(`\\bmake\\s+(?:me\\s+)?a\\s+copy\\s+of\\s+(?:(?:bot|specialist)\\s+)?(${_})\\s+(?:called|named|as)\\s+(${_})\\b`,"i"),RegExp(`\\b(?:duplicate|copy|clone)\\s+(?:(?:bot|specialist)\\s+)?(${_})\\s+(?:as|to|into)\\s+(?:(?:bot|specialist)\\s+)?(?:called\\s+|named\\s+)?(${_})\\b`,"i")]){let n=e.match(t);if(!n)continue;let r=b(n[1]||""),i=b(n[2]||"");if(r&&i)return{kind:"duplicate",sourceName:r,newName:i}}return{kind:"none"}}(t);if("none"!==n.kind)return n;let r=function(e){let t=e.match(RegExp(`^create a specialist named\\s+(${_})\\.?\\s*the job is:\\s*(.+)$`,"is"));if(t){let e=v(t[1]||""),n=y(t[2]||"");return e&&n?{kind:"create",name:e,job:n}:{kind:"none"}}let n=e.match(RegExp(`\\b(?:create|make|build|spin\\s+up|add)\\s+(?:me\\s+)?(?:a\\s+)?(?:new\\s+)?(?:specialist|bot|assistant|agent)\\s+(?:called\\s+|named\\s+)?(${_})\\s*([\\s\\S]*)$`,"i"));if(!n)return{kind:"none"};let r=v(n[1]||"");if(!r)return{kind:"none"};let i=(n[2]||"").trim();if(!i)return{kind:"none"};let o=y(i=i.replace(/^[.,:;]+\s*/,"").replace(/^(?:that|which|who|to|for|with)\b\s*:?\s*/i,"").replace(/^whose\s+job\s+is\s*:?\s*/i,"").replace(/^the\s+job\s+is\s*:?\s*/i,"").replace(/^is\s*:?\s*/i,"").trim());return o?{kind:"create",name:r,job:o}:{kind:"none"}}(t);return"none"!==r.kind?r:{kind:"none"}}async function w(e){let t=(process.env.CLONE_MARKET_SEARCH_URL||"").trim();if(!t)return null;try{let r=t+(t.includes("?")?"&":"?")+"q="+encodeURIComponent(e),i=await fetch(r,{signal:AbortSignal.timeout(1e4)});if(!i.ok)return null;var n=await i.json();if(!n||"object"!=typeof n)return null;if(n.template&&"object"==typeof n.template)return E(n.template);if(Array.isArray(n.templates)&&n.templates.length>0){let e=n.templates[0];if(e&&"object"==typeof e)return E({template_id:String(e.id??e.template_id??""),template_url:String(e.url??e.template_url??""),source_provider:String(e.provider??e.source_provider??""),title:String(e.title??e.name??""),description:String(e.description??""),avatar:"string"==typeof e.avatar?e.avatar:void 0})}return null}catch{return null}}function E(e){if(!e||"object"!=typeof e)return null;let t=String(e.template_id||"").trim();if(!t)return null;let n=String(e.template_url||"").trim()||(process.env.CLONE_MARKET_URL||"").trim();return n?{template_id:t,template_url:n,source_provider:String(e.source_provider||"").trim()||"clone-market",title:String(e.title||"").trim(),description:String(e.description||"").trim(),avatar:"string"==typeof e.avatar&&e.avatar?e.avatar:void 0}:null}function S(e){return n.bots.getByName(e)}function T(e){try{return e()}catch(e){if(e instanceof m.AgentNameConflictError)return{ok:!1,reason:"collision"};throw e}}function A(e){let n={schema_version:e.schema_version,source_provider:e.source_provider,template_id:e.template_id,template_url:e.template_url,bot:{name:e.bot.name,title:e.bot.title||"",description:e.bot.description||"",avatar:e.bot.avatar||null}};return(0,t.createHash)("sha256").update(JSON.stringify(n)).digest("hex")}function R(e){d.cancelPendingForBot(e);let t=n.conversations.getByBotId(e);t&&d.cancelPending(t.id)}async function I(e,t){let r=e.trim();if(!r)return{ok:!1,reason:"invalid"};if(S(r))return{ok:!1,reason:"collision"};let i=T(()=>n.bots.create({name:r,title:"",description:t,avatar:void 0}));return"ok"in i?i:(R(i.id),{ok:!0,bot:i})}async function C(e,r,i){let o=e.trim();if(!o)return{ok:!1,reason:"invalid"};let a=E(r);if(!a)return{ok:!1,reason:"invalid"};let s=i?.operationId?.trim()||(0,t.randomUUID)(),d={schema_version:h,source_provider:a.source_provider,template_id:a.template_id,template_url:a.template_url,bot:{name:o,title:a.title,description:a.description,avatar:a.avatar}},l=n.bots.getByImportOperationId(s);if(l)return A({schema_version:l.import_schema_version||h,source_provider:l.source_provider||"",template_id:l.template_id||"",template_url:l.template_url||"",bot:{name:l.name,title:l.title,description:l.description,avatar:l.avatar||void 0}})!==A(d)?{ok:!1,reason:"conflict",existingBotId:l.id}:{ok:!0,bot:l,created:!1};if(S(o))return{ok:!1,reason:"collision"};let u=T(()=>n.bots.createFromImport({name:o,title:a.title,description:a.description,avatar:a.avatar},{source_provider:a.source_provider,template_id:a.template_id,template_url:a.template_url,import_schema_version:h,import_operation_id:s,import_timestamp:Date.now()}));return"ok"in u?u:(R(u.id),{ok:!0,bot:u,created:!0})}async function $(e,t){let r=S(e);if(!r)return{ok:!1,reason:"not-found"};let i=t.trim();if(!i)return{ok:!1,reason:"invalid"};if(S(i))return{ok:!1,reason:"collision"};let o=T(()=>n.bots.create({name:i,title:r.title,description:r.description,avatar:void 0}));if("ok"in o)return o;let a=(0,g.localSkillForBot)(r.name);if(a&&(0,g.isSupportedSkillName)(i))try{(0,g.writeSkillForBot)(i,a)}catch{}return R(o.id),{ok:!0,bot:o,source:r}}async function N(e,t,r,i,o){let a,s=await k(r.content);if("none"===s.kind)return!1;if((a=i.findIndex(e=>e.id===r.id))<0?i.some(e=>"bot"===e.sender_type&&e.sender_id===t&&e.created_at>r.created_at):i.slice(a+1).some(e=>"bot"===e.sender_type&&e.sender_id===t))return!0;let d=n.bots.getById(t)?.name??null;if("duplicate"===s.kind){let r=await $(s.sourceName,s.newName);return r.ok||"not-found"!==r.reason?r.ok||"collision"!==r.reason?r.ok?n.messages.create(e,"bot",(0,g.applySkillEndToken)(d,`Duplicated ${r.source.name} as ${r.bot.name}. Title, description and skill copied; only the name changed. Avatar starts blank. Path: duplicate. New bot id: ${r.bot.id}.`),t):n.messages.create(e,"bot",(0,g.applySkillEndToken)(d,`Failed to duplicate ${s.sourceName} as ${s.newName}.`),t):n.messages.create(e,"bot",(0,g.applySkillEndToken)(d,`${(0,m.agentNameConflictMessage)(s.newName)} No bot created.`),t):n.messages.create(e,"bot",(0,g.applySkillEndToken)(d,`I could not find ${s.sourceName} to duplicate. No bot created.`),t),!0}if(S(s.name))return n.messages.create(e,"bot",(0,g.applySkillEndToken)(d,`${(0,m.agentNameConflictMessage)(s.name)} No bot created.`),t),!0;let l=await w(s.job);if(l){let r=await C(s.name,l,o);return r.ok||"collision"!==r.reason?r.ok?n.messages.create(e,"bot",(0,g.applySkillEndToken)(d,`Created ${r.bot.name} from the matching marketplace template (${l.template_id}). Path: template. New bot id: ${r.bot.id}.`),t):n.messages.create(e,"bot",(0,g.applySkillEndToken)(d,`Failed to import ${s.name} from the matching template.`),t):n.messages.create(e,"bot",(0,g.applySkillEndToken)(d,`${(0,m.agentNameConflictMessage)(s.name)} No bot created.`),t),!0}let u=await I(s.name,s.job);return u.ok||"collision"!==u.reason?u.ok?n.messages.create(e,"bot",(0,g.applySkillEndToken)(d,`None of the templates fit. Created ${u.bot.name} with that job as its description. Path: plain. New bot id: ${u.bot.id}.`),t):n.messages.create(e,"bot",(0,g.applySkillEndToken)(d,`Failed to create ${s.name}: invalid name.`),t):n.messages.create(e,"bot",(0,g.applySkillEndToken)(d,`${(0,m.agentNameConflictMessage)(s.name)} No bot created.`),t),!0}e.s(["handleCosBirthRequest",0,N],15467)}];
|
|
58
58
|
|
|
59
59
|
//# sourceMappingURL=lib_0kik6bx._.js.map
|