@desplega.ai/agent-swarm 2.13.2 → 2.13.4
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/dist/acp-adapter-mr4temec.js +17 -0
- package/dist/{acp-targets-mz8c5dnt.js → acp-targets-zrk9k0n7.js} +10 -10
- package/dist/{actions-5ft3qp5a.js → actions-acqqj9jn.js} +236 -26
- package/dist/{agent-fs-provision-6fgz7wvz.js → agent-fs-provision-zmaykqnd.js} +4 -4
- package/dist/{amp-adapter-nthn8ezm.js → amp-adapter-a7ts8tmw.js} +3 -3
- package/dist/{app-535m78qw.js → app-tmwa442h.js} +7 -7
- package/dist/{approval-notifications-dewbk403.js → approval-notifications-6psaaaye.js} +8 -8
- package/dist/{assistant-39zyabv2.js → assistant-564v6emv.js} +25 -25
- package/dist/{boot-args-schema-bqv5bf77.js → boot-args-schema-n099e0f2.js} +1 -1
- package/dist/{boot-reembed-fas7z3zn.js → boot-reembed-chx66qfk.js} +1 -1
- package/dist/{boot-reembed-157c0gcz.js → boot-reembed-epvg4fp9.js} +1 -1
- package/dist/{boot-scrub-sweep-tmec0be2.js → boot-scrub-sweep-dhkfp0a7.js} +2 -2
- package/dist/{boot-seeds-32zm50x2.js → boot-seeds-m74fc07r.js} +4 -4
- package/dist/{boxd-hr8rsxzq.js → boxd-451q55ys.js} +1 -1
- package/dist/{claude-adapter-gwq7x2nj.js → claude-adapter-hw63yj3j.js} +12 -9
- package/dist/{claude-managed-adapter-rkvw6fvq.js → claude-managed-adapter-z5s7fx6p.js} +3 -3
- package/dist/{claude-managed-setup-0vgz4d1j.js → claude-managed-setup-wee1762m.js} +3 -3
- package/dist/{claude-sdk-session-5wbwxy8c.js → claude-sdk-session-cktyqkpk.js} +27 -13
- package/dist/{cli-d528acsw.js → cli-0fgvnb0x.js} +7 -7
- package/dist/{cli-2v4xxnx2.js → cli-0h8skzss.js} +1 -1
- package/dist/{cli-jkkcm72j.js → cli-0p76my9q.js} +31 -16
- package/dist/{cli-fp65jdp2.js → cli-1kvcsd2f.js} +219 -155
- package/dist/{cli-gc7jkf4a.js → cli-1vmhnncj.js} +3 -3
- package/dist/{cli-tceqvv6h.js → cli-29h5239w.js} +5 -5
- package/dist/cli-2ap1the6.js +11 -0
- package/dist/{cli-8fj8yfmk.js → cli-2vp0z049.js} +1 -1
- package/dist/{cli-ewb028rs.js → cli-3bxrrh53.js} +4 -4
- package/dist/{cli-nvqq3232.js → cli-3tzmh38q.js} +9 -9
- package/dist/{cli-0xwb7zpt.js → cli-3xqad83h.js} +2 -2
- package/dist/{cli-0f7n3td3.js → cli-3zrwrnz7.js} +1 -1
- package/dist/{cli-2wde56gv.js → cli-404am6f3.js} +7 -7
- package/dist/{cli-r4fphq38.js → cli-49aq3cyn.js} +4 -4
- package/dist/{cli-8qvte9hn.js → cli-4fpa0zns.js} +3 -3
- package/dist/{cli-x5yb8zc8.js → cli-4pbwg7sn.js} +2 -2
- package/dist/{cli-s08zsqva.js → cli-4q2c8rxw.js} +76 -10
- package/dist/{cli-3mf04tkh.js → cli-4vynxtrb.js} +1 -1
- package/dist/{cli-tbdw3f92.js → cli-5ashycw3.js} +3 -3
- package/dist/{cli-c9bwawf9.js → cli-5rgm8p39.js} +3 -3
- package/dist/{cli-g0b3ma7r.js → cli-5rxsb3wq.js} +6 -6
- package/dist/{cli-a6rzw649.js → cli-60dwk8tx.js} +3 -3
- package/dist/{cli-xhkek467.js → cli-7by7vp6m.js} +30 -4
- package/dist/{cli-62fjschk.js → cli-7g3fg4gf.js} +7 -7
- package/dist/{cli-ka13xx6b.js → cli-7gbff32z.js} +2 -2
- package/dist/{cli-q8aq48v1.js → cli-8b4rpnwj.js} +1 -1
- package/dist/{cli-1f48qdnb.js → cli-8cas2xvp.js} +3 -3
- package/dist/{cli-dnvmwsvc.js → cli-904wk98s.js} +799 -371
- package/dist/{cli-m1wddksc.js → cli-93n305hm.js} +2 -2
- package/dist/{cli-31vt7baf.js → cli-944w9wb4.js} +21 -17
- package/dist/{cli-je587f74.js → cli-94gx6ze9.js} +1 -1
- package/dist/{cli-fcwrd7bh.js → cli-9ah37a8a.js} +6 -6
- package/dist/{cli-rfejbpe1.js → cli-akm6y2a8.js} +1 -1
- package/dist/{cli-f8rcvf2x.js → cli-azj9t1f9.js} +37 -2
- package/dist/{cli-mwxez0pz.js → cli-b768ek79.js} +1 -1
- package/dist/{cli-cmgdptmx.js → cli-bv4vvnmg.js} +31 -7
- package/dist/{cli-1gevjrc1.js → cli-bzcwwebm.js} +1 -1
- package/dist/{cli-sjk85d7v.js → cli-cq4am6vg.js} +3 -3
- package/dist/{cli-f1sdh8ca.js → cli-d5pc8ep0.js} +103 -9
- package/dist/{cli-7m6bbtab.js → cli-ea7nz50q.js} +12 -12
- package/dist/{cli-zkbz8m2q.js → cli-fkpnx3vf.js} +1 -1
- package/dist/{cli-ya1cj689.js → cli-fw67mnyc.js} +1 -1
- package/dist/{cli-5basv0e7.js → cli-gkv0r2hq.js} +1 -1
- package/dist/{cli-nkfv398a.js → cli-gse7bp3z.js} +12 -10
- package/dist/{cli-4djg31jh.js → cli-gtj12v95.js} +1 -1
- package/dist/{cli-qn79645p.js → cli-h9d3sdnc.js} +1 -1
- package/dist/{cli-tgmate57.js → cli-hdhpdrka.js} +6 -23
- package/dist/{cli-fgm2mad9.js → cli-hhtbandk.js} +2 -2
- package/dist/cli-hyqksecw.js +1907 -0
- package/dist/{cli-t25rq8mg.js → cli-ja450998.js} +40 -11
- package/dist/{cli-43dsqhcp.js → cli-jbrc98qb.js} +4 -4
- package/dist/{cli-82j36f2m.js → cli-jjzxsk47.js} +9 -3
- package/dist/{cli-xerdrnqs.js → cli-jyhbvdga.js} +3 -3
- package/dist/{cli-t9nxq30h.js → cli-jzerrzgc.js} +8 -8
- package/dist/{cli-hv3820ez.js → cli-k0nebh10.js} +1 -1
- package/dist/{cli-s6fhqbz1.js → cli-ka48vpev.js} +6 -6
- package/dist/{cli-d2epqm0y.js → cli-kezzteka.js} +1 -1
- package/dist/{cli-getrvmtx.js → cli-kj84fqxz.js} +2 -2
- package/dist/{cli-h0ewec3d.js → cli-kr0jpw9c.js} +1 -1
- package/dist/{cli-gq6qhmrr.js → cli-m1sns1da.js} +3 -3
- package/dist/{cli-bp2rt28p.js → cli-n1kjs58m.js} +5 -5
- package/dist/{cli-rvhaahfv.js → cli-nc4pbwmp.js} +9 -9
- package/dist/{cli-d0jb2qnt.js → cli-p3knvk62.js} +74 -47
- package/dist/{cli-50whymxq.js → cli-p436yrzp.js} +2 -2
- package/dist/{cli-cs26ed89.js → cli-phdzn699.js} +8 -8
- package/dist/{cli-b0kqw55g.js → cli-pz1dp12c.js} +1 -1
- package/dist/{cli-8a4qg44m.js → cli-pz1nq5xm.js} +6 -6
- package/dist/{cli-e87fg3en.js → cli-qzz6tz8s.js} +1 -1
- package/dist/{cli-69eq6gdk.js → cli-rmgvwcmy.js} +38 -29
- package/dist/{cli-5k1hvycs.js → cli-rv3y60bt.js} +4 -4
- package/dist/cli-s33bzmk0.js +27 -0
- package/dist/{cli-at67kvnp.js → cli-srktrbby.js} +1 -1
- package/dist/{cli-6rmryz03.js → cli-t0jmkcah.js} +14 -14
- package/dist/{cli-eetzmsy5.js → cli-t9pzz2eq.js} +2 -2
- package/dist/{cli-wdtqkqnq.js → cli-tr19nyn9.js} +4 -4
- package/dist/{cli-erh1rgh4.js → cli-ts5yv7dn.js} +165 -88
- package/dist/{cli-zqy28rwx.js → cli-tsc3pdfd.js} +4 -4
- package/dist/{cli-x7aqhxj5.js → cli-tzw1jr2t.js} +2 -2
- package/dist/{cli-n14r8h4n.js → cli-x2cem5vy.js} +6 -4
- package/dist/{cli-vx9acp12.js → cli-ybte1fqc.js} +1 -1
- package/dist/{cli-xysy1g8x.js → cli-ysv0k1we.js} +2 -2
- package/dist/{cli-vdfngx2g.js → cli-ywy8yz6t.js} +2 -2
- package/dist/{cli-cpkxh68d.js → cli-z1vam71h.js} +2 -2
- package/dist/{cli-zm6bkx3e.js → cli-zexwhj3f.js} +3 -3
- package/dist/{cli-j2ybkdk2.js → cli-zhwjdhjr.js} +2 -2
- package/dist/{cli-gedf48yw.js → cli-zjdhrzm0.js} +8 -8
- package/dist/cli.js +20 -20
- package/dist/{codex-adapter-x25xfbnh.js → codex-adapter-2fs2c0n6.js} +8 -8
- package/dist/{codex-hook-c0nvm30r.js → codex-hook-jxjv6dy5.js} +10 -3
- package/dist/{codex-login-ven5cz5j.js → codex-login-ktfg1cxk.js} +1 -1
- package/dist/{codex-session-runner-kn5xnrvp.js → codex-session-runner-r55tmx4c.js} +9 -9
- package/dist/{commands-8n59gxmy.js → commands-0mxdy9x8.js} +3 -3
- package/dist/{controller-wn3vd217.js → controller-g3vkfhr4.js} +4 -4
- package/dist/{controllers-connect-09gvkrhc.js → controllers-connect-4wdmncqt.js} +25 -25
- package/dist/core-gsvj5f3z.js +42 -0
- package/dist/{cursor-adapter-w1681kp1.js → cursor-adapter-t9qb96q2.js} +2 -2
- package/dist/{db-e71keqxk.js → db-487vvyv9.js} +3 -3
- package/dist/{db-spg81qtr.js → db-76p7w3gr.js} +2 -2
- package/dist/{devin-adapter-fs90ab4v.js → devin-adapter-3bp6rape.js} +1 -1
- package/dist/{dispatcher-fr4vawwb.js → dispatcher-64rp6w67.js} +22 -22
- package/dist/{docker-1h33jvh9.js → docker-a59g3ebm.js} +2 -2
- package/dist/{dsh-adapter-g9yqv09y.js → dsh-adapter-8abzqk5c.js} +2 -2
- package/dist/{e2b-y7e5kmzf.js → e2b-3ykbe805.js} +2 -2
- package/dist/{e2b-jnk0yeva.js → e2b-dc8f6ctq.js} +2 -2
- package/dist/{easter-egg-3d-ac9tv9a6.js → easter-egg-3d-jrrwyf55.js} +1 -1
- package/dist/{embedding-space-an77f45k.js → embedding-space-001hhhpk.js} +6 -6
- package/dist/{embeddings-jkrehejr.js → embeddings-esj19cnw.js} +1 -1
- package/dist/{event-bus-08t2b4y2.js → event-bus-7gbsr0g4.js} +1 -1
- package/dist/{execute-3mys4nta.js → execute-301hkxqg.js} +1 -1
- package/dist/{external-channel-s6zxpts9.js → external-channel-w10e2j05.js} +2 -2
- package/dist/fx-adapter-4sjrbdne.js +20 -0
- package/dist/grok-adapter-3a0ezfee.js +20 -0
- package/dist/handlers-ef3k11hb.js +41 -0
- package/dist/{heartbeat-jjpb44e5.js → heartbeat-tbrj7vhq.js} +25 -25
- package/dist/hook-3am1sq68.js +22 -0
- package/dist/{hook-y6n23zzj.js → hook-tx917rqw.js} +11 -8
- package/dist/{http-8c6y008s.js → http-3rmemtqy.js} +340 -1841
- package/dist/{index-mbpxhc4w.js → index-126v2d0t.js} +1 -4
- package/dist/{index-xcw7hjt5.js → index-2jw11t8s.js} +26 -26
- package/dist/{index-p2f5xg64.js → index-3j803vnb.js} +36259 -34299
- package/dist/{index-we3nd2t0.js → index-aetfyx6p.js} +1 -1
- package/dist/index-e6bq0exk.js +42 -0
- package/dist/{index-0vthtbc2.js → index-gfnq66t1.js} +231 -25
- package/dist/index-hf2k1vge.js +39 -0
- package/dist/{index-6h3r0vpe.js → index-s7xtvc0f.js} +1 -1
- package/dist/index-taxmejj3.js +44 -0
- package/dist/{k8s-8326q0rq.js → k8s-36gfn847.js} +2 -2
- package/dist/{keepalive-7e9r5dvp.js → keepalive-9px3t7qj.js} +5 -5
- package/dist/lead-5vt6f174.js +83 -0
- package/dist/{maintenance-d3erjvcg.js → maintenance-vwqjwst6.js} +1 -1
- package/dist/{oauth-refresh-sweep-0qh70988.js → oauth-refresh-sweep-yqry3wn4.js} +4 -4
- package/dist/{object-webhooks-ac7v2q5p.js → object-webhooks-8s1wtths.js} +7 -7
- package/dist/{onboard-5yphtken.js → onboard-hb8czx0p.js} +7 -7
- package/dist/{opencode-adapter-0xvyba4m.js → opencode-adapter-djd6m6dk.js} +8 -8
- package/dist/{otel-impl-svqp691q.js → otel-impl-2ymwyczz.js} +2 -2
- package/dist/{pending-bn4xe5br.js → pending-nxavtvx7.js} +23 -23
- package/dist/{pi-mono-adapter-763s8a3w.js → pi-mono-adapter-d2cpmcy4.js} +13 -13
- package/dist/{pricing-refresh-kfc215mf.js → pricing-refresh-1yz8jkqv.js} +2 -2
- package/dist/{rbac-roles-6r4h2ghj.js → rbac-roles-7s6m31xw.js} +6 -4
- package/dist/{rbac-roles-3bznvkpt.js → rbac-roles-dbpx0x9v.js} +3 -3
- package/dist/{render-v2-f3qedbpy.js → render-v2-7y20rjrn.js} +7 -7
- package/dist/{resume-vcag4ann.js → resume-wz546x47.js} +10 -10
- package/dist/{runtime-x0s55z2t.js → runtime-cb5bd9tz.js} +1 -1
- package/dist/{session-access-nwzve8q2.js → session-access-4vcft8kq.js} +5 -5
- package/dist/{session-source-backfill-jpqfzmgz.js → session-source-backfill-57b50tpw.js} +3 -3
- package/dist/{setup-d2smwaem.js → setup-e1tevjyj.js} +1 -1
- package/dist/thread-buffer-686pa1p1.js +42 -0
- package/dist/{tree-visibility-dwzc8en0.js → tree-visibility-07wf1nct.js} +2 -2
- package/dist/{user-merge-jobs-4ce7kma2.js → user-merge-jobs-n20qpv6s.js} +3 -3
- package/dist/{virtual-modules-78a6yw71.js → virtual-modules-6fxmn1yv.js} +3 -3
- package/dist/{work-objects-m0w1e7q8.js → work-objects-eg7y48pe.js} +25 -25
- package/dist/worker-4vp616ms.js +83 -0
- package/dist/{worker-follow-up-e3t6f895.js → worker-follow-up-jnvnnf2b.js} +22 -22
- package/dist/{x-asbrnafg.js → x-d27jj7z7.js} +2 -2
- package/openapi.json +478 -28
- package/package.json +3 -3
- package/src/be/db/approvals.ts +2 -0
- package/src/be/db/runtime.ts +5 -0
- package/src/be/db/script-run-sources.ts +17 -0
- package/src/be/db-retention.ts +1 -1
- package/src/be/db.ts +71 -62
- package/src/be/design-system.ts +63 -0
- package/src/be/migrations/342_script_run_sources.sql +20 -0
- package/src/be/migrations/runner.ts +8 -0
- package/src/be/migrations/script-run-sources.ts +51 -0
- package/src/be/rbac-roles.ts +2 -0
- package/src/be/scripts/typecheck.ts +4 -2
- package/src/be/seed-scripts/catalog/design-system-seed.ts +158 -0
- package/src/be/seed-scripts/index.ts +9 -0
- package/src/be/swarm-config-guard.ts +21 -1
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/runner.ts +62 -6
- package/src/heartbeat/heartbeat.ts +18 -4
- package/src/hooks/codex-hook.ts +15 -4
- package/src/hooks/hook.ts +7 -0
- package/src/http/all-routes.ts +1 -0
- package/src/http/approval-chat-answer.ts +99 -0
- package/src/http/approval-requests.ts +280 -225
- package/src/http/design-system.ts +103 -0
- package/src/http/index.ts +10 -6
- package/src/http/pages-public.ts +25 -10
- package/src/http/pages.ts +17 -0
- package/src/http/person-responder.ts +28 -0
- package/src/http/session-cost-recompute.ts +3 -1
- package/src/http/session-data.ts +3 -0
- package/src/integrations/chat-sdk/adapters.ts +33 -3
- package/src/integrations/chat-sdk/inbound.ts +6 -18
- package/src/integrations/chat-sdk/mentions.ts +188 -0
- package/src/integrations/chat-sdk/outbound.ts +20 -3
- package/src/integrations/chat-sdk/router.ts +8 -0
- package/src/integrations/chat-sdk/telegram-thread.ts +12 -0
- package/src/jira/adf.ts +35 -9
- package/src/kv-reserved-namespaces.ts +5 -0
- package/src/pages/page-head.ts +11 -1
- package/src/prompts/base-prompt.ts +1 -1
- package/src/prompts/session-templates.ts +1 -1
- package/src/providers/acp-targets.ts +2 -2
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/claude-adapter.ts +21 -1
- package/src/providers/claude-sdk-session.ts +22 -3
- package/src/providers/claude-session-events.ts +76 -1
- package/src/providers/cursor-adapter.ts +1 -1
- package/src/providers/dsh-adapter.ts +48 -13
- package/src/providers/fx-adapter.ts +2 -2
- package/src/providers/pricing-sources.md +3 -0
- package/src/providers/types.ts +13 -0
- package/src/rbac/legacy-policy.ts +4 -0
- package/src/rbac/permissions.ts +8 -0
- package/src/scheduler/index.ts +1 -0
- package/src/scheduler/scheduler.test.ts +32 -1
- package/src/scheduler/scheduler.ts +24 -1
- package/src/script-workflows/executor.ts +6 -0
- package/src/script-workflows/supervisor.ts +2 -1
- package/src/scripts-runtime/sdk-allowlist.ts +2 -0
- package/src/scripts-runtime/swarm-sdk.ts +12 -23
- package/src/scripts-runtime/types/stdlib.d.ts +4 -1
- package/src/scripts-runtime/types/swarm-sdk.d.ts +4 -1
- package/src/server.ts +2 -0
- package/src/slack/actions.ts +3 -0
- package/src/slack/approval-actions.ts +148 -0
- package/src/slack/approval-buttons.ts +28 -0
- package/src/slack/render-v2.ts +27 -7
- package/src/tests/base-prompt.test.ts +6 -2
- package/src/tests/chat-sdk-mentions.test.ts +183 -0
- package/src/tests/claude-adapter.test.ts +115 -0
- package/src/tests/create-page-tool.test.ts +5 -0
- package/src/tests/dsh-adapter.test.ts +53 -1
- package/src/tests/fixtures/compiled-source-schema-boot.ts +24 -0
- package/src/tests/fixtures/fx/acp-updates-recorded.jsonl +1 -1
- package/src/tests/fixtures/secret-corpus.ts +43 -1
- package/src/tests/heartbeat-stall-thresholds.test.ts +174 -0
- package/src/tests/internal-ai/complete-structured.test.ts +105 -0
- package/src/tests/internal-ai/credentials.test.ts +149 -0
- package/src/tests/internal-ai/task-title.test.ts +78 -0
- package/src/tests/jira-adf.test.ts +42 -2
- package/src/tests/mcp-input-caps.test.ts +16 -11
- package/src/tests/merge-gate-detect-changes.test.ts +208 -16
- package/src/tests/migration-342-script-run-sources.test.ts +196 -0
- package/src/tests/migration-bunfs-compat.test.ts +129 -9
- package/src/tests/rbac-e2e-helpers.test.ts +10 -4
- package/src/tests/rbac-e2e-helpers.ts +13 -4
- package/src/tests/rbac-roles.test.ts +2 -0
- package/src/tests/runner-slot-reconcile.test.ts +102 -0
- package/src/tests/runtime-e2b-pools.test.ts +7 -1
- package/src/tests/schedule-target-type.test.ts +4 -1
- package/src/tests/script-connections.test.ts +2 -0
- package/src/tests/script-runs-retention.test.ts +43 -16
- package/src/tests/script-workflows-runtime-e2e.test.ts +56 -22
- package/src/tests/scripts-http.test.ts +9 -3
- package/src/tests/sdk-allowlist.test.ts +26 -13
- package/src/tests/sdk-store-progress-skipped.test.ts +12 -5
- package/src/tests/secret-rules.test.ts +34 -0
- package/src/tests/secret-scrub-gate.test.ts +7 -0
- package/src/tests/secret-scrubber.test.ts +62 -2
- package/src/tests/seed-scripts.test.ts +2 -2
- package/src/tests/slack-render-v2.test.ts +85 -0
- package/src/tests/system-one-hosts-ui-mirror.test.ts +1 -0
- package/src/tests/vcs-azure-devops.test.ts +10 -0
- package/src/tests/vcs-provider.test.ts +8 -0
- package/src/themes/design-system.ts +163 -0
- package/src/themes/page-theme.ts +28 -19
- package/src/tools/chat-post.ts +7 -3
- package/src/tools/create-page.ts +3 -0
- package/src/tools/design-system.ts +102 -0
- package/src/tools/mcp-servers/mcp-server-get.ts +1 -1
- package/src/tools/mcp-servers/mcp-server-list.ts +1 -1
- package/src/tools/register-chat-channel.ts +11 -2
- package/src/tools/skills/skill-get-file.ts +1 -1
- package/src/tools/skills/skill-get.ts +1 -1
- package/src/tools/skills/skill-list.ts +1 -1
- package/src/tools/skills/skill-search.ts +1 -1
- package/src/tools/utils.ts +49 -4
- package/src/tools/workflows/get-workflow-run.ts +1 -1
- package/src/tools/workflows/get-workflow.ts +1 -1
- package/src/tools/workflows/list-workflow-runs.ts +1 -1
- package/src/tools/workflows/list-workflows.ts +1 -1
- package/src/types.ts +67 -1
- package/src/utils/internal-ai/complete-structured.ts +36 -5
- package/src/utils/internal-ai/credentials.ts +78 -2
- package/src/utils/internal-ai/models.ts +37 -1
- package/src/utils/internal-ai/task-title.ts +31 -1
- package/src/utils/secret-rules.generated.ts +149 -149
- package/src/utils/secret-scrubber.ts +111 -5
- package/src/vcs/azure-devops.ts +22 -1
- package/src/vcs/index.ts +3 -1
- package/src/workflows/approval-inline.ts +122 -0
- package/src/workflows/approval-notifications.ts +7 -2
- package/src/workflows/engine.ts +6 -5
- package/src/workflows/executors/agent-task.ts +14 -0
- package/src/workflows/executors/system-one-providers.ts +23 -0
- package/templates/skills/pages/content.md +34 -8
- package/templates/skills/swarm-docs/content.md +13 -0
- package/templates/skills/workflow-iterate/content.md +1 -1
- package/dist/acp-adapter-x1qqgzwx.js +0 -17
- package/dist/cli-n46d87mj.js +0 -98
- package/dist/core-2b8bv6ny.js +0 -42
- package/dist/fx-adapter-4yet1c4f.js +0 -20
- package/dist/grok-adapter-8ge6tw7m.js +0 -20
- package/dist/handlers-0r9evrdj.js +0 -41
- package/dist/hook-68gbs87k.js +0 -19
- package/dist/index-1v23363p.js +0 -39
- package/dist/index-30qw6vyw.js +0 -44
- package/dist/index-6bm3w6cn.js +0 -40
- package/dist/lead-3jpc7kcr.js +0 -79
- package/dist/thread-buffer-8fc703jc.js +0 -42
- package/dist/worker-3p2vq107.js +0 -79
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
getActivePricingRow2,
|
|
17
17
|
insertPricingRow2,
|
|
18
18
|
init_db4
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-ts5yv7dn.js";
|
|
20
20
|
import {
|
|
21
21
|
scrubSecrets,
|
|
22
22
|
init_secret_scrubber
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-1kvcsd2f.js";
|
|
24
24
|
import {
|
|
25
25
|
__esm
|
|
26
26
|
} from "./cli-242037k3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
workflowEventBus2,
|
|
3
3
|
init_event_bus
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-ybte1fqc.js";
|
|
5
5
|
import {
|
|
6
6
|
withLoopPath,
|
|
7
7
|
init_event_loop_lag,
|
|
@@ -70,11 +70,11 @@ import {
|
|
|
70
70
|
getStaleApprovalRequests2,
|
|
71
71
|
upsertKv2,
|
|
72
72
|
init_db4
|
|
73
|
-
} from "./cli-
|
|
73
|
+
} from "./cli-ts5yv7dn.js";
|
|
74
74
|
import {
|
|
75
75
|
listRuntimePools2,
|
|
76
76
|
init_db2
|
|
77
|
-
} from "./cli-
|
|
77
|
+
} from "./cli-29h5239w.js";
|
|
78
78
|
import {
|
|
79
79
|
runtimeStaleThresholdMinutes,
|
|
80
80
|
countActiveRuntimeInstancesForAgent,
|
|
@@ -84,15 +84,15 @@ import {
|
|
|
84
84
|
init_multi_runtime,
|
|
85
85
|
createApprovalFollowUpTask2,
|
|
86
86
|
init_approval_notifications
|
|
87
|
-
} from "./cli-
|
|
87
|
+
} from "./cli-d5pc8ep0.js";
|
|
88
88
|
import {
|
|
89
89
|
userHoldsOperatorGrantedRole2,
|
|
90
90
|
assertMayActOnOperatorGrantedTarget2,
|
|
91
91
|
init_rbac_roles
|
|
92
|
-
} from "./cli-
|
|
92
|
+
} from "./cli-x2cem5vy.js";
|
|
93
93
|
import {
|
|
94
94
|
remediateStalledRuntime
|
|
95
|
-
} from "./cli-
|
|
95
|
+
} from "./cli-ea7nz50q.js";
|
|
96
96
|
import {
|
|
97
97
|
recoverIncompleteRuns,
|
|
98
98
|
init_recovery,
|
|
@@ -106,6 +106,8 @@ import {
|
|
|
106
106
|
init_reachability,
|
|
107
107
|
repointTrackerSyncBySwarmId,
|
|
108
108
|
init_tracker,
|
|
109
|
+
cancelApprovalRequestAndRun,
|
|
110
|
+
init_approval_cancel,
|
|
109
111
|
REBOOT_RETRY_PIN_TAG2,
|
|
110
112
|
getPinCandidateAgent2,
|
|
111
113
|
resolveLeadOnlyRecoveryAssignment2,
|
|
@@ -116,17 +118,15 @@ import {
|
|
|
116
118
|
createRerouteDecisionTask2,
|
|
117
119
|
createPoolStarvationDecisionTask2,
|
|
118
120
|
init_worker_follow_up,
|
|
119
|
-
cancelApprovalRequestAndRun,
|
|
120
|
-
init_approval_cancel,
|
|
121
121
|
canClaim,
|
|
122
122
|
init_budget_admission
|
|
123
|
-
} from "./cli-
|
|
123
|
+
} from "./cli-904wk98s.js";
|
|
124
124
|
import {
|
|
125
125
|
runScriptWithRunCredential,
|
|
126
126
|
init_run_credential,
|
|
127
127
|
runSavedScriptAsAgent,
|
|
128
128
|
init_run_saved
|
|
129
|
-
} from "./cli-
|
|
129
|
+
} from "./cli-gse7bp3z.js";
|
|
130
130
|
import {
|
|
131
131
|
isMultiRuntimeEnabled,
|
|
132
132
|
init_multi_runtime2
|
|
@@ -135,13 +135,13 @@ import {
|
|
|
135
135
|
recordIdentityEvent,
|
|
136
136
|
mintToken,
|
|
137
137
|
init_users
|
|
138
|
-
} from "./cli-
|
|
138
|
+
} from "./cli-kj84fqxz.js";
|
|
139
139
|
import {
|
|
140
140
|
registerTemplate,
|
|
141
141
|
init_registry3,
|
|
142
142
|
resolveTemplate,
|
|
143
143
|
init_resolver
|
|
144
|
-
} from "./cli-
|
|
144
|
+
} from "./cli-b768ek79.js";
|
|
145
145
|
import {
|
|
146
146
|
DEFAULT_OPENROUTER_BASE_URL,
|
|
147
147
|
getOpenRouterBaseUrl,
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
OPEN_TASK_STATUSES,
|
|
153
153
|
SUPERSEDED_WORKFLOW_TASK_REASON,
|
|
154
154
|
init_types5
|
|
155
|
-
} from "./cli-
|
|
155
|
+
} from "./cli-azj9t1f9.js";
|
|
156
156
|
import {
|
|
157
157
|
isEnvFlagEnabled,
|
|
158
158
|
init_env_flag
|
|
@@ -160,11 +160,11 @@ import {
|
|
|
160
160
|
import {
|
|
161
161
|
init_package,
|
|
162
162
|
package_default
|
|
163
|
-
} from "./cli-
|
|
163
|
+
} from "./cli-cq4am6vg.js";
|
|
164
164
|
import {
|
|
165
165
|
scrubSecrets,
|
|
166
166
|
init_secret_scrubber
|
|
167
|
-
} from "./cli-
|
|
167
|
+
} from "./cli-1kvcsd2f.js";
|
|
168
168
|
|
|
169
169
|
// src/be/runtime-pools/routing.ts
|
|
170
170
|
init_multi_runtime2();
|
|
@@ -755,11 +755,15 @@ function stallThresholdMinutes() {
|
|
|
755
755
|
const value = Number(process.env.HEARTBEAT_STALL_THRESHOLD_MIN);
|
|
756
756
|
return Number.isInteger(value) && value > 0 ? value : 30;
|
|
757
757
|
}
|
|
758
|
+
function positiveMinutes(raw, fallback) {
|
|
759
|
+
const value = Number(raw);
|
|
760
|
+
return Number.isFinite(value) && value > 0 ? value : fallback;
|
|
761
|
+
}
|
|
758
762
|
function stallThresholdNoSessionMin() {
|
|
759
|
-
return
|
|
763
|
+
return positiveMinutes(process.env.HEARTBEAT_STALL_NO_SESSION_MIN, 5);
|
|
760
764
|
}
|
|
761
765
|
function stallThresholdStaleHeartbeatMin() {
|
|
762
|
-
return
|
|
766
|
+
return positiveMinutes(process.env.HEARTBEAT_STALL_STALE_HB_MIN, 15);
|
|
763
767
|
}
|
|
764
768
|
var STEERING_STALL_GRACE_MIN = Number(process.env.HEARTBEAT_STEERING_GRACE_MIN) || 5;
|
|
765
769
|
var STALE_CLEANUP_THRESHOLD_MINUTES = Number(process.env.HEARTBEAT_STALE_CLEANUP_MIN) || 30;
|
|
@@ -35,15 +35,15 @@ import {
|
|
|
35
35
|
getPendingWaitsByEvent2,
|
|
36
36
|
resolveWaitState2,
|
|
37
37
|
init_db4
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-ts5yv7dn.js";
|
|
39
39
|
import {
|
|
40
40
|
workflowEventBus2,
|
|
41
41
|
init_event_bus
|
|
42
|
-
} from "./cli-
|
|
42
|
+
} from "./cli-ybte1fqc.js";
|
|
43
43
|
import {
|
|
44
44
|
postApprovalCancellationUpdates2,
|
|
45
45
|
init_approval_notifications
|
|
46
|
-
} from "./cli-
|
|
46
|
+
} from "./cli-d5pc8ep0.js";
|
|
47
47
|
import {
|
|
48
48
|
BaseExecutor,
|
|
49
49
|
init_base,
|
|
@@ -85,12 +85,12 @@ import {
|
|
|
85
85
|
getNextTargets,
|
|
86
86
|
getSuccessors,
|
|
87
87
|
init_definition2
|
|
88
|
-
} from "./cli-
|
|
88
|
+
} from "./cli-0p76my9q.js";
|
|
89
89
|
import {
|
|
90
90
|
RetryPolicySchema,
|
|
91
91
|
SUPERSEDED_WORKFLOW_TASK_REASON,
|
|
92
92
|
init_types5
|
|
93
|
-
} from "./cli-
|
|
93
|
+
} from "./cli-azj9t1f9.js";
|
|
94
94
|
import {
|
|
95
95
|
init_zod
|
|
96
96
|
} from "./cli-96234j5w.js";
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
import {
|
|
109
109
|
scrubSecrets,
|
|
110
110
|
init_secret_scrubber
|
|
111
|
-
} from "./cli-
|
|
111
|
+
} from "./cli-1kvcsd2f.js";
|
|
112
112
|
import {
|
|
113
113
|
__esm
|
|
114
114
|
} from "./cli-242037k3.js";
|
|
@@ -2207,7 +2207,7 @@ function checkExtensionInstallSource(body, ctx) {
|
|
|
2207
2207
|
ctx.addIssue({ code: "custom", path: ["files"], message: "files is required with manifest" });
|
|
2208
2208
|
}
|
|
2209
2209
|
}
|
|
2210
|
-
var AssetKeySchema, AssetEntityTypeSchema, AssetProviderRefSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, LEGACY_MODEL_TO_TIER, DEFAULT_MODEL_TIER_MAP, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, OPEN_TASK_STATUSES, InboxMessageStatusSchema, InboxMessageSchema, AgentTaskSourceSchema, RoutingReasonSchema, RoutingSourceSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileCredentialsSchema, ModelProfileSchema, ModelGroupSchema, ProviderErrorClassSchema, FallbackHopSchema, ProfileCheckStateSchema, ProfileCheckRowSchema, ProfileCheckResultSchema, SessionShareAccessSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringStatusSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, SlackParticipantTrustSchema, TaskSlackParticipantSchema, TaskSlackParticipantsSchema, AgentTaskSchema, CreateTaskOptionsSchema, TaskAttachmentKindSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY = "_agentSwarmGeneratedBy", attachmentCapabilitiesSchema, attachmentCommonFields, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, UserMergeJobStatusSchema, UserMergeJobSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, IdentityEventTypeSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, ChecklistItemSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, HttpsImageUrlSchema, LucideIconSchema, UrlIconSchema, AgentFsIconSchema, MediaIconSchema, AgentAvatarSchema, AppIconSchema, AgentSlackIconSchema, AgentSchema, AgentHistoryEventSchema, AgentCredStatusKeyResultSchema, AgentCredStatusLiveTestSchema, AgentLatestModelSchema, AgentBedrockStatusSchema, AgentOpencodeGoStatusSchema, AcpSessionConfigSelectValueSchema, AcpSessionConfigSelectGroupSchema, AcpSessionConfigOptionSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, ChangeSourceSchema, VersionableFieldSchema, ContextVersionSchema, ChannelTypeSchema, ChannelSchema, ChannelMessageSchema, ServiceStatusSchema, ServiceSchema, AgentLogEventTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostSourceSchema, SessionCostKindSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, REPO_GUIDELINES_MAX_ENTRIES = 50, RepoMergePolicySchema, RepoGuidelinesSchema, RepoGuidelinesInputSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeInstanceStatusSchema, RuntimeProviderKindSchema, DeliveryModeSchema, PoolLifecycleSchema, RuntimeResourcesSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCacheSchema, RuntimePoolWorkspaceSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON = "superseded_workflow_task", ExecutorMetaSchema, ValidationResultSchema, StepValidationConfigSchema, SwarmScriptNodeConfigSchema, WorkflowNodeSchema, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, WebhookVerificationSchema, WEBHOOK_FILTER_MAX_FIELDS = 32, WEBHOOK_FILTER_MAX_VALUES = 64, WEBHOOK_FILTER_MAX_STRING = 512, WEBHOOK_FILTER_MAX_HEADER_NAME = 128, WEBHOOK_FILTER_MAX_PATH = 256, WEBHOOK_FILTER_MAX_SEGMENTS = 12, WEBHOOK_FILTER_MAX_SEGMENT = 128, WEBHOOK_FILTER_HEADER_NAME, WEBHOOK_FILTER_PRESETS, WebhookFilterPresetSchema, webhookFilterHeaderValueSchema, webhookFilterBodyScalarSchema, webhookFilterBodyValueSchema, WebhookDeliveryFilterSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowTemplateSchema, WorkflowSnapshotSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageThemeTokensSchema, PageThemeTokensInputSchema, PageSnapshotSchema, PageSchema, PageVersionSchema, MetricParamSchema, MetricVariableTypeSchema, MetricFormatSchema, MetricVisualizationSchema, MetricQuerySchema, MetricVariableSchema, MetricVizConfigSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSnapshotSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunKindSchema, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepStatusSchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, WaitModeSchema, WaitStateStatusSchema, WaitStateRowSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionNameSchema, SemverSchema, ExtensionBundlePathSchema, ExtensionAssetNameSchema, ExtensionScriptAssetSchema, ExtensionScheduleAssetSchema, ExtensionWorkflowAssetSchema, ExtensionSkillAssetSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionStatusSchema, ExtensionSchema, ExtensionFileSchema, ExtensionVersionSchema, ExtensionRunSchema, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillTypeSchema, SkillScopeSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpServerTransportSchema, McpServerScopeSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, RequestCompositionPartKindSchema, RequestCompositionFidelitySchema, RequestCompositionPartInputSchema, RequestCompositionPartSchema, RequestCompositionToolLoadingSchema, RequestCompositionSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KV_NAME_REGEX, KvNamespaceSchema, KvKeySchema, KvEntrySchema;
|
|
2210
|
+
var AssetKeySchema, AssetEntityTypeSchema, AssetProviderRefSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, LEGACY_MODEL_TO_TIER, DEFAULT_MODEL_TIER_MAP, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, OPEN_TASK_STATUSES, InboxMessageStatusSchema, InboxMessageSchema, AgentTaskSourceSchema, RoutingReasonSchema, RoutingSourceSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileCredentialsSchema, ModelProfileSchema, ModelGroupSchema, ProviderErrorClassSchema, FallbackHopSchema, ProfileCheckStateSchema, ProfileCheckRowSchema, ProfileCheckResultSchema, SessionShareAccessSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringStatusSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, SlackParticipantTrustSchema, TaskSlackParticipantSchema, TaskSlackParticipantsSchema, AgentTaskSchema, CreateTaskOptionsSchema, TaskAttachmentKindSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY = "_agentSwarmGeneratedBy", attachmentCapabilitiesSchema, attachmentCommonFields, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, UserMergeJobStatusSchema, UserMergeJobSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, IdentityEventTypeSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, ChecklistItemSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, HttpsImageUrlSchema, LucideIconSchema, UrlIconSchema, AgentFsIconSchema, MediaIconSchema, AgentAvatarSchema, AppIconSchema, AgentSlackIconSchema, AgentSchema, AgentHistoryEventSchema, AgentCredStatusKeyResultSchema, AgentCredStatusLiveTestSchema, AgentLatestModelSchema, AgentBedrockStatusSchema, AgentOpencodeGoStatusSchema, AcpSessionConfigSelectValueSchema, AcpSessionConfigSelectGroupSchema, AcpSessionConfigOptionSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, ChangeSourceSchema, VersionableFieldSchema, ContextVersionSchema, ChannelTypeSchema, ChannelSchema, ChannelMessageSchema, ServiceStatusSchema, ServiceSchema, AgentLogEventTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostSourceSchema, SessionCostKindSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, REPO_GUIDELINES_MAX_ENTRIES = 50, RepoMergePolicySchema, RepoGuidelinesSchema, RepoGuidelinesInputSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeInstanceStatusSchema, RuntimeProviderKindSchema, DeliveryModeSchema, PoolLifecycleSchema, RuntimeResourcesSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCacheSchema, RuntimePoolWorkspaceSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON = "superseded_workflow_task", ExecutorMetaSchema, ValidationResultSchema, StepValidationConfigSchema, SwarmScriptNodeConfigSchema, WorkflowNodeSchema, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, WebhookVerificationSchema, WEBHOOK_FILTER_MAX_FIELDS = 32, WEBHOOK_FILTER_MAX_VALUES = 64, WEBHOOK_FILTER_MAX_STRING = 512, WEBHOOK_FILTER_MAX_HEADER_NAME = 128, WEBHOOK_FILTER_MAX_PATH = 256, WEBHOOK_FILTER_MAX_SEGMENTS = 12, WEBHOOK_FILTER_MAX_SEGMENT = 128, WEBHOOK_FILTER_HEADER_NAME, WEBHOOK_FILTER_PRESETS, WebhookFilterPresetSchema, webhookFilterHeaderValueSchema, webhookFilterBodyScalarSchema, webhookFilterBodyValueSchema, WebhookDeliveryFilterSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowTemplateSchema, WorkflowSnapshotSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageThemeTokensSchema, PageThemeTokensInputSchema, DesignSystemStatusSchema, DesignSystemModeSchema, DesignSystemSourceSchema, DesignSystemLogoSchema, DesignSystemSchema, DesignSystemInputSchema, PageSnapshotSchema, PageSchema, PageVersionSchema, MetricParamSchema, MetricVariableTypeSchema, MetricFormatSchema, MetricVisualizationSchema, MetricQuerySchema, MetricVariableSchema, MetricVizConfigSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSnapshotSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunKindSchema, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepStatusSchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, WaitModeSchema, WaitStateStatusSchema, WaitStateRowSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionNameSchema, SemverSchema, ExtensionBundlePathSchema, ExtensionAssetNameSchema, ExtensionScriptAssetSchema, ExtensionScheduleAssetSchema, ExtensionWorkflowAssetSchema, ExtensionSkillAssetSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionStatusSchema, ExtensionSchema, ExtensionFileSchema, ExtensionVersionSchema, ExtensionRunSchema, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillTypeSchema, SkillScopeSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpServerTransportSchema, McpServerScopeSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, RequestCompositionPartKindSchema, RequestCompositionFidelitySchema, RequestCompositionPartInputSchema, RequestCompositionPartSchema, RequestCompositionToolLoadingSchema, RequestCompositionSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KV_NAME_REGEX, KvNamespaceSchema, KvKeySchema, KvEntrySchema;
|
|
2211
2211
|
var init_types5 = __esm(() => {
|
|
2212
2212
|
init_key();
|
|
2213
2213
|
init_bundle_path();
|
|
@@ -3897,6 +3897,41 @@ var init_types5 = __esm(() => {
|
|
|
3897
3897
|
dark: record2(string2(), string2()).optional(),
|
|
3898
3898
|
css: string2().optional()
|
|
3899
3899
|
});
|
|
3900
|
+
DesignSystemStatusSchema = _enum2(["active", "declined"]);
|
|
3901
|
+
DesignSystemModeSchema = _enum2(["viewer", "light", "dark"]);
|
|
3902
|
+
DesignSystemSourceSchema = object2({
|
|
3903
|
+
kind: _enum2(["manual", "website", "brand-kit", "preset"]),
|
|
3904
|
+
ref: string2().max(2048).optional(),
|
|
3905
|
+
extractedAt: string2().max(64).optional()
|
|
3906
|
+
});
|
|
3907
|
+
DesignSystemLogoSchema = object2({
|
|
3908
|
+
url: string2().min(1).max(2048),
|
|
3909
|
+
alt: string2().min(1).max(200)
|
|
3910
|
+
});
|
|
3911
|
+
DesignSystemSchema = object2({
|
|
3912
|
+
v: literal2(1),
|
|
3913
|
+
status: DesignSystemStatusSchema,
|
|
3914
|
+
basePreset: string2(),
|
|
3915
|
+
tokens: PageThemeTokensSchema,
|
|
3916
|
+
fontsHref: string2().optional(),
|
|
3917
|
+
logo: DesignSystemLogoSchema.optional(),
|
|
3918
|
+
mode: DesignSystemModeSchema,
|
|
3919
|
+
chartPalette: array2(string2()).optional(),
|
|
3920
|
+
source: DesignSystemSourceSchema,
|
|
3921
|
+
updatedBy: string2().nullable(),
|
|
3922
|
+
updatedByAgentId: string2().optional(),
|
|
3923
|
+
updatedAt: string2()
|
|
3924
|
+
}).openapi("DesignSystem");
|
|
3925
|
+
DesignSystemInputSchema = strictObject2({
|
|
3926
|
+
status: DesignSystemStatusSchema.optional().describe('"active" (default) saves the design system. "declined" records that the requester does not want one, so agents stop asking. A declined record keeps only `source`.'),
|
|
3927
|
+
basePreset: string2().optional().describe("Preset id the tokens apply on top of, for example hive or paper. Default hive."),
|
|
3928
|
+
themeTokens: PageThemeTokensInputSchema.optional().describe('Token overrides on top of the base preset, in the same formats as create_page themeTokens: { light, dark } maps, or { format: "css", css } with a shadcn, tweakcn or Tailwind v4 variable block.'),
|
|
3929
|
+
fontsHref: string2().max(2048).optional().describe("Google Fonts stylesheet URL (https://fonts.googleapis.com/...) that loads the fonts the tokens name."),
|
|
3930
|
+
logo: DesignSystemLogoSchema.optional().describe("https logo URL and its alt text."),
|
|
3931
|
+
mode: DesignSystemModeSchema.optional().describe(`"viewer" (default) follows the viewer's light or dark mode. "light" or "dark" locks every page to that mode.`),
|
|
3932
|
+
chartPalette: array2(string2()).max(12).optional().describe("Ordered chart series colors, as CSS color values."),
|
|
3933
|
+
source: DesignSystemSourceSchema.optional().describe("Where the design system came from. Default { kind: manual }.")
|
|
3934
|
+
});
|
|
3900
3935
|
PageSnapshotSchema = object2({
|
|
3901
3936
|
title: string2(),
|
|
3902
3937
|
description: string2().optional(),
|
|
@@ -4613,4 +4648,4 @@ var init_types5 = __esm(() => {
|
|
|
4613
4648
|
}).openapi("KvEntry");
|
|
4614
4649
|
});
|
|
4615
4650
|
|
|
4616
|
-
export { ASSET_KEY_MAX_LENGTH, AssetKeyError, normalizeAssetKey, defaultAssetKey, keyPrefixRange, SESSION_RESOURCE_KINDS, SESSION_LEAF_KINDS, NO_GROUP_LEAF_KINDS, isGroupKey, isResourceGroupPrefix, RESOURCE_GROUPS_READ_ONLY, sessionResourceGroupOf, sessionGroupKey, parseAssetKey, isCanonicalAssetKey, canWriteAssetKey, init_key, isSafeBundlePath, init_bundle_path, PAGE_THEME_COLOR_TOKENS, PAGE_THEME_SHARED_TOKENS, PAGE_THEME_TOKENS, HIVE_PAGE_TOKENS, init_tokens2, ThemeImportError, importThemeTokens, init_import, $OpenAPIRegistry, $OpenApiGeneratorV31, init_dist9, init_zod_openapi, AssetKeySchema, AssetEntityTypeSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, DEFAULT_MODEL_TIER_MAP, parseModelTier, splitLegacyModelAlias, parseWorkerModelTierOverrides, resolveTaskModelSelection, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, isTerminalTaskStatus, OPEN_TASK_STATUSES, AgentTaskSourceSchema, RoutingReasonSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileCredentialsSchema, ModelProfileSchema, ModelGroupSchema, ProviderErrorClassSchema, FallbackHopSchema, ProfileCheckResultSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, SlackParticipantTrustSchema, TaskSlackParticipantsSchema, AgentTaskSchema, CreateTaskOptionsSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, UserMergeJobStatusSchema, UserMergeJobSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, ChecklistItemSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, AppIconSchema, AgentSlackIconSchema, AgentSchema, AgentHistoryEventSchema, AgentLatestModelSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, VersionableFieldSchema, ChannelTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesInputSchema, agentsMayMerge, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeProviderKindSchema, DeliveryModeSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCacheSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, WEBHOOK_FILTER_PRESETS, WebhookDeliveryFilterSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageThemeTokensSchema, PageThemeTokensInputSchema, PageSchema, PageVersionSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionSchema, ExtensionVersionSchema, ExtensionRunSchema, checkExtensionInstallSource, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, RequestCompositionPartInputSchema, RequestCompositionToolLoadingSchema, RequestCompositionSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KvNamespaceSchema, KvKeySchema, KvEntrySchema, init_types5 };
|
|
4651
|
+
export { ASSET_KEY_MAX_LENGTH, AssetKeyError, normalizeAssetKey, defaultAssetKey, keyPrefixRange, SESSION_RESOURCE_KINDS, SESSION_LEAF_KINDS, NO_GROUP_LEAF_KINDS, isGroupKey, isResourceGroupPrefix, RESOURCE_GROUPS_READ_ONLY, sessionResourceGroupOf, sessionGroupKey, parseAssetKey, isCanonicalAssetKey, canWriteAssetKey, init_key, isSafeBundlePath, init_bundle_path, PAGE_THEME_COLOR_TOKENS, PAGE_THEME_SHARED_TOKENS, PAGE_THEME_TOKENS, HIVE_PAGE_TOKENS, init_tokens2, ThemeImportError, importThemeTokens, init_import, $OpenAPIRegistry, $OpenApiGeneratorV31, init_dist9, init_zod_openapi, AssetKeySchema, AssetEntityTypeSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, DEFAULT_MODEL_TIER_MAP, parseModelTier, splitLegacyModelAlias, parseWorkerModelTierOverrides, resolveTaskModelSelection, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, isTerminalTaskStatus, OPEN_TASK_STATUSES, AgentTaskSourceSchema, RoutingReasonSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileCredentialsSchema, ModelProfileSchema, ModelGroupSchema, ProviderErrorClassSchema, FallbackHopSchema, ProfileCheckResultSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, SlackParticipantTrustSchema, TaskSlackParticipantsSchema, AgentTaskSchema, CreateTaskOptionsSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, UserMergeJobStatusSchema, UserMergeJobSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, ChecklistItemSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, AppIconSchema, AgentSlackIconSchema, AgentSchema, AgentHistoryEventSchema, AgentLatestModelSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, VersionableFieldSchema, ChannelTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesInputSchema, agentsMayMerge, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeProviderKindSchema, DeliveryModeSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCacheSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, WEBHOOK_FILTER_PRESETS, WebhookDeliveryFilterSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageThemeTokensSchema, PageThemeTokensInputSchema, DesignSystemSchema, DesignSystemInputSchema, PageSchema, PageVersionSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionSchema, ExtensionVersionSchema, ExtensionRunSchema, checkExtensionInstallSource, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, RequestCompositionPartInputSchema, RequestCompositionToolLoadingSchema, RequestCompositionSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KvNamespaceSchema, KvKeySchema, KvEntrySchema, init_types5 };
|
|
@@ -624,7 +624,7 @@ Task: {{task}}{{progressLine}}
|
|
|
624
624
|
registerTemplate({
|
|
625
625
|
eventType: "system.agent.tool_discovery.fx",
|
|
626
626
|
header: "",
|
|
627
|
-
defaultBody: "Most swarm tools are deferred behind `
|
|
627
|
+
defaultBody: "Most swarm tools are deferred behind `toolbox`. Each one is named `mcp_swarm_<tool>`, so `store-progress` is `mcp_swarm_store-progress`. Call a tool in your tool list directly. A deferred tool fails when called directly: find it with `toolbox` `search`, then call `toolbox` with `run` set to its name and `arguments` set to its arguments.",
|
|
628
628
|
variables: [],
|
|
629
629
|
category: "system"
|
|
630
630
|
});
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
resolveCredential,
|
|
7
7
|
resolveCredentials,
|
|
8
8
|
init_credentials
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-7by7vp6m.js";
|
|
10
10
|
import {
|
|
11
11
|
kindForModelString,
|
|
12
12
|
parseModelStr,
|
|
13
13
|
init_models2
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-jjzxsk47.js";
|
|
15
15
|
import {
|
|
16
16
|
selectCredential,
|
|
17
17
|
init_credentials2
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-gkv0r2hq.js";
|
|
19
19
|
import {
|
|
20
20
|
DEFAULT_OPENROUTER_BASE_URL,
|
|
21
21
|
getOpenRouterBaseUrl,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
scrubSecrets,
|
|
35
35
|
init_secret_scrubber
|
|
36
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-1kvcsd2f.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
39
|
} from "./cli-242037k3.js";
|
|
@@ -4967,6 +4967,9 @@ async function defaultSpawnClaudeCli(prompt, model, signal, jsonSchema) {
|
|
|
4967
4967
|
signal?.removeEventListener("abort", abortHandler);
|
|
4968
4968
|
}
|
|
4969
4969
|
}
|
|
4970
|
+
function providerRequestOptions(cred) {
|
|
4971
|
+
return cred.kind === "amazon-bedrock" ? { region: cred.region } : undefined;
|
|
4972
|
+
}
|
|
4970
4973
|
async function completeStructuredWithModel(opts) {
|
|
4971
4974
|
const retries = opts.retries ?? 3;
|
|
4972
4975
|
const callerTag = opts.callerTag ?? "<unset>";
|
|
@@ -5038,7 +5041,8 @@ ${claudeUserPrompt}`, cred.modelDefault, opts.signal, jsonSchema);
|
|
|
5038
5041
|
}
|
|
5039
5042
|
const headers = provider === "openrouter" ? getOpenRouterAttributionHeaders(model.baseUrl, env) : {};
|
|
5040
5043
|
const completeFn = opts._complete ?? complete;
|
|
5041
|
-
const toolChoice = model.api === "anthropic-messages" ? { type: "tool", name: opts.toolName } : "required";
|
|
5044
|
+
const toolChoice = model.api === "anthropic-messages" || model.api === "bedrock-converse-stream" ? { type: "tool", name: opts.toolName } : "required";
|
|
5045
|
+
const providerOptions = providerRequestOptions(cred);
|
|
5042
5046
|
let userPrompt = opts.userPrompt;
|
|
5043
5047
|
let lastErr = null;
|
|
5044
5048
|
for (let attempt = 0;attempt < retries; attempt++) {
|
|
@@ -5053,7 +5057,13 @@ ${claudeUserPrompt}`, cred.modelDefault, opts.signal, jsonSchema);
|
|
|
5053
5057
|
parameters: opts.toolSchema
|
|
5054
5058
|
}
|
|
5055
5059
|
]
|
|
5056
|
-
}, {
|
|
5060
|
+
}, {
|
|
5061
|
+
apiKey: "apiKey" in cred ? cred.apiKey : undefined,
|
|
5062
|
+
signal: opts.signal,
|
|
5063
|
+
toolChoice,
|
|
5064
|
+
headers,
|
|
5065
|
+
...providerOptions ?? {}
|
|
5066
|
+
});
|
|
5057
5067
|
const toolCall = msg.content.find((c) => c.type === "toolCall" && c.name === opts.toolName);
|
|
5058
5068
|
if (!toolCall) {
|
|
5059
5069
|
const assistantText = msg.content.filter((content) => content.type === "text").map((content) => content.text).join(`
|
|
@@ -5109,7 +5119,21 @@ var TASK_TITLE_MODEL_CANDIDATES = [
|
|
|
5109
5119
|
{ kind: "anthropic", models: ["anthropic/claude-haiku-5-5"] },
|
|
5110
5120
|
{ kind: "openai", models: ["openai/gpt-6-luna", "openai/gpt-5-nano"] },
|
|
5111
5121
|
{ kind: "openai-codex", models: ["openai-codex/gpt-6-luna"] },
|
|
5112
|
-
{ kind: "claude-cli", models: ["haiku"] }
|
|
5122
|
+
{ kind: "claude-cli", models: ["haiku"] },
|
|
5123
|
+
{
|
|
5124
|
+
kind: "fireworks",
|
|
5125
|
+
models: [
|
|
5126
|
+
"fireworks/accounts/fireworks/models/deepseek-v4p1-flash",
|
|
5127
|
+
"fireworks/accounts/fireworks/models/glm-5p3-flash"
|
|
5128
|
+
]
|
|
5129
|
+
},
|
|
5130
|
+
{
|
|
5131
|
+
kind: "amazon-bedrock",
|
|
5132
|
+
models: [
|
|
5133
|
+
"amazon-bedrock/global.anthropic.claude-haiku-5-5",
|
|
5134
|
+
"amazon-bedrock/amazon.nova-micro-v1:0"
|
|
5135
|
+
]
|
|
5136
|
+
}
|
|
5113
5137
|
];
|
|
5114
5138
|
function buildTaskTitlePlan(env = process.env) {
|
|
5115
5139
|
const pinned = env[TASK_TITLE_MODEL_ENV]?.trim();
|
|
@@ -7,7 +7,7 @@ var package_default;
|
|
|
7
7
|
var init_package = __esm(() => {
|
|
8
8
|
package_default = {
|
|
9
9
|
name: "@desplega.ai/agent-swarm",
|
|
10
|
-
version: "2.13.
|
|
10
|
+
version: "2.13.4",
|
|
11
11
|
description: "agent-swarm.dev — an open-source operating system for AI work: a lead agent breaks goals into tasks, routes them to specialized workers such as Claude Code or Codex, runs each worker in an isolated container, and preserves shared memory, tools, schedules, and review gates so delegated work compounds across sessions.",
|
|
12
12
|
keywords: [
|
|
13
13
|
"agent-swarm.dev",
|
|
@@ -226,8 +226,8 @@ var init_package = __esm(() => {
|
|
|
226
226
|
"@chat-adapter/slack": "4.45.0",
|
|
227
227
|
"@chat-adapter/teams": "4.45.0",
|
|
228
228
|
"@chat-adapter/telegram": "4.45.0",
|
|
229
|
-
"@cursor/sdk": "1.
|
|
230
|
-
"@desplega.ai/agent-fs-just-bash": "0.18.
|
|
229
|
+
"@cursor/sdk": "1.4.0",
|
|
230
|
+
"@desplega.ai/agent-fs-just-bash": "0.18.32",
|
|
231
231
|
"@desplega.ai/business-use": "^0.4.2",
|
|
232
232
|
"@earendil-works/pi-agent-core": "^1.5.2",
|
|
233
233
|
"@earendil-works/pi-ai": "^1.5.2",
|
|
@@ -25,17 +25,17 @@ import {
|
|
|
25
25
|
getUserById2,
|
|
26
26
|
getAllUsers2,
|
|
27
27
|
init_db4
|
|
28
|
-
} from "./cli-
|
|
28
|
+
} from "./cli-ts5yv7dn.js";
|
|
29
29
|
import {
|
|
30
30
|
externalChannelToolError2,
|
|
31
31
|
isBlockExternalEnabled2,
|
|
32
32
|
getChannelBlockReason2,
|
|
33
33
|
init_external_channel
|
|
34
|
-
} from "./cli-
|
|
34
|
+
} from "./cli-7gbff32z.js";
|
|
35
35
|
import {
|
|
36
36
|
getSlackApp2,
|
|
37
37
|
init_app4
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-rmgvwcmy.js";
|
|
39
39
|
import {
|
|
40
40
|
isMultiRuntimeEnabled,
|
|
41
41
|
init_multi_runtime2
|
|
@@ -43,15 +43,15 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
revokeRuntimeTokensForRuntime,
|
|
45
45
|
init_users
|
|
46
|
-
} from "./cli-
|
|
46
|
+
} from "./cli-kj84fqxz.js";
|
|
47
47
|
import {
|
|
48
48
|
resolveTemplate,
|
|
49
49
|
init_resolver
|
|
50
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-b768ek79.js";
|
|
51
51
|
import {
|
|
52
52
|
TERMINAL_TASK_STATUSES,
|
|
53
53
|
init_types5
|
|
54
|
-
} from "./cli-
|
|
54
|
+
} from "./cli-azj9t1f9.js";
|
|
55
55
|
import {
|
|
56
56
|
init_zod
|
|
57
57
|
} from "./cli-96234j5w.js";
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
import {
|
|
72
72
|
scrubSecrets,
|
|
73
73
|
init_secret_scrubber
|
|
74
|
-
} from "./cli-
|
|
74
|
+
} from "./cli-1kvcsd2f.js";
|
|
75
75
|
import {
|
|
76
76
|
__esm
|
|
77
77
|
} from "./cli-242037k3.js";
|
|
@@ -579,6 +579,97 @@ var init_approval_config_question = __esm(() => {
|
|
|
579
579
|
});
|
|
580
580
|
});
|
|
581
581
|
|
|
582
|
+
// src/workflows/approval-inline.ts
|
|
583
|
+
function inlineApprovalQuestion(questions) {
|
|
584
|
+
if (!questions || questions.length !== 1)
|
|
585
|
+
return null;
|
|
586
|
+
const [q] = questions;
|
|
587
|
+
if (!q?.id)
|
|
588
|
+
return null;
|
|
589
|
+
const base = { id: q.id, label: q.label ?? "", options: q.options ?? [] };
|
|
590
|
+
switch (q.type) {
|
|
591
|
+
case "approval":
|
|
592
|
+
case "boolean":
|
|
593
|
+
return { ...base, type: q.type };
|
|
594
|
+
case "single-select":
|
|
595
|
+
return base.options.length > 0 && base.options.length <= INLINE_MAX_OPTIONS ? { ...base, type: q.type } : null;
|
|
596
|
+
case "text":
|
|
597
|
+
return q.multiline ? null : { ...base, type: q.type };
|
|
598
|
+
default:
|
|
599
|
+
return null;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
function inlineApprovalChoices(question) {
|
|
603
|
+
switch (question.type) {
|
|
604
|
+
case "approval":
|
|
605
|
+
return [
|
|
606
|
+
{ label: "Approve", choice: "y", style: "primary" },
|
|
607
|
+
{ label: "Deny", choice: "n", style: "danger", needsText: "optional" }
|
|
608
|
+
];
|
|
609
|
+
case "boolean":
|
|
610
|
+
return [
|
|
611
|
+
{ label: "Yes", choice: "y" },
|
|
612
|
+
{ label: "No", choice: "n" }
|
|
613
|
+
];
|
|
614
|
+
case "single-select":
|
|
615
|
+
return question.options.map((option, index) => ({
|
|
616
|
+
label: option.label || option.value,
|
|
617
|
+
choice: String(index)
|
|
618
|
+
}));
|
|
619
|
+
case "text":
|
|
620
|
+
return [{ label: "Answer", choice: "t", needsText: "required" }];
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
function inlineApprovalResponses(question, choice, text) {
|
|
624
|
+
const trimmed = (text ?? "").trim().slice(0, INLINE_TEXT_MAX_LENGTH);
|
|
625
|
+
let answer;
|
|
626
|
+
switch (question.type) {
|
|
627
|
+
case "approval":
|
|
628
|
+
if (choice === "y")
|
|
629
|
+
answer = { approved: true };
|
|
630
|
+
else if (choice === "n")
|
|
631
|
+
answer = trimmed ? { approved: false, comment: trimmed } : { approved: false };
|
|
632
|
+
break;
|
|
633
|
+
case "boolean":
|
|
634
|
+
if (choice === "y" || choice === "n")
|
|
635
|
+
answer = choice === "y";
|
|
636
|
+
break;
|
|
637
|
+
case "single-select": {
|
|
638
|
+
const option = /^\d+$/.test(choice) ? question.options[Number(choice)] : undefined;
|
|
639
|
+
answer = option?.value;
|
|
640
|
+
break;
|
|
641
|
+
}
|
|
642
|
+
case "text":
|
|
643
|
+
if (choice === "t" && trimmed)
|
|
644
|
+
answer = trimmed;
|
|
645
|
+
break;
|
|
646
|
+
}
|
|
647
|
+
return answer === undefined ? null : { [question.id]: answer };
|
|
648
|
+
}
|
|
649
|
+
var INLINE_MAX_OPTIONS = 5, INLINE_TEXT_MAX_LENGTH = 500;
|
|
650
|
+
var init_approval_inline = () => {};
|
|
651
|
+
|
|
652
|
+
// src/slack/approval-buttons.ts
|
|
653
|
+
function buttonText(label) {
|
|
654
|
+
return label.length > 75 ? `${label.slice(0, 74)}…` : label;
|
|
655
|
+
}
|
|
656
|
+
function buildApprovalAnswerButtons(requestId, questions) {
|
|
657
|
+
const question = inlineApprovalQuestion(questions);
|
|
658
|
+
if (!question)
|
|
659
|
+
return [];
|
|
660
|
+
return inlineApprovalChoices(question).map((choice) => ({
|
|
661
|
+
type: "button",
|
|
662
|
+
action_id: `${APPROVAL_ACTION_PREFIX}${choice.choice}`,
|
|
663
|
+
text: { type: "plain_text", text: buttonText(choice.label) },
|
|
664
|
+
value: requestId,
|
|
665
|
+
...choice.style ? { style: choice.style } : {}
|
|
666
|
+
}));
|
|
667
|
+
}
|
|
668
|
+
var APPROVAL_ACTION_PREFIX = "hitl_answer:";
|
|
669
|
+
var init_approval_buttons = __esm(() => {
|
|
670
|
+
init_approval_inline();
|
|
671
|
+
});
|
|
672
|
+
|
|
582
673
|
// src/slack/dm.ts
|
|
583
674
|
function isSlackUserId(id) {
|
|
584
675
|
return /^[UW][A-Z0-9]+$/.test(id);
|
|
@@ -658,6 +749,7 @@ async function dispatchApprovalNotifications2(input, db = { updateApprovalReques
|
|
|
658
749
|
}
|
|
659
750
|
}
|
|
660
751
|
const questionsText = buildSlackQuestionsSummary(questions);
|
|
752
|
+
const answerButtons = buildApprovalAnswerButtons(requestId, questions);
|
|
661
753
|
const timeoutCaption = timeoutSeconds !== undefined ? [
|
|
662
754
|
{
|
|
663
755
|
type: "context",
|
|
@@ -687,11 +779,12 @@ async function dispatchApprovalNotifications2(input, db = { updateApprovalReques
|
|
|
687
779
|
{
|
|
688
780
|
type: "actions",
|
|
689
781
|
elements: [
|
|
782
|
+
...answerButtons,
|
|
690
783
|
{
|
|
691
784
|
type: "button",
|
|
692
785
|
text: { type: "plain_text", text: "Review & Respond" },
|
|
693
786
|
url: approvalUrl,
|
|
694
|
-
style: "primary"
|
|
787
|
+
...answerButtons.length === 0 ? { style: "primary" } : {}
|
|
695
788
|
}
|
|
696
789
|
]
|
|
697
790
|
},
|
|
@@ -929,6 +1022,7 @@ var init_approval_notifications = __esm(() => {
|
|
|
929
1022
|
init_approvals();
|
|
930
1023
|
init_resolver();
|
|
931
1024
|
init_app4();
|
|
1025
|
+
init_approval_buttons();
|
|
932
1026
|
init_dm();
|
|
933
1027
|
init_external_channel();
|
|
934
1028
|
init_types5();
|
|
@@ -936,4 +1030,4 @@ var init_approval_notifications = __esm(() => {
|
|
|
936
1030
|
init_secret_scrubber();
|
|
937
1031
|
});
|
|
938
1032
|
|
|
939
|
-
export { AGENT_MAX_TASKS_CONFIG_KEY, reconcileAgentMaxTasksPolicy, resetAgentMaxTasksMirror, upsertSwarmConfigWithPolicyMirror, runtimeStaleThresholdMinutes, upsertRuntimeInstance, getRuntimeInstanceById, insertProvisioningRuntime, nextFreeWorkspaceSlot, markRuntimeTerminated, touchRuntimeInstance, isRuntimeInstanceFresh, markRuntimeInstanceOffline, countActiveRuntimeInstancesForAgent, listRuntimeInstancesForAgent, setRuntimeCredentialReady, reconcileAgentStatusFromRuntimes, agentsWithLiveRuntime, liveRuntimeAuthModes, expireStaleRuntimeInstances, listRuntimeInstancesForPool, init_multi_runtime, ConfigQuestionSettingsSchema, ConfigStateSchema, readConfigState, normalizeApprovalQuestions, isConfigQuestion, parseConfigAnswer, skippedConfigResult, keptConfigResult, applyConfigAnswer, init_approval_config_question, resolveSlackConversationId, init_dm, dispatchApprovalNotifications2, postApprovalCancellationUpdates2, updateResolvedApprovalCards2, createApprovalFollowUpTask2, init_approval_notifications };
|
|
1033
|
+
export { AGENT_MAX_TASKS_CONFIG_KEY, reconcileAgentMaxTasksPolicy, resetAgentMaxTasksMirror, upsertSwarmConfigWithPolicyMirror, runtimeStaleThresholdMinutes, upsertRuntimeInstance, getRuntimeInstanceById, insertProvisioningRuntime, nextFreeWorkspaceSlot, markRuntimeTerminated, touchRuntimeInstance, isRuntimeInstanceFresh, markRuntimeInstanceOffline, countActiveRuntimeInstancesForAgent, listRuntimeInstancesForAgent, setRuntimeCredentialReady, reconcileAgentStatusFromRuntimes, agentsWithLiveRuntime, liveRuntimeAuthModes, expireStaleRuntimeInstances, listRuntimeInstancesForPool, init_multi_runtime, ConfigQuestionSettingsSchema, ConfigStateSchema, readConfigState, normalizeApprovalQuestions, isConfigQuestion, parseConfigAnswer, skippedConfigResult, keptConfigResult, applyConfigAnswer, init_approval_config_question, INLINE_TEXT_MAX_LENGTH, inlineApprovalQuestion, inlineApprovalChoices, inlineApprovalResponses, init_approval_inline, APPROVAL_ACTION_PREFIX, init_approval_buttons, resolveSlackConversationId, init_dm, dispatchApprovalNotifications2, postApprovalCancellationUpdates2, updateResolvedApprovalCards2, createApprovalFollowUpTask2, init_approval_notifications };
|