@desplega.ai/agent-swarm 2.13.3 → 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-k8xs4tj8.js → acp-targets-zrk9k0n7.js} +10 -10
- package/dist/{actions-pg5fxjer.js → actions-acqqj9jn.js} +236 -26
- package/dist/{agent-fs-provision-vbk3fppw.js → agent-fs-provision-zmaykqnd.js} +4 -4
- package/dist/{amp-adapter-adbhxsz9.js → amp-adapter-a7ts8tmw.js} +3 -3
- package/dist/{app-b267ggx1.js → app-tmwa442h.js} +7 -7
- package/dist/{approval-notifications-evc1a9z5.js → approval-notifications-6psaaaye.js} +8 -8
- package/dist/{assistant-wgz2ab84.js → assistant-564v6emv.js} +24 -24
- package/dist/{boot-args-schema-6tpk28j4.js → boot-args-schema-n099e0f2.js} +1 -1
- package/dist/{boot-reembed-ankp369c.js → boot-reembed-chx66qfk.js} +1 -1
- package/dist/{boot-reembed-r1zyvefv.js → boot-reembed-epvg4fp9.js} +1 -1
- package/dist/{boot-scrub-sweep-cgb6r5bd.js → boot-scrub-sweep-dhkfp0a7.js} +2 -2
- package/dist/{boot-seeds-bjceqg7b.js → boot-seeds-m74fc07r.js} +4 -4
- package/dist/{boxd-hr8rsxzq.js → boxd-451q55ys.js} +1 -1
- package/dist/{claude-adapter-knztdnff.js → claude-adapter-hw63yj3j.js} +9 -9
- package/dist/{claude-managed-adapter-qwejzqkk.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-c3g6dv0g.js → claude-sdk-session-cktyqkpk.js} +11 -11
- package/dist/{cli-7fa6yv98.js → cli-0fgvnb0x.js} +6 -6
- package/dist/{cli-2v4xxnx2.js → cli-0h8skzss.js} +1 -1
- package/dist/{cli-hhb8kbwd.js → cli-0p76my9q.js} +29 -14
- package/dist/{cli-fp65jdp2.js → cli-1kvcsd2f.js} +219 -155
- package/dist/{cli-wtffytm8.js → cli-1vmhnncj.js} +3 -3
- package/dist/{cli-268b3dgn.js → cli-29h5239w.js} +5 -5
- package/dist/{cli-8fj8yfmk.js → cli-2vp0z049.js} +1 -1
- package/dist/{cli-bh53ppqm.js → cli-3bxrrh53.js} +4 -4
- package/dist/{cli-61fzwtjk.js → cli-3tzmh38q.js} +9 -9
- package/dist/{cli-88np9va3.js → cli-3xqad83h.js} +1 -1
- package/dist/{cli-gc715jrc.js → cli-3zrwrnz7.js} +1 -1
- package/dist/{cli-dw43pnzp.js → cli-404am6f3.js} +7 -7
- package/dist/{cli-8pnawt98.js → cli-49aq3cyn.js} +4 -4
- package/dist/{cli-fbmgpt72.js → cli-4fpa0zns.js} +3 -3
- package/dist/{cli-kwm1bek7.js → cli-4pbwg7sn.js} +2 -2
- package/dist/{cli-djwt4mtn.js → cli-4q2c8rxw.js} +9 -9
- package/dist/{cli-3mf04tkh.js → cli-4vynxtrb.js} +1 -1
- package/dist/{cli-80d5g0fa.js → cli-5ashycw3.js} +3 -3
- package/dist/{cli-61p7ty8d.js → cli-5rgm8p39.js} +3 -3
- package/dist/{cli-r6xnchva.js → cli-5rxsb3wq.js} +6 -6
- package/dist/{cli-a21cwm89.js → cli-60dwk8tx.js} +3 -3
- package/dist/{cli-v1v49t36.js → cli-7by7vp6m.js} +2 -2
- package/dist/{cli-vgh5adn9.js → cli-7g3fg4gf.js} +7 -7
- package/dist/{cli-hxj888w3.js → cli-7gbff32z.js} +2 -2
- package/dist/{cli-q8aq48v1.js → cli-8b4rpnwj.js} +1 -1
- package/dist/{cli-xc8m5cjn.js → cli-8cas2xvp.js} +3 -3
- package/dist/{cli-1606qw3n.js → cli-904wk98s.js} +797 -369
- package/dist/{cli-h3drhntp.js → cli-93n305hm.js} +2 -2
- package/dist/{cli-1wew39p0.js → cli-944w9wb4.js} +20 -16
- package/dist/{cli-je587f74.js → cli-94gx6ze9.js} +1 -1
- package/dist/{cli-hpxcfvdm.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-ef590376.js → cli-bv4vvnmg.js} +3 -3
- package/dist/{cli-ppf9ap9n.js → cli-bzcwwebm.js} +1 -1
- package/dist/{cli-sy2ge2ye.js → cli-cq4am6vg.js} +2 -2
- package/dist/{cli-gxqwm3k3.js → cli-d5pc8ep0.js} +102 -8
- package/dist/{cli-hd2a204w.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-ka4tqjzd.js → cli-gse7bp3z.js} +12 -10
- package/dist/{cli-v8rpjrnx.js → cli-gtj12v95.js} +1 -1
- package/dist/{cli-g4dhd3pr.js → cli-hdhpdrka.js} +6 -23
- package/dist/{cli-dq30fq3q.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-8sayvj48.js → cli-jyhbvdga.js} +3 -3
- package/dist/{cli-55fqpd9q.js → cli-jzerrzgc.js} +8 -8
- package/dist/{cli-hv3820ez.js → cli-k0nebh10.js} +1 -1
- package/dist/{cli-aytna2fm.js → cli-ka48vpev.js} +5 -5
- package/dist/{cli-d2epqm0y.js → cli-kezzteka.js} +1 -1
- package/dist/{cli-grk77aen.js → cli-kj84fqxz.js} +2 -2
- package/dist/{cli-h0ewec3d.js → cli-kr0jpw9c.js} +1 -1
- package/dist/{cli-wsnradtk.js → cli-m1sns1da.js} +2 -2
- package/dist/{cli-7kv5d674.js → cli-n1kjs58m.js} +4 -4
- package/dist/{cli-syqcny89.js → cli-nc4pbwmp.js} +9 -9
- package/dist/{cli-9gmkw6xn.js → cli-p3knvk62.js} +48 -42
- package/dist/{cli-50whymxq.js → cli-p436yrzp.js} +2 -2
- package/dist/{cli-0j4qmc80.js → cli-phdzn699.js} +7 -7
- package/dist/{cli-1gnf5c7x.js → cli-pz1dp12c.js} +1 -1
- package/dist/{cli-nbawx3s0.js → cli-pz1nq5xm.js} +6 -6
- package/dist/{cli-4dyhzhpx.js → cli-qzz6tz8s.js} +1 -1
- package/dist/{cli-ea367bdn.js → cli-rmgvwcmy.js} +22 -22
- package/dist/{cli-mgr3gatr.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-pzsedyb0.js → cli-t0jmkcah.js} +14 -14
- package/dist/{cli-eetzmsy5.js → cli-t9pzz2eq.js} +2 -2
- package/dist/{cli-w24741sm.js → cli-tr19nyn9.js} +4 -4
- package/dist/{cli-e4gx499y.js → cli-ts5yv7dn.js} +163 -86
- package/dist/{cli-czeh7x13.js → cli-tsc3pdfd.js} +4 -4
- package/dist/{cli-y0q92v4r.js → cli-tzw1jr2t.js} +2 -2
- package/dist/{cli-tjf1bh1v.js → cli-x2cem5vy.js} +6 -4
- package/dist/{cli-vx9acp12.js → cli-ybte1fqc.js} +1 -1
- package/dist/{cli-gkjw33x5.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-8m6gqnf1.js → cli-zexwhj3f.js} +3 -3
- package/dist/{cli-snwz16eg.js → cli-zhwjdhjr.js} +2 -2
- package/dist/{cli-y754psdt.js → cli-zjdhrzm0.js} +4 -4
- package/dist/cli.js +19 -19
- package/dist/{codex-adapter-493vb8cv.js → codex-adapter-2fs2c0n6.js} +8 -8
- package/dist/{codex-hook-ej8hn6z5.js → codex-hook-jxjv6dy5.js} +1 -1
- package/dist/{codex-login-ven5cz5j.js → codex-login-ktfg1cxk.js} +1 -1
- package/dist/{codex-session-runner-ps5m4z1g.js → codex-session-runner-r55tmx4c.js} +9 -9
- package/dist/{commands-shktk0b8.js → commands-0mxdy9x8.js} +3 -3
- package/dist/{controller-wn3vd217.js → controller-g3vkfhr4.js} +4 -4
- package/dist/{controllers-connect-yft057ws.js → controllers-connect-4wdmncqt.js} +25 -25
- package/dist/core-gsvj5f3z.js +42 -0
- package/dist/{cursor-adapter-8fpm4dng.js → cursor-adapter-t9qb96q2.js} +2 -2
- package/dist/{db-0ezhdhz5.js → db-487vvyv9.js} +3 -3
- package/dist/{db-84pz2w5c.js → db-76p7w3gr.js} +2 -2
- package/dist/{devin-adapter-fs90ab4v.js → devin-adapter-3bp6rape.js} +1 -1
- package/dist/{dispatcher-h2rz69f6.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-m41ad78v.js → easter-egg-3d-jrrwyf55.js} +1 -1
- package/dist/{embedding-space-yam9zwzj.js → embedding-space-001hhhpk.js} +6 -6
- package/dist/{embeddings-g2be0y8q.js → embeddings-esj19cnw.js} +1 -1
- package/dist/{event-bus-08t2b4y2.js → event-bus-7gbsr0g4.js} +1 -1
- package/dist/{execute-hhdejgzf.js → execute-301hkxqg.js} +1 -1
- package/dist/{external-channel-kjt2yzfj.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-2e5jdexj.js → heartbeat-tbrj7vhq.js} +25 -25
- package/dist/{hook-acg9saz7.js → hook-3am1sq68.js} +6 -6
- package/dist/{hook-34s8cmgn.js → hook-tx917rqw.js} +8 -8
- package/dist/{http-ra2zr2f8.js → http-3rmemtqy.js} +335 -1829
- package/dist/{index-mbpxhc4w.js → index-126v2d0t.js} +1 -4
- package/dist/{index-2z1z7qx6.js → index-2jw11t8s.js} +26 -26
- package/dist/{index-9q42cr54.js → index-aetfyx6p.js} +1 -1
- package/dist/index-e6bq0exk.js +42 -0
- package/dist/{index-9r4j0a60.js → index-gfnq66t1.js} +223 -25
- package/dist/index-hf2k1vge.js +39 -0
- package/dist/{index-93bw5wds.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-vjnnqbkm.js → keepalive-9px3t7qj.js} +5 -5
- package/dist/lead-5vt6f174.js +83 -0
- package/dist/{maintenance-px2g599e.js → maintenance-vwqjwst6.js} +1 -1
- package/dist/{oauth-refresh-sweep-nkykf09m.js → oauth-refresh-sweep-yqry3wn4.js} +4 -4
- package/dist/{object-webhooks-gt9xnq21.js → object-webhooks-8s1wtths.js} +7 -7
- package/dist/{onboard-1f134p65.js → onboard-hb8czx0p.js} +7 -7
- package/dist/{opencode-adapter-94976yab.js → opencode-adapter-djd6m6dk.js} +8 -8
- package/dist/{otel-impl-5d4p2fqs.js → otel-impl-2ymwyczz.js} +2 -2
- package/dist/{pending-vkk0vx6n.js → pending-nxavtvx7.js} +23 -23
- package/dist/{pi-mono-adapter-cyzdv5er.js → pi-mono-adapter-d2cpmcy4.js} +12 -12
- package/dist/{pricing-refresh-jtmjwss9.js → pricing-refresh-1yz8jkqv.js} +2 -2
- package/dist/{rbac-roles-1fvmdyeb.js → rbac-roles-7s6m31xw.js} +6 -4
- package/dist/{rbac-roles-yd1fgpsn.js → rbac-roles-dbpx0x9v.js} +3 -3
- package/dist/{render-v2-kb5s3vx4.js → render-v2-7y20rjrn.js} +7 -7
- package/dist/{resume-z1vs44n5.js → resume-wz546x47.js} +10 -10
- package/dist/{runtime-gk6ct7r7.js → runtime-cb5bd9tz.js} +1 -1
- package/dist/{session-access-nz6nre4d.js → session-access-4vcft8kq.js} +5 -5
- package/dist/{session-source-backfill-wb60zjkd.js → session-source-backfill-57b50tpw.js} +3 -3
- package/dist/{setup-2x8g8j4s.js → setup-e1tevjyj.js} +1 -1
- package/dist/thread-buffer-686pa1p1.js +42 -0
- package/dist/{tree-visibility-ts3z30kw.js → tree-visibility-07wf1nct.js} +2 -2
- package/dist/{user-merge-jobs-zetg26e0.js → user-merge-jobs-n20qpv6s.js} +3 -3
- package/dist/{virtual-modules-674fka8x.js → virtual-modules-6fxmn1yv.js} +3 -3
- package/dist/{work-objects-w52yyjxm.js → work-objects-eg7y48pe.js} +25 -25
- package/dist/worker-4vp616ms.js +83 -0
- package/dist/{worker-follow-up-dyfxyjbj.js → worker-follow-up-jnvnnf2b.js} +22 -22
- package/dist/{x-asbrnafg.js → x-d27jj7z7.js} +2 -2
- package/openapi.json +475 -28
- package/package.json +2 -2
- 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/heartbeat/heartbeat.ts +18 -4
- 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/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/providers/amp-adapter.ts +1 -1
- package/src/providers/dsh-adapter.ts +48 -13
- 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/tests/chat-sdk-mentions.test.ts +183 -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/secret-corpus.ts +43 -1
- package/src/tests/heartbeat-stall-thresholds.test.ts +174 -0
- package/src/tests/jira-adf.test.ts +42 -2
- 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/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/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 +65 -0
- 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 +5 -0
- package/templates/skills/workflow-iterate/content.md +1 -1
- package/dist/acp-adapter-t2q6nsqv.js +0 -17
- package/dist/cli-kh973792.js +0 -98
- package/dist/core-nheayfgm.js +0 -42
- package/dist/fx-adapter-8g7xsp8q.js +0 -20
- package/dist/grok-adapter-ztk2zkz1.js +0 -20
- package/dist/handlers-9ywssz71.js +0 -41
- package/dist/index-6mgbdtv1.js +0 -44
- package/dist/index-hqdsn2t2.js +0 -39
- package/dist/index-st231bqv.js +0 -40
- package/dist/lead-mk0xkth2.js +0 -82
- package/dist/thread-buffer-d50rqpev.js +0 -42
- package/dist/worker-662x1vse.js +0 -82
package/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Agent Swarm API",
|
|
5
|
-
"version": "2.13.
|
|
5
|
+
"version": "2.13.4",
|
|
6
6
|
"description": "Multi-agent orchestration API for Claude Code, Codex, and Gemini CLI. Enables task distribution, agent communication, and service discovery.\n\nMCP tools are documented separately in [MCP.md](./MCP.md)."
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
@@ -1927,6 +1927,137 @@
|
|
|
1927
1927
|
"createdAt"
|
|
1928
1928
|
]
|
|
1929
1929
|
},
|
|
1930
|
+
"DesignSystem": {
|
|
1931
|
+
"type": [
|
|
1932
|
+
"object",
|
|
1933
|
+
"null"
|
|
1934
|
+
],
|
|
1935
|
+
"properties": {
|
|
1936
|
+
"v": {
|
|
1937
|
+
"type": "number",
|
|
1938
|
+
"enum": [
|
|
1939
|
+
1
|
|
1940
|
+
]
|
|
1941
|
+
},
|
|
1942
|
+
"status": {
|
|
1943
|
+
"type": "string",
|
|
1944
|
+
"enum": [
|
|
1945
|
+
"active",
|
|
1946
|
+
"declined"
|
|
1947
|
+
]
|
|
1948
|
+
},
|
|
1949
|
+
"basePreset": {
|
|
1950
|
+
"type": "string"
|
|
1951
|
+
},
|
|
1952
|
+
"tokens": {
|
|
1953
|
+
"$ref": "#/components/schemas/PageThemeTokens"
|
|
1954
|
+
},
|
|
1955
|
+
"fontsHref": {
|
|
1956
|
+
"type": "string"
|
|
1957
|
+
},
|
|
1958
|
+
"logo": {
|
|
1959
|
+
"type": "object",
|
|
1960
|
+
"properties": {
|
|
1961
|
+
"url": {
|
|
1962
|
+
"type": "string",
|
|
1963
|
+
"minLength": 1,
|
|
1964
|
+
"maxLength": 2048
|
|
1965
|
+
},
|
|
1966
|
+
"alt": {
|
|
1967
|
+
"type": "string",
|
|
1968
|
+
"minLength": 1,
|
|
1969
|
+
"maxLength": 200
|
|
1970
|
+
}
|
|
1971
|
+
},
|
|
1972
|
+
"required": [
|
|
1973
|
+
"url",
|
|
1974
|
+
"alt"
|
|
1975
|
+
]
|
|
1976
|
+
},
|
|
1977
|
+
"mode": {
|
|
1978
|
+
"type": "string",
|
|
1979
|
+
"enum": [
|
|
1980
|
+
"viewer",
|
|
1981
|
+
"light",
|
|
1982
|
+
"dark"
|
|
1983
|
+
]
|
|
1984
|
+
},
|
|
1985
|
+
"chartPalette": {
|
|
1986
|
+
"type": "array",
|
|
1987
|
+
"items": {
|
|
1988
|
+
"type": "string"
|
|
1989
|
+
}
|
|
1990
|
+
},
|
|
1991
|
+
"source": {
|
|
1992
|
+
"type": "object",
|
|
1993
|
+
"properties": {
|
|
1994
|
+
"kind": {
|
|
1995
|
+
"type": "string",
|
|
1996
|
+
"enum": [
|
|
1997
|
+
"manual",
|
|
1998
|
+
"website",
|
|
1999
|
+
"brand-kit",
|
|
2000
|
+
"preset"
|
|
2001
|
+
]
|
|
2002
|
+
},
|
|
2003
|
+
"ref": {
|
|
2004
|
+
"type": "string",
|
|
2005
|
+
"maxLength": 2048
|
|
2006
|
+
},
|
|
2007
|
+
"extractedAt": {
|
|
2008
|
+
"type": "string",
|
|
2009
|
+
"maxLength": 64
|
|
2010
|
+
}
|
|
2011
|
+
},
|
|
2012
|
+
"required": [
|
|
2013
|
+
"kind"
|
|
2014
|
+
]
|
|
2015
|
+
},
|
|
2016
|
+
"updatedBy": {
|
|
2017
|
+
"type": [
|
|
2018
|
+
"string",
|
|
2019
|
+
"null"
|
|
2020
|
+
]
|
|
2021
|
+
},
|
|
2022
|
+
"updatedByAgentId": {
|
|
2023
|
+
"type": "string"
|
|
2024
|
+
},
|
|
2025
|
+
"updatedAt": {
|
|
2026
|
+
"type": "string"
|
|
2027
|
+
}
|
|
2028
|
+
},
|
|
2029
|
+
"required": [
|
|
2030
|
+
"v",
|
|
2031
|
+
"status",
|
|
2032
|
+
"basePreset",
|
|
2033
|
+
"tokens",
|
|
2034
|
+
"mode",
|
|
2035
|
+
"source",
|
|
2036
|
+
"updatedBy",
|
|
2037
|
+
"updatedAt"
|
|
2038
|
+
]
|
|
2039
|
+
},
|
|
2040
|
+
"PageThemeTokens": {
|
|
2041
|
+
"type": "object",
|
|
2042
|
+
"properties": {
|
|
2043
|
+
"light": {
|
|
2044
|
+
"type": "object",
|
|
2045
|
+
"additionalProperties": {
|
|
2046
|
+
"type": "string"
|
|
2047
|
+
}
|
|
2048
|
+
},
|
|
2049
|
+
"dark": {
|
|
2050
|
+
"type": "object",
|
|
2051
|
+
"additionalProperties": {
|
|
2052
|
+
"type": "string"
|
|
2053
|
+
}
|
|
2054
|
+
}
|
|
2055
|
+
},
|
|
2056
|
+
"required": [
|
|
2057
|
+
"light",
|
|
2058
|
+
"dark"
|
|
2059
|
+
]
|
|
2060
|
+
},
|
|
1930
2061
|
"SwarmEvent": {
|
|
1931
2062
|
"type": "object",
|
|
1932
2063
|
"properties": {
|
|
@@ -3640,30 +3771,6 @@
|
|
|
3640
3771
|
}
|
|
3641
3772
|
}
|
|
3642
3773
|
},
|
|
3643
|
-
"PageThemeTokens": {
|
|
3644
|
-
"type": [
|
|
3645
|
-
"object",
|
|
3646
|
-
"null"
|
|
3647
|
-
],
|
|
3648
|
-
"properties": {
|
|
3649
|
-
"light": {
|
|
3650
|
-
"type": "object",
|
|
3651
|
-
"additionalProperties": {
|
|
3652
|
-
"type": "string"
|
|
3653
|
-
}
|
|
3654
|
-
},
|
|
3655
|
-
"dark": {
|
|
3656
|
-
"type": "object",
|
|
3657
|
-
"additionalProperties": {
|
|
3658
|
-
"type": "string"
|
|
3659
|
-
}
|
|
3660
|
-
}
|
|
3661
|
-
},
|
|
3662
|
-
"required": [
|
|
3663
|
-
"light",
|
|
3664
|
-
"dark"
|
|
3665
|
-
]
|
|
3666
|
-
},
|
|
3667
3774
|
"Page": {
|
|
3668
3775
|
"type": "object",
|
|
3669
3776
|
"properties": {
|
|
@@ -3723,7 +3830,14 @@
|
|
|
3723
3830
|
]
|
|
3724
3831
|
},
|
|
3725
3832
|
"themeTokens": {
|
|
3726
|
-
"
|
|
3833
|
+
"anyOf": [
|
|
3834
|
+
{
|
|
3835
|
+
"$ref": "#/components/schemas/PageThemeTokens"
|
|
3836
|
+
},
|
|
3837
|
+
{
|
|
3838
|
+
"type": "null"
|
|
3839
|
+
}
|
|
3840
|
+
]
|
|
3727
3841
|
},
|
|
3728
3842
|
"designVersion": {
|
|
3729
3843
|
"type": "integer",
|
|
@@ -3835,7 +3949,14 @@
|
|
|
3835
3949
|
]
|
|
3836
3950
|
},
|
|
3837
3951
|
"themeTokens": {
|
|
3838
|
-
"
|
|
3952
|
+
"anyOf": [
|
|
3953
|
+
{
|
|
3954
|
+
"$ref": "#/components/schemas/PageThemeTokens"
|
|
3955
|
+
},
|
|
3956
|
+
{
|
|
3957
|
+
"type": "null"
|
|
3958
|
+
}
|
|
3959
|
+
]
|
|
3839
3960
|
},
|
|
3840
3961
|
"designVersion": {
|
|
3841
3962
|
"type": "integer",
|
|
@@ -15812,6 +15933,22 @@
|
|
|
15812
15933
|
},
|
|
15813
15934
|
"respondedAt": {
|
|
15814
15935
|
"type": "string"
|
|
15936
|
+
},
|
|
15937
|
+
"via": {
|
|
15938
|
+
"type": "object",
|
|
15939
|
+
"properties": {
|
|
15940
|
+
"channel": {
|
|
15941
|
+
"type": "string"
|
|
15942
|
+
},
|
|
15943
|
+
"platformUserId": {
|
|
15944
|
+
"type": "string"
|
|
15945
|
+
}
|
|
15946
|
+
},
|
|
15947
|
+
"required": [
|
|
15948
|
+
"channel",
|
|
15949
|
+
"platformUserId"
|
|
15950
|
+
],
|
|
15951
|
+
"description": "Set when the answer came from a chat button: the channel and the platform user."
|
|
15815
15952
|
}
|
|
15816
15953
|
},
|
|
15817
15954
|
"required": [
|
|
@@ -16316,6 +16453,22 @@
|
|
|
16316
16453
|
},
|
|
16317
16454
|
"respondedAt": {
|
|
16318
16455
|
"type": "string"
|
|
16456
|
+
},
|
|
16457
|
+
"via": {
|
|
16458
|
+
"type": "object",
|
|
16459
|
+
"properties": {
|
|
16460
|
+
"channel": {
|
|
16461
|
+
"type": "string"
|
|
16462
|
+
},
|
|
16463
|
+
"platformUserId": {
|
|
16464
|
+
"type": "string"
|
|
16465
|
+
}
|
|
16466
|
+
},
|
|
16467
|
+
"required": [
|
|
16468
|
+
"channel",
|
|
16469
|
+
"platformUserId"
|
|
16470
|
+
],
|
|
16471
|
+
"description": "Set when the answer came from a chat button: the channel and the platform user."
|
|
16319
16472
|
}
|
|
16320
16473
|
},
|
|
16321
16474
|
"required": [
|
|
@@ -16891,6 +17044,22 @@
|
|
|
16891
17044
|
},
|
|
16892
17045
|
"respondedAt": {
|
|
16893
17046
|
"type": "string"
|
|
17047
|
+
},
|
|
17048
|
+
"via": {
|
|
17049
|
+
"type": "object",
|
|
17050
|
+
"properties": {
|
|
17051
|
+
"channel": {
|
|
17052
|
+
"type": "string"
|
|
17053
|
+
},
|
|
17054
|
+
"platformUserId": {
|
|
17055
|
+
"type": "string"
|
|
17056
|
+
}
|
|
17057
|
+
},
|
|
17058
|
+
"required": [
|
|
17059
|
+
"channel",
|
|
17060
|
+
"platformUserId"
|
|
17061
|
+
],
|
|
17062
|
+
"description": "Set when the answer came from a chat button: the channel and the platform user."
|
|
16894
17063
|
}
|
|
16895
17064
|
},
|
|
16896
17065
|
"required": [
|
|
@@ -17375,6 +17544,22 @@
|
|
|
17375
17544
|
},
|
|
17376
17545
|
"respondedAt": {
|
|
17377
17546
|
"type": "string"
|
|
17547
|
+
},
|
|
17548
|
+
"via": {
|
|
17549
|
+
"type": "object",
|
|
17550
|
+
"properties": {
|
|
17551
|
+
"channel": {
|
|
17552
|
+
"type": "string"
|
|
17553
|
+
},
|
|
17554
|
+
"platformUserId": {
|
|
17555
|
+
"type": "string"
|
|
17556
|
+
}
|
|
17557
|
+
},
|
|
17558
|
+
"required": [
|
|
17559
|
+
"channel",
|
|
17560
|
+
"platformUserId"
|
|
17561
|
+
],
|
|
17562
|
+
"description": "Set when the answer came from a chat button: the channel and the platform user."
|
|
17378
17563
|
}
|
|
17379
17564
|
},
|
|
17380
17565
|
"required": [
|
|
@@ -17881,6 +18066,22 @@
|
|
|
17881
18066
|
},
|
|
17882
18067
|
"respondedAt": {
|
|
17883
18068
|
"type": "string"
|
|
18069
|
+
},
|
|
18070
|
+
"via": {
|
|
18071
|
+
"type": "object",
|
|
18072
|
+
"properties": {
|
|
18073
|
+
"channel": {
|
|
18074
|
+
"type": "string"
|
|
18075
|
+
},
|
|
18076
|
+
"platformUserId": {
|
|
18077
|
+
"type": "string"
|
|
18078
|
+
}
|
|
18079
|
+
},
|
|
18080
|
+
"required": [
|
|
18081
|
+
"channel",
|
|
18082
|
+
"platformUserId"
|
|
18083
|
+
],
|
|
18084
|
+
"description": "Set when the answer came from a chat button: the channel and the platform user."
|
|
17884
18085
|
}
|
|
17885
18086
|
},
|
|
17886
18087
|
"required": [
|
|
@@ -23468,6 +23669,235 @@
|
|
|
23468
23669
|
}
|
|
23469
23670
|
}
|
|
23470
23671
|
},
|
|
23672
|
+
"/api/design-system": {
|
|
23673
|
+
"get": {
|
|
23674
|
+
"summary": "Get the org design system",
|
|
23675
|
+
"tags": [
|
|
23676
|
+
"Pages"
|
|
23677
|
+
],
|
|
23678
|
+
"security": [
|
|
23679
|
+
{
|
|
23680
|
+
"bearerAuth": []
|
|
23681
|
+
}
|
|
23682
|
+
],
|
|
23683
|
+
"responses": {
|
|
23684
|
+
"200": {
|
|
23685
|
+
"description": "The org design system and the value it replaced",
|
|
23686
|
+
"content": {
|
|
23687
|
+
"application/json": {
|
|
23688
|
+
"schema": {
|
|
23689
|
+
"type": "object",
|
|
23690
|
+
"properties": {
|
|
23691
|
+
"status": {
|
|
23692
|
+
"type": "string",
|
|
23693
|
+
"enum": [
|
|
23694
|
+
"none",
|
|
23695
|
+
"invalid",
|
|
23696
|
+
"active",
|
|
23697
|
+
"declined"
|
|
23698
|
+
]
|
|
23699
|
+
},
|
|
23700
|
+
"designSystem": {
|
|
23701
|
+
"$ref": "#/components/schemas/DesignSystem"
|
|
23702
|
+
},
|
|
23703
|
+
"invalidReason": {
|
|
23704
|
+
"type": "string"
|
|
23705
|
+
},
|
|
23706
|
+
"previous": {
|
|
23707
|
+
"$ref": "#/components/schemas/DesignSystem"
|
|
23708
|
+
}
|
|
23709
|
+
},
|
|
23710
|
+
"required": [
|
|
23711
|
+
"status",
|
|
23712
|
+
"designSystem",
|
|
23713
|
+
"previous"
|
|
23714
|
+
]
|
|
23715
|
+
}
|
|
23716
|
+
}
|
|
23717
|
+
}
|
|
23718
|
+
}
|
|
23719
|
+
}
|
|
23720
|
+
},
|
|
23721
|
+
"put": {
|
|
23722
|
+
"summary": "Set or decline the org design system",
|
|
23723
|
+
"tags": [
|
|
23724
|
+
"Pages"
|
|
23725
|
+
],
|
|
23726
|
+
"security": [
|
|
23727
|
+
{
|
|
23728
|
+
"bearerAuth": []
|
|
23729
|
+
}
|
|
23730
|
+
],
|
|
23731
|
+
"requestBody": {
|
|
23732
|
+
"content": {
|
|
23733
|
+
"application/json": {
|
|
23734
|
+
"schema": {
|
|
23735
|
+
"type": "object",
|
|
23736
|
+
"properties": {
|
|
23737
|
+
"status": {
|
|
23738
|
+
"type": "string",
|
|
23739
|
+
"enum": [
|
|
23740
|
+
"active",
|
|
23741
|
+
"declined"
|
|
23742
|
+
],
|
|
23743
|
+
"description": "\"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`."
|
|
23744
|
+
},
|
|
23745
|
+
"basePreset": {
|
|
23746
|
+
"type": "string",
|
|
23747
|
+
"description": "Preset id the tokens apply on top of, for example hive or paper. Default hive."
|
|
23748
|
+
},
|
|
23749
|
+
"themeTokens": {
|
|
23750
|
+
"type": "object",
|
|
23751
|
+
"properties": {
|
|
23752
|
+
"format": {
|
|
23753
|
+
"type": "string",
|
|
23754
|
+
"enum": [
|
|
23755
|
+
"tokens",
|
|
23756
|
+
"css"
|
|
23757
|
+
]
|
|
23758
|
+
},
|
|
23759
|
+
"light": {
|
|
23760
|
+
"type": "object",
|
|
23761
|
+
"additionalProperties": {
|
|
23762
|
+
"type": "string"
|
|
23763
|
+
}
|
|
23764
|
+
},
|
|
23765
|
+
"dark": {
|
|
23766
|
+
"type": "object",
|
|
23767
|
+
"additionalProperties": {
|
|
23768
|
+
"type": "string"
|
|
23769
|
+
}
|
|
23770
|
+
},
|
|
23771
|
+
"css": {
|
|
23772
|
+
"type": "string"
|
|
23773
|
+
}
|
|
23774
|
+
},
|
|
23775
|
+
"additionalProperties": false,
|
|
23776
|
+
"description": "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."
|
|
23777
|
+
},
|
|
23778
|
+
"fontsHref": {
|
|
23779
|
+
"type": "string",
|
|
23780
|
+
"maxLength": 2048,
|
|
23781
|
+
"description": "Google Fonts stylesheet URL (https://fonts.googleapis.com/...) that loads the fonts the tokens name."
|
|
23782
|
+
},
|
|
23783
|
+
"logo": {
|
|
23784
|
+
"type": "object",
|
|
23785
|
+
"properties": {
|
|
23786
|
+
"url": {
|
|
23787
|
+
"type": "string",
|
|
23788
|
+
"minLength": 1,
|
|
23789
|
+
"maxLength": 2048
|
|
23790
|
+
},
|
|
23791
|
+
"alt": {
|
|
23792
|
+
"type": "string",
|
|
23793
|
+
"minLength": 1,
|
|
23794
|
+
"maxLength": 200
|
|
23795
|
+
}
|
|
23796
|
+
},
|
|
23797
|
+
"required": [
|
|
23798
|
+
"url",
|
|
23799
|
+
"alt"
|
|
23800
|
+
],
|
|
23801
|
+
"description": "https logo URL and its alt text."
|
|
23802
|
+
},
|
|
23803
|
+
"mode": {
|
|
23804
|
+
"type": "string",
|
|
23805
|
+
"enum": [
|
|
23806
|
+
"viewer",
|
|
23807
|
+
"light",
|
|
23808
|
+
"dark"
|
|
23809
|
+
],
|
|
23810
|
+
"description": "\"viewer\" (default) follows the viewer's light or dark mode. \"light\" or \"dark\" locks every page to that mode."
|
|
23811
|
+
},
|
|
23812
|
+
"chartPalette": {
|
|
23813
|
+
"type": "array",
|
|
23814
|
+
"items": {
|
|
23815
|
+
"type": "string"
|
|
23816
|
+
},
|
|
23817
|
+
"maxItems": 12,
|
|
23818
|
+
"description": "Ordered chart series colors, as CSS color values."
|
|
23819
|
+
},
|
|
23820
|
+
"source": {
|
|
23821
|
+
"type": "object",
|
|
23822
|
+
"properties": {
|
|
23823
|
+
"kind": {
|
|
23824
|
+
"type": "string",
|
|
23825
|
+
"enum": [
|
|
23826
|
+
"manual",
|
|
23827
|
+
"website",
|
|
23828
|
+
"brand-kit",
|
|
23829
|
+
"preset"
|
|
23830
|
+
]
|
|
23831
|
+
},
|
|
23832
|
+
"ref": {
|
|
23833
|
+
"type": "string",
|
|
23834
|
+
"maxLength": 2048
|
|
23835
|
+
},
|
|
23836
|
+
"extractedAt": {
|
|
23837
|
+
"type": "string",
|
|
23838
|
+
"maxLength": 64
|
|
23839
|
+
}
|
|
23840
|
+
},
|
|
23841
|
+
"required": [
|
|
23842
|
+
"kind"
|
|
23843
|
+
],
|
|
23844
|
+
"description": "Where the design system came from. Default { kind: manual }."
|
|
23845
|
+
}
|
|
23846
|
+
},
|
|
23847
|
+
"additionalProperties": false
|
|
23848
|
+
}
|
|
23849
|
+
}
|
|
23850
|
+
}
|
|
23851
|
+
},
|
|
23852
|
+
"responses": {
|
|
23853
|
+
"200": {
|
|
23854
|
+
"description": "The saved, normalized design system",
|
|
23855
|
+
"content": {
|
|
23856
|
+
"application/json": {
|
|
23857
|
+
"schema": {
|
|
23858
|
+
"type": "object",
|
|
23859
|
+
"properties": {
|
|
23860
|
+
"designSystem": {
|
|
23861
|
+
"$ref": "#/components/schemas/DesignSystem"
|
|
23862
|
+
},
|
|
23863
|
+
"ignoredTokens": {
|
|
23864
|
+
"type": "array",
|
|
23865
|
+
"items": {
|
|
23866
|
+
"type": "string"
|
|
23867
|
+
}
|
|
23868
|
+
}
|
|
23869
|
+
},
|
|
23870
|
+
"required": [
|
|
23871
|
+
"designSystem",
|
|
23872
|
+
"ignoredTokens"
|
|
23873
|
+
]
|
|
23874
|
+
}
|
|
23875
|
+
}
|
|
23876
|
+
}
|
|
23877
|
+
},
|
|
23878
|
+
"400": {
|
|
23879
|
+
"description": "Invalid design system",
|
|
23880
|
+
"content": {
|
|
23881
|
+
"application/json": {
|
|
23882
|
+
"schema": {
|
|
23883
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
23884
|
+
}
|
|
23885
|
+
}
|
|
23886
|
+
}
|
|
23887
|
+
},
|
|
23888
|
+
"403": {
|
|
23889
|
+
"description": "Permission denied",
|
|
23890
|
+
"content": {
|
|
23891
|
+
"application/json": {
|
|
23892
|
+
"schema": {
|
|
23893
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
23894
|
+
}
|
|
23895
|
+
}
|
|
23896
|
+
}
|
|
23897
|
+
}
|
|
23898
|
+
}
|
|
23899
|
+
}
|
|
23900
|
+
},
|
|
23471
23901
|
"/api/events": {
|
|
23472
23902
|
"post": {
|
|
23473
23903
|
"summary": "Store a single event",
|
|
@@ -42707,7 +43137,14 @@
|
|
|
42707
43137
|
]
|
|
42708
43138
|
},
|
|
42709
43139
|
"themeTokens": {
|
|
42710
|
-
"
|
|
43140
|
+
"anyOf": [
|
|
43141
|
+
{
|
|
43142
|
+
"$ref": "#/components/schemas/PageThemeTokens"
|
|
43143
|
+
},
|
|
43144
|
+
{
|
|
43145
|
+
"type": "null"
|
|
43146
|
+
}
|
|
43147
|
+
]
|
|
42711
43148
|
},
|
|
42712
43149
|
"designVersion": {
|
|
42713
43150
|
"type": "integer",
|
|
@@ -43185,6 +43622,16 @@
|
|
|
43185
43622
|
}
|
|
43186
43623
|
}
|
|
43187
43624
|
},
|
|
43625
|
+
"403": {
|
|
43626
|
+
"description": "Caller may not open pages",
|
|
43627
|
+
"content": {
|
|
43628
|
+
"application/json": {
|
|
43629
|
+
"schema": {
|
|
43630
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
43631
|
+
}
|
|
43632
|
+
}
|
|
43633
|
+
}
|
|
43634
|
+
},
|
|
43188
43635
|
"404": {
|
|
43189
43636
|
"description": "Page not found",
|
|
43190
43637
|
"content": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@desplega.ai/agent-swarm",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.4",
|
|
4
4
|
"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.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent-swarm.dev",
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
"@chat-adapter/teams": "4.45.0",
|
|
221
221
|
"@chat-adapter/telegram": "4.45.0",
|
|
222
222
|
"@cursor/sdk": "1.4.0",
|
|
223
|
-
"@desplega.ai/agent-fs-just-bash": "0.18.
|
|
223
|
+
"@desplega.ai/agent-fs-just-bash": "0.18.32",
|
|
224
224
|
"@desplega.ai/business-use": "^0.4.2",
|
|
225
225
|
"@earendil-works/pi-agent-core": "^1.5.2",
|
|
226
226
|
"@earendil-works/pi-ai": "^1.5.2",
|
package/src/be/db/approvals.ts
CHANGED
|
@@ -14,6 +14,8 @@ export interface ApprovalVote {
|
|
|
14
14
|
responses: Record<string, unknown>;
|
|
15
15
|
claimedRespondedBy?: string;
|
|
16
16
|
respondedAt: string;
|
|
17
|
+
/** Set when the answer came from a chat button: the channel and the clicking platform user. */
|
|
18
|
+
via?: { channel: string; platformUserId: string };
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
export interface ApprovalRequestListFilters {
|
package/src/be/db/runtime.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { migrateLegacyCredentialBindingBlob } from "../connection-bindings-blob-
|
|
|
6
6
|
import { resolveEncryptionKey } from "../crypto";
|
|
7
7
|
import { createBunSqliteClient, type DbClient } from "../db-client";
|
|
8
8
|
import { runMigrations } from "../migrations/runner";
|
|
9
|
+
import { assertScriptRunSourceSchema } from "../migrations/script-run-sources";
|
|
9
10
|
import { autoEncryptLegacyOAuthSecrets } from "../oauth-encryption-backfill";
|
|
10
11
|
import { sealedReplayExistsSql } from "../sealed-json";
|
|
11
12
|
|
|
@@ -146,6 +147,9 @@ function bootOpenedDb(
|
|
|
146
147
|
): Database {
|
|
147
148
|
// Read before anything below can create a table.
|
|
148
149
|
dbCreatedThisBoot = database.prepare("SELECT 1 FROM sqlite_master LIMIT 1").get() === null;
|
|
150
|
+
// NONE -> INCREMENTAL on an existing schema requires a full VACUUM. Set it
|
|
151
|
+
// before the first table instead; upgrades keep their current mode.
|
|
152
|
+
if (dbCreatedThisBoot) database.run("PRAGMA auto_vacuum = INCREMENTAL;");
|
|
149
153
|
database.run("PRAGMA journal_mode = WAL;");
|
|
150
154
|
database.run("PRAGMA busy_timeout = 5000;");
|
|
151
155
|
database.run("PRAGMA foreign_keys = ON;");
|
|
@@ -164,6 +168,7 @@ function bootOpenedDb(
|
|
|
164
168
|
// Run database migrations (schema creation + incremental changes)
|
|
165
169
|
try {
|
|
166
170
|
runMigrations(database);
|
|
171
|
+
assertScriptRunSourceSchema(database);
|
|
167
172
|
} catch (error) {
|
|
168
173
|
db = null;
|
|
169
174
|
try {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { computeContentHash } from "./context-versions";
|
|
2
|
+
import { getDbClient } from "./runtime";
|
|
3
|
+
|
|
4
|
+
// Keep legacy text readable while an upgrade backfills in batches. Both the
|
|
5
|
+
// public detail and the supervisor receive the exact executable source.
|
|
6
|
+
export const SCRIPT_RUN_SELECT = `SELECT r.*, s.source AS storedSource FROM script_runs r
|
|
7
|
+
LEFT JOIN script_run_sources s ON s.hash = r.sourceHash`;
|
|
8
|
+
|
|
9
|
+
/** Called inside the same transaction that inserts the referencing run. */
|
|
10
|
+
export async function storeScriptRunSource(source: string): Promise<string> {
|
|
11
|
+
const hash = computeContentHash(source);
|
|
12
|
+
await getDbClient().run("INSERT OR IGNORE INTO script_run_sources (hash, source) VALUES (?, ?)", [
|
|
13
|
+
hash,
|
|
14
|
+
source,
|
|
15
|
+
]);
|
|
16
|
+
return hash;
|
|
17
|
+
}
|
package/src/be/db-retention.ts
CHANGED
|
@@ -82,7 +82,7 @@ export const DB_RETENTION_TABLES = [
|
|
|
82
82
|
maxBatchSize: 100,
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
|
-
//
|
|
85
|
+
// Inline runs store args and output; source is shared by content hash. Only
|
|
86
86
|
// terminal runs are eligible: a running or paused durable run must survive
|
|
87
87
|
// to be resumed. Runs with an idempotencyKey are kept, so a retried launch
|
|
88
88
|
// still gets its 409 instead of executing twice. The status filter, the
|