@desplega.ai/agent-swarm 2.13.5 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acp-adapter-99n6z9ky.js +17 -0
- package/dist/{acp-targets-w8dbs4nr.js → acp-targets-23exz4z4.js} +10 -10
- package/dist/{actions-8zrcbjrx.js → actions-zcr25x27.js} +60 -39
- package/dist/{agent-fs-provision-cbt2ttds.js → agent-fs-provision-7fa9e12e.js} +4 -4
- package/dist/{amp-adapter-8x6zp8w4.js → amp-adapter-s7ytmv6b.js} +3 -3
- package/dist/{app-zfa9dwjw.js → app-5d3sz1hy.js} +7 -7
- package/dist/{approval-notifications-rv92zmza.js → approval-notifications-7qgkzkzx.js} +8 -8
- package/dist/{assistant-q7s7rm1q.js → assistant-p2yvhc3j.js} +37 -32
- package/dist/{boot-args-schema-g27kpzr1.js → boot-args-schema-ry6cb0p7.js} +1 -1
- package/dist/{boot-reembed-1mjs52nt.js → boot-reembed-2hkm3vz2.js} +1 -1
- package/dist/{boot-reembed-m62dpdkg.js → boot-reembed-c9643ms3.js} +1 -1
- package/dist/{boot-scrub-sweep-ss1vcamw.js → boot-scrub-sweep-3ycxr51t.js} +2 -2
- package/dist/{boot-seeds-hwnvgbb3.js → boot-seeds-2hzvvzg0.js} +4 -4
- package/dist/{boxd-y0szhp0g.js → boxd-9py3x0jb.js} +2 -2
- package/dist/{claude-adapter-0rjmbhjk.js → claude-adapter-dnkww93e.js} +9 -9
- package/dist/{claude-managed-adapter-6k032agg.js → claude-managed-adapter-yk0cr5x6.js} +4 -4
- package/dist/{claude-managed-setup-6czvve8q.js → claude-managed-setup-4byxpp47.js} +5 -5
- package/dist/{claude-sdk-session-pr0znb81.js → claude-sdk-session-4wf3dbvs.js} +12467 -12285
- package/dist/{cli-t0n9svkb.js → cli-096aftq6.js} +12 -7
- package/dist/{cli-2wzkvfgm.js → cli-0e914dp9.js} +3 -3
- package/dist/{cli-vcpyttcw.js → cli-0h6m6z5g.js} +1 -1
- package/dist/{cli-q41qar56.js → cli-0k7ppk9k.js} +130 -8
- package/dist/{cli-ks06cd0n.js → cli-1nfabrt4.js} +8 -8
- package/dist/{cli-ebpq3c5z.js → cli-2414h5r9.js} +8 -8
- package/dist/{cli-nrt048ys.js → cli-24wervhz.js} +37 -0
- package/dist/{cli-pedm2kht.js → cli-2ayk9gn8.js} +2 -2
- package/dist/{cli-kr0jpw9c.js → cli-2ckwgs7q.js} +1 -1
- package/dist/{cli-evy3egte.js → cli-2savn6mm.js} +11 -100
- package/dist/{cli-n79j1vxc.js → cli-2zjxake1.js} +4 -4
- package/dist/{cli-z3x7h79n.js → cli-37p61fcg.js} +9 -9
- package/dist/{cli-2vp0z049.js → cli-39t9d248.js} +1 -1
- package/dist/{cli-sa02jsqt.js → cli-3mhdmcd4.js} +1 -1
- package/dist/{cli-34fygf87.js → cli-3wsabyt0.js} +2 -2
- package/dist/{cli-grbngev5.js → cli-466jjrwe.js} +11 -2
- package/dist/{cli-zxa1vmx7.js → cli-6ajyhxh7.js} +2 -2
- package/dist/{cli-bvamr9g0.js → cli-6yy4fepf.js} +4 -4
- package/dist/{cli-3vw6dd4g.js → cli-73rmgm45.js} +2 -2
- package/dist/{cli-8b4rpnwj.js → cli-7ca8hczj.js} +1 -1
- package/dist/{cli-0h8skzss.js → cli-7g5qj2ca.js} +4 -3
- package/dist/{cli-srre41gb.js → cli-7w1fs01q.js} +2 -2
- package/dist/{cli-tgc1kgg3.js → cli-84wxwt3z.js} +1 -1
- package/dist/{cli-4gaf3tx5.js → cli-84xn7bgz.js} +1 -1
- package/dist/{cli-s8dhq7rj.js → cli-879txsac.js} +5 -5
- package/dist/{cli-9n6g14vs.js → cli-8vbxjzk0.js} +3 -3
- package/dist/{cli-cmbb2t8a.js → cli-91amj3md.js} +2 -2
- package/dist/{cli-ewk3sg68.js → cli-930zbczq.js} +3 -3
- package/dist/{cli-6msnpj1z.js → cli-9fwznq4p.js} +10 -10
- package/dist/{cli-qmx8bnt4.js → cli-9j1t3kf6.js} +2 -2
- package/dist/{cli-t879ww0y.js → cli-9j47sgzy.js} +2 -2
- package/dist/{cli-0qt3epg4.js → cli-ad00h1st.js} +7 -7
- package/dist/{cli-avax5mp9.js → cli-adzmmcvf.js} +19 -7
- package/dist/{cli-ffn0a515.js → cli-ayxxkk3p.js} +68 -25
- package/dist/{cli-4vynxtrb.js → cli-bqfx72e6.js} +10 -3
- package/dist/{cli-887vhew6.js → cli-cbg0j1yt.js} +2716 -2643
- package/dist/{cli-fw67mnyc.js → cli-cg1q8ymp.js} +1 -1
- package/dist/{cli-he5nxaa8.js → cli-dw9rtjm3.js} +1 -1
- package/dist/{cli-emdfd8fh.js → cli-dy754erz.js} +9 -1
- package/dist/{cli-3860pmrq.js → cli-edxfzgah.js} +4 -4
- package/dist/{cli-v09eza21.js → cli-ejnhs815.js} +15 -15
- package/dist/{cli-k0nebh10.js → cli-enavhq6r.js} +1 -1
- package/dist/{cli-b42yfn17.js → cli-f2rwt43y.js} +13 -13
- package/dist/{cli-tvyt8w6n.js → cli-f9g96z28.js} +8 -8
- package/dist/{cli-zbbtp02a.js → cli-fww016hh.js} +457 -70
- package/dist/{cli-vbge4rsp.js → cli-g6a696c0.js} +4 -4
- package/dist/{cli-z1vam71h.js → cli-gc6b94tj.js} +2 -2
- package/dist/{cli-5tq15aa7.js → cli-gcyws2bp.js} +2 -2
- package/dist/{cli-srktrbby.js → cli-hzhv7yac.js} +1 -1
- package/dist/{cli-cp163xga.js → cli-jcnc5ret.js} +44 -32
- package/dist/{cli-j69pzrrz.js → cli-jgq9xptq.js} +5 -5
- package/dist/{cli-kwj3131p.js → cli-jwnac23b.js} +1 -1
- package/dist/{cli-wzecestt.js → cli-kc7vd07m.js} +616 -289
- package/dist/{cli-8pd1t17c.js → cli-kg63yp1r.js} +14 -14
- package/dist/{cli-zzq96q57.js → cli-krk8y8c7.js} +727 -139
- package/dist/{cli-5web09sb.js → cli-m0ea8ggd.js} +8 -10
- package/dist/{cli-qrvk9nka.js → cli-md4tn21h.js} +13 -13
- package/dist/{cli-1jq2em7b.js → cli-mv8ft7b0.js} +10 -9
- package/dist/{cli-ryem5cfq.js → cli-mw1tmn3x.js} +217 -27
- package/dist/{cli-abby987g.js → cli-njvpngc6.js} +3 -3
- package/dist/{cli-55h8m1x3.js → cli-phe2vcw5.js} +6 -6
- package/dist/{cli-prz1p3ft.js → cli-pq0kv31y.js} +5 -5
- package/dist/{cli-q1h041y8.js → cli-q457ga28.js} +6 -6
- package/dist/{cli-z40t85ms.js → cli-q5n3deaf.js} +1 -1
- package/dist/{cli-7ypg8hka.js → cli-qkbevqer.js} +3 -3
- package/dist/{cli-f9xw9pr4.js → cli-qrwjk4xy.js} +5 -5
- package/dist/{cli-kezzteka.js → cli-r04ve9xw.js} +1 -1
- package/dist/{cli-zntvmqmm.js → cli-r495stwd.js} +2 -2
- package/dist/{cli-1kvcsd2f.js → cli-r9d2tya0.js} +71 -3
- package/dist/{cli-ybte1fqc.js → cli-rp1n2xpd.js} +1 -1
- package/dist/{cli-sejvnjvw.js → cli-rs1rzwp4.js} +1 -1
- package/dist/{cli-94mxerrp.js → cli-rzbsh6bw.js} +1 -1
- package/dist/{cli-94gx6ze9.js → cli-s4pccby1.js} +1 -1
- package/dist/{cli-hd5bm1e1.js → cli-shyhb4t5.js} +10 -10
- package/dist/{cli-r3dxpmyt.js → cli-srq69pn1.js} +1 -1
- package/dist/{cli-7r9tvk8v.js → cli-tc165vrb.js} +8 -3
- package/dist/{cli-ced4azn1.js → cli-v4z5v3jd.js} +298 -80
- package/dist/{cli-ehg90jd1.js → cli-vxmmttmt.js} +55 -50
- package/dist/{cli-tt7dkwjj.js → cli-w4bvtxet.js} +7 -7
- package/dist/{cli-x2adbg4j.js → cli-wd7b5hgc.js} +1 -1
- package/dist/{cli-htb5bpz2.js → cli-wvbaq052.js} +1 -1
- package/dist/{cli-ywy8yz6t.js → cli-wvgg7r4j.js} +2 -2
- package/dist/{cli-19d6v8er.js → cli-wym6rxgt.js} +165 -6
- package/dist/{cli-f7b9nyvk.js → cli-yd7e590v.js} +12 -12
- package/dist/{cli-69zzpjgh.js → cli-yjb3cddd.js} +1 -1
- package/dist/{cli-5n9w2xzx.js → cli-z8t4485r.js} +2 -2
- package/dist/{cli-jdq3jmny.js → cli-ze1ndjs4.js} +4 -6
- package/dist/cli.js +28 -28
- package/dist/{codex-adapter-bn7eaxk5.js → codex-adapter-eq61radw.js} +8 -8
- package/dist/{codex-hook-nnmezjg9.js → codex-hook-8nmepvz6.js} +3 -3
- package/dist/{codex-login-ktfg1cxk.js → codex-login-vbd9707w.js} +1 -1
- package/dist/{codex-session-runner-j1e9hffc.js → codex-session-runner-rfx355h4.js} +9 -9
- package/dist/{commands-amhpafrr.js → commands-d1z0sx62.js} +3 -3
- package/dist/{controller-tw7g10j2.js → controller-9hz6d8x3.js} +4 -4
- package/dist/{controllers-connect-2ssqz7f4.js → controllers-connect-tz07d2xr.js} +24 -25
- package/dist/core-dynsv289.js +41 -0
- package/dist/{cursor-adapter-d6knjmwa.js → cursor-adapter-ef22ze3j.js} +2 -2
- package/dist/{db-fd6xxm77.js → db-gd81d68c.js} +3 -3
- package/dist/{db-sc59379z.js → db-vrckks6q.js} +4 -2
- package/dist/{devin-adapter-3bp6rape.js → devin-adapter-kdt6a2bh.js} +1 -1
- package/dist/{dispatcher-a2gdqz8c.js → dispatcher-76as8w2t.js} +21 -22
- package/dist/{docker-a59g3ebm.js → docker-51ta7jsh.js} +2 -2
- package/dist/dsh-adapter-ypfvcdyz.js +11 -0
- package/dist/{e2b-cn7cvjqy.js → e2b-05kn3kpq.js} +16 -5
- package/dist/{e2b-qnxyfea6.js → e2b-dm9r8hpy.js} +3 -3
- package/dist/{easter-egg-3d-a0pphy71.js → easter-egg-3d-sg21j15g.js} +1 -1
- package/dist/{embedding-space-qepzrach.js → embedding-space-zsdw37bb.js} +13 -23
- package/dist/{embeddings-d7vr881x.js → embeddings-p4e3e1m6.js} +1 -1
- package/dist/{event-bus-7gbsr0g4.js → event-bus-tvf2grf4.js} +1 -1
- package/dist/{execute-6afts2bn.js → execute-nztd0af0.js} +1 -1
- package/dist/{external-channel-881zq1x4.js → external-channel-717yzn4d.js} +2 -2
- package/dist/fx-adapter-9k0hptnz.js +20 -0
- package/dist/grok-adapter-skdj2pce.js +20 -0
- package/dist/handlers-5btjqkz6.js +39 -0
- package/dist/{heartbeat-4c022m6a.js → heartbeat-vfb1gy84.js} +24 -25
- package/dist/{hook-a7eh6zty.js → hook-ctz0xmp3.js} +11 -11
- package/dist/{hook-4k84x499.js → hook-eh52p7yd.js} +6 -6
- package/dist/{http-6aw5wanc.js → http-zregegrx.js} +784 -166
- package/dist/{index-xhad0n8m.js → index-5kx15d19.js} +1 -1
- package/dist/index-7w8p6em0.js +41 -0
- package/dist/index-evay0xyk.js +17 -0
- package/dist/{index-yq9hhhhy.js → index-fdym6ryb.js} +25 -26
- package/dist/{index-3j803vnb.js → index-mtnbhe12.js} +20533 -19786
- package/dist/index-vz4semsx.js +38 -0
- package/dist/{index-z2g9469g.js → index-x9qf8dg7.js} +108 -28
- package/dist/index-y3s0xp2v.js +43 -0
- package/dist/{k8s-36gfn847.js → k8s-ejkk0aw7.js} +2 -2
- package/dist/{keepalive-zhbmztqw.js → keepalive-zdqay870.js} +4 -5
- package/dist/lead-6cscw8a5.js +82 -0
- package/dist/{maintenance-rsp0591h.js → maintenance-t5ndg11m.js} +1 -1
- package/dist/{node-rxte5hc6.js → node-jkdd5w7m.js} +1 -1
- package/dist/{oauth-refresh-sweep-w3cqmxq7.js → oauth-refresh-sweep-y9zyd7t6.js} +3 -4
- package/dist/{object-webhooks-331hay92.js → object-webhooks-mkca91s0.js} +7 -7
- package/dist/{onboard-n2w80m2n.js → onboard-ss995244.js} +11 -9
- package/dist/{opencode-adapter-z98127cz.js → opencode-adapter-mwpz0278.js} +8 -8
- package/dist/{otel-impl-xsk35tvf.js → otel-impl-6n6vva3x.js} +2 -2
- package/dist/{pending-2e6trkxd.js → pending-2sxh1t6j.js} +22 -23
- package/dist/{pi-mono-adapter-wh6yndtm.js → pi-mono-adapter-sfb7zy43.js} +13 -13
- package/dist/{pricing-refresh-9355dj1t.js → pricing-refresh-h79bg4cf.js} +2 -2
- package/dist/{rbac-roles-8eajw4s6.js → rbac-roles-ckq0czp4.js} +2 -2
- package/dist/{rbac-roles-58y3m912.js → rbac-roles-jg2e260w.js} +3 -3
- package/dist/{render-v2-7gskkmd4.js → render-v2-ymbshmn0.js} +7 -7
- package/dist/{resume-0drnmpja.js → resume-jdhnt4jk.js} +10 -10
- package/dist/{runtime-d2tcmqte.js → runtime-y28jhhnf.js} +1 -1
- package/dist/{session-access-0ztys6bd.js → session-access-k4ta5hvp.js} +5 -5
- package/dist/{session-source-backfill-cdm5s046.js → session-source-backfill-528j4s8j.js} +3 -3
- package/dist/{setup-pqwb9tcc.js → setup-d6pj82fr.js} +15 -6
- package/dist/thread-buffer-9w6x5zec.js +40 -0
- package/dist/{tree-visibility-rwz67mje.js → tree-visibility-kjxv3nxk.js} +2 -2
- package/dist/{user-merge-jobs-mxrhamwt.js → user-merge-jobs-rabbncf6.js} +3 -3
- package/dist/{virtual-modules-71y1gsmg.js → virtual-modules-22k51txd.js} +3 -3
- package/dist/{work-objects-3k4ykt9j.js → work-objects-xtjbar3r.js} +26 -30
- package/dist/{worker-follow-up-y0h64xpr.js → worker-follow-up-fg48vk6d.js} +21 -22
- package/dist/worker-g4aj93dt.js +82 -0
- package/dist/{x-d27jj7z7.js → x-vfsqypht.js} +2 -2
- package/openapi.json +247 -20
- package/package.json +10 -10
- package/src/apps/definition.ts +76 -24
- package/src/apps/row-store.ts +67 -0
- package/src/apps/script-types.ts +131 -21
- package/src/apps/store.ts +4 -1
- package/src/be/db/script-runs.ts +33 -0
- package/src/be/db/slack-card-groups.ts +147 -0
- package/src/be/db/slack-trees.ts +26 -0
- package/src/be/db/task-idempotency.ts +63 -0
- package/src/be/db/tasks/read.ts +2 -0
- package/src/be/db/tasks/write.ts +4 -2
- package/src/be/db/workflow-idempotency.ts +6 -1
- package/src/be/db/workflows/read.ts +79 -0
- package/src/be/db.ts +51 -147
- package/src/be/improvements.ts +24 -2
- package/src/be/mcp-proxy.ts +45 -11
- package/src/be/memory/embedding-space.ts +10 -20
- package/src/be/memory/index.ts +35 -0
- package/src/be/memory/providers/openai-embedding.ts +10 -0
- package/src/be/migrations/348_task_deferred_until.sql +4 -0
- package/src/be/migrations/354_durable_objects.sql +9 -0
- package/src/be/migrations/356_slack_outcome_card_groups.sql +14 -0
- package/src/be/migrations/357_task_idempotency_keys.sql +27 -0
- package/src/be/migrations/362_favorites_app.sql +36 -0
- package/src/be/repo-checked-update.ts +58 -5
- package/src/be/requester-timezone.ts +10 -0
- package/src/be/script-connections.ts +5 -1
- package/src/be/script-credential-broker.ts +29 -2
- package/src/be/scripts/durable.ts +204 -0
- package/src/be/scripts/extract-schema.ts +29 -4
- package/src/be/scripts/run-credential.ts +1 -8
- package/src/be/scripts/typecheck.ts +32 -7
- package/src/be/seed-scripts/catalog/memory-eval.ts +11 -2
- package/src/be/seed-scripts/catalog/tool-usage.ts +27 -8
- package/src/be/swarm-config-guard.ts +87 -7
- package/src/be/users.ts +33 -12
- package/src/comb/review-batch.ts +16 -5
- package/src/commands/context-preamble.ts +237 -0
- package/src/commands/e2b.ts +14 -0
- package/src/commands/entrypoint-mcp-config.ts +231 -0
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/onboard/compose-generator.ts +2 -1
- package/src/commands/onboard/env-generator.ts +16 -7
- package/src/commands/runner.ts +23 -7
- package/src/commands/setup.tsx +17 -3
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/hooks/hook.ts +8 -2
- package/src/hooks/native-tool-hooks.ts +4 -2
- package/src/http/apps.ts +82 -42
- package/src/http/comb.ts +21 -5
- package/src/http/config.ts +8 -4
- package/src/http/heartbeat.ts +5 -0
- package/src/http/index.ts +12 -6
- package/src/http/kv.ts +7 -5
- package/src/http/mcp-oauth.ts +16 -0
- package/src/http/mcp-servers.ts +43 -3
- package/src/http/memory.ts +28 -1
- package/src/http/metrics.ts +11 -4
- package/src/http/onboarding.ts +12 -1
- package/src/http/repos.ts +27 -11
- package/src/http/request-principal.ts +27 -1
- package/src/http/schedules.ts +36 -8
- package/src/http/script-connection-proxy.ts +3 -1
- package/src/http/script-runs.ts +21 -10
- package/src/http/scripts.ts +177 -26
- package/src/http/session-cost-recompute.ts +9 -4
- package/src/http/skills.ts +70 -0
- package/src/http/status.ts +2 -0
- package/src/http/tasks.ts +92 -14
- package/src/http/trackers/jira.ts +18 -3
- package/src/http/trackers/linear.ts +3 -0
- package/src/kv-limits.ts +2 -0
- package/src/kv-reserved-namespaces.ts +25 -2
- package/src/prompts/session-templates.ts +49 -0
- package/src/prompts/session-turns.ts +30 -0
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/claude-managed-adapter.ts +14 -0
- package/src/providers/claude-sdk-session.ts +14 -1
- package/src/providers/cursor-adapter.ts +1 -1
- package/src/providers/dsh-adapter.ts +1 -1
- package/src/providers/opencode-adapter.ts +3 -5
- package/src/providers/runtime-dependencies.ts +11 -8
- package/src/rbac/legacy-policy.ts +7 -0
- package/src/rbac/permissions.ts +27 -0
- package/src/scheduler/scheduler.ts +36 -18
- package/src/script-workflows/executor.ts +37 -8
- package/src/script-workflows/supervisor.ts +14 -0
- package/src/scripts-runtime/ctx.ts +5 -1
- package/src/scripts-runtime/durable-object-base.ts +19 -0
- package/src/scripts-runtime/eval-harness.ts +46 -1
- package/src/scripts-runtime/executors/native.ts +13 -1
- package/src/scripts-runtime/executors/quickjs-bundle.ts +20 -1
- package/src/scripts-runtime/executors/quickjs-prelude.ts +40 -1
- package/src/scripts-runtime/executors/quickjs-runner.ts +26 -3
- package/src/scripts-runtime/executors/quickjs-worker.ts +2 -1
- package/src/scripts-runtime/executors/types.ts +26 -0
- package/src/scripts-runtime/extract-signature.ts +96 -1
- package/src/scripts-runtime/loader.ts +11 -5
- package/src/scripts-runtime/mcp-client.ts +1 -1
- package/src/scripts-runtime/sdk-allowlist.ts +1 -0
- package/src/scripts-runtime/swarm-config.ts +7 -0
- package/src/scripts-runtime/swarm-sdk.ts +4 -1
- package/src/scripts-runtime/types/stdlib.d.ts +19 -0
- package/src/scripts-runtime/types/swarm-extension.d.ts +1 -0
- package/src/scripts-runtime/types/swarm-sdk.d.ts +19 -0
- package/src/slack/actions.ts +24 -0
- package/src/slack/assistant.ts +8 -0
- package/src/slack/blocks.ts +35 -0
- package/src/slack/channel-activity.ts +7 -0
- package/src/slack/enrich.ts +46 -54
- package/src/slack/files.ts +173 -23
- package/src/slack/handlers.test.ts +17 -19
- package/src/slack/handlers.ts +15 -14
- package/src/slack/render-v2.ts +264 -19
- package/src/slack/responses.ts +61 -5
- package/src/slack/session-mirror.ts +10 -5
- package/src/slack/task-output.ts +25 -14
- package/src/slack/templates.ts +9 -0
- package/src/slack/thread-participants.ts +64 -24
- package/src/slack/watcher.ts +4 -4
- package/src/slack/work-objects.ts +1 -1
- package/src/stdio.ts +5 -0
- package/src/tests/agents-list-model-display.test.ts +4 -0
- package/src/tests/apps-script-types.test.ts +63 -16
- package/src/tests/apps-sort-order.test.ts +87 -0
- package/src/tests/bedrock-model-groups.test.ts +4 -0
- package/src/tests/channel-activity.test.ts +9 -0
- package/src/tests/chatgpt-subscription-model-groups.test.ts +4 -0
- package/src/tests/claude-hook-output.test.ts +2 -0
- package/src/tests/claude-managed-adapter.test.ts +15 -3
- package/src/tests/claude-sdk-stderr.test.ts +28 -0
- package/src/tests/codex-gpt6-release.test.ts +4 -0
- package/src/tests/comb-review-batch.test.ts +17 -4
- package/src/tests/comb-status.test.ts +1 -0
- package/src/tests/db-client.test.ts +11 -5
- package/src/tests/db-task-read-contract.test.ts +1 -0
- package/src/tests/db-task-write-contract.test.ts +2 -2
- package/src/tests/defer-task.test.ts +23 -1
- package/src/tests/dsh-adapter.test.ts +1 -1
- package/src/tests/e2b-dispatch.test.ts +13 -1
- package/src/tests/entrypoint-mcp-config.test.ts +642 -0
- package/src/tests/fixtures/onboard/content.env.txt +2 -2
- package/src/tests/fixtures/onboard/dev.env.txt +2 -2
- package/src/tests/fixtures/onboard/full-all.env.txt +2 -2
- package/src/tests/fixtures/onboard/full.env.txt +2 -2
- package/src/tests/fixtures/onboard/research.env.txt +2 -2
- package/src/tests/fixtures/onboard/solo.env.txt +2 -2
- package/src/tests/fixtures/runner-missing-dependency.ts +2 -1
- package/src/tests/fx-adapter.test.ts +4 -5
- package/src/tests/hook-mcp-config-precedence.test.ts +59 -0
- package/src/tests/hook-ping-me-order.test.ts +1 -0
- package/src/tests/hook-runtime-close.test.ts +1 -0
- package/src/tests/improvements-payload.test.ts +2 -2
- package/src/tests/model-groups-live-catalog.test.ts +4 -0
- package/src/tests/oauth-credential-bindings.test.ts +8 -3
- package/src/tests/oauth-refresh-failure.test.ts +15 -3
- package/src/tests/onboard-env.test.ts +1 -1
- package/src/tests/openai-compatible-providers.test.ts +5 -0
- package/src/tests/openapi-route-headers.test.ts +2 -1
- package/src/tests/opus-5-5-registry.test.ts +4 -0
- package/src/tests/provider-runtime-dependencies.test.ts +26 -15
- package/src/tests/routing-affinity-inventory.test.ts +11 -0
- package/src/tests/runner-context-preamble.test.ts +202 -0
- package/src/tests/runner-repo-clone-args.test.ts +116 -0
- package/src/tests/scheduler-occurrence.test.ts +60 -9
- package/src/tests/script-connections-mcp.test.ts +6 -3
- package/src/tests/script-connections.test.ts +4 -0
- package/src/tests/scripts-namespaces.test.ts +3 -1
- package/src/tests/secret-scrubber.test.ts +8 -2
- package/src/tests/session-cost-recompute-unit.test.ts +39 -0
- package/src/tests/session-costs-recompute-all-providers.test.ts +6 -3
- package/src/tests/session-route-posture.test.ts +7 -1
- package/src/tests/slack-file-tools-attachments.test.ts +14 -9
- package/src/tests/slack-identity-resolution.test.ts +10 -3
- package/src/tests/slack-inline-output.test.ts +10 -8
- package/src/tests/slack-render-v2.test.ts +9 -4
- package/src/tests/slack-steering.test.ts +8 -2
- package/src/tests/slack-thread-participants.test.ts +11 -1
- package/src/tests/sonnet-5-5-registry.test.ts +4 -0
- package/src/tests/swarm-config-encryption.test.ts +5 -8
- package/src/tests/ui-spec-script-actions-config.test.ts +7 -3
- package/src/tests/workflow-triggers-v2.test.ts +35 -11
- package/src/tools/app-patch.ts +6 -2
- package/src/tools/app-upsert.ts +8 -4
- package/src/tools/defer-task.ts +17 -77
- package/src/tools/kv/kv-get.ts +2 -0
- package/src/tools/kv/kv-list.ts +11 -5
- package/src/tools/kv/kv-set.ts +1 -3
- package/src/tools/repos/update-repo.ts +37 -19
- package/src/tools/schedules/run-schedule-now.ts +21 -1
- package/src/tools/script-apis.ts +9 -4
- package/src/tools/script-common.ts +2 -2
- package/src/tools/script-run.ts +8 -0
- package/src/tools/script-upsert.ts +1 -1
- package/src/tools/slack-download-file.ts +15 -12
- package/src/tools/slack-post.ts +7 -1
- package/src/tools/slack-read.ts +3 -1
- package/src/tools/slack-reply.ts +16 -0
- package/src/tools/slack-start-thread.ts +8 -1
- package/src/tools/slack-upload-file.ts +99 -96
- package/src/tools/swarm-config/set-config.ts +3 -1
- package/src/tools/swarm-x.ts +0 -2
- package/src/tools/utils.ts +3 -0
- package/src/types.ts +8 -2
- package/src/utils/constants.ts +20 -0
- package/src/utils/deferral-time.ts +61 -0
- package/src/utils/request-auth-context.ts +15 -16
- package/src/utils/secret-scrubber.ts +1 -1
- package/src/workflows/engine.ts +6 -11
- package/src/workflows/executors/swarm-script.ts +0 -2
- package/src/workflows/foreach-driver.ts +6 -12
- package/src/workflows/input.ts +24 -1
- package/src/workflows/node-timeout.ts +18 -0
- package/src/workflows/retry-poller.ts +2 -1
- package/src/workflows/triggers.ts +21 -11
- package/src/x/composio.ts +10 -1
- package/templates/skills/apps/SKILL.md +4 -2
- package/templates/skills/apps/content.md +4 -2
- package/templates/skills/code-quality/content.md +4 -4
- package/templates/skills/scheduled-task-resilience/SKILL.md +2 -0
- package/templates/skills/scheduled-task-resilience/content.md +2 -0
- package/templates/skills/swarm-docs/content.md +7 -0
- package/templates/skills/swarm-scripts/SKILL.md +44 -0
- package/templates/skills/swarm-scripts/content.md +44 -0
- package/dist/acp-adapter-tbt61zkm.js +0 -17
- package/dist/cli-b9ygp1kz.js +0 -459
- package/dist/cli-kj0hyr43.js +0 -51
- package/dist/cli-m8f4379k.js +0 -173
- package/dist/core-bwp98v4w.js +0 -42
- package/dist/dsh-adapter-43ygwqn7.js +0 -9
- package/dist/fx-adapter-cr2hq17y.js +0 -20
- package/dist/grok-adapter-ayddnbsc.js +0 -20
- package/dist/handlers-7ghs84x2.js +0 -41
- package/dist/index-dtt0d634.js +0 -44
- package/dist/index-hmszyqkk.js +0 -42
- package/dist/index-j6rm1rtn.js +0 -39
- package/dist/index-rwwhsmjg.js +0 -13
- package/dist/lead-g2j4q39z.js +0 -83
- package/dist/thread-buffer-epx3san4.js +0 -42
- package/dist/worker-09gqn9xy.js +0 -83
|
@@ -25,17 +25,19 @@ import {
|
|
|
25
25
|
getUserById2,
|
|
26
26
|
getAllUsers2,
|
|
27
27
|
init_db4
|
|
28
|
-
} from "./cli-
|
|
28
|
+
} from "./cli-krk8y8c7.js";
|
|
29
29
|
import {
|
|
30
30
|
externalChannelToolError2,
|
|
31
31
|
isBlockExternalEnabled2,
|
|
32
32
|
getChannelBlockReason2,
|
|
33
33
|
init_external_channel
|
|
34
|
-
} from "./cli-
|
|
34
|
+
} from "./cli-z8t4485r.js";
|
|
35
35
|
import {
|
|
36
|
+
buildApprovalAnswerButtons,
|
|
37
|
+
init_approval_buttons,
|
|
36
38
|
getSlackApp2,
|
|
37
39
|
init_app4
|
|
38
|
-
} from "./cli-
|
|
40
|
+
} from "./cli-fww016hh.js";
|
|
39
41
|
import {
|
|
40
42
|
isMultiRuntimeEnabled,
|
|
41
43
|
init_multi_runtime2
|
|
@@ -43,15 +45,15 @@ import {
|
|
|
43
45
|
import {
|
|
44
46
|
revokeRuntimeTokensForRuntime,
|
|
45
47
|
init_users
|
|
46
|
-
} from "./cli-
|
|
48
|
+
} from "./cli-adzmmcvf.js";
|
|
47
49
|
import {
|
|
48
50
|
resolveTemplate,
|
|
49
51
|
init_resolver
|
|
50
|
-
} from "./cli-
|
|
52
|
+
} from "./cli-24wervhz.js";
|
|
51
53
|
import {
|
|
52
54
|
TERMINAL_TASK_STATUSES,
|
|
53
55
|
init_types5
|
|
54
|
-
} from "./cli-
|
|
56
|
+
} from "./cli-tc165vrb.js";
|
|
55
57
|
import {
|
|
56
58
|
init_zod
|
|
57
59
|
} from "./cli-96234j5w.js";
|
|
@@ -67,11 +69,11 @@ import {
|
|
|
67
69
|
import {
|
|
68
70
|
getAppUrl,
|
|
69
71
|
init_constants3
|
|
70
|
-
} from "./cli-
|
|
72
|
+
} from "./cli-466jjrwe.js";
|
|
71
73
|
import {
|
|
72
74
|
scrubSecrets,
|
|
73
75
|
init_secret_scrubber
|
|
74
|
-
} from "./cli-
|
|
76
|
+
} from "./cli-r9d2tya0.js";
|
|
75
77
|
import {
|
|
76
78
|
__esm
|
|
77
79
|
} from "./cli-242037k3.js";
|
|
@@ -579,97 +581,6 @@ var init_approval_config_question = __esm(() => {
|
|
|
579
581
|
});
|
|
580
582
|
});
|
|
581
583
|
|
|
582
|
-
// src/workflows/approval-inline.ts
|
|
583
|
-
function inlineApprovalQuestion(questions) {
|
|
584
|
-
if (!questions || questions.length !== 1)
|
|
585
|
-
return null;
|
|
586
|
-
const [q] = questions;
|
|
587
|
-
if (!q?.id)
|
|
588
|
-
return null;
|
|
589
|
-
const base = { id: q.id, label: q.label ?? "", options: q.options ?? [] };
|
|
590
|
-
switch (q.type) {
|
|
591
|
-
case "approval":
|
|
592
|
-
case "boolean":
|
|
593
|
-
return { ...base, type: q.type };
|
|
594
|
-
case "single-select":
|
|
595
|
-
return base.options.length > 0 && base.options.length <= INLINE_MAX_OPTIONS ? { ...base, type: q.type } : null;
|
|
596
|
-
case "text":
|
|
597
|
-
return q.multiline ? null : { ...base, type: q.type };
|
|
598
|
-
default:
|
|
599
|
-
return null;
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
function inlineApprovalChoices(question) {
|
|
603
|
-
switch (question.type) {
|
|
604
|
-
case "approval":
|
|
605
|
-
return [
|
|
606
|
-
{ label: "Approve", choice: "y", style: "primary" },
|
|
607
|
-
{ label: "Deny", choice: "n", style: "danger", needsText: "optional" }
|
|
608
|
-
];
|
|
609
|
-
case "boolean":
|
|
610
|
-
return [
|
|
611
|
-
{ label: "Yes", choice: "y" },
|
|
612
|
-
{ label: "No", choice: "n" }
|
|
613
|
-
];
|
|
614
|
-
case "single-select":
|
|
615
|
-
return question.options.map((option, index) => ({
|
|
616
|
-
label: option.label || option.value,
|
|
617
|
-
choice: String(index)
|
|
618
|
-
}));
|
|
619
|
-
case "text":
|
|
620
|
-
return [{ label: "Answer", choice: "t", needsText: "required" }];
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
function inlineApprovalResponses(question, choice, text) {
|
|
624
|
-
const trimmed = (text ?? "").trim().slice(0, INLINE_TEXT_MAX_LENGTH);
|
|
625
|
-
let answer;
|
|
626
|
-
switch (question.type) {
|
|
627
|
-
case "approval":
|
|
628
|
-
if (choice === "y")
|
|
629
|
-
answer = { approved: true };
|
|
630
|
-
else if (choice === "n")
|
|
631
|
-
answer = trimmed ? { approved: false, comment: trimmed } : { approved: false };
|
|
632
|
-
break;
|
|
633
|
-
case "boolean":
|
|
634
|
-
if (choice === "y" || choice === "n")
|
|
635
|
-
answer = choice === "y";
|
|
636
|
-
break;
|
|
637
|
-
case "single-select": {
|
|
638
|
-
const option = /^\d+$/.test(choice) ? question.options[Number(choice)] : undefined;
|
|
639
|
-
answer = option?.value;
|
|
640
|
-
break;
|
|
641
|
-
}
|
|
642
|
-
case "text":
|
|
643
|
-
if (choice === "t" && trimmed)
|
|
644
|
-
answer = trimmed;
|
|
645
|
-
break;
|
|
646
|
-
}
|
|
647
|
-
return answer === undefined ? null : { [question.id]: answer };
|
|
648
|
-
}
|
|
649
|
-
var INLINE_MAX_OPTIONS = 5, INLINE_TEXT_MAX_LENGTH = 500;
|
|
650
|
-
var init_approval_inline = () => {};
|
|
651
|
-
|
|
652
|
-
// src/slack/approval-buttons.ts
|
|
653
|
-
function buttonText(label) {
|
|
654
|
-
return label.length > 75 ? `${label.slice(0, 74)}…` : label;
|
|
655
|
-
}
|
|
656
|
-
function buildApprovalAnswerButtons(requestId, questions) {
|
|
657
|
-
const question = inlineApprovalQuestion(questions);
|
|
658
|
-
if (!question)
|
|
659
|
-
return [];
|
|
660
|
-
return inlineApprovalChoices(question).map((choice) => ({
|
|
661
|
-
type: "button",
|
|
662
|
-
action_id: `${APPROVAL_ACTION_PREFIX}${choice.choice}`,
|
|
663
|
-
text: { type: "plain_text", text: buttonText(choice.label) },
|
|
664
|
-
value: requestId,
|
|
665
|
-
...choice.style ? { style: choice.style } : {}
|
|
666
|
-
}));
|
|
667
|
-
}
|
|
668
|
-
var APPROVAL_ACTION_PREFIX = "hitl_answer:";
|
|
669
|
-
var init_approval_buttons = __esm(() => {
|
|
670
|
-
init_approval_inline();
|
|
671
|
-
});
|
|
672
|
-
|
|
673
584
|
// src/slack/dm.ts
|
|
674
585
|
function isSlackUserId(id) {
|
|
675
586
|
return /^[UW][A-Z0-9]+$/.test(id);
|
|
@@ -1030,4 +941,4 @@ var init_approval_notifications = __esm(() => {
|
|
|
1030
941
|
init_secret_scrubber();
|
|
1031
942
|
});
|
|
1032
943
|
|
|
1033
|
-
export { AGENT_MAX_TASKS_CONFIG_KEY, reconcileAgentMaxTasksPolicy, resetAgentMaxTasksMirror, upsertSwarmConfigWithPolicyMirror, runtimeStaleThresholdMinutes, upsertRuntimeInstance, getRuntimeInstanceById, insertProvisioningRuntime, nextFreeWorkspaceSlot, markRuntimeTerminated, touchRuntimeInstance, isRuntimeInstanceFresh, markRuntimeInstanceOffline, countActiveRuntimeInstancesForAgent, listRuntimeInstancesForAgent, setRuntimeCredentialReady, reconcileAgentStatusFromRuntimes, agentsWithLiveRuntime, liveRuntimeAuthModes, expireStaleRuntimeInstances, listRuntimeInstancesForPool, init_multi_runtime, ConfigQuestionSettingsSchema, ConfigStateSchema, readConfigState, normalizeApprovalQuestions, isConfigQuestion, parseConfigAnswer, skippedConfigResult, keptConfigResult, applyConfigAnswer, init_approval_config_question,
|
|
944
|
+
export { AGENT_MAX_TASKS_CONFIG_KEY, reconcileAgentMaxTasksPolicy, resetAgentMaxTasksMirror, upsertSwarmConfigWithPolicyMirror, runtimeStaleThresholdMinutes, upsertRuntimeInstance, getRuntimeInstanceById, insertProvisioningRuntime, nextFreeWorkspaceSlot, markRuntimeTerminated, touchRuntimeInstance, isRuntimeInstanceFresh, markRuntimeInstanceOffline, countActiveRuntimeInstancesForAgent, listRuntimeInstancesForAgent, setRuntimeCredentialReady, reconcileAgentStatusFromRuntimes, agentsWithLiveRuntime, liveRuntimeAuthModes, expireStaleRuntimeInstances, listRuntimeInstancesForPool, init_multi_runtime, ConfigQuestionSettingsSchema, ConfigStateSchema, readConfigState, normalizeApprovalQuestions, isConfigQuestion, parseConfigAnswer, skippedConfigResult, keptConfigResult, applyConfigAnswer, init_approval_config_question, resolveSlackConversationId, init_dm, dispatchApprovalNotifications2, postApprovalCancellationUpdates2, updateResolvedApprovalCards2, createApprovalFollowUpTask2, init_approval_notifications };
|
|
@@ -13,19 +13,19 @@ async function createRuntimeProvider(kind, target = {}) {
|
|
|
13
13
|
return new StaticRuntimeProvider;
|
|
14
14
|
}
|
|
15
15
|
case "docker": {
|
|
16
|
-
const { DockerRuntimeProvider } = await import("./docker-
|
|
16
|
+
const { DockerRuntimeProvider } = await import("./docker-51ta7jsh.js");
|
|
17
17
|
return new DockerRuntimeProvider;
|
|
18
18
|
}
|
|
19
19
|
case "e2b": {
|
|
20
|
-
const { E2BRuntimeProvider } = await import("./e2b-
|
|
20
|
+
const { E2BRuntimeProvider } = await import("./e2b-dm9r8hpy.js");
|
|
21
21
|
return new E2BRuntimeProvider(target);
|
|
22
22
|
}
|
|
23
23
|
case "boxd": {
|
|
24
|
-
const { BoxdRuntimeProvider } = await import("./boxd-
|
|
24
|
+
const { BoxdRuntimeProvider } = await import("./boxd-9py3x0jb.js");
|
|
25
25
|
return new BoxdRuntimeProvider;
|
|
26
26
|
}
|
|
27
27
|
case "k8s": {
|
|
28
|
-
const { KubernetesRuntimeProvider } = await import("./k8s-
|
|
28
|
+
const { KubernetesRuntimeProvider } = await import("./k8s-ejkk0aw7.js");
|
|
29
29
|
return new KubernetesRuntimeProvider;
|
|
30
30
|
}
|
|
31
31
|
default:
|
|
@@ -2,24 +2,24 @@ import {
|
|
|
2
2
|
contextStatePath,
|
|
3
3
|
contextBoundNoteMarkerPath,
|
|
4
4
|
recordContextState
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-r495stwd.js";
|
|
6
6
|
import {
|
|
7
7
|
runStopHookSessionSummarySubprocess
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-9fwznq4p.js";
|
|
9
9
|
import {
|
|
10
10
|
RATE_LIMIT_WINDOWS_EVENT,
|
|
11
11
|
redactRateLimitEventLine,
|
|
12
12
|
SessionErrorTracker,
|
|
13
13
|
trackErrorFromJson,
|
|
14
14
|
parseStderrForErrors
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-rs1rzwp4.js";
|
|
16
16
|
import {
|
|
17
17
|
isHarnessOtelEnabled,
|
|
18
18
|
buildOtelTraceparentEnv
|
|
19
19
|
} from "./cli-snxhtehz.js";
|
|
20
20
|
import {
|
|
21
21
|
applyReasoningEffort
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-wvgg7r4j.js";
|
|
23
23
|
import {
|
|
24
24
|
fetchInstalledMcpServers
|
|
25
25
|
} from "./cli-5y2fvw4z.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
computeContextUsedUnified,
|
|
30
30
|
clampContextPercent,
|
|
31
31
|
init_context_window
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-gc6b94tj.js";
|
|
33
33
|
import {
|
|
34
34
|
resolveSlashSkillPrompt
|
|
35
35
|
} from "./cli-5j88qqa8.js";
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
import {
|
|
51
51
|
withFileLock,
|
|
52
52
|
init_file_lock
|
|
53
|
-
} from "./cli-
|
|
53
|
+
} from "./cli-wym6rxgt.js";
|
|
54
54
|
import {
|
|
55
55
|
routeCredentialStatus,
|
|
56
56
|
deriveDefaultRoute,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
CLAUDE_CREDENTIALS_HINT,
|
|
60
60
|
validateClaudeCredentials,
|
|
61
61
|
init_credentials2
|
|
62
|
-
} from "./cli-
|
|
62
|
+
} from "./cli-wd7b5hgc.js";
|
|
63
63
|
import {
|
|
64
64
|
getOpenRouterAttributionHeaders,
|
|
65
65
|
init_openrouter_base_url
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
import {
|
|
72
72
|
scrubSecrets,
|
|
73
73
|
init_secret_scrubber
|
|
74
|
-
} from "./cli-
|
|
74
|
+
} from "./cli-r9d2tya0.js";
|
|
75
75
|
import {
|
|
76
76
|
require_src4
|
|
77
77
|
} from "./cli-mna6pmfx.js";
|
|
@@ -1346,7 +1346,7 @@ class ClaudeAdapter2 {
|
|
|
1346
1346
|
if (transport === "sdk" && isClaudeBridgeEffective(sourceEnv)) {
|
|
1347
1347
|
throw new Error("CLAUDE_TRANSPORT=sdk cannot run with an effective Claude Bridge configuration. Select CLI transport or disable the bridge.");
|
|
1348
1348
|
}
|
|
1349
|
-
const claudeSdk = transport === "sdk" ? await import("./claude-sdk-session-
|
|
1349
|
+
const claudeSdk = transport === "sdk" ? await import("./claude-sdk-session-4wf3dbvs.js") : undefined;
|
|
1350
1350
|
claudeSdk?.validateClaudeSdkAdditionalArgs([
|
|
1351
1351
|
...claudeBinaryArgv.slice(1),
|
|
1352
1352
|
...config.additionalArgs ?? []
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
invalidateTelemetryUserRole,
|
|
9
9
|
init_telemetry_identity,
|
|
10
10
|
init_db4
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-krk8y8c7.js";
|
|
12
12
|
import {
|
|
13
13
|
revokeAllUserCredentials,
|
|
14
14
|
isLiveUserToken,
|
|
15
15
|
init_users
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-adzmmcvf.js";
|
|
17
17
|
import {
|
|
18
18
|
init_env_flag
|
|
19
19
|
} from "./cli-cebvbc9t.js";
|
|
@@ -34,6 +34,15 @@ function getMcpBaseUrl() {
|
|
|
34
34
|
const raw = process.env.MCP_BASE_URL?.trim();
|
|
35
35
|
return (raw || `http://localhost:${process.env.PORT || "3013"}`).replace(/\/+$/, "");
|
|
36
36
|
}
|
|
37
|
+
function setApiLoopbackBaseUrl(url) {
|
|
38
|
+
apiLoopbackBaseUrl = url.replace(/\/+$/, "");
|
|
39
|
+
}
|
|
40
|
+
function getScriptApiBaseUrl() {
|
|
41
|
+
const override = process.env.SCRIPT_API_BASE_URL?.trim();
|
|
42
|
+
if (override)
|
|
43
|
+
return override.replace(/\/+$/, "");
|
|
44
|
+
return apiLoopbackBaseUrl ?? getMcpBaseUrl();
|
|
45
|
+
}
|
|
37
46
|
function getPublicMcpBaseUrl() {
|
|
38
47
|
const raw = process.env.PUBLIC_MCP_BASE_URL?.trim();
|
|
39
48
|
return raw ? raw.replace(/\/+$/, "") : getMcpBaseUrl();
|
|
@@ -126,7 +135,7 @@ function isCombEnabled() {
|
|
|
126
135
|
function isAgentFsProxyEnabled() {
|
|
127
136
|
return isEnvFlagEnabled("AGENT_FS_PROXY", Boolean(process.env.AGENT_FS_API_URL?.trim()));
|
|
128
137
|
}
|
|
129
|
-
var MAX_PROFILE_FILE_LENGTH, DEFAULT_APP_URL = "https://app.agent-swarm.dev", DEFAULT_AGENT_FS_LIVE_URL = "https://live.agent-fs.dev", DOT_SEGMENT_RE;
|
|
138
|
+
var MAX_PROFILE_FILE_LENGTH, DEFAULT_APP_URL = "https://app.agent-swarm.dev", apiLoopbackBaseUrl, DEFAULT_AGENT_FS_LIVE_URL = "https://live.agent-fs.dev", DOT_SEGMENT_RE;
|
|
130
139
|
var init_constants3 = __esm(() => {
|
|
131
140
|
init_env_flag();
|
|
132
141
|
init_node_env();
|
|
@@ -134,4 +143,4 @@ var init_constants3 = __esm(() => {
|
|
|
134
143
|
DOT_SEGMENT_RE = /^(?:\.|%2e){1,2}$/i;
|
|
135
144
|
});
|
|
136
145
|
|
|
137
|
-
export { MAX_PROFILE_FILE_LENGTH, DEFAULT_APP_URL, getConfiguredAppUrls, getAppUrl, getLocalDevAppOrigins, getMcpBaseUrl, getPublicMcpBaseUrl, getAgentFsLiveUrl, resolveAgentFsLinkBase, agentFsFileLinkQuery, getAgentFsDefaultOrgId, getAgentFsDefaultDriveId, agentFsFileRoute, buildAgentFsLiveUrl, buildAgentFsFileLink, getCombState, isCombEnabled, isAgentFsProxyEnabled, init_constants3 };
|
|
146
|
+
export { MAX_PROFILE_FILE_LENGTH, DEFAULT_APP_URL, getConfiguredAppUrls, getAppUrl, getLocalDevAppOrigins, getMcpBaseUrl, setApiLoopbackBaseUrl, getScriptApiBaseUrl, getPublicMcpBaseUrl, getAgentFsLiveUrl, resolveAgentFsLinkBase, agentFsFileLinkQuery, getAgentFsDefaultOrgId, getAgentFsDefaultDriveId, agentFsFileRoute, buildAgentFsLiveUrl, buildAgentFsFileLink, getCombState, isCombEnabled, isAgentFsProxyEnabled, init_constants3 };
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getSwarmConfigs2,
|
|
4
4
|
getResolvedConfig2,
|
|
5
5
|
init_db4
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-krk8y8c7.js";
|
|
7
7
|
import {
|
|
8
8
|
AgentFsProvider,
|
|
9
9
|
init_agent_fs_provider
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
registerVolatileSecret,
|
|
13
13
|
init_secret_scrubber
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-r9d2tya0.js";
|
|
15
15
|
import {
|
|
16
16
|
__esm
|
|
17
17
|
} from "./cli-242037k3.js";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
requireFxRoute,
|
|
4
4
|
fxSessionExists2,
|
|
5
5
|
fxTargetProfile2
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-ad00h1st.js";
|
|
7
7
|
import {
|
|
8
8
|
ACPAdapter2
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-cbg0j1yt.js";
|
|
10
10
|
import {
|
|
11
11
|
getKnownContextWindowSize,
|
|
12
12
|
init_context_window
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-gc6b94tj.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-r9d2tya0.js";
|
|
22
22
|
|
|
23
23
|
// src/providers/fx-adapter.ts
|
|
24
24
|
init_context_window();
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
addMcpServerConfig,
|
|
12
12
|
removeMcpServerConfig,
|
|
13
13
|
questionTerminal
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-2414h5r9.js";
|
|
15
15
|
import {
|
|
16
16
|
McpSignInCancelledError2,
|
|
17
17
|
McpOAuthCredentialStore2,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
McpServerLog2,
|
|
20
20
|
createDefaultTransport2,
|
|
21
21
|
McpServerConnection2
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-9j47sgzy.js";
|
|
23
23
|
|
|
24
24
|
// node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/cli.js
|
|
25
25
|
import { existsSync } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
scrubObject,
|
|
3
3
|
init_secret_scrubber
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-r9d2tya0.js";
|
|
5
5
|
|
|
6
6
|
// src/hooks/native-tool-hooks.ts
|
|
7
7
|
init_secret_scrubber();
|
|
@@ -56,7 +56,8 @@ async function nativeHooksActive(target, fetchImpl = fetch, now = Date.now) {
|
|
|
56
56
|
const key = cacheKey(target);
|
|
57
57
|
const file = join(tmpdir(), `agent-swarm-native-hooks-${key}.json`);
|
|
58
58
|
const cached = memoryStatus.get(key) ?? readStatusFile(file);
|
|
59
|
-
|
|
59
|
+
const at = now();
|
|
60
|
+
if (cached && cached.until > at && cached.until <= at + STATUS_TTL_MS)
|
|
60
61
|
return cached.native;
|
|
61
62
|
let entry;
|
|
62
63
|
try {
|
|
@@ -73,7 +74,7 @@ async function nativeHooksActive(target, fetchImpl = fetch, now = Date.now) {
|
|
|
73
74
|
}
|
|
74
75
|
memoryStatus.set(key, entry);
|
|
75
76
|
try {
|
|
76
|
-
writeFileSync(file, JSON.stringify(entry));
|
|
77
|
+
writeFileSync(file, JSON.stringify(entry), { mode: 384 });
|
|
77
78
|
} catch {}
|
|
78
79
|
return entry.native;
|
|
79
80
|
}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
Number2,
|
|
6
6
|
String2,
|
|
7
7
|
completeStructuredWithModel
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-8vbxjzk0.js";
|
|
9
9
|
import {
|
|
10
10
|
SummaryWithRatingsSchema,
|
|
11
11
|
BASE_SUMMARIZE_PROMPT,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./cli-bmqp0ser.js";
|
|
15
15
|
import {
|
|
16
16
|
init_credentials
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-91amj3md.js";
|
|
18
18
|
import {
|
|
19
19
|
init_models2
|
|
20
20
|
} from "./cli-jjzxsk47.js";
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
init_key_bootstrap,
|
|
7
7
|
getDbClient2,
|
|
8
8
|
init_db4
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-krk8y8c7.js";
|
|
10
10
|
import {
|
|
11
11
|
AgentFsRequestError2,
|
|
12
12
|
agentFsRequest2,
|
|
13
13
|
resolveAgentFsServiceCredentials2,
|
|
14
14
|
init_agent_fs_provision
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-930zbczq.js";
|
|
16
16
|
import {
|
|
17
17
|
applyFileChange,
|
|
18
18
|
init_objects
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-jgq9xptq.js";
|
|
20
20
|
import {
|
|
21
21
|
FilesError,
|
|
22
22
|
init_provider,
|
|
@@ -26,12 +26,12 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
getPublicMcpBaseUrl,
|
|
28
28
|
init_constants3
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-466jjrwe.js";
|
|
30
30
|
import {
|
|
31
31
|
scrubSecrets,
|
|
32
32
|
registerVolatileSecret,
|
|
33
33
|
init_secret_scrubber
|
|
34
|
-
} from "./cli-
|
|
34
|
+
} from "./cli-r9d2tya0.js";
|
|
35
35
|
import {
|
|
36
36
|
__esm
|
|
37
37
|
} from "./cli-242037k3.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
resolveCredential,
|
|
7
7
|
resolveCredentials,
|
|
8
8
|
init_credentials
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-91amj3md.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-wd7b5hgc.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-r9d2tya0.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
39
|
} from "./cli-242037k3.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
persistCodexOAuth,
|
|
3
3
|
getValidCodexOAuth,
|
|
4
4
|
init_storage
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-39t9d248.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-wd7b5hgc.js";
|
|
81
81
|
import {
|
|
82
82
|
__export,
|
|
83
83
|
__esm
|
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
getResolvedConfig2,
|
|
7
7
|
getAllUsers2,
|
|
8
8
|
init_db4
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-krk8y8c7.js";
|
|
10
10
|
import {
|
|
11
11
|
getUserGrant2,
|
|
12
12
|
init_rbac_roles
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-3wsabyt0.js";
|
|
14
14
|
import {
|
|
15
15
|
scrubSecrets,
|
|
16
16
|
init_secret_scrubber
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-r9d2tya0.js";
|
|
18
18
|
import {
|
|
19
19
|
__esm
|
|
20
20
|
} from "./cli-242037k3.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
materializeClaudeMd,
|
|
3
3
|
stopClaudeMd
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-9j1t3kf6.js";
|
|
5
5
|
import {
|
|
6
6
|
summarizeSession
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-7w1fs01q.js";
|
|
8
8
|
import {
|
|
9
9
|
contextBoundNoteThreshold,
|
|
10
10
|
injectClaimedContextBoundNote
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-r495stwd.js";
|
|
12
12
|
import {
|
|
13
13
|
canonicalToolName,
|
|
14
14
|
canonicalArgs,
|
|
15
15
|
rawArgsFromCanonical,
|
|
16
16
|
runNativePre,
|
|
17
17
|
runNativePost
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-7g5qj2ca.js";
|
|
19
19
|
import {
|
|
20
20
|
guardGhPrBody,
|
|
21
21
|
guardGhPrRoom
|
|
@@ -44,12 +44,12 @@ import {
|
|
|
44
44
|
warnProfileFileTooLarge,
|
|
45
45
|
buildIndependentIdentityPayloads,
|
|
46
46
|
init_profile_sync
|
|
47
|
-
} from "./cli-
|
|
47
|
+
} from "./cli-wym6rxgt.js";
|
|
48
48
|
import {
|
|
49
49
|
MAX_PROFILE_FILE_LENGTH,
|
|
50
50
|
getMcpBaseUrl,
|
|
51
51
|
init_constants3
|
|
52
|
-
} from "./cli-
|
|
52
|
+
} from "./cli-466jjrwe.js";
|
|
53
53
|
import {
|
|
54
54
|
isSessionSummarySkipped,
|
|
55
55
|
init_env_flag
|
|
@@ -57,11 +57,11 @@ import {
|
|
|
57
57
|
import {
|
|
58
58
|
init_package,
|
|
59
59
|
package_default
|
|
60
|
-
} from "./cli-
|
|
60
|
+
} from "./cli-shyhb4t5.js";
|
|
61
61
|
import {
|
|
62
62
|
scrubSecrets,
|
|
63
63
|
init_secret_scrubber
|
|
64
|
-
} from "./cli-
|
|
64
|
+
} from "./cli-r9d2tya0.js";
|
|
65
65
|
|
|
66
66
|
// src/hooks/hook.ts
|
|
67
67
|
init_package();
|
|
@@ -78,7 +78,7 @@ var TOOLS_MD_PATH = "/workspace/TOOLS.md";
|
|
|
78
78
|
var HEARTBEAT_MD_PATH = "/workspace/HEARTBEAT.md";
|
|
79
79
|
var SETUP_SCRIPT_PATH = "/workspace/start-up.sh";
|
|
80
80
|
async function loadHookMcpConfig(projectDir, workspaceDir = "/workspace") {
|
|
81
|
-
for (const configDir of new Set([
|
|
81
|
+
for (const configDir of new Set([workspaceDir, projectDir])) {
|
|
82
82
|
try {
|
|
83
83
|
const mcpFile = Bun.file(`${configDir}/.mcp.json`);
|
|
84
84
|
if (!await mcpFile.exists())
|
|
@@ -320,7 +320,7 @@ async function runSessionSummaryFromStdin() {
|
|
|
320
320
|
}
|
|
321
321
|
async function handleHook() {
|
|
322
322
|
const projectDir = process.env.CLAUDE_PROJECT_DIR || process.cwd();
|
|
323
|
-
const mcpConfig = await loadHookMcpConfig(projectDir);
|
|
323
|
+
const mcpConfig = await loadHookMcpConfig(projectDir, process.env.HOOK_WORKSPACE_DIR);
|
|
324
324
|
let msg;
|
|
325
325
|
try {
|
|
326
326
|
msg = await Bun.stdin.json();
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
claudeMdLineageOf,
|
|
14
14
|
planClaudeMdSync,
|
|
15
15
|
init_profile_sync
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-wym6rxgt.js";
|
|
17
17
|
import {
|
|
18
18
|
scrubSecrets,
|
|
19
19
|
init_secret_scrubber
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-r9d2tya0.js";
|
|
21
21
|
|
|
22
22
|
// src/commands/claude-md-session.ts
|
|
23
23
|
init_file_lock();
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
resolveConfigValueOrThrow,
|
|
11
11
|
resolveHeadersOrThrow,
|
|
12
12
|
FileAuthStorageBackend
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-2414h5r9.js";
|
|
14
14
|
import {
|
|
15
15
|
oauthSuccessHtml,
|
|
16
16
|
oauthErrorHtml,
|
|
17
17
|
init_oauth_page
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-91amj3md.js";
|
|
19
19
|
import {
|
|
20
20
|
__toESM
|
|
21
21
|
} from "./cli-242037k3.js";
|