@desplega.ai/agent-swarm 2.9.1 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acp-adapter-weaaxey3.js +16 -0
- package/dist/{acp-targets-ny75x1qy.js → acp-targets-5wyy2b9m.js} +9 -9
- package/dist/{actions-b9qgrmeq.js → actions-4nxq386s.js} +54 -32
- package/dist/{agent-fs-provision-b5dhdsbd.js → agent-fs-provision-v6enh76w.js} +4 -4
- package/dist/{amp-adapter-vtax2c9s.js → amp-adapter-ze3x22qn.js} +3 -3
- package/dist/{anthropic-messages-r5xf5hqw.js → anthropic-messages-88b7s3n9.js} +189 -37
- package/dist/{app-g2z15hax.js → app-kyqt8ehw.js} +7 -6
- package/dist/{approval-notifications-yt13wp8r.js → approval-notifications-a0db0esw.js} +7 -6
- package/dist/{assistant-2cgfxsgk.js → assistant-9g5jzq25.js} +26 -25
- package/dist/{azure-openai-responses-590s1eea.js → azure-openai-responses-jeaas6x0.js} +18 -18
- package/dist/{boot-args-schema-3gwy0f60.js → boot-args-schema-d7fme4q1.js} +1 -1
- package/dist/{boot-reembed-92g7s5zp.js → boot-reembed-6wpazmpw.js} +1 -1
- package/dist/{boot-reembed-mywmyp4s.js → boot-reembed-jrwxeye2.js} +1 -1
- package/dist/boot-scrub-sweep-52h7yntp.js +9 -0
- package/dist/{boot-seeds-ce7rvgq1.js → boot-seeds-kb3dxjex.js} +4 -4
- package/dist/{boxd-wn235q80.js → boxd-jrrmkv3w.js} +2 -2
- package/dist/{claude-adapter-3m4q7735.js → claude-adapter-0c0y8fqp.js} +8 -8
- package/dist/{claude-managed-adapter-t8nfgcgz.js → claude-managed-adapter-w2es07qq.js} +4 -4
- package/dist/{claude-managed-setup-c217draw.js → claude-managed-setup-9ssb7ct4.js} +4 -4
- package/dist/{claude-sdk-session-7fbqm51z.js → claude-sdk-session-p6t0gyse.js} +10941 -10412
- package/dist/{cli-2czxfnvj.js → cli-075ccjh6.js} +961 -178
- package/dist/{cli-fkef327x.js → cli-0bgj4rh5.js} +3 -3
- package/dist/{cli-1jykg0py.js → cli-14xdms9a.js} +41 -28
- package/dist/{cli-rqx70rcz.js → cli-17qzb39j.js} +5 -2
- package/dist/{cli-bkjdknnp.js → cli-1h4njv9y.js} +177 -7
- package/dist/{cli-6ym4jhzp.js → cli-27fat7st.js} +7 -7
- package/dist/{cli-kxx4k2jw.js → cli-2aacfdcn.js} +5 -5
- package/dist/{cli-fh97xn30.js → cli-2gvdvsxj.js} +3 -3
- package/dist/{cli-f9gz2vyj.js → cli-2jtfm8kh.js} +10 -10
- package/dist/{cli-6ehs4mta.js → cli-2z2c4k6q.js} +18 -4
- package/dist/{cli-6237rnyr.js → cli-3bpr3wks.js} +1 -1
- package/dist/{cli-bnqncekd.js → cli-453497a0.js} +44 -17
- package/dist/{cli-jm0hvmz2.js → cli-4aswccje.js} +2 -2
- package/dist/{cli-4ymxrwg5.js → cli-4dyzzkfb.js} +2 -2
- package/dist/{cli-vyff45ve.js → cli-4g323fjh.js} +772 -515
- package/dist/{cli-3kd08rej.js → cli-4jjrhy48.js} +1 -1
- package/dist/{cli-gfy38pvt.js → cli-4kzp7r0q.js} +8 -8
- package/dist/{cli-kxn3747f.js → cli-4se3x6qm.js} +1 -26
- package/dist/{cli-mjw0yf82.js → cli-5ptj757f.js} +1 -1
- package/dist/{cli-pyjn0qhk.js → cli-6a3j25xd.js} +348 -196
- package/dist/{cli-hnamkvnc.js → cli-6c9ve77f.js} +2 -2
- package/dist/{cli-mw620q3n.js → cli-6n7y5ypy.js} +1 -1
- package/dist/{cli-g0vv9dg4.js → cli-6p8p2e6r.js} +19 -12
- package/dist/{cli-jwampxxq.js → cli-6tvh1fwq.js} +3 -3
- package/dist/{cli-p74md7t8.js → cli-7b7rxz22.js} +13 -15
- package/dist/{cli-5a6pqy45.js → cli-7e8sxqv5.js} +1 -1
- package/dist/{cli-p4kckx1z.js → cli-892y3vfp.js} +13 -13
- package/dist/cli-8mfdbdhe.js +43 -0
- package/dist/{cli-mkwkwq81.js → cli-8zmpwe79.js} +29 -16
- package/dist/{cli-zcfpsfzf.js → cli-96234j5w.js} +3 -3
- package/dist/{cli-1z4qggfe.js → cli-9fvk9mv8.js} +30 -21
- package/dist/{cli-7mv4h3sn.js → cli-9g12h1aq.js} +2 -2
- package/dist/{cli-f8x9drqr.js → cli-9knhkkgr.js} +19 -5
- package/dist/{cli-5mpy301f.js → cli-9t7syepg.js} +1 -1
- package/dist/{cli-qj39vrc6.js → cli-9yjhshah.js} +1 -1
- package/dist/{cli-zr6qy15y.js → cli-a02habn6.js} +427 -145
- package/dist/{cli-7evph51z.js → cli-a49frv85.js} +2 -2
- package/dist/{cli-h9yqfzx9.js → cli-a6q6x15h.js} +11 -10
- package/dist/{cli-bg63qmsx.js → cli-atm0hkes.js} +11 -11
- package/dist/{cli-m7zvgt57.js → cli-b82a13ga.js} +13 -13
- package/dist/{cli-7zm3b3f5.js → cli-bf0t77nf.js} +1 -1
- package/dist/{cli-2xv18ywz.js → cli-bmqp0ser.js} +2 -2
- package/dist/{cli-xag7btpe.js → cli-bq97k63w.js} +2 -2
- package/dist/{cli-pb2ay3sh.js → cli-cstggwq7.js} +5 -5
- package/dist/{cli-f3jyzq4g.js → cli-czvvnfr9.js} +3 -3
- package/dist/{cli-b6px1k1q.js → cli-dd2k2mcd.js} +1 -1
- package/dist/{cli-nafvvsp8.js → cli-djt6wmrc.js} +9 -9
- package/dist/{cli-tsa40663.js → cli-ebqx630g.js} +3 -3
- package/dist/{cli-8zh9nrew.js → cli-f7dhm7hh.js} +1 -1
- package/dist/cli-f8yhybxr.js +321 -0
- package/dist/{cli-5gpqgs8b.js → cli-fwjwkw66.js} +2 -2
- package/dist/{cli-gabsjg8x.js → cli-g56fxddf.js} +1 -1
- package/dist/{cli-w4n323t3.js → cli-h2qtafm4.js} +19 -19
- package/dist/{cli-psffsanb.js → cli-ha4ek2nb.js} +6 -1
- package/dist/{cli-dgs10ttj.js → cli-hnh8erra.js} +2 -2
- package/dist/{cli-w16kwbzw.js → cli-htymm48w.js} +1 -1
- package/dist/{cli-2xs8tsf7.js → cli-j2r1apqm.js} +152 -67
- package/dist/{cli-43ms35q9.js → cli-k3c13za2.js} +3 -3
- package/dist/{cli-54vrpgm0.js → cli-k3facve0.js} +8 -5
- package/dist/{cli-67mwzr35.js → cli-k4r5sfaj.js} +7 -7
- package/dist/{cli-rq5rpv6k.js → cli-kbm659dk.js} +2 -2
- package/dist/{cli-j7svy295.js → cli-m00c47q6.js} +114 -31
- package/dist/{cli-m7c2380k.js → cli-mhrr4d5b.js} +99 -14
- package/dist/{cli-xqdz5cqm.js → cli-mz7ycqn8.js} +1 -0
- package/dist/{cli-vt89089n.js → cli-n6ygvrrm.js} +4 -4
- package/dist/{cli-jaw5v1sy.js → cli-nbakg5xh.js} +3 -3
- package/dist/{cli-nbt14he0.js → cli-nc39ym5q.js} +8 -8
- package/dist/{cli-tvc4jag9.js → cli-p1a4khta.js} +8 -8
- package/dist/{cli-t9ga4qmb.js → cli-p8zqbbt1.js} +40 -33
- package/dist/{cli-fjggej24.js → cli-ph95yejc.js} +2 -2
- package/dist/{cli-m0cy2vyf.js → cli-q4z9s6zs.js} +5 -5
- package/dist/cli-q71g5q39.js +404 -0
- package/dist/{cli-vs9vdpy0.js → cli-qncx2r0s.js} +1 -1
- package/dist/{cli-hg42n3hx.js → cli-qrzq3hvg.js} +8 -8
- package/dist/{cli-x40a0w9j.js → cli-r813c7rb.js} +1 -1
- package/dist/{cli-kpgcm7xy.js → cli-ramn8jae.js} +1 -1
- package/dist/{cli-jkw6ptfw.js → cli-raqw9fw9.js} +28 -17
- package/dist/cli-rhsc2zyx.js +68 -0
- package/dist/{cli-sn650d7x.js → cli-rpmw4fsv.js} +68 -20
- package/dist/{boot-scrub-sweep-7dkdzqxx.js → cli-rwgwen5v.js} +9 -10
- package/dist/{cli-3j873zxq.js → cli-rytq7dm2.js} +261 -6
- package/dist/{cli-zh0e5x7p.js → cli-s9twe4x0.js} +71 -22
- package/dist/{cli-2dq9yv8p.js → cli-t2s7j5cy.js} +2 -2
- package/dist/{cli-wn13hhdt.js → cli-tb4j757d.js} +7 -7
- package/dist/{cli-q2d3e1k1.js → cli-thd3005a.js} +1 -1
- package/dist/cli-tsfkcd4v.js +30 -0
- package/dist/{cli-br0924pw.js → cli-v3zcnr8g.js} +1 -1
- package/dist/{cli-zfqg6fzn.js → cli-vbppqvte.js} +3 -3
- package/dist/{cli-ysvspf5e.js → cli-vy3fn0mz.js} +4 -4
- package/dist/{cli-7sf9sb0w.js → cli-w5dar1bk.js} +1 -1
- package/dist/{cli-2yjj3e31.js → cli-wz4e5am2.js} +12 -10
- package/dist/{cli-td9tb872.js → cli-xqbqwpxr.js} +14 -14
- package/dist/{cli-32djehja.js → cli-ynph3b70.js} +11137 -8332
- package/dist/{cli-mhapr559.js → cli-yvzxbztc.js} +9 -4
- package/dist/{cli-v57d7fmm.js → cli-yzxqwcvq.js} +25 -27
- package/dist/{cli-y2ewxhth.js → cli-zb1hff00.js} +16 -16
- package/dist/{cli-yab6sh8p.js → cli-zcghfsdg.js} +23 -4
- package/dist/{cli-ctx0b85j.js → cli-zhn4r1rz.js} +757 -157
- package/dist/{cli-6945ywhr.js → cli-zqq57pgx.js} +9 -7
- package/dist/cli.js +30 -29
- package/dist/{cloudflare-workers-ai-system-one-9y1zx3pt.js → cloudflare-workers-ai-system-one-w3m0fbf8.js} +2 -2
- package/dist/{codex-adapter-n656pvb8.js → codex-adapter-ssahg4h4.js} +8 -8
- package/dist/{codex-hook-59atdwd8.js → codex-hook-aqtj17yr.js} +1 -1
- package/dist/{codex-login-a239g1ah.js → codex-login-9c7aggxe.js} +1 -1
- package/dist/{codex-session-runner-p0fbv5y9.js → codex-session-runner-xn63q3h7.js} +9 -9
- package/dist/{commands-gwea8z5p.js → commands-ctey7tr5.js} +3 -3
- package/dist/{controller-t67c3grh.js → controller-rqhbppg9.js} +4 -4
- package/dist/{controllers-connect-ks155r0h.js → controllers-connect-w3qbpbt1.js} +22 -21
- package/dist/core-df1n049h.js +39 -0
- package/dist/{cursor-adapter-ygwrtmkv.js → cursor-adapter-r819hf1a.js} +2 -2
- package/dist/{db-kpmx06s9.js → db-2ah39cyx.js} +2 -2
- package/dist/{db-rb2xqdb1.js → db-p5drc1d1.js} +3 -3
- package/dist/{devin-adapter-zp4tqq53.js → devin-adapter-bc6g0x29.js} +1 -1
- package/dist/{dispatcher-31sm0ej2.js → dispatcher-x6w14pde.js} +19 -18
- package/dist/{docker-09tkkg0n.js → docker-6c4reetq.js} +51 -14
- package/dist/{dsh-adapter-qyxh0w31.js → dsh-adapter-h8qn14n4.js} +2 -2
- package/dist/{e2b-sm28k0k3.js → e2b-jg7kyyef.js} +6 -6
- package/dist/{e2b-3v1e745x.js → e2b-z4ec0qve.js} +3 -3
- package/dist/{easter-egg-3d-00wjscn6.js → easter-egg-3d-1y6r9gxy.js} +1 -1
- package/dist/{embedding-space-qhw4g68n.js → embedding-space-z6ptw3jk.js} +6 -6
- package/dist/{embeddings-zdv9ke6x.js → embeddings-0sxb1d2h.js} +1 -1
- package/dist/{event-bus-xr83x566.js → event-bus-swr88jg5.js} +1 -1
- package/dist/{execute-zna8wwr7.js → execute-6m1ex8ce.js} +8 -4
- package/dist/{external-channel-1ac6t56s.js → external-channel-ezer7pk0.js} +2 -2
- package/dist/fx-adapter-zwmps9re.js +19 -0
- package/dist/{google-generative-ai-maq6c9bf.js → google-generative-ai-sw77egmr.js} +13 -13
- package/dist/{google-vertex-2jgsw2nb.js → google-vertex-rrw93g8h.js} +13 -13
- package/dist/grok-adapter-q0avf919.js +19 -0
- package/dist/handlers-g5jq0e4q.js +36 -0
- package/dist/{heartbeat-2f6z4kdx.js → heartbeat-6c4fr49t.js} +22 -21
- package/dist/{hook-8y0gvtp1.js → hook-02rt5tvq.js} +8 -8
- package/dist/{hook-w1skzaqc.js → hook-t1c5avbv.js} +5 -5
- package/dist/{http-wghxvpef.js → http-qa3h32a1.js} +2659 -355
- package/dist/index-1f6m47mq.js +37 -0
- package/dist/index-1p1mpqda.js +36 -0
- package/dist/{index-rv89fvzf.js → index-akbgsdhh.js} +25 -24
- package/dist/{index-9zkchs9t.js → index-e42j998x.js} +190 -15
- package/dist/{index-b5wgnm78.js → index-kdmkfjt7.js} +4 -4
- package/dist/{index-s71ez27v.js → index-kqv9ebfj.js} +1 -1
- package/dist/{index-9myfj74s.js → index-kzdqn3dd.js} +3 -3
- package/dist/{index-4a0670yh.js → index-p2f5xg64.js} +6 -6
- package/dist/{index-8zn8nxn5.js → index-qpjk2hxk.js} +1 -1
- package/dist/index-tnkd410q.js +41 -0
- package/dist/k8s-7jrh5va2.js +276 -0
- package/dist/{keepalive-sh02349h.js → keepalive-jmf6pn8c.js} +4 -4
- package/dist/lead-m5e7xt93.js +75 -0
- package/dist/{llama-cpp-classify-nfgswa1m.js → llama-cpp-classify-yvb8vh7w.js} +2 -2
- package/dist/{maintenance-yj0dcjja.js → maintenance-g7v15tj1.js} +1 -1
- package/dist/{mistral-conversations-0c30em7t.js → mistral-conversations-w4bncwbt.js} +11 -11
- package/dist/{node-7qsx5kvm.js → node-z67yjre7.js} +19 -13
- package/dist/{oauth-refresh-sweep-d9xedk66.js → oauth-refresh-sweep-ywgf8tbr.js} +3 -3
- package/dist/{onboard-dpgjn03r.js → onboard-m3fedypq.js} +6 -6
- package/dist/{openai-codex-responses-bkcd8pjj.js → openai-codex-responses-70g39cgz.js} +24 -18
- package/dist/{openai-completions-f3n69rep.js → openai-completions-cv3hp4h5.js} +33 -26
- package/dist/{openai-decisions-q3hh60wr.js → openai-decisions-fyq1p9f9.js} +2 -2
- package/dist/{openai-responses-gbh0wfqe.js → openai-responses-trsvnks6.js} +24 -22
- package/dist/{opencode-adapter-2d31cpjc.js → opencode-adapter-19ktcbb9.js} +7 -7
- package/dist/{openrouter-images-xr9gme9x.js → openrouter-images-0jj12a2q.js} +6 -6
- package/dist/{otel-impl-1skarpfq.js → otel-impl-3ehm1hgc.js} +2 -2
- package/dist/{pending-bfmxtx0g.js → pending-fwj2fatd.js} +20 -19
- package/dist/{pi-messages-zebyt7gb.js → pi-messages-zk3g4esn.js} +6 -6
- package/dist/{pi-mono-adapter-gvppnasy.js → pi-mono-adapter-xdeesvc4.js} +18 -17
- package/dist/{pricing-refresh-c6b325mk.js → pricing-refresh-4j8dzvxg.js} +2 -2
- package/dist/{rbac-roles-h80qbdbs.js → rbac-roles-8msjr07m.js} +3 -3
- package/dist/{rbac-roles-zfcx68tx.js → rbac-roles-n7t2acv8.js} +2 -2
- package/dist/{render-v2-nx20t3rb.js → render-v2-j7qggj8h.js} +7 -6
- package/dist/{resume-5ep8agan.js → resume-hj1mn65y.js} +9 -8
- package/dist/{runtime-r3pj4mce.js → runtime-z31mdsgv.js} +2 -2
- package/dist/{session-access-n7p3m15b.js → session-access-w38fh09a.js} +4 -4
- package/dist/{session-source-backfill-v8mt0zwn.js → session-source-backfill-ax6qxv20.js} +3 -3
- package/dist/{setup-z1psaqhe.js → setup-dsqmpfcr.js} +1 -1
- package/dist/thread-buffer-nf55vwx3.js +39 -0
- package/dist/tree-visibility-6vqmnr71.js +24 -0
- package/dist/{typesafe-system-one-f2en2knd.js → typesafe-system-one-qkvkgrcz.js} +2 -2
- package/dist/user-merge-jobs-mvheb3ed.js +22 -0
- package/dist/{virtual-modules-rrbjdpxn.js → virtual-modules-w2qk2wew.js} +32 -10
- package/dist/{work-objects-4aghh73z.js → work-objects-4ahy5es5.js} +22 -21
- package/dist/worker-ews1nyhw.js +75 -0
- package/dist/{worker-follow-up-166zmex1.js → worker-follow-up-1gs4aw7y.js} +19 -18
- package/dist/{x-wg164ss9.js → x-3wr8c5sh.js} +2 -2
- package/openapi.json +2576 -388
- package/package.json +11 -10
- package/src/be/boot-seeds.ts +7 -1
- package/src/be/db/model-groups.ts +238 -0
- package/src/be/db/model-profiles.ts +26 -8
- package/src/be/db/request-composition.ts +190 -0
- package/src/be/db/runtime.ts +15 -0
- package/src/be/db/session-costs.ts +8 -2
- package/src/be/db/slack-trees.ts +220 -10
- package/src/be/db/tasks/human-free.ts +3 -2
- package/src/be/db/tasks/read.ts +3 -2
- package/src/be/db/tasks/write.ts +2 -1
- package/src/be/db/user-references.ts +75 -0
- package/src/be/db/users/references.ts +185 -0
- package/src/be/db/workflow-run-retention.ts +101 -0
- package/src/be/db-client.ts +93 -20
- package/src/be/db-retention-defaults.ts +46 -0
- package/src/be/db-retention.ts +55 -6
- package/src/be/db.ts +32 -57
- package/src/be/key-window-usage.ts +1 -0
- package/src/be/mcp-events/catalog.ts +108 -0
- package/src/be/mcp-events/dispatcher.ts +202 -0
- package/src/be/mcp-events/protocol.ts +296 -0
- package/src/be/mcp-events/store.ts +231 -0
- package/src/be/mcp-events/webhook.ts +226 -0
- package/src/be/memory/demotion-evidence.ts +34 -0
- package/src/be/memory/providers/sqlite-store.ts +110 -24
- package/src/be/memory/reranker.ts +34 -12
- package/src/be/memory/review-recall-filter.ts +105 -0
- package/src/be/memory/search-candidates.ts +16 -5
- package/src/be/memory/types.ts +16 -0
- package/src/be/migrations/312_task_ui_action_runs_repeatable.sql +6 -0
- package/src/be/migrations/314_model_groups.sql +85 -0
- package/src/be/migrations/318_superseded_workflow_cut_backfill.sql +22 -0
- package/src/be/migrations/319_user_fk_indexes.sql +153 -0
- package/src/be/migrations/320_session_costs_kind.sql +4 -0
- package/src/be/migrations/321_user_merge_jobs.sql +52 -0
- package/src/be/migrations/322_runtime_pool_workspace.sql +8 -0
- package/src/be/migrations/323_slack_task_tree_visibility.sql +9 -0
- package/src/be/migrations/326_slack_reconcile_pages.sql +13 -0
- package/src/be/migrations/327_mcp_event_subscriptions.sql +57 -0
- package/src/be/migrations/329_workflow_run_retention.sql +9 -0
- package/src/be/migrations/330_request_composition.sql +22 -0
- package/src/be/model-profile-check.ts +1 -1
- package/src/be/multi-runtime.ts +32 -4
- package/src/be/pricing-normalize.ts +2 -0
- package/src/be/rbac-roles.ts +6 -4
- package/src/be/runtime-pools/controllers.ts +18 -3
- package/src/be/runtime-pools/db.ts +35 -9
- package/src/be/runtime-pools/supervisor.ts +57 -3
- package/src/be/scripts/db.ts +11 -0
- package/src/be/scripts/typecheck.ts +2 -0
- package/src/be/seed-model-groups.ts +86 -0
- package/src/be/seed-model-profiles.ts +20 -13
- package/src/be/seed-scripts/catalog/dreaming-gather.ts +165 -1
- package/src/be/swarm-config-guard.ts +44 -2
- package/src/be/task-ui-spec.ts +102 -1
- package/src/be/user-merge-jobs.ts +564 -0
- package/src/be/users.ts +41 -23
- package/src/commands/context-preamble.ts +11 -4
- package/src/commands/credential-outcome-report.ts +33 -9
- package/src/commands/e2b-stack-wizard.tsx +12 -6
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/onboard/compose-generator.ts +1 -1
- package/src/commands/onboard/env-generator.ts +1 -1
- package/src/commands/provider-credentials.ts +1 -1
- package/src/commands/runner.ts +116 -12
- package/src/extensions/catalog.generated.json +1 -1
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/extensions/contract.ts +15 -0
- package/src/extensions/dispatcher.ts +14 -4
- package/src/github/app.ts +59 -14
- package/src/github/handlers.ts +57 -0
- package/src/github/types.ts +4 -0
- package/src/http/all-routes.ts +4 -0
- package/src/http/approval-requests.ts +5 -1
- package/src/http/auth.ts +3 -1
- package/src/http/config.ts +36 -2
- package/src/http/core.ts +2 -0
- package/src/http/github-token.ts +66 -0
- package/src/http/index.ts +34 -0
- package/src/http/mcp-user.ts +11 -8
- package/src/http/mcp.ts +58 -42
- package/src/http/memory.ts +19 -6
- package/src/http/model-groups.ts +277 -0
- package/src/http/model-profiles.ts +30 -13
- package/src/http/prompt-templates.ts +1 -0
- package/src/http/request-composition.ts +310 -0
- package/src/http/tasks.ts +46 -6
- package/src/http/tool-hooks.ts +140 -0
- package/src/http/tool-schema-estimate.ts +95 -0
- package/src/http/users.ts +142 -19
- package/src/http/workflows.ts +37 -1
- package/src/integrations/chat-sdk/inbound.ts +8 -2
- package/src/integrations/chat-sdk/limits.ts +8 -3
- package/src/prompts/base-prompt.ts +133 -7
- package/src/prompts/resolver.ts +41 -2
- package/src/providers/acp-targets.ts +2 -2
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/opencode-adapter.ts +72 -1
- package/src/providers/opencode-swarm-plugin.ts +22 -3
- package/src/providers/pi-mono-adapter.ts +1 -0
- package/src/providers/pi-mono-extension.ts +71 -0
- package/src/providers/pricing-sources.md +13 -0
- package/src/providers/request-composition-hook.ts +312 -0
- package/src/providers/types.ts +5 -0
- package/src/rbac/legacy-policy.ts +1 -0
- package/src/rbac/permissions.ts +5 -0
- package/src/runtime-providers/controller-protocol.ts +7 -0
- package/src/runtime-providers/docker.ts +80 -12
- package/src/runtime-providers/index.ts +7 -5
- package/src/runtime-providers/k8s.ts +355 -0
- package/src/runtime-providers/types.ts +17 -0
- package/src/scheduler/scheduler.ts +1 -1
- package/src/scripts-runtime/types/stdlib.d.ts +2 -0
- package/src/scripts-runtime/types/swarm-extension.d.ts +16 -1
- package/src/scripts-runtime/types/swarm-sdk.d.ts +2 -0
- package/src/server-user.ts +16 -1
- package/src/slack/ack.ts +10 -5
- package/src/slack/actions.ts +36 -13
- package/src/slack/app.ts +2 -0
- package/src/slack/assistant.ts +4 -4
- package/src/slack/blocks.ts +26 -5
- package/src/slack/handlers.ts +3 -3
- package/src/slack/reaction-shortcode.ts +23 -2
- package/src/slack/render-v2.ts +344 -200
- package/src/slack/responses.ts +7 -5
- package/src/slack/thread-buffer.ts +3 -3
- package/src/slack/tree-visibility.ts +64 -0
- package/src/tasks/worker-follow-up.ts +127 -17
- package/src/tests/acp-adapter.test.ts +26 -0
- package/src/tests/azure-devops-outbound.test.ts +47 -14
- package/src/tests/base-prompt.test.ts +149 -1
- package/src/tests/chat-sdk-relay.test.ts +21 -1
- package/src/tests/check-playwright-version.test.ts +33 -0
- package/src/tests/check-pr-body.test.ts +43 -0
- package/src/tests/context-preamble-budget.test.ts +65 -0
- package/src/tests/credential-check.test.ts +14 -6
- package/src/tests/credential-outcome-report.test.ts +81 -1
- package/src/tests/db-client.test.ts +168 -0
- package/src/tests/db-retention-defaults.test.ts +244 -0
- package/src/tests/db-retention.test.ts +2 -1
- package/src/tests/db-runtime.test.ts +2 -1
- package/src/tests/deploy-guard.test.ts +7 -7
- package/src/tests/deploy-release-dispatch.test.ts +332 -0
- package/src/tests/deploy-select.test.ts +83 -0
- package/src/tests/dreaming-gather-corrections.test.ts +467 -0
- package/src/tests/e2b-stack-wizard.test.tsx +156 -0
- package/src/tests/entrypoint-chown-no-follow.test.ts +69 -0
- package/src/tests/entrypoint-repo-clone-target.test.ts +112 -0
- package/src/tests/env-flag.test.ts +4 -2
- package/src/tests/event-loop-lag.test.ts +16 -20
- package/src/tests/extensions-example-slack-reply-gate.test.ts +15 -0
- package/src/tests/fixtures/base-prompt-baseline-cases.ts +78 -0
- package/src/tests/fixtures/base-prompt-baseline.json +18 -0
- package/src/tests/fixtures/extensions/native-tool-recorder/hooks.ts +26 -0
- package/src/tests/fixtures/extensions/native-tool-recorder/manifest.json +10 -0
- package/src/tests/fixtures/onboard/content.compose.yml.txt +1 -1
- package/src/tests/fixtures/onboard/content.env.txt +1 -1
- package/src/tests/fixtures/onboard/dev.compose.yml.txt +1 -1
- package/src/tests/fixtures/onboard/dev.env.txt +1 -1
- package/src/tests/fixtures/onboard/full-all.compose.yml.txt +1 -1
- package/src/tests/fixtures/onboard/full-all.env.txt +1 -1
- package/src/tests/fixtures/onboard/full.compose.yml.txt +1 -1
- package/src/tests/fixtures/onboard/full.env.txt +1 -1
- package/src/tests/fixtures/onboard/research.compose.yml.txt +1 -1
- package/src/tests/fixtures/onboard/research.env.txt +1 -1
- package/src/tests/fixtures/onboard/solo.compose.yml.txt +1 -1
- package/src/tests/fixtures/onboard/solo.env.txt +1 -1
- package/src/tests/github-app-worker-auth-helper.test.ts +325 -0
- package/src/tests/github-event-filter.test.ts +8 -0
- package/src/tests/github-handlers-inline-comments.test.ts +2 -0
- package/src/tests/github-handlers-reactions.test.ts +4 -0
- package/src/tests/github-handlers.test.ts +3 -0
- package/src/tests/github-installation-token-route.test.ts +199 -0
- package/src/tests/github-sender-trust.test.ts +223 -0
- package/src/tests/http-users.test.ts +142 -41
- package/src/tests/k8s-pool-smoke.test.ts +190 -0
- package/src/tests/key-window-usage.test.ts +15 -0
- package/src/tests/mcp-user-events.test.ts +708 -0
- package/src/tests/memory-key-paths.test.ts +4 -1
- package/src/tests/memory-rater-store.test.ts +35 -1
- package/src/tests/memory-reranker.test.ts +39 -4
- package/src/tests/memory-review-recall-filter.test.ts +205 -0
- package/src/tests/memory-search-stall.test.ts +421 -0
- package/src/tests/migration-318-superseded-workflow-cut-backfill.test.ts +74 -0
- package/src/tests/migration-322-runtime-pool-workspace.test.ts +116 -0
- package/src/tests/migration-329-workflow-run-retention.test.ts +32 -0
- package/src/tests/model-groups-api.test.ts +415 -0
- package/src/tests/model-profile-fallbacks.test.ts +236 -2
- package/src/tests/model-profiles-api.test.ts +1 -0
- package/src/tests/opencode-adapter.test.ts +86 -0
- package/src/tests/operator-granted-credentials.test.ts +7 -2
- package/src/tests/operator-granted-role-wire.test.ts +2 -1
- package/src/tests/pi-mono-extension.test.ts +168 -0
- package/src/tests/preload-env.test.ts +61 -1
- package/src/tests/preload.ts +22 -0
- package/src/tests/prompt-template-resolver.test.ts +85 -0
- package/src/tests/rbac-engine.test.ts +1 -0
- package/src/tests/reload-config.test.ts +45 -0
- package/src/tests/request-composition.test.ts +447 -0
- package/src/tests/runner-max-concurrent.test.ts +86 -0
- package/src/tests/runtime-k8s-pools.test.ts +142 -0
- package/src/tests/runtime-pools-db.test.ts +122 -2
- package/src/tests/runtime-pools-http.test.ts +47 -2
- package/src/tests/runtime-provider-registration.test.ts +13 -14
- package/src/tests/runtime-providers-docker.test.ts +192 -1
- package/src/tests/runtime-providers-k8s.test.ts +430 -0
- package/src/tests/runtime-remote-controller.test.ts +64 -1
- package/src/tests/runtime-supervisor.test.ts +101 -0
- package/src/tests/script-connections.test.ts +21 -1
- package/src/tests/short-id.test.ts +23 -0
- package/src/tests/slack-blocks.test.ts +87 -0
- package/src/tests/slack-empty-icon-config.test.ts +113 -0
- package/src/tests/slack-reaction-config.test.ts +38 -2
- package/src/tests/slack-render-v2-query-plans.test.ts +100 -1
- package/src/tests/slack-render-v2-reconcile.test.ts +75 -4
- package/src/tests/slack-render-v2.test.ts +737 -11
- package/src/tests/spec-base-url.test.ts +13 -1
- package/src/tests/swarm-config-reserved-keys.test.ts +1 -0
- package/src/tests/system-one-decide-session-cost.test.ts +196 -0
- package/src/tests/task-session-prompts.test.ts +37 -0
- package/src/tests/task-ui-action-route.test.ts +59 -1
- package/src/tests/task-ui-script-actions.test.ts +517 -0
- package/src/tests/tool-hooks-http.test.ts +187 -0
- package/src/tests/ui-spec-script-actions-config.test.ts +196 -0
- package/src/tests/user-delete-perf.test.ts +348 -0
- package/src/tests/user-merge-jobs.test.ts +680 -0
- package/src/tests/vcs-provider.test.ts +25 -5
- package/src/tests/vendored-openapi.test.ts +13 -1
- package/src/tests/webhook-filter.test.ts +327 -0
- package/src/tests/workflow-agent-task-retry.test.ts +62 -0
- package/src/tests/workflow-async-v2.test.ts +19 -16
- package/src/tests/workflow-definition-telemetry.test.ts +15 -5
- package/src/tests/workflow-e2e.test.ts +1 -9
- package/src/tests/workflow-finalization-races.test.ts +553 -0
- package/src/tests/workflow-foreach-supersede-retry.test.ts +10 -0
- package/src/tests/workflow-foreach.test.ts +2 -0
- package/src/tests/workflow-hitl-routing.test.ts +26 -20
- package/src/tests/workflow-http-v2.test.ts +132 -2
- package/src/tests/workflow-idempotency.test.ts +41 -0
- package/src/tests/workflow-mcp-webhook-filter.test.ts +214 -0
- package/src/tests/workflow-parallel-park.test.ts +297 -0
- package/src/tests/workflow-replay.test.ts +10 -1
- package/src/tests/workflow-retry-v2.test.ts +57 -21
- package/src/tests/workflow-retry-validation.test.ts +13 -13
- package/src/tests/workflow-runs-retention.test.ts +533 -0
- package/src/tests/workflow-script-principal.test.ts +7 -2
- package/src/tests/workflow-tla-races.test.ts +7 -2
- package/src/tests/workflow-triggers-v2.test.ts +329 -0
- package/src/tests/workflow-wait-builtin-events.test.ts +3 -1
- package/src/tests/workflow-wait-event.test.ts +137 -3
- package/src/tests/workflow-wait-poller.test.ts +94 -0
- package/src/tests/workflow-wait-time.test.ts +7 -3
- package/src/tests/workflow-wait.test.ts +26 -0
- package/src/tests/workflow-wait.ts +44 -0
- package/src/tools/memory-search.ts +14 -3
- package/src/tools/store-progress.ts +26 -26
- package/src/tools/swarm-config/delete-config.ts +12 -1
- package/src/tools/swarm-config/set-config.ts +8 -0
- package/src/tools/system-one-decide.ts +113 -3
- package/src/tools/utils.ts +4 -1
- package/src/tools/workflows/create-workflow.ts +7 -1
- package/src/tools/workflows/update-workflow.ts +8 -2
- package/src/types.ts +284 -2
- package/src/ui-spec/actions.ts +30 -4
- package/src/ui-spec/schema.ts +38 -0
- package/src/ui-spec/script-actions.ts +340 -0
- package/src/ui-spec/script-allowlist.ts +48 -0
- package/src/utils/credentials.ts +7 -0
- package/src/utils/short-id.ts +20 -14
- package/src/utils/task-ui-spec.ts +16 -4
- package/src/vcs/index.ts +12 -2
- package/src/workflows/checkpoint.ts +18 -0
- package/src/workflows/engine.ts +38 -10
- package/src/workflows/executors/system-one-decision.ts +2 -2
- package/src/workflows/foreach-driver.ts +42 -4
- package/src/workflows/recovery.ts +6 -1
- package/src/workflows/resume.ts +14 -5
- package/src/workflows/retry-poller.ts +17 -4
- package/src/workflows/successor-routing.ts +108 -0
- package/src/workflows/task-step-routing.ts +35 -12
- package/src/workflows/triggers.ts +25 -8
- package/src/workflows/wait-poller.ts +6 -2
- package/src/workflows/webhook-filter.ts +203 -0
- package/templates/extensions/manifest.schema.json +13 -0
- package/templates/extensions/slack-reply-gate/hooks.ts +8 -4
- package/templates/skills/swarm-docs/content.md +4 -0
- package/templates/skills/ui-spec/content.md +7 -1
- package/templates/workflows/dreaming/content.md +1 -1
- package/dist/acp-adapter-g909b5hw.js +0 -16
- package/dist/cli-b91nz213.js +0 -93
- package/dist/fx-adapter-sk7n0fzc.js +0 -19
- package/dist/grok-adapter-sjbcm5ew.js +0 -19
- package/dist/handlers-yzy0c87x.js +0 -35
- package/dist/index-25pvya7q.js +0 -40
- package/dist/index-2t4859r5.js +0 -35
- package/dist/index-cxca2t8y.js +0 -36
- package/dist/lead-gk4h5eg7.js +0 -74
- package/dist/thread-buffer-a1re2r9r.js +0 -38
- package/dist/worker-3dyyb8ev.js +0 -74
- /package/dist/{node-dqm4xgxw.js → node-2wfcey7d.js} +0 -0
package/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Agent Swarm API",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.11.0",
|
|
6
6
|
"description": "Multi-agent orchestration API for Claude Code, Codex, and Gemini CLI. Enables task distribution, agent communication, and service discovery.\n\nMCP tools are documented separately in [MCP.md](./MCP.md)."
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
@@ -2252,6 +2252,18 @@
|
|
|
2252
2252
|
"author": {
|
|
2253
2253
|
"type": "string",
|
|
2254
2254
|
"minLength": 1
|
|
2255
|
+
},
|
|
2256
|
+
"toolSources": {
|
|
2257
|
+
"type": "array",
|
|
2258
|
+
"items": {
|
|
2259
|
+
"type": "string",
|
|
2260
|
+
"enum": [
|
|
2261
|
+
"mcp",
|
|
2262
|
+
"native"
|
|
2263
|
+
]
|
|
2264
|
+
},
|
|
2265
|
+
"minItems": 1,
|
|
2266
|
+
"description": "Which tool calls reach this extension's `pre.tool.call` and `post.tool.call` handlers: `\"mcp\"` for swarm MCP tools, `\"native\"` for harness built-ins (bash, read, write, edit) reported through `POST /api/tool-hooks`. Default `[\"mcp\"]`."
|
|
2255
2267
|
}
|
|
2256
2268
|
},
|
|
2257
2269
|
"required": [
|
|
@@ -3531,6 +3543,7 @@
|
|
|
3531
3543
|
"task_follow_up_gate_shadow",
|
|
3532
3544
|
"task_citation_check_refused",
|
|
3533
3545
|
"task_ui_spec_check_refused",
|
|
3546
|
+
"task_ui_script_action_failed",
|
|
3534
3547
|
"channel_message",
|
|
3535
3548
|
"service_registered",
|
|
3536
3549
|
"service_unregistered",
|
|
@@ -3987,7 +4000,8 @@
|
|
|
3987
4000
|
"amp",
|
|
3988
4001
|
"cursor",
|
|
3989
4002
|
"grok",
|
|
3990
|
-
"fx"
|
|
4003
|
+
"fx",
|
|
4004
|
+
"system-one"
|
|
3991
4005
|
]
|
|
3992
4006
|
},
|
|
3993
4007
|
"model": {
|
|
@@ -4165,6 +4179,126 @@
|
|
|
4165
4179
|
"review"
|
|
4166
4180
|
]
|
|
4167
4181
|
},
|
|
4182
|
+
"RequestComposition": {
|
|
4183
|
+
"type": "object",
|
|
4184
|
+
"properties": {
|
|
4185
|
+
"id": {
|
|
4186
|
+
"type": "string",
|
|
4187
|
+
"format": "uuid"
|
|
4188
|
+
},
|
|
4189
|
+
"taskId": {
|
|
4190
|
+
"type": "string"
|
|
4191
|
+
},
|
|
4192
|
+
"agentId": {
|
|
4193
|
+
"type": "string"
|
|
4194
|
+
},
|
|
4195
|
+
"sessionId": {
|
|
4196
|
+
"type": "string"
|
|
4197
|
+
},
|
|
4198
|
+
"seq": {
|
|
4199
|
+
"type": "integer",
|
|
4200
|
+
"minimum": 0
|
|
4201
|
+
},
|
|
4202
|
+
"provider": {
|
|
4203
|
+
"type": "string"
|
|
4204
|
+
},
|
|
4205
|
+
"model": {
|
|
4206
|
+
"type": [
|
|
4207
|
+
"string",
|
|
4208
|
+
"null"
|
|
4209
|
+
]
|
|
4210
|
+
},
|
|
4211
|
+
"source": {
|
|
4212
|
+
"type": "string",
|
|
4213
|
+
"enum": [
|
|
4214
|
+
"worker",
|
|
4215
|
+
"harness-hook"
|
|
4216
|
+
]
|
|
4217
|
+
},
|
|
4218
|
+
"parts": {
|
|
4219
|
+
"type": "array",
|
|
4220
|
+
"items": {
|
|
4221
|
+
"$ref": "#/components/schemas/RequestCompositionPart"
|
|
4222
|
+
}
|
|
4223
|
+
},
|
|
4224
|
+
"staticEstTokens": {
|
|
4225
|
+
"type": "integer",
|
|
4226
|
+
"minimum": 0
|
|
4227
|
+
},
|
|
4228
|
+
"tokenRatio": {
|
|
4229
|
+
"type": "number"
|
|
4230
|
+
},
|
|
4231
|
+
"createdAt": {
|
|
4232
|
+
"type": "string",
|
|
4233
|
+
"format": "date-time"
|
|
4234
|
+
}
|
|
4235
|
+
},
|
|
4236
|
+
"required": [
|
|
4237
|
+
"id",
|
|
4238
|
+
"taskId",
|
|
4239
|
+
"agentId",
|
|
4240
|
+
"sessionId",
|
|
4241
|
+
"seq",
|
|
4242
|
+
"provider",
|
|
4243
|
+
"model",
|
|
4244
|
+
"source",
|
|
4245
|
+
"parts",
|
|
4246
|
+
"staticEstTokens",
|
|
4247
|
+
"tokenRatio",
|
|
4248
|
+
"createdAt"
|
|
4249
|
+
]
|
|
4250
|
+
},
|
|
4251
|
+
"RequestCompositionPart": {
|
|
4252
|
+
"type": "object",
|
|
4253
|
+
"properties": {
|
|
4254
|
+
"kind": {
|
|
4255
|
+
"type": "string",
|
|
4256
|
+
"enum": [
|
|
4257
|
+
"system_section",
|
|
4258
|
+
"persona",
|
|
4259
|
+
"claude_md",
|
|
4260
|
+
"operator_prompt",
|
|
4261
|
+
"tool_schemas",
|
|
4262
|
+
"skills_listing",
|
|
4263
|
+
"task_prompt",
|
|
4264
|
+
"memories"
|
|
4265
|
+
]
|
|
4266
|
+
},
|
|
4267
|
+
"id": {
|
|
4268
|
+
"type": "string",
|
|
4269
|
+
"minLength": 1,
|
|
4270
|
+
"maxLength": 200
|
|
4271
|
+
},
|
|
4272
|
+
"label": {
|
|
4273
|
+
"type": "string",
|
|
4274
|
+
"minLength": 1,
|
|
4275
|
+
"maxLength": 200
|
|
4276
|
+
},
|
|
4277
|
+
"chars": {
|
|
4278
|
+
"type": "integer",
|
|
4279
|
+
"minimum": 0
|
|
4280
|
+
},
|
|
4281
|
+
"fidelity": {
|
|
4282
|
+
"type": "string",
|
|
4283
|
+
"enum": [
|
|
4284
|
+
"exact",
|
|
4285
|
+
"estimate"
|
|
4286
|
+
],
|
|
4287
|
+
"default": "exact"
|
|
4288
|
+
},
|
|
4289
|
+
"estTokens": {
|
|
4290
|
+
"type": "integer",
|
|
4291
|
+
"minimum": 0
|
|
4292
|
+
}
|
|
4293
|
+
},
|
|
4294
|
+
"required": [
|
|
4295
|
+
"kind",
|
|
4296
|
+
"id",
|
|
4297
|
+
"label",
|
|
4298
|
+
"chars",
|
|
4299
|
+
"estTokens"
|
|
4300
|
+
]
|
|
4301
|
+
},
|
|
4168
4302
|
"ScriptRun": {
|
|
4169
4303
|
"type": "object",
|
|
4170
4304
|
"properties": {
|
|
@@ -4448,6 +4582,14 @@
|
|
|
4448
4582
|
],
|
|
4449
4583
|
"default": "harness"
|
|
4450
4584
|
},
|
|
4585
|
+
"kind": {
|
|
4586
|
+
"type": "string",
|
|
4587
|
+
"enum": [
|
|
4588
|
+
"harness",
|
|
4589
|
+
"system-one"
|
|
4590
|
+
],
|
|
4591
|
+
"default": "harness"
|
|
4592
|
+
},
|
|
4451
4593
|
"harnessCostUsd": {
|
|
4452
4594
|
"type": [
|
|
4453
4595
|
"number",
|
|
@@ -5261,6 +5403,12 @@
|
|
|
5261
5403
|
],
|
|
5262
5404
|
"default": "active"
|
|
5263
5405
|
},
|
|
5406
|
+
"mergedIntoUserId": {
|
|
5407
|
+
"type": [
|
|
5408
|
+
"string",
|
|
5409
|
+
"null"
|
|
5410
|
+
]
|
|
5411
|
+
},
|
|
5264
5412
|
"createdAt": {
|
|
5265
5413
|
"type": "string",
|
|
5266
5414
|
"format": "date-time"
|
|
@@ -5277,6 +5425,85 @@
|
|
|
5277
5425
|
"lastUpdatedAt"
|
|
5278
5426
|
]
|
|
5279
5427
|
},
|
|
5428
|
+
"UserMergeJob": {
|
|
5429
|
+
"type": "object",
|
|
5430
|
+
"properties": {
|
|
5431
|
+
"id": {
|
|
5432
|
+
"type": "string"
|
|
5433
|
+
},
|
|
5434
|
+
"sourceUserId": {
|
|
5435
|
+
"type": "string"
|
|
5436
|
+
},
|
|
5437
|
+
"targetUserId": {
|
|
5438
|
+
"type": "string"
|
|
5439
|
+
},
|
|
5440
|
+
"status": {
|
|
5441
|
+
"type": "string",
|
|
5442
|
+
"enum": [
|
|
5443
|
+
"pending",
|
|
5444
|
+
"running",
|
|
5445
|
+
"done",
|
|
5446
|
+
"failed"
|
|
5447
|
+
]
|
|
5448
|
+
},
|
|
5449
|
+
"phase": {
|
|
5450
|
+
"type": [
|
|
5451
|
+
"string",
|
|
5452
|
+
"null"
|
|
5453
|
+
]
|
|
5454
|
+
},
|
|
5455
|
+
"progress": {
|
|
5456
|
+
"type": "object",
|
|
5457
|
+
"additionalProperties": {
|
|
5458
|
+
"type": "number"
|
|
5459
|
+
}
|
|
5460
|
+
},
|
|
5461
|
+
"error": {
|
|
5462
|
+
"type": [
|
|
5463
|
+
"string",
|
|
5464
|
+
"null"
|
|
5465
|
+
]
|
|
5466
|
+
},
|
|
5467
|
+
"attempts": {
|
|
5468
|
+
"type": "number"
|
|
5469
|
+
},
|
|
5470
|
+
"nextAttemptAt": {
|
|
5471
|
+
"type": [
|
|
5472
|
+
"string",
|
|
5473
|
+
"null"
|
|
5474
|
+
]
|
|
5475
|
+
},
|
|
5476
|
+
"createdAt": {
|
|
5477
|
+
"type": "string"
|
|
5478
|
+
},
|
|
5479
|
+
"startedAt": {
|
|
5480
|
+
"type": [
|
|
5481
|
+
"string",
|
|
5482
|
+
"null"
|
|
5483
|
+
]
|
|
5484
|
+
},
|
|
5485
|
+
"finishedAt": {
|
|
5486
|
+
"type": [
|
|
5487
|
+
"string",
|
|
5488
|
+
"null"
|
|
5489
|
+
]
|
|
5490
|
+
}
|
|
5491
|
+
},
|
|
5492
|
+
"required": [
|
|
5493
|
+
"id",
|
|
5494
|
+
"sourceUserId",
|
|
5495
|
+
"targetUserId",
|
|
5496
|
+
"status",
|
|
5497
|
+
"phase",
|
|
5498
|
+
"progress",
|
|
5499
|
+
"error",
|
|
5500
|
+
"attempts",
|
|
5501
|
+
"nextAttemptAt",
|
|
5502
|
+
"createdAt",
|
|
5503
|
+
"startedAt",
|
|
5504
|
+
"finishedAt"
|
|
5505
|
+
]
|
|
5506
|
+
},
|
|
5280
5507
|
"WorkflowDefinition": {
|
|
5281
5508
|
"type": "object",
|
|
5282
5509
|
"properties": {
|
|
@@ -5568,6 +5795,101 @@
|
|
|
5568
5795
|
}
|
|
5569
5796
|
],
|
|
5570
5797
|
"description": "Optional webhook verification format. Omit to keep legacy HMAC-SHA256 behavior with fallback header scanning."
|
|
5798
|
+
},
|
|
5799
|
+
"events": {
|
|
5800
|
+
"type": "array",
|
|
5801
|
+
"items": {
|
|
5802
|
+
"type": "string",
|
|
5803
|
+
"minLength": 1
|
|
5804
|
+
},
|
|
5805
|
+
"description": "Deprecated alias of one delivery-filter clause, AND-ed with filter. Matched exactly against eventHeader, or against the preset event field when eventHeader is omitted: X-GitHub-Event (github, and the default), X-Gitlab-Event (gitlab), or JSON body type (standard-webhooks). A miss returns 200 skipped with reason event-not-allowed and creates no run. Omit or leave empty to add no event clause."
|
|
5806
|
+
},
|
|
5807
|
+
"eventHeader": {
|
|
5808
|
+
"type": "string",
|
|
5809
|
+
"minLength": 1,
|
|
5810
|
+
"description": "Deprecated. Header read for events. The name lookup is case-insensitive and the value is exact. Overrides preset. Defaults to X-GitHub-Event when preset is omitted."
|
|
5811
|
+
},
|
|
5812
|
+
"preset": {
|
|
5813
|
+
"type": "string",
|
|
5814
|
+
"enum": [
|
|
5815
|
+
"github",
|
|
5816
|
+
"gitlab",
|
|
5817
|
+
"standard-webhooks"
|
|
5818
|
+
],
|
|
5819
|
+
"description": "Optional sender preset for the events allowlist. github reads X-GitHub-Event, gitlab reads X-Gitlab-Event, and standard-webhooks reads the JSON body field type. A preset alone does not filter. Ignored when eventHeader is set."
|
|
5820
|
+
},
|
|
5821
|
+
"filter": {
|
|
5822
|
+
"type": "object",
|
|
5823
|
+
"properties": {
|
|
5824
|
+
"headers": {
|
|
5825
|
+
"type": "object",
|
|
5826
|
+
"additionalProperties": {
|
|
5827
|
+
"anyOf": [
|
|
5828
|
+
{
|
|
5829
|
+
"type": "string",
|
|
5830
|
+
"minLength": 1,
|
|
5831
|
+
"maxLength": 512
|
|
5832
|
+
},
|
|
5833
|
+
{
|
|
5834
|
+
"type": "array",
|
|
5835
|
+
"items": {
|
|
5836
|
+
"type": "string",
|
|
5837
|
+
"minLength": 1,
|
|
5838
|
+
"maxLength": 512
|
|
5839
|
+
},
|
|
5840
|
+
"minItems": 1,
|
|
5841
|
+
"maxItems": 64
|
|
5842
|
+
}
|
|
5843
|
+
]
|
|
5844
|
+
},
|
|
5845
|
+
"description": "Header name to one exact value, or a list of exact values. Names are matched case-insensitively. Every entry must match."
|
|
5846
|
+
},
|
|
5847
|
+
"body": {
|
|
5848
|
+
"type": "object",
|
|
5849
|
+
"additionalProperties": {
|
|
5850
|
+
"anyOf": [
|
|
5851
|
+
{
|
|
5852
|
+
"type": "string",
|
|
5853
|
+
"maxLength": 512
|
|
5854
|
+
},
|
|
5855
|
+
{
|
|
5856
|
+
"type": "number"
|
|
5857
|
+
},
|
|
5858
|
+
{
|
|
5859
|
+
"type": "boolean"
|
|
5860
|
+
},
|
|
5861
|
+
{
|
|
5862
|
+
"type": "null"
|
|
5863
|
+
},
|
|
5864
|
+
{
|
|
5865
|
+
"type": "array",
|
|
5866
|
+
"items": {
|
|
5867
|
+
"anyOf": [
|
|
5868
|
+
{
|
|
5869
|
+
"type": "string",
|
|
5870
|
+
"maxLength": 512
|
|
5871
|
+
},
|
|
5872
|
+
{
|
|
5873
|
+
"type": "number"
|
|
5874
|
+
},
|
|
5875
|
+
{
|
|
5876
|
+
"type": "boolean"
|
|
5877
|
+
},
|
|
5878
|
+
{
|
|
5879
|
+
"type": "null"
|
|
5880
|
+
}
|
|
5881
|
+
]
|
|
5882
|
+
},
|
|
5883
|
+
"minItems": 1,
|
|
5884
|
+
"maxItems": 64
|
|
5885
|
+
}
|
|
5886
|
+
]
|
|
5887
|
+
},
|
|
5888
|
+
"description": "Dot path into the JSON body, to one exact scalar or a list of scalars. A numeric segment indexes an array (commits.0.id). No type coercion. Every entry must match."
|
|
5889
|
+
}
|
|
5890
|
+
},
|
|
5891
|
+
"additionalProperties": false,
|
|
5892
|
+
"description": "Header and JSON body allowlists, AND-ed with events. Evaluated after signature verification and before a run is saved. A miss returns 200 skipped with reason filter-not-matched and creates no run."
|
|
5571
5893
|
}
|
|
5572
5894
|
},
|
|
5573
5895
|
"required": [
|
|
@@ -6333,6 +6655,101 @@
|
|
|
6333
6655
|
}
|
|
6334
6656
|
],
|
|
6335
6657
|
"description": "Optional webhook verification format. Omit to keep legacy HMAC-SHA256 behavior with fallback header scanning."
|
|
6658
|
+
},
|
|
6659
|
+
"events": {
|
|
6660
|
+
"type": "array",
|
|
6661
|
+
"items": {
|
|
6662
|
+
"type": "string",
|
|
6663
|
+
"minLength": 1
|
|
6664
|
+
},
|
|
6665
|
+
"description": "Deprecated alias of one delivery-filter clause, AND-ed with filter. Matched exactly against eventHeader, or against the preset event field when eventHeader is omitted: X-GitHub-Event (github, and the default), X-Gitlab-Event (gitlab), or JSON body type (standard-webhooks). A miss returns 200 skipped with reason event-not-allowed and creates no run. Omit or leave empty to add no event clause."
|
|
6666
|
+
},
|
|
6667
|
+
"eventHeader": {
|
|
6668
|
+
"type": "string",
|
|
6669
|
+
"minLength": 1,
|
|
6670
|
+
"description": "Deprecated. Header read for events. The name lookup is case-insensitive and the value is exact. Overrides preset. Defaults to X-GitHub-Event when preset is omitted."
|
|
6671
|
+
},
|
|
6672
|
+
"preset": {
|
|
6673
|
+
"type": "string",
|
|
6674
|
+
"enum": [
|
|
6675
|
+
"github",
|
|
6676
|
+
"gitlab",
|
|
6677
|
+
"standard-webhooks"
|
|
6678
|
+
],
|
|
6679
|
+
"description": "Optional sender preset for the events allowlist. github reads X-GitHub-Event, gitlab reads X-Gitlab-Event, and standard-webhooks reads the JSON body field type. A preset alone does not filter. Ignored when eventHeader is set."
|
|
6680
|
+
},
|
|
6681
|
+
"filter": {
|
|
6682
|
+
"type": "object",
|
|
6683
|
+
"properties": {
|
|
6684
|
+
"headers": {
|
|
6685
|
+
"type": "object",
|
|
6686
|
+
"additionalProperties": {
|
|
6687
|
+
"anyOf": [
|
|
6688
|
+
{
|
|
6689
|
+
"type": "string",
|
|
6690
|
+
"minLength": 1,
|
|
6691
|
+
"maxLength": 512
|
|
6692
|
+
},
|
|
6693
|
+
{
|
|
6694
|
+
"type": "array",
|
|
6695
|
+
"items": {
|
|
6696
|
+
"type": "string",
|
|
6697
|
+
"minLength": 1,
|
|
6698
|
+
"maxLength": 512
|
|
6699
|
+
},
|
|
6700
|
+
"minItems": 1,
|
|
6701
|
+
"maxItems": 64
|
|
6702
|
+
}
|
|
6703
|
+
]
|
|
6704
|
+
},
|
|
6705
|
+
"description": "Header name to one exact value, or a list of exact values. Names are matched case-insensitively. Every entry must match."
|
|
6706
|
+
},
|
|
6707
|
+
"body": {
|
|
6708
|
+
"type": "object",
|
|
6709
|
+
"additionalProperties": {
|
|
6710
|
+
"anyOf": [
|
|
6711
|
+
{
|
|
6712
|
+
"type": "string",
|
|
6713
|
+
"maxLength": 512
|
|
6714
|
+
},
|
|
6715
|
+
{
|
|
6716
|
+
"type": "number"
|
|
6717
|
+
},
|
|
6718
|
+
{
|
|
6719
|
+
"type": "boolean"
|
|
6720
|
+
},
|
|
6721
|
+
{
|
|
6722
|
+
"type": "null"
|
|
6723
|
+
},
|
|
6724
|
+
{
|
|
6725
|
+
"type": "array",
|
|
6726
|
+
"items": {
|
|
6727
|
+
"anyOf": [
|
|
6728
|
+
{
|
|
6729
|
+
"type": "string",
|
|
6730
|
+
"maxLength": 512
|
|
6731
|
+
},
|
|
6732
|
+
{
|
|
6733
|
+
"type": "number"
|
|
6734
|
+
},
|
|
6735
|
+
{
|
|
6736
|
+
"type": "boolean"
|
|
6737
|
+
},
|
|
6738
|
+
{
|
|
6739
|
+
"type": "null"
|
|
6740
|
+
}
|
|
6741
|
+
]
|
|
6742
|
+
},
|
|
6743
|
+
"minItems": 1,
|
|
6744
|
+
"maxItems": 64
|
|
6745
|
+
}
|
|
6746
|
+
]
|
|
6747
|
+
},
|
|
6748
|
+
"description": "Dot path into the JSON body, to one exact scalar or a list of scalars. A numeric segment indexes an array (commits.0.id). No type coercion. Every entry must match."
|
|
6749
|
+
}
|
|
6750
|
+
},
|
|
6751
|
+
"additionalProperties": false,
|
|
6752
|
+
"description": "Header and JSON body allowlists, AND-ed with events. Evaluated after signature verification and before a run is saved. A miss returns 200 skipped with reason filter-not-matched and creates no run."
|
|
6336
6753
|
}
|
|
6337
6754
|
},
|
|
6338
6755
|
"required": [
|
|
@@ -6594,6 +7011,21 @@
|
|
|
6594
7011
|
],
|
|
6595
7012
|
"additionalProperties": false
|
|
6596
7013
|
},
|
|
7014
|
+
"workspace": {
|
|
7015
|
+
"type": [
|
|
7016
|
+
"object",
|
|
7017
|
+
"null"
|
|
7018
|
+
],
|
|
7019
|
+
"properties": {
|
|
7020
|
+
"sizeGb": {
|
|
7021
|
+
"type": "integer",
|
|
7022
|
+
"minimum": 1,
|
|
7023
|
+
"maximum": 1024
|
|
7024
|
+
}
|
|
7025
|
+
},
|
|
7026
|
+
"default": null,
|
|
7027
|
+
"additionalProperties": false
|
|
7028
|
+
},
|
|
6597
7029
|
"ttlSec": {
|
|
6598
7030
|
"type": [
|
|
6599
7031
|
"integer",
|
|
@@ -6744,6 +7176,12 @@
|
|
|
6744
7176
|
"null"
|
|
6745
7177
|
]
|
|
6746
7178
|
},
|
|
7179
|
+
"workspaceSlot": {
|
|
7180
|
+
"type": [
|
|
7181
|
+
"integer",
|
|
7182
|
+
"null"
|
|
7183
|
+
]
|
|
7184
|
+
},
|
|
6747
7185
|
"reportedSlots": {
|
|
6748
7186
|
"type": "integer"
|
|
6749
7187
|
},
|
|
@@ -12245,6 +12683,12 @@
|
|
|
12245
12683
|
"null"
|
|
12246
12684
|
]
|
|
12247
12685
|
},
|
|
12686
|
+
"workspaceSlot": {
|
|
12687
|
+
"type": [
|
|
12688
|
+
"integer",
|
|
12689
|
+
"null"
|
|
12690
|
+
]
|
|
12691
|
+
},
|
|
12248
12692
|
"reportedSlots": {
|
|
12249
12693
|
"type": "integer"
|
|
12250
12694
|
},
|
|
@@ -25473,6 +25917,84 @@
|
|
|
25473
25917
|
}
|
|
25474
25918
|
}
|
|
25475
25919
|
},
|
|
25920
|
+
"/api/github/installation-token": {
|
|
25921
|
+
"post": {
|
|
25922
|
+
"summary": "Mint a GitHub App installation token for worker git and gh",
|
|
25923
|
+
"description": "Internal worker endpoint. Returns a short-lived installation token for the installation in `GITHUB_APP_INSTALLATION_ID`, minted with the API server's GitHub App credentials. The caller cannot choose the installation. Only a registered agent (swarm API key plus X-Agent-ID, or an agent or runtime token) may call it; user, guest and ACP task tokens are refused. 404 when the App or the installation id is not configured, so workers fall back to `GITHUB_TOKEN`.",
|
|
25924
|
+
"tags": [
|
|
25925
|
+
"GitHub"
|
|
25926
|
+
],
|
|
25927
|
+
"security": [
|
|
25928
|
+
{
|
|
25929
|
+
"bearerAuth": []
|
|
25930
|
+
}
|
|
25931
|
+
],
|
|
25932
|
+
"requestBody": {
|
|
25933
|
+
"content": {
|
|
25934
|
+
"application/json": {
|
|
25935
|
+
"schema": {
|
|
25936
|
+
"type": "object",
|
|
25937
|
+
"properties": {}
|
|
25938
|
+
}
|
|
25939
|
+
}
|
|
25940
|
+
}
|
|
25941
|
+
},
|
|
25942
|
+
"responses": {
|
|
25943
|
+
"200": {
|
|
25944
|
+
"description": "Installation token and its expiry (ISO 8601)",
|
|
25945
|
+
"content": {
|
|
25946
|
+
"application/json": {
|
|
25947
|
+
"schema": {
|
|
25948
|
+
"type": "object",
|
|
25949
|
+
"properties": {
|
|
25950
|
+
"token": {
|
|
25951
|
+
"type": "string"
|
|
25952
|
+
},
|
|
25953
|
+
"expiresAt": {
|
|
25954
|
+
"type": "string"
|
|
25955
|
+
}
|
|
25956
|
+
},
|
|
25957
|
+
"required": [
|
|
25958
|
+
"token",
|
|
25959
|
+
"expiresAt"
|
|
25960
|
+
]
|
|
25961
|
+
}
|
|
25962
|
+
}
|
|
25963
|
+
}
|
|
25964
|
+
},
|
|
25965
|
+
"403": {
|
|
25966
|
+
"description": "Caller is not a registered agent",
|
|
25967
|
+
"content": {
|
|
25968
|
+
"application/json": {
|
|
25969
|
+
"schema": {
|
|
25970
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
25971
|
+
}
|
|
25972
|
+
}
|
|
25973
|
+
}
|
|
25974
|
+
},
|
|
25975
|
+
"404": {
|
|
25976
|
+
"description": "GitHub App worker auth is not configured",
|
|
25977
|
+
"content": {
|
|
25978
|
+
"application/json": {
|
|
25979
|
+
"schema": {
|
|
25980
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
25981
|
+
}
|
|
25982
|
+
}
|
|
25983
|
+
}
|
|
25984
|
+
},
|
|
25985
|
+
"502": {
|
|
25986
|
+
"description": "GitHub refused or failed to mint the token",
|
|
25987
|
+
"content": {
|
|
25988
|
+
"application/json": {
|
|
25989
|
+
"schema": {
|
|
25990
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
25991
|
+
}
|
|
25992
|
+
}
|
|
25993
|
+
}
|
|
25994
|
+
}
|
|
25995
|
+
}
|
|
25996
|
+
}
|
|
25997
|
+
},
|
|
25476
25998
|
"/api/heartbeat/sweep": {
|
|
25477
25999
|
"post": {
|
|
25478
26000
|
"summary": "Trigger an immediate heartbeat sweep",
|
|
@@ -30388,10 +30910,10 @@
|
|
|
30388
30910
|
}
|
|
30389
30911
|
}
|
|
30390
30912
|
},
|
|
30391
|
-
"/api/model-
|
|
30913
|
+
"/api/model-groups": {
|
|
30392
30914
|
"get": {
|
|
30393
|
-
"summary": "List model
|
|
30394
|
-
"description": "Every model
|
|
30915
|
+
"summary": "List model groups",
|
|
30916
|
+
"description": "Every model group with its member profiles in order, by name.",
|
|
30395
30917
|
"tags": [
|
|
30396
30918
|
"Models"
|
|
30397
30919
|
],
|
|
@@ -30400,39 +30922,15 @@
|
|
|
30400
30922
|
"bearerAuth": []
|
|
30401
30923
|
}
|
|
30402
30924
|
],
|
|
30403
|
-
"parameters": [
|
|
30404
|
-
{
|
|
30405
|
-
"schema": {
|
|
30406
|
-
"type": "string",
|
|
30407
|
-
"enum": [
|
|
30408
|
-
"claude",
|
|
30409
|
-
"codex",
|
|
30410
|
-
"pi",
|
|
30411
|
-
"devin",
|
|
30412
|
-
"claude-managed",
|
|
30413
|
-
"opencode",
|
|
30414
|
-
"acp",
|
|
30415
|
-
"dsh",
|
|
30416
|
-
"amp",
|
|
30417
|
-
"cursor",
|
|
30418
|
-
"grok",
|
|
30419
|
-
"fx"
|
|
30420
|
-
]
|
|
30421
|
-
},
|
|
30422
|
-
"required": false,
|
|
30423
|
-
"name": "harness",
|
|
30424
|
-
"in": "query"
|
|
30425
|
-
}
|
|
30426
|
-
],
|
|
30427
30925
|
"responses": {
|
|
30428
30926
|
"200": {
|
|
30429
|
-
"description": "Model
|
|
30927
|
+
"description": "Model groups",
|
|
30430
30928
|
"content": {
|
|
30431
30929
|
"application/json": {
|
|
30432
30930
|
"schema": {
|
|
30433
30931
|
"type": "object",
|
|
30434
30932
|
"properties": {
|
|
30435
|
-
"
|
|
30933
|
+
"groups": {
|
|
30436
30934
|
"type": "array",
|
|
30437
30935
|
"items": {
|
|
30438
30936
|
"type": "object",
|
|
@@ -30443,44 +30941,6 @@
|
|
|
30443
30941
|
"name": {
|
|
30444
30942
|
"type": "string"
|
|
30445
30943
|
},
|
|
30446
|
-
"harness": {
|
|
30447
|
-
"type": "string",
|
|
30448
|
-
"enum": [
|
|
30449
|
-
"claude",
|
|
30450
|
-
"codex",
|
|
30451
|
-
"pi",
|
|
30452
|
-
"devin",
|
|
30453
|
-
"claude-managed",
|
|
30454
|
-
"opencode",
|
|
30455
|
-
"acp",
|
|
30456
|
-
"dsh",
|
|
30457
|
-
"amp",
|
|
30458
|
-
"cursor",
|
|
30459
|
-
"grok",
|
|
30460
|
-
"fx"
|
|
30461
|
-
]
|
|
30462
|
-
},
|
|
30463
|
-
"model": {
|
|
30464
|
-
"type": "string"
|
|
30465
|
-
},
|
|
30466
|
-
"effort": {
|
|
30467
|
-
"type": [
|
|
30468
|
-
"string",
|
|
30469
|
-
"null"
|
|
30470
|
-
],
|
|
30471
|
-
"enum": [
|
|
30472
|
-
"off",
|
|
30473
|
-
"low",
|
|
30474
|
-
"medium",
|
|
30475
|
-
"high",
|
|
30476
|
-
"xhigh",
|
|
30477
|
-
"max",
|
|
30478
|
-
null
|
|
30479
|
-
]
|
|
30480
|
-
},
|
|
30481
|
-
"allowCustomModel": {
|
|
30482
|
-
"type": "boolean"
|
|
30483
|
-
},
|
|
30484
30944
|
"description": {
|
|
30485
30945
|
"type": [
|
|
30486
30946
|
"string",
|
|
@@ -30493,22 +30953,7 @@
|
|
|
30493
30953
|
"null"
|
|
30494
30954
|
]
|
|
30495
30955
|
},
|
|
30496
|
-
"
|
|
30497
|
-
"type": [
|
|
30498
|
-
"object",
|
|
30499
|
-
"null"
|
|
30500
|
-
],
|
|
30501
|
-
"additionalProperties": {
|
|
30502
|
-
"type": "array",
|
|
30503
|
-
"items": {
|
|
30504
|
-
"type": "string",
|
|
30505
|
-
"minLength": 5,
|
|
30506
|
-
"maxLength": 5
|
|
30507
|
-
},
|
|
30508
|
-
"minItems": 1
|
|
30509
|
-
}
|
|
30510
|
-
},
|
|
30511
|
-
"fallbacks": {
|
|
30956
|
+
"members": {
|
|
30512
30957
|
"type": "array",
|
|
30513
30958
|
"items": {
|
|
30514
30959
|
"type": "string"
|
|
@@ -30524,14 +30969,9 @@
|
|
|
30524
30969
|
"required": [
|
|
30525
30970
|
"id",
|
|
30526
30971
|
"name",
|
|
30527
|
-
"harness",
|
|
30528
|
-
"model",
|
|
30529
|
-
"effort",
|
|
30530
|
-
"allowCustomModel",
|
|
30531
30972
|
"description",
|
|
30532
30973
|
"seededFrom",
|
|
30533
|
-
"
|
|
30534
|
-
"fallbacks",
|
|
30974
|
+
"members",
|
|
30535
30975
|
"createdAt",
|
|
30536
30976
|
"lastUpdatedAt"
|
|
30537
30977
|
]
|
|
@@ -30539,7 +30979,7 @@
|
|
|
30539
30979
|
}
|
|
30540
30980
|
},
|
|
30541
30981
|
"required": [
|
|
30542
|
-
"
|
|
30982
|
+
"groups"
|
|
30543
30983
|
]
|
|
30544
30984
|
}
|
|
30545
30985
|
}
|
|
@@ -30548,8 +30988,8 @@
|
|
|
30548
30988
|
}
|
|
30549
30989
|
},
|
|
30550
30990
|
"post": {
|
|
30551
|
-
"summary": "Create a model
|
|
30552
|
-
"description": "A
|
|
30991
|
+
"summary": "Create a model group",
|
|
30992
|
+
"description": "A group is an ordered list of model profiles that may span harnesses. Every member must be an existing profile, listed once. The name may not be a model profile's (groups and profiles share one name space; 409). Lead, operator or dashboard user.",
|
|
30553
30993
|
"tags": [
|
|
30554
30994
|
"Models"
|
|
30555
30995
|
],
|
|
@@ -30568,46 +31008,6 @@
|
|
|
30568
31008
|
"type": "string",
|
|
30569
31009
|
"pattern": "^[a-z0-9][a-z0-9._-]{0,99}$"
|
|
30570
31010
|
},
|
|
30571
|
-
"harness": {
|
|
30572
|
-
"type": "string",
|
|
30573
|
-
"enum": [
|
|
30574
|
-
"claude",
|
|
30575
|
-
"codex",
|
|
30576
|
-
"pi",
|
|
30577
|
-
"devin",
|
|
30578
|
-
"claude-managed",
|
|
30579
|
-
"opencode",
|
|
30580
|
-
"acp",
|
|
30581
|
-
"dsh",
|
|
30582
|
-
"amp",
|
|
30583
|
-
"cursor",
|
|
30584
|
-
"grok",
|
|
30585
|
-
"fx"
|
|
30586
|
-
]
|
|
30587
|
-
},
|
|
30588
|
-
"model": {
|
|
30589
|
-
"type": "string",
|
|
30590
|
-
"minLength": 1
|
|
30591
|
-
},
|
|
30592
|
-
"effort": {
|
|
30593
|
-
"type": [
|
|
30594
|
-
"string",
|
|
30595
|
-
"null"
|
|
30596
|
-
],
|
|
30597
|
-
"enum": [
|
|
30598
|
-
"off",
|
|
30599
|
-
"low",
|
|
30600
|
-
"medium",
|
|
30601
|
-
"high",
|
|
30602
|
-
"xhigh",
|
|
30603
|
-
"max",
|
|
30604
|
-
null
|
|
30605
|
-
]
|
|
30606
|
-
},
|
|
30607
|
-
"allowCustomModel": {
|
|
30608
|
-
"type": "boolean",
|
|
30609
|
-
"default": false
|
|
30610
|
-
},
|
|
30611
31011
|
"description": {
|
|
30612
31012
|
"type": [
|
|
30613
31013
|
"string",
|
|
@@ -30615,34 +31015,20 @@
|
|
|
30615
31015
|
],
|
|
30616
31016
|
"maxLength": 500
|
|
30617
31017
|
},
|
|
30618
|
-
"
|
|
30619
|
-
"type": [
|
|
30620
|
-
"object",
|
|
30621
|
-
"null"
|
|
30622
|
-
],
|
|
30623
|
-
"additionalProperties": {
|
|
30624
|
-
"type": "array",
|
|
30625
|
-
"items": {
|
|
30626
|
-
"type": "string",
|
|
30627
|
-
"minLength": 5,
|
|
30628
|
-
"maxLength": 5
|
|
30629
|
-
},
|
|
30630
|
-
"minItems": 1
|
|
30631
|
-
}
|
|
30632
|
-
},
|
|
30633
|
-
"fallbacks": {
|
|
31018
|
+
"members": {
|
|
30634
31019
|
"type": "array",
|
|
30635
31020
|
"items": {
|
|
30636
31021
|
"type": "string",
|
|
30637
31022
|
"pattern": "^[a-z0-9][a-z0-9._-]{0,99}$"
|
|
30638
31023
|
},
|
|
30639
|
-
"
|
|
31024
|
+
"minItems": 1,
|
|
31025
|
+
"maxItems": 20,
|
|
31026
|
+
"description": "Profile names in preference order, first preferred. Any harness; no repeats."
|
|
30640
31027
|
}
|
|
30641
31028
|
},
|
|
30642
31029
|
"required": [
|
|
30643
31030
|
"name",
|
|
30644
|
-
"
|
|
30645
|
-
"model"
|
|
31031
|
+
"members"
|
|
30646
31032
|
]
|
|
30647
31033
|
}
|
|
30648
31034
|
}
|
|
@@ -30650,7 +31036,7 @@
|
|
|
30650
31036
|
},
|
|
30651
31037
|
"responses": {
|
|
30652
31038
|
"201": {
|
|
30653
|
-
"description": "
|
|
31039
|
+
"description": "Group created",
|
|
30654
31040
|
"content": {
|
|
30655
31041
|
"application/json": {
|
|
30656
31042
|
"schema": {
|
|
@@ -30662,44 +31048,6 @@
|
|
|
30662
31048
|
"name": {
|
|
30663
31049
|
"type": "string"
|
|
30664
31050
|
},
|
|
30665
|
-
"harness": {
|
|
30666
|
-
"type": "string",
|
|
30667
|
-
"enum": [
|
|
30668
|
-
"claude",
|
|
30669
|
-
"codex",
|
|
30670
|
-
"pi",
|
|
30671
|
-
"devin",
|
|
30672
|
-
"claude-managed",
|
|
30673
|
-
"opencode",
|
|
30674
|
-
"acp",
|
|
30675
|
-
"dsh",
|
|
30676
|
-
"amp",
|
|
30677
|
-
"cursor",
|
|
30678
|
-
"grok",
|
|
30679
|
-
"fx"
|
|
30680
|
-
]
|
|
30681
|
-
},
|
|
30682
|
-
"model": {
|
|
30683
|
-
"type": "string"
|
|
30684
|
-
},
|
|
30685
|
-
"effort": {
|
|
30686
|
-
"type": [
|
|
30687
|
-
"string",
|
|
30688
|
-
"null"
|
|
30689
|
-
],
|
|
30690
|
-
"enum": [
|
|
30691
|
-
"off",
|
|
30692
|
-
"low",
|
|
30693
|
-
"medium",
|
|
30694
|
-
"high",
|
|
30695
|
-
"xhigh",
|
|
30696
|
-
"max",
|
|
30697
|
-
null
|
|
30698
|
-
]
|
|
30699
|
-
},
|
|
30700
|
-
"allowCustomModel": {
|
|
30701
|
-
"type": "boolean"
|
|
30702
|
-
},
|
|
30703
31051
|
"description": {
|
|
30704
31052
|
"type": [
|
|
30705
31053
|
"string",
|
|
@@ -30712,22 +31060,7 @@
|
|
|
30712
31060
|
"null"
|
|
30713
31061
|
]
|
|
30714
31062
|
},
|
|
30715
|
-
"
|
|
30716
|
-
"type": [
|
|
30717
|
-
"object",
|
|
30718
|
-
"null"
|
|
30719
|
-
],
|
|
30720
|
-
"additionalProperties": {
|
|
30721
|
-
"type": "array",
|
|
30722
|
-
"items": {
|
|
30723
|
-
"type": "string",
|
|
30724
|
-
"minLength": 5,
|
|
30725
|
-
"maxLength": 5
|
|
30726
|
-
},
|
|
30727
|
-
"minItems": 1
|
|
30728
|
-
}
|
|
30729
|
-
},
|
|
30730
|
-
"fallbacks": {
|
|
31063
|
+
"members": {
|
|
30731
31064
|
"type": "array",
|
|
30732
31065
|
"items": {
|
|
30733
31066
|
"type": "string"
|
|
@@ -30743,14 +31076,9 @@
|
|
|
30743
31076
|
"required": [
|
|
30744
31077
|
"id",
|
|
30745
31078
|
"name",
|
|
30746
|
-
"harness",
|
|
30747
|
-
"model",
|
|
30748
|
-
"effort",
|
|
30749
|
-
"allowCustomModel",
|
|
30750
31079
|
"description",
|
|
30751
31080
|
"seededFrom",
|
|
30752
|
-
"
|
|
30753
|
-
"fallbacks",
|
|
31081
|
+
"members",
|
|
30754
31082
|
"createdAt",
|
|
30755
31083
|
"lastUpdatedAt"
|
|
30756
31084
|
]
|
|
@@ -30779,7 +31107,828 @@
|
|
|
30779
31107
|
}
|
|
30780
31108
|
},
|
|
30781
31109
|
"409": {
|
|
30782
|
-
"description": "A profile with that name exists",
|
|
31110
|
+
"description": "A group or profile with that name exists",
|
|
31111
|
+
"content": {
|
|
31112
|
+
"application/json": {
|
|
31113
|
+
"schema": {
|
|
31114
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
31115
|
+
}
|
|
31116
|
+
}
|
|
31117
|
+
}
|
|
31118
|
+
}
|
|
31119
|
+
}
|
|
31120
|
+
}
|
|
31121
|
+
},
|
|
31122
|
+
"/api/model-groups/{name}": {
|
|
31123
|
+
"get": {
|
|
31124
|
+
"summary": "Get one model group",
|
|
31125
|
+
"tags": [
|
|
31126
|
+
"Models"
|
|
31127
|
+
],
|
|
31128
|
+
"security": [
|
|
31129
|
+
{
|
|
31130
|
+
"bearerAuth": []
|
|
31131
|
+
}
|
|
31132
|
+
],
|
|
31133
|
+
"parameters": [
|
|
31134
|
+
{
|
|
31135
|
+
"schema": {
|
|
31136
|
+
"type": "string"
|
|
31137
|
+
},
|
|
31138
|
+
"required": true,
|
|
31139
|
+
"name": "name",
|
|
31140
|
+
"in": "path"
|
|
31141
|
+
}
|
|
31142
|
+
],
|
|
31143
|
+
"responses": {
|
|
31144
|
+
"200": {
|
|
31145
|
+
"description": "The model group",
|
|
31146
|
+
"content": {
|
|
31147
|
+
"application/json": {
|
|
31148
|
+
"schema": {
|
|
31149
|
+
"type": "object",
|
|
31150
|
+
"properties": {
|
|
31151
|
+
"id": {
|
|
31152
|
+
"type": "string"
|
|
31153
|
+
},
|
|
31154
|
+
"name": {
|
|
31155
|
+
"type": "string"
|
|
31156
|
+
},
|
|
31157
|
+
"description": {
|
|
31158
|
+
"type": [
|
|
31159
|
+
"string",
|
|
31160
|
+
"null"
|
|
31161
|
+
]
|
|
31162
|
+
},
|
|
31163
|
+
"seededFrom": {
|
|
31164
|
+
"type": [
|
|
31165
|
+
"string",
|
|
31166
|
+
"null"
|
|
31167
|
+
]
|
|
31168
|
+
},
|
|
31169
|
+
"members": {
|
|
31170
|
+
"type": "array",
|
|
31171
|
+
"items": {
|
|
31172
|
+
"type": "string"
|
|
31173
|
+
}
|
|
31174
|
+
},
|
|
31175
|
+
"createdAt": {
|
|
31176
|
+
"type": "string"
|
|
31177
|
+
},
|
|
31178
|
+
"lastUpdatedAt": {
|
|
31179
|
+
"type": "string"
|
|
31180
|
+
}
|
|
31181
|
+
},
|
|
31182
|
+
"required": [
|
|
31183
|
+
"id",
|
|
31184
|
+
"name",
|
|
31185
|
+
"description",
|
|
31186
|
+
"seededFrom",
|
|
31187
|
+
"members",
|
|
31188
|
+
"createdAt",
|
|
31189
|
+
"lastUpdatedAt"
|
|
31190
|
+
]
|
|
31191
|
+
}
|
|
31192
|
+
}
|
|
31193
|
+
}
|
|
31194
|
+
},
|
|
31195
|
+
"404": {
|
|
31196
|
+
"description": "No group with that name",
|
|
31197
|
+
"content": {
|
|
31198
|
+
"application/json": {
|
|
31199
|
+
"schema": {
|
|
31200
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
31201
|
+
}
|
|
31202
|
+
}
|
|
31203
|
+
}
|
|
31204
|
+
}
|
|
31205
|
+
}
|
|
31206
|
+
},
|
|
31207
|
+
"patch": {
|
|
31208
|
+
"summary": "Update a model group",
|
|
31209
|
+
"description": "Changes the description (`null` clears it). The name is fixed; reorder or replace members with `PUT /api/model-groups/{name}/members`. Lead, operator or dashboard user.",
|
|
31210
|
+
"tags": [
|
|
31211
|
+
"Models"
|
|
31212
|
+
],
|
|
31213
|
+
"security": [
|
|
31214
|
+
{
|
|
31215
|
+
"bearerAuth": []
|
|
31216
|
+
}
|
|
31217
|
+
],
|
|
31218
|
+
"parameters": [
|
|
31219
|
+
{
|
|
31220
|
+
"schema": {
|
|
31221
|
+
"type": "string"
|
|
31222
|
+
},
|
|
31223
|
+
"required": true,
|
|
31224
|
+
"name": "name",
|
|
31225
|
+
"in": "path"
|
|
31226
|
+
}
|
|
31227
|
+
],
|
|
31228
|
+
"requestBody": {
|
|
31229
|
+
"content": {
|
|
31230
|
+
"application/json": {
|
|
31231
|
+
"schema": {
|
|
31232
|
+
"type": "object",
|
|
31233
|
+
"properties": {
|
|
31234
|
+
"description": {
|
|
31235
|
+
"type": [
|
|
31236
|
+
"string",
|
|
31237
|
+
"null"
|
|
31238
|
+
],
|
|
31239
|
+
"maxLength": 500
|
|
31240
|
+
}
|
|
31241
|
+
},
|
|
31242
|
+
"required": [
|
|
31243
|
+
"description"
|
|
31244
|
+
]
|
|
31245
|
+
}
|
|
31246
|
+
}
|
|
31247
|
+
}
|
|
31248
|
+
},
|
|
31249
|
+
"responses": {
|
|
31250
|
+
"200": {
|
|
31251
|
+
"description": "Group updated",
|
|
31252
|
+
"content": {
|
|
31253
|
+
"application/json": {
|
|
31254
|
+
"schema": {
|
|
31255
|
+
"type": "object",
|
|
31256
|
+
"properties": {
|
|
31257
|
+
"id": {
|
|
31258
|
+
"type": "string"
|
|
31259
|
+
},
|
|
31260
|
+
"name": {
|
|
31261
|
+
"type": "string"
|
|
31262
|
+
},
|
|
31263
|
+
"description": {
|
|
31264
|
+
"type": [
|
|
31265
|
+
"string",
|
|
31266
|
+
"null"
|
|
31267
|
+
]
|
|
31268
|
+
},
|
|
31269
|
+
"seededFrom": {
|
|
31270
|
+
"type": [
|
|
31271
|
+
"string",
|
|
31272
|
+
"null"
|
|
31273
|
+
]
|
|
31274
|
+
},
|
|
31275
|
+
"members": {
|
|
31276
|
+
"type": "array",
|
|
31277
|
+
"items": {
|
|
31278
|
+
"type": "string"
|
|
31279
|
+
}
|
|
31280
|
+
},
|
|
31281
|
+
"createdAt": {
|
|
31282
|
+
"type": "string"
|
|
31283
|
+
},
|
|
31284
|
+
"lastUpdatedAt": {
|
|
31285
|
+
"type": "string"
|
|
31286
|
+
}
|
|
31287
|
+
},
|
|
31288
|
+
"required": [
|
|
31289
|
+
"id",
|
|
31290
|
+
"name",
|
|
31291
|
+
"description",
|
|
31292
|
+
"seededFrom",
|
|
31293
|
+
"members",
|
|
31294
|
+
"createdAt",
|
|
31295
|
+
"lastUpdatedAt"
|
|
31296
|
+
]
|
|
31297
|
+
}
|
|
31298
|
+
}
|
|
31299
|
+
}
|
|
31300
|
+
},
|
|
31301
|
+
"400": {
|
|
31302
|
+
"description": "Validation error",
|
|
31303
|
+
"content": {
|
|
31304
|
+
"application/json": {
|
|
31305
|
+
"schema": {
|
|
31306
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
31307
|
+
}
|
|
31308
|
+
}
|
|
31309
|
+
}
|
|
31310
|
+
},
|
|
31311
|
+
"403": {
|
|
31312
|
+
"description": "Forbidden",
|
|
31313
|
+
"content": {
|
|
31314
|
+
"application/json": {
|
|
31315
|
+
"schema": {
|
|
31316
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
31317
|
+
}
|
|
31318
|
+
}
|
|
31319
|
+
}
|
|
31320
|
+
},
|
|
31321
|
+
"404": {
|
|
31322
|
+
"description": "No group with that name",
|
|
31323
|
+
"content": {
|
|
31324
|
+
"application/json": {
|
|
31325
|
+
"schema": {
|
|
31326
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
31327
|
+
}
|
|
31328
|
+
}
|
|
31329
|
+
}
|
|
31330
|
+
}
|
|
31331
|
+
}
|
|
31332
|
+
},
|
|
31333
|
+
"delete": {
|
|
31334
|
+
"summary": "Delete a model group",
|
|
31335
|
+
"description": "Refused (409) for a shipped tier group (`smol`, `regular`, `smart`, `ultra`; edit it instead, it would come back at the next boot), and while a schedule names the group or a task holds it (unfinished, or superseded and still owed its resume). Lead, operator or dashboard user.",
|
|
31336
|
+
"tags": [
|
|
31337
|
+
"Models"
|
|
31338
|
+
],
|
|
31339
|
+
"security": [
|
|
31340
|
+
{
|
|
31341
|
+
"bearerAuth": []
|
|
31342
|
+
}
|
|
31343
|
+
],
|
|
31344
|
+
"parameters": [
|
|
31345
|
+
{
|
|
31346
|
+
"schema": {
|
|
31347
|
+
"type": "string"
|
|
31348
|
+
},
|
|
31349
|
+
"required": true,
|
|
31350
|
+
"name": "name",
|
|
31351
|
+
"in": "path"
|
|
31352
|
+
}
|
|
31353
|
+
],
|
|
31354
|
+
"responses": {
|
|
31355
|
+
"200": {
|
|
31356
|
+
"description": "Group deleted",
|
|
31357
|
+
"content": {
|
|
31358
|
+
"application/json": {
|
|
31359
|
+
"schema": {
|
|
31360
|
+
"type": "object",
|
|
31361
|
+
"properties": {
|
|
31362
|
+
"deleted": {
|
|
31363
|
+
"type": "boolean",
|
|
31364
|
+
"enum": [
|
|
31365
|
+
true
|
|
31366
|
+
]
|
|
31367
|
+
}
|
|
31368
|
+
},
|
|
31369
|
+
"required": [
|
|
31370
|
+
"deleted"
|
|
31371
|
+
]
|
|
31372
|
+
}
|
|
31373
|
+
}
|
|
31374
|
+
}
|
|
31375
|
+
},
|
|
31376
|
+
"403": {
|
|
31377
|
+
"description": "Forbidden",
|
|
31378
|
+
"content": {
|
|
31379
|
+
"application/json": {
|
|
31380
|
+
"schema": {
|
|
31381
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
31382
|
+
}
|
|
31383
|
+
}
|
|
31384
|
+
}
|
|
31385
|
+
},
|
|
31386
|
+
"404": {
|
|
31387
|
+
"description": "No group with that name",
|
|
31388
|
+
"content": {
|
|
31389
|
+
"application/json": {
|
|
31390
|
+
"schema": {
|
|
31391
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
31392
|
+
}
|
|
31393
|
+
}
|
|
31394
|
+
}
|
|
31395
|
+
},
|
|
31396
|
+
"409": {
|
|
31397
|
+
"description": "The group is a seed or still in use",
|
|
31398
|
+
"content": {
|
|
31399
|
+
"application/json": {
|
|
31400
|
+
"schema": {
|
|
31401
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
31402
|
+
}
|
|
31403
|
+
}
|
|
31404
|
+
}
|
|
31405
|
+
}
|
|
31406
|
+
}
|
|
31407
|
+
}
|
|
31408
|
+
},
|
|
31409
|
+
"/api/model-groups/{name}/members": {
|
|
31410
|
+
"put": {
|
|
31411
|
+
"summary": "Replace a model group's members",
|
|
31412
|
+
"description": "Replaces the whole ordered member list in one transaction; send the full list to reorder. Every member must be an existing profile, listed once. Lead, operator or dashboard user.",
|
|
31413
|
+
"tags": [
|
|
31414
|
+
"Models"
|
|
31415
|
+
],
|
|
31416
|
+
"security": [
|
|
31417
|
+
{
|
|
31418
|
+
"bearerAuth": []
|
|
31419
|
+
}
|
|
31420
|
+
],
|
|
31421
|
+
"parameters": [
|
|
31422
|
+
{
|
|
31423
|
+
"schema": {
|
|
31424
|
+
"type": "string"
|
|
31425
|
+
},
|
|
31426
|
+
"required": true,
|
|
31427
|
+
"name": "name",
|
|
31428
|
+
"in": "path"
|
|
31429
|
+
}
|
|
31430
|
+
],
|
|
31431
|
+
"requestBody": {
|
|
31432
|
+
"content": {
|
|
31433
|
+
"application/json": {
|
|
31434
|
+
"schema": {
|
|
31435
|
+
"type": "object",
|
|
31436
|
+
"properties": {
|
|
31437
|
+
"members": {
|
|
31438
|
+
"type": "array",
|
|
31439
|
+
"items": {
|
|
31440
|
+
"type": "string",
|
|
31441
|
+
"pattern": "^[a-z0-9][a-z0-9._-]{0,99}$"
|
|
31442
|
+
},
|
|
31443
|
+
"minItems": 1,
|
|
31444
|
+
"maxItems": 20,
|
|
31445
|
+
"description": "Profile names in preference order, first preferred. Any harness; no repeats."
|
|
31446
|
+
}
|
|
31447
|
+
},
|
|
31448
|
+
"required": [
|
|
31449
|
+
"members"
|
|
31450
|
+
]
|
|
31451
|
+
}
|
|
31452
|
+
}
|
|
31453
|
+
}
|
|
31454
|
+
},
|
|
31455
|
+
"responses": {
|
|
31456
|
+
"200": {
|
|
31457
|
+
"description": "Members replaced",
|
|
31458
|
+
"content": {
|
|
31459
|
+
"application/json": {
|
|
31460
|
+
"schema": {
|
|
31461
|
+
"type": "object",
|
|
31462
|
+
"properties": {
|
|
31463
|
+
"id": {
|
|
31464
|
+
"type": "string"
|
|
31465
|
+
},
|
|
31466
|
+
"name": {
|
|
31467
|
+
"type": "string"
|
|
31468
|
+
},
|
|
31469
|
+
"description": {
|
|
31470
|
+
"type": [
|
|
31471
|
+
"string",
|
|
31472
|
+
"null"
|
|
31473
|
+
]
|
|
31474
|
+
},
|
|
31475
|
+
"seededFrom": {
|
|
31476
|
+
"type": [
|
|
31477
|
+
"string",
|
|
31478
|
+
"null"
|
|
31479
|
+
]
|
|
31480
|
+
},
|
|
31481
|
+
"members": {
|
|
31482
|
+
"type": "array",
|
|
31483
|
+
"items": {
|
|
31484
|
+
"type": "string"
|
|
31485
|
+
}
|
|
31486
|
+
},
|
|
31487
|
+
"createdAt": {
|
|
31488
|
+
"type": "string"
|
|
31489
|
+
},
|
|
31490
|
+
"lastUpdatedAt": {
|
|
31491
|
+
"type": "string"
|
|
31492
|
+
}
|
|
31493
|
+
},
|
|
31494
|
+
"required": [
|
|
31495
|
+
"id",
|
|
31496
|
+
"name",
|
|
31497
|
+
"description",
|
|
31498
|
+
"seededFrom",
|
|
31499
|
+
"members",
|
|
31500
|
+
"createdAt",
|
|
31501
|
+
"lastUpdatedAt"
|
|
31502
|
+
]
|
|
31503
|
+
}
|
|
31504
|
+
}
|
|
31505
|
+
}
|
|
31506
|
+
},
|
|
31507
|
+
"400": {
|
|
31508
|
+
"description": "Validation error",
|
|
31509
|
+
"content": {
|
|
31510
|
+
"application/json": {
|
|
31511
|
+
"schema": {
|
|
31512
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
31513
|
+
}
|
|
31514
|
+
}
|
|
31515
|
+
}
|
|
31516
|
+
},
|
|
31517
|
+
"403": {
|
|
31518
|
+
"description": "Forbidden",
|
|
31519
|
+
"content": {
|
|
31520
|
+
"application/json": {
|
|
31521
|
+
"schema": {
|
|
31522
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
31523
|
+
}
|
|
31524
|
+
}
|
|
31525
|
+
}
|
|
31526
|
+
},
|
|
31527
|
+
"404": {
|
|
31528
|
+
"description": "No group with that name",
|
|
31529
|
+
"content": {
|
|
31530
|
+
"application/json": {
|
|
31531
|
+
"schema": {
|
|
31532
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
31533
|
+
}
|
|
31534
|
+
}
|
|
31535
|
+
}
|
|
31536
|
+
}
|
|
31537
|
+
}
|
|
31538
|
+
}
|
|
31539
|
+
},
|
|
31540
|
+
"/api/model-profiles": {
|
|
31541
|
+
"get": {
|
|
31542
|
+
"summary": "List model profiles",
|
|
31543
|
+
"description": "Every model profile, ordered by harness then name. Filter by `harness` to see what an agent on that harness can run.",
|
|
31544
|
+
"tags": [
|
|
31545
|
+
"Models"
|
|
31546
|
+
],
|
|
31547
|
+
"security": [
|
|
31548
|
+
{
|
|
31549
|
+
"bearerAuth": []
|
|
31550
|
+
}
|
|
31551
|
+
],
|
|
31552
|
+
"parameters": [
|
|
31553
|
+
{
|
|
31554
|
+
"schema": {
|
|
31555
|
+
"type": "string",
|
|
31556
|
+
"enum": [
|
|
31557
|
+
"claude",
|
|
31558
|
+
"codex",
|
|
31559
|
+
"pi",
|
|
31560
|
+
"devin",
|
|
31561
|
+
"claude-managed",
|
|
31562
|
+
"opencode",
|
|
31563
|
+
"acp",
|
|
31564
|
+
"dsh",
|
|
31565
|
+
"amp",
|
|
31566
|
+
"cursor",
|
|
31567
|
+
"grok",
|
|
31568
|
+
"fx"
|
|
31569
|
+
]
|
|
31570
|
+
},
|
|
31571
|
+
"required": false,
|
|
31572
|
+
"name": "harness",
|
|
31573
|
+
"in": "query"
|
|
31574
|
+
}
|
|
31575
|
+
],
|
|
31576
|
+
"responses": {
|
|
31577
|
+
"200": {
|
|
31578
|
+
"description": "Model profiles",
|
|
31579
|
+
"content": {
|
|
31580
|
+
"application/json": {
|
|
31581
|
+
"schema": {
|
|
31582
|
+
"type": "object",
|
|
31583
|
+
"properties": {
|
|
31584
|
+
"profiles": {
|
|
31585
|
+
"type": "array",
|
|
31586
|
+
"items": {
|
|
31587
|
+
"type": "object",
|
|
31588
|
+
"properties": {
|
|
31589
|
+
"id": {
|
|
31590
|
+
"type": "string"
|
|
31591
|
+
},
|
|
31592
|
+
"name": {
|
|
31593
|
+
"type": "string"
|
|
31594
|
+
},
|
|
31595
|
+
"harness": {
|
|
31596
|
+
"type": "string",
|
|
31597
|
+
"enum": [
|
|
31598
|
+
"claude",
|
|
31599
|
+
"codex",
|
|
31600
|
+
"pi",
|
|
31601
|
+
"devin",
|
|
31602
|
+
"claude-managed",
|
|
31603
|
+
"opencode",
|
|
31604
|
+
"acp",
|
|
31605
|
+
"dsh",
|
|
31606
|
+
"amp",
|
|
31607
|
+
"cursor",
|
|
31608
|
+
"grok",
|
|
31609
|
+
"fx"
|
|
31610
|
+
]
|
|
31611
|
+
},
|
|
31612
|
+
"model": {
|
|
31613
|
+
"type": "string"
|
|
31614
|
+
},
|
|
31615
|
+
"effort": {
|
|
31616
|
+
"type": [
|
|
31617
|
+
"string",
|
|
31618
|
+
"null"
|
|
31619
|
+
],
|
|
31620
|
+
"enum": [
|
|
31621
|
+
"off",
|
|
31622
|
+
"low",
|
|
31623
|
+
"medium",
|
|
31624
|
+
"high",
|
|
31625
|
+
"xhigh",
|
|
31626
|
+
"max",
|
|
31627
|
+
null
|
|
31628
|
+
]
|
|
31629
|
+
},
|
|
31630
|
+
"allowCustomModel": {
|
|
31631
|
+
"type": "boolean"
|
|
31632
|
+
},
|
|
31633
|
+
"description": {
|
|
31634
|
+
"type": [
|
|
31635
|
+
"string",
|
|
31636
|
+
"null"
|
|
31637
|
+
]
|
|
31638
|
+
},
|
|
31639
|
+
"seededFrom": {
|
|
31640
|
+
"type": [
|
|
31641
|
+
"string",
|
|
31642
|
+
"null"
|
|
31643
|
+
]
|
|
31644
|
+
},
|
|
31645
|
+
"credentials": {
|
|
31646
|
+
"type": [
|
|
31647
|
+
"object",
|
|
31648
|
+
"null"
|
|
31649
|
+
],
|
|
31650
|
+
"additionalProperties": {
|
|
31651
|
+
"type": "array",
|
|
31652
|
+
"items": {
|
|
31653
|
+
"type": "string",
|
|
31654
|
+
"minLength": 5,
|
|
31655
|
+
"maxLength": 5
|
|
31656
|
+
},
|
|
31657
|
+
"minItems": 1
|
|
31658
|
+
}
|
|
31659
|
+
},
|
|
31660
|
+
"fallbacks": {
|
|
31661
|
+
"type": "array",
|
|
31662
|
+
"items": {
|
|
31663
|
+
"type": "string"
|
|
31664
|
+
}
|
|
31665
|
+
},
|
|
31666
|
+
"createdAt": {
|
|
31667
|
+
"type": "string"
|
|
31668
|
+
},
|
|
31669
|
+
"lastUpdatedAt": {
|
|
31670
|
+
"type": "string"
|
|
31671
|
+
}
|
|
31672
|
+
},
|
|
31673
|
+
"required": [
|
|
31674
|
+
"id",
|
|
31675
|
+
"name",
|
|
31676
|
+
"harness",
|
|
31677
|
+
"model",
|
|
31678
|
+
"effort",
|
|
31679
|
+
"allowCustomModel",
|
|
31680
|
+
"description",
|
|
31681
|
+
"seededFrom",
|
|
31682
|
+
"credentials",
|
|
31683
|
+
"fallbacks",
|
|
31684
|
+
"createdAt",
|
|
31685
|
+
"lastUpdatedAt"
|
|
31686
|
+
]
|
|
31687
|
+
}
|
|
31688
|
+
}
|
|
31689
|
+
},
|
|
31690
|
+
"required": [
|
|
31691
|
+
"profiles"
|
|
31692
|
+
]
|
|
31693
|
+
}
|
|
31694
|
+
}
|
|
31695
|
+
}
|
|
31696
|
+
}
|
|
31697
|
+
}
|
|
31698
|
+
},
|
|
31699
|
+
"post": {
|
|
31700
|
+
"summary": "Create a model profile",
|
|
31701
|
+
"description": "A profile runs on one harness. `model` must run on that harness and be in the model catalog unless `allowCustomModel` is true (a gateway id, a fresh launch); a `latest:` alias is accepted and resolves at claim. `effort` must be a level the harness and model support. `credentials` pins which pooled keys the profile uses: per credential var of the harness, the last 5 characters of each allowed key (`CODEX_OAUTH` is not supported). `fallbacks` lists profiles on the same harness, in order, that a task on this profile hops to when a provider error (rate limit, seat, overload, auth, empty key pool) ends it; no repeats, no self, no cycle. The name may not be a model group's (one name space; 409). Operator only (the shared API key).",
|
|
31702
|
+
"tags": [
|
|
31703
|
+
"Models"
|
|
31704
|
+
],
|
|
31705
|
+
"security": [
|
|
31706
|
+
{
|
|
31707
|
+
"bearerAuth": []
|
|
31708
|
+
}
|
|
31709
|
+
],
|
|
31710
|
+
"requestBody": {
|
|
31711
|
+
"content": {
|
|
31712
|
+
"application/json": {
|
|
31713
|
+
"schema": {
|
|
31714
|
+
"type": "object",
|
|
31715
|
+
"properties": {
|
|
31716
|
+
"name": {
|
|
31717
|
+
"type": "string",
|
|
31718
|
+
"pattern": "^[a-z0-9][a-z0-9._-]{0,99}$"
|
|
31719
|
+
},
|
|
31720
|
+
"harness": {
|
|
31721
|
+
"type": "string",
|
|
31722
|
+
"enum": [
|
|
31723
|
+
"claude",
|
|
31724
|
+
"codex",
|
|
31725
|
+
"pi",
|
|
31726
|
+
"devin",
|
|
31727
|
+
"claude-managed",
|
|
31728
|
+
"opencode",
|
|
31729
|
+
"acp",
|
|
31730
|
+
"dsh",
|
|
31731
|
+
"amp",
|
|
31732
|
+
"cursor",
|
|
31733
|
+
"grok",
|
|
31734
|
+
"fx"
|
|
31735
|
+
]
|
|
31736
|
+
},
|
|
31737
|
+
"model": {
|
|
31738
|
+
"type": "string",
|
|
31739
|
+
"minLength": 1
|
|
31740
|
+
},
|
|
31741
|
+
"effort": {
|
|
31742
|
+
"type": [
|
|
31743
|
+
"string",
|
|
31744
|
+
"null"
|
|
31745
|
+
],
|
|
31746
|
+
"enum": [
|
|
31747
|
+
"off",
|
|
31748
|
+
"low",
|
|
31749
|
+
"medium",
|
|
31750
|
+
"high",
|
|
31751
|
+
"xhigh",
|
|
31752
|
+
"max",
|
|
31753
|
+
null
|
|
31754
|
+
]
|
|
31755
|
+
},
|
|
31756
|
+
"allowCustomModel": {
|
|
31757
|
+
"type": "boolean",
|
|
31758
|
+
"default": false
|
|
31759
|
+
},
|
|
31760
|
+
"description": {
|
|
31761
|
+
"type": [
|
|
31762
|
+
"string",
|
|
31763
|
+
"null"
|
|
31764
|
+
],
|
|
31765
|
+
"maxLength": 500
|
|
31766
|
+
},
|
|
31767
|
+
"credentials": {
|
|
31768
|
+
"type": [
|
|
31769
|
+
"object",
|
|
31770
|
+
"null"
|
|
31771
|
+
],
|
|
31772
|
+
"additionalProperties": {
|
|
31773
|
+
"type": "array",
|
|
31774
|
+
"items": {
|
|
31775
|
+
"type": "string",
|
|
31776
|
+
"minLength": 5,
|
|
31777
|
+
"maxLength": 5
|
|
31778
|
+
},
|
|
31779
|
+
"minItems": 1
|
|
31780
|
+
}
|
|
31781
|
+
},
|
|
31782
|
+
"fallbacks": {
|
|
31783
|
+
"type": "array",
|
|
31784
|
+
"items": {
|
|
31785
|
+
"type": "string",
|
|
31786
|
+
"pattern": "^[a-z0-9][a-z0-9._-]{0,99}$"
|
|
31787
|
+
},
|
|
31788
|
+
"maxItems": 10
|
|
31789
|
+
}
|
|
31790
|
+
},
|
|
31791
|
+
"required": [
|
|
31792
|
+
"name",
|
|
31793
|
+
"harness",
|
|
31794
|
+
"model"
|
|
31795
|
+
]
|
|
31796
|
+
}
|
|
31797
|
+
}
|
|
31798
|
+
}
|
|
31799
|
+
},
|
|
31800
|
+
"responses": {
|
|
31801
|
+
"201": {
|
|
31802
|
+
"description": "Profile created",
|
|
31803
|
+
"content": {
|
|
31804
|
+
"application/json": {
|
|
31805
|
+
"schema": {
|
|
31806
|
+
"type": "object",
|
|
31807
|
+
"properties": {
|
|
31808
|
+
"id": {
|
|
31809
|
+
"type": "string"
|
|
31810
|
+
},
|
|
31811
|
+
"name": {
|
|
31812
|
+
"type": "string"
|
|
31813
|
+
},
|
|
31814
|
+
"harness": {
|
|
31815
|
+
"type": "string",
|
|
31816
|
+
"enum": [
|
|
31817
|
+
"claude",
|
|
31818
|
+
"codex",
|
|
31819
|
+
"pi",
|
|
31820
|
+
"devin",
|
|
31821
|
+
"claude-managed",
|
|
31822
|
+
"opencode",
|
|
31823
|
+
"acp",
|
|
31824
|
+
"dsh",
|
|
31825
|
+
"amp",
|
|
31826
|
+
"cursor",
|
|
31827
|
+
"grok",
|
|
31828
|
+
"fx"
|
|
31829
|
+
]
|
|
31830
|
+
},
|
|
31831
|
+
"model": {
|
|
31832
|
+
"type": "string"
|
|
31833
|
+
},
|
|
31834
|
+
"effort": {
|
|
31835
|
+
"type": [
|
|
31836
|
+
"string",
|
|
31837
|
+
"null"
|
|
31838
|
+
],
|
|
31839
|
+
"enum": [
|
|
31840
|
+
"off",
|
|
31841
|
+
"low",
|
|
31842
|
+
"medium",
|
|
31843
|
+
"high",
|
|
31844
|
+
"xhigh",
|
|
31845
|
+
"max",
|
|
31846
|
+
null
|
|
31847
|
+
]
|
|
31848
|
+
},
|
|
31849
|
+
"allowCustomModel": {
|
|
31850
|
+
"type": "boolean"
|
|
31851
|
+
},
|
|
31852
|
+
"description": {
|
|
31853
|
+
"type": [
|
|
31854
|
+
"string",
|
|
31855
|
+
"null"
|
|
31856
|
+
]
|
|
31857
|
+
},
|
|
31858
|
+
"seededFrom": {
|
|
31859
|
+
"type": [
|
|
31860
|
+
"string",
|
|
31861
|
+
"null"
|
|
31862
|
+
]
|
|
31863
|
+
},
|
|
31864
|
+
"credentials": {
|
|
31865
|
+
"type": [
|
|
31866
|
+
"object",
|
|
31867
|
+
"null"
|
|
31868
|
+
],
|
|
31869
|
+
"additionalProperties": {
|
|
31870
|
+
"type": "array",
|
|
31871
|
+
"items": {
|
|
31872
|
+
"type": "string",
|
|
31873
|
+
"minLength": 5,
|
|
31874
|
+
"maxLength": 5
|
|
31875
|
+
},
|
|
31876
|
+
"minItems": 1
|
|
31877
|
+
}
|
|
31878
|
+
},
|
|
31879
|
+
"fallbacks": {
|
|
31880
|
+
"type": "array",
|
|
31881
|
+
"items": {
|
|
31882
|
+
"type": "string"
|
|
31883
|
+
}
|
|
31884
|
+
},
|
|
31885
|
+
"createdAt": {
|
|
31886
|
+
"type": "string"
|
|
31887
|
+
},
|
|
31888
|
+
"lastUpdatedAt": {
|
|
31889
|
+
"type": "string"
|
|
31890
|
+
}
|
|
31891
|
+
},
|
|
31892
|
+
"required": [
|
|
31893
|
+
"id",
|
|
31894
|
+
"name",
|
|
31895
|
+
"harness",
|
|
31896
|
+
"model",
|
|
31897
|
+
"effort",
|
|
31898
|
+
"allowCustomModel",
|
|
31899
|
+
"description",
|
|
31900
|
+
"seededFrom",
|
|
31901
|
+
"credentials",
|
|
31902
|
+
"fallbacks",
|
|
31903
|
+
"createdAt",
|
|
31904
|
+
"lastUpdatedAt"
|
|
31905
|
+
]
|
|
31906
|
+
}
|
|
31907
|
+
}
|
|
31908
|
+
}
|
|
31909
|
+
},
|
|
31910
|
+
"400": {
|
|
31911
|
+
"description": "Validation error",
|
|
31912
|
+
"content": {
|
|
31913
|
+
"application/json": {
|
|
31914
|
+
"schema": {
|
|
31915
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
31916
|
+
}
|
|
31917
|
+
}
|
|
31918
|
+
}
|
|
31919
|
+
},
|
|
31920
|
+
"403": {
|
|
31921
|
+
"description": "Forbidden",
|
|
31922
|
+
"content": {
|
|
31923
|
+
"application/json": {
|
|
31924
|
+
"schema": {
|
|
31925
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
31926
|
+
}
|
|
31927
|
+
}
|
|
31928
|
+
}
|
|
31929
|
+
},
|
|
31930
|
+
"409": {
|
|
31931
|
+
"description": "A profile or model group with that name exists",
|
|
30783
31932
|
"content": {
|
|
30784
31933
|
"application/json": {
|
|
30785
31934
|
"schema": {
|
|
@@ -31162,7 +32311,7 @@
|
|
|
31162
32311
|
},
|
|
31163
32312
|
"delete": {
|
|
31164
32313
|
"summary": "Delete a model profile",
|
|
31165
|
-
"description": "Refused (409) for a shipped `<harness>-<tier>` seed (edit it instead; it would come back at the next boot), and while an agent has the profile as its default, a schedule names it, another profile lists it as a fallback, or a task holds it (unfinished, or superseded and still owed its resume). Operator only (the shared API key).",
|
|
32314
|
+
"description": "Refused (409) for a shipped `<harness>-<tier>` seed (edit it instead; it would come back at the next boot), and while an agent has the profile as its default, a schedule names it, another profile lists it as a fallback, a model group lists it as a member, or a task holds it (unfinished, or superseded and still owed its resume). Operator only (the shared API key).",
|
|
31166
32315
|
"tags": [
|
|
31167
32316
|
"Models"
|
|
31168
32317
|
],
|
|
@@ -38169,21 +39318,47 @@
|
|
|
38169
39318
|
"actions": {
|
|
38170
39319
|
"type": "object",
|
|
38171
39320
|
"additionalProperties": {
|
|
38172
|
-
"
|
|
38173
|
-
|
|
38174
|
-
|
|
38175
|
-
"
|
|
38176
|
-
|
|
38177
|
-
|
|
39321
|
+
"oneOf": [
|
|
39322
|
+
{
|
|
39323
|
+
"type": "object",
|
|
39324
|
+
"properties": {
|
|
39325
|
+
"kind": {
|
|
39326
|
+
"type": "string",
|
|
39327
|
+
"enum": [
|
|
39328
|
+
"follow_up"
|
|
39329
|
+
]
|
|
39330
|
+
},
|
|
39331
|
+
"prompt": {
|
|
39332
|
+
"type": "string"
|
|
39333
|
+
}
|
|
39334
|
+
},
|
|
39335
|
+
"required": [
|
|
39336
|
+
"kind",
|
|
39337
|
+
"prompt"
|
|
38178
39338
|
]
|
|
38179
39339
|
},
|
|
38180
|
-
|
|
38181
|
-
"type": "
|
|
39340
|
+
{
|
|
39341
|
+
"type": "object",
|
|
39342
|
+
"properties": {
|
|
39343
|
+
"kind": {
|
|
39344
|
+
"type": "string",
|
|
39345
|
+
"enum": [
|
|
39346
|
+
"script"
|
|
39347
|
+
]
|
|
39348
|
+
},
|
|
39349
|
+
"script": {
|
|
39350
|
+
"type": "string"
|
|
39351
|
+
},
|
|
39352
|
+
"args": {
|
|
39353
|
+
"type": "object",
|
|
39354
|
+
"additionalProperties": {}
|
|
39355
|
+
}
|
|
39356
|
+
},
|
|
39357
|
+
"required": [
|
|
39358
|
+
"kind",
|
|
39359
|
+
"script"
|
|
39360
|
+
]
|
|
38182
39361
|
}
|
|
38183
|
-
},
|
|
38184
|
-
"required": [
|
|
38185
|
-
"kind",
|
|
38186
|
-
"prompt"
|
|
38187
39362
|
]
|
|
38188
39363
|
}
|
|
38189
39364
|
},
|
|
@@ -39148,7 +40323,7 @@
|
|
|
39148
40323
|
"/api/tasks/{id}/ui-actions/{actionId}": {
|
|
39149
40324
|
"post": {
|
|
39150
40325
|
"summary": "Run the action a task card Button declares",
|
|
39151
|
-
"description": "Runs
|
|
40326
|
+
"description": "Runs a task card action. Only the task requester may run it: a user token, or the operator key with the requester in `X-Swarm-User-Id`. Agent callers, and operator calls with no picked user, get 403. Needs UI_SPEC_ACTIONS_ENABLED=true. A `follow_up` action runs once per task and action. A `script` action re-runs its allowlisted script (UI_SPEC_SCRIPT_ACTIONS) and returns the new card; it can run again after a 30 s cooldown.",
|
|
39152
40327
|
"tags": [
|
|
39153
40328
|
"Tasks"
|
|
39154
40329
|
],
|
|
@@ -39177,7 +40352,7 @@
|
|
|
39177
40352
|
],
|
|
39178
40353
|
"responses": {
|
|
39179
40354
|
"200": {
|
|
39180
|
-
"description": "The
|
|
40355
|
+
"description": "The follow-up started or already ran, or the script action replaced the card (`refreshed`, with the new `uiSpec`)",
|
|
39181
40356
|
"content": {
|
|
39182
40357
|
"application/json": {
|
|
39183
40358
|
"schema": {
|
|
@@ -39187,11 +40362,91 @@
|
|
|
39187
40362
|
"type": "string",
|
|
39188
40363
|
"enum": [
|
|
39189
40364
|
"started",
|
|
39190
|
-
"already_done"
|
|
40365
|
+
"already_done",
|
|
40366
|
+
"refreshed"
|
|
39191
40367
|
]
|
|
39192
40368
|
},
|
|
39193
40369
|
"taskId": {
|
|
39194
40370
|
"type": "string"
|
|
40371
|
+
},
|
|
40372
|
+
"uiSpec": {
|
|
40373
|
+
"type": "object",
|
|
40374
|
+
"properties": {
|
|
40375
|
+
"spec": {
|
|
40376
|
+
"type": "object",
|
|
40377
|
+
"properties": {
|
|
40378
|
+
"root": {
|
|
40379
|
+
"type": "string"
|
|
40380
|
+
},
|
|
40381
|
+
"elements": {
|
|
40382
|
+
"type": "object",
|
|
40383
|
+
"additionalProperties": {}
|
|
40384
|
+
},
|
|
40385
|
+
"state": {
|
|
40386
|
+
"type": "object",
|
|
40387
|
+
"additionalProperties": {}
|
|
40388
|
+
}
|
|
40389
|
+
},
|
|
40390
|
+
"required": [
|
|
40391
|
+
"root",
|
|
40392
|
+
"elements"
|
|
40393
|
+
]
|
|
40394
|
+
},
|
|
40395
|
+
"actions": {
|
|
40396
|
+
"type": "object",
|
|
40397
|
+
"additionalProperties": {
|
|
40398
|
+
"oneOf": [
|
|
40399
|
+
{
|
|
40400
|
+
"type": "object",
|
|
40401
|
+
"properties": {
|
|
40402
|
+
"kind": {
|
|
40403
|
+
"type": "string",
|
|
40404
|
+
"enum": [
|
|
40405
|
+
"follow_up"
|
|
40406
|
+
]
|
|
40407
|
+
},
|
|
40408
|
+
"prompt": {
|
|
40409
|
+
"type": "string"
|
|
40410
|
+
}
|
|
40411
|
+
},
|
|
40412
|
+
"required": [
|
|
40413
|
+
"kind",
|
|
40414
|
+
"prompt"
|
|
40415
|
+
]
|
|
40416
|
+
},
|
|
40417
|
+
{
|
|
40418
|
+
"type": "object",
|
|
40419
|
+
"properties": {
|
|
40420
|
+
"kind": {
|
|
40421
|
+
"type": "string",
|
|
40422
|
+
"enum": [
|
|
40423
|
+
"script"
|
|
40424
|
+
]
|
|
40425
|
+
},
|
|
40426
|
+
"script": {
|
|
40427
|
+
"type": "string"
|
|
40428
|
+
},
|
|
40429
|
+
"args": {
|
|
40430
|
+
"type": "object",
|
|
40431
|
+
"additionalProperties": {}
|
|
40432
|
+
}
|
|
40433
|
+
},
|
|
40434
|
+
"required": [
|
|
40435
|
+
"kind",
|
|
40436
|
+
"script"
|
|
40437
|
+
]
|
|
40438
|
+
}
|
|
40439
|
+
]
|
|
40440
|
+
}
|
|
40441
|
+
},
|
|
40442
|
+
"fallbackText": {
|
|
40443
|
+
"type": "string"
|
|
40444
|
+
}
|
|
40445
|
+
},
|
|
40446
|
+
"required": [
|
|
40447
|
+
"spec",
|
|
40448
|
+
"fallbackText"
|
|
40449
|
+
]
|
|
39195
40450
|
}
|
|
39196
40451
|
},
|
|
39197
40452
|
"required": [
|
|
@@ -39202,7 +40457,7 @@
|
|
|
39202
40457
|
}
|
|
39203
40458
|
},
|
|
39204
40459
|
"403": {
|
|
39205
|
-
"description": "Only the task requester may run the action",
|
|
40460
|
+
"description": "Only the task requester may run the action, or the action's script is not allowlisted or changed since it was allowlisted",
|
|
39206
40461
|
"content": {
|
|
39207
40462
|
"application/json": {
|
|
39208
40463
|
"schema": {
|
|
@@ -39222,7 +40477,27 @@
|
|
|
39222
40477
|
}
|
|
39223
40478
|
},
|
|
39224
40479
|
"409": {
|
|
39225
|
-
"description": "Card actions are turned off (UI_SPEC_ACTIONS_ENABLED)",
|
|
40480
|
+
"description": "Card actions are turned off (UI_SPEC_ACTIONS_ENABLED), or the script action is already running (with `Retry-After`)",
|
|
40481
|
+
"content": {
|
|
40482
|
+
"application/json": {
|
|
40483
|
+
"schema": {
|
|
40484
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
40485
|
+
}
|
|
40486
|
+
}
|
|
40487
|
+
}
|
|
40488
|
+
},
|
|
40489
|
+
"422": {
|
|
40490
|
+
"description": "The script failed or returned an invalid card; the old card stays",
|
|
40491
|
+
"content": {
|
|
40492
|
+
"application/json": {
|
|
40493
|
+
"schema": {
|
|
40494
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
40495
|
+
}
|
|
40496
|
+
}
|
|
40497
|
+
}
|
|
40498
|
+
},
|
|
40499
|
+
"429": {
|
|
40500
|
+
"description": "The script action ran recently; `Retry-After` says when it can run again",
|
|
39226
40501
|
"content": {
|
|
39227
40502
|
"application/json": {
|
|
39228
40503
|
"schema": {
|
|
@@ -39237,7 +40512,7 @@
|
|
|
39237
40512
|
"/api/tasks/{id}/supersede": {
|
|
39238
40513
|
"post": {
|
|
39239
40514
|
"summary": "Supersede an in-progress task (terminate + spawn resume follow-up)",
|
|
39240
|
-
"description": "Marks the original task `superseded` (terminal) and creates a fresh `taskType=\"resume\"` follow-up so a worker can pick up the work in a new provider session. Workflow-step tasks (those with `workflowRunStepId`) are carved out: the original is marked `failed` with reason `superseded_workflow_task` and no follow-up is created — the workflow engine's retry/failure policy applies, and the task moves to `superseded` once the engine queues the step's retry. With `reason: provider_fallback` (and its `errorClass`), the resume runs on the same agent
|
|
40515
|
+
"description": "Marks the original task `superseded` (terminal) and creates a fresh `taskType=\"resume\"` follow-up so a worker can pick up the work in a new provider session. Workflow-step tasks (those with `workflowRunStepId`) are carved out: the original is marked `failed` with reason `superseded_workflow_task` and no follow-up is created — the workflow engine's retry/failure policy applies, and the task moves to `superseded` once the engine queues the step's retry or the step ends without failing. With `reason: provider_fallback` (and its `errorClass`), the resume runs on the same agent: on the same profile while a key-scoped error (`rate_limit`, `credits`) leaves another unbenched key in its pool, else on the next fallback profile that passes the profile check; when none is left, or the task is a workflow step, nothing changes and `kind: noFallback` tells the worker to fail the task itself, led by `failureReason` when set.",
|
|
39241
40516
|
"tags": [
|
|
39242
40517
|
"Tasks"
|
|
39243
40518
|
],
|
|
@@ -41060,6 +42335,24 @@
|
|
|
41060
42335
|
"items": {
|
|
41061
42336
|
"type": "string"
|
|
41062
42337
|
}
|
|
42338
|
+
},
|
|
42339
|
+
"segments": {
|
|
42340
|
+
"type": "array",
|
|
42341
|
+
"items": {
|
|
42342
|
+
"type": "object",
|
|
42343
|
+
"properties": {
|
|
42344
|
+
"templateId": {
|
|
42345
|
+
"type": "string"
|
|
42346
|
+
},
|
|
42347
|
+
"chars": {
|
|
42348
|
+
"type": "integer"
|
|
42349
|
+
}
|
|
42350
|
+
},
|
|
42351
|
+
"required": [
|
|
42352
|
+
"templateId",
|
|
42353
|
+
"chars"
|
|
42354
|
+
]
|
|
42355
|
+
}
|
|
41063
42356
|
}
|
|
41064
42357
|
},
|
|
41065
42358
|
"required": [
|
|
@@ -41400,6 +42693,24 @@
|
|
|
41400
42693
|
"items": {
|
|
41401
42694
|
"type": "string"
|
|
41402
42695
|
}
|
|
42696
|
+
},
|
|
42697
|
+
"segments": {
|
|
42698
|
+
"type": "array",
|
|
42699
|
+
"items": {
|
|
42700
|
+
"type": "object",
|
|
42701
|
+
"properties": {
|
|
42702
|
+
"templateId": {
|
|
42703
|
+
"type": "string"
|
|
42704
|
+
},
|
|
42705
|
+
"chars": {
|
|
42706
|
+
"type": "integer"
|
|
42707
|
+
}
|
|
42708
|
+
},
|
|
42709
|
+
"required": [
|
|
42710
|
+
"templateId",
|
|
42711
|
+
"chars"
|
|
42712
|
+
]
|
|
42713
|
+
}
|
|
41403
42714
|
}
|
|
41404
42715
|
},
|
|
41405
42716
|
"required": [
|
|
@@ -42500,7 +43811,8 @@
|
|
|
42500
43811
|
"amp",
|
|
42501
43812
|
"cursor",
|
|
42502
43813
|
"grok",
|
|
42503
|
-
"fx"
|
|
43814
|
+
"fx",
|
|
43815
|
+
"system-one"
|
|
42504
43816
|
]
|
|
42505
43817
|
},
|
|
42506
43818
|
"required": true,
|
|
@@ -42586,7 +43898,8 @@
|
|
|
42586
43898
|
"amp",
|
|
42587
43899
|
"cursor",
|
|
42588
43900
|
"grok",
|
|
42589
|
-
"fx"
|
|
43901
|
+
"fx",
|
|
43902
|
+
"system-one"
|
|
42590
43903
|
]
|
|
42591
43904
|
},
|
|
42592
43905
|
"required": true,
|
|
@@ -42705,7 +44018,8 @@
|
|
|
42705
44018
|
"amp",
|
|
42706
44019
|
"cursor",
|
|
42707
44020
|
"grok",
|
|
42708
|
-
"fx"
|
|
44021
|
+
"fx",
|
|
44022
|
+
"system-one"
|
|
42709
44023
|
]
|
|
42710
44024
|
},
|
|
42711
44025
|
"required": true,
|
|
@@ -42792,7 +44106,8 @@
|
|
|
42792
44106
|
"amp",
|
|
42793
44107
|
"cursor",
|
|
42794
44108
|
"grok",
|
|
42795
|
-
"fx"
|
|
44109
|
+
"fx",
|
|
44110
|
+
"system-one"
|
|
42796
44111
|
]
|
|
42797
44112
|
},
|
|
42798
44113
|
"required": true,
|
|
@@ -43267,6 +44582,289 @@
|
|
|
43267
44582
|
}
|
|
43268
44583
|
}
|
|
43269
44584
|
},
|
|
44585
|
+
"/api/tasks/{id}/request-composition": {
|
|
44586
|
+
"post": {
|
|
44587
|
+
"summary": "Record the request composition manifest of a task session",
|
|
44588
|
+
"description": "The worker posts the size of each prompt part it assembled. The server adds the MCP tool-schema estimate for the agent's effective tool surface and stores the manifest as the session's next seq. A `harness-hook` post (pi, opencode) carries exact sizes measured from the request payload plus the call's prompt tokens: the server merges it with the session's worker manifest and folds the observed chars-to-tokens ratio into the provider's average. Only the agent assigned to the task may post, and a task keeps at most 100 manifests.",
|
|
44589
|
+
"tags": [
|
|
44590
|
+
"Tasks"
|
|
44591
|
+
],
|
|
44592
|
+
"security": [
|
|
44593
|
+
{
|
|
44594
|
+
"bearerAuth": []
|
|
44595
|
+
}
|
|
44596
|
+
],
|
|
44597
|
+
"parameters": [
|
|
44598
|
+
{
|
|
44599
|
+
"schema": {
|
|
44600
|
+
"type": "string"
|
|
44601
|
+
},
|
|
44602
|
+
"required": true,
|
|
44603
|
+
"name": "id",
|
|
44604
|
+
"in": "path"
|
|
44605
|
+
}
|
|
44606
|
+
],
|
|
44607
|
+
"requestBody": {
|
|
44608
|
+
"content": {
|
|
44609
|
+
"application/json": {
|
|
44610
|
+
"schema": {
|
|
44611
|
+
"type": "object",
|
|
44612
|
+
"properties": {
|
|
44613
|
+
"sessionId": {
|
|
44614
|
+
"type": "string",
|
|
44615
|
+
"minLength": 1
|
|
44616
|
+
},
|
|
44617
|
+
"provider": {
|
|
44618
|
+
"type": "string",
|
|
44619
|
+
"minLength": 1
|
|
44620
|
+
},
|
|
44621
|
+
"model": {
|
|
44622
|
+
"type": "string"
|
|
44623
|
+
},
|
|
44624
|
+
"toolLoading": {
|
|
44625
|
+
"type": "string",
|
|
44626
|
+
"enum": [
|
|
44627
|
+
"all",
|
|
44628
|
+
"core",
|
|
44629
|
+
"preloaded",
|
|
44630
|
+
"none"
|
|
44631
|
+
]
|
|
44632
|
+
},
|
|
44633
|
+
"parts": {
|
|
44634
|
+
"type": "array",
|
|
44635
|
+
"items": {
|
|
44636
|
+
"type": "object",
|
|
44637
|
+
"properties": {
|
|
44638
|
+
"kind": {
|
|
44639
|
+
"type": "string",
|
|
44640
|
+
"enum": [
|
|
44641
|
+
"system_section",
|
|
44642
|
+
"persona",
|
|
44643
|
+
"claude_md",
|
|
44644
|
+
"operator_prompt",
|
|
44645
|
+
"tool_schemas",
|
|
44646
|
+
"skills_listing",
|
|
44647
|
+
"task_prompt",
|
|
44648
|
+
"memories"
|
|
44649
|
+
]
|
|
44650
|
+
},
|
|
44651
|
+
"id": {
|
|
44652
|
+
"type": "string",
|
|
44653
|
+
"minLength": 1,
|
|
44654
|
+
"maxLength": 200
|
|
44655
|
+
},
|
|
44656
|
+
"label": {
|
|
44657
|
+
"type": "string",
|
|
44658
|
+
"minLength": 1,
|
|
44659
|
+
"maxLength": 200
|
|
44660
|
+
},
|
|
44661
|
+
"chars": {
|
|
44662
|
+
"type": "integer",
|
|
44663
|
+
"minimum": 0
|
|
44664
|
+
},
|
|
44665
|
+
"fidelity": {
|
|
44666
|
+
"type": "string",
|
|
44667
|
+
"enum": [
|
|
44668
|
+
"exact",
|
|
44669
|
+
"estimate"
|
|
44670
|
+
],
|
|
44671
|
+
"default": "exact"
|
|
44672
|
+
}
|
|
44673
|
+
},
|
|
44674
|
+
"required": [
|
|
44675
|
+
"kind",
|
|
44676
|
+
"id",
|
|
44677
|
+
"label",
|
|
44678
|
+
"chars"
|
|
44679
|
+
]
|
|
44680
|
+
},
|
|
44681
|
+
"maxItems": 200
|
|
44682
|
+
},
|
|
44683
|
+
"source": {
|
|
44684
|
+
"type": "string",
|
|
44685
|
+
"enum": [
|
|
44686
|
+
"worker",
|
|
44687
|
+
"harness-hook"
|
|
44688
|
+
],
|
|
44689
|
+
"default": "worker"
|
|
44690
|
+
},
|
|
44691
|
+
"harness": {
|
|
44692
|
+
"type": "object",
|
|
44693
|
+
"properties": {
|
|
44694
|
+
"systemChars": {
|
|
44695
|
+
"type": "integer",
|
|
44696
|
+
"minimum": 0
|
|
44697
|
+
},
|
|
44698
|
+
"payloadChars": {
|
|
44699
|
+
"type": "integer",
|
|
44700
|
+
"minimum": 0
|
|
44701
|
+
},
|
|
44702
|
+
"promptTokens": {
|
|
44703
|
+
"type": "integer",
|
|
44704
|
+
"minimum": 0
|
|
44705
|
+
},
|
|
44706
|
+
"firstMessageChars": {
|
|
44707
|
+
"type": "integer",
|
|
44708
|
+
"minimum": 0
|
|
44709
|
+
}
|
|
44710
|
+
},
|
|
44711
|
+
"required": [
|
|
44712
|
+
"systemChars",
|
|
44713
|
+
"payloadChars",
|
|
44714
|
+
"promptTokens"
|
|
44715
|
+
]
|
|
44716
|
+
}
|
|
44717
|
+
},
|
|
44718
|
+
"required": [
|
|
44719
|
+
"sessionId",
|
|
44720
|
+
"provider",
|
|
44721
|
+
"toolLoading",
|
|
44722
|
+
"parts"
|
|
44723
|
+
]
|
|
44724
|
+
}
|
|
44725
|
+
}
|
|
44726
|
+
}
|
|
44727
|
+
},
|
|
44728
|
+
"responses": {
|
|
44729
|
+
"200": {
|
|
44730
|
+
"description": "Manifest recorded",
|
|
44731
|
+
"content": {
|
|
44732
|
+
"application/json": {
|
|
44733
|
+
"schema": {
|
|
44734
|
+
"type": "object",
|
|
44735
|
+
"properties": {
|
|
44736
|
+
"ok": {
|
|
44737
|
+
"type": "boolean",
|
|
44738
|
+
"enum": [
|
|
44739
|
+
true
|
|
44740
|
+
]
|
|
44741
|
+
},
|
|
44742
|
+
"id": {
|
|
44743
|
+
"type": "string",
|
|
44744
|
+
"format": "uuid"
|
|
44745
|
+
},
|
|
44746
|
+
"seq": {
|
|
44747
|
+
"type": "integer",
|
|
44748
|
+
"minimum": 0
|
|
44749
|
+
}
|
|
44750
|
+
},
|
|
44751
|
+
"required": [
|
|
44752
|
+
"ok",
|
|
44753
|
+
"id",
|
|
44754
|
+
"seq"
|
|
44755
|
+
]
|
|
44756
|
+
}
|
|
44757
|
+
}
|
|
44758
|
+
}
|
|
44759
|
+
},
|
|
44760
|
+
"400": {
|
|
44761
|
+
"description": "Validation error",
|
|
44762
|
+
"content": {
|
|
44763
|
+
"application/json": {
|
|
44764
|
+
"schema": {
|
|
44765
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
44766
|
+
}
|
|
44767
|
+
}
|
|
44768
|
+
}
|
|
44769
|
+
},
|
|
44770
|
+
"403": {
|
|
44771
|
+
"description": "Task is assigned to another agent",
|
|
44772
|
+
"content": {
|
|
44773
|
+
"application/json": {
|
|
44774
|
+
"schema": {
|
|
44775
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
44776
|
+
}
|
|
44777
|
+
}
|
|
44778
|
+
}
|
|
44779
|
+
},
|
|
44780
|
+
"404": {
|
|
44781
|
+
"description": "Task not found",
|
|
44782
|
+
"content": {
|
|
44783
|
+
"application/json": {
|
|
44784
|
+
"schema": {
|
|
44785
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
44786
|
+
}
|
|
44787
|
+
}
|
|
44788
|
+
}
|
|
44789
|
+
},
|
|
44790
|
+
"429": {
|
|
44791
|
+
"description": "The task already holds the maximum number of manifests",
|
|
44792
|
+
"content": {
|
|
44793
|
+
"application/json": {
|
|
44794
|
+
"schema": {
|
|
44795
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
44796
|
+
}
|
|
44797
|
+
}
|
|
44798
|
+
}
|
|
44799
|
+
}
|
|
44800
|
+
}
|
|
44801
|
+
},
|
|
44802
|
+
"get": {
|
|
44803
|
+
"summary": "Get the request composition manifests of a task",
|
|
44804
|
+
"tags": [
|
|
44805
|
+
"Tasks"
|
|
44806
|
+
],
|
|
44807
|
+
"security": [
|
|
44808
|
+
{
|
|
44809
|
+
"bearerAuth": []
|
|
44810
|
+
}
|
|
44811
|
+
],
|
|
44812
|
+
"parameters": [
|
|
44813
|
+
{
|
|
44814
|
+
"schema": {
|
|
44815
|
+
"type": "string"
|
|
44816
|
+
},
|
|
44817
|
+
"required": true,
|
|
44818
|
+
"name": "id",
|
|
44819
|
+
"in": "path"
|
|
44820
|
+
},
|
|
44821
|
+
{
|
|
44822
|
+
"schema": {
|
|
44823
|
+
"type": "integer",
|
|
44824
|
+
"minimum": 1,
|
|
44825
|
+
"maximum": 100,
|
|
44826
|
+
"default": 100
|
|
44827
|
+
},
|
|
44828
|
+
"required": false,
|
|
44829
|
+
"name": "limit",
|
|
44830
|
+
"in": "query"
|
|
44831
|
+
}
|
|
44832
|
+
],
|
|
44833
|
+
"responses": {
|
|
44834
|
+
"200": {
|
|
44835
|
+
"description": "Manifests, oldest first",
|
|
44836
|
+
"content": {
|
|
44837
|
+
"application/json": {
|
|
44838
|
+
"schema": {
|
|
44839
|
+
"type": "object",
|
|
44840
|
+
"properties": {
|
|
44841
|
+
"manifests": {
|
|
44842
|
+
"type": "array",
|
|
44843
|
+
"items": {
|
|
44844
|
+
"$ref": "#/components/schemas/RequestComposition"
|
|
44845
|
+
}
|
|
44846
|
+
}
|
|
44847
|
+
},
|
|
44848
|
+
"required": [
|
|
44849
|
+
"manifests"
|
|
44850
|
+
]
|
|
44851
|
+
}
|
|
44852
|
+
}
|
|
44853
|
+
}
|
|
44854
|
+
},
|
|
44855
|
+
"404": {
|
|
44856
|
+
"description": "Task not found",
|
|
44857
|
+
"content": {
|
|
44858
|
+
"application/json": {
|
|
44859
|
+
"schema": {
|
|
44860
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
44861
|
+
}
|
|
44862
|
+
}
|
|
44863
|
+
}
|
|
44864
|
+
}
|
|
44865
|
+
}
|
|
44866
|
+
}
|
|
44867
|
+
},
|
|
43270
44868
|
"/api/realtime/ticket": {
|
|
43271
44869
|
"post": {
|
|
43272
44870
|
"summary": "Issue a one-shot dashboard realtime ticket",
|
|
@@ -53328,7 +54926,8 @@
|
|
|
53328
54926
|
"amp",
|
|
53329
54927
|
"cursor",
|
|
53330
54928
|
"grok",
|
|
53331
|
-
"fx"
|
|
54929
|
+
"fx",
|
|
54930
|
+
"system-one"
|
|
53332
54931
|
]
|
|
53333
54932
|
},
|
|
53334
54933
|
"createdAt": {
|
|
@@ -57551,21 +59150,47 @@
|
|
|
57551
59150
|
"actions": {
|
|
57552
59151
|
"type": "object",
|
|
57553
59152
|
"additionalProperties": {
|
|
57554
|
-
"
|
|
57555
|
-
|
|
57556
|
-
|
|
57557
|
-
"
|
|
57558
|
-
|
|
57559
|
-
|
|
59153
|
+
"oneOf": [
|
|
59154
|
+
{
|
|
59155
|
+
"type": "object",
|
|
59156
|
+
"properties": {
|
|
59157
|
+
"kind": {
|
|
59158
|
+
"type": "string",
|
|
59159
|
+
"enum": [
|
|
59160
|
+
"follow_up"
|
|
59161
|
+
]
|
|
59162
|
+
},
|
|
59163
|
+
"prompt": {
|
|
59164
|
+
"type": "string"
|
|
59165
|
+
}
|
|
59166
|
+
},
|
|
59167
|
+
"required": [
|
|
59168
|
+
"kind",
|
|
59169
|
+
"prompt"
|
|
57560
59170
|
]
|
|
57561
59171
|
},
|
|
57562
|
-
|
|
57563
|
-
"type": "
|
|
59172
|
+
{
|
|
59173
|
+
"type": "object",
|
|
59174
|
+
"properties": {
|
|
59175
|
+
"kind": {
|
|
59176
|
+
"type": "string",
|
|
59177
|
+
"enum": [
|
|
59178
|
+
"script"
|
|
59179
|
+
]
|
|
59180
|
+
},
|
|
59181
|
+
"script": {
|
|
59182
|
+
"type": "string"
|
|
59183
|
+
},
|
|
59184
|
+
"args": {
|
|
59185
|
+
"type": "object",
|
|
59186
|
+
"additionalProperties": {}
|
|
59187
|
+
}
|
|
59188
|
+
},
|
|
59189
|
+
"required": [
|
|
59190
|
+
"kind",
|
|
59191
|
+
"script"
|
|
59192
|
+
]
|
|
57564
59193
|
}
|
|
57565
|
-
},
|
|
57566
|
-
"required": [
|
|
57567
|
-
"kind",
|
|
57568
|
-
"prompt"
|
|
57569
59194
|
]
|
|
57570
59195
|
}
|
|
57571
59196
|
},
|
|
@@ -57705,21 +59330,47 @@
|
|
|
57705
59330
|
"actions": {
|
|
57706
59331
|
"type": "object",
|
|
57707
59332
|
"additionalProperties": {
|
|
57708
|
-
"
|
|
57709
|
-
|
|
57710
|
-
|
|
57711
|
-
"
|
|
57712
|
-
|
|
57713
|
-
|
|
59333
|
+
"oneOf": [
|
|
59334
|
+
{
|
|
59335
|
+
"type": "object",
|
|
59336
|
+
"properties": {
|
|
59337
|
+
"kind": {
|
|
59338
|
+
"type": "string",
|
|
59339
|
+
"enum": [
|
|
59340
|
+
"follow_up"
|
|
59341
|
+
]
|
|
59342
|
+
},
|
|
59343
|
+
"prompt": {
|
|
59344
|
+
"type": "string"
|
|
59345
|
+
}
|
|
59346
|
+
},
|
|
59347
|
+
"required": [
|
|
59348
|
+
"kind",
|
|
59349
|
+
"prompt"
|
|
57714
59350
|
]
|
|
57715
59351
|
},
|
|
57716
|
-
|
|
57717
|
-
"type": "
|
|
59352
|
+
{
|
|
59353
|
+
"type": "object",
|
|
59354
|
+
"properties": {
|
|
59355
|
+
"kind": {
|
|
59356
|
+
"type": "string",
|
|
59357
|
+
"enum": [
|
|
59358
|
+
"script"
|
|
59359
|
+
]
|
|
59360
|
+
},
|
|
59361
|
+
"script": {
|
|
59362
|
+
"type": "string"
|
|
59363
|
+
},
|
|
59364
|
+
"args": {
|
|
59365
|
+
"type": "object",
|
|
59366
|
+
"additionalProperties": {}
|
|
59367
|
+
}
|
|
59368
|
+
},
|
|
59369
|
+
"required": [
|
|
59370
|
+
"kind",
|
|
59371
|
+
"script"
|
|
59372
|
+
]
|
|
57718
59373
|
}
|
|
57719
|
-
},
|
|
57720
|
-
"required": [
|
|
57721
|
-
"kind",
|
|
57722
|
-
"prompt"
|
|
57723
59374
|
]
|
|
57724
59375
|
}
|
|
57725
59376
|
},
|
|
@@ -64157,6 +65808,226 @@
|
|
|
64157
65808
|
}
|
|
64158
65809
|
}
|
|
64159
65810
|
},
|
|
65811
|
+
"/api/tool-hooks": {
|
|
65812
|
+
"post": {
|
|
65813
|
+
"summary": "Run extension tool hooks for a harness-native tool call",
|
|
65814
|
+
"description": "A worker shim reports a harness built-in tool call (bash, read, write, edit). `phase: pre` runs `pre.tool.call` with `callOrigin: native` and returns the decision. `phase: post` runs `post.tool.call` observe-only and returns 202 at once. Only extensions whose manifest `toolSources` includes `\"native\"` receive these calls. The server runs the secret scrubber over the body before any handler sees it, so handlers read `[REDACTED:<name>]` in place of a secret. A `modify` whose args still carry that marker is rejected and the call continues unchanged. Shims must also scrub worker-side before sending.",
|
|
65815
|
+
"tags": [
|
|
65816
|
+
"Extensions"
|
|
65817
|
+
],
|
|
65818
|
+
"security": [
|
|
65819
|
+
{
|
|
65820
|
+
"bearerAuth": []
|
|
65821
|
+
}
|
|
65822
|
+
],
|
|
65823
|
+
"requestBody": {
|
|
65824
|
+
"content": {
|
|
65825
|
+
"application/json": {
|
|
65826
|
+
"schema": {
|
|
65827
|
+
"oneOf": [
|
|
65828
|
+
{
|
|
65829
|
+
"type": "object",
|
|
65830
|
+
"properties": {
|
|
65831
|
+
"phase": {
|
|
65832
|
+
"type": "string",
|
|
65833
|
+
"enum": [
|
|
65834
|
+
"pre"
|
|
65835
|
+
]
|
|
65836
|
+
},
|
|
65837
|
+
"harness": {
|
|
65838
|
+
"type": "string",
|
|
65839
|
+
"minLength": 1,
|
|
65840
|
+
"maxLength": 64,
|
|
65841
|
+
"description": "Worker harness, such as `claude` or `pi`."
|
|
65842
|
+
},
|
|
65843
|
+
"tool": {
|
|
65844
|
+
"type": "string",
|
|
65845
|
+
"minLength": 1,
|
|
65846
|
+
"maxLength": 256,
|
|
65847
|
+
"description": "Canonical tool name, such as `bash` or `edit`."
|
|
65848
|
+
},
|
|
65849
|
+
"nativeTool": {
|
|
65850
|
+
"type": "string",
|
|
65851
|
+
"minLength": 1,
|
|
65852
|
+
"maxLength": 256,
|
|
65853
|
+
"description": "The harness's own tool name."
|
|
65854
|
+
},
|
|
65855
|
+
"args": {
|
|
65856
|
+
"description": "Canonical tool arguments."
|
|
65857
|
+
},
|
|
65858
|
+
"rawArgs": {
|
|
65859
|
+
"description": "The harness's own argument shape."
|
|
65860
|
+
},
|
|
65861
|
+
"toolCallId": {
|
|
65862
|
+
"type": "string",
|
|
65863
|
+
"maxLength": 256
|
|
65864
|
+
},
|
|
65865
|
+
"parentToolCallId": {
|
|
65866
|
+
"type": "string",
|
|
65867
|
+
"maxLength": 256
|
|
65868
|
+
}
|
|
65869
|
+
},
|
|
65870
|
+
"required": [
|
|
65871
|
+
"phase",
|
|
65872
|
+
"harness",
|
|
65873
|
+
"tool"
|
|
65874
|
+
]
|
|
65875
|
+
},
|
|
65876
|
+
{
|
|
65877
|
+
"type": "object",
|
|
65878
|
+
"properties": {
|
|
65879
|
+
"phase": {
|
|
65880
|
+
"type": "string",
|
|
65881
|
+
"enum": [
|
|
65882
|
+
"post"
|
|
65883
|
+
]
|
|
65884
|
+
},
|
|
65885
|
+
"harness": {
|
|
65886
|
+
"type": "string",
|
|
65887
|
+
"minLength": 1,
|
|
65888
|
+
"maxLength": 64,
|
|
65889
|
+
"description": "Worker harness, such as `claude` or `pi`."
|
|
65890
|
+
},
|
|
65891
|
+
"tool": {
|
|
65892
|
+
"type": "string",
|
|
65893
|
+
"minLength": 1,
|
|
65894
|
+
"maxLength": 256,
|
|
65895
|
+
"description": "Canonical tool name, such as `bash` or `edit`."
|
|
65896
|
+
},
|
|
65897
|
+
"nativeTool": {
|
|
65898
|
+
"type": "string",
|
|
65899
|
+
"minLength": 1,
|
|
65900
|
+
"maxLength": 256,
|
|
65901
|
+
"description": "The harness's own tool name."
|
|
65902
|
+
},
|
|
65903
|
+
"args": {
|
|
65904
|
+
"description": "Canonical tool arguments."
|
|
65905
|
+
},
|
|
65906
|
+
"rawArgs": {
|
|
65907
|
+
"description": "The harness's own argument shape."
|
|
65908
|
+
},
|
|
65909
|
+
"toolCallId": {
|
|
65910
|
+
"type": "string",
|
|
65911
|
+
"maxLength": 256
|
|
65912
|
+
},
|
|
65913
|
+
"parentToolCallId": {
|
|
65914
|
+
"type": "string",
|
|
65915
|
+
"maxLength": 256
|
|
65916
|
+
},
|
|
65917
|
+
"result": {},
|
|
65918
|
+
"isError": {
|
|
65919
|
+
"type": "boolean"
|
|
65920
|
+
},
|
|
65921
|
+
"durationMs": {
|
|
65922
|
+
"type": "number",
|
|
65923
|
+
"minimum": 0
|
|
65924
|
+
}
|
|
65925
|
+
},
|
|
65926
|
+
"required": [
|
|
65927
|
+
"phase",
|
|
65928
|
+
"harness",
|
|
65929
|
+
"tool",
|
|
65930
|
+
"durationMs"
|
|
65931
|
+
]
|
|
65932
|
+
}
|
|
65933
|
+
]
|
|
65934
|
+
}
|
|
65935
|
+
}
|
|
65936
|
+
}
|
|
65937
|
+
},
|
|
65938
|
+
"responses": {
|
|
65939
|
+
"200": {
|
|
65940
|
+
"description": "Pre-call decision",
|
|
65941
|
+
"content": {
|
|
65942
|
+
"application/json": {
|
|
65943
|
+
"schema": {
|
|
65944
|
+
"oneOf": [
|
|
65945
|
+
{
|
|
65946
|
+
"type": "object",
|
|
65947
|
+
"properties": {
|
|
65948
|
+
"action": {
|
|
65949
|
+
"type": "string",
|
|
65950
|
+
"enum": [
|
|
65951
|
+
"continue"
|
|
65952
|
+
]
|
|
65953
|
+
}
|
|
65954
|
+
},
|
|
65955
|
+
"required": [
|
|
65956
|
+
"action"
|
|
65957
|
+
]
|
|
65958
|
+
},
|
|
65959
|
+
{
|
|
65960
|
+
"type": "object",
|
|
65961
|
+
"properties": {
|
|
65962
|
+
"action": {
|
|
65963
|
+
"type": "string",
|
|
65964
|
+
"enum": [
|
|
65965
|
+
"modify"
|
|
65966
|
+
]
|
|
65967
|
+
},
|
|
65968
|
+
"args": {}
|
|
65969
|
+
},
|
|
65970
|
+
"required": [
|
|
65971
|
+
"action"
|
|
65972
|
+
]
|
|
65973
|
+
},
|
|
65974
|
+
{
|
|
65975
|
+
"type": "object",
|
|
65976
|
+
"properties": {
|
|
65977
|
+
"action": {
|
|
65978
|
+
"type": "string",
|
|
65979
|
+
"enum": [
|
|
65980
|
+
"block"
|
|
65981
|
+
]
|
|
65982
|
+
},
|
|
65983
|
+
"reason": {
|
|
65984
|
+
"type": "string"
|
|
65985
|
+
}
|
|
65986
|
+
},
|
|
65987
|
+
"required": [
|
|
65988
|
+
"action",
|
|
65989
|
+
"reason"
|
|
65990
|
+
]
|
|
65991
|
+
}
|
|
65992
|
+
]
|
|
65993
|
+
}
|
|
65994
|
+
}
|
|
65995
|
+
}
|
|
65996
|
+
},
|
|
65997
|
+
"202": {
|
|
65998
|
+
"description": "Post-call event accepted",
|
|
65999
|
+
"content": {
|
|
66000
|
+
"application/json": {
|
|
66001
|
+
"schema": {
|
|
66002
|
+
"type": "object",
|
|
66003
|
+
"properties": {
|
|
66004
|
+
"accepted": {
|
|
66005
|
+
"type": "boolean",
|
|
66006
|
+
"enum": [
|
|
66007
|
+
true
|
|
66008
|
+
]
|
|
66009
|
+
}
|
|
66010
|
+
},
|
|
66011
|
+
"required": [
|
|
66012
|
+
"accepted"
|
|
66013
|
+
]
|
|
66014
|
+
}
|
|
66015
|
+
}
|
|
66016
|
+
}
|
|
66017
|
+
},
|
|
66018
|
+
"400": {
|
|
66019
|
+
"description": "Invalid body or missing X-Agent-ID header",
|
|
66020
|
+
"content": {
|
|
66021
|
+
"application/json": {
|
|
66022
|
+
"schema": {
|
|
66023
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
66024
|
+
}
|
|
66025
|
+
}
|
|
66026
|
+
}
|
|
66027
|
+
}
|
|
66028
|
+
}
|
|
66029
|
+
}
|
|
66030
|
+
},
|
|
64160
66031
|
"/api/trackers/jira/authorize": {
|
|
64161
66032
|
"get": {
|
|
64162
66033
|
"summary": "Start the Jira OAuth flow (admin): redirect to the consent screen, or return its URL",
|
|
@@ -68910,7 +70781,8 @@
|
|
|
68910
70781
|
},
|
|
68911
70782
|
"/api/users/{id}/merge": {
|
|
68912
70783
|
"post": {
|
|
68913
|
-
"summary": "Merge another user into this one
|
|
70784
|
+
"summary": "Merge another user into this one: moves identities + email aliases, queues the rest",
|
|
70785
|
+
"description": "Moves the source's identities and email aliases to the target, revokes the source's credentials and records a manual_merge event, all in one short transaction. The attribution rewrite across every table and the deletion of the source run as a background job; poll GET /api/users/merge-jobs/{jobId} until its status is done or failed. While the job runs, the source cannot authenticate and identity lookups resolve to the target.",
|
|
68914
70786
|
"tags": [
|
|
68915
70787
|
"Users"
|
|
68916
70788
|
],
|
|
@@ -68948,137 +70820,19 @@
|
|
|
68948
70820
|
}
|
|
68949
70821
|
},
|
|
68950
70822
|
"responses": {
|
|
68951
|
-
"
|
|
68952
|
-
"description": "
|
|
70823
|
+
"202": {
|
|
70824
|
+
"description": "The queued merge job",
|
|
68953
70825
|
"content": {
|
|
68954
70826
|
"application/json": {
|
|
68955
70827
|
"schema": {
|
|
68956
70828
|
"type": "object",
|
|
68957
70829
|
"properties": {
|
|
68958
|
-
"
|
|
68959
|
-
"
|
|
68960
|
-
{
|
|
68961
|
-
"allOf": [
|
|
68962
|
-
{
|
|
68963
|
-
"$ref": "#/components/schemas/User"
|
|
68964
|
-
},
|
|
68965
|
-
{
|
|
68966
|
-
"type": "object",
|
|
68967
|
-
"properties": {
|
|
68968
|
-
"identities": {
|
|
68969
|
-
"type": "array",
|
|
68970
|
-
"items": {
|
|
68971
|
-
"type": "object",
|
|
68972
|
-
"properties": {
|
|
68973
|
-
"kind": {
|
|
68974
|
-
"type": "string"
|
|
68975
|
-
},
|
|
68976
|
-
"externalId": {
|
|
68977
|
-
"type": "string"
|
|
68978
|
-
}
|
|
68979
|
-
},
|
|
68980
|
-
"required": [
|
|
68981
|
-
"kind",
|
|
68982
|
-
"externalId"
|
|
68983
|
-
]
|
|
68984
|
-
}
|
|
68985
|
-
},
|
|
68986
|
-
"tokens": {
|
|
68987
|
-
"type": "array",
|
|
68988
|
-
"items": {
|
|
68989
|
-
"type": "object",
|
|
68990
|
-
"properties": {
|
|
68991
|
-
"id": {
|
|
68992
|
-
"type": "string"
|
|
68993
|
-
},
|
|
68994
|
-
"userId": {
|
|
68995
|
-
"type": "string"
|
|
68996
|
-
},
|
|
68997
|
-
"label": {
|
|
68998
|
-
"type": [
|
|
68999
|
-
"string",
|
|
69000
|
-
"null"
|
|
69001
|
-
]
|
|
69002
|
-
},
|
|
69003
|
-
"tokenPreview": {
|
|
69004
|
-
"type": "string"
|
|
69005
|
-
},
|
|
69006
|
-
"createdAt": {
|
|
69007
|
-
"type": "string"
|
|
69008
|
-
},
|
|
69009
|
-
"lastUsedAt": {
|
|
69010
|
-
"type": [
|
|
69011
|
-
"string",
|
|
69012
|
-
"null"
|
|
69013
|
-
]
|
|
69014
|
-
},
|
|
69015
|
-
"revokedAt": {
|
|
69016
|
-
"type": [
|
|
69017
|
-
"string",
|
|
69018
|
-
"null"
|
|
69019
|
-
]
|
|
69020
|
-
}
|
|
69021
|
-
},
|
|
69022
|
-
"required": [
|
|
69023
|
-
"id",
|
|
69024
|
-
"userId",
|
|
69025
|
-
"label",
|
|
69026
|
-
"tokenPreview",
|
|
69027
|
-
"createdAt",
|
|
69028
|
-
"lastUsedAt",
|
|
69029
|
-
"revokedAt"
|
|
69030
|
-
]
|
|
69031
|
-
}
|
|
69032
|
-
},
|
|
69033
|
-
"recentEvents": {
|
|
69034
|
-
"type": "array",
|
|
69035
|
-
"items": {
|
|
69036
|
-
"type": "object",
|
|
69037
|
-
"properties": {
|
|
69038
|
-
"id": {
|
|
69039
|
-
"type": "string"
|
|
69040
|
-
},
|
|
69041
|
-
"userId": {
|
|
69042
|
-
"type": "string"
|
|
69043
|
-
},
|
|
69044
|
-
"eventType": {
|
|
69045
|
-
"type": "string"
|
|
69046
|
-
},
|
|
69047
|
-
"actor": {
|
|
69048
|
-
"type": "string"
|
|
69049
|
-
},
|
|
69050
|
-
"before": {},
|
|
69051
|
-
"after": {},
|
|
69052
|
-
"createdAt": {
|
|
69053
|
-
"type": "string"
|
|
69054
|
-
}
|
|
69055
|
-
},
|
|
69056
|
-
"required": [
|
|
69057
|
-
"id",
|
|
69058
|
-
"userId",
|
|
69059
|
-
"eventType",
|
|
69060
|
-
"actor",
|
|
69061
|
-
"createdAt"
|
|
69062
|
-
]
|
|
69063
|
-
}
|
|
69064
|
-
}
|
|
69065
|
-
},
|
|
69066
|
-
"required": [
|
|
69067
|
-
"identities",
|
|
69068
|
-
"tokens",
|
|
69069
|
-
"recentEvents"
|
|
69070
|
-
]
|
|
69071
|
-
}
|
|
69072
|
-
]
|
|
69073
|
-
},
|
|
69074
|
-
{
|
|
69075
|
-
"type": "null"
|
|
69076
|
-
}
|
|
69077
|
-
]
|
|
70830
|
+
"job": {
|
|
70831
|
+
"$ref": "#/components/schemas/UserMergeJob"
|
|
69078
70832
|
}
|
|
69079
70833
|
},
|
|
69080
70834
|
"required": [
|
|
69081
|
-
"
|
|
70835
|
+
"job"
|
|
69082
70836
|
]
|
|
69083
70837
|
}
|
|
69084
70838
|
}
|
|
@@ -69125,7 +70879,142 @@
|
|
|
69125
70879
|
}
|
|
69126
70880
|
},
|
|
69127
70881
|
"409": {
|
|
69128
|
-
"description": "Source is the last active admin (last_admin)",
|
|
70882
|
+
"description": "Source is the last active admin (last_admin), or a merge job for the source or target is still running (merge_in_progress)",
|
|
70883
|
+
"content": {
|
|
70884
|
+
"application/json": {
|
|
70885
|
+
"schema": {
|
|
70886
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
70887
|
+
}
|
|
70888
|
+
}
|
|
70889
|
+
}
|
|
70890
|
+
}
|
|
70891
|
+
}
|
|
70892
|
+
}
|
|
70893
|
+
},
|
|
70894
|
+
"/api/users/merge-jobs": {
|
|
70895
|
+
"get": {
|
|
70896
|
+
"summary": "List background user merge jobs, newest first",
|
|
70897
|
+
"tags": [
|
|
70898
|
+
"Users"
|
|
70899
|
+
],
|
|
70900
|
+
"security": [
|
|
70901
|
+
{
|
|
70902
|
+
"bearerAuth": []
|
|
70903
|
+
}
|
|
70904
|
+
],
|
|
70905
|
+
"parameters": [
|
|
70906
|
+
{
|
|
70907
|
+
"schema": {
|
|
70908
|
+
"type": "string",
|
|
70909
|
+
"enum": [
|
|
70910
|
+
"pending",
|
|
70911
|
+
"running",
|
|
70912
|
+
"done",
|
|
70913
|
+
"failed"
|
|
70914
|
+
]
|
|
70915
|
+
},
|
|
70916
|
+
"required": false,
|
|
70917
|
+
"name": "status",
|
|
70918
|
+
"in": "query"
|
|
70919
|
+
},
|
|
70920
|
+
{
|
|
70921
|
+
"schema": {
|
|
70922
|
+
"type": "integer",
|
|
70923
|
+
"minimum": 1,
|
|
70924
|
+
"maximum": 200
|
|
70925
|
+
},
|
|
70926
|
+
"required": false,
|
|
70927
|
+
"name": "limit",
|
|
70928
|
+
"in": "query"
|
|
70929
|
+
}
|
|
70930
|
+
],
|
|
70931
|
+
"responses": {
|
|
70932
|
+
"200": {
|
|
70933
|
+
"description": "Merge jobs",
|
|
70934
|
+
"content": {
|
|
70935
|
+
"application/json": {
|
|
70936
|
+
"schema": {
|
|
70937
|
+
"type": "object",
|
|
70938
|
+
"properties": {
|
|
70939
|
+
"jobs": {
|
|
70940
|
+
"type": "array",
|
|
70941
|
+
"items": {
|
|
70942
|
+
"$ref": "#/components/schemas/UserMergeJob"
|
|
70943
|
+
}
|
|
70944
|
+
}
|
|
70945
|
+
},
|
|
70946
|
+
"required": [
|
|
70947
|
+
"jobs"
|
|
70948
|
+
]
|
|
70949
|
+
}
|
|
70950
|
+
}
|
|
70951
|
+
}
|
|
70952
|
+
},
|
|
70953
|
+
"401": {
|
|
70954
|
+
"description": "Unauthorized",
|
|
70955
|
+
"content": {
|
|
70956
|
+
"application/json": {
|
|
70957
|
+
"schema": {
|
|
70958
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
70959
|
+
}
|
|
70960
|
+
}
|
|
70961
|
+
}
|
|
70962
|
+
}
|
|
70963
|
+
}
|
|
70964
|
+
}
|
|
70965
|
+
},
|
|
70966
|
+
"/api/users/merge-jobs/{jobId}": {
|
|
70967
|
+
"get": {
|
|
70968
|
+
"summary": "A background user merge job (poll until status is done or failed)",
|
|
70969
|
+
"tags": [
|
|
70970
|
+
"Users"
|
|
70971
|
+
],
|
|
70972
|
+
"security": [
|
|
70973
|
+
{
|
|
70974
|
+
"bearerAuth": []
|
|
70975
|
+
}
|
|
70976
|
+
],
|
|
70977
|
+
"parameters": [
|
|
70978
|
+
{
|
|
70979
|
+
"schema": {
|
|
70980
|
+
"type": "string"
|
|
70981
|
+
},
|
|
70982
|
+
"required": true,
|
|
70983
|
+
"name": "jobId",
|
|
70984
|
+
"in": "path"
|
|
70985
|
+
}
|
|
70986
|
+
],
|
|
70987
|
+
"responses": {
|
|
70988
|
+
"200": {
|
|
70989
|
+
"description": "The merge job",
|
|
70990
|
+
"content": {
|
|
70991
|
+
"application/json": {
|
|
70992
|
+
"schema": {
|
|
70993
|
+
"type": "object",
|
|
70994
|
+
"properties": {
|
|
70995
|
+
"job": {
|
|
70996
|
+
"$ref": "#/components/schemas/UserMergeJob"
|
|
70997
|
+
}
|
|
70998
|
+
},
|
|
70999
|
+
"required": [
|
|
71000
|
+
"job"
|
|
71001
|
+
]
|
|
71002
|
+
}
|
|
71003
|
+
}
|
|
71004
|
+
}
|
|
71005
|
+
},
|
|
71006
|
+
"401": {
|
|
71007
|
+
"description": "Unauthorized",
|
|
71008
|
+
"content": {
|
|
71009
|
+
"application/json": {
|
|
71010
|
+
"schema": {
|
|
71011
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
71012
|
+
}
|
|
71013
|
+
}
|
|
71014
|
+
}
|
|
71015
|
+
},
|
|
71016
|
+
"404": {
|
|
71017
|
+
"description": "Job not found",
|
|
69129
71018
|
"content": {
|
|
69130
71019
|
"application/json": {
|
|
69131
71020
|
"schema": {
|
|
@@ -70545,6 +72434,101 @@
|
|
|
70545
72434
|
}
|
|
70546
72435
|
],
|
|
70547
72436
|
"description": "Optional webhook verification format. Omit to keep legacy HMAC-SHA256 behavior with fallback header scanning."
|
|
72437
|
+
},
|
|
72438
|
+
"events": {
|
|
72439
|
+
"type": "array",
|
|
72440
|
+
"items": {
|
|
72441
|
+
"type": "string",
|
|
72442
|
+
"minLength": 1
|
|
72443
|
+
},
|
|
72444
|
+
"description": "Deprecated alias of one delivery-filter clause, AND-ed with filter. Matched exactly against eventHeader, or against the preset event field when eventHeader is omitted: X-GitHub-Event (github, and the default), X-Gitlab-Event (gitlab), or JSON body type (standard-webhooks). A miss returns 200 skipped with reason event-not-allowed and creates no run. Omit or leave empty to add no event clause."
|
|
72445
|
+
},
|
|
72446
|
+
"eventHeader": {
|
|
72447
|
+
"type": "string",
|
|
72448
|
+
"minLength": 1,
|
|
72449
|
+
"description": "Deprecated. Header read for events. The name lookup is case-insensitive and the value is exact. Overrides preset. Defaults to X-GitHub-Event when preset is omitted."
|
|
72450
|
+
},
|
|
72451
|
+
"preset": {
|
|
72452
|
+
"type": "string",
|
|
72453
|
+
"enum": [
|
|
72454
|
+
"github",
|
|
72455
|
+
"gitlab",
|
|
72456
|
+
"standard-webhooks"
|
|
72457
|
+
],
|
|
72458
|
+
"description": "Optional sender preset for the events allowlist. github reads X-GitHub-Event, gitlab reads X-Gitlab-Event, and standard-webhooks reads the JSON body field type. A preset alone does not filter. Ignored when eventHeader is set."
|
|
72459
|
+
},
|
|
72460
|
+
"filter": {
|
|
72461
|
+
"type": "object",
|
|
72462
|
+
"properties": {
|
|
72463
|
+
"headers": {
|
|
72464
|
+
"type": "object",
|
|
72465
|
+
"additionalProperties": {
|
|
72466
|
+
"anyOf": [
|
|
72467
|
+
{
|
|
72468
|
+
"type": "string",
|
|
72469
|
+
"minLength": 1,
|
|
72470
|
+
"maxLength": 512
|
|
72471
|
+
},
|
|
72472
|
+
{
|
|
72473
|
+
"type": "array",
|
|
72474
|
+
"items": {
|
|
72475
|
+
"type": "string",
|
|
72476
|
+
"minLength": 1,
|
|
72477
|
+
"maxLength": 512
|
|
72478
|
+
},
|
|
72479
|
+
"minItems": 1,
|
|
72480
|
+
"maxItems": 64
|
|
72481
|
+
}
|
|
72482
|
+
]
|
|
72483
|
+
},
|
|
72484
|
+
"description": "Header name to one exact value, or a list of exact values. Names are matched case-insensitively. Every entry must match."
|
|
72485
|
+
},
|
|
72486
|
+
"body": {
|
|
72487
|
+
"type": "object",
|
|
72488
|
+
"additionalProperties": {
|
|
72489
|
+
"anyOf": [
|
|
72490
|
+
{
|
|
72491
|
+
"type": "string",
|
|
72492
|
+
"maxLength": 512
|
|
72493
|
+
},
|
|
72494
|
+
{
|
|
72495
|
+
"type": "number"
|
|
72496
|
+
},
|
|
72497
|
+
{
|
|
72498
|
+
"type": "boolean"
|
|
72499
|
+
},
|
|
72500
|
+
{
|
|
72501
|
+
"type": "null"
|
|
72502
|
+
},
|
|
72503
|
+
{
|
|
72504
|
+
"type": "array",
|
|
72505
|
+
"items": {
|
|
72506
|
+
"anyOf": [
|
|
72507
|
+
{
|
|
72508
|
+
"type": "string",
|
|
72509
|
+
"maxLength": 512
|
|
72510
|
+
},
|
|
72511
|
+
{
|
|
72512
|
+
"type": "number"
|
|
72513
|
+
},
|
|
72514
|
+
{
|
|
72515
|
+
"type": "boolean"
|
|
72516
|
+
},
|
|
72517
|
+
{
|
|
72518
|
+
"type": "null"
|
|
72519
|
+
}
|
|
72520
|
+
]
|
|
72521
|
+
},
|
|
72522
|
+
"minItems": 1,
|
|
72523
|
+
"maxItems": 64
|
|
72524
|
+
}
|
|
72525
|
+
]
|
|
72526
|
+
},
|
|
72527
|
+
"description": "Dot path into the JSON body, to one exact scalar or a list of scalars. A numeric segment indexes an array (commits.0.id). No type coercion. Every entry must match."
|
|
72528
|
+
}
|
|
72529
|
+
},
|
|
72530
|
+
"additionalProperties": false,
|
|
72531
|
+
"description": "Header and JSON body allowlists, AND-ed with events. Evaluated after signature verification and before a run is saved. A miss returns 200 skipped with reason filter-not-matched and creates no run."
|
|
70548
72532
|
}
|
|
70549
72533
|
},
|
|
70550
72534
|
"required": [
|
|
@@ -70966,6 +72950,101 @@
|
|
|
70966
72950
|
}
|
|
70967
72951
|
],
|
|
70968
72952
|
"description": "Optional webhook verification format. Omit to keep legacy HMAC-SHA256 behavior with fallback header scanning."
|
|
72953
|
+
},
|
|
72954
|
+
"events": {
|
|
72955
|
+
"type": "array",
|
|
72956
|
+
"items": {
|
|
72957
|
+
"type": "string",
|
|
72958
|
+
"minLength": 1
|
|
72959
|
+
},
|
|
72960
|
+
"description": "Deprecated alias of one delivery-filter clause, AND-ed with filter. Matched exactly against eventHeader, or against the preset event field when eventHeader is omitted: X-GitHub-Event (github, and the default), X-Gitlab-Event (gitlab), or JSON body type (standard-webhooks). A miss returns 200 skipped with reason event-not-allowed and creates no run. Omit or leave empty to add no event clause."
|
|
72961
|
+
},
|
|
72962
|
+
"eventHeader": {
|
|
72963
|
+
"type": "string",
|
|
72964
|
+
"minLength": 1,
|
|
72965
|
+
"description": "Deprecated. Header read for events. The name lookup is case-insensitive and the value is exact. Overrides preset. Defaults to X-GitHub-Event when preset is omitted."
|
|
72966
|
+
},
|
|
72967
|
+
"preset": {
|
|
72968
|
+
"type": "string",
|
|
72969
|
+
"enum": [
|
|
72970
|
+
"github",
|
|
72971
|
+
"gitlab",
|
|
72972
|
+
"standard-webhooks"
|
|
72973
|
+
],
|
|
72974
|
+
"description": "Optional sender preset for the events allowlist. github reads X-GitHub-Event, gitlab reads X-Gitlab-Event, and standard-webhooks reads the JSON body field type. A preset alone does not filter. Ignored when eventHeader is set."
|
|
72975
|
+
},
|
|
72976
|
+
"filter": {
|
|
72977
|
+
"type": "object",
|
|
72978
|
+
"properties": {
|
|
72979
|
+
"headers": {
|
|
72980
|
+
"type": "object",
|
|
72981
|
+
"additionalProperties": {
|
|
72982
|
+
"anyOf": [
|
|
72983
|
+
{
|
|
72984
|
+
"type": "string",
|
|
72985
|
+
"minLength": 1,
|
|
72986
|
+
"maxLength": 512
|
|
72987
|
+
},
|
|
72988
|
+
{
|
|
72989
|
+
"type": "array",
|
|
72990
|
+
"items": {
|
|
72991
|
+
"type": "string",
|
|
72992
|
+
"minLength": 1,
|
|
72993
|
+
"maxLength": 512
|
|
72994
|
+
},
|
|
72995
|
+
"minItems": 1,
|
|
72996
|
+
"maxItems": 64
|
|
72997
|
+
}
|
|
72998
|
+
]
|
|
72999
|
+
},
|
|
73000
|
+
"description": "Header name to one exact value, or a list of exact values. Names are matched case-insensitively. Every entry must match."
|
|
73001
|
+
},
|
|
73002
|
+
"body": {
|
|
73003
|
+
"type": "object",
|
|
73004
|
+
"additionalProperties": {
|
|
73005
|
+
"anyOf": [
|
|
73006
|
+
{
|
|
73007
|
+
"type": "string",
|
|
73008
|
+
"maxLength": 512
|
|
73009
|
+
},
|
|
73010
|
+
{
|
|
73011
|
+
"type": "number"
|
|
73012
|
+
},
|
|
73013
|
+
{
|
|
73014
|
+
"type": "boolean"
|
|
73015
|
+
},
|
|
73016
|
+
{
|
|
73017
|
+
"type": "null"
|
|
73018
|
+
},
|
|
73019
|
+
{
|
|
73020
|
+
"type": "array",
|
|
73021
|
+
"items": {
|
|
73022
|
+
"anyOf": [
|
|
73023
|
+
{
|
|
73024
|
+
"type": "string",
|
|
73025
|
+
"maxLength": 512
|
|
73026
|
+
},
|
|
73027
|
+
{
|
|
73028
|
+
"type": "number"
|
|
73029
|
+
},
|
|
73030
|
+
{
|
|
73031
|
+
"type": "boolean"
|
|
73032
|
+
},
|
|
73033
|
+
{
|
|
73034
|
+
"type": "null"
|
|
73035
|
+
}
|
|
73036
|
+
]
|
|
73037
|
+
},
|
|
73038
|
+
"minItems": 1,
|
|
73039
|
+
"maxItems": 64
|
|
73040
|
+
}
|
|
73041
|
+
]
|
|
73042
|
+
},
|
|
73043
|
+
"description": "Dot path into the JSON body, to one exact scalar or a list of scalars. A numeric segment indexes an array (commits.0.id). No type coercion. Every entry must match."
|
|
73044
|
+
}
|
|
73045
|
+
},
|
|
73046
|
+
"additionalProperties": false,
|
|
73047
|
+
"description": "Header and JSON body allowlists, AND-ed with events. Evaluated after signature verification and before a run is saved. A miss returns 200 skipped with reason filter-not-matched and creates no run."
|
|
70969
73048
|
}
|
|
70970
73049
|
},
|
|
70971
73050
|
"required": [
|
|
@@ -72208,6 +74287,86 @@
|
|
|
72208
74287
|
}
|
|
72209
74288
|
],
|
|
72210
74289
|
"responses": {
|
|
74290
|
+
"200": {
|
|
74291
|
+
"description": "Delivery skipped after signature verification and before a run was saved. event-not-allowed: the events allowlist missed. filter-not-matched: a header or JSON body field missed. The received value is not echoed for a filter miss.",
|
|
74292
|
+
"content": {
|
|
74293
|
+
"application/json": {
|
|
74294
|
+
"schema": {
|
|
74295
|
+
"oneOf": [
|
|
74296
|
+
{
|
|
74297
|
+
"type": "object",
|
|
74298
|
+
"properties": {
|
|
74299
|
+
"skipped": {
|
|
74300
|
+
"type": "boolean",
|
|
74301
|
+
"enum": [
|
|
74302
|
+
true
|
|
74303
|
+
]
|
|
74304
|
+
},
|
|
74305
|
+
"reason": {
|
|
74306
|
+
"type": "string",
|
|
74307
|
+
"enum": [
|
|
74308
|
+
"event-not-allowed"
|
|
74309
|
+
]
|
|
74310
|
+
},
|
|
74311
|
+
"event": {
|
|
74312
|
+
"type": [
|
|
74313
|
+
"string",
|
|
74314
|
+
"null"
|
|
74315
|
+
]
|
|
74316
|
+
}
|
|
74317
|
+
},
|
|
74318
|
+
"required": [
|
|
74319
|
+
"skipped",
|
|
74320
|
+
"reason",
|
|
74321
|
+
"event"
|
|
74322
|
+
]
|
|
74323
|
+
},
|
|
74324
|
+
{
|
|
74325
|
+
"type": "object",
|
|
74326
|
+
"properties": {
|
|
74327
|
+
"skipped": {
|
|
74328
|
+
"type": "boolean",
|
|
74329
|
+
"enum": [
|
|
74330
|
+
true
|
|
74331
|
+
]
|
|
74332
|
+
},
|
|
74333
|
+
"reason": {
|
|
74334
|
+
"type": "string",
|
|
74335
|
+
"enum": [
|
|
74336
|
+
"filter-not-matched"
|
|
74337
|
+
]
|
|
74338
|
+
},
|
|
74339
|
+
"match": {
|
|
74340
|
+
"type": "object",
|
|
74341
|
+
"properties": {
|
|
74342
|
+
"source": {
|
|
74343
|
+
"type": "string",
|
|
74344
|
+
"enum": [
|
|
74345
|
+
"header",
|
|
74346
|
+
"body"
|
|
74347
|
+
]
|
|
74348
|
+
},
|
|
74349
|
+
"path": {
|
|
74350
|
+
"type": "string"
|
|
74351
|
+
}
|
|
74352
|
+
},
|
|
74353
|
+
"required": [
|
|
74354
|
+
"source",
|
|
74355
|
+
"path"
|
|
74356
|
+
]
|
|
74357
|
+
}
|
|
74358
|
+
},
|
|
74359
|
+
"required": [
|
|
74360
|
+
"skipped",
|
|
74361
|
+
"reason",
|
|
74362
|
+
"match"
|
|
74363
|
+
]
|
|
74364
|
+
}
|
|
74365
|
+
]
|
|
74366
|
+
}
|
|
74367
|
+
}
|
|
74368
|
+
}
|
|
74369
|
+
},
|
|
72211
74370
|
"201": {
|
|
72212
74371
|
"description": "Webhook processed",
|
|
72213
74372
|
"content": {
|
|
@@ -72711,6 +74870,21 @@
|
|
|
72711
74870
|
],
|
|
72712
74871
|
"additionalProperties": false
|
|
72713
74872
|
},
|
|
74873
|
+
"workspace": {
|
|
74874
|
+
"type": [
|
|
74875
|
+
"object",
|
|
74876
|
+
"null"
|
|
74877
|
+
],
|
|
74878
|
+
"properties": {
|
|
74879
|
+
"sizeGb": {
|
|
74880
|
+
"type": "integer",
|
|
74881
|
+
"minimum": 1,
|
|
74882
|
+
"maximum": 1024
|
|
74883
|
+
}
|
|
74884
|
+
},
|
|
74885
|
+
"default": null,
|
|
74886
|
+
"additionalProperties": false
|
|
74887
|
+
},
|
|
72714
74888
|
"ttlSec": {
|
|
72715
74889
|
"type": [
|
|
72716
74890
|
"integer",
|
|
@@ -73009,6 +75183,20 @@
|
|
|
73009
75183
|
],
|
|
73010
75184
|
"additionalProperties": false
|
|
73011
75185
|
},
|
|
75186
|
+
"workspace": {
|
|
75187
|
+
"type": [
|
|
75188
|
+
"object",
|
|
75189
|
+
"null"
|
|
75190
|
+
],
|
|
75191
|
+
"properties": {
|
|
75192
|
+
"sizeGb": {
|
|
75193
|
+
"type": "integer",
|
|
75194
|
+
"minimum": 1,
|
|
75195
|
+
"maximum": 1024
|
|
75196
|
+
}
|
|
75197
|
+
},
|
|
75198
|
+
"additionalProperties": false
|
|
75199
|
+
},
|
|
73012
75200
|
"ttlSec": {
|
|
73013
75201
|
"type": [
|
|
73014
75202
|
"integer",
|