@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
scrubSecrets,
|
|
3
3
|
init_secret_scrubber
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-7e8sxqv5.js";
|
|
5
5
|
|
|
6
6
|
// src/providers/runtime-dependencies.ts
|
|
7
7
|
init_secret_scrubber();
|
|
@@ -51,7 +51,7 @@ async function validateProviderDependencies(provider, config, dependencies = pro
|
|
|
51
51
|
};
|
|
52
52
|
switch (provider) {
|
|
53
53
|
case "claude": {
|
|
54
|
-
const { resolveClaudeBinaryArgv, withClaudeRouteEnv } = await import("./claude-adapter-
|
|
54
|
+
const { resolveClaudeBinaryArgv, withClaudeRouteEnv } = await import("./claude-adapter-0c0y8fqp.js");
|
|
55
55
|
const sourceEnv = withClaudeRouteEnv(env);
|
|
56
56
|
const { argv, useClaudeBridge } = resolveClaudeBinaryArgv(sourceEnv);
|
|
57
57
|
requireExecutable(argv[0], useClaudeBridge ? "Use worker-full or install @desplega.ai/claude-bridge during image provisioning." : "Install Claude Code or set CLAUDE_BINARY to a trusted executable on the worker.", sourceEnv);
|
|
@@ -69,7 +69,7 @@ async function validateProviderDependencies(provider, config, dependencies = pro
|
|
|
69
69
|
case "grok":
|
|
70
70
|
case "fx":
|
|
71
71
|
case "acp": {
|
|
72
|
-
const { resolveAcpTarget, grokTargetProfile, fxTargetProfile } = await import("./acp-targets-
|
|
72
|
+
const { resolveAcpTarget, grokTargetProfile, fxTargetProfile } = await import("./acp-targets-5wyy2b9m.js");
|
|
73
73
|
const target = provider === "grok" ? grokTargetProfile : provider === "fx" ? fxTargetProfile : resolveAcpTarget(config);
|
|
74
74
|
const hint = provider === "grok" ? "Use worker-full, install @xai-official/grok@1.0.77, or set GROK_BINARY to a trusted executable." : provider === "fx" ? "Use worker-full, install the pinned fx release (Dockerfile.worker FX_VERSION), or set FX_BINARY." : `ACP_TARGET='${target.target}'. ${acpInstallHints[target.target]}`;
|
|
75
75
|
requireExecutable(target.command(config)[0], hint, target.env(config));
|
|
@@ -35,15 +35,15 @@ import {
|
|
|
35
35
|
getPendingWaitsByEvent2,
|
|
36
36
|
resolveWaitState2,
|
|
37
37
|
init_db4
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-zhn4r1rz.js";
|
|
39
39
|
import {
|
|
40
40
|
workflowEventBus2,
|
|
41
41
|
init_event_bus
|
|
42
|
-
} from "./cli-
|
|
42
|
+
} from "./cli-thd3005a.js";
|
|
43
43
|
import {
|
|
44
44
|
postApprovalCancellationUpdates2,
|
|
45
45
|
init_approval_notifications
|
|
46
|
-
} from "./cli-
|
|
46
|
+
} from "./cli-raqw9fw9.js";
|
|
47
47
|
import {
|
|
48
48
|
BaseExecutor,
|
|
49
49
|
init_base,
|
|
@@ -61,6 +61,9 @@ import {
|
|
|
61
61
|
findWorkflowReadinessProblems,
|
|
62
62
|
formatReadinessProblems,
|
|
63
63
|
init_readiness,
|
|
64
|
+
hasOwedSuccessors,
|
|
65
|
+
claimAndOweWalk,
|
|
66
|
+
init_successor_routing,
|
|
64
67
|
startWorkflowExecution2,
|
|
65
68
|
ParentStepNotCurrentError,
|
|
66
69
|
failRunOnUnreadableReplay,
|
|
@@ -82,15 +85,15 @@ import {
|
|
|
82
85
|
getNextTargets,
|
|
83
86
|
getSuccessors,
|
|
84
87
|
init_definition2
|
|
85
|
-
} from "./cli-
|
|
88
|
+
} from "./cli-m00c47q6.js";
|
|
86
89
|
import {
|
|
87
90
|
RetryPolicySchema,
|
|
88
91
|
SUPERSEDED_WORKFLOW_TASK_REASON,
|
|
89
92
|
init_types5
|
|
90
|
-
} from "./cli-
|
|
93
|
+
} from "./cli-1h4njv9y.js";
|
|
91
94
|
import {
|
|
92
95
|
init_zod
|
|
93
|
-
} from "./cli-
|
|
96
|
+
} from "./cli-96234j5w.js";
|
|
94
97
|
import {
|
|
95
98
|
string2,
|
|
96
99
|
number2,
|
|
@@ -101,11 +104,11 @@ import {
|
|
|
101
104
|
record2,
|
|
102
105
|
_enum2,
|
|
103
106
|
literal2
|
|
104
|
-
} from "./cli-
|
|
107
|
+
} from "./cli-qrzq3hvg.js";
|
|
105
108
|
import {
|
|
106
109
|
scrubSecrets,
|
|
107
110
|
init_secret_scrubber
|
|
108
|
-
} from "./cli-
|
|
111
|
+
} from "./cli-7e8sxqv5.js";
|
|
109
112
|
import {
|
|
110
113
|
__esm
|
|
111
114
|
} from "./cli-242037k3.js";
|
|
@@ -573,7 +576,7 @@ function toRoutingResult(settle) {
|
|
|
573
576
|
};
|
|
574
577
|
}
|
|
575
578
|
async function checkpointPortStepAndResolveSuccessors(def, runId, stepId, nodeId, output, nextPort, ctx, registry) {
|
|
576
|
-
return await
|
|
579
|
+
return await claimAndOweWalk(runId, async () => {
|
|
577
580
|
const current = await getWorkflowRunStep2(stepId);
|
|
578
581
|
if (!current || current.status !== "waiting")
|
|
579
582
|
return UNCLAIMED;
|
|
@@ -644,7 +647,7 @@ async function isSupersedeCut(taskId, reason) {
|
|
|
644
647
|
return task?.failureReason === SUPERSEDED_WORKFLOW_TASK_REASON;
|
|
645
648
|
}
|
|
646
649
|
async function completeTaskStepAndResolveSuccessors(def, runId, step, output, ctx, failureReason, ownerTaskId, registry) {
|
|
647
|
-
return await
|
|
650
|
+
return await claimAndOweWalk(runId, async () => {
|
|
648
651
|
const current = await getWorkflowRunStep2(step.id);
|
|
649
652
|
if (!current || current.status !== "waiting")
|
|
650
653
|
return UNCLAIMED;
|
|
@@ -652,22 +655,29 @@ async function completeTaskStepAndResolveSuccessors(def, runId, step, output, ct
|
|
|
652
655
|
return UNCLAIMED;
|
|
653
656
|
if (await getRunLineageBlock(runId))
|
|
654
657
|
return UNCLAIMED;
|
|
658
|
+
const failedTaskId = failureReason !== undefined ? ownerTaskId ?? (await getTaskByWorkflowRunStepId2(step.id))?.id : undefined;
|
|
659
|
+
let result;
|
|
655
660
|
if (resolveForeachParent(def, step.nodeId)) {
|
|
656
|
-
|
|
661
|
+
result = toRoutingResult(await settleForeachChild(def, runId, step.id, {
|
|
657
662
|
status: "completed",
|
|
658
663
|
output,
|
|
659
664
|
...failureReason !== undefined ? { error: failureReason } : {}
|
|
660
665
|
}, ctx, { registry }));
|
|
666
|
+
} else {
|
|
667
|
+
await checkpointStep(runId, step.id, step.nodeId, { output }, ctx);
|
|
668
|
+
await updateWorkflowRun2(runId, { status: "running" });
|
|
669
|
+
result = {
|
|
670
|
+
claimed: true,
|
|
671
|
+
foreachChild: false,
|
|
672
|
+
joined: true,
|
|
673
|
+
successors: getSuccessors(def, step.nodeId),
|
|
674
|
+
runFailed: false
|
|
675
|
+
};
|
|
661
676
|
}
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
foreachChild: false,
|
|
667
|
-
joined: true,
|
|
668
|
-
successors: getSuccessors(def, step.nodeId),
|
|
669
|
-
runFailed: false
|
|
670
|
-
};
|
|
677
|
+
if (failedTaskId && result.claimed && !result.runFailed) {
|
|
678
|
+
await markWorkflowStepTaskSuperseded2(failedTaskId);
|
|
679
|
+
}
|
|
680
|
+
return result;
|
|
671
681
|
});
|
|
672
682
|
}
|
|
673
683
|
var UNCLAIMED, SUPERSEDE_RETRY_POLICY;
|
|
@@ -679,6 +689,7 @@ var init_task_step_routing = __esm(() => {
|
|
|
679
689
|
init_definition2();
|
|
680
690
|
init_foreach_body();
|
|
681
691
|
init_foreach_join();
|
|
692
|
+
init_successor_routing();
|
|
682
693
|
UNCLAIMED = {
|
|
683
694
|
claimed: false,
|
|
684
695
|
foreachChild: false,
|
|
@@ -820,7 +831,7 @@ async function resumeFromTaskCompletionUnguarded(event, registry) {
|
|
|
820
831
|
const successors = routing.successors;
|
|
821
832
|
if (successors.length > 0) {
|
|
822
833
|
const secretKeys = getSecretInputKeys(workflow.input);
|
|
823
|
-
await walkGraph(workflow.definition, run.id, ctx, successors, registry, workflow.id, secretKeys);
|
|
834
|
+
await walkGraph(workflow.definition, run.id, ctx, successors, registry, workflow.id, secretKeys, { successorDebt: routing.successorDebt });
|
|
824
835
|
} else {
|
|
825
836
|
await finalizeOrWait2(run.id);
|
|
826
837
|
}
|
|
@@ -833,7 +844,7 @@ async function finalizeOrWait2(runId) {
|
|
|
833
844
|
if (await getRunLineageBlock(runId))
|
|
834
845
|
return;
|
|
835
846
|
const steps = await getWorkflowRunStepsByRunId2(runId);
|
|
836
|
-
if (hasRunningStep(steps)) {
|
|
847
|
+
if (hasRunningStep(steps) || hasOwedSuccessors(runId)) {
|
|
837
848
|
if (status === "waiting")
|
|
838
849
|
await updateWorkflowRun2(runId, { status: "running" });
|
|
839
850
|
return;
|
|
@@ -896,7 +907,7 @@ async function handleTaskFailureUnguarded(event, reason, registry, options) {
|
|
|
896
907
|
const successors = routing.successors;
|
|
897
908
|
if (successors.length > 0) {
|
|
898
909
|
const secretKeys = getSecretInputKeys(workflow.input);
|
|
899
|
-
await walkGraph(workflow.definition, run.id, ctx, successors, registry, workflow.id, secretKeys);
|
|
910
|
+
await walkGraph(workflow.definition, run.id, ctx, successors, registry, workflow.id, secretKeys, { successorDebt: routing.successorDebt });
|
|
900
911
|
} else {
|
|
901
912
|
await finalizeOrWait2(run.id);
|
|
902
913
|
}
|
|
@@ -1128,7 +1139,7 @@ async function resumeFromApprovalResolutionUnguarded(event, registry) {
|
|
|
1128
1139
|
const successors = routing.successors;
|
|
1129
1140
|
if (successors.length > 0) {
|
|
1130
1141
|
const secretKeys = getSecretInputKeys(workflow.input);
|
|
1131
|
-
await walkGraph(workflow.definition, run.id, ctx, successors, registry, workflow.id, secretKeys);
|
|
1142
|
+
await walkGraph(workflow.definition, run.id, ctx, successors, registry, workflow.id, secretKeys, { successorDebt: routing.successorDebt });
|
|
1132
1143
|
} else {
|
|
1133
1144
|
await finalizeOrWait2(run.id);
|
|
1134
1145
|
}
|
|
@@ -1177,7 +1188,7 @@ async function resumeClaimedWait(waitRow, status, cappedPayload, registry) {
|
|
|
1177
1188
|
const successors = routing.successors;
|
|
1178
1189
|
if (successors.length > 0) {
|
|
1179
1190
|
const secretKeys = getSecretInputKeys(workflow.input);
|
|
1180
|
-
await walkGraph(workflow.definition, run.id, ctx, successors, registry, workflow.id, secretKeys);
|
|
1191
|
+
await walkGraph(workflow.definition, run.id, ctx, successors, registry, workflow.id, secretKeys, { successorDebt: routing.successorDebt });
|
|
1181
1192
|
} else {
|
|
1182
1193
|
await finalizeOrWait2(run.id);
|
|
1183
1194
|
}
|
|
@@ -1228,7 +1239,7 @@ async function resumeFromChildRun2(parentStepId, registry) {
|
|
|
1228
1239
|
claimed = true;
|
|
1229
1240
|
if (routing.successors.length > 0) {
|
|
1230
1241
|
const secretKeys = getSecretInputKeys(workflow.input);
|
|
1231
|
-
await walkGraph(workflow.definition, run.id, ctx, routing.successors, registry, workflow.id, secretKeys);
|
|
1242
|
+
await walkGraph(workflow.definition, run.id, ctx, routing.successors, registry, workflow.id, secretKeys, { successorDebt: routing.successorDebt });
|
|
1232
1243
|
} else {
|
|
1233
1244
|
await finalizeOrWait2(run.id);
|
|
1234
1245
|
}
|
|
@@ -1334,7 +1345,7 @@ async function processBusEvent(eventName, payload) {
|
|
|
1334
1345
|
console.error(`[workflows] Wait bus listener failed for wait=${waitId} event=${eventName}:`, err);
|
|
1335
1346
|
}
|
|
1336
1347
|
}
|
|
1337
|
-
if (set.size === 0) {
|
|
1348
|
+
if (set.size === 0 && waitsByEvent.get(eventName) === set) {
|
|
1338
1349
|
waitsByEvent.delete(eventName);
|
|
1339
1350
|
const listener = listenersByEvent.get(eventName);
|
|
1340
1351
|
if (listener) {
|
|
@@ -1372,6 +1383,7 @@ var init_resume = __esm(() => {
|
|
|
1372
1383
|
init_input();
|
|
1373
1384
|
init_limits();
|
|
1374
1385
|
init_readiness();
|
|
1386
|
+
init_successor_routing();
|
|
1375
1387
|
init_task_step_routing();
|
|
1376
1388
|
init_wait_filter();
|
|
1377
1389
|
TERMINAL_RUN_STATUSES = new Set(["completed", "failed", "cancelled", "skipped"]);
|
|
@@ -1379,7 +1391,8 @@ var init_resume = __esm(() => {
|
|
|
1379
1391
|
CHILD_RETRY_SCHEDULED = {
|
|
1380
1392
|
claimed: true,
|
|
1381
1393
|
runFailed: false,
|
|
1382
|
-
successors: []
|
|
1394
|
+
successors: [],
|
|
1395
|
+
successorDebt: undefined
|
|
1383
1396
|
};
|
|
1384
1397
|
FIRED_PAYLOAD_BYTE_CAP = 64 * 1024;
|
|
1385
1398
|
waitsByEvent = new Map;
|
|
@@ -6,7 +6,10 @@ import {
|
|
|
6
6
|
function poolCacheKey(poolId, generation) {
|
|
7
7
|
return `swarm-cache-${poolId}${generation ? `-${generation}` : ""}`;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
function workspaceVolumeKey(agentId, slot) {
|
|
10
|
+
return `swarm-ws-${agentId.toLowerCase()}-${slot}`;
|
|
11
|
+
}
|
|
12
|
+
var WORKSPACE_MOUNT_PATH = "/workspace/personal", RUNTIME_LABELS, WORKSPACE_LABEL = "swarm.workspace";
|
|
10
13
|
var init_types4 = __esm(() => {
|
|
11
14
|
RUNTIME_LABELS = {
|
|
12
15
|
owner: "swarm.owner",
|
|
@@ -16,4 +19,4 @@ var init_types4 = __esm(() => {
|
|
|
16
19
|
};
|
|
17
20
|
});
|
|
18
21
|
|
|
19
|
-
export { poolCacheKey, RUNTIME_LABELS, init_types4 };
|
|
22
|
+
export { poolCacheKey, WORKSPACE_MOUNT_PATH, workspaceVolumeKey, RUNTIME_LABELS, WORKSPACE_LABEL, init_types4 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_zod,
|
|
3
3
|
init_zod
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-96234j5w.js";
|
|
5
5
|
import {
|
|
6
6
|
string2,
|
|
7
7
|
uuid,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
lazy,
|
|
22
22
|
ZodIssueCode,
|
|
23
23
|
exports_iso
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-qrzq3hvg.js";
|
|
25
25
|
import {
|
|
26
26
|
MAX_PROFILE_FILE_LENGTH,
|
|
27
27
|
init_constants3
|
|
@@ -2158,6 +2158,33 @@ function resolveTaskModelSelection(opts) {
|
|
|
2158
2158
|
function isTerminalTaskStatus(status) {
|
|
2159
2159
|
return TERMINAL_TASK_STATUSES.includes(status);
|
|
2160
2160
|
}
|
|
2161
|
+
function hasControlCharacter(value) {
|
|
2162
|
+
for (let i = 0;i < value.length; i++) {
|
|
2163
|
+
const code = value.charCodeAt(i);
|
|
2164
|
+
if (code <= 31 || code === 127)
|
|
2165
|
+
return true;
|
|
2166
|
+
}
|
|
2167
|
+
return false;
|
|
2168
|
+
}
|
|
2169
|
+
function webhookBodyPathIssue(path) {
|
|
2170
|
+
if (path.length > WEBHOOK_FILTER_MAX_PATH) {
|
|
2171
|
+
return `body path is longer than ${WEBHOOK_FILTER_MAX_PATH} characters`;
|
|
2172
|
+
}
|
|
2173
|
+
const segments = path.split(".");
|
|
2174
|
+
if (segments.length > WEBHOOK_FILTER_MAX_SEGMENTS) {
|
|
2175
|
+
return `body path has more than ${WEBHOOK_FILTER_MAX_SEGMENTS} segments`;
|
|
2176
|
+
}
|
|
2177
|
+
for (const segment of segments) {
|
|
2178
|
+
if (segment.length === 0)
|
|
2179
|
+
return "body path has an empty segment";
|
|
2180
|
+
if (segment.length > WEBHOOK_FILTER_MAX_SEGMENT) {
|
|
2181
|
+
return `body path segment is longer than ${WEBHOOK_FILTER_MAX_SEGMENT} characters`;
|
|
2182
|
+
}
|
|
2183
|
+
if (hasControlCharacter(segment))
|
|
2184
|
+
return "body path segment has a control character";
|
|
2185
|
+
}
|
|
2186
|
+
return null;
|
|
2187
|
+
}
|
|
2161
2188
|
function checkExtensionInstallSource(body, ctx) {
|
|
2162
2189
|
const inline = body.manifest !== undefined || body.files !== undefined;
|
|
2163
2190
|
if (body.template !== undefined && inline) {
|
|
@@ -2177,7 +2204,7 @@ function checkExtensionInstallSource(body, ctx) {
|
|
|
2177
2204
|
ctx.addIssue({ code: "custom", path: ["files"], message: "files is required with manifest" });
|
|
2178
2205
|
}
|
|
2179
2206
|
}
|
|
2180
|
-
var AssetKeySchema, AssetEntityTypeSchema, AssetProviderRefSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, LEGACY_MODEL_TO_TIER, DEFAULT_MODEL_TIER_MAP, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, OPEN_TASK_STATUSES, InboxMessageStatusSchema, InboxMessageSchema, AgentTaskSourceSchema, RoutingReasonSchema, RoutingSourceSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileCredentialsSchema, ModelProfileSchema, ProviderErrorClassSchema, FallbackHopSchema, ProfileCheckStateSchema, ProfileCheckRowSchema, ProfileCheckResultSchema, SessionShareAccessSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringStatusSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, SlackParticipantTrustSchema, TaskSlackParticipantSchema, TaskSlackParticipantsSchema, AgentTaskSchema, CreateTaskOptionsSchema, TaskAttachmentKindSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY = "_agentSwarmGeneratedBy", attachmentCapabilitiesSchema, attachmentCommonFields, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, IdentityEventTypeSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, ChecklistItemSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, HttpsImageUrlSchema, LucideIconSchema, UrlIconSchema, AgentFsIconSchema, MediaIconSchema, AgentAvatarSchema, AppIconSchema, AgentSlackIconSchema, AgentSchema, AgentCredStatusKeyResultSchema, AgentCredStatusLiveTestSchema, AgentLatestModelSchema, AgentBedrockStatusSchema, AgentOpencodeGoStatusSchema, AcpSessionConfigSelectValueSchema, AcpSessionConfigSelectGroupSchema, AcpSessionConfigOptionSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, ChangeSourceSchema, VersionableFieldSchema, ContextVersionSchema, ChannelTypeSchema, ChannelSchema, ChannelMessageSchema, ServiceStatusSchema, ServiceSchema, AgentLogEventTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostSourceSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesSchema, REPO_GUIDELINES_MAX_ENTRIES = 50, RepoGuidelinesInputSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeInstanceStatusSchema, RuntimeProviderKindSchema, DeliveryModeSchema, PoolLifecycleSchema, RuntimeResourcesSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCacheSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON = "superseded_workflow_task", ExecutorMetaSchema, ValidationResultSchema, StepValidationConfigSchema, SwarmScriptNodeConfigSchema, WorkflowNodeSchema, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, WebhookVerificationSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowTemplateSchema, WorkflowSnapshotSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageThemeTokensSchema, PageThemeTokensInputSchema, PageSnapshotSchema, PageSchema, PageVersionSchema, MetricParamSchema, MetricVariableTypeSchema, MetricFormatSchema, MetricVisualizationSchema, MetricQuerySchema, MetricVariableSchema, MetricVizConfigSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSnapshotSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunKindSchema, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepStatusSchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, WaitModeSchema, WaitStateStatusSchema, WaitStateRowSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionNameSchema, SemverSchema, ExtensionBundlePathSchema, ExtensionAssetNameSchema, ExtensionScriptAssetSchema, ExtensionScheduleAssetSchema, ExtensionWorkflowAssetSchema, ExtensionSkillAssetSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionStatusSchema, ExtensionSchema, ExtensionFileSchema, ExtensionVersionSchema, ExtensionRunSchema, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillTypeSchema, SkillScopeSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpServerTransportSchema, McpServerScopeSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KV_NAME_REGEX, KvNamespaceSchema, KvKeySchema, KvEntrySchema;
|
|
2207
|
+
var AssetKeySchema, AssetEntityTypeSchema, AssetProviderRefSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, LEGACY_MODEL_TO_TIER, DEFAULT_MODEL_TIER_MAP, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, OPEN_TASK_STATUSES, InboxMessageStatusSchema, InboxMessageSchema, AgentTaskSourceSchema, RoutingReasonSchema, RoutingSourceSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileCredentialsSchema, ModelProfileSchema, ModelGroupSchema, ProviderErrorClassSchema, FallbackHopSchema, ProfileCheckStateSchema, ProfileCheckRowSchema, ProfileCheckResultSchema, SessionShareAccessSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringStatusSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, SlackParticipantTrustSchema, TaskSlackParticipantSchema, TaskSlackParticipantsSchema, AgentTaskSchema, CreateTaskOptionsSchema, TaskAttachmentKindSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY = "_agentSwarmGeneratedBy", attachmentCapabilitiesSchema, attachmentCommonFields, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, UserMergeJobStatusSchema, UserMergeJobSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, IdentityEventTypeSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, ChecklistItemSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, HttpsImageUrlSchema, LucideIconSchema, UrlIconSchema, AgentFsIconSchema, MediaIconSchema, AgentAvatarSchema, AppIconSchema, AgentSlackIconSchema, AgentSchema, AgentCredStatusKeyResultSchema, AgentCredStatusLiveTestSchema, AgentLatestModelSchema, AgentBedrockStatusSchema, AgentOpencodeGoStatusSchema, AcpSessionConfigSelectValueSchema, AcpSessionConfigSelectGroupSchema, AcpSessionConfigOptionSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, ChangeSourceSchema, VersionableFieldSchema, ContextVersionSchema, ChannelTypeSchema, ChannelSchema, ChannelMessageSchema, ServiceStatusSchema, ServiceSchema, AgentLogEventTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostSourceSchema, SessionCostKindSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesSchema, REPO_GUIDELINES_MAX_ENTRIES = 50, RepoGuidelinesInputSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeInstanceStatusSchema, RuntimeProviderKindSchema, DeliveryModeSchema, PoolLifecycleSchema, RuntimeResourcesSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCacheSchema, RuntimePoolWorkspaceSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON = "superseded_workflow_task", ExecutorMetaSchema, ValidationResultSchema, StepValidationConfigSchema, SwarmScriptNodeConfigSchema, WorkflowNodeSchema, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, WebhookVerificationSchema, WEBHOOK_FILTER_MAX_FIELDS = 32, WEBHOOK_FILTER_MAX_VALUES = 64, WEBHOOK_FILTER_MAX_STRING = 512, WEBHOOK_FILTER_MAX_HEADER_NAME = 128, WEBHOOK_FILTER_MAX_PATH = 256, WEBHOOK_FILTER_MAX_SEGMENTS = 12, WEBHOOK_FILTER_MAX_SEGMENT = 128, WEBHOOK_FILTER_HEADER_NAME, WEBHOOK_FILTER_PRESETS, WebhookFilterPresetSchema, webhookFilterHeaderValueSchema, webhookFilterBodyScalarSchema, webhookFilterBodyValueSchema, WebhookDeliveryFilterSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowTemplateSchema, WorkflowSnapshotSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageThemeTokensSchema, PageThemeTokensInputSchema, PageSnapshotSchema, PageSchema, PageVersionSchema, MetricParamSchema, MetricVariableTypeSchema, MetricFormatSchema, MetricVisualizationSchema, MetricQuerySchema, MetricVariableSchema, MetricVizConfigSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSnapshotSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunKindSchema, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepStatusSchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, WaitModeSchema, WaitStateStatusSchema, WaitStateRowSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionNameSchema, SemverSchema, ExtensionBundlePathSchema, ExtensionAssetNameSchema, ExtensionScriptAssetSchema, ExtensionScheduleAssetSchema, ExtensionWorkflowAssetSchema, ExtensionSkillAssetSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionStatusSchema, ExtensionSchema, ExtensionFileSchema, ExtensionVersionSchema, ExtensionRunSchema, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillTypeSchema, SkillScopeSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpServerTransportSchema, McpServerScopeSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, RequestCompositionPartKindSchema, RequestCompositionFidelitySchema, RequestCompositionPartInputSchema, RequestCompositionPartSchema, RequestCompositionToolLoadingSchema, RequestCompositionSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KV_NAME_REGEX, KvNamespaceSchema, KvKeySchema, KvEntrySchema;
|
|
2181
2208
|
var init_types5 = __esm(() => {
|
|
2182
2209
|
init_key();
|
|
2183
2210
|
init_bundle_path();
|
|
@@ -2415,6 +2442,15 @@ var init_types5 = __esm(() => {
|
|
|
2415
2442
|
createdAt: string2(),
|
|
2416
2443
|
lastUpdatedAt: string2()
|
|
2417
2444
|
});
|
|
2445
|
+
ModelGroupSchema = object2({
|
|
2446
|
+
id: string2(),
|
|
2447
|
+
name: string2(),
|
|
2448
|
+
description: string2().nullable(),
|
|
2449
|
+
seededFrom: string2().nullable(),
|
|
2450
|
+
members: array2(string2()),
|
|
2451
|
+
createdAt: string2(),
|
|
2452
|
+
lastUpdatedAt: string2()
|
|
2453
|
+
});
|
|
2418
2454
|
ProviderErrorClassSchema = _enum2([
|
|
2419
2455
|
"rate_limit",
|
|
2420
2456
|
"model_window",
|
|
@@ -2762,9 +2798,25 @@ var init_types5 = __esm(() => {
|
|
|
2762
2798
|
metadata: record2(string2(), unknown()).optional(),
|
|
2763
2799
|
dailyBudgetUsd: number2().nullable().optional(),
|
|
2764
2800
|
status: _enum2(["invited", "active", "suspended"]).default("active"),
|
|
2801
|
+
mergedIntoUserId: string2().nullable().optional(),
|
|
2765
2802
|
createdAt: exports_iso.datetime(),
|
|
2766
2803
|
lastUpdatedAt: exports_iso.datetime()
|
|
2767
2804
|
}).openapi("User");
|
|
2805
|
+
UserMergeJobStatusSchema = _enum2(["pending", "running", "done", "failed"]);
|
|
2806
|
+
UserMergeJobSchema = object2({
|
|
2807
|
+
id: string2(),
|
|
2808
|
+
sourceUserId: string2(),
|
|
2809
|
+
targetUserId: string2(),
|
|
2810
|
+
status: UserMergeJobStatusSchema,
|
|
2811
|
+
phase: string2().nullable(),
|
|
2812
|
+
progress: record2(string2(), number2()),
|
|
2813
|
+
error: string2().nullable(),
|
|
2814
|
+
attempts: number2(),
|
|
2815
|
+
nextAttemptAt: string2().nullable(),
|
|
2816
|
+
createdAt: string2(),
|
|
2817
|
+
startedAt: string2().nullable(),
|
|
2818
|
+
finishedAt: string2().nullable()
|
|
2819
|
+
}).openapi("UserMergeJob");
|
|
2768
2820
|
RbacRoleSchema = object2({
|
|
2769
2821
|
id: string2(),
|
|
2770
2822
|
name: string2(),
|
|
@@ -3114,6 +3166,7 @@ var init_types5 = __esm(() => {
|
|
|
3114
3166
|
"task_follow_up_gate_shadow",
|
|
3115
3167
|
"task_citation_check_refused",
|
|
3116
3168
|
"task_ui_spec_check_refused",
|
|
3169
|
+
"task_ui_script_action_failed",
|
|
3117
3170
|
"channel_message",
|
|
3118
3171
|
"service_registered",
|
|
3119
3172
|
"service_unregistered",
|
|
@@ -3160,6 +3213,7 @@ var init_types5 = __esm(() => {
|
|
|
3160
3213
|
"unpriced",
|
|
3161
3214
|
"estimated"
|
|
3162
3215
|
]);
|
|
3216
|
+
SessionCostKindSchema = _enum2(["harness", "system-one"]);
|
|
3163
3217
|
SessionCostModelBreakdownSchema = object2({
|
|
3164
3218
|
model: string2(),
|
|
3165
3219
|
inputTokens: number2().int().nonnegative(),
|
|
@@ -3190,6 +3244,7 @@ var init_types5 = __esm(() => {
|
|
|
3190
3244
|
model: string2(),
|
|
3191
3245
|
isError: boolean().default(false),
|
|
3192
3246
|
costSource: SessionCostSourceSchema.default("harness"),
|
|
3247
|
+
kind: SessionCostKindSchema.default("harness"),
|
|
3193
3248
|
harnessCostUsd: number2().nullable().optional(),
|
|
3194
3249
|
cacheWrite5mTokens: number2().int().nullable().optional(),
|
|
3195
3250
|
cacheWrite1hTokens: number2().int().nullable().optional(),
|
|
@@ -3453,6 +3508,7 @@ var init_types5 = __esm(() => {
|
|
|
3453
3508
|
return path.startsWith("/") && parts.length > 0 && !path.includes("\x00") && !parts.some((part) => part === "." || part === "..") && !protectedPaths.some((protectedPath) => protectedPath === normalized || protectedPath.startsWith(`${normalized}/`) || normalized.startsWith(`${protectedPath}/`));
|
|
3454
3509
|
}, "Cache mountPath must be absolute, without . or .., and must not cover worker homes, workspaces or credential directories")
|
|
3455
3510
|
}).strict();
|
|
3511
|
+
RuntimePoolWorkspaceSchema = object2({ sizeGb: number2().int().min(1).max(1024).optional() }).strict();
|
|
3456
3512
|
RuntimePoolCreateSchema = object2({
|
|
3457
3513
|
name: string2().min(1).max(200),
|
|
3458
3514
|
kind: RuntimeProviderKindSchema,
|
|
@@ -3467,6 +3523,7 @@ var init_types5 = __esm(() => {
|
|
|
3467
3523
|
env: record2(string2(), string2()).default({}),
|
|
3468
3524
|
resources: RuntimeResourcesSchema.nullable().default(null),
|
|
3469
3525
|
cache: RuntimePoolCacheSchema.nullable().default(null),
|
|
3526
|
+
workspace: RuntimePoolWorkspaceSchema.nullable().default(null),
|
|
3470
3527
|
ttlSec: number2().int().positive().nullable().default(null),
|
|
3471
3528
|
enabled: boolean().default(true)
|
|
3472
3529
|
}).strict();
|
|
@@ -3480,6 +3537,7 @@ var init_types5 = __esm(() => {
|
|
|
3480
3537
|
env: record2(string2(), string2()).optional(),
|
|
3481
3538
|
resources: RuntimeResourcesSchema.nullable().optional(),
|
|
3482
3539
|
cache: RuntimePoolCacheSchema.nullable().optional(),
|
|
3540
|
+
workspace: RuntimePoolWorkspaceSchema.nullable().optional(),
|
|
3483
3541
|
ttlSec: number2().int().positive().nullable().optional(),
|
|
3484
3542
|
enabled: boolean().optional()
|
|
3485
3543
|
});
|
|
@@ -3516,6 +3574,7 @@ var init_types5 = __esm(() => {
|
|
|
3516
3574
|
idleSince: string2().nullable().optional(),
|
|
3517
3575
|
leaseExpiresAt: string2().nullable().optional(),
|
|
3518
3576
|
taskId: string2().nullable().optional(),
|
|
3577
|
+
workspaceSlot: number2().int().nullable().optional(),
|
|
3519
3578
|
reportedSlots: number2().int(),
|
|
3520
3579
|
credentialReady: boolean().nullable().optional(),
|
|
3521
3580
|
metadata: record2(string2(), unknown()).nullable(),
|
|
@@ -3614,12 +3673,85 @@ var init_types5 = __esm(() => {
|
|
|
3614
3673
|
toleranceSeconds: number2().int().positive().default(300).describe("Maximum allowed clock skew, in seconds, for the webhook-timestamp header")
|
|
3615
3674
|
})
|
|
3616
3675
|
]);
|
|
3676
|
+
WEBHOOK_FILTER_HEADER_NAME = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
3677
|
+
WEBHOOK_FILTER_PRESETS = ["github", "gitlab", "standard-webhooks"];
|
|
3678
|
+
WebhookFilterPresetSchema = _enum2(WEBHOOK_FILTER_PRESETS);
|
|
3679
|
+
webhookFilterHeaderValueSchema = union3([
|
|
3680
|
+
string2().min(1).max(WEBHOOK_FILTER_MAX_STRING),
|
|
3681
|
+
array2(string2().min(1).max(WEBHOOK_FILTER_MAX_STRING)).min(1).max(WEBHOOK_FILTER_MAX_VALUES)
|
|
3682
|
+
]);
|
|
3683
|
+
webhookFilterBodyScalarSchema = union3([
|
|
3684
|
+
string2().max(WEBHOOK_FILTER_MAX_STRING),
|
|
3685
|
+
number2().finite(),
|
|
3686
|
+
boolean(),
|
|
3687
|
+
_null()
|
|
3688
|
+
]);
|
|
3689
|
+
webhookFilterBodyValueSchema = union3([
|
|
3690
|
+
webhookFilterBodyScalarSchema,
|
|
3691
|
+
array2(webhookFilterBodyScalarSchema).min(1).max(WEBHOOK_FILTER_MAX_VALUES)
|
|
3692
|
+
]);
|
|
3693
|
+
WebhookDeliveryFilterSchema = strictObject2({
|
|
3694
|
+
headers: record2(string2().min(1).max(WEBHOOK_FILTER_MAX_HEADER_NAME), webhookFilterHeaderValueSchema).optional().describe("Header name to one exact value, or a list of exact values. Names are matched case-insensitively. Every entry must match."),
|
|
3695
|
+
body: record2(string2().min(1).max(WEBHOOK_FILTER_MAX_PATH), webhookFilterBodyValueSchema).optional().describe("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.")
|
|
3696
|
+
}).superRefine((filter, ctx) => {
|
|
3697
|
+
const headerNames = filter.headers ? Object.keys(filter.headers) : [];
|
|
3698
|
+
const bodyPaths = filter.body ? Object.keys(filter.body) : [];
|
|
3699
|
+
if (headerNames.length + bodyPaths.length === 0) {
|
|
3700
|
+
ctx.addIssue({
|
|
3701
|
+
code: "custom",
|
|
3702
|
+
message: "filter needs at least one header or body field"
|
|
3703
|
+
});
|
|
3704
|
+
}
|
|
3705
|
+
if (headerNames.length > WEBHOOK_FILTER_MAX_FIELDS) {
|
|
3706
|
+
ctx.addIssue({
|
|
3707
|
+
code: "custom",
|
|
3708
|
+
message: `filter has more than ${WEBHOOK_FILTER_MAX_FIELDS} headers`,
|
|
3709
|
+
path: ["headers"]
|
|
3710
|
+
});
|
|
3711
|
+
}
|
|
3712
|
+
if (bodyPaths.length > WEBHOOK_FILTER_MAX_FIELDS) {
|
|
3713
|
+
ctx.addIssue({
|
|
3714
|
+
code: "custom",
|
|
3715
|
+
message: `filter has more than ${WEBHOOK_FILTER_MAX_FIELDS} body fields`,
|
|
3716
|
+
path: ["body"]
|
|
3717
|
+
});
|
|
3718
|
+
}
|
|
3719
|
+
const seenHeaders = new Set;
|
|
3720
|
+
for (const name of headerNames) {
|
|
3721
|
+
if (!WEBHOOK_FILTER_HEADER_NAME.test(name)) {
|
|
3722
|
+
ctx.addIssue({
|
|
3723
|
+
code: "custom",
|
|
3724
|
+
message: "header name must be an HTTP token",
|
|
3725
|
+
path: ["headers", name]
|
|
3726
|
+
});
|
|
3727
|
+
}
|
|
3728
|
+
const folded = name.toLowerCase();
|
|
3729
|
+
if (seenHeaders.has(folded)) {
|
|
3730
|
+
ctx.addIssue({
|
|
3731
|
+
code: "custom",
|
|
3732
|
+
message: "duplicate header name",
|
|
3733
|
+
path: ["headers", name]
|
|
3734
|
+
});
|
|
3735
|
+
}
|
|
3736
|
+
seenHeaders.add(folded);
|
|
3737
|
+
}
|
|
3738
|
+
for (const path of bodyPaths) {
|
|
3739
|
+
const issue = webhookBodyPathIssue(path);
|
|
3740
|
+
if (issue) {
|
|
3741
|
+
ctx.addIssue({ code: "custom", message: issue, path: ["body", path] });
|
|
3742
|
+
}
|
|
3743
|
+
}
|
|
3744
|
+
}).describe("AND of header and JSON body allowlists. A delivery that misses is acknowledged with 200 and creates no run.");
|
|
3617
3745
|
TriggerConfigSchema = discriminatedUnion("type", [
|
|
3618
3746
|
object2({
|
|
3619
3747
|
type: literal2("webhook"),
|
|
3620
3748
|
hmacSecret: string2().optional(),
|
|
3621
3749
|
hmacHeader: string2().default("X-Hub-Signature-256").describe("Legacy HMAC header for webhook verification. Prefer verification.header for new workflows."),
|
|
3622
|
-
verification: WebhookVerificationSchema.optional().describe("Optional webhook verification format. Omit to keep legacy HMAC-SHA256 behavior with fallback header scanning.")
|
|
3750
|
+
verification: WebhookVerificationSchema.optional().describe("Optional webhook verification format. Omit to keep legacy HMAC-SHA256 behavior with fallback header scanning."),
|
|
3751
|
+
events: array2(string2().min(1)).optional().describe("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."),
|
|
3752
|
+
eventHeader: string2().min(1).optional().describe("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."),
|
|
3753
|
+
preset: WebhookFilterPresetSchema.optional().describe("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."),
|
|
3754
|
+
filter: WebhookDeliveryFilterSchema.optional().describe("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.")
|
|
3623
3755
|
}),
|
|
3624
3756
|
object2({
|
|
3625
3757
|
type: literal2("schedule"),
|
|
@@ -4094,7 +4226,8 @@ var init_types5 = __esm(() => {
|
|
|
4094
4226
|
skills: array2(ExtensionSkillAssetSchema).readonly().optional()
|
|
4095
4227
|
}).strict(),
|
|
4096
4228
|
homepage: string2().url().optional(),
|
|
4097
|
-
author: string2().min(1).optional()
|
|
4229
|
+
author: string2().min(1).optional(),
|
|
4230
|
+
toolSources: array2(_enum2(["mcp", "native"])).min(1).readonly().optional().describe('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"]`.')
|
|
4098
4231
|
}).strict().superRefine((manifest, ctx) => {
|
|
4099
4232
|
const prefix = `${manifest.name}-`;
|
|
4100
4233
|
const scriptNames = new Set;
|
|
@@ -4315,6 +4448,42 @@ var init_types5 = __esm(() => {
|
|
|
4315
4448
|
contextFormula: ContextFormulaSchema.optional(),
|
|
4316
4449
|
createdAt: exports_iso.datetime()
|
|
4317
4450
|
}).openapi("ContextSnapshot");
|
|
4451
|
+
RequestCompositionPartKindSchema = _enum2([
|
|
4452
|
+
"system_section",
|
|
4453
|
+
"persona",
|
|
4454
|
+
"claude_md",
|
|
4455
|
+
"operator_prompt",
|
|
4456
|
+
"tool_schemas",
|
|
4457
|
+
"skills_listing",
|
|
4458
|
+
"task_prompt",
|
|
4459
|
+
"memories"
|
|
4460
|
+
]);
|
|
4461
|
+
RequestCompositionFidelitySchema = _enum2(["exact", "estimate"]);
|
|
4462
|
+
RequestCompositionPartInputSchema = object2({
|
|
4463
|
+
kind: RequestCompositionPartKindSchema,
|
|
4464
|
+
id: string2().min(1).max(200),
|
|
4465
|
+
label: string2().min(1).max(200),
|
|
4466
|
+
chars: number2().int().min(0),
|
|
4467
|
+
fidelity: RequestCompositionFidelitySchema.default("exact")
|
|
4468
|
+
});
|
|
4469
|
+
RequestCompositionPartSchema = RequestCompositionPartInputSchema.extend({
|
|
4470
|
+
estTokens: number2().int().min(0)
|
|
4471
|
+
}).openapi("RequestCompositionPart");
|
|
4472
|
+
RequestCompositionToolLoadingSchema = _enum2(["all", "core", "preloaded", "none"]);
|
|
4473
|
+
RequestCompositionSchema = object2({
|
|
4474
|
+
id: uuid(),
|
|
4475
|
+
taskId: string2(),
|
|
4476
|
+
agentId: string2(),
|
|
4477
|
+
sessionId: string2(),
|
|
4478
|
+
seq: number2().int().min(0),
|
|
4479
|
+
provider: string2(),
|
|
4480
|
+
model: string2().nullable(),
|
|
4481
|
+
source: _enum2(["worker", "harness-hook"]),
|
|
4482
|
+
parts: array2(RequestCompositionPartSchema),
|
|
4483
|
+
staticEstTokens: number2().int().min(0),
|
|
4484
|
+
tokenRatio: number2(),
|
|
4485
|
+
createdAt: exports_iso.datetime()
|
|
4486
|
+
}).openapi("RequestComposition");
|
|
4318
4487
|
BudgetScopeSchema = _enum2(["global", "agent", "user"]);
|
|
4319
4488
|
BudgetSchema = object2({
|
|
4320
4489
|
scope: BudgetScopeSchema,
|
|
@@ -4336,7 +4505,8 @@ var init_types5 = __esm(() => {
|
|
|
4336
4505
|
"amp",
|
|
4337
4506
|
"cursor",
|
|
4338
4507
|
"grok",
|
|
4339
|
-
"fx"
|
|
4508
|
+
"fx",
|
|
4509
|
+
"system-one"
|
|
4340
4510
|
]);
|
|
4341
4511
|
PricingTokenClassSchema = _enum2([
|
|
4342
4512
|
"input",
|
|
@@ -4398,4 +4568,4 @@ var init_types5 = __esm(() => {
|
|
|
4398
4568
|
}).openapi("KvEntry");
|
|
4399
4569
|
});
|
|
4400
4570
|
|
|
4401
|
-
export { ASSET_KEY_MAX_LENGTH, AssetKeyError, normalizeAssetKey, defaultAssetKey, keyPrefixRange, SESSION_RESOURCE_KINDS, SESSION_LEAF_KINDS, NO_GROUP_LEAF_KINDS, isGroupKey, isResourceGroupPrefix, RESOURCE_GROUPS_READ_ONLY, sessionResourceGroupOf, sessionGroupKey, parseAssetKey, isCanonicalAssetKey, canWriteAssetKey, init_key, isSafeBundlePath, init_bundle_path, PAGE_THEME_COLOR_TOKENS, PAGE_THEME_SHARED_TOKENS, PAGE_THEME_TOKENS, HIVE_PAGE_TOKENS, init_tokens2, ThemeImportError, importThemeTokens, init_import, $OpenAPIRegistry, $OpenApiGeneratorV31, init_dist9, init_zod_openapi, AssetKeySchema, AssetEntityTypeSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, DEFAULT_MODEL_TIER_MAP, parseModelTier, splitLegacyModelAlias, parseWorkerModelTierOverrides, resolveTaskModelSelection, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, isTerminalTaskStatus, OPEN_TASK_STATUSES, AgentTaskSourceSchema, RoutingReasonSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileCredentialsSchema, ModelProfileSchema, ProviderErrorClassSchema, FallbackHopSchema, ProfileCheckResultSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, SlackParticipantTrustSchema, TaskSlackParticipantsSchema, AgentTaskSchema, CreateTaskOptionsSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, ChecklistItemSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, AppIconSchema, AgentSlackIconSchema, AgentSchema, AgentLatestModelSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, VersionableFieldSchema, ChannelTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesInputSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeProviderKindSchema, DeliveryModeSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCacheSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageThemeTokensSchema, PageThemeTokensInputSchema, PageSchema, PageVersionSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionSchema, ExtensionVersionSchema, ExtensionRunSchema, checkExtensionInstallSource, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KvNamespaceSchema, KvKeySchema, KvEntrySchema, init_types5 };
|
|
4571
|
+
export { ASSET_KEY_MAX_LENGTH, AssetKeyError, normalizeAssetKey, defaultAssetKey, keyPrefixRange, SESSION_RESOURCE_KINDS, SESSION_LEAF_KINDS, NO_GROUP_LEAF_KINDS, isGroupKey, isResourceGroupPrefix, RESOURCE_GROUPS_READ_ONLY, sessionResourceGroupOf, sessionGroupKey, parseAssetKey, isCanonicalAssetKey, canWriteAssetKey, init_key, isSafeBundlePath, init_bundle_path, PAGE_THEME_COLOR_TOKENS, PAGE_THEME_SHARED_TOKENS, PAGE_THEME_TOKENS, HIVE_PAGE_TOKENS, init_tokens2, ThemeImportError, importThemeTokens, init_import, $OpenAPIRegistry, $OpenApiGeneratorV31, init_dist9, init_zod_openapi, AssetKeySchema, AssetEntityTypeSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, DEFAULT_MODEL_TIER_MAP, parseModelTier, splitLegacyModelAlias, parseWorkerModelTierOverrides, resolveTaskModelSelection, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, isTerminalTaskStatus, OPEN_TASK_STATUSES, AgentTaskSourceSchema, RoutingReasonSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileCredentialsSchema, ModelProfileSchema, ModelGroupSchema, ProviderErrorClassSchema, FallbackHopSchema, ProfileCheckResultSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, SlackParticipantTrustSchema, TaskSlackParticipantsSchema, AgentTaskSchema, CreateTaskOptionsSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, UserMergeJobStatusSchema, UserMergeJobSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, ChecklistItemSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, AppIconSchema, AgentSlackIconSchema, AgentSchema, AgentLatestModelSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, VersionableFieldSchema, ChannelTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesInputSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeProviderKindSchema, DeliveryModeSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCacheSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, WEBHOOK_FILTER_PRESETS, WebhookDeliveryFilterSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageThemeTokensSchema, PageThemeTokensInputSchema, PageSchema, PageVersionSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionSchema, ExtensionVersionSchema, ExtensionRunSchema, checkExtensionInstallSource, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, RequestCompositionPartInputSchema, RequestCompositionToolLoadingSchema, RequestCompositionSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KvNamespaceSchema, KvKeySchema, KvEntrySchema, init_types5 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Anthropic
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-p8zqbbt1.js";
|
|
4
4
|
import {
|
|
5
5
|
contextBoundNoteThreshold,
|
|
6
6
|
createContextBoundNote
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-9g12h1aq.js";
|
|
8
8
|
import {
|
|
9
9
|
checkToolLoop
|
|
10
10
|
} from "./cli-0726awxw.js";
|
|
11
11
|
import {
|
|
12
12
|
createSwarmEventHandler
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-qncx2r0s.js";
|
|
14
14
|
import {
|
|
15
15
|
readPkgVersion
|
|
16
16
|
} from "./cli-kr5tjjtz.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
computeContextUsedUnified,
|
|
21
21
|
clampContextPercent,
|
|
22
22
|
init_context_window
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-6c9ve77f.js";
|
|
24
24
|
import {
|
|
25
25
|
isGitHubEnterprise,
|
|
26
26
|
init_github_host
|
|
@@ -28,16 +28,16 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
selectCredential,
|
|
30
30
|
init_credentials2
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-ha4ek2nb.js";
|
|
32
32
|
import {
|
|
33
33
|
runtimeCatalogModel,
|
|
34
34
|
init_runtime_model_catalog
|
|
35
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-9yjhshah.js";
|
|
36
36
|
import {
|
|
37
37
|
init_src2,
|
|
38
38
|
scrubSecrets,
|
|
39
39
|
init_secret_scrubber
|
|
40
|
-
} from "./cli-
|
|
40
|
+
} from "./cli-7e8sxqv5.js";
|
|
41
41
|
|
|
42
42
|
// src/providers/claude-managed-adapter.ts
|
|
43
43
|
init_context_window();
|