botmancers 0.4.2 → 0.5.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 +28 -0
- package/README.md +22 -17
- package/app/.next/BUILD_ID +1 -1
- package/app/.next/app-path-routes-manifest.json +7 -0
- package/app/.next/build-manifest.json +3 -3
- package/app/.next/prerender-manifest.json +5 -5
- package/app/.next/required-server-files.json +2 -2
- package/app/.next/routes-manifest.json +55 -0
- 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.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/agent-deck/decks/route.js +2 -2
- package/app/.next/server/app/api/agent-deck/decks/route.js.nft.json +1 -1
- package/app/.next/server/app/api/agent-deck/settings/route.js +2 -2
- package/app/.next/server/app/api/agent-deck/settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/bots/[id]/config/route.js +2 -2
- 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/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/bots/[id]/sessions/[ref]/pins/route/build-manifest.json +12 -0
- package/app/.next/server/app/api/bots/[id]/sessions/[ref]/pins/route/server-reference-manifest.json +4 -0
- package/app/.next/server/app/api/bots/[id]/sessions/[ref]/pins/route.js +12 -0
- package/app/.next/server/app/api/bots/[id]/sessions/[ref]/pins/route.js.nft.json +1 -0
- package/app/.next/server/app/api/bots/[id]/sessions/[ref]/pins/route_client-reference-manifest.js +3 -0
- package/app/.next/server/app/api/bots/[id]/sessions/[ref]/route.js +2 -2
- 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/route.js +6 -3
- package/app/.next/server/app/api/bots/[id]/sessions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/bots/[id]/skill/route.js +2 -2
- 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 +2 -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 +2 -2
- 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 +2 -2
- package/app/.next/server/app/api/bots/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/bots/manage/route.js +2 -2
- 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 +2 -2
- package/app/.next/server/app/api/bots/name-migrations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/bots/route.js +3 -3
- 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 +2 -2
- 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 +5 -5
- 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 +2 -2
- 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 +3 -3
- package/app/.next/server/app/api/conversations/[id]/stop/route.js.nft.json +1 -1
- package/app/.next/server/app/api/conversations/route.js +2 -2
- 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 +3 -3
- package/app/.next/server/app/api/exchanges/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/exchanges/route.js +3 -3
- package/app/.next/server/app/api/exchanges/route.js.nft.json +1 -1
- package/app/.next/server/app/api/files/[name]/route.js +3 -2
- package/app/.next/server/app/api/files/[name]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/groups/route.js +2 -2
- package/app/.next/server/app/api/groups/route.js.nft.json +1 -1
- package/app/.next/server/app/api/health/route.js +3 -2
- package/app/.next/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next/server/app/api/mcp/route.js +2 -2
- package/app/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/app/.next/server/app/api/messages/[id]/between/route.js +2 -2
- package/app/.next/server/app/api/messages/[id]/between/route.js.nft.json +1 -1
- package/app/.next/server/app/api/runtime-connections/route/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/runtime-connections/route/build-manifest.json +12 -0
- package/app/.next/server/app/api/runtime-connections/route/server-reference-manifest.json +4 -0
- package/app/.next/server/app/api/runtime-connections/route.js +9 -0
- package/app/.next/server/app/api/runtime-connections/route.js.nft.json +1 -0
- package/app/.next/server/app/api/runtime-connections/route_client-reference-manifest.js +3 -0
- package/app/.next/server/app/api/service-grants/route.js +2 -2
- package/app/.next/server/app/api/service-grants/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v0/agents/[agentId]/conversations/[conversationId]/route.js +7 -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 +7 -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/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/v0/agents/[agentId]/pins/route/build-manifest.json +12 -0
- package/app/.next/server/app/api/v0/agents/[agentId]/pins/route/server-reference-manifest.json +4 -0
- package/app/.next/server/app/api/v0/agents/[agentId]/pins/route.js +12 -0
- package/app/.next/server/app/api/v0/agents/[agentId]/pins/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v0/agents/[agentId]/pins/route_client-reference-manifest.js +3 -0
- package/app/.next/server/app/api/v0/agents/[agentId]/route.js +7 -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 +7 -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 +7 -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 +7 -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 +7 -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 +7 -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 +7 -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 +7 -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 +8 -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/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/detach/route/build-manifest.json +12 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/detach/route/server-reference-manifest.json +4 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/detach/route.js +12 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/detach/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/detach/route_client-reference-manifest.js +3 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/messages/route/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/messages/route/build-manifest.json +12 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/messages/route/server-reference-manifest.json +4 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/messages/route.js +12 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/messages/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/messages/route_client-reference-manifest.js +3 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/route/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/route/build-manifest.json +12 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/route/server-reference-manifest.json +4 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/route.js +12 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v0/pins/[pinRef]/route_client-reference-manifest.js +3 -0
- 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 +7 -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/app-paths-manifest.json +3 -0
- package/app/.next/server/app/api/v0/sessions/[ref]/pins/route/build-manifest.json +12 -0
- package/app/.next/server/app/api/v0/sessions/[ref]/pins/route/server-reference-manifest.json +4 -0
- package/app/.next/server/app/api/v0/sessions/[ref]/pins/route.js +12 -0
- package/app/.next/server/app/api/v0/sessions/[ref]/pins/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v0/sessions/[ref]/pins/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.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.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.nft.json +1 -1
- package/app/.next/server/app/page_client-reference-manifest.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.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 +7 -0
- package/app/.next/server/chunks/1oeh_server_app_api_bots_[id]_sessions_[ref]_pins_route_actions_0e1st6o.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__02kssr-._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__06qkt0f._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__08qhrch._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__097ptn_._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__09m9-pe._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0b7w1z3._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0f5yqjs._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0g4um3-._.js +44 -0
- package/app/.next/server/chunks/[root-of-the-server]__0hro5ey._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0hwpgxq._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0izjfmr._.js +355 -60
- package/app/.next/server/chunks/[root-of-the-server]__0lwsto-._.js +5 -0
- package/app/.next/server/chunks/[root-of-the-server]__0s1enbp._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0uq7sci._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__0wg992i._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__13cd2fb._.js +44 -0
- package/app/.next/server/chunks/[root-of-the-server]__17mum5-._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__1879cge._.js +3 -0
- package/app/.next/server/chunks/{[root-of-the-server]__17oz13o._.js → [root-of-the-server]__1_01-13._.js} +3 -3
- package/app/.next/server/chunks/[root-of-the-server]__1a2dh11._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__1bhzfu_._.js +7 -0
- package/app/.next/server/chunks/[root-of-the-server]__1co3sok._.js +44 -0
- package/app/.next/server/chunks/[root-of-the-server]__1eh30sp._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__1fmsid0._.js +44 -0
- package/app/.next/server/chunks/[root-of-the-server]__1i388e2._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__1kvvs4u._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__1qbgs3m._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__1s6h1sj._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__1slu7d7._.js +2 -2
- package/app/.next/server/chunks/[root-of-the-server]__1tuqc5v._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__1v609eq._.js +44 -0
- package/app/.next/server/chunks/[root-of-the-server]__1y_j43n._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__1zdv-vb._.js +3 -0
- package/app/.next/server/chunks/[root-of-the-server]__1zjs2tr._.js +3 -0
- package/app/.next/server/chunks/_0061c2q._.js +3 -0
- package/app/.next/server/chunks/_023se5j._.js +44 -0
- package/app/.next/server/chunks/_02pb_qv._.js +44 -0
- package/app/.next/server/chunks/_05ro-21._.js +44 -0
- package/app/.next/server/chunks/_07on0dc._.js +44 -0
- package/app/.next/server/chunks/_08208nz._.js +44 -0
- package/app/.next/server/chunks/_0a2do3x._.js +1 -1
- package/app/.next/server/chunks/_0fe5qz5._.js +44 -0
- package/app/.next/server/chunks/_0i8_xso._.js +3 -0
- package/app/.next/server/chunks/_0qoji5a._.js +44 -0
- package/app/.next/server/chunks/_0uv2pi5._.js +44 -0
- package/app/.next/server/chunks/_0wdl90-._.js +44 -0
- package/app/.next/server/chunks/_1-5mthb._.js +1 -1
- package/app/.next/server/chunks/_11-q8k1._.js +3 -0
- package/app/.next/server/chunks/_11ijk9k._.js +44 -0
- package/app/.next/server/chunks/_198sn69._.js +44 -0
- package/app/.next/server/chunks/_1ba_5hd._.js +44 -0
- package/app/.next/server/chunks/_1ess5if._.js +3 -0
- package/app/.next/server/chunks/_1i0zod4._.js +3 -0
- package/app/.next/server/chunks/_1m89jq5._.js +44 -0
- package/app/.next/server/chunks/_1n39wr_._.js +44 -0
- package/app/.next/server/chunks/_1ryxqo1._.js +44 -0
- package/app/.next/server/chunks/_1vemgly._.js +44 -0
- package/app/.next/server/chunks/_next-internal_server_app_api_runtime-connections_route_actions_06rulng.js +3 -0
- package/app/.next/server/chunks/_next-internal_server_app_api_v0_agents_[agentId]_pins_route_actions_08uftk9.js +3 -0
- package/app/.next/server/chunks/_next-internal_server_app_api_v0_pins_[pinRef]_detach_route_actions_0nk3268.js +3 -0
- package/app/.next/server/chunks/_next-internal_server_app_api_v0_pins_[pinRef]_messages_route_actions_1wenu96.js +3 -0
- package/app/.next/server/chunks/_next-internal_server_app_api_v0_pins_[pinRef]_route_actions_0z7fu_c.js +3 -0
- package/app/.next/server/chunks/_next-internal_server_app_api_v0_sessions_[ref]_pins_route_actions_0y3ere3.js +3 -0
- package/app/.next/server/chunks/lib_0kik6bx._.js +1 -1
- package/app/.next/server/chunks/lib_0lqoyb4._.js +217 -0
- package/app/.next/server/chunks/lib_0pe3tiv._.js +1 -1
- package/app/.next/server/chunks/lib_0riiofz._.js +44 -0
- package/app/.next/server/chunks/lib_16j2293._.js +217 -0
- package/app/.next/server/chunks/lib_1nb_61e._.js +217 -0
- package/app/.next/server/chunks/lib_service-api-http_ts_0xzqhny._.js +5 -5
- package/app/.next/server/chunks/lib_session-pins_ts_0lmxnwj._.js +20 -0
- package/app/.next/server/chunks/ssr/_0epgorw._.js +3 -0
- package/app/.next/server/chunks/ssr/_1cvuhjt._.js +3 -0
- package/app/.next/server/chunks/ssr/_1n5mvo5._.js +3 -0
- 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/chunks/ssr/app_components_AgentDeckRuntime_tsx_024janf._.js +1 -1
- package/app/.next/server/chunks/ssr/app_components_ExchangeCard_tsx_1shfcgn._.js +3 -0
- package/app/.next/server/chunks/ssr/app_exchanges_page_tsx_0j-n2a1._.js +3 -0
- package/app/.next/server/chunks/ssr/node_modules_@swc_helpers_cjs__interop_require_default_cjs_1ztp13a._.js +3 -0
- package/app/.next/server/middleware-build-manifest.js +3 -3
- 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/0bhd8eso48g27.js +1 -0
- package/app/.next/static/chunks/1ku9himlsx-hn.js +1 -0
- package/app/.next/static/chunks/21aqekm5z0j47.js +1 -0
- package/app/.next/static/chunks/2a8bomryx66oj.css +3 -0
- package/app/.next/static/chunks/3230ywnpii0s6.js +3 -0
- package/app/.next/static/chunks/35l2c95bd-jud.js +1 -0
- package/app/.next/static/chunks/3cijpn6vx3yzv.js +1 -0
- package/app/.next/static/chunks/3ue9194j59kem.js +1 -0
- package/app/.next/static/chunks/44ese2s4gzze_.js +1 -0
- package/app/BUILD_INFO.json +2 -2
- package/app/package.json +1 -1
- package/app/server.js +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +2 -2
- package/dist/clients.js +7 -3
- package/dist/config.d.ts +2 -1
- package/dist/config.js +5 -4
- package/dist/contract.d.ts +1 -0
- package/dist/contract.js +5 -0
- package/dist/home.d.ts +1 -1
- package/dist/home.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/product.js +1 -1
- package/dist/upstream.js +2 -2
- package/package.json +1 -1
- package/schemas/botmancers.mcp.v2.tools.json +1588 -4
- package/skills/botmancers-collaboration/SKILL.md +21 -6
- package/skills/botmancers-collaboration/references/workflows.md +72 -0
- package/app/.next/server/chunks/[root-of-the-server]__0ab4e_k._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__0qozubc._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__0wtzcge._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__10m3szc._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__15hknun._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__16ikszu._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__1afl75n._.js +0 -3
- package/app/.next/server/chunks/[root-of-the-server]__1kvvdpx._.js +0 -7
- package/app/.next/server/chunks/[root-of-the-server]__1qoa704._.js +0 -7
- package/app/.next/server/chunks/_06rti77._.js +0 -30
- package/app/.next/server/chunks/_09k38l1._.js +0 -3
- package/app/.next/server/chunks/_0dlg5kj._.js +0 -30
- package/app/.next/server/chunks/_0dyculb._.js +0 -30
- package/app/.next/server/chunks/_0eig2jc._.js +0 -30
- package/app/.next/server/chunks/_0ggf7vy._.js +0 -3
- package/app/.next/server/chunks/_0gtqbub._.js +0 -3
- package/app/.next/server/chunks/_0i7ga8c._.js +0 -3
- package/app/.next/server/chunks/_0kghtb6._.js +0 -3
- package/app/.next/server/chunks/_0orubev._.js +0 -3
- package/app/.next/server/chunks/_0sfpe9z._.js +0 -3
- package/app/.next/server/chunks/_0th2j4w._.js +0 -3
- package/app/.next/server/chunks/_0uz7r06._.js +0 -30
- package/app/.next/server/chunks/_0x05ts4._.js +0 -3
- package/app/.next/server/chunks/_0y3geoj._.js +0 -30
- package/app/.next/server/chunks/_12tq5uv._.js +0 -30
- package/app/.next/server/chunks/_147-4gl._.js +0 -3
- package/app/.next/server/chunks/_14ky6a2._.js +0 -30
- package/app/.next/server/chunks/_16kbxdt._.js +0 -30
- package/app/.next/server/chunks/_1963m2f._.js +0 -30
- package/app/.next/server/chunks/_1_34_h3._.js +0 -30
- package/app/.next/server/chunks/_1cc-2mx._.js +0 -3
- package/app/.next/server/chunks/_1ee4ej2._.js +0 -3
- package/app/.next/server/chunks/_1esxu1s._.js +0 -3
- package/app/.next/server/chunks/_1gn7eh7._.js +0 -3
- package/app/.next/server/chunks/_1gw7qwf._.js +0 -3
- package/app/.next/server/chunks/_1inyx08._.js +0 -3
- package/app/.next/server/chunks/_1kjsnlr._.js +0 -3
- package/app/.next/server/chunks/_1nurj3f._.js +0 -30
- package/app/.next/server/chunks/_1p2rf_n._.js +0 -30
- package/app/.next/server/chunks/_1p8rola._.js +0 -3
- package/app/.next/server/chunks/_1u6tw78._.js +0 -30
- package/app/.next/server/chunks/app_api_import-capabilities_route_ts_013w1kt._.js +0 -3
- package/app/.next/server/chunks/lib_0t3s3rj._.js +0 -30
- package/app/.next/server/chunks/lib_0zxi6rx._.js +0 -148
- package/app/.next/server/chunks/lib_12udr7g._.js +0 -148
- package/app/.next/server/chunks/lib_draft_ts_1atoius._.js +0 -3
- package/app/.next/server/chunks/lib_session-catalog_ts_1i7f38f._.js +0 -30
- package/app/.next/server/chunks/ssr/_00ysoah._.js +0 -3
- package/app/.next/server/chunks/ssr/_157wnb_._.js +0 -3
- package/app/.next/server/chunks/ssr/app_1-nwnha._.js +0 -3
- package/app/.next/server/chunks/ssr/app_components_0bhuhd-._.js +0 -3
- package/app/.next/server/chunks/ssr/app_components_0w2_b3t._.js +0 -3
- package/app/.next/static/chunks/0774d7ob6aze_.js +0 -1
- package/app/.next/static/chunks/0d3ein53nlgja.js +0 -1
- package/app/.next/static/chunks/1i5xroz391zkb.js +0 -1
- package/app/.next/static/chunks/1vz50l951sr9e.css +0 -3
- package/app/.next/static/chunks/24ggj819yt3y6.js +0 -1
- package/app/.next/static/chunks/2_8lcalraul5s.js +0 -3
- package/app/.next/static/chunks/30i0-l04mmdvk.js +0 -1
- package/app/.next/static/chunks/3wdlh25l1vww9.js +0 -1
- /package/app/.next/static/{ewp56HqU5-d9bpFog3bli → gh3shm8hnVqXLr75rmvsL}/_buildManifest.js +0 -0
- /package/app/.next/static/{ewp56HqU5-d9bpFog3bli → gh3shm8hnVqXLr75rmvsL}/_clientMiddlewareManifest.js +0 -0
- /package/app/.next/static/{ewp56HqU5-d9bpFog3bli → gh3shm8hnVqXLr75rmvsL}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
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),_=e.i(88355),h=e.i(64909),v=e.i(39229),y=e.i(45383),b=e.i(64974),k=e.i(62349),E=e.i(67505);let w="[Delegation limit] Depth limit reached (max 3 handoffs). No further handoff.",S="[Delegation limit] Budget limit reached (max 12 delegated turns per user message). No further delegated turn.",A="hermes-gateway",T="agent-deck",R=new Map;function I(e,t){let n=R.get(e);n||(n=new Set,R.set(e,n)),n.add(t)}function $(e,t){let n=R.get(e);n&&(n.delete(t),0===n.size&&R.delete(e))}function C(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 N(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 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.turns>=12}function x(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===H(r.content)&&null===U(r.content)}let M=new Set,P=new Set;function O(e,t){N(e)||q(e)||r.uiTurns.countPending(e)>0||(r.uiTurns.enqueue(e,t,{reason:"tick"}),K())}function W(e){e.fired||M.has(e.id)||N(e.conversation_id)||q(e.conversation_id)||r.uiTurns.countPending(e.conversation_id)>0||(M.add(e.id),setTimeout(()=>{M.delete(e.id),O(e.conversation_id,e.bot_id)},Math.max(0,e.due_at-Date.now())))}function B(e){P.has(e.id)||N(e.conversation_id)||q(e.conversation_id)||r.uiTurns.countPending(e.conversation_id)>0||(P.add(e.id),setTimeout(()=>{P.delete(e.id),O(e.conversation_id,e.bot_id)},Math.max(0,e.next_due_at-Date.now())))}function F(){for(let e of n.oneShots.unfired())W(e);for(let e of n.routines.all())B(e)}function H(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 L="1"!==process.env.BOTMANCERS_NO_AUTOPROCESS;function K(){L&&setImmediate(()=>en())}let j=!1,z=new Map;function Y(e,t,n,r=null,i=function(e){return"hermes-gateway"===(0,k.agentTransport)((0,k.resolveAgent)(e).agent)?A:T}(t)){let o=(0,u.buildSnapshotInput)(t,n,r);z.set(e.id,{json:JSON.stringify(o),hash:(0,u.hashSnapshot)(o),transport:i})}function J(e){let t=z.get(e.id);if(z.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 Q(e){z.delete(e.id)}function V(e,t,r){
|
|
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),_=e.i(88355),h=e.i(64909),v=e.i(39229),y=e.i(45383),b=e.i(64974),k=e.i(62349),E=e.i(67505);let w="[Delegation limit] Depth limit reached (max 3 handoffs). No further handoff.",S="[Delegation limit] Budget limit reached (max 12 delegated turns per user message). No further delegated turn.",A="hermes-gateway",T="agent-deck",R=new Map;function I(e,t){let n=R.get(e);n||(n=new Set,R.set(e,n)),n.add(t)}function $(e,t){let n=R.get(e);n&&(n.delete(t),0===n.size&&R.delete(e))}function C(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 N(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 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.turns>=12}function x(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===H(r.content)&&null===U(r.content)}let M=new Set,P=new Set;function O(e,t){N(e)||q(e)||r.uiTurns.countPending(e)>0||(r.uiTurns.enqueue(e,t,{reason:"tick"}),K())}function W(e){e.fired||M.has(e.id)||N(e.conversation_id)||q(e.conversation_id)||r.uiTurns.countPending(e.conversation_id)>0||(M.add(e.id),setTimeout(()=>{M.delete(e.id),O(e.conversation_id,e.bot_id)},Math.max(0,e.due_at-Date.now())))}function B(e){P.has(e.id)||N(e.conversation_id)||q(e.conversation_id)||r.uiTurns.countPending(e.conversation_id)>0||(P.add(e.id),setTimeout(()=>{P.delete(e.id),O(e.conversation_id,e.bot_id)},Math.max(0,e.next_due_at-Date.now())))}function F(){for(let e of n.oneShots.unfired())W(e);for(let e of n.routines.all())B(e)}function H(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 L="1"!==process.env.BOTMANCERS_NO_AUTOPROCESS;function K(){L&&setImmediate(()=>en())}let j=!1,z=new Map;function Y(e,t,n,r=null,i=function(e){return"hermes-gateway"===(0,k.agentTransport)((0,k.resolveAgent)(e).agent)?A:T}(t)){let o=(0,u.buildSnapshotInput)(t,n,r);z.set(e.id,{json:JSON.stringify(o),hash:(0,u.hashSnapshot)(o),transport:i})}function J(e){let t=z.get(e.id);if(z.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 Q(e){z.delete(e.id)}function V(e,t,r){n.messages.create(e.conversation_id,"bot",function(e){let t=(0,k.resolveAgent)(e);switch(t.launch_blocker){case"session_scope":return`[Session scope needed] ${e.name} cannot launch: select its session scope in Config.`;case"direct_runtime":return`[Direct launch unavailable] ${e.name} is registered for direct launch; direct ${(0,k.agentLabel)(t.agent)} sessions are not available in this Botmancers version yet.`;case"agent":return`[Launch blocked] ${e.name} has an unsupported Agent type.`;default:var n,r;let i;return n=e.name,i=(r=t.deck_name)?` (legacy deck "${r}")`:"",`[Deck needs selection] ${n} cannot launch: no Agent Deck is selected${i}. Select a deck, or choose the Direct launch profile in Config, before launching.`}}(t),t.id),C(e,r,t.id),K()}async function Z(e){let t,i,{item:o,bot:a,conversationMessages:s,latestUser:d,chain:u,openGroupTurn:c,delegated:f}=e;if(Y(o,a,{path:null,present:null,content:null},null,T),c){Q(o),K();return}if(u&&u.turns>=12){n.messages.create(o.conversation_id,"bot",S,a.id),r.uiTurns.cancelPending(o.conversation_id),K();return}let p=(0,k.resolveAgent)(a);if(!p.launchable||!p.deck_id){if("direct"===p.launch_profile&&!d&&!f){Q(o),K();return}V(o,a,u);return}try{t=(0,v.parseDeckRuntime)(p.agent)}catch{n.messages.create(o.conversation_id,"bot",`[Deck failed] agent=${p.agent} deck=${p.deck_id} error=Invalid agent-deck run client.`,a.id),C(o,u,a.id),K();return}let m=(f?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}(s,a.name):null)??d?.content??null;if(!m||!m.trim()||u?.stopped){Q(o),K();return}let g=(0,E.getAgentDeckServerUrl)();if(!(0,E.isLocalAgentDeckUrl)(g)){n.messages.create(o.conversation_id,"bot",(0,E.remoteLaunchUnsupportedMessage)(g),a.id),C(o,u,a.id),K();return}try{i=(0,E.resolveAndEnsureBotWorkdir)(a.id,p.working_directory)}catch(e){n.messages.create(o.conversation_id,"bot",`[Deck failed] agent=${t} deck=${p.deck_id} error=${String(e instanceof Error?e.message:e).slice(0,300)}`,a.id),C(o,u,a.id),K();return}u?.addTurns(1);let _=(0,l.readSkillState)(a.name),h=n.memories.latestFacts(a.id);Y(o,{...a,agent:t,deck_id:p.deck_id,working_directory:i},_,h,T),("message"===o.kind?await X(o,a,t,p.deck_id):await ee({item:o,bot:a,client:t,deck:p.deck_id,cwd:i,task:m.trim(),chain:u,delegated:f}))&&C(o,u,a.id),K()}function G(e,t,r,i,o){n.messages.create(e.conversation_id,"bot",`[Deck failed] agent=${r} deck=${i} error=${o.slice(0,300)}`,t.id)}async function X(e,t,i,o){let a=e.id;r.uiTurns.handOff(a),await (0,y.startAgentDispatch)(a);let s=n.engine.getWorkRequest(a);return s?.state==="failed"?(G(e,t,i,o,s.error_message??s.error_code??"The agent runtime did not complete the turn."),!0):s?.state==="completed"}async function ee(e){let{item:t,bot:r,client:i,deck:o,cwd:a,task:s,chain:d,delegated:l}=e,u=(0,b.selectExecutionPolicy)(l?{entryPoint:"wake",executionKind:"conversation",wakeSyntax:"legacy"}:{entryPoint:"ui",executionKind:"conversation"});if(!u.ok)return G(t,r,i,o,u.reason),!0;let c=await (0,v.createAgentDeckAttemptAdapter)().run({target:{agentId:r.id,agent:i},prompt:{kind:"text",text:s},cwd:a,deck:o,toolProfile:u.policy.tool_profile,sessionBinding:null,correlation:{conversationId:t.conversation_id}});return!d?.stopped&&("completed"!==c.status||null===c.output?G(t,r,i,o,c.failure?.message??`agent-deck run ${c.externalRunId??"unknown"} failed`):n.messages.create(t.conversation_id,"bot",c.output,r.id),!0)}async function et(){let e=r.uiTurns.next();if(!e)return!1;if(!r.uiTurns.start(e.id))return!0;try{await eo(e),r.uiTurns.finish(e.id,"completed"),J(e)}catch(t){console.error("Error processing UI turn:",t),r.uiTurns.finish(e.id,"failed"),J(e)}return!0}async function en(){if(!j){j=!0;try{for(;await et(););}finally{j=!1}}}async function er(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
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
module.exports=[43345,e=>{"use strict";var t=e.i(62294),n=e.i(26571),r=e.i(45383);let a=["authentication_unavailable","unauthenticated","principal_mismatch","agent_not_found","conversation_not_found","request_not_found"];async function i(e,n){let i,s=null,o=!1,d=null;try{i=await e(e=>{s=e},()=>{let e=s;n&&e&&"service"===e.kind&&t.serviceAudit.append({principal:e,operation:n.operation,capability:"participant",targetKind:n.targetKind,targetRef:n.targetRef,outcome:"allowed",code:null}),o=!0})}catch(e){if(e instanceof r.AgentApiError)d=e.code,i=Response.json({error:{code:e.code,message:e.message}},{status:e.status});else console.error("Agent conversation API error:",e),d="internal_error",i=Response.json({error:{code:"internal_error",message:"The request could not be processed."}},{status:500})}let _=s;if(o&&null===d)return i;if(n&&_&&"service"===_.kind)try{t.serviceAudit.append({principal:_,operation:n.operation,capability:"participant",targetKind:n.targetKind,targetRef:n.targetRef,outcome:null===d?"allowed":"internal_error"===d?"error":a.includes(d)?"denied":"rejected",code:d})}catch(e){return console.error("Service audit append failed:",e instanceof Error?e.message:"unknown error"),Response.json({error:{code:"internal_error",message:"The request could not be processed."}},{status:500})}return i}async function s(e){let t,a=function(){try{return(0,n.serviceTokenAuthenticatorFromEnv)()}catch(e){if(e instanceof n.ServiceTokenConfigError)return console.error(`Agent API authentication disabled: ${e.message}`),null;throw e}}();if(!a)throw new r.AgentApiError("authentication_unavailable","No authenticator is configured for the agent conversation API.");try{t=await a(e)}catch{t=null}if(!t||!(0,r.isPrincipalKind)(t.kind)||"string"!=typeof t.id||!t.id.trim())throw new r.AgentApiError("unauthenticated","Authentication failed.");return{kind:t.kind,id:t.id}}async function o(e,t){return i(async(n,a)=>{var i;let o,d=await s(e);n(d);try{let t=await e.json();if(!t||"object"!=typeof t||Array.isArray(t))throw Error("not an object");o=t}catch{throw new r.AgentApiError("invalid_request","The request body must be a JSON object.")}let _=null==(i=o.principal)?null:{kind:i.kind,id:String(i.id??"")};if(_&&!(0,r.samePrincipal)(_,d))throw new r.AgentApiError("principal_mismatch","The declared principal does not match the authenticated principal.");let l=e.headers.get("idempotency-key"),c="string"==typeof o.idempotencyKey?o.idempotencyKey:null;if(l&&c&&l!==c)throw new r.AgentApiError("invalid_request","Idempotency-Key header and body idempotencyKey differ.");let u=l??c??"";if(u.toLowerCase().startsWith(r.MCP_IDEMPOTENCY_PREFIX))throw new r.AgentApiError("invalid_request",`Idempotency keys starting with "${r.MCP_IDEMPOTENCY_PREFIX}" are reserved for the MCP bridge.`);let{accepted:p,dispatched:g}=(0,r.acceptAgentMessage)(d,{agentId:t,content:"string"==typeof o.content?o.content:"",idempotencyKey:u,conversationId:"string"==typeof o.conversationId?o.conversationId:null==o.conversationId?null:""},a);return!0===o.wait?(await g,Response.json({...(0,r.getAgentRequest)(d,p.requestId),replayed:p.replayed})):Response.json(p,{status:p.replayed?200:202})},{operation:"agents.message",targetKind:"agent",targetRef:t})}async function d(e,t){return i(async n=>{let a=await s(e);return n(a),Response.json((0,r.getConversation)(a,t))},{operation:"conversations.read",targetKind:"conversation",targetRef:t})}async function _(e,t){return i(async n=>{let a=await s(e);return n(a),Response.json((0,r.getAgentRequest)(a,t))},{operation:"requests.read",targetKind:"request",targetRef:t})}e.s(["authenticate",0,s,"handleGetAgentRequest",0,_,"handleGetConversation",0,d,"handleSendAgentMessage",0,o])},90027,e=>{"use strict";var t=e.i(62349),n=e.i(28420);let r=["active","ended","all"],a=["implementation","revision"],i=`
|
|
2
|
+
SELECT b.*, bot.name AS agent_name, bot.agent AS agent_runtime, r.id AS origin_request_id, c.id AS origin_conversation_id,
|
|
3
|
+
c.type AS conversation_type, c.bot_id AS conversation_bot_id, tb.name AS thread_agent_name, g.name AS group_name,
|
|
4
|
+
r.intent AS request_intent, r.execution_kind AS request_kind, r.state AS request_state,
|
|
5
|
+
r.source_conversation_id AS request_conversation_id, r.target_agent_id AS request_target_agent_id,
|
|
6
|
+
sa.launch_snapshot AS source_snapshot, sa.finished_at AS source_finished_at,
|
|
7
|
+
(SELECT MAX(COALESCE(ra.finished_at, ra.started_at)) FROM work_attempts ra WHERE ra.resumed_session_binding_id = b.id) AS resumed_last_at,
|
|
8
|
+
EXISTS (SELECT 1 FROM work_attempts oa WHERE oa.resumed_session_binding_id = b.id AND oa.finished_at IS NULL) AS attempt_running,
|
|
9
|
+
ps.availability AS ps_availability, ps.lifecycle AS ps_lifecycle, ps.resumable AS ps_resumable, ps.busy AS ps_busy,
|
|
10
|
+
ps.workspace AS ps_workspace, ps.last_synced_at AS ps_synced_at,
|
|
11
|
+
EXISTS (SELECT 1 FROM provider_session_turns pt WHERE pt.session_ref = ps.id AND pt.state = 'running') AS ps_running
|
|
12
|
+
FROM session_bindings b
|
|
13
|
+
JOIN bots bot ON bot.id = b.agent_id
|
|
14
|
+
LEFT JOIN provider_sessions ps ON ps.binding_id = b.id
|
|
15
|
+
LEFT JOIN work_attempts sa ON sa.id = b.source_attempt_id
|
|
16
|
+
LEFT JOIN work_requests r ON r.id = COALESCE(b.request_id, sa.request_id)
|
|
17
|
+
LEFT JOIN conversations c ON c.id = COALESCE(b.conversation_id, r.source_conversation_id)
|
|
18
|
+
LEFT JOIN bots tb ON tb.id = c.bot_id
|
|
19
|
+
LEFT JOIN groups g ON g.id = c.group_id
|
|
20
|
+
`,s=`
|
|
21
|
+
SELECT ps.id, ps.agent_id, bot.name AS agent_name, ps.provider_kind, ps.title, ps.workspace,
|
|
22
|
+
ps.provider_created_at, ps.provider_updated_at, ps.availability, ps.lifecycle, ps.resumable, ps.busy,
|
|
23
|
+
ps.last_synced_at, ps.created_at, ps.updated_at,
|
|
24
|
+
(SELECT MAX(COALESCE(t.finished_at, t.created_at)) FROM provider_session_turns t WHERE t.session_ref = ps.id) AS turn_last_at,
|
|
25
|
+
EXISTS (SELECT 1 FROM provider_session_turns t WHERE t.session_ref = ps.id AND t.state = 'running') AS running
|
|
26
|
+
FROM provider_sessions ps
|
|
27
|
+
JOIN bots bot ON bot.id = ps.agent_id
|
|
28
|
+
WHERE ps.binding_id IS NULL
|
|
29
|
+
`;function o(e){return`${new Date(e).toISOString().slice(0,16).replace("T"," ")} UTC`}function d(e,t){let n=e?.[t];return"string"==typeof n&&n.trim().length>0?n:null}function _(e){let t=e.origin_conversation_id;return t?"group"===e.conversation_type?{id:t,kind:"group",label:e.group_name?`Group ${e.group_name}`:"Group thread",thread_agent_id:null}:"bot"===e.conversation_type&&e.conversation_bot_id?{id:t,kind:"direct",label:e.thread_agent_name?`${e.thread_agent_name} thread`:"Agent thread",thread_agent_id:e.thread_agent_name?e.conversation_bot_id:null}:{id:t,kind:"agent_api",label:"Agent API conversation",thread_agent_id:null}:null}function l(e,r=(0,n.emptyUsage)()){let i,s=null;try{s=e.source_snapshot?JSON.parse(e.source_snapshot):null}catch{}let c=_(e),u=null===e.released_at?"active":"ended",p=((i=(e.request_intent??"").split("\n").map(e=>e.trim()).find(e=>e.length>0))?i.length>80?`${i.slice(0,79).trimEnd()}…`:i:null)??(c?.kind==="group"?c.label:null)??`${e.agent_name} \xb7 ${o(e.created_at)}`;return{ref:e.id,source:"botmancers",agent:{id:e.agent_id,name:e.agent_name,adapter:e.adapter,transport:d(s,"transport")},title:p,status:u,resumable:null===e.released_at&&null!==e.request_id&&null!==e.request_kind&&a.includes(e.request_kind)&&e.request_target_agent_id===e.agent_id&&(e.conversation_id??"")===(e.request_conversation_id??"")&&e.adapter===(0,t.resolveAgent)({agent:e.agent_runtime}).agent,state:{availability:e.ps_availability??"available",lifecycle:e.ps_lifecycle??"open",resumable:null===e.ps_resumable||void 0===e.ps_resumable?null:1===e.ps_resumable,busy:1===e.ps_busy||!!e.attempt_running||!!e.ps_running,synced_at:e.ps_synced_at??null},created_at:e.created_at,ended_at:e.released_at,last_activity_at:Math.max(e.created_at,e.released_at??0,e.source_finished_at??0,e.resumed_last_at??0),origin:{conversation:c,work_request:e.origin_request_id&&e.request_kind&&e.request_state?{id:e.origin_request_id,execution_kind:e.request_kind,state:e.request_state}:null},context:{workspace:d(s,"cwd")??e.ps_workspace??null,deck:d(s,"deck")},usage:r}}function c(e,t=(0,n.emptyUsage)()){let r=e.provider_created_at??e.created_at,a=null===e.resumable?null:1===e.resumable,i="archived"===e.lifecycle?e.provider_updated_at??e.updated_at:null;return{ref:e.id,source:"native",agent:{id:e.agent_id,name:e.agent_name,adapter:e.provider_kind,transport:null},title:e.title??`${e.agent_name} \xb7 ${o(r)}`,status:"open"===e.lifecycle?"active":"ended",resumable:!1,state:{availability:e.availability,lifecycle:e.lifecycle,resumable:a,busy:1===e.busy||!!e.running,synced_at:e.last_synced_at},created_at:r,ended_at:i,last_activity_at:Math.max(r,e.provider_updated_at??0,e.turn_last_at??0),origin:{conversation:null,work_request:null},context:{workspace:e.workspace,deck:null},usage:t}}function u(e,t){return t.last_activity_at-e.last_activity_at||t.created_at-e.created_at||(e.ref<t.ref?-1:+(e.ref>t.ref))}function p(e,t,n){return e.prepare(`${s} AND ps.id = ? AND ps.agent_id = ?`).get(n,t)}function g(e,t,n){return e.prepare(`${i} WHERE b.id = ? AND b.agent_id = ?`).get(n,t)}e.s(["agentExists",0,function(e,t){return!!e.prepare("SELECT 1 FROM bots WHERE id = ?").get(t)},"conversationRef",0,function(e,t){let n=e.prepare(`
|
|
30
|
+
SELECT c.id AS origin_conversation_id, c.type AS conversation_type, c.bot_id AS conversation_bot_id,
|
|
31
|
+
tb.name AS thread_agent_name, g.name AS group_name
|
|
32
|
+
FROM conversations c
|
|
33
|
+
LEFT JOIN bots tb ON tb.id = c.bot_id
|
|
34
|
+
LEFT JOIN groups g ON g.id = c.group_id
|
|
35
|
+
WHERE c.id = ?
|
|
36
|
+
`).get(t);return n?_(n):null},"getAgentSession",0,function(e,t,r){let a=g(e,t,r);if(!a){let a=p(e,t,r);if(!a)return;let{usage:i,samples:s}=(0,n.sessionUsageSamples)(e,t,r);return{...c(a,i),attempts:[],usage_samples:s}}let i=e.prepare(`
|
|
37
|
+
SELECT a.attempt_number, a.kind, a.request_id, a.outcome, a.started_at, a.finished_at,
|
|
38
|
+
CASE WHEN a.id = ? THEN 'source' ELSE 'resume' END AS role
|
|
39
|
+
FROM work_attempts a
|
|
40
|
+
WHERE a.id = ? OR a.resumed_session_binding_id = ?
|
|
41
|
+
ORDER BY a.started_at ASC, a.id ASC
|
|
42
|
+
`).all(a.source_attempt_id,a.source_attempt_id,a.id),{usage:s,samples:o}=(0,n.sessionUsageSamples)(e,t,r);return{...l(a,s),attempts:i,usage_samples:o}},"isSessionFilter",0,function(e){return"string"==typeof e&&r.includes(e)},"listAgentSessions",0,function(e,t,r="all"){let a=e.prepare(`${i} WHERE b.agent_id = ? ${"active"===r?"AND b.released_at IS NULL":"ended"===r?"AND b.released_at IS NOT NULL":""}`).all(t),o=e.prepare(`${s} AND ps.agent_id = ? ${"active"===r?"AND ps.lifecycle = 'open'":"ended"===r?"AND ps.lifecycle = 'archived'":""}`).all(t),d=(0,n.agentSessionUsage)(e,t);return[...a.map(e=>l(e,d.get(e.id))),...o.map(e=>c(e,d.get(e.id)))].sort(u)},"sessionDebugExternalId",0,function(e,t,n){let r=g(e,t,n)?.external_session_id;if(void 0!==r)return r;if(!p(e,t,n))return;let a=e.prepare("SELECT provider_session_id FROM provider_sessions WHERE id = ? AND agent_id = ?").get(n,t);return a?.provider_session_id},"sessionTitle",0,function(e,t,n){let r=g(e,t,n);if(r)return l(r).title;let a=p(e,t,n);return a?c(a).title:null}])}];
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=lib_0riiofz._.js.map
|