@desplega.ai/agent-swarm 2.13.3 → 2.13.5
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-tbt61zkm.js +17 -0
- package/dist/{acp-targets-k8xs4tj8.js → acp-targets-w8dbs4nr.js} +10 -10
- package/dist/{actions-pg5fxjer.js → actions-8zrcbjrx.js} +237 -27
- package/dist/{agent-fs-provision-vbk3fppw.js → agent-fs-provision-cbt2ttds.js} +4 -4
- package/dist/{amp-adapter-adbhxsz9.js → amp-adapter-8x6zp8w4.js} +3 -3
- package/dist/{anthropic-messages-88b7s3n9.js → anthropic-messages-vdd1zmha.js} +10 -10
- package/dist/{app-b267ggx1.js → app-zfa9dwjw.js} +7 -7
- package/dist/{approval-notifications-evc1a9z5.js → approval-notifications-rv92zmza.js} +8 -8
- package/dist/{assistant-wgz2ab84.js → assistant-q7s7rm1q.js} +25 -25
- package/dist/{boot-args-schema-6tpk28j4.js → boot-args-schema-g27kpzr1.js} +1 -1
- package/dist/{boot-reembed-r1zyvefv.js → boot-reembed-1mjs52nt.js} +1 -1
- package/dist/{boot-reembed-ankp369c.js → boot-reembed-m62dpdkg.js} +1 -1
- package/dist/{boot-scrub-sweep-cgb6r5bd.js → boot-scrub-sweep-ss1vcamw.js} +2 -2
- package/dist/{boot-seeds-bjceqg7b.js → boot-seeds-hwnvgbb3.js} +4 -4
- package/dist/{boxd-hr8rsxzq.js → boxd-y0szhp0g.js} +2 -2
- package/dist/{claude-adapter-knztdnff.js → claude-adapter-0rjmbhjk.js} +9 -9
- package/dist/{claude-managed-adapter-qwejzqkk.js → claude-managed-adapter-6k032agg.js} +4 -4
- package/dist/{claude-managed-setup-0vgz4d1j.js → claude-managed-setup-6czvve8q.js} +5 -5
- package/dist/{claude-sdk-session-c3g6dv0g.js → claude-sdk-session-pr0znb81.js} +12671 -11885
- package/dist/{cli-2v4xxnx2.js → cli-0h8skzss.js} +1 -1
- package/dist/{cli-7fa6yv98.js → cli-0qt3epg4.js} +7 -7
- package/dist/{cli-aytna2fm.js → cli-19d6v8er.js} +7 -7
- package/dist/{cli-8m6gqnf1.js → cli-1jq2em7b.js} +4 -4
- package/dist/{cli-fp65jdp2.js → cli-1kvcsd2f.js} +219 -155
- package/dist/{cli-8fj8yfmk.js → cli-2vp0z049.js} +1 -1
- package/dist/{cli-61p7ty8d.js → cli-2wzkvfgm.js} +3 -3
- package/dist/{cli-tjf1bh1v.js → cli-34fygf87.js} +6 -4
- package/dist/{cli-czeh7x13.js → cli-3860pmrq.js} +4 -4
- package/dist/{cli-dq30fq3q.js → cli-3vw6dd4g.js} +2 -2
- package/dist/{cli-4dyhzhpx.js → cli-4gaf3tx5.js} +1 -1
- package/dist/{cli-3mf04tkh.js → cli-4vynxtrb.js} +1 -1
- package/dist/{cli-hpxcfvdm.js → cli-55h8m1x3.js} +10 -7
- package/dist/{cli-hxj888w3.js → cli-5n9w2xzx.js} +2 -2
- package/dist/{cli-50whymxq.js → cli-5tq15aa7.js} +2 -2
- package/dist/{cli-8sayvj48.js → cli-5web09sb.js} +3 -3
- package/dist/{cli-gc715jrc.js → cli-69zzpjgh.js} +1 -1
- package/dist/{cli-vgh5adn9.js → cli-6msnpj1z.js} +8 -8
- package/dist/{cli-f8rcvf2x.js → cli-7r9tvk8v.js} +76 -3
- package/dist/{cli-fbmgpt72.js → cli-7ypg8hka.js} +3 -3
- package/dist/{cli-xc8m5cjn.js → cli-887vhew6.js} +3 -3
- package/dist/{cli-q8aq48v1.js → cli-8b4rpnwj.js} +1 -1
- package/dist/{cli-pzsedyb0.js → cli-8pd1t17c.js} +14 -14
- package/dist/{cli-je587f74.js → cli-94gx6ze9.js} +1 -1
- package/dist/{cli-h9d3sdnc.js → cli-94mxerrp.js} +1 -1
- package/dist/{cli-ef590376.js → cli-9n6g14vs.js} +3 -3
- package/dist/{cli-80d5g0fa.js → cli-abby987g.js} +3 -3
- package/dist/{cli-grk77aen.js → cli-avax5mp9.js} +2 -2
- package/dist/{cli-hd2a204w.js → cli-b42yfn17.js} +14 -14
- package/dist/{cli-gkjw33x5.js → cli-b9ygp1kz.js} +2 -2
- package/dist/{cli-bh53ppqm.js → cli-bvamr9g0.js} +4 -4
- package/dist/{cli-ka4tqjzd.js → cli-ced4azn1.js} +15 -12
- package/dist/{cli-v1v49t36.js → cli-cmbb2t8a.js} +3 -3
- package/dist/{cli-hhb8kbwd.js → cli-cp163xga.js} +31 -16
- package/dist/{cli-55fqpd9q.js → cli-ebpq3c5z.js} +8 -8
- package/dist/{cli-9gmkw6xn.js → cli-ehg90jd1.js} +128 -48
- package/dist/{cli-jg5txpm6.js → cli-emdfd8fh.js} +75 -1
- package/dist/{cli-gxqwm3k3.js → cli-evy3egte.js} +104 -10
- package/dist/{cli-a21cwm89.js → cli-ewk3sg68.js} +3 -3
- package/dist/{cli-syqcny89.js → cli-f7b9nyvk.js} +9 -9
- package/dist/{cli-268b3dgn.js → cli-f9xw9pr4.js} +5 -5
- package/dist/{cli-61fzwtjk.js → cli-ffn0a515.js} +9 -9
- package/dist/{cli-ya1cj689.js → cli-fw67mnyc.js} +1 -1
- package/dist/{cli-dqgnbnxs.js → cli-grbngev5.js} +6 -1
- package/dist/{cli-sy2ge2ye.js → cli-hd5bm1e1.js} +4 -4
- package/dist/{cli-rfejbpe1.js → cli-htb5bpz2.js} +1 -1
- package/dist/{cli-w24741sm.js → cli-j69pzrrz.js} +7 -7
- package/dist/{cli-g4dhd3pr.js → cli-jdq3jmny.js} +6 -23
- package/dist/{cli-hv3820ez.js → cli-k0nebh10.js} +1 -1
- package/dist/{cli-d2epqm0y.js → cli-kezzteka.js} +1 -1
- package/dist/{cli-h0ewec3d.js → cli-kr0jpw9c.js} +1 -1
- package/dist/{cli-t25rq8mg.js → cli-ks06cd0n.js} +40 -11
- package/dist/{cli-1gnf5c7x.js → cli-kwj3131p.js} +1 -1
- package/dist/{cli-wtffytm8.js → cli-m8f4379k.js} +3 -3
- package/dist/{cli-43dsqhcp.js → cli-n79j1vxc.js} +4 -4
- package/dist/{cli-b768ek79.js → cli-nrt048ys.js} +1 -0
- package/dist/{cli-h3drhntp.js → cli-pedm2kht.js} +2 -2
- package/dist/{cli-eds5xnsz.js → cli-phmy14hb.js} +2 -2
- package/dist/{cli-7kv5d674.js → cli-prz1p3ft.js} +5 -5
- package/dist/{cli-nbawx3s0.js → cli-q1h041y8.js} +6 -6
- package/dist/{cli-cah298e5.js → cli-q41qar56.js} +104 -119
- package/dist/{cli-kwm1bek7.js → cli-qmx8bnt4.js} +2 -2
- package/dist/{cli-1wew39p0.js → cli-qrvk9nka.js} +28 -19
- package/dist/{cli-v8rpjrnx.js → cli-r3dxpmyt.js} +1 -1
- package/dist/{cli-0j4qmc80.js → cli-ryem5cfq.js} +8 -8
- package/dist/{cli-8pnawt98.js → cli-s8dhq7rj.js} +5 -5
- package/dist/{cli-zkbz8m2q.js → cli-sejvnjvw.js} +3 -2
- package/dist/{cli-at67kvnp.js → cli-srktrbby.js} +1 -1
- package/dist/{cli-wsnradtk.js → cli-srre41gb.js} +2 -2
- package/dist/{cli-r6xnchva.js → cli-t0n9svkb.js} +7 -7
- package/dist/{cli-y0q92v4r.js → cli-t879ww0y.js} +2 -2
- package/dist/{cli-eetzmsy5.js → cli-t9pzz2eq.js} +2 -2
- package/dist/{cli-xwsm6xkr.js → cli-tgc1kgg3.js} +1 -1
- package/dist/{cli-dw43pnzp.js → cli-tt7dkwjj.js} +7 -7
- package/dist/{cli-y754psdt.js → cli-tvyt8w6n.js} +5 -5
- package/dist/cli-v09eza21.js +1907 -0
- package/dist/{cli-mgr3gatr.js → cli-vbge4rsp.js} +4 -4
- package/dist/{cli-ppf9ap9n.js → cli-vcpyttcw.js} +1 -1
- package/dist/{cli-1606qw3n.js → cli-wzecestt.js} +1100 -432
- package/dist/{cli-5basv0e7.js → cli-x2adbg4j.js} +71 -9
- package/dist/{cli-vx9acp12.js → cli-ybte1fqc.js} +1 -1
- package/dist/{cli-vdfngx2g.js → cli-ywy8yz6t.js} +2 -2
- package/dist/{cli-cpkxh68d.js → cli-z1vam71h.js} +2 -2
- package/dist/{cli-djwt4mtn.js → cli-z3x7h79n.js} +15 -9
- package/dist/cli-z40t85ms.js +27 -0
- package/dist/{cli-ea367bdn.js → cli-zbbtp02a.js} +104 -27
- package/dist/{cli-88np9va3.js → cli-zntvmqmm.js} +2 -2
- package/dist/{cli-snwz16eg.js → cli-zxa1vmx7.js} +2 -2
- package/dist/{cli-50wa8k4h.js → cli-zy9bb22b.js} +1 -2
- package/dist/{cli-e4gx499y.js → cli-zzq96q57.js} +273 -106
- package/dist/cli.js +21 -21
- package/dist/{codex-adapter-493vb8cv.js → codex-adapter-bn7eaxk5.js} +8 -8
- package/dist/{codex-hook-ej8hn6z5.js → codex-hook-nnmezjg9.js} +3 -3
- package/dist/{codex-login-ven5cz5j.js → codex-login-ktfg1cxk.js} +1 -1
- package/dist/{codex-session-runner-ps5m4z1g.js → codex-session-runner-j1e9hffc.js} +9 -9
- package/dist/{commands-shktk0b8.js → commands-amhpafrr.js} +3 -3
- package/dist/{controller-wn3vd217.js → controller-tw7g10j2.js} +4 -4
- package/dist/{controllers-connect-yft057ws.js → controllers-connect-2ssqz7f4.js} +25 -25
- package/dist/core-bwp98v4w.js +42 -0
- package/dist/{cursor-adapter-8fpm4dng.js → cursor-adapter-d6knjmwa.js} +2 -2
- package/dist/{db-0ezhdhz5.js → db-fd6xxm77.js} +3 -3
- package/dist/{db-84pz2w5c.js → db-sc59379z.js} +2 -2
- package/dist/{devin-adapter-fs90ab4v.js → devin-adapter-3bp6rape.js} +1 -1
- package/dist/{dispatcher-h2rz69f6.js → dispatcher-a2gdqz8c.js} +22 -22
- package/dist/{docker-1h33jvh9.js → docker-a59g3ebm.js} +2 -2
- package/dist/{dsh-adapter-g9yqv09y.js → dsh-adapter-43ygwqn7.js} +2 -2
- package/dist/{e2b-jnk0yeva.js → e2b-cn7cvjqy.js} +3 -3
- package/dist/{e2b-y7e5kmzf.js → e2b-qnxyfea6.js} +3 -3
- package/dist/{easter-egg-3d-m41ad78v.js → easter-egg-3d-a0pphy71.js} +1 -1
- package/dist/{embedding-space-yam9zwzj.js → embedding-space-qepzrach.js} +6 -6
- package/dist/{embeddings-g2be0y8q.js → embeddings-d7vr881x.js} +1 -1
- package/dist/{event-bus-08t2b4y2.js → event-bus-7gbsr0g4.js} +1 -1
- package/dist/{execute-hhdejgzf.js → execute-6afts2bn.js} +1 -1
- package/dist/{external-channel-kjt2yzfj.js → external-channel-881zq1x4.js} +2 -2
- package/dist/fx-adapter-cr2hq17y.js +20 -0
- package/dist/grok-adapter-ayddnbsc.js +20 -0
- package/dist/handlers-7ghs84x2.js +41 -0
- package/dist/{heartbeat-2e5jdexj.js → heartbeat-4c022m6a.js} +25 -25
- package/dist/{hook-acg9saz7.js → hook-4k84x499.js} +6 -6
- package/dist/{hook-34s8cmgn.js → hook-a7eh6zty.js} +9 -9
- package/dist/{http-ra2zr2f8.js → http-6aw5wanc.js} +456 -1864
- package/dist/{index-mbpxhc4w.js → index-126v2d0t.js} +1 -4
- package/dist/index-dtt0d634.js +44 -0
- package/dist/index-hmszyqkk.js +42 -0
- package/dist/index-j6rm1rtn.js +39 -0
- package/dist/{index-9q42cr54.js → index-rwwhsmjg.js} +1 -1
- package/dist/{index-93bw5wds.js → index-xhad0n8m.js} +1 -1
- package/dist/{index-2z1z7qx6.js → index-yq9hhhhy.js} +26 -26
- package/dist/{index-9r4j0a60.js → index-z2g9469g.js} +410 -27
- package/dist/{k8s-8326q0rq.js → k8s-36gfn847.js} +2 -2
- package/dist/{keepalive-vjnnqbkm.js → keepalive-zhbmztqw.js} +5 -5
- package/dist/lead-g2j4q39z.js +83 -0
- package/dist/{maintenance-px2g599e.js → maintenance-rsp0591h.js} +1 -1
- package/dist/{node-2wfcey7d.js → node-0as4n1ef.js} +3 -3
- package/dist/{node-zd6shky9.js → node-dhxbt01p.js} +3 -3
- package/dist/{node-z67yjre7.js → node-rxte5hc6.js} +290 -70
- package/dist/{node-hjn5n1yp.js → node-t0ct2zpw.js} +3 -5
- package/dist/{oauth-refresh-sweep-nkykf09m.js → oauth-refresh-sweep-w3cqmxq7.js} +4 -4
- package/dist/{object-webhooks-gt9xnq21.js → object-webhooks-331hay92.js} +7 -7
- package/dist/{onboard-1f134p65.js → onboard-n2w80m2n.js} +7 -7
- package/dist/{opencode-adapter-94976yab.js → opencode-adapter-z98127cz.js} +8 -8
- package/dist/{otel-impl-5d4p2fqs.js → otel-impl-xsk35tvf.js} +2 -2
- package/dist/{pending-vkk0vx6n.js → pending-2e6trkxd.js} +23 -23
- package/dist/{pi-mono-adapter-cyzdv5er.js → pi-mono-adapter-wh6yndtm.js} +13 -13
- package/dist/{pricing-refresh-jtmjwss9.js → pricing-refresh-9355dj1t.js} +2 -2
- package/dist/{rbac-roles-yd1fgpsn.js → rbac-roles-58y3m912.js} +3 -3
- package/dist/{rbac-roles-1fvmdyeb.js → rbac-roles-8eajw4s6.js} +6 -4
- package/dist/{render-v2-kb5s3vx4.js → render-v2-7gskkmd4.js} +7 -7
- package/dist/{resume-z1vs44n5.js → resume-0drnmpja.js} +10 -10
- package/dist/{runtime-gk6ct7r7.js → runtime-d2tcmqte.js} +1 -1
- package/dist/{session-access-nz6nre4d.js → session-access-0ztys6bd.js} +5 -5
- package/dist/{session-source-backfill-wb60zjkd.js → session-source-backfill-cdm5s046.js} +3 -3
- package/dist/{setup-2x8g8j4s.js → setup-pqwb9tcc.js} +1 -1
- package/dist/thread-buffer-epx3san4.js +42 -0
- package/dist/{tree-visibility-ts3z30kw.js → tree-visibility-rwz67mje.js} +2 -2
- package/dist/{user-merge-jobs-zetg26e0.js → user-merge-jobs-mxrhamwt.js} +3 -3
- package/dist/{virtual-modules-674fka8x.js → virtual-modules-71y1gsmg.js} +3 -3
- package/dist/{work-objects-w52yyjxm.js → work-objects-3k4ykt9j.js} +25 -25
- package/dist/worker-09gqn9xy.js +83 -0
- package/dist/{worker-follow-up-dyfxyjbj.js → worker-follow-up-y0h64xpr.js} +22 -22
- package/dist/{x-asbrnafg.js → x-d27jj7z7.js} +2 -2
- package/openapi.json +861 -33
- package/package.json +4 -4
- package/src/apps/sync.ts +20 -5
- package/src/azure-devops/boards-sync.ts +1 -1
- 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/slack-trees.ts +12 -1
- package/src/be/db/tasks/read.ts +25 -1
- package/src/be/db/tasks/write.ts +47 -12
- package/src/be/db/users/avatar.ts +12 -0
- package/src/be/db-retention.ts +1 -1
- package/src/be/db.ts +149 -67
- package/src/be/design-system.ts +63 -0
- package/src/be/migrations/342_script_run_sources.sql +20 -0
- package/src/be/migrations/344_user_avatar.sql +4 -0
- package/src/be/migrations/345_task_status_kind.sql +6 -0
- package/src/be/migrations/runner.ts +8 -0
- package/src/be/migrations/script-run-sources.ts +51 -0
- package/src/be/primitives/object-embed.ts +2 -2
- package/src/be/primitives/objects.ts +2 -2
- package/src/be/rbac-roles.ts +2 -0
- package/src/be/runtime-pools/supervisor.ts +1 -0
- package/src/be/scripts/typecheck.ts +5 -3
- 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 +25 -1
- package/src/bitbucket/handlers.ts +1 -1
- package/src/commands/credential-outcome-report.ts +96 -0
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/runner.ts +49 -3
- package/src/event-waits/github.ts +39 -6
- package/src/event-waits/index.ts +4 -2
- package/src/event-waits/types.ts +10 -3
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/github/app.ts +177 -13
- package/src/github/handlers.ts +7 -2
- package/src/github/pull-request-state.ts +100 -11
- package/src/gitlab/handlers.ts +2 -2
- package/src/heartbeat/heartbeat.ts +24 -5
- package/src/http/all-routes.ts +1 -0
- package/src/http/api-keys.ts +26 -0
- package/src/http/approval-chat-answer.ts +99 -0
- package/src/http/approval-requests.ts +280 -225
- package/src/http/asset-key-write.ts +45 -0
- package/src/http/assets.ts +4 -3
- package/src/http/design-system.ts +103 -0
- package/src/http/github-token.ts +27 -6
- package/src/http/index.ts +10 -6
- package/src/http/pages-public.ts +25 -10
- package/src/http/pages.ts +21 -10
- package/src/http/person-responder.ts +28 -0
- package/src/http/schedules.ts +6 -6
- package/src/http/sessions.ts +7 -2
- package/src/http/tasks.ts +23 -5
- package/src/http/users.ts +5 -0
- package/src/http/webhooks.ts +19 -1
- package/src/http/workflows.ts +5 -10
- package/src/integrations/chat-sdk/adapters.ts +33 -3
- package/src/integrations/chat-sdk/commands.ts +3 -1
- 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/jira/sync.ts +1 -1
- package/src/kv-reserved-namespaces.ts +5 -0
- package/src/linear/sync.ts +5 -3
- package/src/pages/page-head.ts +11 -1
- package/src/prompts/session-templates.ts +1 -0
- package/src/providers/acp-targets.ts +2 -2
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/claude-adapter.ts +5 -0
- package/src/providers/claude-sdk-session.ts +5 -0
- package/src/providers/dsh-adapter.ts +48 -13
- package/src/providers/runtime-dependencies.ts +1 -1
- package/src/rbac/legacy-policy.ts +4 -0
- package/src/rbac/permissions.ts +8 -0
- package/src/scheduler/deferred-task-waits.ts +74 -13
- 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 +20 -24
- package/src/scripts-runtime/types/stdlib.d.ts +12 -2
- package/src/scripts-runtime/types/swarm-extension.d.ts +19 -2
- package/src/scripts-runtime/types/swarm-sdk.d.ts +12 -2
- package/src/server.ts +2 -0
- package/src/slack/actions.ts +4 -1
- package/src/slack/approval-actions.ts +148 -0
- package/src/slack/approval-buttons.ts +28 -0
- package/src/slack/render-v2.ts +148 -7
- package/src/tests/api-drain-worker-e2e.test.ts +0 -2
- package/src/tests/approval-auto-cancellation-migration.test.ts +8 -19
- package/src/tests/approval-card-resolution.test.ts +2 -17
- package/src/tests/approval-requests-notifications.test.ts +41 -27
- package/src/tests/approval-requests.test.ts +137 -369
- package/src/tests/apps-sync-engine.test.ts +5 -3
- package/src/tests/apps-table-filters-migration.test.ts +44 -25
- package/src/tests/bitbucket-handlers.test.ts +2 -0
- package/src/tests/chat-sdk-commands.test.ts +1 -0
- package/src/tests/chat-sdk-mentions.test.ts +183 -0
- package/src/tests/claude-adapter.test.ts +35 -0
- package/src/tests/codex-adapter.test.ts +3 -92
- package/src/tests/codex-gpt6-release.test.ts +0 -9
- package/src/tests/codex-oauth-credential-info.test.ts +35 -18
- package/src/tests/codex-oauth.test.ts +0 -6
- package/src/tests/codex-pool.test.ts +5 -214
- package/src/tests/codex-rate-limit-parse.test.ts +0 -7
- package/src/tests/codex-swarm-events.test.ts +11 -54
- package/src/tests/create-page-tool.test.ts +5 -0
- package/src/tests/db-client-busy-retry.test.ts +49 -16
- package/src/tests/defer-task.test.ts +1 -0
- package/src/tests/dsh-adapter.test.ts +53 -1
- package/src/tests/e2e-shards.test.ts +9 -9
- package/src/tests/enabled-tools.test.ts +0 -2
- package/src/tests/fixtures/base-prompt-baseline.json +6 -6
- package/src/tests/fixtures/compiled-source-schema-boot.ts +24 -0
- package/src/tests/fixtures/secret-corpus.ts +43 -1
- package/src/tests/github-app-worker-auth-helper.test.ts +147 -1
- package/src/tests/gitlab-handlers.test.ts +2 -0
- package/src/tests/heartbeat-jev-gate.test.ts +9 -241
- package/src/tests/heartbeat-reroute-decision.test.ts +2 -0
- package/src/tests/heartbeat-stall-thresholds.test.ts +174 -0
- package/src/tests/heartbeat-supersede-resume.test.ts +2 -0
- package/src/tests/heartbeat.test.ts +1 -0
- package/src/tests/jira-adf.test.ts +42 -2
- package/src/tests/key-usage-selection.test.ts +302 -0
- package/src/tests/memory-e2e.test.ts +34 -103
- package/src/tests/memory-key-paths.test.ts +5 -0
- package/src/tests/memory-rater-llm.test.ts +33 -149
- package/src/tests/memory-store.test.ts +24 -125
- package/src/tests/memory.test.ts +31 -100
- package/src/tests/merge-gate-detect-changes.test.ts +314 -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/otel-service-name.test.ts +0 -9
- package/src/tests/otel-session-cost-metrics.test.ts +1 -38
- package/src/tests/pool-session-logs.test.ts +8 -42
- package/src/tests/pre-push-affected-tests.test.ts +106 -0
- package/src/tests/prompt-template-session.test.ts +3 -0
- 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-api-drain.test.ts +2 -17
- package/src/tests/runner-terminal-window-report.test.ts +132 -0
- package/src/tests/runtime-e2b-pools.test.ts +7 -1
- package/src/tests/runtime-supervisor-failures.test.ts +1 -0
- package/src/tests/sandboxed-process.test.ts +26 -21
- package/src/tests/schedule-http-triage-tools.test.ts +12 -9
- package/src/tests/schedule-target-type.test.ts +4 -1
- package/src/tests/scheduled-tasks.test.ts +14 -51
- package/src/tests/script-connections.test.ts +2 -0
- package/src/tests/script-executor-conformance.test.ts +4 -48
- package/src/tests/script-executor-quickjs-pool.test.ts +9 -7
- package/src/tests/script-native-startup.test.ts +21 -25
- 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 +38 -2
- 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/session-logs.test.ts +1 -260
- package/src/tests/slack-render-v2.test.ts +5 -148
- package/src/tests/system-one-hosts-ui-mirror.test.ts +1 -0
- package/src/tests/task-cascade-fail.test.ts +1 -0
- package/src/tests/task-supersede-resume.test.ts +1 -0
- package/src/tests/test-proc.ts +5 -2
- package/src/tests/vcs-azure-devops.test.ts +10 -0
- package/src/tests/vcs-provider.test.ts +8 -0
- package/src/tests/window-stream-reporter.test.ts +122 -0
- package/src/tests/workflow-agent-task-retry.test.ts +1 -3
- package/src/tests/workflow-cascade-cancel.test.ts +1 -0
- package/src/tests/workflow-retry-v2.test.ts +34 -43
- package/src/tests/workflow-retry-validation.test.ts +8 -48
- package/src/tests/worktree-reaper.test.ts +2 -2
- package/src/themes/design-system.ts +163 -0
- package/src/themes/page-theme.ts +28 -19
- package/src/tools/cancel-task.ts +2 -2
- package/src/tools/chat-post.ts +7 -3
- package/src/tools/create-page.ts +3 -0
- package/src/tools/defer-task.ts +7 -2
- package/src/tools/design-system.ts +102 -0
- package/src/tools/get-task-details.ts +8 -4
- package/src/tools/get-tasks.ts +13 -2
- package/src/tools/manage-user.ts +9 -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/store-progress.ts +5 -3
- 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 +158 -0
- package/src/utils/constants.ts +12 -0
- package/src/utils/credentials.ts +42 -5
- package/src/utils/error-tracker.ts +6 -0
- package/src/utils/key-usage.ts +114 -0
- package/src/utils/sandboxed-process.ts +1 -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/src/workflows/resume.ts +5 -2
- package/templates/skills/apps/SKILL.md +2 -0
- package/templates/skills/apps/content.md +2 -0
- package/templates/skills/boards-and-sheets/content.md +4 -2
- package/templates/skills/pages/content.md +41 -8
- package/templates/skills/swarm-docs/content.md +6 -0
- package/templates/skills/swarm-scripts/SKILL.md +1 -0
- package/templates/skills/swarm-scripts/content.md +1 -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/src/tests/apps-table-selection-migration.test.ts +0 -95
- package/src/tests/extensions-example-heartbeat-remediate.test.ts +0 -69
- package/src/tests/extensions-example-rewrite-and-suppress.test.ts +0 -70
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
resolveCredential,
|
|
7
7
|
resolveCredentials,
|
|
8
8
|
init_credentials
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-cmbb2t8a.js";
|
|
10
10
|
import {
|
|
11
11
|
kindForModelString,
|
|
12
12
|
parseModelStr,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
selectCredential,
|
|
17
17
|
init_credentials2
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-x2adbg4j.js";
|
|
19
19
|
import {
|
|
20
20
|
DEFAULT_OPENROUTER_BASE_URL,
|
|
21
21
|
getOpenRouterBaseUrl,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
scrubSecrets,
|
|
35
35
|
init_secret_scrubber
|
|
36
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-1kvcsd2f.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
39
|
} from "./cli-242037k3.js";
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
WORKFLOW_CONTEXT_REQUESTER_SQL,
|
|
14
14
|
init_user_references,
|
|
15
15
|
init_db4
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-zzq96q57.js";
|
|
17
17
|
import {
|
|
18
18
|
nextRestRatio2
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-3860pmrq.js";
|
|
20
20
|
import {
|
|
21
21
|
scrubSecrets,
|
|
22
22
|
init_secret_scrubber
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-1kvcsd2f.js";
|
|
24
24
|
|
|
25
25
|
// src/be/user-merge-jobs.ts
|
|
26
26
|
init_telemetry_identity();
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
scheduleOrgDomainRecompute,
|
|
8
8
|
init_telemetry_identity,
|
|
9
9
|
init_db4
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-zzq96q57.js";
|
|
11
11
|
import {
|
|
12
12
|
registerVolatileSecret,
|
|
13
13
|
unregisterVolatileSecret,
|
|
14
14
|
init_secret_scrubber
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-1kvcsd2f.js";
|
|
16
16
|
import {
|
|
17
17
|
__esm
|
|
18
18
|
} from "./cli-242037k3.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
CONTROLLER_COMMAND_TIMEOUT_MS,
|
|
5
5
|
RuntimeHandleSchema,
|
|
6
6
|
ControllerStatusResultSchema
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-5tq15aa7.js";
|
|
8
8
|
import {
|
|
9
9
|
getDbClient2,
|
|
10
10
|
validateControllerGraceSec,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
upsertSwarmConfig2,
|
|
20
20
|
getResolvedConfig2,
|
|
21
21
|
init_db4
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-zzq96q57.js";
|
|
23
23
|
import {
|
|
24
24
|
getPoolCache,
|
|
25
25
|
reconcileCacheReleases,
|
|
@@ -33,11 +33,11 @@ import {
|
|
|
33
33
|
getPoolForAgent2,
|
|
34
34
|
resolvePoolDelivery2,
|
|
35
35
|
init_db2
|
|
36
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-f9xw9pr4.js";
|
|
37
37
|
import {
|
|
38
38
|
workflowEventBus2,
|
|
39
39
|
init_event_bus
|
|
40
|
-
} from "./cli-
|
|
40
|
+
} from "./cli-ybte1fqc.js";
|
|
41
41
|
import {
|
|
42
42
|
runtimeStaleThresholdMinutes,
|
|
43
43
|
getRuntimeInstanceById,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
listRuntimeInstancesForAgent,
|
|
48
48
|
listRuntimeInstancesForPool,
|
|
49
49
|
init_multi_runtime
|
|
50
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-evy3egte.js";
|
|
51
51
|
import {
|
|
52
52
|
pendingWorkForAgent,
|
|
53
53
|
countPoolRuntimes,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
init_worker_follow_up,
|
|
58
58
|
canClaim,
|
|
59
59
|
init_budget_admission
|
|
60
|
-
} from "./cli-
|
|
60
|
+
} from "./cli-wzecestt.js";
|
|
61
61
|
import {
|
|
62
62
|
isMultiRuntimeEnabled,
|
|
63
63
|
init_multi_runtime2
|
|
@@ -65,16 +65,16 @@ import {
|
|
|
65
65
|
import {
|
|
66
66
|
buildImageTemplate,
|
|
67
67
|
init_dispatch
|
|
68
|
-
} from "./cli-
|
|
68
|
+
} from "./cli-kr0jpw9c.js";
|
|
69
69
|
import {
|
|
70
70
|
resolveWorkerApiUrl,
|
|
71
71
|
init_worker_api_url
|
|
72
|
-
} from "./cli-
|
|
72
|
+
} from "./cli-tgc1kgg3.js";
|
|
73
73
|
import {
|
|
74
74
|
canProvisionKind,
|
|
75
75
|
createRuntimeProvider,
|
|
76
76
|
init_runtime_providers
|
|
77
|
-
} from "./cli-
|
|
77
|
+
} from "./cli-n79j1vxc.js";
|
|
78
78
|
import {
|
|
79
79
|
workspaceVolumeKey,
|
|
80
80
|
RUNTIME_LABELS,
|
|
@@ -87,12 +87,12 @@ import {
|
|
|
87
87
|
import {
|
|
88
88
|
mintRuntimeToken,
|
|
89
89
|
init_users
|
|
90
|
-
} from "./cli-
|
|
90
|
+
} from "./cli-avax5mp9.js";
|
|
91
91
|
import {
|
|
92
92
|
TERMINAL_TASK_STATUSES,
|
|
93
93
|
isTerminalTaskStatus,
|
|
94
94
|
init_types5
|
|
95
|
-
} from "./cli-
|
|
95
|
+
} from "./cli-7r9tvk8v.js";
|
|
96
96
|
import {
|
|
97
97
|
init_zod
|
|
98
98
|
} from "./cli-96234j5w.js";
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
scrubSecrets,
|
|
110
110
|
registerVolatileSecret,
|
|
111
111
|
init_secret_scrubber
|
|
112
|
-
} from "./cli-
|
|
112
|
+
} from "./cli-1kvcsd2f.js";
|
|
113
113
|
|
|
114
114
|
// src/be/runtime-pools/supervisor.ts
|
|
115
115
|
init_runtime_providers();
|
|
@@ -524,7 +524,7 @@ async function recoverSessions(runtimeId, reason) {
|
|
|
524
524
|
}
|
|
525
525
|
if (!sessions.length)
|
|
526
526
|
return;
|
|
527
|
-
const { remediateTaskForDeadRuntime } = await import("./heartbeat-
|
|
527
|
+
const { remediateTaskForDeadRuntime } = await import("./heartbeat-4c022m6a.js");
|
|
528
528
|
for (const session of sessions) {
|
|
529
529
|
try {
|
|
530
530
|
const task = await getTaskById2(session.taskId);
|
|
@@ -746,7 +746,7 @@ async function recordProvisionFailure(runtime, reason, now, countedFailures) {
|
|
|
746
746
|
for (const row of pending) {
|
|
747
747
|
if (!(await checkDependencies2(row.id)).ready)
|
|
748
748
|
continue;
|
|
749
|
-
const failed = await failTask2(row.id, `provisioning failed after ${attempts} attempts: ${error}
|
|
749
|
+
const failed = await failTask2(row.id, `provisioning failed after ${attempts} attempts: ${error}`, { statusKind: "error" });
|
|
750
750
|
if (!failed)
|
|
751
751
|
continue;
|
|
752
752
|
await tx.run("UPDATE agents SET runtime_provision_attempts = 0, runtime_provision_retry_at = NULL WHERE id = ?", [runtime.agentId]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSsrfGuardedFetch,
|
|
3
3
|
init_egress_guard
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-zzq96q57.js";
|
|
5
5
|
import {
|
|
6
6
|
isEnvFlagEnabled,
|
|
7
7
|
init_env_flag
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
scrubSecrets,
|
|
15
15
|
registerVolatileSecret,
|
|
16
16
|
init_secret_scrubber
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-1kvcsd2f.js";
|
|
18
18
|
import {
|
|
19
19
|
__esm
|
|
20
20
|
} from "./cli-242037k3.js";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
requireFxRoute,
|
|
4
4
|
fxSessionExists2,
|
|
5
5
|
fxTargetProfile2
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-0qt3epg4.js";
|
|
7
7
|
import {
|
|
8
8
|
ACPAdapter2
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-887vhew6.js";
|
|
10
10
|
import {
|
|
11
11
|
getKnownContextWindowSize,
|
|
12
12
|
init_context_window
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-z1vam71h.js";
|
|
14
14
|
import {
|
|
15
15
|
getOpenRouterBaseUrl,
|
|
16
16
|
init_openrouter_base_url
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
registerVolatileSecret,
|
|
20
20
|
init_secret_scrubber
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-1kvcsd2f.js";
|
|
22
22
|
|
|
23
23
|
// src/providers/fx-adapter.ts
|
|
24
24
|
init_context_window();
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
getWorkflowVersions2,
|
|
47
47
|
getMcpServerById2,
|
|
48
48
|
init_db4
|
|
49
|
-
} from "./cli-
|
|
49
|
+
} from "./cli-zzq96q57.js";
|
|
50
50
|
import {
|
|
51
51
|
McpHttpClient,
|
|
52
52
|
init_http_client
|
|
@@ -61,17 +61,17 @@ import {
|
|
|
61
61
|
oauthAppRowToProviderConfig,
|
|
62
62
|
ensureAuthorizationTokenOrThrow,
|
|
63
63
|
init_ensure_token
|
|
64
|
-
} from "./cli-
|
|
64
|
+
} from "./cli-5web09sb.js";
|
|
65
65
|
import {
|
|
66
66
|
AGENT_FS_API_KEY_CONFIG,
|
|
67
67
|
init_script_fs,
|
|
68
68
|
resolveAgentFsIdentity,
|
|
69
69
|
init_agent_fs_identity
|
|
70
|
-
} from "./cli-
|
|
70
|
+
} from "./cli-zxa1vmx7.js";
|
|
71
71
|
import {
|
|
72
72
|
validateDefinition,
|
|
73
73
|
init_definition2
|
|
74
|
-
} from "./cli-
|
|
74
|
+
} from "./cli-cp163xga.js";
|
|
75
75
|
import {
|
|
76
76
|
getApiKey,
|
|
77
77
|
init_api_key
|
|
@@ -83,20 +83,20 @@ import {
|
|
|
83
83
|
refreshMcpToken,
|
|
84
84
|
computeExpiresAt,
|
|
85
85
|
init_mcp_wrapper
|
|
86
|
-
} from "./cli-
|
|
86
|
+
} from "./cli-b9ygp1kz.js";
|
|
87
87
|
import {
|
|
88
88
|
mintUserScriptRunToken,
|
|
89
89
|
revokeUserScriptRunToken,
|
|
90
90
|
mintScriptRunToken,
|
|
91
91
|
revokeSessionToken,
|
|
92
92
|
init_users
|
|
93
|
-
} from "./cli-
|
|
93
|
+
} from "./cli-avax5mp9.js";
|
|
94
94
|
import {
|
|
95
95
|
defaultAssetKey,
|
|
96
96
|
init_key,
|
|
97
97
|
AppIconSchema,
|
|
98
98
|
init_types5
|
|
99
|
-
} from "./cli-
|
|
99
|
+
} from "./cli-7r9tvk8v.js";
|
|
100
100
|
import {
|
|
101
101
|
init_zod
|
|
102
102
|
} from "./cli-96234j5w.js";
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
import {
|
|
118
118
|
getMcpBaseUrl,
|
|
119
119
|
init_constants3
|
|
120
|
-
} from "./cli-
|
|
120
|
+
} from "./cli-grbngev5.js";
|
|
121
121
|
import {
|
|
122
122
|
isEnvFlagEnabled,
|
|
123
123
|
init_env_flag
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
refreshSecretScrubberCache,
|
|
130
130
|
registerVolatileSecret,
|
|
131
131
|
init_secret_scrubber
|
|
132
|
-
} from "./cli-
|
|
132
|
+
} from "./cli-1kvcsd2f.js";
|
|
133
133
|
import {
|
|
134
134
|
__toESM,
|
|
135
135
|
__commonJS,
|
|
@@ -8806,6 +8806,7 @@ function buildSandboxedCommandCore(innerCommand, limits, profile, environment, r
|
|
|
8806
8806
|
}
|
|
8807
8807
|
return [
|
|
8808
8808
|
useBashShell ? "bash" : "sh",
|
|
8809
|
+
...useBashShell ? ["--noprofile", "--norc", "-p"] : [],
|
|
8809
8810
|
"-c",
|
|
8810
8811
|
`${ulimits}; exec ${dropPrivileges}env -i ${envAssignments} ${quotedInner}`
|
|
8811
8812
|
];
|
|
@@ -187770,8 +187771,8 @@ export interface BoardsNamespace {
|
|
|
187770
187771
|
export interface SwarmSdk {
|
|
187771
187772
|
// --- memory ---
|
|
187772
187773
|
memory_search(args: { query: string; intent: string; scope?: "all" | "agent" | "swarm"; limit?: number; source?: string; keyPrefix?: string }): Promise<unknown>;
|
|
187773
|
-
memory_get(args: { memoryId
|
|
187774
|
-
memory_rate(args: { id
|
|
187774
|
+
memory_get(args: { memoryId?: string; id?: string; intent: string }): Promise<unknown>;
|
|
187775
|
+
memory_rate(args: { id?: string; memoryId?: string; useful: boolean; note?: string; taskId?: string; referencesSource?: string }): Promise<unknown>;
|
|
187775
187776
|
// --- tasks ---
|
|
187776
187777
|
task_list(args?: Record<string, unknown>): Promise<unknown>;
|
|
187777
187778
|
task_get(args: { taskId: string }): Promise<unknown>;
|
|
@@ -187931,7 +187932,7 @@ export interface SwarmSdk {
|
|
|
187931
187932
|
chat_reply(args: { text?: string; card?: unknown }): Promise<unknown>;
|
|
187932
187933
|
chat_post(args: { adapter: "telegram" | "slack" | "discord" | "teams" | "rocketchat"; threadId?: string; channelId?: string; text?: string; card?: unknown }): Promise<unknown>;
|
|
187933
187934
|
chat_openDm(args: { adapter: "telegram" | "slack" | "discord" | "teams" | "rocketchat"; userId: string }): Promise<unknown>;
|
|
187934
|
-
chat_registerChannel(args: { adapter: "telegram" | "slack" | "discord" | "teams" | "rocketchat"; channelId: string; agentId?: string; workflowId?: string; name?: string }): Promise<unknown>;
|
|
187935
|
+
chat_registerChannel(args: { adapter: "telegram" | "slack" | "discord" | "teams" | "rocketchat"; channelId: string; agentId?: string; workflowId?: string; name?: string; defaultThreadId?: string }): Promise<unknown>;
|
|
187935
187936
|
chat_unregisterChannel(args: { adapter: "telegram" | "slack" | "discord" | "teams" | "rocketchat"; channelId: string }): Promise<unknown>;
|
|
187936
187937
|
|
|
187937
187938
|
// --- write: messaging (internal) ---
|
|
@@ -188068,6 +188069,8 @@ export interface SwarmSdk {
|
|
|
188068
188069
|
}): Promise<unknown>;
|
|
188069
188070
|
page_create(args: Record<string, unknown>): Promise<unknown>;
|
|
188070
188071
|
page_delete(args: { pageId?: string; slug?: string }): Promise<unknown>;
|
|
188072
|
+
designSystem_get(args?: Record<string, never>): Promise<unknown>;
|
|
188073
|
+
designSystem_set(args: Record<string, unknown>): Promise<unknown>;
|
|
188071
188074
|
metric_create(args: Record<string, unknown>): Promise<unknown>;
|
|
188072
188075
|
|
|
188073
188076
|
// --- human input ---
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
persistCodexOAuth,
|
|
3
3
|
getValidCodexOAuth,
|
|
4
4
|
init_storage
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-2vp0z049.js";
|
|
6
6
|
import {
|
|
7
7
|
init_uuid
|
|
8
8
|
} from "./cli-4se3x6qm.js";
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
init_src,
|
|
78
78
|
selectCredential,
|
|
79
79
|
init_credentials2
|
|
80
|
-
} from "./cli-
|
|
80
|
+
} from "./cli-x2adbg4j.js";
|
|
81
81
|
import {
|
|
82
82
|
__export,
|
|
83
83
|
__esm
|
|
@@ -6551,7 +6551,7 @@ var init_bun_oauth = __esm(() => {
|
|
|
6551
6551
|
});
|
|
6552
6552
|
|
|
6553
6553
|
// node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.js
|
|
6554
|
-
var anthropicMessagesApi = () => lazyApi(() => import("./anthropic-messages-
|
|
6554
|
+
var anthropicMessagesApi = () => lazyApi(() => import("./anthropic-messages-vdd1zmha.js"));
|
|
6555
6555
|
var init_anthropic_messages_lazy = __esm(() => {
|
|
6556
6556
|
init_lazy();
|
|
6557
6557
|
});
|
|
@@ -39,33 +39,33 @@ import {
|
|
|
39
39
|
getLatestStepForNode2,
|
|
40
40
|
getCurrentStepForNode2,
|
|
41
41
|
init_db4
|
|
42
|
-
} from "./cli-
|
|
42
|
+
} from "./cli-zzq96q57.js";
|
|
43
43
|
import {
|
|
44
44
|
ConfigQuestionSettingsSchema,
|
|
45
45
|
normalizeApprovalQuestions,
|
|
46
46
|
init_approval_config_question,
|
|
47
47
|
dispatchApprovalNotifications2,
|
|
48
48
|
init_approval_notifications
|
|
49
|
-
} from "./cli-
|
|
49
|
+
} from "./cli-evy3egte.js";
|
|
50
50
|
import {
|
|
51
51
|
resolveCredential,
|
|
52
52
|
init_credentials
|
|
53
|
-
} from "./cli-
|
|
53
|
+
} from "./cli-cmbb2t8a.js";
|
|
54
54
|
import {
|
|
55
55
|
isSlackConfigured,
|
|
56
|
-
|
|
57
|
-
} from "./cli-
|
|
56
|
+
init_config5
|
|
57
|
+
} from "./cli-t9pzz2eq.js";
|
|
58
58
|
import {
|
|
59
59
|
DEFAULT_MODEL
|
|
60
60
|
} from "./cli-jjzxsk47.js";
|
|
61
61
|
import {
|
|
62
62
|
selectCredential,
|
|
63
63
|
init_credentials2
|
|
64
|
-
} from "./cli-
|
|
64
|
+
} from "./cli-x2adbg4j.js";
|
|
65
65
|
import {
|
|
66
66
|
deepInterpolate,
|
|
67
67
|
init_template2
|
|
68
|
-
} from "./cli-
|
|
68
|
+
} from "./cli-nrt048ys.js";
|
|
69
69
|
import {
|
|
70
70
|
DEFAULT_OPENROUTER_BASE_URL,
|
|
71
71
|
getOpenRouterBaseUrl,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
import {
|
|
95
95
|
getAppUrl,
|
|
96
96
|
init_constants3
|
|
97
|
-
} from "./cli-
|
|
97
|
+
} from "./cli-grbngev5.js";
|
|
98
98
|
import {
|
|
99
99
|
isEnvFlagEnabled,
|
|
100
100
|
init_env_flag
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
isSensitiveKey,
|
|
108
108
|
scrubSecrets,
|
|
109
109
|
init_secret_scrubber
|
|
110
|
-
} from "./cli-
|
|
110
|
+
} from "./cli-1kvcsd2f.js";
|
|
111
111
|
import {
|
|
112
112
|
__esm
|
|
113
113
|
} from "./cli-242037k3.js";
|
|
@@ -120,7 +120,7 @@ async function notifyAutomationPreflightFailure(preflight) {
|
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
122
|
try {
|
|
123
|
-
const { getSlackApp } = await import("./app-
|
|
123
|
+
const { getSlackApp } = await import("./app-zfa9dwjw.js");
|
|
124
124
|
const app = getSlackApp();
|
|
125
125
|
if (!app) {
|
|
126
126
|
console.warn("[Automation Preflight] Slack not available, cannot send notification");
|
|
@@ -391,7 +391,7 @@ function setupIntegrationFlags(setup) {
|
|
|
391
391
|
}
|
|
392
392
|
var NEEDS_SETUP_PREFIX = "needs_setup:", GITHUB_REPOSITORY_SLUG, SAFE_SHELL_DATA, DNS_NAME, SAFE_EXTERNAL_ID, SAFE_GIT_REF, SAFE_TAG_PATTERN, SAFE_RELATIVE_PATH, SAFE_REPORT_NAME, PARAM_VALIDATORS, INTEGRATION_FIX_URL, INTEGRATION_FIRST_REQUIREMENTS, EXACT_TOKEN, TOKEN;
|
|
393
393
|
var init_automation_preflight = __esm(() => {
|
|
394
|
-
|
|
394
|
+
init_config5();
|
|
395
395
|
init_env_flag();
|
|
396
396
|
init_secret_scrubber();
|
|
397
397
|
init_db4();
|
|
@@ -1163,7 +1163,7 @@ async function resolveSystemOneTarget(id, ctx, overrides = {}) {
|
|
|
1163
1163
|
return { ok: false, error: errors.join(" ") };
|
|
1164
1164
|
return { ok: true, apiKey, endpoint, keyName };
|
|
1165
1165
|
}
|
|
1166
|
-
var TYPESAFE_KEY = "TYPESAFE_API_KEY", OPENROUTER_KEY = "OPENROUTER_API_KEY", LAYA_KEY = "LAYA_API_KEY", LAYA_URL_KEY = "LAYA_URL", OPENAI_DECISIONS_KEY = "OPENAI_DECISIONS_API_KEY", CLOUDFLARE_TOKEN_KEY = "CLOUDFLARE_API_TOKEN", CLOUDFLARE_KEY_FALLBACK = "CLOUDFLARE_API_KEY", CLOUDFLARE_ACCOUNT_KEY = "CLOUDFLARE_ACCOUNT_ID", CLOUDFLARE_ACCOUNT_RE, CLOUDFLARE_ENDPOINT, SYSTEM_ONE_HOSTS, SYSTEM_ONE_PROVIDERS, SYSTEM_ONE_PROVIDER_IDS, SYSTEM_ONE_EXTRACT_PROVIDER_IDS, SYSTEM_ONE_DEFAULT_PROVIDER = "typesafe", SYSTEM_ONE_EXTRACT_DEFAULT_PROVIDER = "cloudflare", SYSTEM_ONE_DEFAULT_PROVIDER_CONFIG_KEY = "SYSTEM_ONE_DEFAULT_PROVIDER", SYSTEM_ONE_EXTRACT_DEFAULT_PROVIDER_CONFIG_KEY = "SYSTEM_ONE_EXTRACT_DEFAULT_PROVIDER", NOTHING_PRODUCED, SET_IT = (keyName) => `Set ${keyName} as a global secret on the Secrets page (Settings > Secrets).`, SET_URL = (configKey) => `Set ${configKey} as a global config value (set-config with scope global).`, LOOPBACK_HOSTS;
|
|
1166
|
+
var TYPESAFE_KEY = "TYPESAFE_API_KEY", OPENROUTER_KEY = "OPENROUTER_API_KEY", LAYA_KEY = "LAYA_API_KEY", LAYA_URL_KEY = "LAYA_URL", OPENAI_DECISIONS_KEY = "OPENAI_DECISIONS_API_KEY", CLOUDFLARE_TOKEN_KEY = "CLOUDFLARE_API_TOKEN", CLOUDFLARE_KEY_FALLBACK = "CLOUDFLARE_API_KEY", CLOUDFLARE_ACCOUNT_KEY = "CLOUDFLARE_ACCOUNT_ID", CLOUDFLARE_ACCOUNT_RE, OPENROUTER_DECISION_MODELS, CLOUDFLARE_ENDPOINT, SYSTEM_ONE_HOSTS, SYSTEM_ONE_PROVIDERS, SYSTEM_ONE_PROVIDER_IDS, SYSTEM_ONE_EXTRACT_PROVIDER_IDS, SYSTEM_ONE_DEFAULT_PROVIDER = "typesafe", SYSTEM_ONE_EXTRACT_DEFAULT_PROVIDER = "cloudflare", SYSTEM_ONE_DEFAULT_PROVIDER_CONFIG_KEY = "SYSTEM_ONE_DEFAULT_PROVIDER", SYSTEM_ONE_EXTRACT_DEFAULT_PROVIDER_CONFIG_KEY = "SYSTEM_ONE_EXTRACT_DEFAULT_PROVIDER", NOTHING_PRODUCED, SET_IT = (keyName) => `Set ${keyName} as a global secret on the Secrets page (Settings > Secrets).`, SET_URL = (configKey) => `Set ${configKey} as a global config value (set-config with scope global).`, LOOPBACK_HOSTS;
|
|
1167
1167
|
var init_system_one_providers = __esm(() => {
|
|
1168
1168
|
init_openrouter_base_url();
|
|
1169
1169
|
init_system_one_extract_wire();
|
|
@@ -1171,6 +1171,20 @@ var init_system_one_providers = __esm(() => {
|
|
|
1171
1171
|
init_system_one_wire();
|
|
1172
1172
|
init_workflow_llm();
|
|
1173
1173
|
CLOUDFLARE_ACCOUNT_RE = /^[0-9a-f]{32}$/;
|
|
1174
|
+
OPENROUTER_DECISION_MODELS = [
|
|
1175
|
+
"~perplexity/pplx-decider-latest",
|
|
1176
|
+
"~perplexity/pplx-decider-flash-latest",
|
|
1177
|
+
"perplexity/pplx-decider-v1.3:free",
|
|
1178
|
+
"perplexity/pplx-decider-flash-v1.3:free",
|
|
1179
|
+
"liquid/d1.1",
|
|
1180
|
+
"liquid/d1-ultra",
|
|
1181
|
+
"google/gemini-decision-1",
|
|
1182
|
+
"morph/reflex",
|
|
1183
|
+
"baseten/joey-1",
|
|
1184
|
+
"baseten/elephant-1",
|
|
1185
|
+
"baseten/mammoth-1",
|
|
1186
|
+
"respan/span-02"
|
|
1187
|
+
];
|
|
1174
1188
|
CLOUDFLARE_ENDPOINT = {
|
|
1175
1189
|
configKey: CLOUDFLARE_ACCOUNT_KEY,
|
|
1176
1190
|
describe: "the 32-character id of a Cloudflare account",
|
|
@@ -1217,6 +1231,7 @@ var init_system_one_providers = __esm(() => {
|
|
|
1217
1231
|
decide: {
|
|
1218
1232
|
endpoint: "https://openrouter.ai/api/alpha/decisions",
|
|
1219
1233
|
defaultModel: "~typesafe/jev-latest",
|
|
1234
|
+
knownModels: OPENROUTER_DECISION_MODELS,
|
|
1220
1235
|
confidenceField: "confidence"
|
|
1221
1236
|
}
|
|
1222
1237
|
},
|
|
@@ -3762,7 +3777,7 @@ async function executeStep(def, runId, ctx, node, registry, workflowId, secretKe
|
|
|
3762
3777
|
if (current && (current.status !== "running" || executingSteps.has(current.id))) {
|
|
3763
3778
|
return { current };
|
|
3764
3779
|
}
|
|
3765
|
-
if (current && node.type === "sub-workflow") {
|
|
3780
|
+
if (current && (node.type === "sub-workflow" || node.type === "agent-task")) {
|
|
3766
3781
|
claimedStepId = current.id;
|
|
3767
3782
|
executingSteps.add(current.id);
|
|
3768
3783
|
return {
|
|
@@ -3939,7 +3954,7 @@ async function runClaimedStep(def, runId, ctx, node, registry, existingStep, ste
|
|
|
3939
3954
|
}
|
|
3940
3955
|
const waiting = await checkpointStepWaiting(runId, stepId, ctx);
|
|
3941
3956
|
if (waiting && result.waitFor === "workflow.child.finished") {
|
|
3942
|
-
const { resumeFromChildRun } = await import("./resume-
|
|
3957
|
+
const { resumeFromChildRun } = await import("./resume-0drnmpja.js");
|
|
3943
3958
|
await resumeFromChildRun(stepId, registry);
|
|
3944
3959
|
}
|
|
3945
3960
|
return { outcome: waiting ? "waiting" : "completed", successors: [] };
|
|
@@ -4460,7 +4475,7 @@ async function runForeachDrive(runId, parentNodeId, registry) {
|
|
|
4460
4475
|
if (drive.successors.length > 0) {
|
|
4461
4476
|
await walkGraph(workflow.definition, runId, ctx, drive.successors, registry, workflow.id, getSecretInputKeys(workflow.input), { successorDebt: debt });
|
|
4462
4477
|
} else {
|
|
4463
|
-
const { finalizeOrWait } = await import("./resume-
|
|
4478
|
+
const { finalizeOrWait } = await import("./resume-0drnmpja.js");
|
|
4464
4479
|
await finalizeOrWait(runId);
|
|
4465
4480
|
}
|
|
4466
4481
|
return drive;
|
|
@@ -4604,7 +4619,7 @@ async function startChild(input) {
|
|
|
4604
4619
|
const parked = await getDbClient2().get("UPDATE workflow_run_steps SET status = 'waiting' WHERE id = ? AND status = 'running' RETURNING id", [child.id]);
|
|
4605
4620
|
if (parked && result.waitFor === "workflow.child.finished") {
|
|
4606
4621
|
ownedChildren.delete(child.id);
|
|
4607
|
-
const { resumeFromChildRun } = await import("./resume-
|
|
4622
|
+
const { resumeFromChildRun } = await import("./resume-0drnmpja.js");
|
|
4608
4623
|
await resumeFromChildRun(child.id, registry);
|
|
4609
4624
|
}
|
|
4610
4625
|
return null;
|
|
@@ -148,7 +148,7 @@ import {
|
|
|
148
148
|
Instantiate,
|
|
149
149
|
Evaluate2,
|
|
150
150
|
Priority
|
|
151
|
-
} from "./cli-
|
|
151
|
+
} from "./cli-9n6g14vs.js";
|
|
152
152
|
import {
|
|
153
153
|
require_index_min
|
|
154
154
|
} from "./cli-t9wbrgm4.js";
|
|
@@ -198,7 +198,7 @@ import {
|
|
|
198
198
|
streamSimple2,
|
|
199
199
|
completeSimple,
|
|
200
200
|
init_compat
|
|
201
|
-
} from "./cli-
|
|
201
|
+
} from "./cli-cmbb2t8a.js";
|
|
202
202
|
import {
|
|
203
203
|
uuidv7
|
|
204
204
|
} from "./cli-4se3x6qm.js";
|
|
@@ -59482,7 +59482,7 @@ function loadAllHighlightLanguages() {
|
|
|
59482
59482
|
if (!allLanguagesPromise) {
|
|
59483
59483
|
allLanguagesPromise = new Promise((resolve) => {
|
|
59484
59484
|
setImmediate(() => {
|
|
59485
|
-
import("./index-
|
|
59485
|
+
import("./index-xhad0n8m.js").then((m)=>__toESM(m.default,1)).then(() => resolve(), () => {
|
|
59486
59486
|
resolve();
|
|
59487
59487
|
});
|
|
59488
59488
|
});
|
|
@@ -65897,7 +65897,7 @@ function getCreateJiti() {
|
|
|
65897
65897
|
}
|
|
65898
65898
|
var virtualModulesPromise;
|
|
65899
65899
|
function getVirtualModules() {
|
|
65900
|
-
virtualModulesPromise ??= import("./virtual-modules-
|
|
65900
|
+
virtualModulesPromise ??= import("./virtual-modules-71y1gsmg.js").then((module) => module.VIRTUAL_MODULES);
|
|
65901
65901
|
return virtualModulesPromise;
|
|
65902
65902
|
}
|
|
65903
65903
|
var _aliases = null;
|
|
@@ -90060,7 +90060,7 @@ function parseCodemodeSource(input) {
|
|
|
90060
90060
|
}
|
|
90061
90061
|
|
|
90062
90062
|
// node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/execute.lazy.js
|
|
90063
|
-
var loadCodemodeExecutor = () => import("./execute-
|
|
90063
|
+
var loadCodemodeExecutor = () => import("./execute-6afts2bn.js");
|
|
90064
90064
|
|
|
90065
90065
|
// node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/renderer.js
|
|
90066
90066
|
var CODE_PREVIEW_LINES = 10;
|
|
@@ -91205,7 +91205,7 @@ function createMcpResourceToolDefinitions(options) {
|
|
|
91205
91205
|
}
|
|
91206
91206
|
|
|
91207
91207
|
// node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/runtime.lazy.js
|
|
91208
|
-
var loadMcpRuntime = () => import("./runtime-
|
|
91208
|
+
var loadMcpRuntime = () => import("./runtime-d2tcmqte.js");
|
|
91209
91209
|
|
|
91210
91210
|
// node_modules/@earendil-works/pi-coding-agent/dist/utils/clipboard.js
|
|
91211
91211
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
@@ -96824,7 +96824,7 @@ var builtInExtensions = [
|
|
|
96824
96824
|
];
|
|
96825
96825
|
|
|
96826
96826
|
// node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/cli.lazy.js
|
|
96827
|
-
var loadMcpCommand = () => import("./cli-
|
|
96827
|
+
var loadMcpCommand = () => import("./cli-3vw6dd4g.js");
|
|
96828
96828
|
|
|
96829
96829
|
// node_modules/@earendil-works/pi-coding-agent/dist/migrations.js
|
|
96830
96830
|
import { existsSync as existsSync22, mkdirSync as mkdirSync11, readdirSync as readdirSync10, readFileSync as readFileSync17, renameSync as renameSync2, rmSync as rmSync4, writeFileSync as writeFileSync11 } from "fs";
|
|
@@ -99414,7 +99414,7 @@ function playEasterEgg3d(tui, egg) {
|
|
|
99414
99414
|
if (tui.hasOverlay())
|
|
99415
99415
|
return true;
|
|
99416
99416
|
const screen = tui.getScreenLines();
|
|
99417
|
-
import("./easter-egg-3d-
|
|
99417
|
+
import("./easter-egg-3d-a0pphy71.js").then((module) => module.playEasterEgg3d(tui, screen, egg), () => {});
|
|
99418
99418
|
return true;
|
|
99419
99419
|
}
|
|
99420
99420
|
function playPiLogo3d(tui, column, row) {
|