@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
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
calculateNextRun2,
|
|
3
|
+
parseSchedulerIntervalMs2,
|
|
4
|
+
startScheduler2,
|
|
5
|
+
stopScheduler2,
|
|
6
|
+
runScheduleNow2,
|
|
7
|
+
init_scheduler2
|
|
8
|
+
} from "./cli-904wk98s.js";
|
|
9
|
+
import"./cli-4fpa0zns.js";
|
|
10
|
+
import"./cli-93n305hm.js";
|
|
11
|
+
import"./cli-gse7bp3z.js";
|
|
12
|
+
import"./cli-jyhbvdga.js";
|
|
13
|
+
import"./cli-tr19nyn9.js";
|
|
14
|
+
import"./cli-zhwjdhjr.js";
|
|
15
|
+
import"./cli-y260hgep.js";
|
|
16
|
+
import"./cli-gtj12v95.js";
|
|
17
|
+
import"./cli-9ah37a8a.js";
|
|
18
|
+
import"./cli-0p76my9q.js";
|
|
19
|
+
import"./cli-d5pc8ep0.js";
|
|
20
|
+
import"./cli-404am6f3.js";
|
|
21
|
+
import"./cli-29h5239w.js";
|
|
22
|
+
import"./cli-rmgvwcmy.js";
|
|
23
|
+
import"./cli-qzz6tz8s.js";
|
|
24
|
+
import"./cli-7gbff32z.js";
|
|
25
|
+
import"./cli-r8ddn0hf.js";
|
|
26
|
+
import"./cli-b0m3bg0f.js";
|
|
27
|
+
import"./cli-vr4eyq6p.js";
|
|
28
|
+
import"./cli-pz1dp12c.js";
|
|
29
|
+
import"./cli-ybte1fqc.js";
|
|
30
|
+
import"./cli-ysv0k1we.js";
|
|
31
|
+
import"./cli-x2cem5vy.js";
|
|
32
|
+
import"./cli-kj84fqxz.js";
|
|
33
|
+
import"./cli-ts5yv7dn.js";
|
|
34
|
+
init_scheduler2();
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
calculateNextRun2 as calculateNextRun,
|
|
38
|
+
parseSchedulerIntervalMs2 as parseSchedulerIntervalMs,
|
|
39
|
+
runScheduleNow2 as runScheduleNow,
|
|
40
|
+
startScheduler2 as startScheduler,
|
|
41
|
+
stopScheduler2 as stopScheduler
|
|
42
|
+
};
|
|
@@ -17,22 +17,22 @@ import {
|
|
|
17
17
|
deleteSkill2,
|
|
18
18
|
getSkillByName2,
|
|
19
19
|
init_db4
|
|
20
|
-
} from "./cli-
|
|
21
|
-
import"./cli-
|
|
20
|
+
} from "./cli-ts5yv7dn.js";
|
|
21
|
+
import"./cli-x2cem5vy.js";
|
|
22
22
|
import {
|
|
23
23
|
agentFsProvisionSeeder2,
|
|
24
24
|
init_agent_fs_provision
|
|
25
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-60dwk8tx.js";
|
|
26
26
|
import {
|
|
27
27
|
runSeeders
|
|
28
|
-
} from "./cli-
|
|
29
|
-
import"./cli-
|
|
30
|
-
import"./cli-
|
|
28
|
+
} from "./cli-bzcwwebm.js";
|
|
29
|
+
import"./cli-7gbff32z.js";
|
|
30
|
+
import"./cli-qzz6tz8s.js";
|
|
31
31
|
import"./cli-vr4eyq6p.js";
|
|
32
32
|
import"./cli-r8ddn0hf.js";
|
|
33
|
-
import"./cli-
|
|
34
|
-
import"./cli-
|
|
35
|
-
import"./cli-
|
|
33
|
+
import"./cli-ybte1fqc.js";
|
|
34
|
+
import"./cli-rmgvwcmy.js";
|
|
35
|
+
import"./cli-d5pc8ep0.js";
|
|
36
36
|
import {
|
|
37
37
|
buildSkillContent
|
|
38
38
|
} from "./cli-691vz9mk.js";
|
|
@@ -56,14 +56,14 @@ import {
|
|
|
56
56
|
init_typecheck,
|
|
57
57
|
parseSkillContent,
|
|
58
58
|
init_skill_parser
|
|
59
|
-
} from "./cli-
|
|
60
|
-
import"./cli-
|
|
61
|
-
import"./cli-
|
|
62
|
-
import"./cli-
|
|
59
|
+
} from "./cli-gse7bp3z.js";
|
|
60
|
+
import"./cli-jyhbvdga.js";
|
|
61
|
+
import"./cli-zhwjdhjr.js";
|
|
62
|
+
import"./cli-0p76my9q.js";
|
|
63
63
|
import"./cli-b0m3bg0f.js";
|
|
64
|
-
import"./cli-
|
|
65
|
-
import"./cli-
|
|
66
|
-
import"./cli-
|
|
64
|
+
import"./cli-pz1dp12c.js";
|
|
65
|
+
import"./cli-ysv0k1we.js";
|
|
66
|
+
import"./cli-kj84fqxz.js";
|
|
67
67
|
import {
|
|
68
68
|
isEnvFlagEnabled,
|
|
69
69
|
init_env_flag
|
|
@@ -2162,6 +2162,167 @@ export default async function delegate(args: any, ctx: any) {
|
|
|
2162
2162
|
}
|
|
2163
2163
|
`;
|
|
2164
2164
|
|
|
2165
|
+
// src/be/seed-scripts/catalog/design-system-seed.ts
|
|
2166
|
+
var design_system_seed_default = `import { z } from "zod";
|
|
2167
|
+
|
|
2168
|
+
export const argsSchema = z.object({
|
|
2169
|
+
url: z.string().optional().describe("Site to read the brand from, for example https://www.agent-swarm.dev"),
|
|
2170
|
+
css: z.string().optional().describe("A pasted CSS variable block (shadcn, tweakcn, Tailwind v4)"),
|
|
2171
|
+
preset: z.string().optional().describe("A preset id, for example hive or paper"),
|
|
2172
|
+
pdfUrl: z.string().optional().describe("A brand PDF. Not supported yet: extract its CSS and pass css"),
|
|
2173
|
+
basePreset: z.string().optional().describe("Preset the extracted tokens apply on top of (default hive)"),
|
|
2174
|
+
mode: z.enum(["viewer", "light", "dark"]).optional().describe("Mode lock (default viewer)"),
|
|
2175
|
+
logo: z.object({ url: z.string(), alt: z.string() }).optional().describe("https logo URL and alt text"),
|
|
2176
|
+
fontsHref: z.string().optional().describe("Google Fonts stylesheet URL; a url seed reads it from the site"),
|
|
2177
|
+
chartPalette: z.array(z.string()).optional().describe("Ordered chart series colors"),
|
|
2178
|
+
save: z.boolean().optional().describe("Save the design system after the preview. Only once the requester approved it"),
|
|
2179
|
+
});
|
|
2180
|
+
|
|
2181
|
+
const LIGHT = new Set([":root", ":host", "html"]);
|
|
2182
|
+
const DARK = new Set([".dark", ":root.dark", "html.dark", "[data-theme=dark]", '[data-theme="dark"]']);
|
|
2183
|
+
/** The token contract names in their shadcn, bare and \`--color-\` spellings. Tailwind palette stops stay out. */
|
|
2184
|
+
const CONTRACT_NAME =
|
|
2185
|
+
/^--(?:color-)?(?:background|foreground|card|surface|popover|primary|secondary|muted|accent|destructive|border|input|ring|chart-\\d|status-[a-z]+)(?:-(?:foreground|subtle|strong|solid))?$|^--font-(?:sans|mono)$|^--radius(?:-(?:sm|md|lg|xl))?$/;
|
|
2186
|
+
const MAX_STYLESHEETS = 8;
|
|
2187
|
+
|
|
2188
|
+
function escapeHtml(value: string): string {
|
|
2189
|
+
return value.replace(/[&<>"']/g, (c: string) => \`&#\${c.charCodeAt(0)};\`);
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
/** The contract declarations of every light and dark theme block, as one clean CSS block per mode. */
|
|
2193
|
+
function themeCss(css: string): string {
|
|
2194
|
+
const light: string[] = [];
|
|
2195
|
+
const dark: string[] = [];
|
|
2196
|
+
for (const match of css.matchAll(/([^{}]+)\\{([^{}]*)\\}/g)) {
|
|
2197
|
+
const parts = (match[1] ?? "").split(",").map((part: string) => part.trim());
|
|
2198
|
+
const target = parts.every((p: string) => LIGHT.has(p)) ? light : parts.every((p: string) => DARK.has(p)) ? dark : null;
|
|
2199
|
+
if (!target) continue;
|
|
2200
|
+
for (const declaration of (match[2] ?? "").split(";")) {
|
|
2201
|
+
const colon = declaration.indexOf(":");
|
|
2202
|
+
const name = declaration.slice(0, colon).trim();
|
|
2203
|
+
if (colon > 0 && CONTRACT_NAME.test(name)) target.push(\`\${name}: \${declaration.slice(colon + 1).trim()};\`);
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
return [light.length ? \`:root { \${light.join(" ")} }\` : "", dark.length ? \`.dark { \${dark.join(" ")} }\` : ""]
|
|
2207
|
+
.filter(Boolean)
|
|
2208
|
+
.join("\\n");
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
async function readSite(url: string, ctx: any): Promise<{ css: string; fontsHref?: string }> {
|
|
2212
|
+
const html = await (await ctx.stdlib.fetch(url, { headers: { Accept: "text/html" } })).text();
|
|
2213
|
+
const hrefs: string[] = [];
|
|
2214
|
+
let fontsHref: string | undefined;
|
|
2215
|
+
for (const tag of html.match(/<link\\b[^>]*>/gi) ?? []) {
|
|
2216
|
+
const href = tag.match(/href=["']([^"']+)["']/i)?.[1]?.replace(/&/g, "&");
|
|
2217
|
+
if (!href || !/rel=["']?stylesheet/i.test(tag)) continue;
|
|
2218
|
+
if (href.startsWith("https://fonts.googleapis.com/")) fontsHref ??= href;
|
|
2219
|
+
else hrefs.push(new URL(href, url).href);
|
|
2220
|
+
}
|
|
2221
|
+
const sheets = await Promise.all(
|
|
2222
|
+
hrefs.slice(0, MAX_STYLESHEETS).map(async (href) => (await ctx.stdlib.fetch(href)).text()),
|
|
2223
|
+
);
|
|
2224
|
+
const inline = (html.match(/<style\\b[^>]*>[\\s\\S]*?<\\/style>/gi) ?? []).map((s: string) => s.replace(/<\\/?style\\b[^>]*>/gi, ""));
|
|
2225
|
+
return { css: themeCss([...inline, ...sheets].join("\\n")), fontsHref };
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
function previewHtml(record: any, ignored: string[]): string {
|
|
2229
|
+
const names = [...new Set([...Object.keys(record.tokens.light), ...Object.keys(record.tokens.dark)])].sort();
|
|
2230
|
+
const rows = names
|
|
2231
|
+
.map((name) => {
|
|
2232
|
+
const light = record.tokens.light[name] ?? "";
|
|
2233
|
+
const dark = record.tokens.dark[name] ?? "";
|
|
2234
|
+
const swatch = name.startsWith("--color-") ? \`<span class="swarm-badge" data-dot style="--swarm-dot: var(\${name})">\${escapeHtml(name)}</span>\` : escapeHtml(name);
|
|
2235
|
+
return \`<tr><td class="nowrap">\${swatch}</td><td>\${escapeHtml(light)}</td><td>\${escapeHtml(dark)}</td></tr>\`;
|
|
2236
|
+
})
|
|
2237
|
+
.join("");
|
|
2238
|
+
const palette = (record.chartPalette ?? [])
|
|
2239
|
+
.map((color: string) => \`<span class="swarm-badge" data-dot style="--swarm-dot: \${escapeHtml(color)}">\${escapeHtml(color)}</span>\`)
|
|
2240
|
+
.join(" ");
|
|
2241
|
+
return \`<!doctype html><html><head><meta charset="utf-8"><title>Design system preview</title>
|
|
2242
|
+
\${record.fontsHref ? \`<link href="\${escapeHtml(record.fontsHref)}" rel="stylesheet">\` : ""}</head>
|
|
2243
|
+
<body><main class="swarm-page">
|
|
2244
|
+
\${record.logo ? \`<img src="\${escapeHtml(record.logo.url)}" alt="\${escapeHtml(record.logo.alt)}" style="height:40px;width:auto">\` : ""}
|
|
2245
|
+
<p class="swarm-eyebrow">Design system preview · \${escapeHtml(record.source.kind)}\${record.source.ref ? \` · \${escapeHtml(record.source.ref)}\` : ""}</p>
|
|
2246
|
+
<h1>Every page will look like this</h1>
|
|
2247
|
+
<p class="swarm-lede">Base preset \${escapeHtml(record.basePreset)}, mode \${escapeHtml(record.mode)}. Nothing is saved until the requester approves it.</p>
|
|
2248
|
+
<div class="swarm-metrics">
|
|
2249
|
+
<div class="swarm-metric"><div class="swarm-metric-value">\${names.length}</div><div class="swarm-metric-label">Tokens set</div></div>
|
|
2250
|
+
<div class="swarm-metric" data-tone="success"><div class="swarm-metric-value">98.2%</div><div class="swarm-metric-label">Sample success rate</div></div>
|
|
2251
|
+
<div class="swarm-metric" data-tone="error"><div class="swarm-metric-value">3</div><div class="swarm-metric-label">Sample failures</div></div>
|
|
2252
|
+
</div>
|
|
2253
|
+
<section class="swarm-section"><h2>Components</h2>
|
|
2254
|
+
<p><button class="swarm-button" data-variant="primary" type="button">Primary action</button> <button class="swarm-button" type="button">Secondary</button></p>
|
|
2255
|
+
<p><span class="swarm-badge" data-tone="success" data-dot>Healthy</span> <span class="swarm-badge" data-tone="warning" data-dot>Degraded</span> <span class="swarm-badge" data-tone="error" data-dot>Down</span></p>
|
|
2256
|
+
<div class="swarm-callout">A callout reads like this. <a href="#tokens">Links use the primary color.</a></div>
|
|
2257
|
+
\${palette ? \`<p>Chart palette: \${palette}</p>\` : ""}
|
|
2258
|
+
</section>
|
|
2259
|
+
<section class="swarm-section" id="tokens"><h2>Tokens</h2>
|
|
2260
|
+
<div class="swarm-table-wrap"><table class="swarm-table"><thead><tr><th>Token</th><th>Light</th><th>Dark</th></tr></thead><tbody>\${rows || '<tr><td colspan="3">The base preset only.</td></tr>'}</tbody></table></div>
|
|
2261
|
+
\${ignored.length ? \`<details><summary>\${ignored.length} ignored names</summary><p>\${escapeHtml(ignored.join(", "))}</p></details>\` : ""}
|
|
2262
|
+
</section></main></body></html>\`;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
/** Build an org design system from a site URL, a CSS block or a preset, publish a preview page, and save it once approved. */
|
|
2266
|
+
export default async function designSystemSeed(args: any, ctx: any) {
|
|
2267
|
+
const parsed = argsSchema.safeParse(args ?? {});
|
|
2268
|
+
if (!parsed.success) return { error: "invalid args: " + parsed.error.message };
|
|
2269
|
+
const a = parsed.data;
|
|
2270
|
+
const inputs = [a.url, a.css, a.preset, a.pdfUrl].filter((value) => value !== undefined);
|
|
2271
|
+
if (inputs.length !== 1) return { error: "pass exactly one of url, css, preset or pdfUrl" };
|
|
2272
|
+
// shortcut: no brand-PDF extraction (taste-engine extract_brand_kit is not wired), add it when a requester sends a PDF.
|
|
2273
|
+
if (a.pdfUrl) return { error: "brand PDFs are not supported yet: extract the CSS variables and pass css" };
|
|
2274
|
+
|
|
2275
|
+
let css = a.css;
|
|
2276
|
+
let fontsHref = a.fontsHref;
|
|
2277
|
+
let source: any = { kind: "manual" };
|
|
2278
|
+
if (a.url) {
|
|
2279
|
+
if (!/^https?:\\/\\//i.test(a.url)) return { error: "url must be an absolute http(s) URL" };
|
|
2280
|
+
const site = await readSite(a.url, ctx);
|
|
2281
|
+
if (!site.css) return { error: \`no :root or .dark custom properties found on \${a.url}\` };
|
|
2282
|
+
css = site.css;
|
|
2283
|
+
fontsHref ??= site.fontsHref;
|
|
2284
|
+
source = { kind: "website", ref: a.url, extractedAt: new Date().toISOString() };
|
|
2285
|
+
}
|
|
2286
|
+
if (a.preset) source = { kind: "preset", ref: a.preset };
|
|
2287
|
+
|
|
2288
|
+
const input = {
|
|
2289
|
+
basePreset: a.preset ?? a.basePreset,
|
|
2290
|
+
...(css ? { themeTokens: { format: "css", css } } : {}),
|
|
2291
|
+
...(fontsHref ? { fontsHref } : {}),
|
|
2292
|
+
...(a.logo ? { logo: a.logo } : {}),
|
|
2293
|
+
...(a.mode ? { mode: a.mode } : {}),
|
|
2294
|
+
...(a.chartPalette ? { chartPalette: a.chartPalette } : {}),
|
|
2295
|
+
source,
|
|
2296
|
+
};
|
|
2297
|
+
const checked: any = await ctx.swarm.designSystem_set({ ...input, dryRun: true });
|
|
2298
|
+
const draft = checked?.data ?? checked;
|
|
2299
|
+
if (draft?.success === false || !draft?.designSystem) return { error: draft?.message ?? "design system validation failed" };
|
|
2300
|
+
const record = draft.designSystem;
|
|
2301
|
+
const ignored: string[] = draft.ignoredTokens ?? [];
|
|
2302
|
+
|
|
2303
|
+
const page: any = await ctx.swarm.page_create({
|
|
2304
|
+
title: "Design system preview",
|
|
2305
|
+
slug: "design-system-preview",
|
|
2306
|
+
contentType: "text/html",
|
|
2307
|
+
body: previewHtml(record, ignored),
|
|
2308
|
+
theme: record.basePreset,
|
|
2309
|
+
themeTokens: { light: record.tokens.light, dark: record.tokens.dark },
|
|
2310
|
+
designVersion: 2,
|
|
2311
|
+
});
|
|
2312
|
+
const pageData = page?.data ?? page;
|
|
2313
|
+
if (a.save) await ctx.swarm.designSystem_set(input);
|
|
2314
|
+
return {
|
|
2315
|
+
saved: a.save === true,
|
|
2316
|
+
previewUrl: pageData?.app_url ?? null,
|
|
2317
|
+
previewApiUrl: pageData?.api_url ?? null,
|
|
2318
|
+
designSystem: record,
|
|
2319
|
+
ignoredTokens: ignored,
|
|
2320
|
+
// Pass this to design-system-set (or rerun with save: true) once the requester approves.
|
|
2321
|
+
saveInput: input,
|
|
2322
|
+
};
|
|
2323
|
+
}
|
|
2324
|
+
`;
|
|
2325
|
+
|
|
2165
2326
|
// src/be/seed-scripts/catalog/dreaming-apply.ts
|
|
2166
2327
|
var dreaming_apply_default = `import type { ScriptContext } from "swarm-sdk";
|
|
2167
2328
|
import { z } from "zod";
|
|
@@ -14827,6 +14988,12 @@ var SEED_SCRIPTS = [
|
|
|
14827
14988
|
intent: "Read the actual content of a URL without wading through raw HTML; readable-article / reader-mode extraction.",
|
|
14828
14989
|
source: asText(fetch_readable_default)
|
|
14829
14990
|
},
|
|
14991
|
+
{
|
|
14992
|
+
name: "design-system-seed",
|
|
14993
|
+
description: "Build the org design system from a site URL, a pasted CSS variable block or a preset, publish a preview page in the swarm look, and save it with save: true once the requester approves.",
|
|
14994
|
+
intent: "Seed or rebrand the org design system / page theme / brand colors and fonts from a website or shadcn CSS, with a preview before saving.",
|
|
14995
|
+
source: asText(design_system_seed_default)
|
|
14996
|
+
},
|
|
14830
14997
|
{
|
|
14831
14998
|
name: "json-query",
|
|
14832
14999
|
description: "Run a jq-style path/filter query over any JSON value: dot fields, [n] indexing, [] iteration, | pipes, and keys/values/length/type functions.",
|
|
@@ -18296,12 +18463,38 @@ color literals.
|
|
|
18296
18463
|
The API picks the preset of a designVersion 2 page in this order:
|
|
18297
18464
|
|
|
18298
18465
|
1. The page's \`theme\`, when it is set.
|
|
18299
|
-
2. The
|
|
18300
|
-
3.
|
|
18301
|
-
|
|
18302
|
-
|
|
18303
|
-
|
|
18304
|
-
\`
|
|
18466
|
+
2. The org design system's base preset, when the org has one (see below).
|
|
18467
|
+
3. The viewer's dashboard preset, when the page opens inside the dashboard.
|
|
18468
|
+
4. \`hive\`.
|
|
18469
|
+
|
|
18470
|
+
Then the org design system tokens apply on top of the preset, and the page's
|
|
18471
|
+
\`themeTokens\` on top of those. A page with its own \`theme\` ignores the org
|
|
18472
|
+
design system completely: its tokens, fonts and mode lock. The mode (light or
|
|
18473
|
+
dark) comes from the viewer unless the design system locks it.
|
|
18474
|
+
\`create_page\`, \`POST /api/pages\`, and \`PUT /api/pages/:id\` accept both fields.
|
|
18475
|
+
|
|
18476
|
+
### The org design system: ask once
|
|
18477
|
+
|
|
18478
|
+
One design system per org restyles every page without a \`theme\`. Read it with
|
|
18479
|
+
\`design-system-get\`. Its \`status\` is \`none\`, \`declined\`, \`active\` or \`invalid\`.
|
|
18480
|
+
|
|
18481
|
+
When \`create_page\` says the org has no design system yet, ship the page as it
|
|
18482
|
+
is and ask the requester once, in the same reply that hands over the page:
|
|
18483
|
+
"Want every page in your brand? Send a site URL, a preset name or a CSS
|
|
18484
|
+
variable block." Then:
|
|
18485
|
+
|
|
18486
|
+
1. Run the \`design-system-seed\` script with one of \`url\`, \`preset\` or \`css\`
|
|
18487
|
+
(plus \`logo\` and \`mode\` if they gave them). It publishes a preview page and
|
|
18488
|
+
saves nothing.
|
|
18489
|
+
2. Send the preview link. Save only after the requester says yes: run the
|
|
18490
|
+
script again with \`save: true\`, or call \`design-system-set\` with its
|
|
18491
|
+
\`saveInput\`.
|
|
18492
|
+
3. If they say no, call \`design-system-set\` with \`status: "declined"\`. Nobody
|
|
18493
|
+
asks again.
|
|
18494
|
+
|
|
18495
|
+
Never set the design system without the requester's yes, and never ask when
|
|
18496
|
+
the status is \`declined\` or \`active\`. The \`design-system\` KV namespace is
|
|
18497
|
+
reserved: write it only through \`design-system-set\` or \`PUT /api/design-system\`.
|
|
18305
18498
|
|
|
18306
18499
|
### \`theme\`: a preset id
|
|
18307
18500
|
|
|
@@ -18399,8 +18592,8 @@ To use another font, load it from Google Fonts in your page \`<head>\`. Then set
|
|
|
18399
18592
|
|
|
18400
18593
|
## Dark mode
|
|
18401
18594
|
|
|
18402
|
-
Inside the dashboard, a designVersion 2 page follows the viewer's mode
|
|
18403
|
-
mode, the injected head adds the \`dark\` class to \`<html>\`, and the tokens
|
|
18595
|
+
Inside the dashboard, a designVersion 2 page follows the viewer's mode, unless
|
|
18596
|
+
the org design system locks \`mode\` to \`light\` or \`dark\`. In dark mode, the injected head adds the \`dark\` class to \`<html>\`, and the tokens
|
|
18404
18597
|
switch to their dark values. A page built on tokens needs no extra dark-mode
|
|
18405
18598
|
code.
|
|
18406
18599
|
|
|
@@ -20674,19 +20867,31 @@ Fetch the page as markdown: \`curl -fsSL https://docs.agent-swarm.dev/llms.mdx/d
|
|
|
20674
20867
|
- [Small tech team operating model](https://docs.agent-swarm.dev/docs/guides/small-tech-team-operating-model). Reference.
|
|
20675
20868
|
- [Customer renewal review](https://docs.agent-swarm.dev/docs/guides/customer-renewal-review). Reference.
|
|
20676
20869
|
- [Customer commitment tracking](https://docs.agent-swarm.dev/docs/guides/customer-commitment-tracking). Reference.
|
|
20870
|
+
- [Reviewing a potential customer service-level breach with AI agents](https://docs.agent-swarm.dev/docs/guides/service-level-breach-review). Reference.
|
|
20677
20871
|
- [Reviewing supplier invoice and purchase order discrepancies with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-invoice-discrepancy-review). Reference.
|
|
20872
|
+
- [Reviewing purchase order and supplier confirmation differences with AI agents](https://docs.agent-swarm.dev/docs/guides/supplier-order-confirmation-review). Reference.
|
|
20678
20873
|
- [Reviewing marketplace partner payout discrepancies with AI agents](https://docs.agent-swarm.dev/docs/guides/marketplace-payout-exception-review). Reference.
|
|
20679
20874
|
- [Preparing marketplace moderation appeals for human review with AI agents](https://docs.agent-swarm.dev/docs/guides/marketplace-moderation-appeals). Reference.
|
|
20680
20875
|
- [Reviewing customer billing disputes with AI agents](https://docs.agent-swarm.dev/docs/guides/customer-billing-dispute-review). Reference.
|
|
20876
|
+
- [Preparing unmatched bank transactions for finance review with AI agents](https://docs.agent-swarm.dev/docs/guides/agent-assisted-bank-reconciliation-review). Reference.
|
|
20681
20877
|
- [Reviewing a proposed customer pricing change with AI agents](https://docs.agent-swarm.dev/docs/guides/customer-pricing-change-review). Reference.
|
|
20682
20878
|
- [Escalating a customer support issue to engineering with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-support-escalation-handoff). Reference.
|
|
20683
20879
|
- [Reviewing inconsistent product listings across sales channels with AI agents](https://docs.agent-swarm.dev/docs/guides/marketplace-catalog-discrepancy-review). Reference.
|
|
20880
|
+
- [Investigating a stale partner data feed with AI agents](https://docs.agent-swarm.dev/docs/guides/partner-data-feed-freshness-review). Reference.
|
|
20881
|
+
- [Reviewing marketplace partner launch readiness with AI agents](https://docs.agent-swarm.dev/docs/guides/partner-onboarding-readiness). Reference.
|
|
20882
|
+
- [Preparing a digital asset license review for a human rights owner with AI agents](https://docs.agent-swarm.dev/docs/guides/digital-content-license-rights-review). Reference.
|
|
20684
20883
|
- [Handing off inventory discrepancies from operations to purchasing with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-inventory-exception-handoff). Reference.
|
|
20685
20884
|
- [Handing off unresolved operational work between shifts with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-operations-shift-handoff). Reference.
|
|
20686
20885
|
- [Preparing a disputed product return for a human decision with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-returns-exception-handoff). Reference.
|
|
20687
20886
|
- [Reviewing a supplier's security evidence before onboarding with AI agents](https://docs.agent-swarm.dev/docs/guides/supplier-security-evidence-review). Reference.
|
|
20688
20887
|
- [Coordinating a customer data access request across support, privacy and engineering with AI agents](https://docs.agent-swarm.dev/docs/guides/privacy-data-request-handoff). Reference.
|
|
20888
|
+
- [Coordinating a guest accessibility request between guest support and property operations with AI agents](https://docs.agent-swarm.dev/docs/guides/guest-accessibility-request-handoff). Reference.
|
|
20689
20889
|
- [Reviewing supplier performance across delivery, quality and service records with AI agents](https://docs.agent-swarm.dev/docs/guides/supplier-performance-review). Reference.
|
|
20890
|
+
- [Reviewing a supplier ingredient specification change with AI agents](https://docs.agent-swarm.dev/docs/guides/food-supplier-ingredient-change-review). Reference.
|
|
20891
|
+
- [Preparing a bid or no-bid review for an incoming RFP with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-rfp-bid-qualification). Reference.
|
|
20892
|
+
- [Preparing contractor credential expiry checks for human review with AI agents](https://docs.agent-swarm.dev/docs/guides/contractor-license-expiry-review). Reference.
|
|
20893
|
+
- [Coordinating a departing employee's access review across HR and IT with AI agents](https://docs.agent-swarm.dev/docs/guides/employee-offboarding-access-review). Reference.
|
|
20894
|
+
- [Briefing sales and leadership on competitor changes with AI agents](https://docs.agent-swarm.dev/docs/guides/competitor-change-brief). Reference.
|
|
20690
20895
|
- [Deployment Guide](https://docs.agent-swarm.dev/docs/guides/deployment). When: Someone wants to run Agent Swarm on their own server with Docker Compose.
|
|
20691
20896
|
- [One-click deploy](https://docs.agent-swarm.dev/docs/guides/one-click-deploy). When: Someone has no server yet and wants Agent Swarm running in the cloud with HTTPS.
|
|
20692
20897
|
- [Kubernetes and Helm](https://docs.agent-swarm.dev/docs/guides/kubernetes). When: Someone wants to install Agent Swarm on Kubernetes.
|
|
@@ -20740,6 +20945,7 @@ Fetch the page as markdown: \`curl -fsSL https://docs.agent-swarm.dev/llms.mdx/d
|
|
|
20740
20945
|
- [boxd runtime provider](https://docs.agent-swarm.dev/docs/guides/boxd-runtime-provider). Reference.
|
|
20741
20946
|
- [Coordinating delivery delay investigations between operations and support with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-delivery-delay-handoff). Reference.
|
|
20742
20947
|
- [Preparing a service capacity planning brief with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-service-capacity-planning). Reference.
|
|
20948
|
+
- [Preparing a property maintenance request for human triage with AI agents](https://docs.agent-swarm.dev/docs/guides/maintenance-work-order-triage). Reference.
|
|
20743
20949
|
- [Reviewing customer help content for conflicts with AI agents](https://docs.agent-swarm.dev/docs/guides/support-knowledge-conflict-review). Reference.
|
|
20744
20950
|
|
|
20745
20951
|
## Other docs
|
|
@@ -22413,7 +22619,7 @@ Afterwards, a \`warnings\` entry on \`create-workflow\` or a patch tool means th
|
|
|
22413
22619
|
}
|
|
22414
22620
|
\`\`\`
|
|
22415
22621
|
|
|
22416
|
-
- \`provider\` is optional. Set it when the requester explicitly selects a provider, using the same literal verified by the ping. Omit it only when inheriting configuration to follow \`SYSTEM_ONE_DEFAULT_PROVIDER\` at run time (global config row, then environment, then \`typesafe\`). An explicit provider is \`typesafe\`, \`openrouter\`, \`laya\`, \`openai\`, or \`cloudflare\`, and must be a literal, not a \`{{token}}\`. \`model\` is that provider's own id (\`jev-1.13.0\` on \`typesafe\`, \`typesafe/jev-1.13\` on \`openrouter\`, a checkpoint name such as \`multilingual\` on \`laya\`); \`gpt-6-luna\` on \`openai\`, \`clef\` (default) or \`clef-flash\` on \`cloudflare\`, which accepts no other id; leave it unset for the provider's default. \`laya\` has no default and sends no \`model\`, because it silently ignores one it does not know: leave it unset unless you mean a specific checkpoint. Every provider returns the same output; \`openai\` gets a translated request, and an OpenAI refusal of any question fails the step. \`cloudflare\` takes at most 64 questions. There is no fallback between them. Never use OpenRouter's \`typesafe/jev-router\`, which is a chat router that hands the request to another model.
|
|
22622
|
+
- \`provider\` is optional. Set it when the requester explicitly selects a provider, using the same literal verified by the ping. Omit it only when inheriting configuration to follow \`SYSTEM_ONE_DEFAULT_PROVIDER\` at run time (global config row, then environment, then \`typesafe\`). An explicit provider is \`typesafe\`, \`openrouter\`, \`laya\`, \`openai\`, or \`cloudflare\`, and must be a literal, not a \`{{token}}\`. \`model\` is that provider's own id (\`jev-1.13.0\` on \`typesafe\`, \`typesafe/jev-1.13\` on \`openrouter\`, a checkpoint name such as \`multilingual\` on \`laya\`; another maker's decision model on \`openrouter\`, such as \`~perplexity/pplx-decider-latest\` or \`google/gemini-decision-1\`); \`gpt-6-luna\` on \`openai\`, \`clef\` (default) or \`clef-flash\` on \`cloudflare\`, which accepts no other id; leave it unset for the provider's default. \`laya\` has no default and sends no \`model\`, because it silently ignores one it does not know: leave it unset unless you mean a specific checkpoint. Every provider returns the same output; \`openai\` gets a translated request, and an OpenAI refusal of any question fails the step. \`cloudflare\` takes at most 64 questions. There is no fallback between them. Never use OpenRouter's \`typesafe/jev-router\`, which is a chat router that hands the request to another model.
|
|
22417
22623
|
- \`state\` is required: text, a string array, or a JSON object. An exact \`{{token}}\` keeps the upstream JSON type. Every question in one call shares the state and cannot see the other answers, so a dependent judgment needs its own node.
|
|
22418
22624
|
- Each question is \`noul\` (probability that a claim is true; optional \`criteria: { true, false }\`), \`choice\` (2 to 255 options; \`criteria: { option: description }\`), or \`score\` (2 to 10 ordered levels; \`criteria: [level, ...]\`).
|
|
22419
22625
|
- \`returns\` repeats every question id and its type. A mismatch is rejected when the workflow is saved.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import"./cli-ns59dc6r.js";
|
|
2
|
+
import {
|
|
3
|
+
parseHeartbeatIntervalMs2,
|
|
4
|
+
startHeartbeat2,
|
|
5
|
+
stopHeartbeat2
|
|
6
|
+
} from "./cli-944w9wb4.js";
|
|
7
|
+
import"./cli-ea7nz50q.js";
|
|
8
|
+
import"./cli-p436yrzp.js";
|
|
9
|
+
import"./cli-904wk98s.js";
|
|
10
|
+
import"./cli-4fpa0zns.js";
|
|
11
|
+
import"./cli-93n305hm.js";
|
|
12
|
+
import"./cli-gse7bp3z.js";
|
|
13
|
+
import"./cli-jyhbvdga.js";
|
|
14
|
+
import"./cli-tr19nyn9.js";
|
|
15
|
+
import"./cli-zhwjdhjr.js";
|
|
16
|
+
import"./cli-y260hgep.js";
|
|
17
|
+
import"./cli-gtj12v95.js";
|
|
18
|
+
import"./cli-9ah37a8a.js";
|
|
19
|
+
import"./cli-0p76my9q.js";
|
|
20
|
+
import"./cli-d5pc8ep0.js";
|
|
21
|
+
import"./cli-404am6f3.js";
|
|
22
|
+
import"./cli-29h5239w.js";
|
|
23
|
+
import"./cli-rmgvwcmy.js";
|
|
24
|
+
import"./cli-qzz6tz8s.js";
|
|
25
|
+
import"./cli-7gbff32z.js";
|
|
26
|
+
import"./cli-r8ddn0hf.js";
|
|
27
|
+
import"./cli-b0m3bg0f.js";
|
|
28
|
+
import"./cli-vr4eyq6p.js";
|
|
29
|
+
import"./cli-pz1dp12c.js";
|
|
30
|
+
import"./cli-ybte1fqc.js";
|
|
31
|
+
import"./cli-ysv0k1we.js";
|
|
32
|
+
import"./cli-x2cem5vy.js";
|
|
33
|
+
import"./cli-kj84fqxz.js";
|
|
34
|
+
import"./cli-ts5yv7dn.js";
|
|
35
|
+
export {
|
|
36
|
+
parseHeartbeatIntervalMs2 as parseHeartbeatIntervalMs,
|
|
37
|
+
startHeartbeat2 as startHeartbeat,
|
|
38
|
+
stopHeartbeat2 as stopHeartbeat
|
|
39
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getExecutorRegistry2,
|
|
3
|
+
initWorkflows2,
|
|
4
|
+
init_workflows
|
|
5
|
+
} from "./cli-904wk98s.js";
|
|
6
|
+
import"./cli-4fpa0zns.js";
|
|
7
|
+
import"./cli-93n305hm.js";
|
|
8
|
+
import"./cli-gse7bp3z.js";
|
|
9
|
+
import"./cli-jyhbvdga.js";
|
|
10
|
+
import"./cli-tr19nyn9.js";
|
|
11
|
+
import"./cli-zhwjdhjr.js";
|
|
12
|
+
import"./cli-y260hgep.js";
|
|
13
|
+
import"./cli-gtj12v95.js";
|
|
14
|
+
import {
|
|
15
|
+
retryFailedRun2,
|
|
16
|
+
cancelWorkflowRun2
|
|
17
|
+
} from "./cli-9ah37a8a.js";
|
|
18
|
+
import {
|
|
19
|
+
startWorkflowExecution2
|
|
20
|
+
} from "./cli-0p76my9q.js";
|
|
21
|
+
import"./cli-d5pc8ep0.js";
|
|
22
|
+
import"./cli-404am6f3.js";
|
|
23
|
+
import"./cli-29h5239w.js";
|
|
24
|
+
import"./cli-rmgvwcmy.js";
|
|
25
|
+
import"./cli-qzz6tz8s.js";
|
|
26
|
+
import"./cli-7gbff32z.js";
|
|
27
|
+
import"./cli-r8ddn0hf.js";
|
|
28
|
+
import"./cli-b0m3bg0f.js";
|
|
29
|
+
import"./cli-vr4eyq6p.js";
|
|
30
|
+
import"./cli-pz1dp12c.js";
|
|
31
|
+
import"./cli-ybte1fqc.js";
|
|
32
|
+
import"./cli-ysv0k1we.js";
|
|
33
|
+
import"./cli-x2cem5vy.js";
|
|
34
|
+
import"./cli-kj84fqxz.js";
|
|
35
|
+
import"./cli-ts5yv7dn.js";
|
|
36
|
+
init_workflows();
|
|
37
|
+
|
|
38
|
+
export {
|
|
39
|
+
cancelWorkflowRun2 as cancelWorkflowRun,
|
|
40
|
+
getExecutorRegistry2 as getExecutorRegistry,
|
|
41
|
+
initWorkflows2 as initWorkflows,
|
|
42
|
+
retryFailedRun2 as retryFailedRun,
|
|
43
|
+
startWorkflowExecution2 as startWorkflowExecution
|
|
44
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
redactWithEnv,
|
|
3
3
|
init_env2
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-kezzteka.js";
|
|
5
5
|
import {
|
|
6
6
|
WORKSPACE_MOUNT_PATH,
|
|
7
7
|
RUNTIME_LABELS,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
scrubSecrets,
|
|
13
13
|
init_secret_scrubber
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-1kvcsd2f.js";
|
|
15
15
|
import {
|
|
16
16
|
__esm
|
|
17
17
|
} from "./cli-242037k3.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listKeepAliveAuthorizations,
|
|
3
3
|
init_oauth
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-ts5yv7dn.js";
|
|
5
5
|
import {
|
|
6
6
|
ensureAuthorizationTokenOrThrow,
|
|
7
7
|
init_ensure_token
|
|
8
|
-
} from "./cli-
|
|
9
|
-
import"./cli-
|
|
8
|
+
} from "./cli-jyhbvdga.js";
|
|
9
|
+
import"./cli-ysv0k1we.js";
|
|
10
10
|
import {
|
|
11
11
|
scrubSecrets,
|
|
12
12
|
init_secret_scrubber
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-1kvcsd2f.js";
|
|
14
14
|
|
|
15
15
|
// src/oauth/keepalive.ts
|
|
16
16
|
init_oauth();
|
|
@@ -60,7 +60,7 @@ async function notifySlack(text) {
|
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
62
|
try {
|
|
63
|
-
const { getSlackApp } = await import("./app-
|
|
63
|
+
const { getSlackApp } = await import("./app-tmwa442h.js");
|
|
64
64
|
const app = getSlackApp();
|
|
65
65
|
if (!app) {
|
|
66
66
|
console.warn("[OAuth Keepalive] Slack not available, cannot send notification");
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import"./cli-ts5yv7dn.js";
|
|
2
|
+
import"./cli-x2cem5vy.js";
|
|
3
|
+
import"./cli-4fpa0zns.js";
|
|
4
|
+
import"./cli-93n305hm.js";
|
|
5
|
+
import"./cli-ybte1fqc.js";
|
|
6
|
+
import"./cli-7gbff32z.js";
|
|
7
|
+
import"./cli-qzz6tz8s.js";
|
|
8
|
+
import"./cli-vr4eyq6p.js";
|
|
9
|
+
import"./cli-r8ddn0hf.js";
|
|
10
|
+
import"./cli-rmgvwcmy.js";
|
|
11
|
+
import"./cli-d5pc8ep0.js";
|
|
12
|
+
import"./cli-9ah37a8a.js";
|
|
13
|
+
import {
|
|
14
|
+
getEnabledCapabilities,
|
|
15
|
+
init_server
|
|
16
|
+
} from "./cli-904wk98s.js";
|
|
17
|
+
import"./cli-y260hgep.js";
|
|
18
|
+
import"./cli-29h5239w.js";
|
|
19
|
+
import"./cli-404am6f3.js";
|
|
20
|
+
import"./cli-hdhpdrka.js";
|
|
21
|
+
import"./cli-h9d3sdnc.js";
|
|
22
|
+
import {
|
|
23
|
+
runAgent
|
|
24
|
+
} from "./cli-p3knvk62.js";
|
|
25
|
+
import"./cli-ywy8yz6t.js";
|
|
26
|
+
import"./cli-zexwhj3f.js";
|
|
27
|
+
import"./cli-77cd6gy8.js";
|
|
28
|
+
import"./cli-fkpnx3vf.js";
|
|
29
|
+
import"./cli-k0nebh10.js";
|
|
30
|
+
import"./cli-3xqad83h.js";
|
|
31
|
+
import"./cli-pz1nq5xm.js";
|
|
32
|
+
import"./cli-6p8p2e6r.js";
|
|
33
|
+
import"./cli-2ap1the6.js";
|
|
34
|
+
import"./cli-4pbwg7sn.js";
|
|
35
|
+
import"./cli-bv4vvnmg.js";
|
|
36
|
+
import"./cli-m1sns1da.js";
|
|
37
|
+
import"./cli-0h8skzss.js";
|
|
38
|
+
import"./cli-d82btycs.js";
|
|
39
|
+
import"./cli-0726awxw.js";
|
|
40
|
+
import"./cli-7g3fg4gf.js";
|
|
41
|
+
import"./cli-4q2c8rxw.js";
|
|
42
|
+
import"./cli-snxhtehz.js";
|
|
43
|
+
import"./cli-cah298e5.js";
|
|
44
|
+
import"./cli-5rxsb3wq.js";
|
|
45
|
+
import"./cli-srktrbby.js";
|
|
46
|
+
import"./cli-kr5tjjtz.js";
|
|
47
|
+
import"./cli-t0jmkcah.js";
|
|
48
|
+
import"./cli-zjdhrzm0.js";
|
|
49
|
+
import"./cli-94gx6ze9.js";
|
|
50
|
+
import"./cli-ja450998.js";
|
|
51
|
+
import"./cli-0fgvnb0x.js";
|
|
52
|
+
import"./cli-8cas2xvp.js";
|
|
53
|
+
import"./cli-n1kjs58m.js";
|
|
54
|
+
import"./cli-nc4pbwmp.js";
|
|
55
|
+
import"./cli-3bxrrh53.js";
|
|
56
|
+
import"./cli-5rgm8p39.js";
|
|
57
|
+
import"./cli-s33bzmk0.js";
|
|
58
|
+
import"./cli-gse7bp3z.js";
|
|
59
|
+
import"./cli-jyhbvdga.js";
|
|
60
|
+
import"./cli-tr19nyn9.js";
|
|
61
|
+
import"./cli-zhwjdhjr.js";
|
|
62
|
+
import"./cli-gtj12v95.js";
|
|
63
|
+
import"./cli-0p76my9q.js";
|
|
64
|
+
import"./cli-b0m3bg0f.js";
|
|
65
|
+
import"./cli-pz1dp12c.js";
|
|
66
|
+
import"./cli-ysv0k1we.js";
|
|
67
|
+
import"./cli-v41kn3cd.js";
|
|
68
|
+
import"./cli-kj84fqxz.js";
|
|
69
|
+
|
|
70
|
+
// src/commands/lead.ts
|
|
71
|
+
init_server();
|
|
72
|
+
var leadConfig = {
|
|
73
|
+
role: "lead",
|
|
74
|
+
defaultPrompt: "/start-leader",
|
|
75
|
+
metadataType: "lead_metadata",
|
|
76
|
+
capabilities: getEnabledCapabilities()
|
|
77
|
+
};
|
|
78
|
+
async function runLead(opts) {
|
|
79
|
+
return runAgent(leadConfig, opts);
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
runLead
|
|
83
|
+
};
|