@desplega.ai/agent-swarm 2.14.1 → 2.14.2
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-7jv7w8jh.js → acp-adapter-q1vz4hh2.js} +8 -8
- package/dist/{acp-targets-0ebmg3et.js → acp-targets-d44eerh4.js} +7 -7
- package/dist/{actions-0ds9dx6c.js → actions-z4k4bvss.js} +27 -27
- package/dist/{agent-fs-provision-zpbxa9jc.js → agent-fs-provision-aan1cgpx.js} +4 -4
- package/dist/{amp-adapter-awh5nn7a.js → amp-adapter-wac3py0p.js} +1 -1
- package/dist/{anthropic-messages-gtgp9r85.js → anthropic-messages-njt2r5m4.js} +16 -15
- package/dist/{app-nzejkvpp.js → app-wax6qz5e.js} +9 -9
- package/dist/{approval-notifications-hbqtb2w3.js → approval-notifications-6fvkhnma.js} +10 -10
- package/dist/{assistant-1paft129.js → assistant-e8fe08zx.js} +25 -25
- package/dist/{azure-openai-responses-e76k86gf.js → azure-openai-responses-6ewf9rwp.js} +9 -9
- package/dist/{boot-args-schema-zs435mfx.js → boot-args-schema-rv97cmnt.js} +1 -1
- package/dist/{boot-reembed-91qrd4mz.js → boot-reembed-bcn7frk9.js} +1 -1
- package/dist/{boot-reembed-7xq2qgg4.js → boot-reembed-xakrdy6y.js} +1 -1
- package/dist/{boot-scrub-sweep-3h5xscw6.js → boot-scrub-sweep-20t8akhf.js} +2 -2
- package/dist/{boot-seeds-xkxqa8zc.js → boot-seeds-48rr6r29.js} +4 -4
- package/dist/{boxd-464x3w4m.js → boxd-tjpxwecx.js} +2 -2
- package/dist/{claude-adapter-6d8eyf2f.js → claude-adapter-0wzwntrj.js} +8 -8
- package/dist/{claude-managed-adapter-jzxcaf9m.js → claude-managed-adapter-4xcgt46w.js} +2 -2
- package/dist/{claude-managed-setup-5fcx0qh3.js → claude-managed-setup-91cyktw7.js} +5 -5
- package/dist/{claude-sdk-session-11vhz1hc.js → claude-sdk-session-ngj4dce5.js} +9658 -9634
- package/dist/{cli-hamdfjtx.js → cli-021hrewp.js} +1 -1
- package/dist/{cli-pgdqhdkw.js → cli-0kyjrbaa.js} +2 -2
- package/dist/{cli-132h67ps.js → cli-0nz04gqv.js} +48 -48
- package/dist/{cli-6a77m17n.js → cli-0rrft7s3.js} +2 -2
- package/dist/{cli-z0effej1.js → cli-1d9q7qrn.js} +5 -5
- package/dist/{cli-tdd9dvw6.js → cli-1t5vhrpv.js} +1 -1
- package/dist/{cli-zyf288rw.js → cli-2ja7eadd.js} +1 -1
- package/dist/{cli-k9m8fckz.js → cli-3ffzr65w.js} +4 -4
- package/dist/{cli-02ba8qx5.js → cli-3kdgm393.js} +4 -4
- package/dist/{cli-hh5m39pt.js → cli-3vc518cw.js} +1 -1
- package/dist/{cli-5pyes68e.js → cli-5188hq0a.js} +8 -8
- package/dist/{cli-zcghfsdg.js → cli-53gt8wfv.js} +1 -1
- package/dist/{cli-5t00r6c9.js → cli-5njmmmer.js} +2 -2
- package/dist/{cli-etykr11s.js → cli-5rw7nt99.js} +1 -1
- package/dist/{cli-6c61yjwy.js → cli-5xx353cy.js} +7554 -1534
- package/dist/{cli-by7s3n4p.js → cli-65k149j5.js} +2 -2
- package/dist/{cli-1e13gvfn.js → cli-6zpn5hmp.js} +11 -11
- package/dist/{cli-rb1z91g8.js → cli-7dpdq7yh.js} +1230 -540
- package/dist/{cli-3bagv8rt.js → cli-7wwewkf4.js} +1 -1
- package/dist/{cli-288k5ep1.js → cli-83hynhes.js} +15 -11
- package/dist/{cli-v84kb7af.js → cli-8ee7xt75.js} +11 -11
- package/dist/{cli-v3jxx8dv.js → cli-8ef94zm2.js} +2 -2
- package/dist/{cli-9fvk9mv8.js → cli-8gr1bg9t.js} +1 -1
- package/dist/{cli-vrb8pvrf.js → cli-9j1qcs0b.js} +6 -6
- package/dist/{cli-0dkpdvnn.js → cli-9mvfvggt.js} +5 -5
- package/dist/{cli-3bcsc3m7.js → cli-an8bpy60.js} +1 -1
- package/dist/{cli-6yhjqd6k.js → cli-azptj8xe.js} +810 -184
- package/dist/{cli-3a3hm1z8.js → cli-c0rt16vk.js} +2 -2
- package/dist/{cli-byzq8xht.js → cli-c6vhcknq.js} +6 -6
- package/dist/{cli-eaqxkeq0.js → cli-cczffwak.js} +8 -8
- package/dist/{cli-83kf2y60.js → cli-cgmka83w.js} +6 -6
- package/dist/{cli-5xjdft4s.js → cli-d13qgcct.js} +207 -142
- package/dist/{cli-k3facve0.js → cli-d5nvy1jy.js} +1 -1
- package/dist/{cli-zvsy4abb.js → cli-dev6f0px.js} +3 -3
- package/dist/{cli-e1wprqnd.js → cli-dzhht0vq.js} +2 -2
- package/dist/{cli-zdkcp8p0.js → cli-e13kbyq0.js} +1 -1
- package/dist/{cli-f07sgaax.js → cli-e2k0ej0d.js} +2 -2
- package/dist/{cli-dt931hb8.js → cli-ek8b88kv.js} +21 -21
- package/dist/{cli-20mkgwev.js → cli-ertcjw6z.js} +249 -19
- package/dist/{cli-0qyfna7a.js → cli-f3ta4e67.js} +4 -4
- package/dist/{cli-6xrbpj5j.js → cli-f4xv7s0t.js} +4 -4
- package/dist/{cli-d1zkys4j.js → cli-fdam1t9b.js} +29 -13
- package/dist/{cli-spfz393q.js → cli-feh37wgs.js} +598 -219
- package/dist/{cli-ebqx630g.js → cli-fjzjtqna.js} +35 -18
- package/dist/{cli-zgsd2w2k.js → cli-fs9t2m2k.js} +16 -16
- package/dist/{cli-trvtxwzt.js → cli-g03x26q6.js} +2 -2
- package/dist/{cli-0mq8kxfx.js → cli-gnkzh8ed.js} +3 -3
- package/dist/{cli-phantfg3.js → cli-gy0r7gb8.js} +40 -15
- package/dist/{cli-wsh5vfa7.js → cli-h364asjc.js} +2 -2
- package/dist/{cli-3ktfe5jx.js → cli-h3xcfp4c.js} +22 -7
- package/dist/{cli-976m0zcw.js → cli-h8k5801a.js} +49 -13
- package/dist/{cli-727sq1f9.js → cli-h96yp7xv.js} +2 -2
- package/dist/{cli-ytgtqsy9.js → cli-hab0bvrh.js} +1 -1
- package/dist/{cli-7dwsn9y5.js → cli-j3wqt73b.js} +4 -4
- package/dist/{cli-8kemtj1r.js → cli-jfgaz10x.js} +7 -7
- package/dist/{cli-wtwe8vng.js → cli-jrhvywah.js} +25 -24
- package/dist/{cli-tjrrabez.js → cli-jrxt5j0n.js} +3 -3
- package/dist/{cli-7b7rxz22.js → cli-jw7n9pct.js} +5 -2
- package/dist/{cli-k791mabe.js → cli-k9kfck3s.js} +5 -5
- package/dist/{cli-44r66df2.js → cli-kkwq5b12.js} +1 -1
- package/dist/{cli-e9p9h14n.js → cli-nc842kc9.js} +4 -4
- package/dist/{cli-3179w2rz.js → cli-nmj4phcg.js} +1 -1
- package/dist/{cli-ny8f5g7t.js → cli-praaw1wh.js} +1 -1
- package/dist/{cli-j8fmn3wv.js → cli-q44p4869.js} +7 -7
- package/dist/{cli-sq32dgfe.js → cli-q58qt9dw.js} +237 -57
- package/dist/{cli-2n7qdqfv.js → cli-qqz5z36e.js} +2 -2
- package/dist/{cli-b70cpf8f.js → cli-r7rpy2xz.js} +1 -1
- package/dist/{cli-1hj68b3h.js → cli-rcqgr0hs.js} +1 -1
- package/dist/{cli-ph95yejc.js → cli-rjc464jg.js} +2 -2
- package/dist/{cli-967jrz7j.js → cli-rw3m83j4.js} +15 -15
- package/dist/{cli-0vxbrxr3.js → cli-rwcj6wt3.js} +304 -19
- package/dist/{cli-yvnnyjxm.js → cli-ryn4y478.js} +1 -1
- package/dist/{cli-3g0vbq46.js → cli-s48k2rzx.js} +3 -3
- package/dist/{cli-98sea4d9.js → cli-s90wcbk9.js} +2 -2
- package/dist/{cli-e2wzzw17.js → cli-svcy72s5.js} +1 -1
- package/dist/{cli-643skca1.js → cli-swtwbg85.js} +17 -17
- package/dist/{cli-4y2bekkn.js → cli-t1bqpzgz.js} +2 -2
- package/dist/{cli-zmfs06hg.js → cli-t5jbjq61.js} +3 -3
- package/dist/{cli-mz7ycqn8.js → cli-td2h8zej.js} +6 -6
- package/dist/{cli-9t7syepg.js → cli-ttatvwn6.js} +1 -1
- package/dist/{cli-v1rhq77v.js → cli-txxcf9s1.js} +6 -6
- package/dist/{cli-q4z9s6zs.js → cli-v7az4d1g.js} +2 -2
- package/dist/cli-vqt44168.js +14 -0
- package/dist/{cli-tkrp183j.js → cli-vs9h3vw2.js} +5 -5
- package/dist/{cli-7abeph0b.js → cli-w2fg8kjc.js} +3 -3
- package/dist/{cli-sf5kp73f.js → cli-wz7qj1jy.js} +12 -12
- package/dist/{cli-ww8wxfzx.js → cli-x5t54ytt.js} +2 -2
- package/dist/{cli-nmdy8bzf.js → cli-xphbv66z.js} +1 -1
- package/dist/{cli-redtbppc.js → cli-xxgqn93n.js} +3753 -1186
- package/dist/{cli-s7bfz1ye.js → cli-z209g721.js} +109 -85
- package/dist/{cli-vp2ksaq9.js → cli-z5andw8k.js} +1 -1
- package/dist/{cli-xmc2nrtv.js → cli-zr2sc5tr.js} +1 -1
- package/dist/{cli-z0c98h7h.js → cli-zrm0610v.js} +61 -54
- package/dist/cli.js +41 -40
- package/dist/{cloudflare-workers-ai-system-one-w3m0fbf8.js → cloudflare-workers-ai-system-one-kb0tq22h.js} +2 -2
- package/dist/{codex-adapter-seht4h9t.js → codex-adapter-0c1ynrmt.js} +5 -5
- package/dist/{codex-session-runner-tq95x3gq.js → codex-session-runner-z4t9z7yy.js} +5 -5
- package/dist/{commands-0awwqxq5.js → commands-h0jxqdhk.js} +3 -3
- package/dist/{controller-hgjx521c.js → controller-4ygy66hv.js} +3 -3
- package/dist/{controllers-connect-j4kdmhfj.js → controllers-connect-ynbvv8pv.js} +26 -26
- package/dist/core-mj9fzrcm.js +41 -0
- package/dist/{cursor-adapter-0rg8wk6j.js → cursor-adapter-9e4d6658.js} +1 -1
- package/dist/{db-8xs2js3s.js → db-bg0hxjq1.js} +3 -3
- package/dist/{db-dd6hj211.js → db-q12gmpns.js} +2 -2
- package/dist/{devtools-b8qts77k.js → devtools-t8my9az6.js} +1 -1
- package/dist/{dispatcher-v7drd034.js → dispatcher-v5dbfscq.js} +23 -23
- package/dist/{dsh-adapter-ah8npj2x.js → dsh-adapter-z3fneea1.js} +1 -1
- package/dist/{e2b-z1g7vpz6.js → e2b-k3kb8b52.js} +3 -3
- package/dist/{e2b-hg80w0qr.js → e2b-p269awh6.js} +4 -4
- package/dist/{easter-egg-3d-8n4w3s9k.js → easter-egg-3d-y49v5z90.js} +1 -1
- package/dist/{embedding-space-0p921zt3.js → embedding-space-mjt5ksq0.js} +5 -5
- package/dist/{embeddings-9s7kbrc6.js → embeddings-td9hgnc5.js} +1 -1
- package/dist/{execute-x0fy9j0m.js → execute-z8nc8bba.js} +1 -1
- package/dist/{external-channel-ktfvn29c.js → external-channel-pjenc2ag.js} +2 -2
- package/dist/{fx-adapter-15vjxvgm.js → fx-adapter-pjeztp0n.js} +9 -9
- package/dist/getMachineId-bsd-hjs2tbdp.js +36 -0
- package/dist/getMachineId-darwin-kzbvr8s3.js +40 -0
- package/dist/getMachineId-linux-embmcq2c.js +26 -0
- package/dist/getMachineId-unsupported-jvznc6d4.js +20 -0
- package/dist/getMachineId-win-qr8z0b13.js +36 -0
- package/dist/{google-generative-ai-nzndg246.js → google-generative-ai-tf3w7557.js} +11 -16
- package/dist/{google-vertex-ragh3nnw.js → google-vertex-9pj87bd8.js} +15 -17
- package/dist/{grok-adapter-77httan0.js → grok-adapter-davbhx8t.js} +9 -9
- package/dist/handlers-rf130hnp.js +39 -0
- package/dist/{heartbeat-5yaj6dym.js → heartbeat-9hmvqxk0.js} +26 -26
- package/dist/{hook-c99nycyh.js → hook-0b1jqs2t.js} +6 -6
- package/dist/{hook-2jttae8s.js → hook-1n0sjv8p.js} +7 -7
- package/dist/{http-7y9dbfrr.js → http-vykejyjx.js} +412 -183
- package/dist/{index-tcegcysh.js → index-07d66kdm.js} +5 -5
- package/dist/{index-fqf82sbk.js → index-0hgjxqz8.js} +1 -1
- package/dist/{index-t274qhhs.js → index-0nt39qwy.js} +6 -6
- package/dist/{index-8p03vx1h.js → index-2xbxq71g.js} +8 -8
- package/dist/{index-jvfp0j47.js → index-3j8hffkb.js} +12038 -7667
- package/dist/index-8w09aggw.js +43 -0
- package/dist/{index-xhp7yp3t.js → index-b3wy4jzs.js} +1 -1
- package/dist/{index-6g9rdcrj.js → index-dt9vr7tb.js} +162 -57
- package/dist/{index-cw8nxnba.js → index-ezfas4jj.js} +1912 -346
- package/dist/index-g2jntx15.js +38 -0
- package/dist/{index-h9xnzfhx.js → index-j6sqtb83.js} +101 -72
- package/dist/{index-m6g8q65g.js → index-na0tczq0.js} +9268 -10220
- package/dist/{index-tn1m3q9b.js → index-p9dkwhwe.js} +3 -3
- package/dist/{index-g7rthzrv.js → index-pe2etczf.js} +8 -8
- package/dist/index-qffex5k4.js +41 -0
- package/dist/index-qrp11tp9.js +4 -0
- package/dist/{index-t4n9z755.js → index-ryyrg0d8.js} +406 -317
- package/dist/{index-t17p395x.js → index-sf06w57a.js} +13 -13
- package/dist/{index-qxcfv8vq.js → index-vybnwd5v.js} +1 -1
- package/dist/{index-dm7c6hw5.js → index-wsf1f5pe.js} +27 -27
- package/dist/{keepalive-7eyb8y4t.js → keepalive-86z0tzzf.js} +3 -3
- package/dist/lead-edmwagkn.js +81 -0
- package/dist/{llama-cpp-classify-yvb8vh7w.js → llama-cpp-classify-wd7htn1x.js} +2 -2
- package/dist/{maintenance-tdrd8nwv.js → maintenance-19h6tfwz.js} +1 -1
- package/dist/{mistral-conversations-w4bncwbt.js → mistral-conversations-txjmc64f.js} +7 -7
- package/dist/{module-ES6BEMUI-6htewwha.js → module-ES6BEMUI-44w9s1dx.js} +4 -4
- package/dist/{multipart-parser-xevcstye.js → multipart-parser-xqbgwrav.js} +1 -1
- package/dist/{oauth-refresh-sweep-f4c7g37h.js → oauth-refresh-sweep-6nmyrv32.js} +2 -2
- package/dist/{object-webhooks-p190rdxp.js → object-webhooks-2kynmdf8.js} +7 -7
- package/dist/{onboard-56h4sks6.js → onboard-zbpm96mn.js} +5 -5
- package/dist/{openai-codex-responses-z2h941b8.js → openai-codex-responses-6ckhys6r.js} +31 -25
- package/dist/{openai-completions-5bxdkeg9.js → openai-completions-c9dsq9jh.js} +17 -17
- package/dist/{openai-decisions-fyq1p9f9.js → openai-decisions-9vzvv10c.js} +2 -2
- package/dist/{openai-responses-dzf3e8r5.js → openai-responses-bhfmt9sa.js} +9 -9
- package/dist/{opencode-adapter-xg3yxfr0.js → opencode-adapter-fyqcbdra.js} +5 -5
- package/dist/{openrouter-images-0jj12a2q.js → openrouter-images-hkk5p580.js} +3 -3
- package/dist/otel-impl-txa20w1h.js +11178 -0
- package/dist/{pending-xgv316w0.js → pending-4rxawq8y.js} +24 -24
- package/dist/{pi-messages-zk3g4esn.js → pi-messages-py3f96p7.js} +5 -5
- package/dist/{pi-mono-adapter-txe0syzb.js → pi-mono-adapter-rnsed1xa.js} +14 -14
- package/dist/{pricing-refresh-041zpyhf.js → pricing-refresh-4314hwtw.js} +2 -2
- package/dist/{rbac-roles-8f3jbcaf.js → rbac-roles-fztcm8ky.js} +2 -2
- package/dist/{rbac-roles-cw7rrw5b.js → rbac-roles-msqt7a3k.js} +3 -3
- package/dist/{render-v2-2ezw4mzt.js → render-v2-w49wtecg.js} +9 -9
- package/dist/{resume-p14wdx8m.js → resume-gwgtp4m3.js} +12 -12
- package/dist/{runtime-he7c9g1r.js → runtime-kkebz8yq.js} +1 -1
- package/dist/{session-access-8jvq86fj.js → session-access-kjb19m2w.js} +5 -5
- package/dist/{session-source-backfill-6fe3hcgb.js → session-source-backfill-805p4wqr.js} +2 -2
- package/dist/{setup-6v0bn4r1.js → setup-q8y168c8.js} +3 -3
- package/dist/thread-buffer-yqbffd0t.js +40 -0
- package/dist/{tree-visibility-g1a8ff4r.js → tree-visibility-qj323994.js} +2 -2
- package/dist/{typesafe-system-one-qkvkgrcz.js → typesafe-system-one-avrdb4zm.js} +2 -2
- package/dist/{user-merge-jobs-vjsps179.js → user-merge-jobs-qfp40f2s.js} +3 -3
- package/dist/{virtual-modules-mreda4fp.js → virtual-modules-nzxegw0a.js} +7 -7
- package/dist/{work-objects-hfw15e35.js → work-objects-hs089w60.js} +25 -25
- package/dist/{worker-follow-up-gbaz2ydz.js → worker-follow-up-zwgg20sr.js} +23 -23
- package/dist/worker-kg4g7rnx.js +81 -0
- package/openapi.json +3 -3
- package/package.json +25 -24
- package/plugin/commands/create-pr.md +5 -2
- package/plugin/pi-skills/create-pr/SKILL.md +5 -2
- package/src/apps/sync.ts +7 -2
- package/src/be/db/workflow-runs.ts +12 -8
- package/src/be/db.ts +4 -1
- package/src/be/migrations/367_workflow_run_principal.sql +5 -0
- package/src/be/swarm-config-guard.ts +3 -0
- package/src/be/task-auto-title-listener.ts +2 -2
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/extensions/post-bridge.ts +27 -28
- package/src/http/active-sessions.ts +7 -0
- package/src/http/agents.ts +7 -0
- package/src/http/api-keys.ts +7 -0
- package/src/http/approval-requests.ts +4 -0
- package/src/http/budgets.ts +2 -0
- package/src/http/codex-oauth-keep-warm.ts +6 -2
- package/src/http/config.ts +1 -0
- package/src/http/context.ts +4 -0
- package/src/http/db-query.ts +3 -0
- package/src/http/events.ts +2 -0
- package/src/http/fs.ts +1 -0
- package/src/http/integrations.ts +4 -0
- package/src/http/mcp-bridge.ts +1 -0
- package/src/http/memory.ts +3 -0
- package/src/http/metrics.ts +16 -0
- package/src/http/oauth-locks.ts +8 -0
- package/src/http/page-proxy.ts +16 -0
- package/src/http/pages.ts +9 -0
- package/src/http/poll.ts +1 -0
- package/src/http/pricing.ts +2 -0
- package/src/http/prompt-templates.ts +34 -0
- package/src/http/schedules.ts +10 -0
- package/src/http/script-runs.ts +24 -0
- package/src/http/scripts.ts +1 -0
- package/src/http/session-data.ts +2 -0
- package/src/http/status.ts +1 -0
- package/src/http/tasks.ts +17 -0
- package/src/http/trackers/jira.ts +2 -0
- package/src/http/trackers/linear.ts +4 -0
- package/src/http/users.ts +18 -0
- package/src/http/webhooks.ts +12 -0
- package/src/http/workflow-events.ts +26 -6
- package/src/http/workflows.ts +40 -0
- package/src/http/x.ts +4 -0
- package/src/linear/app.ts +3 -2
- package/src/linear/client.ts +5 -1
- package/src/linear/host.ts +40 -0
- package/src/linear/oauth.ts +3 -2
- package/src/linear/sync.ts +4 -3
- package/src/otel-impl.ts +8 -5
- package/src/providers/amp-adapter.ts +1 -1
- package/src/rbac/legacy-policy.ts +2 -0
- package/src/rbac/permissions.ts +5 -0
- package/src/scripts-runtime/quickjs-compat.ts +44 -10
- package/src/slack/render-v2.ts +50 -23
- package/src/slack/reviewed-deliverables.ts +251 -0
- package/src/tests/check-pr-body.test.ts +408 -93
- package/src/tests/compose-dev-object-store.test.ts +13 -0
- package/src/tests/compose-example-object-store.test.ts +67 -0
- package/src/tests/db-query.test.ts +8 -4
- package/src/tests/e2b-dispatch.test.ts +7 -1
- package/src/tests/otel-event-loop-and-logs.test.ts +1 -1
- package/src/tests/quickjs-compat.test.ts +40 -4
- package/src/tests/rbac-route-verbs-e2e.test.ts +142 -0
- package/src/tests/script-connections.test.ts +2 -0
- package/src/tests/slack-render-v2.test.ts +52 -8
- package/src/tests/workflow-definition-pinning.test.ts +2 -0
- package/src/tests/workflow-hitl-routing.test.ts +67 -5
- package/src/tests/workflow-replay.test.ts +13 -1
- package/src/tests/x402-client.test.ts +82 -0
- package/src/tools/memory-rate.ts +2 -2
- package/src/tools/prompt-templates/delete.ts +22 -1
- package/src/tools/prompt-templates/set.ts +15 -1
- package/src/utils/constants.ts +5 -4
- package/src/utils/task-citations.ts +11 -0
- package/src/workflows/engine.ts +5 -0
- package/src/workflows/executors/sub-workflow.ts +5 -7
- package/src/workflows/executors/swarm-script.ts +4 -5
- package/src/workflows/resume.ts +21 -4
- package/src/workflows/run-principal.ts +51 -0
- package/src/x402/client.ts +38 -17
- package/templates/skills/code-quality/content.md +1 -1
- package/templates/skills/pages/content.md +36 -12
- package/templates/skills/swarm-docs/content.md +46 -41
- package/templates/skills/swarm-scripts/SKILL.md +1 -1
- package/templates/skills/swarm-scripts/content.md +1 -1
- package/dist/cli-547fsc36.js +0 -15
- package/dist/cli-dr6x9qdk.js +0 -15
- package/dist/cli-h5cveb69.js +0 -15
- package/dist/cli-jngvszex.js +0 -1514
- package/dist/cli-p0g0erm9.js +0 -15
- package/dist/cli-ph1jce1b.js +0 -16
- package/dist/cli-vxxdf2ma.js +0 -15
- package/dist/cli-x80zagf5.js +0 -15
- package/dist/core-8fw1gwg7.js +0 -41
- package/dist/getMachineId-bsd-2rd3pnz7.js +0 -36
- package/dist/getMachineId-bsd-3p48mkt1.js +0 -36
- package/dist/getMachineId-bsd-bk6tmeen.js +0 -36
- package/dist/getMachineId-bsd-pssqgwmm.js +0 -37
- package/dist/getMachineId-bsd-v218x3xd.js +0 -36
- package/dist/getMachineId-bsd-wbxcazef.js +0 -36
- package/dist/getMachineId-bsd-x0942pbz.js +0 -36
- package/dist/getMachineId-darwin-5qsy4qcg.js +0 -36
- package/dist/getMachineId-darwin-6v7zsshx.js +0 -37
- package/dist/getMachineId-darwin-fcc3fjag.js +0 -36
- package/dist/getMachineId-darwin-pg84hftj.js +0 -36
- package/dist/getMachineId-darwin-tyyevt26.js +0 -36
- package/dist/getMachineId-darwin-wagmbf0d.js +0 -36
- package/dist/getMachineId-darwin-zvkmwr3y.js +0 -36
- package/dist/getMachineId-linux-2ncg1epd.js +0 -29
- package/dist/getMachineId-linux-2tmt2ptc.js +0 -29
- package/dist/getMachineId-linux-empwyp2y.js +0 -29
- package/dist/getMachineId-linux-fanqd45b.js +0 -29
- package/dist/getMachineId-linux-h6fyga0x.js +0 -29
- package/dist/getMachineId-linux-tbhgz1k9.js +0 -29
- package/dist/getMachineId-linux-zrbyw7dt.js +0 -29
- package/dist/getMachineId-unsupported-29g9dkgv.js +0 -19
- package/dist/getMachineId-unsupported-8xfq8djv.js +0 -19
- package/dist/getMachineId-unsupported-8y9cag1p.js +0 -19
- package/dist/getMachineId-unsupported-a6sjrm02.js +0 -19
- package/dist/getMachineId-unsupported-bp3w7ds0.js +0 -19
- package/dist/getMachineId-unsupported-sj6fk8sw.js +0 -19
- package/dist/getMachineId-unsupported-v0p5gdxp.js +0 -19
- package/dist/getMachineId-win-hc996p0x.js +0 -38
- package/dist/getMachineId-win-msq9ad87.js +0 -38
- package/dist/getMachineId-win-tajyqwd6.js +0 -38
- package/dist/getMachineId-win-tzc163da.js +0 -38
- package/dist/getMachineId-win-xdaa0mgq.js +0 -38
- package/dist/getMachineId-win-xk6p98m5.js +0 -38
- package/dist/getMachineId-win-xtk658fm.js +0 -38
- package/dist/handlers-c1jp5b6h.js +0 -39
- package/dist/index-7dwh9kxh.js +0 -41
- package/dist/index-wp9tarbt.js +0 -43
- package/dist/index-z6np2405.js +0 -38
- package/dist/lead-50cgn8s1.js +0 -81
- package/dist/otel-impl-kepzgm4n.js +0 -55386
- package/dist/thread-buffer-8860v1ta.js +0 -40
- package/dist/worker-hkm8ftqp.js +0 -81
- /package/dist/{node-gbx1t3pa.js → node-q4628t0b.js} +0 -0
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
init_constrained_sampling,
|
|
17
17
|
transformMessages,
|
|
18
18
|
init_transform_messages
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-jw7n9pct.js";
|
|
20
20
|
import {
|
|
21
21
|
sanitizeSurrogates,
|
|
22
22
|
init_sanitize_unicode
|
|
@@ -27,12 +27,16 @@ import {
|
|
|
27
27
|
init_transcript,
|
|
28
28
|
calculateCost,
|
|
29
29
|
init_models
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-8gr1bg9t.js";
|
|
31
|
+
import {
|
|
32
|
+
appendAssistantMessageDiagnostic,
|
|
33
|
+
init_diagnostics
|
|
34
|
+
} from "./cli-qzm2fm67.js";
|
|
31
35
|
import {
|
|
32
36
|
getSystemMessageText,
|
|
33
37
|
renderSystemMessageUpdate,
|
|
34
38
|
init_text
|
|
35
|
-
} from "./cli-
|
|
39
|
+
} from "./cli-ttatvwn6.js";
|
|
36
40
|
import {
|
|
37
41
|
__esm
|
|
38
42
|
} from "./cli-242037k3.js";
|
|
@@ -164,7 +168,6 @@ function convertResponsesMessages(model, context, allowedToolCallProviders, opti
|
|
|
164
168
|
tools: convertResponsesTools(tools, { ...options?.toolOptions, toolSearchResult: true })
|
|
165
169
|
});
|
|
166
170
|
};
|
|
167
|
-
const includeInitialSystemMessage = options?.includeSystemPrompt ?? true;
|
|
168
171
|
const pushConfigurationUpdate = (effort) => {
|
|
169
172
|
messages.push({
|
|
170
173
|
type: "configuration_update",
|
|
@@ -182,22 +185,20 @@ function convertResponsesMessages(model, context, allowedToolCallProviders, opti
|
|
|
182
185
|
const anchorsToolChanges = systemIndex++ >= transcriptTools.foldedSystemMessages;
|
|
183
186
|
if (anchorsToolChanges)
|
|
184
187
|
appendSystemToolAdditions(msg, `system:${msgIndex}`);
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
const text = parts.filter((part) => part.length > 0).join(`
|
|
188
|
+
const parts = [isLeadingSystemMessage ? getSystemMessageText(msg) : renderSystemMessageUpdate(msg)];
|
|
189
|
+
if (anchorsToolChanges) {
|
|
190
|
+
const added = new Set((msg.toolsAdded ?? []).map((tool) => tool.name));
|
|
191
|
+
const removed = (msg.toolsRemoved ?? []).map((tool) => tool.name).filter((name) => !added.has(name));
|
|
192
|
+
if (removed.length > 0)
|
|
193
|
+
parts.push(renderToolRemovalNotice(removed));
|
|
194
|
+
for (const name of removed)
|
|
195
|
+
unavailableTools.add(name);
|
|
196
|
+
}
|
|
197
|
+
const text = parts.filter((part) => part.length > 0).join(`
|
|
196
198
|
|
|
197
199
|
`);
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
200
|
+
if (text.length > 0) {
|
|
201
|
+
messages.push({ role: instructionRole, content: sanitizeSurrogates(text) });
|
|
201
202
|
}
|
|
202
203
|
} else if (msg.role === "user") {
|
|
203
204
|
if (typeof msg.content === "string") {
|
|
@@ -465,6 +466,7 @@ async function processResponsesStream(openaiStream, output, stream, model, optio
|
|
|
465
466
|
const finalizeResponse = (response) => {
|
|
466
467
|
sawTerminalResponseEvent = true;
|
|
467
468
|
backfillReasoningSignatures(response.output ?? []);
|
|
469
|
+
appendReasoningRemovals(output, response.input_transformations);
|
|
468
470
|
if (response?.id) {
|
|
469
471
|
output.responseId = response.id;
|
|
470
472
|
}
|
|
@@ -670,6 +672,20 @@ async function processResponsesStream(openaiStream, output, stream, model, optio
|
|
|
670
672
|
}
|
|
671
673
|
}
|
|
672
674
|
}
|
|
675
|
+
function appendReasoningRemovals(output, transformations) {
|
|
676
|
+
if (!Array.isArray(transformations))
|
|
677
|
+
return;
|
|
678
|
+
const removals = transformations.filter((transformation) => transformation?.type === "reasoning" && transformation.action === "removed" && transformation.reason !== "turn_boundary");
|
|
679
|
+
if (removals.length === 0)
|
|
680
|
+
return;
|
|
681
|
+
appendAssistantMessageDiagnostic(output, {
|
|
682
|
+
type: "openai_input_transformations",
|
|
683
|
+
timestamp: Date.now(),
|
|
684
|
+
details: {
|
|
685
|
+
transformations: removals.map(({ type, id, action, reason }) => ({ type, id, action, reason }))
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
}
|
|
673
689
|
function customInput(property, initialInput) {
|
|
674
690
|
const buffer = { input: "", started: false, closed: false };
|
|
675
691
|
return {
|
|
@@ -721,6 +737,7 @@ function mapStopReason(status, incompleteReason) {
|
|
|
721
737
|
}
|
|
722
738
|
var init_openai_responses_shared = __esm(() => {
|
|
723
739
|
init_models();
|
|
740
|
+
init_diagnostics();
|
|
724
741
|
init_hash();
|
|
725
742
|
init_sanitize_unicode();
|
|
726
743
|
init_streaming_json();
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./cli-xd6ntv7x.js";
|
|
6
6
|
import {
|
|
7
7
|
runStopHookSessionSummarySubprocess
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-3ffzr65w.js";
|
|
9
9
|
import {
|
|
10
10
|
RATE_LIMIT_WINDOWS_EVENT,
|
|
11
11
|
redactRateLimitEventLine,
|
|
@@ -16,13 +16,16 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
isHarnessOtelEnabled,
|
|
18
18
|
buildOtelTraceparentEnv
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-w2fg8kjc.js";
|
|
20
20
|
import {
|
|
21
21
|
applyReasoningEffort
|
|
22
22
|
} from "./cli-08gfvs58.js";
|
|
23
23
|
import {
|
|
24
24
|
fetchInstalledMcpServers
|
|
25
25
|
} from "./cli-5y2fvw4z.js";
|
|
26
|
+
import {
|
|
27
|
+
resolveSlashSkillPrompt
|
|
28
|
+
} from "./cli-5j88qqa8.js";
|
|
26
29
|
import {
|
|
27
30
|
CONTEXT_FORMULA,
|
|
28
31
|
getContextWindowSize,
|
|
@@ -30,9 +33,6 @@ import {
|
|
|
30
33
|
clampContextPercent,
|
|
31
34
|
init_context_window
|
|
32
35
|
} from "./cli-fe8he9cy.js";
|
|
33
|
-
import {
|
|
34
|
-
resolveSlashSkillPrompt
|
|
35
|
-
} from "./cli-5j88qqa8.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveClaudeTransport,
|
|
38
38
|
isClaudeBridgeEffective
|
|
@@ -47,18 +47,10 @@ import {
|
|
|
47
47
|
swarmRuntimeInstanceId,
|
|
48
48
|
init_multi_runtime2
|
|
49
49
|
} from "./cli-mdb054w3.js";
|
|
50
|
-
import {
|
|
51
|
-
trace,
|
|
52
|
-
init_dist5
|
|
53
|
-
} from "./cli-0vxbrxr3.js";
|
|
54
50
|
import {
|
|
55
51
|
withFileLock,
|
|
56
52
|
init_file_lock
|
|
57
|
-
} from "./cli-
|
|
58
|
-
import {
|
|
59
|
-
getOpenRouterAttributionHeaders,
|
|
60
|
-
init_openrouter_base_url
|
|
61
|
-
} from "./cli-dfyv0jdy.js";
|
|
53
|
+
} from "./cli-jfgaz10x.js";
|
|
62
54
|
import {
|
|
63
55
|
routeCredentialStatus,
|
|
64
56
|
deriveDefaultRoute,
|
|
@@ -68,6 +60,10 @@ import {
|
|
|
68
60
|
validateClaudeCredentials,
|
|
69
61
|
init_credentials2
|
|
70
62
|
} from "./cli-w81s97bn.js";
|
|
63
|
+
import {
|
|
64
|
+
getOpenRouterAttributionHeaders,
|
|
65
|
+
init_openrouter_base_url
|
|
66
|
+
} from "./cli-dfyv0jdy.js";
|
|
71
67
|
import {
|
|
72
68
|
isEnvFlagEnabled,
|
|
73
69
|
init_env_flag
|
|
@@ -76,10 +72,14 @@ import {
|
|
|
76
72
|
scrubSecrets,
|
|
77
73
|
init_secret_scrubber
|
|
78
74
|
} from "./cli-7qkbab03.js";
|
|
75
|
+
import {
|
|
76
|
+
trace,
|
|
77
|
+
init_dist10
|
|
78
|
+
} from "./cli-rwcj6wt3.js";
|
|
79
79
|
|
|
80
80
|
// src/providers/claude-adapter.ts
|
|
81
81
|
init_src();
|
|
82
|
-
|
|
82
|
+
init_dist10();
|
|
83
83
|
import { execFile } from "node:child_process";
|
|
84
84
|
import { randomUUID } from "node:crypto";
|
|
85
85
|
import {
|
|
@@ -1344,7 +1344,7 @@ class ClaudeAdapter2 {
|
|
|
1344
1344
|
if (transport === "sdk" && isClaudeBridgeEffective(sourceEnv)) {
|
|
1345
1345
|
throw new Error("CLAUDE_TRANSPORT=sdk cannot run with an effective Claude Bridge configuration. Select CLI transport or disable the bridge.");
|
|
1346
1346
|
}
|
|
1347
|
-
const claudeSdk = transport === "sdk" ? await import("./claude-sdk-session-
|
|
1347
|
+
const claudeSdk = transport === "sdk" ? await import("./claude-sdk-session-ngj4dce5.js") : undefined;
|
|
1348
1348
|
claudeSdk?.validateClaudeSdkAdditionalArgs([
|
|
1349
1349
|
...claudeBinaryArgv.slice(1),
|
|
1350
1350
|
...config.additionalArgs ?? []
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
Number2,
|
|
6
6
|
String2,
|
|
7
7
|
completeStructuredWithModel
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-k9kfck3s.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-z209g721.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-zrm0610v.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-5njmmmer.js";
|
|
16
16
|
import {
|
|
17
17
|
applyFileChange,
|
|
18
18
|
init_objects
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-s48k2rzx.js";
|
|
20
20
|
import {
|
|
21
21
|
FilesError,
|
|
22
22
|
init_provider,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
getWorkflowVersions2,
|
|
55
55
|
getMcpServerById2,
|
|
56
56
|
init_db4
|
|
57
|
-
} from "./cli-
|
|
57
|
+
} from "./cli-zrm0610v.js";
|
|
58
58
|
import {
|
|
59
59
|
McpHttpClient,
|
|
60
60
|
init_http_client
|
|
@@ -69,17 +69,17 @@ import {
|
|
|
69
69
|
oauthAppRowToProviderConfig,
|
|
70
70
|
ensureAuthorizationTokenOrThrow,
|
|
71
71
|
init_ensure_token
|
|
72
|
-
} from "./cli-
|
|
72
|
+
} from "./cli-e13kbyq0.js";
|
|
73
73
|
import {
|
|
74
74
|
AGENT_FS_API_KEY_CONFIG,
|
|
75
75
|
init_script_fs,
|
|
76
76
|
resolveAgentFsIdentity,
|
|
77
77
|
init_agent_fs_identity
|
|
78
|
-
} from "./cli-
|
|
78
|
+
} from "./cli-an8bpy60.js";
|
|
79
79
|
import {
|
|
80
80
|
validateDefinition,
|
|
81
81
|
init_definition2
|
|
82
|
-
} from "./cli-
|
|
82
|
+
} from "./cli-h8k5801a.js";
|
|
83
83
|
import {
|
|
84
84
|
getApiKey,
|
|
85
85
|
init_api_key
|
|
@@ -90,13 +90,13 @@ import {
|
|
|
90
90
|
mintScriptRunToken,
|
|
91
91
|
revokeSessionToken,
|
|
92
92
|
init_users
|
|
93
|
-
} from "./cli-
|
|
93
|
+
} from "./cli-praaw1wh.js";
|
|
94
94
|
import {
|
|
95
95
|
defaultAssetKey,
|
|
96
96
|
init_key,
|
|
97
97
|
AppIconSchema,
|
|
98
98
|
init_types5
|
|
99
|
-
} from "./cli-
|
|
99
|
+
} from "./cli-t5jbjq61.js";
|
|
100
100
|
import {
|
|
101
101
|
init_zod
|
|
102
102
|
} from "./cli-96234j5w.js";
|
|
@@ -179759,6 +179759,17 @@ function staticHostClass(hostname) {
|
|
|
179759
179759
|
return isPrivateIPv4(v4.slice(1).map(Number)) ? "private" : null;
|
|
179760
179760
|
return host !== "" && !host.includes(".") ? "single-label" : null;
|
|
179761
179761
|
}
|
|
179762
|
+
function calledMethodName(callee) {
|
|
179763
|
+
const inner = unwrap(callee);
|
|
179764
|
+
if (import_typescript3.default.isPropertyAccessExpression(inner))
|
|
179765
|
+
return inner.name.text;
|
|
179766
|
+
if (import_typescript3.default.isElementAccessExpression(inner)) {
|
|
179767
|
+
const key = unwrap(inner.argumentExpression);
|
|
179768
|
+
if (import_typescript3.default.isStringLiteral(key) || import_typescript3.default.isNoSubstitutionTemplateLiteral(key))
|
|
179769
|
+
return key.text;
|
|
179770
|
+
}
|
|
179771
|
+
return null;
|
|
179772
|
+
}
|
|
179762
179773
|
function fetchCallName(callee) {
|
|
179763
179774
|
const inner = unwrap(callee);
|
|
179764
179775
|
if (import_typescript3.default.isIdentifier(inner)) {
|
|
@@ -179825,14 +179836,22 @@ function literalUrl(arg, resolve) {
|
|
|
179825
179836
|
}
|
|
179826
179837
|
function checkQuickJSCompat(source, options = {}) {
|
|
179827
179838
|
const findings = [];
|
|
179828
|
-
const seen = new
|
|
179839
|
+
const seen = new Map;
|
|
179829
179840
|
const { sourceFile, isLocal, constInitializer } = createScope(source);
|
|
179830
179841
|
const add = (rule, message, node) => {
|
|
179831
|
-
if (seen.has(`${rule}:${message}`))
|
|
179832
|
-
return;
|
|
179833
|
-
seen.add(`${rule}:${message}`);
|
|
179834
179842
|
const line = node ? sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile)).line + 1 : undefined;
|
|
179835
|
-
|
|
179843
|
+
const existing = seen.get(`${rule}:${message}`);
|
|
179844
|
+
if (existing) {
|
|
179845
|
+
if (line === undefined || existing.line === undefined)
|
|
179846
|
+
return;
|
|
179847
|
+
const lines = existing.lines ?? [existing.line];
|
|
179848
|
+
if (lines.at(-1) !== line)
|
|
179849
|
+
existing.lines = [...lines, line];
|
|
179850
|
+
return;
|
|
179851
|
+
}
|
|
179852
|
+
const finding = line === undefined ? { rule, message } : { rule, message, line };
|
|
179853
|
+
seen.set(`${rule}:${message}`, finding);
|
|
179854
|
+
findings.push(finding);
|
|
179836
179855
|
};
|
|
179837
179856
|
if (options.fsMode === "workspace-rw") {
|
|
179838
179857
|
add("workspaceRw", "fsMode workspace-rw is not available under quickjs");
|
|
@@ -179893,8 +179912,8 @@ function checkQuickJSCompat(source, options = {}) {
|
|
|
179893
179912
|
if (import_typescript3.default.isIdentifier(callee) && callee.text === "require" && !isLocal(callee)) {
|
|
179894
179913
|
add("require", "require() is not supported; use an import", node);
|
|
179895
179914
|
}
|
|
179896
|
-
|
|
179897
|
-
|
|
179915
|
+
const method = calledMethodName(callee);
|
|
179916
|
+
if (method !== null) {
|
|
179898
179917
|
if (RESPONSE_BODY_METHODS.has(method) && node.arguments.length === 0) {
|
|
179899
179918
|
add("responseBody", `.${method}() on a fetch Response is not available under quickjs (text() and json() are)`, node);
|
|
179900
179919
|
}
|
|
@@ -179910,9 +179929,15 @@ function checkQuickJSCompat(source, options = {}) {
|
|
|
179910
179929
|
}
|
|
179911
179930
|
function quickJSCompatWarnings(report, label) {
|
|
179912
179931
|
const prefix = label ? `${label}: ` : "";
|
|
179913
|
-
return report.findings.map((finding) =>
|
|
179932
|
+
return report.findings.map((finding) => {
|
|
179933
|
+
const lines = finding.lines ?? (finding.line ? [finding.line] : []);
|
|
179934
|
+
const shown = lines.slice(0, MAX_WARNING_LINES).join(", ");
|
|
179935
|
+
const more = lines.length > MAX_WARNING_LINES ? `, +${lines.length - MAX_WARNING_LINES} more` : "";
|
|
179936
|
+
const where = lines.length === 0 ? "" : `, ${lines.length === 1 ? "line" : "lines"} ${shown}${more}`;
|
|
179937
|
+
return `${prefix}quickjs compat (${finding.rule}${where}): ${finding.message}`;
|
|
179938
|
+
});
|
|
179914
179939
|
}
|
|
179915
|
-
var import_typescript3, UNSUPPORTED_GLOBALS, RESPONSE_BODY_METHODS, LOCALE_METHODS, FS_STDLIB, HOST_ONLY_CONFIG, MAX_FINDINGS = 20, SCRIPT_FILE = "user-script.ts", MAX_CONST_DEPTH = 4;
|
|
179940
|
+
var import_typescript3, UNSUPPORTED_GLOBALS, RESPONSE_BODY_METHODS, LOCALE_METHODS, FS_STDLIB, HOST_ONLY_CONFIG, MAX_FINDINGS = 20, MAX_WARNING_LINES = 10, SCRIPT_FILE = "user-script.ts", MAX_CONST_DEPTH = 4;
|
|
179916
179941
|
var init_quickjs_compat = __esm(() => {
|
|
179917
179942
|
import_typescript3 = __toESM(require_typescript2(), 1);
|
|
179918
179943
|
UNSUPPORTED_GLOBALS = new Set([
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./cli-0726awxw.js";
|
|
12
12
|
import {
|
|
13
13
|
summarizeSession
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-g03x26q6.js";
|
|
15
15
|
import {
|
|
16
16
|
getMemoryRaterNames,
|
|
17
17
|
init_memory_raters,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
readIdentityBaselines,
|
|
27
27
|
advanceIdentityBaselines,
|
|
28
28
|
init_profile_sync
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-jfgaz10x.js";
|
|
30
30
|
import {
|
|
31
31
|
getOpenRouterAttributionHeaders,
|
|
32
32
|
init_openrouter_base_url
|
|
@@ -1750,12 +1750,17 @@ var require_websocket = __commonJS(function(exports, module) {
|
|
|
1750
1750
|
protocols = [protocols];
|
|
1751
1751
|
}
|
|
1752
1752
|
}
|
|
1753
|
-
initAsClient(this, address, protocols, options);
|
|
1753
|
+
options = initAsClient(this, address, protocols, options);
|
|
1754
1754
|
} else {
|
|
1755
|
-
this._autoPong = options.autoPong;
|
|
1756
|
-
this._closeTimeout = options.closeTimeout;
|
|
1757
1755
|
this._isServer = true;
|
|
1758
1756
|
}
|
|
1757
|
+
if (options.autoPong) {
|
|
1758
|
+
this._autoPong = true;
|
|
1759
|
+
this._autoPongComplete = () => autoPongComplete(this);
|
|
1760
|
+
this._pendingAutoPongs = 0;
|
|
1761
|
+
this._maxPendingAutoPongs = options.maxPendingAutoPongs | 0;
|
|
1762
|
+
}
|
|
1763
|
+
this._closeTimeout = options.closeTimeout;
|
|
1759
1764
|
}
|
|
1760
1765
|
get binaryType() {
|
|
1761
1766
|
return this._binaryType;
|
|
@@ -2052,6 +2057,7 @@ var require_websocket = __commonJS(function(exports, module) {
|
|
|
2052
2057
|
maxBufferedChunks: 256 * 1024,
|
|
2053
2058
|
maxFragments: 16 * 1024,
|
|
2054
2059
|
maxPayload: 100 * 1024 * 1024,
|
|
2060
|
+
maxPendingAutoPongs: 60,
|
|
2055
2061
|
skipUTF8Validation: false,
|
|
2056
2062
|
perMessageDeflate: true,
|
|
2057
2063
|
followRedirects: false,
|
|
@@ -2067,8 +2073,6 @@ var require_websocket = __commonJS(function(exports, module) {
|
|
|
2067
2073
|
path: undefined,
|
|
2068
2074
|
port: undefined
|
|
2069
2075
|
};
|
|
2070
|
-
websocket._autoPong = opts.autoPong;
|
|
2071
|
-
websocket._closeTimeout = opts.closeTimeout;
|
|
2072
2076
|
if (!protocolVersions.includes(opts.protocolVersion)) {
|
|
2073
2077
|
throw new RangeError(`Unsupported protocol version: ${opts.protocolVersion} ` + `(supported versions: ${protocolVersions.join(", ")})`);
|
|
2074
2078
|
}
|
|
@@ -2307,6 +2311,7 @@ var require_websocket = __commonJS(function(exports, module) {
|
|
|
2307
2311
|
} else {
|
|
2308
2312
|
req.end();
|
|
2309
2313
|
}
|
|
2314
|
+
return opts;
|
|
2310
2315
|
}
|
|
2311
2316
|
function emitErrorAndClose(websocket, err) {
|
|
2312
2317
|
websocket._readyState = WebSocket.CLOSING;
|
|
@@ -2399,10 +2404,19 @@ var require_websocket = __commonJS(function(exports, module) {
|
|
|
2399
2404
|
}
|
|
2400
2405
|
function receiverOnPing(data) {
|
|
2401
2406
|
const websocket = this[kWebSocket];
|
|
2402
|
-
if (websocket._autoPong)
|
|
2403
|
-
websocket.
|
|
2407
|
+
if (websocket._autoPong && websocket.readyState === WebSocket.OPEN) {
|
|
2408
|
+
if (websocket._maxPendingAutoPongs > 0 && websocket._pendingAutoPongs >= websocket._maxPendingAutoPongs) {
|
|
2409
|
+
websocket.terminate();
|
|
2410
|
+
} else {
|
|
2411
|
+
websocket._pendingAutoPongs++;
|
|
2412
|
+
websocket.pong(data, !this._isServer, websocket._autoPongComplete);
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2404
2415
|
websocket.emit("ping", data);
|
|
2405
2416
|
}
|
|
2417
|
+
function autoPongComplete(websocket) {
|
|
2418
|
+
websocket._pendingAutoPongs--;
|
|
2419
|
+
}
|
|
2406
2420
|
function receiverOnPong(data) {
|
|
2407
2421
|
this[kWebSocket].emit("pong", data);
|
|
2408
2422
|
}
|
|
@@ -2641,6 +2655,7 @@ var require_websocket_server = __commonJS(function(exports, module) {
|
|
|
2641
2655
|
maxBufferedChunks: 256 * 1024,
|
|
2642
2656
|
maxFragments: 16 * 1024,
|
|
2643
2657
|
maxPayload: 100 * 1024 * 1024,
|
|
2658
|
+
maxPendingAutoPongs: 60,
|
|
2644
2659
|
skipUTF8Validation: false,
|
|
2645
2660
|
perMessageDeflate: false,
|
|
2646
2661
|
handleProtocols: null,
|
|
@@ -7,8 +7,10 @@ import {
|
|
|
7
7
|
can,
|
|
8
8
|
init_can,
|
|
9
9
|
getAgentById2,
|
|
10
|
+
init_agents,
|
|
10
11
|
WorkflowReplayStateError,
|
|
11
12
|
init_workflow_replay,
|
|
13
|
+
getWorkflowRunPrincipalRow,
|
|
12
14
|
getRunLineageBlock,
|
|
13
15
|
getWorkflowRunStatus,
|
|
14
16
|
getChildWorkflowRunId,
|
|
@@ -39,18 +41,18 @@ import {
|
|
|
39
41
|
getLatestStepForNode2,
|
|
40
42
|
getCurrentStepForNode2,
|
|
41
43
|
init_db4
|
|
42
|
-
} from "./cli-
|
|
44
|
+
} from "./cli-zrm0610v.js";
|
|
43
45
|
import {
|
|
44
46
|
ConfigQuestionSettingsSchema,
|
|
45
47
|
normalizeApprovalQuestions,
|
|
46
48
|
init_approval_config_question,
|
|
47
49
|
dispatchApprovalNotifications2,
|
|
48
50
|
init_approval_notifications
|
|
49
|
-
} from "./cli-
|
|
51
|
+
} from "./cli-cczffwak.js";
|
|
50
52
|
import {
|
|
51
53
|
resolveCredential,
|
|
52
54
|
init_credentials
|
|
53
|
-
} from "./cli-
|
|
55
|
+
} from "./cli-z209g721.js";
|
|
54
56
|
import {
|
|
55
57
|
isSlackConfigured,
|
|
56
58
|
init_config5
|
|
@@ -58,16 +60,16 @@ import {
|
|
|
58
60
|
import {
|
|
59
61
|
DEFAULT_MODEL
|
|
60
62
|
} from "./cli-jjzxsk47.js";
|
|
63
|
+
import {
|
|
64
|
+
selectCredential,
|
|
65
|
+
init_credentials2
|
|
66
|
+
} from "./cli-w81s97bn.js";
|
|
61
67
|
import {
|
|
62
68
|
DEFAULT_OPENROUTER_BASE_URL,
|
|
63
69
|
getOpenRouterBaseUrl,
|
|
64
70
|
getOpenRouterAttributionHeaders,
|
|
65
71
|
init_openrouter_base_url
|
|
66
72
|
} from "./cli-dfyv0jdy.js";
|
|
67
|
-
import {
|
|
68
|
-
selectCredential,
|
|
69
|
-
init_credentials2
|
|
70
|
-
} from "./cli-w81s97bn.js";
|
|
71
73
|
import {
|
|
72
74
|
deepInterpolate,
|
|
73
75
|
init_template2
|
|
@@ -120,7 +122,7 @@ async function notifyAutomationPreflightFailure(preflight) {
|
|
|
120
122
|
return;
|
|
121
123
|
}
|
|
122
124
|
try {
|
|
123
|
-
const { getSlackApp } = await import("./app-
|
|
125
|
+
const { getSlackApp } = await import("./app-wax6qz5e.js");
|
|
124
126
|
const app = getSlackApp();
|
|
125
127
|
if (!app) {
|
|
126
128
|
console.warn("[Automation Preflight] Slack not available, cannot send notification");
|
|
@@ -3239,6 +3241,37 @@ function withSaveWarnings(text, warnings) {
|
|
|
3239
3241
|
}
|
|
3240
3242
|
var init_readiness = () => {};
|
|
3241
3243
|
|
|
3244
|
+
// src/workflows/run-principal.ts
|
|
3245
|
+
async function decideWorkflowRunPrincipal(workflow, triggeredByAgentId) {
|
|
3246
|
+
const creator = workflow?.createdByAgentId;
|
|
3247
|
+
if (!creator)
|
|
3248
|
+
return { ok: true, agentId: triggeredByAgentId ?? undefined };
|
|
3249
|
+
const editor = workflow.updatedByAgentId;
|
|
3250
|
+
if (!editor || editor === creator || (await getAgentById2(editor))?.isLead) {
|
|
3251
|
+
return { ok: true, agentId: creator };
|
|
3252
|
+
}
|
|
3253
|
+
return {
|
|
3254
|
+
ok: false,
|
|
3255
|
+
error: `workflow "${workflow.name}" was last edited by agent ${editor}, not by its creator ${creator}, when this run started. ` + "Its swarm-script and sub-workflow nodes run as the creator, so they stay blocked until the creator or a lead saves the workflow and a new run starts."
|
|
3256
|
+
};
|
|
3257
|
+
}
|
|
3258
|
+
async function resolveWorkflowRunPrincipal(liveWorkflow, runId) {
|
|
3259
|
+
const row = await getWorkflowRunPrincipalRow(runId);
|
|
3260
|
+
if (!row?.principal)
|
|
3261
|
+
return decideWorkflowRunPrincipal(liveWorkflow, row?.triggeredByAgentId);
|
|
3262
|
+
try {
|
|
3263
|
+
const stored = JSON.parse(row.principal);
|
|
3264
|
+
if (stored.ok === true || stored.ok === false && typeof stored.error === "string") {
|
|
3265
|
+
return stored;
|
|
3266
|
+
}
|
|
3267
|
+
} catch {}
|
|
3268
|
+
return { ok: false, error: "the run's stored principal is unreadable" };
|
|
3269
|
+
}
|
|
3270
|
+
var init_run_principal = __esm(() => {
|
|
3271
|
+
init_agents();
|
|
3272
|
+
init_workflow_runs();
|
|
3273
|
+
});
|
|
3274
|
+
|
|
3242
3275
|
// src/workflows/successor-routing.ts
|
|
3243
3276
|
function add(runId, delta) {
|
|
3244
3277
|
const next = (owed.get(runId) ?? 0) + delta;
|
|
@@ -3505,6 +3538,7 @@ async function createRunWithInitialState(workflow, triggerData, options, initial
|
|
|
3505
3538
|
}
|
|
3506
3539
|
const state = !initial.status && workflow.cooldown && await shouldSkipCooldown(workflow.id, workflow.cooldown) ? { status: "skipped", error: "cooldown", finishedAt: new Date().toISOString() } : initial;
|
|
3507
3540
|
const definitionHash = await pinWorkflowDefinition2(pinSource);
|
|
3541
|
+
const principal = await decideWorkflowRunPrincipal(pinSource, options.triggeredByAgentId);
|
|
3508
3542
|
await createWorkflowRun2({
|
|
3509
3543
|
id: runId,
|
|
3510
3544
|
workflowId: workflow.id,
|
|
@@ -3514,7 +3548,8 @@ async function createRunWithInitialState(workflow, triggerData, options, initial
|
|
|
3514
3548
|
parentStepId,
|
|
3515
3549
|
parentStepAttempt: parentStepId ? attempt : undefined,
|
|
3516
3550
|
triggeredByAgentId: options.triggeredByAgentId,
|
|
3517
|
-
definitionHash
|
|
3551
|
+
definitionHash,
|
|
3552
|
+
principal: JSON.stringify(principal)
|
|
3518
3553
|
});
|
|
3519
3554
|
await updateWorkflowRun2(runId, state.status ? { status: state.status, error: state.error, finishedAt: state.finishedAt } : { context: state.context });
|
|
3520
3555
|
const preflightAlert = state.status === "failed" && state.preflight ? await isFirstWorkflowPreflightFailureToday(workflow.id, runId) : undefined;
|
|
@@ -3972,7 +4007,7 @@ async function runClaimedStep(def, runId, ctx, node, registry, existingStep, ste
|
|
|
3972
4007
|
}
|
|
3973
4008
|
const waiting = await checkpointStepWaiting(runId, stepId, ctx);
|
|
3974
4009
|
if (waiting && result.waitFor === "workflow.child.finished") {
|
|
3975
|
-
const { resumeFromChildRun } = await import("./resume-
|
|
4010
|
+
const { resumeFromChildRun } = await import("./resume-gwgtp4m3.js");
|
|
3976
4011
|
await resumeFromChildRun(stepId, registry);
|
|
3977
4012
|
}
|
|
3978
4013
|
return { outcome: waiting ? "waiting" : "completed", successors: [] };
|
|
@@ -4198,6 +4233,7 @@ var init_engine = __esm(() => {
|
|
|
4198
4233
|
init_limits();
|
|
4199
4234
|
init_node_timeout();
|
|
4200
4235
|
init_readiness();
|
|
4236
|
+
init_run_principal();
|
|
4201
4237
|
init_successor_routing();
|
|
4202
4238
|
init_template();
|
|
4203
4239
|
init_validation();
|
|
@@ -4503,7 +4539,7 @@ async function runForeachDrive(runId, parentNodeId, registry) {
|
|
|
4503
4539
|
if (drive.successors.length > 0) {
|
|
4504
4540
|
await walkGraph(workflow.definition, runId, ctx, drive.successors, registry, workflow.id, getSecretInputKeys(workflow.input), { successorDebt: debt });
|
|
4505
4541
|
} else {
|
|
4506
|
-
const { finalizeOrWait } = await import("./resume-
|
|
4542
|
+
const { finalizeOrWait } = await import("./resume-gwgtp4m3.js");
|
|
4507
4543
|
await finalizeOrWait(runId);
|
|
4508
4544
|
}
|
|
4509
4545
|
return drive;
|
|
@@ -4641,7 +4677,7 @@ async function startChild(input) {
|
|
|
4641
4677
|
const parked = await getDbClient2().get("UPDATE workflow_run_steps SET status = 'waiting' WHERE id = ? AND status = 'running' RETURNING id", [child.id]);
|
|
4642
4678
|
if (parked && result.waitFor === "workflow.child.finished") {
|
|
4643
4679
|
ownedChildren.delete(child.id);
|
|
4644
|
-
const { resumeFromChildRun } = await import("./resume-
|
|
4680
|
+
const { resumeFromChildRun } = await import("./resume-gwgtp4m3.js");
|
|
4645
4681
|
await resumeFromChildRun(child.id, registry);
|
|
4646
4682
|
}
|
|
4647
4683
|
return null;
|
|
@@ -5300,4 +5336,4 @@ var init_definition2 = __esm(() => {
|
|
|
5300
5336
|
init_foreach_body();
|
|
5301
5337
|
});
|
|
5302
5338
|
|
|
5303
|
-
export { notifyAutomationPreflightFailure, init_automation_preflight_alert, automationIntegrationFixUrl, isNeedsSetupFailure, preflightAutomation, renderAutomationTokens, getAutomationSetupStates, schedulePreflightInput, listEnabledAutomationPreflightInputs, recordSchedulePreflightFailure, setupIntegrationFlags, init_automation_preflight, BaseExecutor, init_base, HumanInTheLoopExecutor, init_human_in_the_loop, resolveWorkflowLlmConfig, init_workflow_llm, SYSTEM_ONE_PROVIDER_IDS, init_system_one_providers, SystemOneExtractionExecutor, init_system_one_extraction, SYSTEM_ONE_DECISION_NODE_TYPE, SystemOneDecisionConfigSchema, SystemOneDecisionExecutor, init_system_one_decision, adoptStoredContext, checkpointStep, checkpointStepFailure, checkpointStepWaiting, init_checkpoint, FAILED_TASK_OUTPUT_PREFIX, FOREACH_ITEMS_WAIT_FOR, init_constants, loadCompletedStepRouting, init_completed_step_routing, resolveInputValue, serverRefInputKeys, serverRefInputDeniedMessage, agentMaySetServerRefInput, getSecretInputKeys, init_input, validateJsonSchema, findJsonSchemaShapeErrors, init_json_schema_validator, getMaxWorkflowStepsPerRun, init_limits, runWithNodeDeadline, init_node_timeout, findWorkflowReadinessProblems, formatReadinessProblems, workflowSaveWarnings, withSaveWarnings, init_readiness, hasOwedSuccessors, claimAndOweWalk, init_successor_routing, init_template, validateOutputSchema, runStepValidation, init_validation, TriggerSchemaError, startWorkflowExecution2, ParentStepNotCurrentError, failRunOnUnreadableReplay, isWorkflowRunActive, isStepExecuting, holdWorkflowRun, walkGraph, hasRunningStep, findReadyNodes, scriptBodyInterpolationError, init_engine, ForeachExecutor, init_foreach, rebuildNodeExecutionInput, init_step_input, isForeachChildOwned, parkAndDriveForeach, startForeachDrive, runForeachDrive, init_foreach_driver, FOREACH_TERMINAL_STEP_STATUSES, isRetryPending, parseSyntheticNodeId, resolveForeachParent, settleForeachChild, init_foreach_join, resolveStepNode, stepFailureMode, init_foreach_body, getNextTargets, generateEdges, resolveValidationPort, getSuccessors, definitionNodeIds, validateDefinition, applyDefinitionPatch, init_definition2 };
|
|
5339
|
+
export { notifyAutomationPreflightFailure, init_automation_preflight_alert, automationIntegrationFixUrl, isNeedsSetupFailure, preflightAutomation, renderAutomationTokens, getAutomationSetupStates, schedulePreflightInput, listEnabledAutomationPreflightInputs, recordSchedulePreflightFailure, setupIntegrationFlags, init_automation_preflight, BaseExecutor, init_base, HumanInTheLoopExecutor, init_human_in_the_loop, resolveWorkflowLlmConfig, init_workflow_llm, SYSTEM_ONE_PROVIDER_IDS, init_system_one_providers, SystemOneExtractionExecutor, init_system_one_extraction, SYSTEM_ONE_DECISION_NODE_TYPE, SystemOneDecisionConfigSchema, SystemOneDecisionExecutor, init_system_one_decision, adoptStoredContext, checkpointStep, checkpointStepFailure, checkpointStepWaiting, init_checkpoint, FAILED_TASK_OUTPUT_PREFIX, FOREACH_ITEMS_WAIT_FOR, init_constants, loadCompletedStepRouting, init_completed_step_routing, resolveInputValue, serverRefInputKeys, serverRefInputDeniedMessage, agentMaySetServerRefInput, getSecretInputKeys, init_input, validateJsonSchema, findJsonSchemaShapeErrors, init_json_schema_validator, getMaxWorkflowStepsPerRun, init_limits, runWithNodeDeadline, init_node_timeout, findWorkflowReadinessProblems, formatReadinessProblems, workflowSaveWarnings, withSaveWarnings, init_readiness, resolveWorkflowRunPrincipal, init_run_principal, hasOwedSuccessors, claimAndOweWalk, init_successor_routing, init_template, validateOutputSchema, runStepValidation, init_validation, TriggerSchemaError, startWorkflowExecution2, ParentStepNotCurrentError, failRunOnUnreadableReplay, isWorkflowRunActive, isStepExecuting, holdWorkflowRun, walkGraph, hasRunningStep, findReadyNodes, scriptBodyInterpolationError, init_engine, ForeachExecutor, init_foreach, rebuildNodeExecutionInput, init_step_input, isForeachChildOwned, parkAndDriveForeach, startForeachDrive, runForeachDrive, init_foreach_driver, FOREACH_TERMINAL_STEP_STATUSES, isRetryPending, parseSyntheticNodeId, resolveForeachParent, settleForeachChild, init_foreach_join, resolveStepNode, stepFailureMode, init_foreach_body, getNextTargets, generateEdges, resolveValidationPort, getSuccessors, definitionNodeIds, validateDefinition, applyDefinitionPatch, init_definition2 };
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
requireFxRoute,
|
|
4
4
|
fxSessionExists2,
|
|
5
5
|
fxTargetProfile2
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-9mvfvggt.js";
|
|
7
7
|
import {
|
|
8
8
|
ACPAdapter2
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-s90wcbk9.js";
|
|
10
10
|
import {
|
|
11
11
|
getKnownContextWindowSize,
|
|
12
12
|
init_context_window
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
deleteSkillFile2,
|
|
18
18
|
getSkillById2,
|
|
19
19
|
init_db4
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-zrm0610v.js";
|
|
21
21
|
import {
|
|
22
22
|
snapshotAndUpdateWorkflow,
|
|
23
23
|
init_version,
|
|
@@ -28,15 +28,15 @@ import {
|
|
|
28
28
|
liveSkillSpec,
|
|
29
29
|
skillHash,
|
|
30
30
|
init_assets
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-d13qgcct.js";
|
|
32
32
|
import {
|
|
33
33
|
getSeedState,
|
|
34
34
|
init_state_db
|
|
35
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-gy0r7gb8.js";
|
|
36
36
|
import {
|
|
37
37
|
matchesDefaultIdentityMd,
|
|
38
38
|
init_defaults
|
|
39
|
-
} from "./cli-
|
|
39
|
+
} from "./cli-jfgaz10x.js";
|
|
40
40
|
import {
|
|
41
41
|
__esm
|
|
42
42
|
} from "./cli-242037k3.js";
|