@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
1
|
+
import"./cli-5188hq0a.js";
|
|
2
|
+
import"./cli-65k149j5.js";
|
|
3
3
|
import {
|
|
4
4
|
auditAssetKeys,
|
|
5
5
|
init_asset_key_audit,
|
|
@@ -547,7 +547,7 @@ import {
|
|
|
547
547
|
countScriptRunJournalSteps2,
|
|
548
548
|
countScriptRunJournalAgentTaskSteps2,
|
|
549
549
|
init_db4
|
|
550
|
-
} from "./cli-
|
|
550
|
+
} from "./cli-zrm0610v.js";
|
|
551
551
|
import {
|
|
552
552
|
PRIMARY_ROLE_NAMES2,
|
|
553
553
|
OperatorGrantedTargetError2,
|
|
@@ -561,7 +561,7 @@ import {
|
|
|
561
561
|
assertNotLastAdmin2,
|
|
562
562
|
setUserRoles2,
|
|
563
563
|
init_rbac_roles
|
|
564
|
-
} from "./cli-
|
|
564
|
+
} from "./cli-x5t54ytt.js";
|
|
565
565
|
import {
|
|
566
566
|
MAX_MODEL_GROUP_MEMBERS,
|
|
567
567
|
listModelGroups,
|
|
@@ -571,11 +571,11 @@ import {
|
|
|
571
571
|
modelGroupReferences,
|
|
572
572
|
deleteModelGroup,
|
|
573
573
|
init_model_groups
|
|
574
|
-
} from "./cli-
|
|
574
|
+
} from "./cli-jrxt5j0n.js";
|
|
575
575
|
import {
|
|
576
576
|
requestModelCatalogRefresh2,
|
|
577
577
|
init_pricing_refresh
|
|
578
|
-
} from "./cli-
|
|
578
|
+
} from "./cli-svcy72s5.js";
|
|
579
579
|
import {
|
|
580
580
|
workflowEventBus2,
|
|
581
581
|
init_event_bus
|
|
@@ -583,12 +583,12 @@ import {
|
|
|
583
583
|
import {
|
|
584
584
|
shouldBlockChannel2,
|
|
585
585
|
init_external_channel
|
|
586
|
-
} from "./cli-
|
|
587
|
-
import"./cli-
|
|
588
|
-
import"./cli-
|
|
586
|
+
} from "./cli-2ja7eadd.js";
|
|
587
|
+
import"./cli-1t5vhrpv.js";
|
|
588
|
+
import"./cli-0rrft7s3.js";
|
|
589
589
|
import {
|
|
590
|
-
|
|
591
|
-
} from "./cli-
|
|
590
|
+
require_dist7
|
|
591
|
+
} from "./cli-ek8b88kv.js";
|
|
592
592
|
import {
|
|
593
593
|
getSlackConnectionState,
|
|
594
594
|
init_connection_state,
|
|
@@ -625,7 +625,7 @@ import {
|
|
|
625
625
|
startSlackApp2,
|
|
626
626
|
stopSlackApp2,
|
|
627
627
|
init_app4
|
|
628
|
-
} from "./cli-
|
|
628
|
+
} from "./cli-q58qt9dw.js";
|
|
629
629
|
import {
|
|
630
630
|
reconcileAgentMaxTasksPolicy,
|
|
631
631
|
upsertSwarmConfigWithPolicyMirror,
|
|
@@ -639,12 +639,12 @@ import {
|
|
|
639
639
|
reconcileAgentStatusFromRuntimes,
|
|
640
640
|
listRuntimeInstancesForPool,
|
|
641
641
|
init_multi_runtime
|
|
642
|
-
} from "./cli-
|
|
642
|
+
} from "./cli-cczffwak.js";
|
|
643
643
|
import {
|
|
644
644
|
retryFailedRun2,
|
|
645
645
|
cancelWorkflowRun2,
|
|
646
646
|
init_resume
|
|
647
|
-
} from "./cli-
|
|
647
|
+
} from "./cli-fdam1t9b.js";
|
|
648
648
|
import {
|
|
649
649
|
safeParse,
|
|
650
650
|
getObjectShape,
|
|
@@ -764,6 +764,8 @@ import {
|
|
|
764
764
|
init_retry,
|
|
765
765
|
ExtensionConfigError,
|
|
766
766
|
init_loader,
|
|
767
|
+
isExtensionBridgedEvent,
|
|
768
|
+
init_post_bridge,
|
|
767
769
|
ExtensionLifecycleError,
|
|
768
770
|
setExtensionLoopbackBaseUrl,
|
|
769
771
|
enableExtension,
|
|
@@ -898,6 +900,8 @@ import {
|
|
|
898
900
|
handleJiraWebhook,
|
|
899
901
|
init_webhook,
|
|
900
902
|
init_jira,
|
|
903
|
+
linearApiUrl,
|
|
904
|
+
init_host,
|
|
901
905
|
handleAgentSessionEvent,
|
|
902
906
|
handleIssueUpdate,
|
|
903
907
|
handleIssueDelete,
|
|
@@ -1160,7 +1164,7 @@ import {
|
|
|
1160
1164
|
getEnabledCapabilities,
|
|
1161
1165
|
createServer,
|
|
1162
1166
|
init_server
|
|
1163
|
-
} from "./cli-
|
|
1167
|
+
} from "./cli-d13qgcct.js";
|
|
1164
1168
|
import {
|
|
1165
1169
|
getFileStorageProvider2,
|
|
1166
1170
|
init_registry2
|
|
@@ -1186,7 +1190,7 @@ import {
|
|
|
1186
1190
|
resolvePoolDelivery2,
|
|
1187
1191
|
createPoolAgent2,
|
|
1188
1192
|
init_db2
|
|
1189
|
-
} from "./cli-
|
|
1193
|
+
} from "./cli-f3ta4e67.js";
|
|
1190
1194
|
import {
|
|
1191
1195
|
warnIfCorsAllowsAnyOrigin,
|
|
1192
1196
|
isOriginAllowedForCredentials,
|
|
@@ -1235,7 +1239,7 @@ import {
|
|
|
1235
1239
|
describeRequestRoute,
|
|
1236
1240
|
route,
|
|
1237
1241
|
init_route_def
|
|
1238
|
-
} from "./cli-
|
|
1242
|
+
} from "./cli-c6vhcknq.js";
|
|
1239
1243
|
import {
|
|
1240
1244
|
startPoolRouting,
|
|
1241
1245
|
stopPoolRouting,
|
|
@@ -1248,17 +1252,17 @@ import {
|
|
|
1248
1252
|
checkHeartbeatChecklist2,
|
|
1249
1253
|
runHeartbeatSweep2,
|
|
1250
1254
|
stopHeartbeat2
|
|
1251
|
-
} from "./cli-
|
|
1252
|
-
import"./cli-
|
|
1255
|
+
} from "./cli-rw3m83j4.js";
|
|
1256
|
+
import"./cli-021hrewp.js";
|
|
1253
1257
|
import {
|
|
1254
1258
|
runtimeSupervisorStatus,
|
|
1255
1259
|
startRuntimeSupervisor,
|
|
1256
1260
|
stopRuntimeSupervisor
|
|
1257
|
-
} from "./cli-
|
|
1261
|
+
} from "./cli-8ee7xt75.js";
|
|
1258
1262
|
import {
|
|
1259
1263
|
TASK_TITLE_TIMEOUT_MS,
|
|
1260
1264
|
generateTaskTitle
|
|
1261
|
-
} from "./cli-
|
|
1265
|
+
} from "./cli-k9kfck3s.js";
|
|
1262
1266
|
import"./cli-ns59dc6r.js";
|
|
1263
1267
|
import {
|
|
1264
1268
|
ACP_TARGET_IDS
|
|
@@ -1281,10 +1285,10 @@ import {
|
|
|
1281
1285
|
agentFsRequest2,
|
|
1282
1286
|
resolveApiUrl2,
|
|
1283
1287
|
init_agent_fs_provision
|
|
1284
|
-
} from "./cli-
|
|
1288
|
+
} from "./cli-5njmmmer.js";
|
|
1285
1289
|
import {
|
|
1286
1290
|
Anthropic
|
|
1287
|
-
} from "./cli-
|
|
1291
|
+
} from "./cli-ertcjw6z.js";
|
|
1288
1292
|
import {
|
|
1289
1293
|
isLeadChannelMonitoringEnabled,
|
|
1290
1294
|
SIMILARITY_THRESHOLD,
|
|
@@ -1292,19 +1296,19 @@ import {
|
|
|
1292
1296
|
isUnknownModelError,
|
|
1293
1297
|
checkProviderPoolKey,
|
|
1294
1298
|
writeSkillsToFilesystem
|
|
1295
|
-
} from "./cli-
|
|
1299
|
+
} from "./cli-cgmka83w.js";
|
|
1296
1300
|
import {
|
|
1297
1301
|
objectWebhookSecret2,
|
|
1298
1302
|
handleObjectWebhookEvent2,
|
|
1299
1303
|
init_object_webhooks
|
|
1300
|
-
} from "./cli-
|
|
1301
|
-
import"./cli-
|
|
1304
|
+
} from "./cli-gnkzh8ed.js";
|
|
1305
|
+
import"./cli-1d9q7qrn.js";
|
|
1302
1306
|
import {
|
|
1303
1307
|
LOOKUP_USER_TEAM2,
|
|
1304
1308
|
isUserAllowed2,
|
|
1305
1309
|
init_handlers
|
|
1306
|
-
} from "./cli-
|
|
1307
|
-
import"./cli-
|
|
1310
|
+
} from "./cli-txxcf9s1.js";
|
|
1311
|
+
import"./cli-dev6f0px.js";
|
|
1308
1312
|
import {
|
|
1309
1313
|
createUserMergeJob2,
|
|
1310
1314
|
getUserMergeJob2,
|
|
@@ -1313,7 +1317,7 @@ import {
|
|
|
1313
1317
|
findFailedUserMergeJob2,
|
|
1314
1318
|
requeueUserMergeJob2,
|
|
1315
1319
|
runUserMergeJobs2
|
|
1316
|
-
} from "./cli-
|
|
1320
|
+
} from "./cli-qqz5z36e.js";
|
|
1317
1321
|
import {
|
|
1318
1322
|
isCodexOAuthConfigKey
|
|
1319
1323
|
} from "./cli-j4bwnpkm.js";
|
|
@@ -1343,8 +1347,8 @@ import {
|
|
|
1343
1347
|
init_person_responder,
|
|
1344
1348
|
handleApprovalRequests,
|
|
1345
1349
|
init_approval_requests
|
|
1346
|
-
} from "./cli-
|
|
1347
|
-
import"./cli-
|
|
1350
|
+
} from "./cli-83hynhes.js";
|
|
1351
|
+
import"./cli-hab0bvrh.js";
|
|
1348
1352
|
import {
|
|
1349
1353
|
RATING_MODEL_MAX_LENGTH,
|
|
1350
1354
|
REFERENCES_SOURCE_MAX_LENGTH,
|
|
@@ -1445,7 +1449,7 @@ import {
|
|
|
1445
1449
|
init_typecheck,
|
|
1446
1450
|
parseSkillContent,
|
|
1447
1451
|
init_skill_parser
|
|
1448
|
-
} from "./cli-
|
|
1452
|
+
} from "./cli-gy0r7gb8.js";
|
|
1449
1453
|
import {
|
|
1450
1454
|
signalProcessGroup,
|
|
1451
1455
|
detachedProcessGroup,
|
|
@@ -1462,17 +1466,17 @@ import {
|
|
|
1462
1466
|
forceRefreshAuthorizationOrThrow,
|
|
1463
1467
|
forceRefreshTokenOrThrow,
|
|
1464
1468
|
init_ensure_token
|
|
1465
|
-
} from "./cli-
|
|
1469
|
+
} from "./cli-e13kbyq0.js";
|
|
1466
1470
|
import {
|
|
1467
1471
|
PRIMITIVE_KINDS,
|
|
1468
1472
|
ObjectsError,
|
|
1469
1473
|
recordObjectVersion,
|
|
1470
1474
|
init_objects
|
|
1471
|
-
} from "./cli-
|
|
1475
|
+
} from "./cli-s48k2rzx.js";
|
|
1472
1476
|
import {
|
|
1473
1477
|
agentFsClientFor,
|
|
1474
1478
|
init_agent_fs_identity
|
|
1475
|
-
} from "./cli-
|
|
1479
|
+
} from "./cli-an8bpy60.js";
|
|
1476
1480
|
import {
|
|
1477
1481
|
FilesError,
|
|
1478
1482
|
normalizeFilesError,
|
|
@@ -1481,7 +1485,7 @@ import {
|
|
|
1481
1485
|
AgentFsProvider,
|
|
1482
1486
|
init_agent_fs_provider
|
|
1483
1487
|
} from "./cli-skd2c4ej.js";
|
|
1484
|
-
import"./cli-
|
|
1488
|
+
import"./cli-ryn4y478.js";
|
|
1485
1489
|
import {
|
|
1486
1490
|
automationIntegrationFixUrl,
|
|
1487
1491
|
preflightAutomation,
|
|
@@ -1503,7 +1507,7 @@ import {
|
|
|
1503
1507
|
definitionNodeIds,
|
|
1504
1508
|
validateDefinition,
|
|
1505
1509
|
init_definition2
|
|
1506
|
-
} from "./cli-
|
|
1510
|
+
} from "./cli-h8k5801a.js";
|
|
1507
1511
|
import {
|
|
1508
1512
|
_fetchHolder,
|
|
1509
1513
|
CLIENT_ID,
|
|
@@ -1524,14 +1528,17 @@ import {
|
|
|
1524
1528
|
isMultiRuntimeEnabled,
|
|
1525
1529
|
init_multi_runtime2
|
|
1526
1530
|
} from "./cli-mdb054w3.js";
|
|
1527
|
-
import {
|
|
1528
|
-
createRuntimeProvider,
|
|
1529
|
-
init_runtime_providers
|
|
1530
|
-
} from "./cli-pgdqhdkw.js";
|
|
1531
1531
|
import {
|
|
1532
1532
|
getApiKey,
|
|
1533
1533
|
init_api_key
|
|
1534
1534
|
} from "./cli-pax9q4ff.js";
|
|
1535
|
+
import {
|
|
1536
|
+
createRuntimeProvider,
|
|
1537
|
+
init_runtime_providers
|
|
1538
|
+
} from "./cli-0kyjrbaa.js";
|
|
1539
|
+
import {
|
|
1540
|
+
require_content_type
|
|
1541
|
+
} from "./cli-nc842kc9.js";
|
|
1535
1542
|
import {
|
|
1536
1543
|
hasSessionAccess,
|
|
1537
1544
|
getSessionRoot,
|
|
@@ -1541,16 +1548,13 @@ import {
|
|
|
1541
1548
|
toSessionSharesState,
|
|
1542
1549
|
setSessionShares,
|
|
1543
1550
|
init_session_shares
|
|
1544
|
-
} from "./cli-
|
|
1545
|
-
import
|
|
1546
|
-
require_content_type
|
|
1547
|
-
} from "./cli-e9p9h14n.js";
|
|
1548
|
-
import"./cli-vrb8pvrf.js";
|
|
1551
|
+
} from "./cli-3vc518cw.js";
|
|
1552
|
+
import"./cli-9j1qcs0b.js";
|
|
1549
1553
|
import {
|
|
1550
1554
|
import_websocket,
|
|
1551
1555
|
import_websocket_server,
|
|
1552
1556
|
init_wrapper2
|
|
1553
|
-
} from "./cli-
|
|
1557
|
+
} from "./cli-rcqgr0hs.js";
|
|
1554
1558
|
import {
|
|
1555
1559
|
registerSessionTokenConnection,
|
|
1556
1560
|
init_session_token_connections,
|
|
@@ -1580,7 +1584,11 @@ import {
|
|
|
1580
1584
|
revokeAllAgentSessionTokens,
|
|
1581
1585
|
fingerprintApiKey,
|
|
1582
1586
|
init_users
|
|
1583
|
-
} from "./cli-
|
|
1587
|
+
} from "./cli-praaw1wh.js";
|
|
1588
|
+
import {
|
|
1589
|
+
resolveGitHubHost,
|
|
1590
|
+
init_github_host
|
|
1591
|
+
} from "./cli-9ttx00s3.js";
|
|
1584
1592
|
import {
|
|
1585
1593
|
CORE_TOOLS,
|
|
1586
1594
|
init_tool_config
|
|
@@ -1600,33 +1608,56 @@ import {
|
|
|
1600
1608
|
codexAuthBenchMarkerKey,
|
|
1601
1609
|
init_codex_auth_failure
|
|
1602
1610
|
} from "./cli-fw2w0kva.js";
|
|
1603
|
-
import {
|
|
1604
|
-
resolveGitHubHost,
|
|
1605
|
-
init_github_host
|
|
1606
|
-
} from "./cli-9ttx00s3.js";
|
|
1607
1611
|
import {
|
|
1608
1612
|
IDENTITY_FIELD_BUDGETS,
|
|
1609
1613
|
IdentityFieldBudgetError,
|
|
1610
1614
|
init_identity_field_budget
|
|
1611
|
-
} from "./cli-
|
|
1612
|
-
import {
|
|
1613
|
-
getSlackConfiguration,
|
|
1614
|
-
init_config5
|
|
1615
|
-
} from "./cli-ntmjzyte.js";
|
|
1615
|
+
} from "./cli-jfgaz10x.js";
|
|
1616
1616
|
import {
|
|
1617
1617
|
isSteeringEnabled2,
|
|
1618
1618
|
init_steering_enabled
|
|
1619
1619
|
} from "./cli-4sydckyj.js";
|
|
1620
|
+
import {
|
|
1621
|
+
getSlackConfiguration,
|
|
1622
|
+
init_config5
|
|
1623
|
+
} from "./cli-ntmjzyte.js";
|
|
1620
1624
|
import {
|
|
1621
1625
|
SUBSCRIPTION_PLANS_CHECKED_AT,
|
|
1622
1626
|
SUBSCRIPTION_PLANS,
|
|
1623
1627
|
isSubscriptionPlanId,
|
|
1624
1628
|
init_subscription_plans
|
|
1625
1629
|
} from "./cli-nh7x3133.js";
|
|
1630
|
+
import {
|
|
1631
|
+
MODEL_SCOPED_WINDOWS,
|
|
1632
|
+
KEY_WIDE_WINDOWS,
|
|
1633
|
+
modelFamilyOf,
|
|
1634
|
+
isModelScopedWindow,
|
|
1635
|
+
activeModelBlocks,
|
|
1636
|
+
init_model_rate_limit_windows,
|
|
1637
|
+
CREDENTIAL_SELECTION_STRATEGIES,
|
|
1638
|
+
credentialSelectionStrategy,
|
|
1639
|
+
init_key_usage,
|
|
1640
|
+
CREDENTIAL_POOL_VARS,
|
|
1641
|
+
PROVIDER_CREDENTIAL_VARS,
|
|
1642
|
+
getModelAwareCredentialVars,
|
|
1643
|
+
splitCredentialPool,
|
|
1644
|
+
selectCredential,
|
|
1645
|
+
init_credentials2
|
|
1646
|
+
} from "./cli-w81s97bn.js";
|
|
1626
1647
|
import {
|
|
1627
1648
|
getOpenRouterAttributionHeaders,
|
|
1628
1649
|
init_openrouter_base_url
|
|
1629
1650
|
} from "./cli-dfyv0jdy.js";
|
|
1651
|
+
import {
|
|
1652
|
+
interpolate,
|
|
1653
|
+
init_template2,
|
|
1654
|
+
getTemplateDefinition,
|
|
1655
|
+
getAllTemplateDefinitions,
|
|
1656
|
+
init_registry3,
|
|
1657
|
+
resolveTemplate,
|
|
1658
|
+
init_resolver,
|
|
1659
|
+
init_session_templates
|
|
1660
|
+
} from "./cli-aktk3qt6.js";
|
|
1630
1661
|
import {
|
|
1631
1662
|
ASSET_KEY_MAX_LENGTH,
|
|
1632
1663
|
AssetKeyError,
|
|
@@ -1803,34 +1834,7 @@ import {
|
|
|
1803
1834
|
KvKeySchema,
|
|
1804
1835
|
KvEntrySchema,
|
|
1805
1836
|
init_types5
|
|
1806
|
-
} from "./cli-
|
|
1807
|
-
import {
|
|
1808
|
-
MODEL_SCOPED_WINDOWS,
|
|
1809
|
-
KEY_WIDE_WINDOWS,
|
|
1810
|
-
modelFamilyOf,
|
|
1811
|
-
isModelScopedWindow,
|
|
1812
|
-
activeModelBlocks,
|
|
1813
|
-
init_model_rate_limit_windows,
|
|
1814
|
-
CREDENTIAL_SELECTION_STRATEGIES,
|
|
1815
|
-
credentialSelectionStrategy,
|
|
1816
|
-
init_key_usage,
|
|
1817
|
-
CREDENTIAL_POOL_VARS,
|
|
1818
|
-
PROVIDER_CREDENTIAL_VARS,
|
|
1819
|
-
getModelAwareCredentialVars,
|
|
1820
|
-
splitCredentialPool,
|
|
1821
|
-
selectCredential,
|
|
1822
|
-
init_credentials2
|
|
1823
|
-
} from "./cli-w81s97bn.js";
|
|
1824
|
-
import {
|
|
1825
|
-
interpolate,
|
|
1826
|
-
init_template2,
|
|
1827
|
-
getTemplateDefinition,
|
|
1828
|
-
getAllTemplateDefinitions,
|
|
1829
|
-
init_registry3,
|
|
1830
|
-
resolveTemplate,
|
|
1831
|
-
init_resolver,
|
|
1832
|
-
init_session_templates
|
|
1833
|
-
} from "./cli-aktk3qt6.js";
|
|
1837
|
+
} from "./cli-t5jbjq61.js";
|
|
1834
1838
|
import {
|
|
1835
1839
|
init_zod
|
|
1836
1840
|
} from "./cli-96234j5w.js";
|
|
@@ -1866,7 +1870,6 @@ import {
|
|
|
1866
1870
|
getConfiguredAppUrls,
|
|
1867
1871
|
getAppUrl,
|
|
1868
1872
|
getLocalDevAppOrigins,
|
|
1869
|
-
getMcpBaseUrl,
|
|
1870
1873
|
setApiLoopbackBaseUrl,
|
|
1871
1874
|
getScriptApiBaseUrl,
|
|
1872
1875
|
getPublicMcpBaseUrl,
|
|
@@ -1877,10 +1880,6 @@ import {
|
|
|
1877
1880
|
isAgentFsProxyEnabled,
|
|
1878
1881
|
init_constants3
|
|
1879
1882
|
} from "./cli-466jjrwe.js";
|
|
1880
|
-
import {
|
|
1881
|
-
realtimeBus,
|
|
1882
|
-
init_bus
|
|
1883
|
-
} from "./cli-syfdvhkc.js";
|
|
1884
1883
|
import {
|
|
1885
1884
|
parseEnvFlag,
|
|
1886
1885
|
isEnvFlagEnabled,
|
|
@@ -1889,7 +1888,11 @@ import {
|
|
|
1889
1888
|
import {
|
|
1890
1889
|
init_package,
|
|
1891
1890
|
package_default
|
|
1892
|
-
} from "./cli-
|
|
1891
|
+
} from "./cli-jrhvywah.js";
|
|
1892
|
+
import {
|
|
1893
|
+
realtimeBus,
|
|
1894
|
+
init_bus
|
|
1895
|
+
} from "./cli-syfdvhkc.js";
|
|
1893
1896
|
import {
|
|
1894
1897
|
isAlias,
|
|
1895
1898
|
baseUrlEnvVar,
|
|
@@ -5024,7 +5027,7 @@ async function titleTask(taskId, env, generate) {
|
|
|
5024
5027
|
const result = await generate({
|
|
5025
5028
|
task: task.task,
|
|
5026
5029
|
env,
|
|
5027
|
-
apiUrl:
|
|
5030
|
+
apiUrl: getScriptApiBaseUrl(),
|
|
5028
5031
|
apiKey: getApiKey(),
|
|
5029
5032
|
callerTag: `task-title:${task.source}`,
|
|
5030
5033
|
signal: AbortSignal.timeout(TASK_TITLE_TIMEOUT_MS)
|
|
@@ -7014,7 +7017,8 @@ var createActiveSession = route({
|
|
|
7014
7017
|
responses: {
|
|
7015
7018
|
201: { description: "Session created", schema: object2({ session: ActiveSessionSchema }) },
|
|
7016
7019
|
400: { description: "Validation error" }
|
|
7017
|
-
}
|
|
7020
|
+
},
|
|
7021
|
+
rbac: { ungated: "worker runner bookkeeping for its own active session; no user flow writes it" }
|
|
7018
7022
|
});
|
|
7019
7023
|
var deleteSessionByTask = route({
|
|
7020
7024
|
method: "delete",
|
|
@@ -7026,7 +7030,8 @@ var deleteSessionByTask = route({
|
|
|
7026
7030
|
params: object2({ taskId: string2() }),
|
|
7027
7031
|
responses: {
|
|
7028
7032
|
200: { description: "Session deleted", schema: object2({ deleted: boolean() }) }
|
|
7029
|
-
}
|
|
7033
|
+
},
|
|
7034
|
+
rbac: { ungated: "worker runner bookkeeping for its own active session; no user flow writes it" }
|
|
7030
7035
|
});
|
|
7031
7036
|
var deleteSessionById = route({
|
|
7032
7037
|
method: "delete",
|
|
@@ -7038,7 +7043,8 @@ var deleteSessionById = route({
|
|
|
7038
7043
|
params: object2({ id: string2() }),
|
|
7039
7044
|
responses: {
|
|
7040
7045
|
200: { description: "Session deleted", schema: object2({ deleted: boolean() }) }
|
|
7041
|
-
}
|
|
7046
|
+
},
|
|
7047
|
+
rbac: { ungated: "worker runner bookkeeping for its own active session; no user flow writes it" }
|
|
7042
7048
|
});
|
|
7043
7049
|
var heartbeatSession = route({
|
|
7044
7050
|
method: "put",
|
|
@@ -7050,7 +7056,8 @@ var heartbeatSession = route({
|
|
|
7050
7056
|
params: object2({ taskId: string2() }),
|
|
7051
7057
|
responses: {
|
|
7052
7058
|
200: { description: "Heartbeat updated", schema: object2({ updated: boolean() }) }
|
|
7053
|
-
}
|
|
7059
|
+
},
|
|
7060
|
+
rbac: { ungated: "worker runner bookkeeping for its own active session; no user flow writes it" }
|
|
7054
7061
|
});
|
|
7055
7062
|
var updateProviderSession = route({
|
|
7056
7063
|
method: "put",
|
|
@@ -7063,7 +7070,8 @@ var updateProviderSession = route({
|
|
|
7063
7070
|
body: object2({ providerSessionId: string2().min(1) }),
|
|
7064
7071
|
responses: {
|
|
7065
7072
|
200: { description: "Provider session ID updated", schema: object2({ updated: boolean() }) }
|
|
7066
|
-
}
|
|
7073
|
+
},
|
|
7074
|
+
rbac: { ungated: "worker runner bookkeeping for its own active session; no user flow writes it" }
|
|
7067
7075
|
});
|
|
7068
7076
|
var cleanupSessions = route({
|
|
7069
7077
|
method: "post",
|
|
@@ -7078,7 +7086,8 @@ var cleanupSessions = route({
|
|
|
7078
7086
|
}).optional(),
|
|
7079
7087
|
responses: {
|
|
7080
7088
|
200: { description: "Cleanup result", schema: object2({ cleaned: number2().int() }) }
|
|
7081
|
-
}
|
|
7089
|
+
},
|
|
7090
|
+
rbac: { ungated: "worker runner bookkeeping for its own active session; no user flow writes it" }
|
|
7082
7091
|
});
|
|
7083
7092
|
var recoverOrphanedTasks = route({
|
|
7084
7093
|
method: "post",
|
|
@@ -7097,7 +7106,8 @@ var recoverOrphanedTasks = route({
|
|
|
7097
7106
|
schema: object2({ recovered: number2().int(), tasks: array2(AgentTaskSchema) })
|
|
7098
7107
|
},
|
|
7099
7108
|
403: { description: "Can only recover orphaned tasks for the calling agent" }
|
|
7100
|
-
}
|
|
7109
|
+
},
|
|
7110
|
+
rbac: { ungated: "worker runner bookkeeping for its own active session; no user flow writes it" }
|
|
7101
7111
|
});
|
|
7102
7112
|
async function handleActiveSessions(req, res, pathSegments, queryParams, myAgentId) {
|
|
7103
7113
|
if (listActiveSessions.match(req.method, pathSegments)) {
|
|
@@ -7934,7 +7944,8 @@ var registerAgent = route({
|
|
|
7934
7944
|
410: {
|
|
7935
7945
|
description: "An operator deleted this agent id (`agent_deleted`); the worker must stop"
|
|
7936
7946
|
}
|
|
7937
|
-
}
|
|
7947
|
+
},
|
|
7948
|
+
rbac: { ungated: "worker self-registration at boot; no user flow calls it" }
|
|
7938
7949
|
});
|
|
7939
7950
|
var setAgentHarnessProviderRoute = route({
|
|
7940
7951
|
method: "patch",
|
|
@@ -7951,7 +7962,8 @@ var setAgentHarnessProviderRoute = route({
|
|
|
7951
7962
|
200: { description: "Updated agent row", schema: AgentWithCapacitySchema },
|
|
7952
7963
|
400: { description: "Validation error (unknown provider)" },
|
|
7953
7964
|
404: { description: "Agent not found" }
|
|
7954
|
-
}
|
|
7965
|
+
},
|
|
7966
|
+
rbac: { permission: "config.write.any" }
|
|
7955
7967
|
});
|
|
7956
7968
|
var LocalHarnessProviderSchema = _enum2([
|
|
7957
7969
|
"claude",
|
|
@@ -8033,7 +8045,8 @@ var updateAgentRuntimeRoute = route({
|
|
|
8033
8045
|
},
|
|
8034
8046
|
400: { description: "Validation error, or `{ error, check }` when the profile check fails" },
|
|
8035
8047
|
404: { description: "Agent not found" }
|
|
8036
|
-
}
|
|
8048
|
+
},
|
|
8049
|
+
rbac: { permission: "config.write.any" }
|
|
8037
8050
|
});
|
|
8038
8051
|
|
|
8039
8052
|
class ClaudeTransportConflictError extends Error {
|
|
@@ -8124,7 +8137,8 @@ var updateAgentNameRoute = route({
|
|
|
8124
8137
|
200: { description: "Agent updated", schema: AgentWithCapacitySchema },
|
|
8125
8138
|
404: { description: "Agent not found" },
|
|
8126
8139
|
409: { description: "Name conflict" }
|
|
8127
|
-
}
|
|
8140
|
+
},
|
|
8141
|
+
rbac: { permission: "agent.profile.update.any" }
|
|
8128
8142
|
});
|
|
8129
8143
|
var getAgentSetupScript = route({
|
|
8130
8144
|
method: "get",
|
|
@@ -8228,7 +8242,8 @@ var updateAgentProfileRoute = route({
|
|
|
8228
8242
|
})
|
|
8229
8243
|
},
|
|
8230
8244
|
404: { description: "Agent not found, or changedByAgentId names no agent" }
|
|
8231
|
-
}
|
|
8245
|
+
},
|
|
8246
|
+
rbac: { permission: "agent.profile.update.any" }
|
|
8232
8247
|
});
|
|
8233
8248
|
var updateAgentActivityRoute = route({
|
|
8234
8249
|
method: "put",
|
|
@@ -8239,7 +8254,8 @@ var updateAgentActivityRoute = route({
|
|
|
8239
8254
|
params: object2({ id: string2() }),
|
|
8240
8255
|
responses: {
|
|
8241
8256
|
204: { description: "Activity updated" }
|
|
8242
|
-
}
|
|
8257
|
+
},
|
|
8258
|
+
rbac: { ungated: "worker telemetry ingest; no user flow writes it" }
|
|
8243
8259
|
});
|
|
8244
8260
|
var getAgent = route({
|
|
8245
8261
|
method: "get",
|
|
@@ -8279,7 +8295,8 @@ var updateAgentCredentialStatusRoute = route({
|
|
|
8279
8295
|
},
|
|
8280
8296
|
400: { description: "Missing X-Runtime-Instance-ID in multi-runtime mode" },
|
|
8281
8297
|
404: { description: "Agent not found" }
|
|
8282
|
-
}
|
|
8298
|
+
},
|
|
8299
|
+
rbac: { ungated: "worker telemetry ingest; no user flow writes it" }
|
|
8283
8300
|
});
|
|
8284
8301
|
var getAgentCredentialStatusRoute = route({
|
|
8285
8302
|
method: "get",
|
|
@@ -9432,7 +9449,8 @@ var reportUsage = route({
|
|
|
9432
9449
|
400: { description: "Validation error" },
|
|
9433
9450
|
401: { description: "Unauthorized" }
|
|
9434
9451
|
},
|
|
9435
|
-
auth: { apiKey: true }
|
|
9452
|
+
auth: { apiKey: true },
|
|
9453
|
+
rbac: { ungated: "worker credential-pool bookkeeping; no user flow calls it" }
|
|
9436
9454
|
});
|
|
9437
9455
|
var SpendCapSchema = object2({
|
|
9438
9456
|
limitUsd: number2().nullable(),
|
|
@@ -9459,7 +9477,8 @@ var reportRateLimit = route({
|
|
|
9459
9477
|
400: { description: "Validation error" },
|
|
9460
9478
|
401: { description: "Unauthorized" }
|
|
9461
9479
|
},
|
|
9462
|
-
auth: { apiKey: true }
|
|
9480
|
+
auth: { apiKey: true },
|
|
9481
|
+
rbac: { ungated: "worker credential-pool bookkeeping; no user flow calls it" }
|
|
9463
9482
|
});
|
|
9464
9483
|
var reportValidation = route({
|
|
9465
9484
|
method: "post",
|
|
@@ -9850,7 +9869,10 @@ var setKeyName = route({
|
|
|
9850
9869
|
401: { description: "Unauthorized" },
|
|
9851
9870
|
404: { description: "Key not found" }
|
|
9852
9871
|
},
|
|
9853
|
-
auth: { apiKey: true }
|
|
9872
|
+
auth: { apiKey: true },
|
|
9873
|
+
rbac: {
|
|
9874
|
+
ungated: "credential display metadata on a pooled key; no verb covers it, so user roles need admin"
|
|
9875
|
+
}
|
|
9854
9876
|
});
|
|
9855
9877
|
var clearRateLimitRoute = route({
|
|
9856
9878
|
method: "post",
|
|
@@ -9879,7 +9901,8 @@ var clearRateLimitRoute = route({
|
|
|
9879
9901
|
400: { description: "Validation error" },
|
|
9880
9902
|
401: { description: "Unauthorized" }
|
|
9881
9903
|
},
|
|
9882
|
-
auth: { apiKey: true }
|
|
9904
|
+
auth: { apiKey: true },
|
|
9905
|
+
rbac: { ungated: "worker credential-pool bookkeeping; no user flow calls it" }
|
|
9883
9906
|
});
|
|
9884
9907
|
var listPlans = route({
|
|
9885
9908
|
method: "get",
|
|
@@ -10647,7 +10670,8 @@ var upsertBudgetRoute = route({
|
|
|
10647
10670
|
responses: {
|
|
10648
10671
|
200: { description: "Budget upserted", schema: BudgetSchema },
|
|
10649
10672
|
400: { description: "Validation error" }
|
|
10650
|
-
}
|
|
10673
|
+
},
|
|
10674
|
+
rbac: { ungated: "spend controls: no verb covers them, so user roles need admin" }
|
|
10651
10675
|
});
|
|
10652
10676
|
var deleteBudgetRoute = route({
|
|
10653
10677
|
method: "delete",
|
|
@@ -10659,7 +10683,8 @@ var deleteBudgetRoute = route({
|
|
|
10659
10683
|
responses: {
|
|
10660
10684
|
204: { description: "Budget deleted" },
|
|
10661
10685
|
404: { description: "Budget not configured" }
|
|
10662
|
-
}
|
|
10686
|
+
},
|
|
10687
|
+
rbac: { ungated: "spend controls: no verb covers them, so user roles need admin" }
|
|
10663
10688
|
});
|
|
10664
10689
|
async function handleBudgets(req, res, pathSegments, queryParams, _myAgentId) {
|
|
10665
10690
|
if (listBudgets.match(req.method, pathSegments)) {
|
|
@@ -12577,6 +12602,9 @@ var keepWarmRoute = route({
|
|
|
12577
12602
|
description: "Per-slot keep-warm outcomes",
|
|
12578
12603
|
schema: object2({ results: array2(slotOutcomeSchema) })
|
|
12579
12604
|
}
|
|
12605
|
+
},
|
|
12606
|
+
rbac: {
|
|
12607
|
+
ungated: "internal OAuth refresh coordination between API processes and workers; no user flow calls it"
|
|
12580
12608
|
}
|
|
12581
12609
|
});
|
|
12582
12610
|
async function handleCodexOAuthKeepWarm(req, res, pathSegments) {
|
|
@@ -12585,7 +12613,7 @@ async function handleCodexOAuthKeepWarm(req, res, pathSegments) {
|
|
|
12585
12613
|
const parsed = await keepWarmRoute.parse(req, res, pathSegments, new URLSearchParams);
|
|
12586
12614
|
if (!parsed)
|
|
12587
12615
|
return true;
|
|
12588
|
-
const apiUrl =
|
|
12616
|
+
const apiUrl = getScriptApiBaseUrl();
|
|
12589
12617
|
const apiKey = getApiKey();
|
|
12590
12618
|
const maxAgeMs = keepWarmMaxAgeMs();
|
|
12591
12619
|
const slots = await loadAllCodexOAuthSlots(apiUrl, apiKey);
|
|
@@ -13212,7 +13240,10 @@ var postContext = route({
|
|
|
13212
13240
|
400: { description: "Validation error" },
|
|
13213
13241
|
404: { description: "Task not found" }
|
|
13214
13242
|
},
|
|
13215
|
-
auth: { apiKey: true, agentId: true }
|
|
13243
|
+
auth: { apiKey: true, agentId: true },
|
|
13244
|
+
rbac: {
|
|
13245
|
+
ungated: "worker runner endpoint for its own task; the route's session posture gates any user caller"
|
|
13246
|
+
}
|
|
13216
13247
|
});
|
|
13217
13248
|
var getContext = route({
|
|
13218
13249
|
method: "get",
|
|
@@ -13407,7 +13438,8 @@ var createEventRoute = route({
|
|
|
13407
13438
|
},
|
|
13408
13439
|
400: { description: "Validation error" }
|
|
13409
13440
|
},
|
|
13410
|
-
auth: { apiKey: true }
|
|
13441
|
+
auth: { apiKey: true },
|
|
13442
|
+
rbac: { ungated: "worker telemetry ingest; no user flow writes it" }
|
|
13411
13443
|
});
|
|
13412
13444
|
var createEventsBatchRoute = route({
|
|
13413
13445
|
method: "post",
|
|
@@ -13426,7 +13458,8 @@ var createEventsBatchRoute = route({
|
|
|
13426
13458
|
},
|
|
13427
13459
|
400: { description: "Validation error" }
|
|
13428
13460
|
},
|
|
13429
|
-
auth: { apiKey: true }
|
|
13461
|
+
auth: { apiKey: true },
|
|
13462
|
+
rbac: { ungated: "worker telemetry ingest; no user flow writes it" }
|
|
13430
13463
|
});
|
|
13431
13464
|
var getEventsRoute = route({
|
|
13432
13465
|
method: "get",
|
|
@@ -18195,7 +18228,8 @@ var ensureAgentCredentialsRoute = route({
|
|
|
18195
18228
|
400: { description: "Missing agent id" },
|
|
18196
18229
|
500: { description: "Provisioning failed" }
|
|
18197
18230
|
},
|
|
18198
|
-
auth: { apiKey: true, agentId: true }
|
|
18231
|
+
auth: { apiKey: true, agentId: true },
|
|
18232
|
+
rbac: { ungated: "worker-only: needs X-Agent-ID, which a user token cannot send" }
|
|
18199
18233
|
});
|
|
18200
18234
|
var inviteMemberRoute = route({
|
|
18201
18235
|
method: "post",
|
|
@@ -19357,7 +19391,7 @@ init_zod();
|
|
|
19357
19391
|
|
|
19358
19392
|
// src/slack/app-icon.ts
|
|
19359
19393
|
init_app4();
|
|
19360
|
-
var import_web_api = __toESM(
|
|
19394
|
+
var import_web_api = __toESM(require_dist7(), 1);
|
|
19361
19395
|
var TTL_MS = 60 * 60 * 1000;
|
|
19362
19396
|
var REQUEST_TIMEOUT_MS = 2500;
|
|
19363
19397
|
var cached = null;
|
|
@@ -19601,6 +19635,9 @@ var claudeManagedTestRoute = route({
|
|
|
19601
19635
|
description: "Connection result — `{ ok: true, agentName, model }` on success or `{ ok: false, error }` on any failure (missing config, Anthropic API error). Always 200 OK.",
|
|
19602
19636
|
schema: ClaudeManagedTestResultSchema
|
|
19603
19637
|
}
|
|
19638
|
+
},
|
|
19639
|
+
rbac: {
|
|
19640
|
+
ungated: "connection test that resolves integration secrets server-side; no verb covers it, so user roles need admin"
|
|
19604
19641
|
}
|
|
19605
19642
|
});
|
|
19606
19643
|
var mcpUserConfigRoute = route({
|
|
@@ -24245,7 +24282,8 @@ var searchMemory = route({
|
|
|
24245
24282
|
schema: object2({ results: array2(MemorySearchResultItemSchema) })
|
|
24246
24283
|
},
|
|
24247
24284
|
400: { description: "Missing query or agent ID" }
|
|
24248
|
-
}
|
|
24285
|
+
},
|
|
24286
|
+
rbac: { ungated: "worker-only: needs X-Agent-ID, which a user token cannot send" }
|
|
24249
24287
|
});
|
|
24250
24288
|
var MemoryEditResultSchema = object2({
|
|
24251
24289
|
memory: AgentMemorySchema,
|
|
@@ -24288,6 +24326,7 @@ var reEmbedMemory = route({
|
|
|
24288
24326
|
summary: "Re-embed all memories using the current embedding provider",
|
|
24289
24327
|
tags: ["Memory"],
|
|
24290
24328
|
auth: { apiKey: true },
|
|
24329
|
+
rbac: { permission: "memory.reembed" },
|
|
24291
24330
|
body: object2({
|
|
24292
24331
|
agentId: string2().uuid().optional().describe("Re-embed only this agent's memories. Omit for all."),
|
|
24293
24332
|
batchSize: number2().int().min(1).max(100).default(20).describe("Memories per batch")
|
|
@@ -24678,7 +24717,8 @@ var rateMemory = route({
|
|
|
24678
24717
|
},
|
|
24679
24718
|
400: { description: "Validation error or explicit-self R6 spam-guard rejection" },
|
|
24680
24719
|
409: { description: "Duplicate explicit-self rating for (taskId, memoryId)" }
|
|
24681
|
-
}
|
|
24720
|
+
},
|
|
24721
|
+
rbac: { ungated: "worker-only: needs X-Agent-ID, which a user token cannot send" }
|
|
24682
24722
|
});
|
|
24683
24723
|
var RetrievalListRowSchema = object2({
|
|
24684
24724
|
id: string2(),
|
|
@@ -25590,6 +25630,9 @@ var createMetricRoute = route({
|
|
|
25590
25630
|
201: { description: "Metric created", schema: metricIdVersionSchema },
|
|
25591
25631
|
400: { description: "Invalid metric definition" },
|
|
25592
25632
|
409: { description: "Slug already exists for this agent" }
|
|
25633
|
+
},
|
|
25634
|
+
rbac: {
|
|
25635
|
+
ungated: "metric definitions: open to agents like the metric tools; no verb covers them, so user roles need admin"
|
|
25593
25636
|
}
|
|
25594
25637
|
});
|
|
25595
25638
|
var listMetricsRoute = route({
|
|
@@ -25639,6 +25682,9 @@ var updateMetricRoute = route({
|
|
|
25639
25682
|
responses: {
|
|
25640
25683
|
200: { description: "Metric updated", schema: metricIdVersionSchema },
|
|
25641
25684
|
404: { description: "Metric not found" }
|
|
25685
|
+
},
|
|
25686
|
+
rbac: {
|
|
25687
|
+
ungated: "metric definitions: open to agents like the metric tools; no verb covers them, so user roles need admin"
|
|
25642
25688
|
}
|
|
25643
25689
|
});
|
|
25644
25690
|
var deleteMetricRoute = route({
|
|
@@ -25651,6 +25697,9 @@ var deleteMetricRoute = route({
|
|
|
25651
25697
|
responses: {
|
|
25652
25698
|
204: { description: "Metric deleted" },
|
|
25653
25699
|
404: { description: "Metric not found" }
|
|
25700
|
+
},
|
|
25701
|
+
rbac: {
|
|
25702
|
+
ungated: "metric definitions: open to agents like the metric tools; no verb covers them, so user roles need admin"
|
|
25654
25703
|
}
|
|
25655
25704
|
});
|
|
25656
25705
|
var metricRunWidgetResultSchema = object2({
|
|
@@ -25682,6 +25731,9 @@ var runMetricRoute = route({
|
|
|
25682
25731
|
200: { description: "Metric result", schema: metricRunResultSchema },
|
|
25683
25732
|
400: { description: "Invalid or disallowed query" },
|
|
25684
25733
|
404: { description: "Metric not found" }
|
|
25734
|
+
},
|
|
25735
|
+
rbac: {
|
|
25736
|
+
ungated: "metric definitions: open to agents like the metric tools; no verb covers them, so user roles need admin"
|
|
25685
25737
|
}
|
|
25686
25738
|
});
|
|
25687
25739
|
var listMetricVersionsRoute = route({
|
|
@@ -26768,6 +26820,7 @@ init_db4();
|
|
|
26768
26820
|
init_oauth();
|
|
26769
26821
|
init_ensure_token();
|
|
26770
26822
|
init_wrapper();
|
|
26823
|
+
init_host();
|
|
26771
26824
|
var APP_USER_ID_NAMESPACE = "integration:linear:bot-app-user-id";
|
|
26772
26825
|
async function getLinearOAuthConfig() {
|
|
26773
26826
|
const app = await getOAuthApp("linear");
|
|
@@ -26787,7 +26840,7 @@ async function getLinearAuthorizationUrl(finalRedirect, userId) {
|
|
|
26787
26840
|
}
|
|
26788
26841
|
async function captureLinearAppUserId(accessToken) {
|
|
26789
26842
|
const query = `query { viewer { id organization { id } } }`;
|
|
26790
|
-
const res = await fetch("
|
|
26843
|
+
const res = await fetch(linearApiUrl("/graphql"), {
|
|
26791
26844
|
method: "POST",
|
|
26792
26845
|
headers: {
|
|
26793
26846
|
"Content-Type": "application/json",
|
|
@@ -26817,7 +26870,7 @@ async function captureLinearAppUserId(accessToken) {
|
|
|
26817
26870
|
}
|
|
26818
26871
|
async function revokeLinearToken(accessToken) {
|
|
26819
26872
|
try {
|
|
26820
|
-
const res = await fetch("
|
|
26873
|
+
const res = await fetch(linearApiUrl("/oauth/revoke"), {
|
|
26821
26874
|
method: "POST",
|
|
26822
26875
|
headers: { Authorization: `Bearer ${accessToken}` }
|
|
26823
26876
|
});
|
|
@@ -27234,6 +27287,9 @@ var acquireLockRoute = route({
|
|
|
27234
27287
|
},
|
|
27235
27288
|
409: { description: "Lock is currently held by another caller" },
|
|
27236
27289
|
400: { description: "Validation error" }
|
|
27290
|
+
},
|
|
27291
|
+
rbac: {
|
|
27292
|
+
ungated: "internal OAuth refresh coordination between API processes and workers; no user flow calls it"
|
|
27237
27293
|
}
|
|
27238
27294
|
});
|
|
27239
27295
|
var releaseLockRoute = route({
|
|
@@ -27247,6 +27303,9 @@ var releaseLockRoute = route({
|
|
|
27247
27303
|
responses: {
|
|
27248
27304
|
204: { description: "Released (a mismatched/expired owner is a no-op, also 204)" },
|
|
27249
27305
|
400: { description: "Validation error" }
|
|
27306
|
+
},
|
|
27307
|
+
rbac: {
|
|
27308
|
+
ungated: "internal OAuth refresh coordination between API processes and workers; no user flow calls it"
|
|
27250
27309
|
}
|
|
27251
27310
|
});
|
|
27252
27311
|
async function handleOAuthLocks(req, res, pathSegments, queryParams) {
|
|
@@ -28313,7 +28372,8 @@ var postTestConnection = route({
|
|
|
28313
28372
|
400: { description: "Validation error" },
|
|
28314
28373
|
401: { description: "Unauthorized" }
|
|
28315
28374
|
},
|
|
28316
|
-
auth: { apiKey: true }
|
|
28375
|
+
auth: { apiKey: true },
|
|
28376
|
+
rbac: { ungated: "reads worker-reported credential status over POST; writes nothing" }
|
|
28317
28377
|
});
|
|
28318
28378
|
async function handleStatus(req, res, pathSegments, queryParams) {
|
|
28319
28379
|
if (getStatus.match(req.method, pathSegments)) {
|
|
@@ -28718,7 +28778,10 @@ route({
|
|
|
28718
28778
|
},
|
|
28719
28779
|
401: { description: "No or invalid page-session cookie" }
|
|
28720
28780
|
},
|
|
28721
|
-
auth: { apiKey: false }
|
|
28781
|
+
auth: { apiKey: false },
|
|
28782
|
+
rbac: {
|
|
28783
|
+
ungated: "the page-session cookie is the credential; the handler allowlists the target and re-issues it to /api/*"
|
|
28784
|
+
}
|
|
28722
28785
|
});
|
|
28723
28786
|
route({
|
|
28724
28787
|
method: "put",
|
|
@@ -28734,7 +28797,10 @@ route({
|
|
|
28734
28797
|
},
|
|
28735
28798
|
401: { description: "No or invalid page-session cookie" }
|
|
28736
28799
|
},
|
|
28737
|
-
auth: { apiKey: false }
|
|
28800
|
+
auth: { apiKey: false },
|
|
28801
|
+
rbac: {
|
|
28802
|
+
ungated: "the page-session cookie is the credential; the handler allowlists the target and re-issues it to /api/*"
|
|
28803
|
+
}
|
|
28738
28804
|
});
|
|
28739
28805
|
route({
|
|
28740
28806
|
method: "delete",
|
|
@@ -28750,7 +28816,10 @@ route({
|
|
|
28750
28816
|
},
|
|
28751
28817
|
401: { description: "No or invalid page-session cookie" }
|
|
28752
28818
|
},
|
|
28753
|
-
auth: { apiKey: false }
|
|
28819
|
+
auth: { apiKey: false },
|
|
28820
|
+
rbac: {
|
|
28821
|
+
ungated: "the page-session cookie is the credential; the handler allowlists the target and re-issues it to /api/*"
|
|
28822
|
+
}
|
|
28754
28823
|
});
|
|
28755
28824
|
route({
|
|
28756
28825
|
method: "patch",
|
|
@@ -28766,7 +28835,10 @@ route({
|
|
|
28766
28835
|
},
|
|
28767
28836
|
401: { description: "No or invalid page-session cookie" }
|
|
28768
28837
|
},
|
|
28769
|
-
auth: { apiKey: false }
|
|
28838
|
+
auth: { apiKey: false },
|
|
28839
|
+
rbac: {
|
|
28840
|
+
ungated: "the page-session cookie is the credential; the handler allowlists the target and re-issues it to /api/*"
|
|
28841
|
+
}
|
|
28770
28842
|
});
|
|
28771
28843
|
var PROXY_PREFIX = "/@swarm/api/";
|
|
28772
28844
|
var PAGE_ID_REQUEST_HEADER = "x-swarm-page-id";
|
|
@@ -29376,6 +29448,9 @@ var updateSession = route({
|
|
|
29376
29448
|
responses: {
|
|
29377
29449
|
200: { description: "Session ID updated", schema: AgentTaskSchema },
|
|
29378
29450
|
404: { description: "Task not found" }
|
|
29451
|
+
},
|
|
29452
|
+
rbac: {
|
|
29453
|
+
ungated: "worker runner endpoint for its own task; the route's session posture gates any user caller"
|
|
29379
29454
|
}
|
|
29380
29455
|
});
|
|
29381
29456
|
var cancelTaskRoute = route({
|
|
@@ -29572,6 +29647,7 @@ var updateTaskProgressRoute = route({
|
|
|
29572
29647
|
session: { taskParam: "id" },
|
|
29573
29648
|
summary: "Update task progress text",
|
|
29574
29649
|
tags: ["Tasks"],
|
|
29650
|
+
rbac: { permission: "task.progress.write" },
|
|
29575
29651
|
params: object2({ id: string2() }),
|
|
29576
29652
|
body: object2({ progress: string2().min(1) }),
|
|
29577
29653
|
responses: {
|
|
@@ -29609,6 +29685,9 @@ var finishTask = route({
|
|
|
29609
29685
|
description: "Differing terminal result text was discarded",
|
|
29610
29686
|
schema: FinishTaskConflictSchema
|
|
29611
29687
|
}
|
|
29688
|
+
},
|
|
29689
|
+
rbac: {
|
|
29690
|
+
ungated: "worker runner endpoint for its own task; the route's session posture gates any user caller"
|
|
29612
29691
|
}
|
|
29613
29692
|
});
|
|
29614
29693
|
var listPausedTasks = route({
|
|
@@ -29718,6 +29797,9 @@ var supersedeTaskRoute = route({
|
|
|
29718
29797
|
400: { description: "Task not in_progress" },
|
|
29719
29798
|
403: { description: "Task belongs to another agent" },
|
|
29720
29799
|
404: { description: "Task not found" }
|
|
29800
|
+
},
|
|
29801
|
+
rbac: {
|
|
29802
|
+
ungated: "worker runner endpoint for its own task; the route's session posture gates any user caller"
|
|
29721
29803
|
}
|
|
29722
29804
|
});
|
|
29723
29805
|
var updateTaskVcsRoute = route({
|
|
@@ -29739,7 +29821,10 @@ var updateTaskVcsRoute = route({
|
|
|
29739
29821
|
403: { description: "Task belongs to another token agent" },
|
|
29740
29822
|
404: { description: "Task not found" }
|
|
29741
29823
|
},
|
|
29742
|
-
auth: { apiKey: true }
|
|
29824
|
+
auth: { apiKey: true },
|
|
29825
|
+
rbac: {
|
|
29826
|
+
ungated: "worker runner endpoint for its own task; the route's session posture gates any user caller"
|
|
29827
|
+
}
|
|
29743
29828
|
});
|
|
29744
29829
|
var updateTaskTitleRoute = route({
|
|
29745
29830
|
method: "patch",
|
|
@@ -31077,6 +31162,9 @@ var createPageRoute = route({
|
|
|
31077
31162
|
},
|
|
31078
31163
|
400: { description: "Invalid body, unknown theme, or invalid themeTokens" },
|
|
31079
31164
|
409: { description: "Slug already exists for this agent" }
|
|
31165
|
+
},
|
|
31166
|
+
rbac: {
|
|
31167
|
+
ungated: "agents publish pages like the create-page tool; no verb covers page writes, so user roles need admin"
|
|
31080
31168
|
}
|
|
31081
31169
|
});
|
|
31082
31170
|
var getPageRoute = route({
|
|
@@ -31153,6 +31241,9 @@ var updatePageRoute = route({
|
|
|
31153
31241
|
400: { description: "Unknown theme or invalid themeTokens" },
|
|
31154
31242
|
404: { description: "Page not found" },
|
|
31155
31243
|
413: { description: "Payload too large" }
|
|
31244
|
+
},
|
|
31245
|
+
rbac: {
|
|
31246
|
+
ungated: "agents publish pages like the create-page tool; no verb covers page writes, so user roles need admin"
|
|
31156
31247
|
}
|
|
31157
31248
|
});
|
|
31158
31249
|
var PageFeedbackCommentSchema = object2({
|
|
@@ -31206,7 +31297,8 @@ var deletePageRoute = route({
|
|
|
31206
31297
|
responses: {
|
|
31207
31298
|
204: { description: "Page deleted" },
|
|
31208
31299
|
404: { description: "Page not found" }
|
|
31209
|
-
}
|
|
31300
|
+
},
|
|
31301
|
+
rbac: { permission: "page.delete.any" }
|
|
31210
31302
|
});
|
|
31211
31303
|
var listPagesRoute = route({
|
|
31212
31304
|
method: "get",
|
|
@@ -34639,7 +34731,8 @@ var commitCursorsRoute = route({
|
|
|
34639
34731
|
schema: object2({ success: literal2(true), committed: number2().int().nonnegative() })
|
|
34640
34732
|
},
|
|
34641
34733
|
400: { description: "Invalid request" }
|
|
34642
|
-
}
|
|
34734
|
+
},
|
|
34735
|
+
rbac: { ungated: "lead worker commits its channel-activity cursors; no user flow calls it" }
|
|
34643
34736
|
});
|
|
34644
34737
|
async function handlePoll(req, res, pathSegments, queryParams, myAgentId) {
|
|
34645
34738
|
const runtimeInstanceId = ((h) => Array.isArray(h) ? h[0] : h)(req.headers["x-runtime-instance-id"]);
|
|
@@ -35388,7 +35481,8 @@ var insertPricing = route({
|
|
|
35388
35481
|
201: { description: "Pricing row inserted", schema: PricingRowSchema },
|
|
35389
35482
|
400: { description: "Validation error" },
|
|
35390
35483
|
409: { description: "Duplicate (provider, model, tokenClass, effectiveFrom)" }
|
|
35391
|
-
}
|
|
35484
|
+
},
|
|
35485
|
+
rbac: { ungated: "spend controls: no verb covers them, so user roles need admin" }
|
|
35392
35486
|
});
|
|
35393
35487
|
var deletePricing = route({
|
|
35394
35488
|
method: "delete",
|
|
@@ -35402,7 +35496,8 @@ var deletePricing = route({
|
|
|
35402
35496
|
responses: {
|
|
35403
35497
|
204: { description: "Pricing row deleted" },
|
|
35404
35498
|
404: { description: "Pricing row not found" }
|
|
35405
|
-
}
|
|
35499
|
+
},
|
|
35500
|
+
rbac: { ungated: "spend controls: no verb covers them, so user roles need admin" }
|
|
35406
35501
|
});
|
|
35407
35502
|
async function handlePricing(req, res, pathSegments, queryParams, _myAgentId) {
|
|
35408
35503
|
if (listAllPricing.match(req.method, pathSegments)) {
|
|
@@ -35502,8 +35597,12 @@ init_registry3();
|
|
|
35502
35597
|
init_resolver();
|
|
35503
35598
|
init_types5();
|
|
35504
35599
|
init_template2();
|
|
35600
|
+
init_request_principal();
|
|
35505
35601
|
init_route_def();
|
|
35506
35602
|
init_utils2();
|
|
35603
|
+
function templateOwner(template) {
|
|
35604
|
+
return { kind: "owned", ownerAgentId: template?.scope === "agent" ? template.scopeId : null };
|
|
35605
|
+
}
|
|
35507
35606
|
var VariableDefinitionSchema = object2({
|
|
35508
35607
|
name: string2(),
|
|
35509
35608
|
description: string2(),
|
|
@@ -35592,7 +35691,8 @@ var previewRoute = route({
|
|
|
35592
35691
|
},
|
|
35593
35692
|
400: { description: "Validation error" }
|
|
35594
35693
|
},
|
|
35595
|
-
auth: { apiKey: true }
|
|
35694
|
+
auth: { apiKey: true },
|
|
35695
|
+
rbac: { ungated: "read-only render over POST; open to agents like the prompt-template tools" }
|
|
35596
35696
|
});
|
|
35597
35697
|
var renderRoute = route({
|
|
35598
35698
|
method: "post",
|
|
@@ -35610,7 +35710,8 @@ var renderRoute = route({
|
|
|
35610
35710
|
200: { description: "Fully resolved and interpolated template", schema: ResolveResultSchema },
|
|
35611
35711
|
400: { description: "Validation error" }
|
|
35612
35712
|
},
|
|
35613
|
-
auth: { apiKey: true }
|
|
35713
|
+
auth: { apiKey: true },
|
|
35714
|
+
rbac: { ungated: "read-only render over POST; open to agents like the prompt-template tools" }
|
|
35614
35715
|
});
|
|
35615
35716
|
var checkoutRoute = route({
|
|
35616
35717
|
method: "post",
|
|
@@ -35628,7 +35729,8 @@ var checkoutRoute = route({
|
|
|
35628
35729
|
400: { description: "Validation error" },
|
|
35629
35730
|
404: { description: "Template or version not found" }
|
|
35630
35731
|
},
|
|
35631
|
-
auth: { apiKey: true }
|
|
35732
|
+
auth: { apiKey: true },
|
|
35733
|
+
rbac: { permission: "prompt-template.write" }
|
|
35632
35734
|
});
|
|
35633
35735
|
var resetRoute = route({
|
|
35634
35736
|
method: "post",
|
|
@@ -35644,7 +35746,8 @@ var resetRoute = route({
|
|
|
35644
35746
|
},
|
|
35645
35747
|
404: { description: "Template not found or no code default available" }
|
|
35646
35748
|
},
|
|
35647
|
-
auth: { apiKey: true }
|
|
35749
|
+
auth: { apiKey: true },
|
|
35750
|
+
rbac: { permission: "prompt-template.write" }
|
|
35648
35751
|
});
|
|
35649
35752
|
var getByIdRoute = route({
|
|
35650
35753
|
method: "get",
|
|
@@ -35680,7 +35783,8 @@ var deleteByIdRoute = route({
|
|
|
35680
35783
|
400: { description: "Cannot delete default template" },
|
|
35681
35784
|
404: { description: "Template not found" }
|
|
35682
35785
|
},
|
|
35683
|
-
auth: { apiKey: true }
|
|
35786
|
+
auth: { apiKey: true },
|
|
35787
|
+
rbac: { permission: "prompt-template.write" }
|
|
35684
35788
|
});
|
|
35685
35789
|
var listRoute3 = route({
|
|
35686
35790
|
method: "get",
|
|
@@ -35724,7 +35828,8 @@ var upsertRoute = route({
|
|
|
35724
35828
|
},
|
|
35725
35829
|
400: { description: "Validation error" }
|
|
35726
35830
|
},
|
|
35727
|
-
auth: { apiKey: true }
|
|
35831
|
+
auth: { apiKey: true },
|
|
35832
|
+
rbac: { permission: "prompt-template.write" }
|
|
35728
35833
|
});
|
|
35729
35834
|
async function handlePromptTemplates(req, res, pathSegments, queryParams) {
|
|
35730
35835
|
if (resolvedRoute.match(req.method, pathSegments)) {
|
|
@@ -35796,6 +35901,10 @@ ${templateBody}` : templateBody;
|
|
|
35796
35901
|
const parsed = await checkoutRoute.parse(req, res, pathSegments, queryParams);
|
|
35797
35902
|
if (!parsed)
|
|
35798
35903
|
return true;
|
|
35904
|
+
const target = await getPromptTemplateById2(parsed.params.id);
|
|
35905
|
+
if (await refuseAgentTokenWithout(req, res, "prompt-template.write", templateOwner(target))) {
|
|
35906
|
+
return true;
|
|
35907
|
+
}
|
|
35799
35908
|
try {
|
|
35800
35909
|
const template = await checkoutPromptTemplate2(parsed.params.id, parsed.body.version);
|
|
35801
35910
|
checkoutRoute.respond(res, 200, { template: toPromptTemplateResponse(template) });
|
|
@@ -35818,6 +35927,9 @@ ${templateBody}` : templateBody;
|
|
|
35818
35927
|
jsonError(res, `Prompt template ${parsed.params.id} not found`, 404);
|
|
35819
35928
|
return true;
|
|
35820
35929
|
}
|
|
35930
|
+
if (await refuseAgentTokenWithout(req, res, "prompt-template.write", templateOwner(existing))) {
|
|
35931
|
+
return true;
|
|
35932
|
+
}
|
|
35821
35933
|
const definition = getTemplateDefinition(existing.eventType);
|
|
35822
35934
|
if (!definition) {
|
|
35823
35935
|
jsonError(res, `No code default found for event type "${existing.eventType}"`, 404);
|
|
@@ -35849,6 +35961,10 @@ ${templateBody}` : templateBody;
|
|
|
35849
35961
|
const parsed = await deleteByIdRoute.parse(req, res, pathSegments, queryParams);
|
|
35850
35962
|
if (!parsed)
|
|
35851
35963
|
return true;
|
|
35964
|
+
const target = await getPromptTemplateById2(parsed.params.id);
|
|
35965
|
+
if (await refuseAgentTokenWithout(req, res, "prompt-template.write", templateOwner(target))) {
|
|
35966
|
+
return true;
|
|
35967
|
+
}
|
|
35852
35968
|
try {
|
|
35853
35969
|
const deleted = await deletePromptTemplate2(parsed.params.id);
|
|
35854
35970
|
if (!deleted) {
|
|
@@ -35897,6 +36013,9 @@ ${templateBody}` : templateBody;
|
|
|
35897
36013
|
jsonError(res, "Agent/repo scope requires scopeId", 400);
|
|
35898
36014
|
return true;
|
|
35899
36015
|
}
|
|
36016
|
+
if (await refuseAgentTokenWithout(req, res, "prompt-template.write", templateOwner({ scope, scopeId: scopeId ?? null }))) {
|
|
36017
|
+
return true;
|
|
36018
|
+
}
|
|
35900
36019
|
try {
|
|
35901
36020
|
const template = await getDbClient2().transaction(async () => upsertPromptTemplate2({
|
|
35902
36021
|
eventType,
|
|
@@ -39815,6 +39934,9 @@ var createSchedule = route({
|
|
|
39815
39934
|
201: { description: "Schedule created", schema: ScheduledTaskSchema },
|
|
39816
39935
|
400: { description: "Validation error" },
|
|
39817
39936
|
409: { description: "Duplicate name" }
|
|
39937
|
+
},
|
|
39938
|
+
rbac: {
|
|
39939
|
+
ungated: "matches PATCH /api/schedules/{id}: bearer-authenticated agents may manage schedules"
|
|
39818
39940
|
}
|
|
39819
39941
|
});
|
|
39820
39942
|
var runScheduleNow = route({
|
|
@@ -39835,7 +39957,8 @@ var runScheduleNow = route({
|
|
|
39835
39957
|
},
|
|
39836
39958
|
400: { description: "Schedule is disabled" },
|
|
39837
39959
|
404: { description: "Schedule not found" }
|
|
39838
|
-
}
|
|
39960
|
+
},
|
|
39961
|
+
rbac: { permission: "schedule.run.any" }
|
|
39839
39962
|
});
|
|
39840
39963
|
var listSchedules = route({
|
|
39841
39964
|
method: "get",
|
|
@@ -39897,6 +40020,9 @@ var updateSchedule = route({
|
|
|
39897
40020
|
403: { description: "Deferral or target owned by another agent" },
|
|
39898
40021
|
404: { description: "Schedule not found" },
|
|
39899
40022
|
409: { description: "Duplicate name" }
|
|
40023
|
+
},
|
|
40024
|
+
rbac: {
|
|
40025
|
+
ungated: "matches PATCH /api/schedules/{id}: bearer-authenticated agents may manage schedules"
|
|
39900
40026
|
}
|
|
39901
40027
|
});
|
|
39902
40028
|
var patchSchedule = route({
|
|
@@ -39929,6 +40055,9 @@ var deleteSchedule = route({
|
|
|
39929
40055
|
responses: {
|
|
39930
40056
|
200: { description: "Schedule deleted", schema: object2({ success: literal2(true) }) },
|
|
39931
40057
|
404: { description: "Schedule not found" }
|
|
40058
|
+
},
|
|
40059
|
+
rbac: {
|
|
40060
|
+
ungated: "matches PATCH /api/schedules/{id}: bearer-authenticated agents may manage schedules"
|
|
39932
40061
|
}
|
|
39933
40062
|
});
|
|
39934
40063
|
async function handleSchedules(req, res, pathSegments, queryParams, myAgentId) {
|
|
@@ -42690,6 +42819,9 @@ var deleteScriptRunRoute = route({
|
|
|
42690
42819
|
responses: {
|
|
42691
42820
|
204: { description: "Script run cancelled, or already terminal" },
|
|
42692
42821
|
404: { description: "Script run not found" }
|
|
42822
|
+
},
|
|
42823
|
+
rbac: {
|
|
42824
|
+
ungated: "script workflow runs: open to agents like the script tools; no verb covers cancel, so user roles need admin"
|
|
42693
42825
|
}
|
|
42694
42826
|
});
|
|
42695
42827
|
var getInternalStepRoute = route({
|
|
@@ -42718,6 +42850,9 @@ var postInternalStepRoute = route({
|
|
|
42718
42850
|
responses: {
|
|
42719
42851
|
201: { description: "Journal step written", schema: object2({ ok: literal2(true) }) },
|
|
42720
42852
|
404: { description: "Script run not found" }
|
|
42853
|
+
},
|
|
42854
|
+
rbac: {
|
|
42855
|
+
ungated: "script-run subprocess callback authenticated by the run credential; no user flow calls it"
|
|
42721
42856
|
}
|
|
42722
42857
|
});
|
|
42723
42858
|
var heartbeatRoute = route({
|
|
@@ -42731,6 +42866,9 @@ var heartbeatRoute = route({
|
|
|
42731
42866
|
responses: {
|
|
42732
42867
|
204: { description: "Heartbeat recorded" },
|
|
42733
42868
|
404: { description: "Script run not found" }
|
|
42869
|
+
},
|
|
42870
|
+
rbac: {
|
|
42871
|
+
ungated: "script-run subprocess callback authenticated by the run credential; no user flow calls it"
|
|
42734
42872
|
}
|
|
42735
42873
|
});
|
|
42736
42874
|
var statusRoute2 = route({
|
|
@@ -42745,6 +42883,9 @@ var statusRoute2 = route({
|
|
|
42745
42883
|
responses: {
|
|
42746
42884
|
204: { description: "Status updated" },
|
|
42747
42885
|
404: { description: "Script run not found" }
|
|
42886
|
+
},
|
|
42887
|
+
rbac: {
|
|
42888
|
+
ungated: "script-run subprocess callback authenticated by the run credential; no user flow calls it"
|
|
42748
42889
|
}
|
|
42749
42890
|
});
|
|
42750
42891
|
var rawLlmRoute = route({
|
|
@@ -42758,6 +42899,9 @@ var rawLlmRoute = route({
|
|
|
42758
42899
|
responses: {
|
|
42759
42900
|
200: { description: "LLM call completed", schema: RawLlmOutputSchema },
|
|
42760
42901
|
500: { description: "LLM call failed" }
|
|
42902
|
+
},
|
|
42903
|
+
rbac: {
|
|
42904
|
+
ungated: "script-run subprocess callback authenticated by the run credential; no user flow calls it"
|
|
42761
42905
|
}
|
|
42762
42906
|
});
|
|
42763
42907
|
var agentTaskRoute = route({
|
|
@@ -42785,6 +42929,9 @@ var agentTaskRoute = route({
|
|
|
42785
42929
|
404: { description: "Script run not found" },
|
|
42786
42930
|
409: { description: "Agent task failed, was cancelled, or was superseded" },
|
|
42787
42931
|
422: { description: "Blocked by the follow-up re-delegation guard" }
|
|
42932
|
+
},
|
|
42933
|
+
rbac: {
|
|
42934
|
+
ungated: "script-run subprocess callback authenticated by the run credential; no user flow calls it"
|
|
42788
42935
|
}
|
|
42789
42936
|
});
|
|
42790
42937
|
async function stepParentRefusal(runAgentId, parentTaskId) {
|
|
@@ -43574,7 +43721,8 @@ var runRoute = route({
|
|
|
43574
43721
|
404: { description: "Script not found" },
|
|
43575
43722
|
409: { description: "Object busy, re-entry, or lease lost" },
|
|
43576
43723
|
501: { description: "workspace-rw scripts are not supported in v1" }
|
|
43577
|
-
}
|
|
43724
|
+
},
|
|
43725
|
+
rbac: { permission: "script.run" }
|
|
43578
43726
|
});
|
|
43579
43727
|
var searchRoute = route({
|
|
43580
43728
|
method: "post",
|
|
@@ -44539,7 +44687,8 @@ var createSessionLogsRoute = route({
|
|
|
44539
44687
|
schema: object2({ success: literal2(true), count: number2().int().nonnegative() })
|
|
44540
44688
|
},
|
|
44541
44689
|
400: { description: "Validation error" }
|
|
44542
|
-
}
|
|
44690
|
+
},
|
|
44691
|
+
rbac: { ungated: "worker telemetry ingest; no user flow writes it" }
|
|
44543
44692
|
});
|
|
44544
44693
|
var getSessionLogsByTask = route({
|
|
44545
44694
|
method: "get",
|
|
@@ -44602,7 +44751,8 @@ var createSessionCostRoute = route({
|
|
|
44602
44751
|
400: { description: "Validation error" },
|
|
44603
44752
|
403: { description: "Untrusted session attribution" },
|
|
44604
44753
|
409: { description: "Session identity conflict" }
|
|
44605
|
-
}
|
|
44754
|
+
},
|
|
44755
|
+
rbac: { ungated: "worker telemetry ingest; no user flow writes it" }
|
|
44606
44756
|
});
|
|
44607
44757
|
var getSessionCostSummaryRoute = route({
|
|
44608
44758
|
method: "get",
|
|
@@ -48104,7 +48254,8 @@ var jiraRefresh = route({
|
|
|
48104
48254
|
409: { description: "Jira not connected (no refresh token stored)" },
|
|
48105
48255
|
500: { description: "Refresh failed (e.g. revoked grant, network error)" },
|
|
48106
48256
|
503: { description: "Jira integration not configured" }
|
|
48107
|
-
}
|
|
48257
|
+
},
|
|
48258
|
+
rbac: { permission: "oauth-authorization.manage" }
|
|
48108
48259
|
});
|
|
48109
48260
|
var jiraWebhook = route({
|
|
48110
48261
|
method: "post",
|
|
@@ -48118,7 +48269,8 @@ var jiraWebhook = route({
|
|
|
48118
48269
|
200: { description: "Event accepted", schema: JiraWebhookEventResultSchema },
|
|
48119
48270
|
401: { description: "Invalid URL token" },
|
|
48120
48271
|
503: { description: "Jira webhook handler not configured" }
|
|
48121
|
-
}
|
|
48272
|
+
},
|
|
48273
|
+
rbac: { ungated: "inbound Jira webhook: the URL token is the credential, no bearer principal" }
|
|
48122
48274
|
});
|
|
48123
48275
|
var jiraWebhookRegister = route({
|
|
48124
48276
|
method: "post",
|
|
@@ -48550,7 +48702,8 @@ var linearRefresh = route({
|
|
|
48550
48702
|
409: { description: "Linear not connected (no refresh token stored)" },
|
|
48551
48703
|
500: { description: "Refresh failed" },
|
|
48552
48704
|
503: { description: "Linear integration not configured" }
|
|
48553
|
-
}
|
|
48705
|
+
},
|
|
48706
|
+
rbac: { permission: "oauth-authorization.manage" }
|
|
48554
48707
|
});
|
|
48555
48708
|
var linearWebhook = route({
|
|
48556
48709
|
method: "post",
|
|
@@ -48563,6 +48716,9 @@ var linearWebhook = route({
|
|
|
48563
48716
|
200: { description: "Event accepted", schema: LinearWebhookAcceptedSchema },
|
|
48564
48717
|
401: { description: "Invalid signature" },
|
|
48565
48718
|
503: { description: "Linear integration not configured" }
|
|
48719
|
+
},
|
|
48720
|
+
rbac: {
|
|
48721
|
+
ungated: "inbound webhook: the provider signature is the credential, no bearer principal"
|
|
48566
48722
|
}
|
|
48567
48723
|
});
|
|
48568
48724
|
var linearDisconnect = route({
|
|
@@ -48993,6 +49149,7 @@ var listUsers = route({
|
|
|
48993
49149
|
},
|
|
48994
49150
|
auth: { apiKey: true }
|
|
48995
49151
|
});
|
|
49152
|
+
var USER_ADMIN_UNGATED = "creates users or binds identities, which can reach a grant-all admin (operator-only admission)";
|
|
48996
49153
|
var createUserRoute = route({
|
|
48997
49154
|
method: "post",
|
|
48998
49155
|
path: "/api/users",
|
|
@@ -49022,7 +49179,8 @@ var createUserRoute = route({
|
|
|
49022
49179
|
401: { description: "Unauthorized" },
|
|
49023
49180
|
409: { description: "A user with this email already exists (user_exists)" }
|
|
49024
49181
|
},
|
|
49025
|
-
auth: { apiKey: true }
|
|
49182
|
+
auth: { apiKey: true },
|
|
49183
|
+
rbac: { ungated: USER_ADMIN_UNGATED }
|
|
49026
49184
|
});
|
|
49027
49185
|
var listUnmapped = route({
|
|
49028
49186
|
method: "get",
|
|
@@ -49072,7 +49230,8 @@ var resolveUnmapped = route({
|
|
|
49072
49230
|
},
|
|
49073
49231
|
404: { description: "Target user not found" }
|
|
49074
49232
|
},
|
|
49075
|
-
auth: { apiKey: true }
|
|
49233
|
+
auth: { apiKey: true },
|
|
49234
|
+
rbac: { ungated: USER_ADMIN_UNGATED }
|
|
49076
49235
|
});
|
|
49077
49236
|
var DISMISS_RBAC = {
|
|
49078
49237
|
ungated: "same posture as POST /api/users/unmapped/{kind}/{externalId}/resolve: bearer auth, guests rejected; it links and trusts nothing"
|
|
@@ -49169,7 +49328,8 @@ var updateUserRoute = route({
|
|
|
49169
49328
|
},
|
|
49170
49329
|
404: { description: "User not found" }
|
|
49171
49330
|
},
|
|
49172
|
-
auth: { apiKey: true }
|
|
49331
|
+
auth: { apiKey: true },
|
|
49332
|
+
rbac: { ungated: USER_ADMIN_UNGATED }
|
|
49173
49333
|
});
|
|
49174
49334
|
var mintUserMcpTokenRoute = route({
|
|
49175
49335
|
method: "post",
|
|
@@ -49197,7 +49357,10 @@ var mintUserMcpTokenRoute = route({
|
|
|
49197
49357
|
},
|
|
49198
49358
|
404: { description: "User not found" }
|
|
49199
49359
|
},
|
|
49200
|
-
auth: { apiKey: true }
|
|
49360
|
+
auth: { apiKey: true },
|
|
49361
|
+
rbac: {
|
|
49362
|
+
ungated: "mints another user's bearer token, so no scoped grant admits it (operator-only admission)"
|
|
49363
|
+
}
|
|
49201
49364
|
});
|
|
49202
49365
|
var revokeUserMcpTokenRoute = route({
|
|
49203
49366
|
method: "delete",
|
|
@@ -49214,7 +49377,8 @@ var revokeUserMcpTokenRoute = route({
|
|
|
49214
49377
|
401: { description: "Unauthorized" },
|
|
49215
49378
|
404: { description: "User or token not found" }
|
|
49216
49379
|
},
|
|
49217
|
-
auth: { apiKey: true }
|
|
49380
|
+
auth: { apiKey: true },
|
|
49381
|
+
rbac: { ungated: "same posture as POST /api/users/{id}/mcp-tokens (operator-only admission)" }
|
|
49218
49382
|
});
|
|
49219
49383
|
var createConnectorCodeRoute = route({
|
|
49220
49384
|
method: "post",
|
|
@@ -49382,7 +49546,8 @@ var mergeUsersRoute = route({
|
|
|
49382
49546
|
description: "Source is the last active admin (last_admin), or a merge job for the source or target is still running (merge_in_progress)"
|
|
49383
49547
|
}
|
|
49384
49548
|
},
|
|
49385
|
-
auth: { apiKey: true }
|
|
49549
|
+
auth: { apiKey: true },
|
|
49550
|
+
rbac: { ungated: USER_ADMIN_UNGATED }
|
|
49386
49551
|
});
|
|
49387
49552
|
var listMergeJobsRoute = route({
|
|
49388
49553
|
method: "get",
|
|
@@ -49462,7 +49627,8 @@ var addIdentityRoute = route({
|
|
|
49462
49627
|
404: { description: "User not found" },
|
|
49463
49628
|
409: { description: "The (kind, externalId) identity is already linked (identity_taken)" }
|
|
49464
49629
|
},
|
|
49465
|
-
auth: { apiKey: true }
|
|
49630
|
+
auth: { apiKey: true },
|
|
49631
|
+
rbac: { ungated: USER_ADMIN_UNGATED }
|
|
49466
49632
|
});
|
|
49467
49633
|
var deleteIdentityRoute = route({
|
|
49468
49634
|
method: "delete",
|
|
@@ -49479,7 +49645,8 @@ var deleteIdentityRoute = route({
|
|
|
49479
49645
|
401: { description: "Unauthorized" },
|
|
49480
49646
|
404: { description: "User not found" }
|
|
49481
49647
|
},
|
|
49482
|
-
auth: { apiKey: true }
|
|
49648
|
+
auth: { apiKey: true },
|
|
49649
|
+
rbac: { ungated: USER_ADMIN_UNGATED }
|
|
49483
49650
|
});
|
|
49484
49651
|
function writeGuarded(actor, targetUserId, write) {
|
|
49485
49652
|
return getDbClient2().transaction(async () => {
|
|
@@ -50604,6 +50771,9 @@ var githubWebhook = route({
|
|
|
50604
50771
|
},
|
|
50605
50772
|
401: { description: "Invalid signature" },
|
|
50606
50773
|
503: { description: "GitHub integration not configured" }
|
|
50774
|
+
},
|
|
50775
|
+
rbac: {
|
|
50776
|
+
ungated: "inbound webhook: the provider signature is the credential, no bearer principal"
|
|
50607
50777
|
}
|
|
50608
50778
|
});
|
|
50609
50779
|
var gitlabWebhook = route({
|
|
@@ -50617,6 +50787,9 @@ var gitlabWebhook = route({
|
|
|
50617
50787
|
200: { description: "Event processed", schema: WebhookDispatchResultSchema },
|
|
50618
50788
|
401: { description: "Invalid token" },
|
|
50619
50789
|
503: { description: "GitLab integration not configured" }
|
|
50790
|
+
},
|
|
50791
|
+
rbac: {
|
|
50792
|
+
ungated: "inbound webhook: the provider signature is the credential, no bearer principal"
|
|
50620
50793
|
}
|
|
50621
50794
|
});
|
|
50622
50795
|
var azureDevOpsWebhook = route({
|
|
@@ -50664,6 +50837,9 @@ var agentmailWebhook = route({
|
|
|
50664
50837
|
200: { description: "Event received", schema: object2({ received: literal2(true) }) },
|
|
50665
50838
|
401: { description: "Invalid signature" },
|
|
50666
50839
|
503: { description: "AgentMail integration not configured or inbound archive unavailable" }
|
|
50840
|
+
},
|
|
50841
|
+
rbac: {
|
|
50842
|
+
ungated: "inbound webhook: the provider signature is the credential, no bearer principal"
|
|
50667
50843
|
}
|
|
50668
50844
|
});
|
|
50669
50845
|
var kapsoWebhook = route({
|
|
@@ -50683,6 +50859,9 @@ var kapsoWebhook = route({
|
|
|
50683
50859
|
},
|
|
50684
50860
|
401: { description: "Invalid signature" },
|
|
50685
50861
|
503: { description: "Kapso integration not configured" }
|
|
50862
|
+
},
|
|
50863
|
+
rbac: {
|
|
50864
|
+
ungated: "inbound webhook: the provider signature is the credential, no bearer principal"
|
|
50686
50865
|
}
|
|
50687
50866
|
});
|
|
50688
50867
|
var chatSdkWebhook = route({
|
|
@@ -51430,6 +51609,7 @@ async function handleWebhooks(req, res, pathSegments) {
|
|
|
51430
51609
|
init_zod();
|
|
51431
51610
|
init_db4();
|
|
51432
51611
|
init_event_waits();
|
|
51612
|
+
init_post_bridge();
|
|
51433
51613
|
init_event_bus();
|
|
51434
51614
|
init_route_def();
|
|
51435
51615
|
init_utils2();
|
|
@@ -51455,10 +51635,13 @@ var runScopedSignalRoute = route({
|
|
|
51455
51635
|
})
|
|
51456
51636
|
},
|
|
51457
51637
|
404: { description: "Workflow run not found" },
|
|
51458
|
-
403: { description: "Event name is reserved for provider webhooks" },
|
|
51638
|
+
403: { description: "Event name is reserved for provider webhooks or server-emitted events" },
|
|
51459
51639
|
400: { description: "Validation error" }
|
|
51460
51640
|
},
|
|
51461
|
-
auth: { apiKey: true }
|
|
51641
|
+
auth: { apiKey: true },
|
|
51642
|
+
rbac: {
|
|
51643
|
+
ungated: "workflow runs: open to agents like the workflow tools; no verb covers them, so user roles need admin"
|
|
51644
|
+
}
|
|
51462
51645
|
});
|
|
51463
51646
|
var globalSignalRoute = route({
|
|
51464
51647
|
method: "post",
|
|
@@ -51479,19 +51662,31 @@ var globalSignalRoute = route({
|
|
|
51479
51662
|
name: string2()
|
|
51480
51663
|
})
|
|
51481
51664
|
},
|
|
51482
|
-
403: { description: "Event name is reserved for provider webhooks" },
|
|
51665
|
+
403: { description: "Event name is reserved for provider webhooks or server-emitted events" },
|
|
51483
51666
|
400: { description: "Validation error" }
|
|
51484
51667
|
},
|
|
51485
|
-
auth: { apiKey: true }
|
|
51668
|
+
auth: { apiKey: true },
|
|
51669
|
+
rbac: {
|
|
51670
|
+
ungated: "workflow runs: open to agents like the workflow tools; no verb covers them, so user roles need admin"
|
|
51671
|
+
}
|
|
51486
51672
|
});
|
|
51487
51673
|
var RESERVED_EVENT_MESSAGE = "Event name is reserved for provider webhooks";
|
|
51674
|
+
var SERVER_EVENT_MESSAGE = "Event name is reserved for server-emitted events";
|
|
51675
|
+
function reservedEventError(name) {
|
|
51676
|
+
if (isReservedProviderEvent(name))
|
|
51677
|
+
return RESERVED_EVENT_MESSAGE;
|
|
51678
|
+
if (isExtensionBridgedEvent(name))
|
|
51679
|
+
return SERVER_EVENT_MESSAGE;
|
|
51680
|
+
return null;
|
|
51681
|
+
}
|
|
51488
51682
|
async function handleWorkflowEvents(req, res, pathSegments, queryParams) {
|
|
51489
51683
|
if (runScopedSignalRoute.match(req.method, pathSegments)) {
|
|
51490
51684
|
const parsed = await runScopedSignalRoute.parse(req, res, pathSegments, queryParams);
|
|
51491
51685
|
if (!parsed)
|
|
51492
51686
|
return true;
|
|
51493
|
-
|
|
51494
|
-
|
|
51687
|
+
const reserved = reservedEventError(parsed.body.name);
|
|
51688
|
+
if (reserved) {
|
|
51689
|
+
jsonError(res, reserved, 403);
|
|
51495
51690
|
return true;
|
|
51496
51691
|
}
|
|
51497
51692
|
const run = await getWorkflowRun2(parsed.params.runId);
|
|
@@ -51512,8 +51707,9 @@ async function handleWorkflowEvents(req, res, pathSegments, queryParams) {
|
|
|
51512
51707
|
const parsed = await globalSignalRoute.parse(req, res, pathSegments, queryParams);
|
|
51513
51708
|
if (!parsed)
|
|
51514
51709
|
return true;
|
|
51515
|
-
|
|
51516
|
-
|
|
51710
|
+
const reserved = reservedEventError(parsed.body.name);
|
|
51711
|
+
if (reserved) {
|
|
51712
|
+
jsonError(res, reserved, 403);
|
|
51517
51713
|
return true;
|
|
51518
51714
|
}
|
|
51519
51715
|
workflowEventBus2.emit(parsed.body.name, parsed.body.payload ?? {});
|
|
@@ -51637,6 +51833,9 @@ var createWorkflowRoute = route({
|
|
|
51637
51833
|
403: { description: "Env var or secret input requires config.read.secrets" },
|
|
51638
51834
|
409: { description: "Idempotency-Key was already used for a different request" },
|
|
51639
51835
|
410: { description: "The workflow created under this Idempotency-Key was deleted" }
|
|
51836
|
+
},
|
|
51837
|
+
rbac: {
|
|
51838
|
+
ungated: "workflow definitions: open to agents like the workflow tools; no verb covers them, so user roles need admin"
|
|
51640
51839
|
}
|
|
51641
51840
|
});
|
|
51642
51841
|
var getWorkflowRoute = route({
|
|
@@ -51688,6 +51887,9 @@ var updateWorkflowRoute = route({
|
|
|
51688
51887
|
400: { description: "Invalid definition" },
|
|
51689
51888
|
403: { description: "Env var or secret input requires config.read.secrets" },
|
|
51690
51889
|
404: { description: "Workflow not found" }
|
|
51890
|
+
},
|
|
51891
|
+
rbac: {
|
|
51892
|
+
ungated: "workflow definitions: open to agents like the workflow tools; no verb covers them, so user roles need admin"
|
|
51691
51893
|
}
|
|
51692
51894
|
});
|
|
51693
51895
|
var patchWorkflowRoute = route({
|
|
@@ -51706,6 +51908,9 @@ var patchWorkflowRoute = route({
|
|
|
51706
51908
|
400: { description: "Invalid patch or resulting definition" },
|
|
51707
51909
|
403: { description: "Stored env var or secret input requires config.read.secrets" },
|
|
51708
51910
|
404: { description: "Workflow not found" }
|
|
51911
|
+
},
|
|
51912
|
+
rbac: {
|
|
51913
|
+
ungated: "workflow definitions: open to agents like the workflow tools; no verb covers them, so user roles need admin"
|
|
51709
51914
|
}
|
|
51710
51915
|
});
|
|
51711
51916
|
var patchWorkflowNodeRoute = route({
|
|
@@ -51724,6 +51929,9 @@ var patchWorkflowNodeRoute = route({
|
|
|
51724
51929
|
400: { description: "Invalid patch or resulting definition" },
|
|
51725
51930
|
403: { description: "Stored env var or secret input requires config.read.secrets" },
|
|
51726
51931
|
404: { description: "Workflow or node not found" }
|
|
51932
|
+
},
|
|
51933
|
+
rbac: {
|
|
51934
|
+
ungated: "workflow definitions: open to agents like the workflow tools; no verb covers them, so user roles need admin"
|
|
51727
51935
|
}
|
|
51728
51936
|
});
|
|
51729
51937
|
var deleteWorkflowRoute = route({
|
|
@@ -51736,6 +51944,9 @@ var deleteWorkflowRoute = route({
|
|
|
51736
51944
|
responses: {
|
|
51737
51945
|
204: { description: "Workflow deleted" },
|
|
51738
51946
|
404: { description: "Workflow not found" }
|
|
51947
|
+
},
|
|
51948
|
+
rbac: {
|
|
51949
|
+
ungated: "workflow definitions: open to agents like the workflow tools; no verb covers them, so user roles need admin"
|
|
51739
51950
|
}
|
|
51740
51951
|
});
|
|
51741
51952
|
var triggerWorkflowRoute = route({
|
|
@@ -51760,6 +51971,9 @@ var triggerWorkflowRoute = route({
|
|
|
51760
51971
|
404: { description: "Workflow not found" },
|
|
51761
51972
|
409: { description: "Idempotency-Key was already used for a different request" },
|
|
51762
51973
|
410: { description: "The workflow triggered under this Idempotency-Key was deleted" }
|
|
51974
|
+
},
|
|
51975
|
+
rbac: {
|
|
51976
|
+
ungated: "workflow runs: open to agents like the workflow tools; no verb covers them, so user roles need admin"
|
|
51763
51977
|
}
|
|
51764
51978
|
});
|
|
51765
51979
|
var validateTriggerRoute = route({
|
|
@@ -51776,6 +51990,9 @@ var validateTriggerRoute = route({
|
|
|
51776
51990
|
},
|
|
51777
51991
|
400: { description: "Payload failed validation; body matches the TriggerSchemaError contract" },
|
|
51778
51992
|
404: { description: "Workflow not found" }
|
|
51993
|
+
},
|
|
51994
|
+
rbac: {
|
|
51995
|
+
ungated: "workflow runs: open to agents like the workflow tools; no verb covers them, so user roles need admin"
|
|
51779
51996
|
}
|
|
51780
51997
|
});
|
|
51781
51998
|
var listWorkflowRunsRoute = route({
|
|
@@ -51854,6 +52071,9 @@ var retryWorkflowRunRoute = route({
|
|
|
51854
52071
|
200: { description: "Retry started", schema: SuccessResponseSchema },
|
|
51855
52072
|
400: { description: "Cannot retry" },
|
|
51856
52073
|
404: { description: "Run not found" }
|
|
52074
|
+
},
|
|
52075
|
+
rbac: {
|
|
52076
|
+
ungated: "workflow runs: open to agents like the workflow tools; no verb covers them, so user roles need admin"
|
|
51857
52077
|
}
|
|
51858
52078
|
});
|
|
51859
52079
|
var cancelWorkflowRunRoute = route({
|
|
@@ -51868,7 +52088,10 @@ var cancelWorkflowRunRoute = route({
|
|
|
51868
52088
|
200: { description: "Run cancelled", schema: SuccessResponseSchema },
|
|
51869
52089
|
400: { description: "Cannot cancel" }
|
|
51870
52090
|
},
|
|
51871
|
-
auth: { apiKey: true }
|
|
52091
|
+
auth: { apiKey: true },
|
|
52092
|
+
rbac: {
|
|
52093
|
+
ungated: "workflow runs: open to agents like the workflow tools; no verb covers them, so user roles need admin"
|
|
52094
|
+
}
|
|
51872
52095
|
});
|
|
51873
52096
|
var listExecutorTypesRoute = route({
|
|
51874
52097
|
method: "get",
|
|
@@ -51925,6 +52148,9 @@ var webhookTriggerRoute = route({
|
|
|
51925
52148
|
201: { description: "Webhook processed", schema: object2({ runId: string2() }) },
|
|
51926
52149
|
401: { description: "Invalid signature" },
|
|
51927
52150
|
404: { description: "Workflow not found" }
|
|
52151
|
+
},
|
|
52152
|
+
rbac: {
|
|
52153
|
+
ungated: "inbound workflow webhook: the workflow's webhook secret is the credential, no bearer principal"
|
|
51928
52154
|
}
|
|
51929
52155
|
});
|
|
51930
52156
|
var listWorkflowVersionsRoute = route({
|
|
@@ -52584,6 +52810,9 @@ var scriptApiRoute = route({
|
|
|
52584
52810
|
schema: object2({ error: XScriptErrorSchema })
|
|
52585
52811
|
},
|
|
52586
52812
|
501: { description: "workspace-rw scripts are not supported" }
|
|
52813
|
+
},
|
|
52814
|
+
rbac: {
|
|
52815
|
+
ungated: "external script endpoint: its per-endpoint bearer is the credential; script.api.* gates who exposes it"
|
|
52587
52816
|
}
|
|
52588
52817
|
});
|
|
52589
52818
|
function extractBearer3(req) {
|
|
@@ -52964,7 +53193,7 @@ var httpServer = createHttpServer(async (req, res) => {
|
|
|
52964
53193
|
});
|
|
52965
53194
|
});
|
|
52966
53195
|
var detachRealtime = attachRealtimeTransport(httpServer);
|
|
52967
|
-
var { attachControllerTransport } = await import("./controllers-connect-
|
|
53196
|
+
var { attachControllerTransport } = await import("./controllers-connect-ynbvv8pv.js");
|
|
52968
53197
|
var detachControllers = attachControllerTransport(httpServer);
|
|
52969
53198
|
var stopWorkerNudges = startWorkerNudgeListener();
|
|
52970
53199
|
var taskAutoTitles = startTaskAutoTitleListener();
|
|
@@ -52995,7 +53224,7 @@ async function shutdown() {
|
|
|
52995
53224
|
sessionsProcessed: getServerSessionsProcessed()
|
|
52996
53225
|
});
|
|
52997
53226
|
if (hasCapability("scheduling")) {
|
|
52998
|
-
const { stopScheduler } = await import("./index-
|
|
53227
|
+
const { stopScheduler } = await import("./index-qffex5k4.js");
|
|
52999
53228
|
stopScheduler();
|
|
53000
53229
|
}
|
|
53001
53230
|
stopHeartbeat2();
|
|
@@ -53007,7 +53236,7 @@ async function shutdown() {
|
|
|
53007
53236
|
await stopSlackApp2();
|
|
53008
53237
|
await stopChatSdk();
|
|
53009
53238
|
if (!isEnvFlagEnabled("OAUTH_KEEPALIVE_DISABLE", false)) {
|
|
53010
|
-
const { stopOAuthKeepalive } = await import("./keepalive-
|
|
53239
|
+
const { stopOAuthKeepalive } = await import("./keepalive-86z0tzzf.js");
|
|
53011
53240
|
await stopOAuthKeepalive();
|
|
53012
53241
|
}
|
|
53013
53242
|
stopOAuthPendingGc();
|
|
@@ -53098,21 +53327,21 @@ try {
|
|
|
53098
53327
|
console.warn("[startup] CAPABILITIES upgrade seed failed (non-fatal):", err);
|
|
53099
53328
|
}
|
|
53100
53329
|
try {
|
|
53101
|
-
const { ensurePricingSeeded } = await import("./boot-seeds-
|
|
53330
|
+
const { ensurePricingSeeded } = await import("./boot-seeds-48rr6r29.js");
|
|
53102
53331
|
ensurePricingSeeded();
|
|
53103
|
-
const { startPricingRefreshLoop } = await import("./pricing-refresh-
|
|
53332
|
+
const { startPricingRefreshLoop } = await import("./pricing-refresh-4314hwtw.js");
|
|
53104
53333
|
startPricingRefreshLoop();
|
|
53105
53334
|
} catch (err) {
|
|
53106
53335
|
console.error("[startup] Failed to seed pricing rows:", err);
|
|
53107
53336
|
}
|
|
53108
53337
|
try {
|
|
53109
|
-
const { ensureModelProfilesSeeded } = await import("./boot-seeds-
|
|
53338
|
+
const { ensureModelProfilesSeeded } = await import("./boot-seeds-48rr6r29.js");
|
|
53110
53339
|
await ensureModelProfilesSeeded();
|
|
53111
53340
|
} catch (err) {
|
|
53112
53341
|
console.error("[startup] Failed to seed model profiles:", err);
|
|
53113
53342
|
}
|
|
53114
53343
|
try {
|
|
53115
|
-
const { ensureRbacSeeded } = await import("./boot-seeds-
|
|
53344
|
+
const { ensureRbacSeeded } = await import("./boot-seeds-48rr6r29.js");
|
|
53116
53345
|
ensureRbacSeeded();
|
|
53117
53346
|
} catch (err) {
|
|
53118
53347
|
console.error("[startup] Failed to sync RBAC seed rows:", err);
|
|
@@ -53120,13 +53349,13 @@ try {
|
|
|
53120
53349
|
throw err;
|
|
53121
53350
|
}
|
|
53122
53351
|
try {
|
|
53123
|
-
const { runAllSeeders } = await import("./index-
|
|
53352
|
+
const { runAllSeeders } = await import("./index-j6sqtb83.js");
|
|
53124
53353
|
await runAllSeeders({ scriptEmbeddingMode: "skip" });
|
|
53125
53354
|
} catch (err) {
|
|
53126
53355
|
console.error("[startup] Failed to seed built-in entities:", err);
|
|
53127
53356
|
}
|
|
53128
53357
|
try {
|
|
53129
|
-
const { runImports } = await import("./index-
|
|
53358
|
+
const { runImports } = await import("./index-wsf1f5pe.js");
|
|
53130
53359
|
await runImports();
|
|
53131
53360
|
} catch (err) {
|
|
53132
53361
|
console.error("[startup] File import failed:", scrubSecrets(err instanceof Error ? err.message : String(err)));
|
|
@@ -53178,10 +53407,10 @@ httpServer.listen(port, async () => {
|
|
|
53178
53407
|
startChatSdk().catch((err) => {
|
|
53179
53408
|
console.error("[chat-sdk] Failed to start, continuing without Chat SDK:", scrubSecrets(err instanceof Error ? err.message : String(err)));
|
|
53180
53409
|
});
|
|
53181
|
-
import("./agent-fs-provision-
|
|
53410
|
+
import("./agent-fs-provision-aan1cgpx.js").then(({ syncAgentFsOrgSwarmUrl }) => syncAgentFsOrgSwarmUrl(getConfiguredAppUrls()[0])).catch((err) => {
|
|
53182
53411
|
console.warn("[agent-fs] Failed to set the org swarm URL:", scrubSecrets(err instanceof Error ? err.message : String(err)));
|
|
53183
53412
|
});
|
|
53184
|
-
import("./object-webhooks-
|
|
53413
|
+
import("./object-webhooks-2kynmdf8.js").then(({ ensureObjectWebhooksForKnownDrives }) => ensureObjectWebhooksForKnownDrives()).catch((err) => {
|
|
53185
53414
|
console.warn("[objects] agent-fs webhook boot check failed:", scrubSecrets(err instanceof Error ? err.message : String(err)));
|
|
53186
53415
|
});
|
|
53187
53416
|
startQueueStallAlarm();
|
|
@@ -53197,22 +53426,22 @@ httpServer.listen(port, async () => {
|
|
|
53197
53426
|
await initWorkflows2();
|
|
53198
53427
|
await startScriptRunSupervisor(getScriptApiBaseUrl());
|
|
53199
53428
|
if (hasCapability("scheduling")) {
|
|
53200
|
-
const { parseSchedulerIntervalMs, startScheduler } = await import("./index-
|
|
53201
|
-
const { getExecutorRegistry } = await import("./index-
|
|
53429
|
+
const { parseSchedulerIntervalMs, startScheduler } = await import("./index-qffex5k4.js");
|
|
53430
|
+
const { getExecutorRegistry } = await import("./index-8w09aggw.js");
|
|
53202
53431
|
startScheduler(getExecutorRegistry(), parseSchedulerIntervalMs(process.env.SCHEDULER_INTERVAL_MS), { runId: globalState.__runId });
|
|
53203
53432
|
}
|
|
53204
53433
|
if (!isEnvFlagEnabled("HEARTBEAT_DISABLE", false)) {
|
|
53205
|
-
const { parseHeartbeatIntervalMs, startHeartbeat } = await import("./index-
|
|
53434
|
+
const { parseHeartbeatIntervalMs, startHeartbeat } = await import("./index-g2jntx15.js");
|
|
53206
53435
|
startHeartbeat(parseHeartbeatIntervalMs(process.env.HEARTBEAT_INTERVAL_MS));
|
|
53207
53436
|
}
|
|
53208
53437
|
startPoolRouting();
|
|
53209
53438
|
startRuntimeSupervisor();
|
|
53210
53439
|
if (!isEnvFlagEnabled("OAUTH_KEEPALIVE_DISABLE", false)) {
|
|
53211
|
-
const { startOAuthKeepalive } = await import("./keepalive-
|
|
53440
|
+
const { startOAuthKeepalive } = await import("./keepalive-86z0tzzf.js");
|
|
53212
53441
|
startOAuthKeepalive();
|
|
53213
53442
|
}
|
|
53214
53443
|
if (!isEnvFlagEnabled("OAUTH_REFRESH_SWEEP_DISABLE", false)) {
|
|
53215
|
-
const { startOAuthRefreshSweep } = await import("./oauth-refresh-sweep-
|
|
53444
|
+
const { startOAuthRefreshSweep } = await import("./oauth-refresh-sweep-6nmyrv32.js");
|
|
53216
53445
|
startOAuthRefreshSweep();
|
|
53217
53446
|
}
|
|
53218
53447
|
startOAuthPendingGc();
|
|
@@ -53222,19 +53451,19 @@ httpServer.listen(port, async () => {
|
|
|
53222
53451
|
startSavingsRollup(savingsRollupSql);
|
|
53223
53452
|
startHumanFreeDrain();
|
|
53224
53453
|
startTaskSearchBackfill();
|
|
53225
|
-
import("./embedding-space-
|
|
53454
|
+
import("./embedding-space-mjt5ksq0.js").then(({ runEmbeddingMaintenance }) => runEmbeddingMaintenance({ backfill: true })).catch((err) => {
|
|
53226
53455
|
console.error("[embedding-space] startup maintenance failed (non-fatal):", err);
|
|
53227
53456
|
});
|
|
53228
|
-
import("./boot-args-schema-
|
|
53457
|
+
import("./boot-args-schema-rv97cmnt.js").then(({ runBootArgsSchemaBackfill }) => runBootArgsSchemaBackfill()).catch((err) => {
|
|
53229
53458
|
console.error("[boot-args-schema] startup backfill failed (non-fatal):", err);
|
|
53230
53459
|
});
|
|
53231
|
-
import("./boot-scrub-sweep-
|
|
53460
|
+
import("./boot-scrub-sweep-20t8akhf.js").then(({ runBootScrubSweep }) => runBootScrubSweep()).catch((err) => {
|
|
53232
53461
|
console.error("[boot-scrub-sweep] startup scrub failed (non-fatal):", err);
|
|
53233
53462
|
});
|
|
53234
|
-
import("./user-merge-jobs-
|
|
53463
|
+
import("./user-merge-jobs-qfp40f2s.js").then(({ resumeUserMergeJobs }) => resumeUserMergeJobs()).catch((err) => {
|
|
53235
53464
|
console.error("[user-merge] startup resume failed (non-fatal):", err);
|
|
53236
53465
|
});
|
|
53237
|
-
import("./session-source-backfill-
|
|
53466
|
+
import("./session-source-backfill-805p4wqr.js").then(({ runSessionSourceBackfill }) => runSessionSourceBackfill()).catch((err) => {
|
|
53238
53467
|
console.error("[session-source-backfill] startup run failed (non-fatal):", err);
|
|
53239
53468
|
});
|
|
53240
53469
|
}).on("error", (err) => {
|