@desplega.ai/agent-swarm 2.7.7 → 2.7.9
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-dn4gdsgr.js +16 -0
- package/dist/{actions-3tt153af.js → actions-g563mbn2.js} +19 -19
- package/dist/{amp-adapter-njpts0yr.js → amp-adapter-q61w05eb.js} +3 -3
- package/dist/{anthropic-messages-xey2skwx.js → anthropic-messages-jkva0zps.js} +68 -78
- package/dist/{app-nky4378f.js → app-a66ssc4k.js} +3 -3
- package/dist/{assistant-jnb669pa.js → assistant-p477rjwj.js} +22 -22
- package/dist/{azure-openai-responses-26t7j9ra.js → azure-openai-responses-wgtqkbr3.js} +5 -10
- package/dist/boot-args-schema-h4qj462e.js +89 -0
- package/dist/{boot-reembed-9mgvaztt.js → boot-reembed-n1ehfbsw.js} +1 -1
- package/dist/{boot-reembed-qs2djdej.js → boot-reembed-qw4mc0pt.js} +1 -1
- package/dist/{boot-scrub-sweep-yjpdj7s1.js → boot-scrub-sweep-9w9jp4sm.js} +4 -4
- package/dist/{boot-seeds-5cm6ambd.js → boot-seeds-qdaf3sdy.js} +5 -4
- package/dist/{boxd-nv507va8.js → boxd-qbkxy6ap.js} +1 -1
- package/dist/{claude-adapter-fn287zmm.js → claude-adapter-348p5hx9.js} +8 -8
- package/dist/{claude-managed-adapter-dvs2xw5n.js → claude-managed-adapter-h74d06yz.js} +4 -4
- package/dist/{claude-managed-setup-wtdz2mj2.js → claude-managed-setup-7787fxtp.js} +5 -5
- package/dist/{claude-sdk-session-x91kqyhm.js → claude-sdk-session-hbszbt8a.js} +7901 -7718
- package/dist/{cli-cb2a8pna.js → cli-09kmfkmq.js} +4 -6
- package/dist/{cli-m0da8j35.js → cli-0whpms1z.js} +15 -10
- package/dist/{cli-5zx699j9.js → cli-12xyjhws.js} +29 -12
- package/dist/{cli-snpj5zbj.js → cli-1z4qggfe.js} +9 -36
- package/dist/{cli-e0kmphd6.js → cli-21159vea.js} +35 -12
- package/dist/{cli-s0qnd4wv.js → cli-28fq781p.js} +1 -1
- package/dist/{cli-qh4d4tvk.js → cli-2a8py3sx.js} +6 -6
- package/dist/{cli-adeegh7d.js → cli-2ccpqyyf.js} +412 -116
- package/dist/{cli-1p89xny0.js → cli-2r0jcc3k.js} +1 -1
- package/dist/{cli-rvtm68yy.js → cli-2xv18ywz.js} +2 -2
- package/dist/{cli-5xaqj21p.js → cli-3kd08rej.js} +1 -1
- package/dist/{cli-1c6tzt8g.js → cli-3tqcamp6.js} +13 -13
- package/dist/{cli-ae7mrdf9.js → cli-3vjhs18n.js} +4 -6
- package/dist/{cli-vfym7wmz.js → cli-3xcwp3z8.js} +10 -12
- package/dist/{cli-az48n0nr.js → cli-4caa1x7d.js} +67 -64
- package/dist/{cli-5jnhv72d.js → cli-4t0fmf3z.js} +30 -7
- package/dist/{cli-5b456bpf.js → cli-530hkwdy.js} +7 -9
- package/dist/{cli-pz4rk021.js → cli-54vrpgm0.js} +1 -1
- package/dist/{cli-ddaanqkd.js → cli-587857ys.js} +7 -7
- package/dist/{cli-r9jqcehk.js → cli-5mpy301f.js} +38 -2
- package/dist/{cli-cppkf404.js → cli-605nn699.js} +80 -43
- package/dist/{cli-6pfd54vx.js → cli-650zv9q9.js} +10 -10
- package/dist/cli-6pzk82fd.js +778 -0
- package/dist/{cli-gz6q4eve.js → cli-715t1gx6.js} +9 -9
- package/dist/{cli-08bmz9z9.js → cli-9aezs55w.js} +10 -12
- package/dist/{cli-tgrv9cjx.js → cli-9r5gtwjr.js} +3 -3
- package/dist/{cli-pc6n7fre.js → cli-a0657jmf.js} +2 -2
- package/dist/{cli-pjctyea3.js → cli-agyaeef4.js} +3 -3
- package/dist/cli-b932gexn.js +5266 -0
- package/dist/{cli-e46hg0xw.js → cli-bc779n4v.js} +3 -3
- package/dist/{cli-jtjtabxe.js → cli-btc9cb4c.js} +78 -5
- package/dist/{cli-caj33vcq.js → cli-btf6fw39.js} +5 -5
- package/dist/{cli-q3tkegby.js → cli-cseh6f8w.js} +5 -5
- package/dist/{cli-n6bv12jn.js → cli-cvs2r2vq.js} +23 -14
- package/dist/{cli-tfyyvzx6.js → cli-cyn9v8zr.js} +17 -2
- package/dist/{cli-a22h291q.js → cli-d6521kb5.js} +1 -1
- package/dist/{cli-1b7btd38.js → cli-d84byzn8.js} +869 -5
- package/dist/{cli-wx3rhnm0.js → cli-eddnyg3t.js} +1 -1
- package/dist/{cli-nmzhp1b5.js → cli-ejkvvqbe.js} +55 -46
- package/dist/{cli-ftyxyspd.js → cli-eqtfgfr6.js} +1 -1
- package/dist/{cli-mthwvjre.js → cli-f2zenhja.js} +1 -1
- package/dist/{cli-ws19768n.js → cli-fayav105.js} +624 -227
- package/dist/{cli-ferkkrg9.js → cli-fjggej24.js} +2 -2
- package/dist/{cli-g7s47cc5.js → cli-fsgttth8.js} +123 -102
- package/dist/{cli-8305gbq0.js → cli-gce09r66.js} +5 -5
- package/dist/{cli-mkk9rnzz.js → cli-gxy8y1dt.js} +51 -4
- package/dist/{cli-fyt2g4wd.js → cli-hae9j8sv.js} +288 -76
- package/dist/{cli-agfm16v9.js → cli-hg42n3hx.js} +12 -12
- package/dist/{cli-qghe0h66.js → cli-hwprv9e4.js} +8 -10
- package/dist/{cli-yndmfxb3.js → cli-hxpyc9sn.js} +3 -3
- package/dist/{cli-72v799xn.js → cli-jfx48xrj.js} +10 -12
- package/dist/{cli-dhar9qay.js → cli-jrp1dt73.js} +2 -2
- package/dist/{cli-98rw5dt5.js → cli-jrzkw01m.js} +2 -2
- package/dist/{cli-ayayvfg4.js → cli-k70e3x9e.js} +24 -20
- package/dist/{cli-583frbyr.js → cli-kchjb7qy.js} +1 -1
- package/dist/{cli-cm5yqn35.js → cli-kf3pxxdg.js} +1 -0
- package/dist/{cli-fmjd0t1y.js → cli-m0cy2vyf.js} +2 -2
- package/dist/{cli-4zsenjhy.js → cli-m5akxq8q.js} +16 -3
- package/dist/{cli-73jzwksr.js → cli-m88rpzkh.js} +6 -3
- package/dist/{cli-95jzxcp3.js → cli-mnrkgg60.js} +4 -4
- package/dist/{cli-p82cnnjq.js → cli-ms5m5r1y.js} +1 -1
- package/dist/{cli-fy6x31ps.js → cli-n5yexkdg.js} +1 -0
- package/dist/{cli-wk5yrfwd.js → cli-neyag5p6.js} +191 -85
- package/dist/cli-p0m0p34z.js +9321 -0
- package/dist/{cli-yyj3j5m4.js → cli-p17970qv.js} +8 -10
- package/dist/{cli-6vcp76qk.js → cli-p74md7t8.js} +42 -23
- package/dist/{cli-rjcbm574.js → cli-pr0eze3x.js} +2 -2
- package/dist/{cli-35rsp8ye.js → cli-qkdmz8c8.js} +1 -1
- package/dist/{cli-rtt8g4v9.js → cli-qmd3mse0.js} +2 -2
- package/dist/{cli-je518txm.js → cli-qzt90yze.js} +20 -20
- package/dist/cli-rkc97c6a.js +39 -0
- package/dist/{cli-75gkpjvw.js → cli-rvhdmjvt.js} +8 -12
- package/dist/{cli-6g0hb4cp.js → cli-rwymrnaz.js} +18608 -9089
- package/dist/{cli-3fg0bdcv.js → cli-serm8zrx.js} +6 -6
- package/dist/{cli-g08zdaec.js → cli-sgs5k6yd.js} +1 -1
- package/dist/{cli-afkqkrtw.js → cli-sya22y84.js} +21 -9
- package/dist/{cli-318r69gq.js → cli-t73cas91.js} +440 -9
- package/dist/{cli-e5bzrn01.js → cli-tqq0hspb.js} +2 -2
- package/dist/{cli-pq73h5mz.js → cli-v3cf1ts9.js} +3 -3
- package/dist/{cli-bfv7vdg6.js → cli-varqt4d1.js} +28 -16
- package/dist/{cli-k899ehvh.js → cli-vxh6acp7.js} +6 -6
- package/dist/{cli-g83s9ewh.js → cli-xfjrc279.js} +1 -1
- package/dist/{cli-k1nje3v3.js → cli-xk879m3k.js} +129 -115
- package/dist/{cli-7cx2m6t2.js → cli-y5rbvxhc.js} +2 -2
- package/dist/{cli-8sckt74b.js → cli-y8nbefpb.js} +41 -19
- package/dist/{cli-81p9jd57.js → cli-yab6sh8p.js} +9 -3
- package/dist/{cli-srye3vdt.js → cli-ybjdc978.js} +1 -1
- package/dist/{cli-k5671be5.js → cli-zcfpsfzf.js} +5 -5
- package/dist/{cli-vf078p3e.js → cli-zfqg6fzn.js} +1 -1
- package/dist/{cli-k8196sh2.js → cli-zgv8gxgs.js} +9 -8
- package/dist/cli.js +34 -52
- package/dist/{cloudflare-workers-ai-system-one-ef2a980q.js → cloudflare-workers-ai-system-one-9y1zx3pt.js} +2 -2
- package/dist/{codex-adapter-cf2yxe9m.js → codex-adapter-ysq6bzha.js} +7 -7
- package/dist/{codex-hook-a0c6g6t6.js → codex-hook-fac6175r.js} +1 -1
- package/dist/{codex-login-y0pmff1c.js → codex-login-bcda78ge.js} +2 -2
- package/dist/{codex-session-runner-6vfzdgbd.js → codex-session-runner-qakzfx93.js} +8 -8
- package/dist/{commands-t3mfy7vn.js → commands-rs7hkv9r.js} +3 -3
- package/dist/{controller-q7xrbaz0.js → controller-r5x9bg6e.js} +4 -4
- package/dist/{controllers-connect-c6nm70kg.js → controllers-connect-498hrxvk.js} +24 -24
- package/dist/{cursor-adapter-ftd81ga8.js → cursor-adapter-d46qszer.js} +2 -2
- package/dist/{db-vemtpmcc.js → db-pm96nhdb.js} +6 -2
- package/dist/{db-dk572x25.js → db-s13dqhr6.js} +3 -3
- package/dist/{devin-adapter-r9phbnc9.js → devin-adapter-z46ep5ph.js} +1 -1
- package/dist/{dispatcher-kh7ecxh9.js → dispatcher-j3h81t7m.js} +18 -18
- package/dist/{docker-c1a3gqmf.js → docker-866qpzt9.js} +2 -2
- package/dist/{dsh-adapter-v8628r89.js → dsh-adapter-rw0d5rc4.js} +2 -2
- package/dist/{e2b-fr12yccx.js → e2b-jkwfhbcv.js} +2 -2
- package/dist/{e2b-x6ywzak3.js → e2b-s16txnpx.js} +2 -3
- package/dist/{easter-egg-3d-nenw4x63.js → easter-egg-3d-qtgfxgze.js} +1 -1
- package/dist/{embedding-space-0jepb239.js → embedding-space-xh8p4q4x.js} +6 -6
- package/dist/{embeddings-xxt49yxg.js → embeddings-wp745m91.js} +1 -1
- package/dist/{event-bus-g0ka3pbw.js → event-bus-e66gh7cc.js} +1 -1
- package/dist/{execute-1mhw6e4x.js → execute-2fzb9z74.js} +1 -1
- package/dist/{external-channel-55v12e60.js → external-channel-ys21h3sy.js} +2 -2
- package/dist/fx-adapter-vz0b9z3g.js +19 -0
- package/dist/{google-generative-ai-v94hr7h0.js → google-generative-ai-ytpgncx9.js} +7 -12
- package/dist/{google-vertex-g7vr6cf8.js → google-vertex-tqhze5j7.js} +7 -12
- package/dist/grok-adapter-spea7zkj.js +19 -0
- package/dist/handlers-crckt5dq.js +32 -0
- package/dist/{heartbeat-k42svnr0.js → heartbeat-8phn1kdq.js} +21 -21
- package/dist/{hook-6nphweh0.js → hook-amcj4s10.js} +16 -11
- package/dist/{hook-114m7hap.js → hook-bc6n49qn.js} +5 -5
- package/dist/{http-r8cc4wz7.js → http-7374brv5.js} +854 -332
- package/dist/index-4x08sjtk.js +30 -0
- package/dist/{index-6cxzwfen.js → index-5a9jtqde.js} +26 -26
- package/dist/index-8ybffts4.js +37 -0
- package/dist/{index-nh3wyqdt.js → index-c9y31ytf.js} +16 -16
- package/dist/{index-h39zbx67.js → index-hsad2t3r.js} +31 -31
- package/dist/index-nfy4kkg5.js +33 -0
- package/dist/{index-e3s8wmxy.js → index-p4hjwbvw.js} +1 -1
- package/dist/{index-k7fj52d3.js → index-q5cmtbz5.js} +6 -6
- package/dist/{index-fpk4bcd9.js → index-w4m9z29z.js} +1 -1
- package/dist/{keepalive-x060nt9p.js → keepalive-wy29kbrg.js} +4 -4
- package/dist/lead-zdqxsvjn.js +71 -0
- package/dist/{llama-cpp-classify-s5c47rwh.js → llama-cpp-classify-nfgswa1m.js} +2 -2
- package/dist/{maintenance-2xxfexhf.js → maintenance-h2ds9w6c.js} +1 -1
- package/dist/{mistral-conversations-3gjpdb4b.js → mistral-conversations-a45tx39a.js} +29 -51
- package/dist/{oauth-refresh-sweep-fckc4ar5.js → oauth-refresh-sweep-q7mtbyp3.js} +3 -3
- package/dist/{onboard-zc48j237.js → onboard-vw8r2fdw.js} +68 -16
- package/dist/{openai-codex-responses-8pbxq9h5.js → openai-codex-responses-k9gapdze.js} +7 -11
- package/dist/{openai-completions-rm00s912.js → openai-completions-xd579js7.js} +50 -58
- package/dist/{openai-decisions-8v957r2r.js → openai-decisions-q3hh60wr.js} +2 -2
- package/dist/{openai-responses-agxpf96k.js → openai-responses-4d5dx3c7.js} +5 -10
- package/dist/{opencode-adapter-r690h1cr.js → opencode-adapter-mtb0953j.js} +6 -6
- package/dist/{openrouter-images-3ecegv0d.js → openrouter-images-xr9gme9x.js} +4 -3
- package/dist/{otel-impl-r5xbh81q.js → otel-impl-j42czw3r.js} +2 -2
- package/dist/{pi-messages-pchtw4he.js → pi-messages-hjbv8v10.js} +28 -12
- package/dist/{pi-mono-adapter-c7v8sdec.js → pi-mono-adapter-zk8pg9jr.js} +30 -27
- package/dist/{pricing-refresh-3pmre11v.js → pricing-refresh-x7nhv23d.js} +3 -3
- package/dist/{rbac-roles-3vbshwsb.js → rbac-roles-9044425x.js} +16 -2
- package/dist/rbac-roles-bzvee6cf.js +37 -0
- package/dist/{render-v2-pxykkbab.js → render-v2-t7bn4skz.js} +3 -3
- package/dist/{resume-adda0bwy.js → resume-x94gemep.js} +7 -7
- package/dist/{runtime-fnbm7stk.js → runtime-breq6fmv.js} +1 -1
- package/dist/{session-access-2fvamrdc.js → session-access-q7dmqjvt.js} +7 -5
- package/dist/{session-source-backfill-08xvv0sm.js → session-source-backfill-440ysamr.js} +3 -3
- package/dist/{setup-1aqmvmh1.js → setup-07n4727s.js} +1 -1
- package/dist/{typesafe-system-one-0bmqcxfg.js → typesafe-system-one-f2en2knd.js} +2 -2
- package/dist/virtual-modules-z5h6mcyf.js +362 -0
- package/dist/{work-objects-9s0yrm5j.js → work-objects-pnq5y534.js} +21 -21
- package/dist/{worker-follow-up-3q78fqmr.js → worker-follow-up-7z1gfkr8.js} +18 -18
- package/dist/worker-y62rvvq3.js +71 -0
- package/dist/{x-vmmye1kb.js → x-2fyrt5pp.js} +2 -2
- package/openapi.json +1268 -276
- package/package.json +10 -10
- package/src/apps/catalog.generated.json +299 -82
- package/src/apps/page-validator.ts +115 -2
- package/src/be/connector-codes.ts +21 -6
- package/src/be/db/model-profiles.ts +1 -1
- package/src/be/db/session-tree.ts +9 -5
- package/src/be/db/session-visibility.ts +25 -9
- package/src/be/db/tasks/read.ts +33 -6
- package/src/be/db/tasks/write.ts +77 -7
- package/src/be/db-queries/tracker.ts +4 -2
- package/src/be/db.ts +53 -19
- package/src/be/improvements.ts +416 -0
- package/src/be/migrations/271_subscription_usage_model.sql +30 -0
- package/src/be/migrations/274_improvements.sql +27 -0
- package/src/be/migrations/275_task_dispatched_by.sql +8 -0
- package/src/be/model-validation.ts +19 -1
- package/src/be/rbac-roles.ts +144 -1
- package/src/be/runtime-pools/routing.ts +1 -1
- package/src/be/scripts/boot-args-schema.ts +95 -0
- package/src/be/scripts/extract-schema.ts +15 -10
- package/src/be/seed-scripts/catalog/boot-triage.inline.ts +1 -1
- package/src/be/seed-scripts/catalog/boot-triage.ts +1 -1
- package/src/be/seed-scripts/catalog/get-child-outputs.ts +1 -1
- package/src/be/seed-scripts/catalog/wait-for-task.ts +1 -1
- package/src/be/swarm-config-guard.ts +8 -0
- package/src/be/users.ts +64 -5
- package/src/cli.tsx +5 -25
- package/src/commands/claude-managed-setup.ts +1 -1
- package/src/commands/codex-login.ts +1 -1
- package/src/commands/e2b.ts +0 -1
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/onboard/compose-generator.ts +0 -1
- package/src/commands/onboard/dashboard-url.ts +31 -0
- package/src/commands/onboard/steps/generate.tsx +17 -1
- package/src/commands/onboard/steps/post-dashboard.tsx +9 -3
- package/src/commands/onboard.tsx +19 -6
- package/src/commands/runner.ts +143 -105
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/hooks/hook.ts +13 -5
- package/src/http/agents.ts +7 -1
- package/src/http/all-routes.ts +1 -0
- package/src/http/approval-requests.ts +32 -50
- package/src/http/auth.ts +5 -4
- package/src/http/codex-oauth-accounts.ts +31 -23
- package/src/http/codex-oauth-device.ts +3 -3
- package/src/http/codex-oauth-keep-warm.ts +1 -1
- package/src/http/improvements.ts +317 -0
- package/src/http/index.ts +10 -0
- package/src/http/mcp-oauth.ts +6 -0
- package/src/http/mcp-servers.ts +8 -0
- package/src/http/models-catalog.ts +1 -1
- package/src/http/operator-actor.ts +2 -1
- package/src/http/pages-public.ts +38 -1
- package/src/http/person-responder.ts +66 -0
- package/src/http/poll.ts +3 -4
- package/src/http/prompt-templates.ts +1 -1
- package/src/http/schedules.ts +4 -0
- package/src/http/script-runs.ts +6 -1
- package/src/http/session-access.ts +61 -6
- package/src/http/sessions.ts +67 -9
- package/src/http/tasks.ts +53 -9
- package/src/http/user-roles.ts +11 -2
- package/src/http/users.ts +224 -105
- package/src/http/utils.ts +2 -1
- package/src/http/workflows.ts +11 -7
- package/src/prompts/session-templates.ts +1 -0
- package/src/providers/acp-targets.ts +1 -1
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/codex-adapter.ts +17 -3
- package/src/providers/codex-models.ts +4 -3
- package/src/providers/codex-oauth/auth-json.ts +14 -18
- package/src/providers/codex-oauth/device.ts +49 -15
- package/src/providers/codex-oauth/flow.ts +2 -1
- package/src/providers/codex-oauth/storage.ts +2 -2
- package/src/providers/pi-mono-adapter.ts +8 -0
- package/src/providers/pricing-sources.md +16 -1
- package/src/providers/swarm-events-shared.ts +15 -2
- package/src/rbac/legacy-policy.ts +3 -0
- package/src/rbac/permissions.ts +15 -0
- package/src/scheduler/deferred-task-waits.ts +9 -4
- package/src/scripts-runtime/extract-args-schema.ts +3 -1
- package/src/scripts-runtime/swarm-sdk.ts +1 -1
- package/src/scripts-runtime/types/swarm-extension.d.ts +31 -28
- package/src/server-user.ts +1 -1
- package/src/server.ts +2 -0
- package/src/slack/ack.ts +68 -26
- package/src/slack/blocks.ts +1 -0
- package/src/slack/reaction-shortcode.ts +8 -2
- package/src/slack/render-v2.ts +72 -20
- package/src/slack/task-output.ts +4 -1
- package/src/slack/thread-buffer.ts +2 -2
- package/src/tasks/task-skip.ts +28 -0
- package/src/tasks/terminal-result-guard.ts +3 -2
- package/src/telemetry.ts +28 -1
- package/src/tests/agentmail-inbox-mapping.test.ts +73 -0
- package/src/tests/api-drain-worker-e2e.test.ts +69 -2
- package/src/tests/approval-requests.test.ts +58 -0
- package/src/tests/apps-catalog-drift.test.ts +35 -0
- package/src/tests/apps-catalog-table.test.ts +203 -0
- package/src/tests/apps-element-assembly.test.ts +28 -0
- package/src/tests/apps-smart-links.test.ts +151 -0
- package/src/tests/apps-table-filters-migration.test.ts +96 -0
- package/src/tests/apps-table-selection-migration.test.ts +95 -0
- package/src/tests/chatgpt-subscription-session-bench.test.ts +2 -2
- package/src/tests/claude-managed-setup.test.ts +36 -0
- package/src/tests/claude-worker-parity.test.ts +2 -2
- package/src/tests/codex-adapter.test.ts +32 -2
- package/src/tests/codex-login.test.ts +2 -2
- package/src/tests/codex-oauth-accounts.test.ts +48 -12
- package/src/tests/codex-oauth-credential-info.test.ts +77 -1
- package/src/tests/codex-oauth-device.test.ts +61 -1
- package/src/tests/codex-oauth-keep-warm.test.ts +2 -2
- package/src/tests/codex-oauth.test.ts +25 -4
- package/src/tests/codex-pool.test.ts +2 -2
- package/src/tests/codex-swarm-events.test.ts +43 -1
- package/src/tests/context-window.test.ts +14 -0
- package/src/tests/db-queries-tracker.test.ts +2 -1
- package/src/tests/db-task-read-contract.test.ts +3 -0
- package/src/tests/db-task-write-contract.test.ts +3 -0
- package/src/tests/deferred-task-wake.test.ts +7 -2
- package/src/tests/deploy-one-box.test.ts +39 -1
- package/src/tests/docs-index-footprint.test.js +3 -3
- package/src/tests/e2e-coverage-contract.test.ts +235 -0
- package/src/tests/empty-output-schema.test.ts +160 -0
- package/src/tests/env-flag.test.ts +1 -0
- package/src/tests/explicit-model-validation.test.ts +14 -0
- package/src/tests/fixtures/onboard/content.compose.yml.txt +0 -4
- package/src/tests/fixtures/onboard/dev.compose.yml.txt +0 -3
- package/src/tests/fixtures/onboard/full-all.compose.yml.txt +0 -11
- package/src/tests/fixtures/onboard/full.compose.yml.txt +0 -11
- package/src/tests/fixtures/onboard/research.compose.yml.txt +0 -3
- package/src/tests/fixtures/onboard/solo.compose.yml.txt +0 -1
- package/src/tests/fixtures/prs-app-definition.json.txt +784 -0
- package/src/tests/fixtures/prs-filters-migration.patch.json.txt +318 -0
- package/src/tests/fixtures/prs-selection-migration.patch.json.txt +373 -0
- package/src/tests/fixtures/runner-identity-refresh.ts +3 -0
- package/src/tests/fixtures/runner-legacy-resume-prompt.ts +3 -0
- package/src/tests/fixtures/runner-task-start-reads.ts +140 -0
- package/src/tests/hook-ping-me-order.test.ts +85 -0
- package/src/tests/http-api-integration.test.ts +2 -2
- package/src/tests/http-users.test.ts +63 -0
- package/src/tests/improvements-payload.test.ts +200 -0
- package/src/tests/improvements-route.test.ts +419 -0
- package/src/tests/install-sh-setup-url.test.ts +190 -0
- package/src/tests/mcp-input-caps.test.ts +4 -3
- package/src/tests/merge-gate-detect-changes.test.ts +22 -0
- package/src/tests/onboard-dashboard-output.test.ts +109 -0
- package/src/tests/onboard-dashboard-url.test.ts +83 -0
- package/src/tests/operator-granted-credentials.test.ts +561 -0
- package/src/tests/operator-granted-role-wire.test.ts +222 -0
- package/src/tests/pages-authed-mode.test.ts +13 -2
- package/src/tests/pi-mono-adapter.test.ts +39 -4
- package/src/tests/rbac-engine.test.ts +3 -0
- package/src/tests/runner-context-usage.test.ts +118 -0
- package/src/tests/runner-legacy-options.test.ts +55 -0
- package/src/tests/runner-slot-reconcile.test.ts +38 -0
- package/src/tests/runner-task-start-reads.test.ts +58 -0
- package/src/tests/script-connections.test.ts +2 -0
- package/src/tests/script-executor-quickjs.test.ts +2 -0
- package/src/tests/script-runs-http.test.ts +57 -0
- package/src/tests/scripts-boot-args-schema.test.ts +181 -0
- package/src/tests/scripts-runtime.test.ts +24 -0
- package/src/tests/sdk-store-progress-skipped.test.ts +155 -0
- package/src/tests/send-task-dispatched-by.test.ts +129 -0
- package/src/tests/session-costs-model-key-normalize.test.ts +59 -0
- package/src/tests/session-dispatched-tasks.test.ts +115 -0
- package/src/tests/session-sharing.test.ts +402 -3
- package/src/tests/slack-file-tools-attachments.test.ts +95 -3
- package/src/tests/slack-reaction-config.test.ts +40 -0
- package/src/tests/slack-render-v2.test.ts +120 -0
- package/src/tests/slack-skip-reaction.test.ts +203 -0
- package/src/tests/store-progress-skipped.test.ts +159 -0
- package/src/tests/submit-improvement-tool.test.ts +82 -0
- package/src/tests/subscription-usage-migration.test.ts +57 -0
- package/src/tests/swarm-config-reserved-keys.test.ts +3 -0
- package/src/tests/telemetry-endpoint-override.test.ts +27 -0
- package/src/tests/tool-annotations.test.ts +1 -1
- package/src/tests/trigger-claiming.test.ts +2 -0
- package/src/tests/workflow-system-one-extraction.test.ts +29 -0
- package/src/tools/create-channel.ts +1 -1
- package/src/tools/defer-task.ts +1 -1
- package/src/tools/manage-user.ts +88 -58
- package/src/tools/register-agentmail-inbox.ts +5 -0
- package/src/tools/repos/update-repo.ts +1 -1
- package/src/tools/request-human-input.ts +1 -1
- package/src/tools/send-task.ts +4 -1
- package/src/tools/slack-read.ts +61 -33
- package/src/tools/store-progress.ts +39 -8
- package/src/tools/submit-improvement.ts +68 -0
- package/src/tools/tool-config.ts +3 -0
- package/src/tools/tracker/tracker-unlink.ts +2 -1
- package/src/tools/workflows/retry-workflow-run.ts +3 -0
- package/src/types.ts +16 -2
- package/src/utils/context-window.ts +6 -1
- package/src/utils/output-schema.ts +23 -0
- package/src/utils/request-auth-context.ts +6 -1
- package/src/workflows/executors/system-one-providers.ts +25 -6
- package/src/workflows/recovery.ts +8 -4
- package/src/workflows/resume.ts +19 -0
- package/templates/skills/apps/SKILL.md +22 -11
- package/templates/skills/apps/content.md +22 -11
- package/templates/skills/swarm-scripts/SKILL.md +1 -1
- package/templates/skills/swarm-scripts/content.md +1 -1
- package/templates/skills/work-on-task/SKILL.md +1 -1
- package/templates/skills/work-on-task/content.md +1 -1
- package/dist/acp-adapter-7b4vk3h5.js +0 -16
- package/dist/cli-5c4hjzne.js +0 -873
- package/dist/cli-excnnjg2.js +0 -20222
- package/dist/cli-pc5znp64.js +0 -364
- package/dist/cli-vz22fyqv.js +0 -428
- package/dist/fx-adapter-bs8wqrk5.js +0 -19
- package/dist/grok-adapter-gpjqmkcq.js +0 -19
- package/dist/handlers-zxmp1ta4.js +0 -32
- package/dist/index-a8phxqnk.js +0 -37
- package/dist/index-k6h00t4c.js +0 -30
- package/dist/index-xrz7te8h.js +0 -33
- package/dist/lead-956sd2yc.js +0 -71
- package/dist/rbac-roles-910mmkgz.js +0 -26
- package/dist/virtual-modules-d2pjk9j1.js +0 -59
- package/dist/worker-y15hy08h.js +0 -71
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
fxSessionExists,
|
|
5
5
|
fxTargetProfile,
|
|
6
6
|
ACPAdapter2
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-hae9j8sv.js";
|
|
8
8
|
import {
|
|
9
9
|
getKnownContextWindowSize,
|
|
10
10
|
init_context_window
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-m88rpzkh.js";
|
|
12
12
|
import {
|
|
13
13
|
getOpenRouterBaseUrl,
|
|
14
14
|
init_openrouter_base_url
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
registerVolatileSecret,
|
|
18
18
|
init_secret_scrubber
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-d84byzn8.js";
|
|
20
20
|
|
|
21
21
|
// src/providers/fx-adapter.ts
|
|
22
22
|
init_context_window();
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
+
isInTransaction,
|
|
3
|
+
init_db_client,
|
|
2
4
|
getDb2,
|
|
3
5
|
getDbClient2,
|
|
4
6
|
invalidateTelemetryUserRole,
|
|
5
7
|
init_telemetry_identity,
|
|
6
8
|
init_db4
|
|
7
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-neyag5p6.js";
|
|
8
10
|
import {
|
|
9
11
|
PermissionVerbSchema,
|
|
10
12
|
init_rbac
|
|
11
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-cyn9v8zr.js";
|
|
14
|
+
import {
|
|
15
|
+
revokeAllUserCredentials,
|
|
16
|
+
isLiveUserToken,
|
|
17
|
+
init_users
|
|
18
|
+
} from "./cli-4t0fmf3z.js";
|
|
12
19
|
import {
|
|
13
20
|
init_env_flag
|
|
14
21
|
} from "./cli-cebvbc9t.js";
|
|
@@ -57,6 +64,36 @@ function parseDatabaseGrantVerb(roleId, verb) {
|
|
|
57
64
|
}
|
|
58
65
|
return null;
|
|
59
66
|
}
|
|
67
|
+
async function userHoldsExplicitVerb2(userId, verb) {
|
|
68
|
+
const row = await getDbClient2().get(`SELECT 1 AS found
|
|
69
|
+
FROM principal_roles pr
|
|
70
|
+
JOIN role_permissions rp ON rp.roleId = pr.roleId
|
|
71
|
+
WHERE pr.principalType = 'user' AND pr.principalId = ? AND rp.verb = ?
|
|
72
|
+
LIMIT 1`, [userId, verb]);
|
|
73
|
+
return row != null;
|
|
74
|
+
}
|
|
75
|
+
async function userHoldsOperatorGrantedRole2(userId) {
|
|
76
|
+
const row = await getDbClient2().get(`SELECT 1 AS found
|
|
77
|
+
FROM principal_roles pr
|
|
78
|
+
JOIN role_permissions rp ON rp.roleId = pr.roleId
|
|
79
|
+
WHERE pr.principalType = 'user' AND pr.principalId = ?
|
|
80
|
+
AND rp.verb IN (${OPERATOR_GRANTED_VERBS.map(() => "?").join(", ")})
|
|
81
|
+
LIMIT 1`, [userId, ...OPERATOR_GRANTED_VERBS]);
|
|
82
|
+
return row != null;
|
|
83
|
+
}
|
|
84
|
+
async function assertMayActOnOperatorGrantedTarget2(caller, targetUserId) {
|
|
85
|
+
if (caller.kind === "operator" || caller.kind === "system")
|
|
86
|
+
return;
|
|
87
|
+
if (!isInTransaction()) {
|
|
88
|
+
throw new Error("assertMayActOnOperatorGrantedTarget must run inside the write transaction");
|
|
89
|
+
}
|
|
90
|
+
if (!await userHoldsOperatorGrantedRole2(targetUserId))
|
|
91
|
+
return;
|
|
92
|
+
const self = caller.kind === "user" && caller.id === targetUserId;
|
|
93
|
+
if (self && caller.tokenId && await isLiveUserToken(caller.tokenId, caller.id))
|
|
94
|
+
return;
|
|
95
|
+
throw new OperatorGrantedTargetError2;
|
|
96
|
+
}
|
|
60
97
|
async function getUserGrant2(userId) {
|
|
61
98
|
const rows = await getDbClient2().query(`SELECT r.id AS roleId, r.grantsAll, rp.verb
|
|
62
99
|
FROM principal_roles pr
|
|
@@ -133,6 +170,16 @@ async function setUserRoles2(userId, roleNames, actorUserId) {
|
|
|
133
170
|
FROM principal_roles pr JOIN roles r ON r.id = pr.roleId
|
|
134
171
|
WHERE pr.principalType = 'user' AND pr.principalId = ?
|
|
135
172
|
ORDER BY r.name`, [userId]);
|
|
173
|
+
const heldIds = new Set(current.map((r) => r.id));
|
|
174
|
+
const added = wanted.filter((r) => !heldIds.has(r.id));
|
|
175
|
+
const gated = added.length === 0 ? [] : await tx.query(`SELECT DISTINCT r.name
|
|
176
|
+
FROM roles r JOIN role_permissions rp ON rp.roleId = r.id
|
|
177
|
+
WHERE r.id IN (${added.map(() => "?").join(", ")})
|
|
178
|
+
AND rp.verb IN (${OPERATOR_GRANTED_VERBS.map(() => "?").join(", ")})
|
|
179
|
+
ORDER BY r.name`, [...added.map((r) => r.id), ...OPERATOR_GRANTED_VERBS]);
|
|
180
|
+
if (actorUserId !== null && gated.length > 0) {
|
|
181
|
+
throw new OperatorGrantedRoleError2(gated.map((r) => r.name));
|
|
182
|
+
}
|
|
136
183
|
const wantsAll = wanted.some((r) => r.grantsAll === 1);
|
|
137
184
|
if (current.some((r) => r.grantsAll === 1) && !wantsAll) {
|
|
138
185
|
const user = await tx.get("SELECT status FROM users WHERE id = ?", [
|
|
@@ -159,6 +206,9 @@ async function setUserRoles2(userId, roleNames, actorUserId) {
|
|
|
159
206
|
await tx.run(`INSERT OR IGNORE INTO principal_roles (principalType, principalId, roleId, created_by)
|
|
160
207
|
VALUES ('user', ?, ?, ?)`, [userId, row.id, actorUserId]);
|
|
161
208
|
}
|
|
209
|
+
if (gated.length > 0) {
|
|
210
|
+
await revokeAllUserCredentials(userId, { kind: "system", id: "operator-granted-role" });
|
|
211
|
+
}
|
|
162
212
|
getDbClient2().afterCommit(() => invalidateTelemetryUserRole(userId));
|
|
163
213
|
return { before: current.map((r) => r.name), after: wanted.map((r) => r.name).sort() };
|
|
164
214
|
});
|
|
@@ -239,7 +289,7 @@ function ensureRbacSeedsSynced2(opts) {
|
|
|
239
289
|
}
|
|
240
290
|
return stats;
|
|
241
291
|
}
|
|
242
|
-
var DEFAULT_ROLE_ID = "rbac-role-admin", BUILTIN_ROLES, PRIMARY_ROLE_NAMES2, CREATE_USER_DEFAULT_ROLE_TRIGGER_SQL = `
|
|
292
|
+
var DEFAULT_ROLE_ID = "rbac-role-admin", BUILTIN_ROLES, OPERATOR_GRANTED_VERBS, PRIMARY_ROLE_NAMES2, CREATE_USER_DEFAULT_ROLE_TRIGGER_SQL = `
|
|
243
293
|
CREATE TRIGGER IF NOT EXISTS trg_users_default_role
|
|
244
294
|
AFTER INSERT ON users
|
|
245
295
|
BEGIN
|
|
@@ -247,12 +297,14 @@ BEGIN
|
|
|
247
297
|
SELECT 'user', NEW.id, 'rbac-role-admin'
|
|
248
298
|
WHERE EXISTS (SELECT 1 FROM roles WHERE id = 'rbac-role-admin');
|
|
249
299
|
END;
|
|
250
|
-
`, loggedInvalidGrantVerbs, InvalidRoleSetError2, LastAdminError2;
|
|
300
|
+
`, loggedInvalidGrantVerbs, OperatorGrantedTargetError2, InvalidRoleSetError2, OperatorGrantedRoleError2, LastAdminError2;
|
|
251
301
|
var init_rbac_roles = __esm(() => {
|
|
252
302
|
init_rbac();
|
|
253
303
|
init_telemetry_identity();
|
|
254
304
|
init_env_flag();
|
|
255
305
|
init_db4();
|
|
306
|
+
init_db_client();
|
|
307
|
+
init_users();
|
|
256
308
|
BUILTIN_ROLES = [
|
|
257
309
|
{
|
|
258
310
|
id: DEFAULT_ROLE_ID,
|
|
@@ -289,12 +341,33 @@ var init_rbac_roles = __esm(() => {
|
|
|
289
341
|
isBuiltin: true,
|
|
290
342
|
grantsAll: false,
|
|
291
343
|
verbs: ["favorite.write.own", "session.presence", "comb.presence", "fs.join.own"]
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
id: "rbac-role-auditor",
|
|
347
|
+
name: "auditor",
|
|
348
|
+
description: "Extra role: opt in to every user's tasks and sessions, read-only.",
|
|
349
|
+
isBuiltin: true,
|
|
350
|
+
grantsAll: false,
|
|
351
|
+
verbs: ["session.read.all"]
|
|
292
352
|
}
|
|
293
353
|
];
|
|
354
|
+
OPERATOR_GRANTED_VERBS = ["session.read.all"];
|
|
294
355
|
PRIMARY_ROLE_NAMES2 = ["admin", "requester", "viewer"];
|
|
295
356
|
loggedInvalidGrantVerbs = new Set;
|
|
357
|
+
OperatorGrantedTargetError2 = class OperatorGrantedTargetError2 extends Error {
|
|
358
|
+
constructor() {
|
|
359
|
+
super("This user holds an operator-granted role (auditor); this change requires the operator key");
|
|
360
|
+
}
|
|
361
|
+
};
|
|
296
362
|
InvalidRoleSetError2 = class InvalidRoleSetError2 extends Error {
|
|
297
363
|
};
|
|
364
|
+
OperatorGrantedRoleError2 = class OperatorGrantedRoleError2 extends Error {
|
|
365
|
+
roles;
|
|
366
|
+
constructor(roles) {
|
|
367
|
+
super(`Adding ${roles.join(", ")} requires the operator key`);
|
|
368
|
+
this.roles = roles;
|
|
369
|
+
}
|
|
370
|
+
};
|
|
298
371
|
LastAdminError2 = class LastAdminError2 extends Error {
|
|
299
372
|
constructor() {
|
|
300
373
|
super("last_admin");
|
|
@@ -302,4 +375,4 @@ var init_rbac_roles = __esm(() => {
|
|
|
302
375
|
};
|
|
303
376
|
});
|
|
304
377
|
|
|
305
|
-
export { PRIMARY_ROLE_NAMES2, getUserGrant2, listUserRoles2, listRbacRoles2, InvalidRoleSetError2, LastAdminError2, assertNotLastAdmin2, setUserRoles2, ensureRbacSeedsSynced2, init_rbac_roles };
|
|
378
|
+
export { PRIMARY_ROLE_NAMES2, userHoldsExplicitVerb2, userHoldsOperatorGrantedRole2, OperatorGrantedTargetError2, assertMayActOnOperatorGrantedTarget2, getUserGrant2, listUserRoles2, listRbacRoles2, InvalidRoleSetError2, OperatorGrantedRoleError2, LastAdminError2, assertNotLastAdmin2, setUserRoles2, ensureRbacSeedsSynced2, init_rbac_roles };
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
generateRandomCodeVerifier,
|
|
3
3
|
generateRandomState,
|
|
4
4
|
calculatePKCECodeChallenge,
|
|
5
|
-
|
|
6
|
-
} from "./cli-
|
|
5
|
+
init_build
|
|
6
|
+
} from "./cli-pr0eze3x.js";
|
|
7
7
|
import {
|
|
8
8
|
assertUrlSafe,
|
|
9
9
|
init_egress_guard
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-neyag5p6.js";
|
|
11
11
|
import {
|
|
12
12
|
isEnvFlagEnabled,
|
|
13
13
|
init_env_flag
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
scrubSecrets,
|
|
21
21
|
registerVolatileSecret,
|
|
22
22
|
init_secret_scrubber
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-d84byzn8.js";
|
|
24
24
|
import {
|
|
25
25
|
__esm
|
|
26
26
|
} from "./cli-242037k3.js";
|
|
@@ -298,7 +298,7 @@ function computeExpiresAt(expiresInSeconds) {
|
|
|
298
298
|
}
|
|
299
299
|
var DEFAULT_FETCH_TIMEOUT_MS = 15000, KNOWN_TOKEN_ENDPOINT_AUTH_METHODS, DEFAULT_TOKEN_ENDPOINT_AUTH_METHOD = "client_secret_basic", UnsupportedTokenEndpointAuthMethodError;
|
|
300
300
|
var init_mcp_wrapper = __esm(() => {
|
|
301
|
-
|
|
301
|
+
init_build();
|
|
302
302
|
init_egress_guard();
|
|
303
303
|
init_env_flag();
|
|
304
304
|
init_node_env();
|
|
@@ -9,18 +9,18 @@ import {
|
|
|
9
9
|
acquireOAuthRefreshLock,
|
|
10
10
|
releaseOAuthRefreshLock,
|
|
11
11
|
init_oauth
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-neyag5p6.js";
|
|
13
13
|
import {
|
|
14
14
|
generateRandomCodeVerifier,
|
|
15
15
|
generateRandomState,
|
|
16
16
|
calculatePKCECodeChallenge,
|
|
17
|
-
|
|
18
|
-
} from "./cli-
|
|
17
|
+
init_build
|
|
18
|
+
} from "./cli-pr0eze3x.js";
|
|
19
19
|
import {
|
|
20
20
|
scrubSecrets,
|
|
21
21
|
registerVolatileSecret,
|
|
22
22
|
init_secret_scrubber
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-d84byzn8.js";
|
|
24
24
|
import {
|
|
25
25
|
__esm
|
|
26
26
|
} from "./cli-242037k3.js";
|
|
@@ -127,7 +127,7 @@ async function performTokenRefreshRequest(config, refreshToken) {
|
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
var init_wrapper = __esm(() => {
|
|
130
|
-
|
|
130
|
+
init_build();
|
|
131
131
|
init_oauth();
|
|
132
132
|
});
|
|
133
133
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_zod,
|
|
3
3
|
init_zod
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-zcfpsfzf.js";
|
|
5
5
|
import {
|
|
6
6
|
string2,
|
|
7
7
|
uuid,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
array2,
|
|
14
14
|
object2,
|
|
15
15
|
strictObject2,
|
|
16
|
-
|
|
16
|
+
union3,
|
|
17
17
|
discriminatedUnion,
|
|
18
18
|
record2,
|
|
19
19
|
_enum2,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
lazy,
|
|
22
22
|
ZodIssueCode,
|
|
23
23
|
exports_iso
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-hg42n3hx.js";
|
|
25
25
|
import {
|
|
26
26
|
MAX_PROFILE_FILE_LENGTH,
|
|
27
27
|
init_constants3
|
|
@@ -1977,7 +1977,7 @@ class OpenApiGeneratorV31 {
|
|
|
1977
1977
|
}
|
|
1978
1978
|
}
|
|
1979
1979
|
var ZodTypeKeys, objectEquals, zodToOpenAPIRegistry, ConflictError, MissingParameterDataError, UnknownZodTypeError, $OpenAPIRegistry, $OpenApiGeneratorV31, $extendZodWithOpenApi;
|
|
1980
|
-
var
|
|
1980
|
+
var init_dist7 = __esm(() => {
|
|
1981
1981
|
ZodTypeKeys = {
|
|
1982
1982
|
ZodAny: "any",
|
|
1983
1983
|
ZodArray: "array",
|
|
@@ -2037,7 +2037,7 @@ var init_dist6 = __esm(() => {
|
|
|
2037
2037
|
|
|
2038
2038
|
// src/utils/zod-openapi.ts
|
|
2039
2039
|
var init_zod_openapi = __esm(() => {
|
|
2040
|
-
|
|
2040
|
+
init_dist7();
|
|
2041
2041
|
init_zod();
|
|
2042
2042
|
$extendZodWithOpenApi(exports_zod);
|
|
2043
2043
|
});
|
|
@@ -2288,9 +2288,16 @@ var init_types4 = __esm(() => {
|
|
|
2288
2288
|
"completed",
|
|
2289
2289
|
"failed",
|
|
2290
2290
|
"cancelled",
|
|
2291
|
-
"superseded"
|
|
2291
|
+
"superseded",
|
|
2292
|
+
"skipped"
|
|
2292
2293
|
]);
|
|
2293
|
-
TERMINAL_TASK_STATUSES = [
|
|
2294
|
+
TERMINAL_TASK_STATUSES = [
|
|
2295
|
+
"completed",
|
|
2296
|
+
"failed",
|
|
2297
|
+
"cancelled",
|
|
2298
|
+
"superseded",
|
|
2299
|
+
"skipped"
|
|
2300
|
+
];
|
|
2294
2301
|
OPEN_TASK_STATUSES = AgentTaskStatusSchema.options.filter((status) => !isTerminalTaskStatus(status));
|
|
2295
2302
|
InboxMessageStatusSchema = _enum2([
|
|
2296
2303
|
"unread",
|
|
@@ -2491,6 +2498,7 @@ var init_types4 = __esm(() => {
|
|
|
2491
2498
|
mentionChannelId: string2().optional(),
|
|
2492
2499
|
dir: string2().min(1).optional(),
|
|
2493
2500
|
parentTaskId: string2().optional(),
|
|
2501
|
+
dispatchedByTaskId: string2().optional(),
|
|
2494
2502
|
claudeSessionId: string2().optional(),
|
|
2495
2503
|
model: string2().optional(),
|
|
2496
2504
|
modelTier: ModelTierSchema.optional(),
|
|
@@ -2568,6 +2576,7 @@ var init_types4 = __esm(() => {
|
|
|
2568
2576
|
workflowRunId: string2().optional(),
|
|
2569
2577
|
workflowRunStepId: string2().optional(),
|
|
2570
2578
|
sourceTaskId: string2().optional(),
|
|
2579
|
+
dispatchedByTaskId: string2().optional(),
|
|
2571
2580
|
outputSchema: record2(string2(), unknown()).optional(),
|
|
2572
2581
|
inheritParentOutputSchema: boolean().optional(),
|
|
2573
2582
|
inheritParentRequester: boolean().optional(),
|
|
@@ -2841,7 +2850,7 @@ var init_types4 = __esm(() => {
|
|
|
2841
2850
|
description: string2().nullable().optional(),
|
|
2842
2851
|
category: string2().nullable().optional(),
|
|
2843
2852
|
currentValue: string2(),
|
|
2844
|
-
options: array2(
|
|
2853
|
+
options: array2(union3([AcpSessionConfigSelectValueSchema, AcpSessionConfigSelectGroupSchema]))
|
|
2845
2854
|
}),
|
|
2846
2855
|
object2({
|
|
2847
2856
|
type: literal2("boolean"),
|
|
@@ -3198,7 +3207,7 @@ var init_types4 = __esm(() => {
|
|
|
3198
3207
|
clonePath: string2().min(1),
|
|
3199
3208
|
defaultBranch: string2().default("main"),
|
|
3200
3209
|
autoClone: boolean().default(true),
|
|
3201
|
-
hooks: RepoHooksSchema.
|
|
3210
|
+
hooks: RepoHooksSchema.describe("Worker hook installation. Enabled by default: a repo created without `hooks` stores { enabled: true }. Disable with { enabled: false }. A repo with no stored hooks config reads as disabled."),
|
|
3202
3211
|
guidelines: RepoGuidelinesSchema.nullable().optional(),
|
|
3203
3212
|
createdAt: string2(),
|
|
3204
3213
|
lastUpdatedAt: string2()
|
|
@@ -3405,7 +3414,7 @@ var init_types4 = __esm(() => {
|
|
|
3405
3414
|
type: string2().describe("Executor type: 'agent-task', 'script', 'swarm-script', 'raw-llm', 'system-one-decision', 'system-one-extraction', 'validate', 'property-match'"),
|
|
3406
3415
|
label: string2().optional().describe("Human-readable label for UI display"),
|
|
3407
3416
|
config: record2(string2(), unknown()).describe("Executor-specific config. For agent-task: { template, outputSchema?, agentId?, routingReason?, routingNote?, tags?, priority?, dir?, vcsRepo?, model? }; configured agentId defaults routingReason to human_pinned. " + "For script: { runtime, script, args?, env?, timeout? }; env is a string-to-string map of environment variables with interpolated values and can be used alongside args. " + "For swarm-script: { scriptName, scope?, pinHash?, args?, fsMode?, timeoutMs? (1000-300000) }. " + "For system-one-decision (typed decisions, Jev by default): { provider? ('typesafe' default | 'openrouter' | 'laya'; a literal, never a {{token}}), state, questions: { <id>: { type: 'noul'|'choice'|'score', instructions, criteria? } }, returns: { <id>: { type } }, model? (provider-specific; unset = the provider's default, and laya has none so it sends no model and picks its own checkpoint), timeoutMs?, maxRetries? (0-3), humanReview? { band: { min, max } (0-1, inclusive), approvers: { users?, roles?, policy }, title?, timeout?, notifications? } }; each provider needs its own global secret (TYPESAFE_API_KEY, OPENROUTER_API_KEY, or LAYA_API_KEY; laya also needs the global config LAYA_URL), and a save warns and a run fails before any node executes when one is missing; system-one-decision nodes must not set retry or validation.retry. With humanReview, an answer whose confidence is inside the band waits for a person (human-in-the-loop approval), and next must map ports { approved, rejected?, timeout? }. " + "For system-one-extraction (typed extraction, Cloudflare Clairic by default): { provider? ('cloudflare'; a literal), state (text to read; may be empty when images are sent), fields: { <id>: { type: 'text'|'number'|'date'|'time'|'datetime'|'duration'|'list'|'estimate'|'forecast', instructions?, ...type options (number: unit?, integer?, decimals?; duration: unit? (seconds..years), integer?, decimals?; list: items ('text'|'number'|'date'); estimate: min, max, step?, scale?, unit?; forecast: min, max, horizon?, interval?, scale?, unit?; text/number/date/time/datetime/duration: null_threshold?) } }, images? (max 4 base64 data: URLs or { content_type, base64 }), referenceDate? (YYYY-MM-DD), model?, timeoutMs?, maxRetries? (0-3) }; output answers.<id> carries value (null when the input does not say), guess, p_null, confidence, span/spans, and for estimate/forecast median/p10/p90. Needs the global secret CLOUDFLARE_API_TOKEN (or CLOUDFLARE_API_KEY) and the global config CLOUDFLARE_ACCOUNT_ID; must not set retry or validation.retry. " + "Agent-task templates and ordinary config values support {{interpolation}} from the node's inputs context, including trigger and declared upstream aliases. " + "SECURITY: executable source for script/swarm-script nodes does not interpolate trigger.* or upstream node outputs; only input/workflow/swarm/run values are allowed in inline script source, and named swarm-script source is not workflow-interpolated. " + 'Pass dynamic values through config.args instead (inline script receives them as argv, with runtime: "bash" running bash -c <script> ...args so args[0] is $0 and args[1] is $1; swarm-script receives its args object). Inline script nodes also accept config.env for environment variables. ' + "NOTE: config.outputSchema on agent-task nodes validates the AGENT's raw JSON output, " + "while node-level outputSchema validates the EXECUTOR's return value ({taskId, taskOutput})."),
|
|
3408
|
-
next:
|
|
3417
|
+
next: union3([string2(), array2(string2()), record2(string2(), string2())]).optional().describe("Next node(s): string for simple chaining, string[] for fan-out to parallel nodes, or record for port-based routing ({pass: 'a', fail: 'b'})"),
|
|
3409
3418
|
validation: StepValidationConfigSchema.optional(),
|
|
3410
3419
|
retry: RetryPolicySchema.optional(),
|
|
3411
3420
|
inputs: record2(string2(), string2()).optional().describe("REQUIRED for cross-node data access. Maps local names to context paths. " + "Without this, upstream step outputs are NOT available for interpolation; built-in trigger/input/workflow/swarm/run context remains available. " + 'Example: { "cityData": "generate-city" } → use {{cityData.taskOutput.field}} in config templates. ' + 'For trigger data: { "pr": "trigger.pullRequest" }. ' + "This mapping works in agent-task templates and ordinary config, but executable script/swarm-script source excludes trigger and upstream-output aliases. " + "Route those dynamic values through config.args (argv for inline scripts) instead; inline script nodes also accept config.env for environment variables."),
|
|
@@ -3493,7 +3502,7 @@ var init_types4 = __esm(() => {
|
|
|
3493
3502
|
}).refine((v) => v.hours !== undefined || v.minutes !== undefined || v.seconds !== undefined, {
|
|
3494
3503
|
message: "At least one of hours, minutes, or seconds is required"
|
|
3495
3504
|
});
|
|
3496
|
-
InputValueSchema =
|
|
3505
|
+
InputValueSchema = union3([
|
|
3497
3506
|
string2().regex(/^\$\{.+\}$/),
|
|
3498
3507
|
string2().regex(/^secret\..+$/),
|
|
3499
3508
|
string2()
|
|
@@ -3610,7 +3619,7 @@ var init_types4 = __esm(() => {
|
|
|
3610
3619
|
changedByAgentId: string2().optional(),
|
|
3611
3620
|
createdAt: string2()
|
|
3612
3621
|
}).openapi("PageVersion");
|
|
3613
|
-
MetricParamSchema =
|
|
3622
|
+
MetricParamSchema = union3([string2(), number2(), boolean(), _null()]);
|
|
3614
3623
|
MetricVariableTypeSchema = _enum2(["text", "number", "select"]);
|
|
3615
3624
|
MetricFormatSchema = _enum2(["number", "integer", "currency", "percent", "duration"]);
|
|
3616
3625
|
MetricVisualizationSchema = _enum2([
|
|
@@ -3814,7 +3823,7 @@ var init_types4 = __esm(() => {
|
|
|
3814
3823
|
mode: WaitModeSchema,
|
|
3815
3824
|
wakeUpAt: string2().nullable(),
|
|
3816
3825
|
eventName: string2().nullable(),
|
|
3817
|
-
eventFilter:
|
|
3826
|
+
eventFilter: union3([record2(string2(), unknown()), string2()]).nullable(),
|
|
3818
3827
|
expiresAt: string2().nullable(),
|
|
3819
3828
|
status: WaitStateStatusSchema,
|
|
3820
3829
|
firedPayload: unknown().nullable(),
|
|
@@ -4241,4 +4250,4 @@ var init_types4 = __esm(() => {
|
|
|
4241
4250
|
}).openapi("KvEntry");
|
|
4242
4251
|
});
|
|
4243
4252
|
|
|
4244
|
-
export { ASSET_KEY_MAX_LENGTH, normalizeAssetKey, defaultAssetKey, keyPrefixRange, SESSION_LEAF_KINDS, 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,
|
|
4253
|
+
export { ASSET_KEY_MAX_LENGTH, normalizeAssetKey, defaultAssetKey, keyPrefixRange, SESSION_LEAF_KINDS, 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_dist7, 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, ModelProfileSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, AgentTaskSchema, CreateTaskOptionsSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, 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_types4 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_zod
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-zcfpsfzf.js";
|
|
4
4
|
import {
|
|
5
5
|
_enum2
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-hg42n3hx.js";
|
|
7
7
|
import {
|
|
8
8
|
isEnvFlagEnabled,
|
|
9
9
|
init_env_flag
|
|
@@ -244,6 +244,8 @@ var init_legacy_policy = __esm(() => {
|
|
|
244
244
|
"task.cancel.any": leadOrTaskCreator,
|
|
245
245
|
"approval.cancel.any": humanOrLeadOrResourceOwner,
|
|
246
246
|
"approval.respond": operatorOrUser,
|
|
247
|
+
"improvement.submit": anyAuthenticated,
|
|
248
|
+
"improvement.approve": operatorOrUser,
|
|
247
249
|
"task.steer.any": leadOrTaskCreator,
|
|
248
250
|
"task.create.own": anyAuthenticated,
|
|
249
251
|
"task.requester.assign": leadOrOperatorOrUser,
|
|
@@ -255,6 +257,7 @@ var init_legacy_policy = __esm(() => {
|
|
|
255
257
|
"task.parent.attach": taskFsMutate,
|
|
256
258
|
"session.share": operatorOrUser,
|
|
257
259
|
"session.presence": operatorOrUser,
|
|
260
|
+
"session.read.all": operatorOrUser,
|
|
258
261
|
"task.progress.write": taskProgressWrite,
|
|
259
262
|
"favorite.write.own": anyAuthenticated,
|
|
260
263
|
"memory.learning.inject": leadOnly,
|
|
@@ -393,6 +396,14 @@ var init_permissions = __esm(() => {
|
|
|
393
396
|
description: "Approve or reject a pending approval request as a person. Agents never hold it; the request's approvers list still applies.",
|
|
394
397
|
namespace: "approval"
|
|
395
398
|
},
|
|
399
|
+
"improvement.submit": {
|
|
400
|
+
description: "Draft a product improvement for desplega. An agent's draft stays pending until a person approves it.",
|
|
401
|
+
namespace: "improvement"
|
|
402
|
+
},
|
|
403
|
+
"improvement.approve": {
|
|
404
|
+
description: "Approve and send a drafted product improvement to desplega as a person. Agents never hold it.",
|
|
405
|
+
namespace: "improvement"
|
|
406
|
+
},
|
|
396
407
|
"task.steer.any": {
|
|
397
408
|
description: "Steer any task (beyond tasks the caller created).",
|
|
398
409
|
namespace: "task"
|
|
@@ -441,6 +452,10 @@ var init_permissions = __esm(() => {
|
|
|
441
452
|
description: "Join the presence room of a session the principal can view.",
|
|
442
453
|
namespace: "task"
|
|
443
454
|
},
|
|
455
|
+
"session.read.all": {
|
|
456
|
+
description: "Opt in to read every user's tasks and sessions (the dashboard's All users scope). Read-only: writes and steering still need the principal's own access.",
|
|
457
|
+
namespace: "task"
|
|
458
|
+
},
|
|
444
459
|
"favorite.write.own": {
|
|
445
460
|
description: "Set a favorite the caller owns.",
|
|
446
461
|
namespace: "favorite"
|