@desplega.ai/agent-swarm 2.7.8 → 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-4m1ct4nh.js → actions-g563mbn2.js} +19 -19
- package/dist/{amp-adapter-txqh7eqj.js → amp-adapter-q61w05eb.js} +3 -3
- package/dist/{anthropic-messages-xey2skwx.js → anthropic-messages-jkva0zps.js} +68 -78
- package/dist/{app-e00m45gn.js → app-a66ssc4k.js} +3 -3
- package/dist/{assistant-gd08kr9e.js → assistant-p477rjwj.js} +21 -21
- package/dist/{azure-openai-responses-26t7j9ra.js → azure-openai-responses-wgtqkbr3.js} +5 -10
- package/dist/{boot-args-schema-tjrkpbvm.js → boot-args-schema-h4qj462e.js} +1 -1
- package/dist/{boot-reembed-21hbck22.js → boot-reembed-n1ehfbsw.js} +1 -1
- package/dist/{boot-reembed-mdxd3wgp.js → boot-reembed-qw4mc0pt.js} +1 -1
- package/dist/{boot-scrub-sweep-qy0zr9t2.js → boot-scrub-sweep-9w9jp4sm.js} +4 -4
- package/dist/{boot-seeds-n46eaxdv.js → boot-seeds-qdaf3sdy.js} +5 -4
- package/dist/{boxd-nv507va8.js → boxd-qbkxy6ap.js} +1 -1
- package/dist/{claude-adapter-j37w2eds.js → claude-adapter-348p5hx9.js} +8 -8
- package/dist/{claude-managed-adapter-8jvcma9a.js → claude-managed-adapter-h74d06yz.js} +4 -4
- package/dist/{claude-managed-setup-rzkjmgc1.js → claude-managed-setup-7787fxtp.js} +4 -4
- package/dist/{claude-sdk-session-4k7w73t0.js → claude-sdk-session-hbszbt8a.js} +7901 -7718
- package/dist/{cli-sq4n7af4.js → cli-09kmfkmq.js} +4 -6
- package/dist/{cli-p3vsj0d3.js → cli-0whpms1z.js} +15 -10
- package/dist/{cli-4t50yq3j.js → cli-12xyjhws.js} +29 -12
- package/dist/{cli-snpj5zbj.js → cli-1z4qggfe.js} +9 -36
- package/dist/{cli-bb0mmdk8.js → cli-21159vea.js} +35 -12
- package/dist/{cli-s0qnd4wv.js → cli-28fq781p.js} +1 -1
- package/dist/{cli-rjknb2ae.js → cli-2a8py3sx.js} +6 -6
- package/dist/{cli-tpksw2nr.js → cli-2ccpqyyf.js} +397 -105
- 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-bbw9wj9m.js → cli-3tqcamp6.js} +12 -12
- package/dist/{cli-ae7mrdf9.js → cli-3vjhs18n.js} +4 -6
- package/dist/{cli-ssnjfg5p.js → cli-3xcwp3z8.js} +8 -10
- package/dist/{cli-az48n0nr.js → cli-4caa1x7d.js} +67 -64
- package/dist/{cli-269q28a1.js → cli-4t0fmf3z.js} +27 -6
- package/dist/{cli-1cxrbkk6.js → cli-530hkwdy.js} +7 -9
- package/dist/{cli-pz4rk021.js → cli-54vrpgm0.js} +1 -1
- package/dist/{cli-eyg1pa00.js → cli-587857ys.js} +7 -7
- package/dist/{cli-r9jqcehk.js → cli-5mpy301f.js} +38 -2
- package/dist/{cli-xq9r2wtt.js → cli-605nn699.js} +47 -34
- package/dist/{cli-msg9m2ny.js → cli-650zv9q9.js} +8 -10
- package/dist/cli-6pzk82fd.js +778 -0
- package/dist/{cli-84rj785g.js → cli-715t1gx6.js} +9 -9
- package/dist/{cli-btfsp3mv.js → cli-9aezs55w.js} +9 -11
- package/dist/{cli-dq8x79v8.js → cli-9r5gtwjr.js} +2 -2
- package/dist/{cli-jdv6ypxs.js → cli-a0657jmf.js} +2 -2
- package/dist/{cli-bshb7jas.js → cli-agyaeef4.js} +3 -3
- package/dist/cli-b932gexn.js +5266 -0
- package/dist/{cli-gvx71kqv.js → cli-bc779n4v.js} +3 -3
- package/dist/{cli-z1srzaf6.js → cli-btc9cb4c.js} +70 -5
- package/dist/{cli-s4ss5g59.js → cli-btf6fw39.js} +5 -5
- package/dist/{cli-fzachfnf.js → cli-cseh6f8w.js} +5 -5
- package/dist/{cli-5j0m12ns.js → cli-cvs2r2vq.js} +13 -11
- package/dist/{cli-njwac61j.js → cli-cyn9v8zr.js} +12 -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-7axf41jq.js → cli-ejkvvqbe.js} +40 -42
- package/dist/{cli-mthwvjre.js → cli-f2zenhja.js} +1 -1
- package/dist/{cli-8sdejs1f.js → cli-fayav105.js} +538 -205
- package/dist/{cli-ferkkrg9.js → cli-fjggej24.js} +2 -2
- package/dist/{cli-g7s47cc5.js → cli-fsgttth8.js} +123 -102
- package/dist/{cli-9m8hdawy.js → cli-gce09r66.js} +4 -4
- package/dist/{cli-mkk9rnzz.js → cli-gxy8y1dt.js} +51 -4
- package/dist/{cli-85gzce7b.js → cli-hae9j8sv.js} +287 -75
- package/dist/{cli-agfm16v9.js → cli-hg42n3hx.js} +12 -12
- package/dist/{cli-8rpcng8j.js → cli-hwprv9e4.js} +8 -10
- package/dist/{cli-yndmfxb3.js → cli-hxpyc9sn.js} +3 -3
- package/dist/{cli-ppjxh6ah.js → cli-jfx48xrj.js} +10 -12
- package/dist/{cli-5ja3b75e.js → cli-jrp1dt73.js} +1 -1
- package/dist/{cli-98rw5dt5.js → cli-jrzkw01m.js} +2 -2
- package/dist/{cli-ga786dzg.js → cli-k70e3x9e.js} +18 -17
- package/dist/{cli-583frbyr.js → cli-kchjb7qy.js} +1 -1
- package/dist/{cli-fmjd0t1y.js → cli-m0cy2vyf.js} +2 -2
- package/dist/{cli-c0kqky8y.js → cli-m5akxq8q.js} +1 -1
- package/dist/{cli-ycscb2ar.js → cli-m88rpzkh.js} +2 -2
- package/dist/{cli-m0hmeqma.js → cli-mnrkgg60.js} +4 -4
- package/dist/{cli-yqefz277.js → cli-ms5m5r1y.js} +1 -1
- package/dist/{cli-fy6x31ps.js → cli-n5yexkdg.js} +1 -0
- package/dist/{cli-w4xnbm46.js → cli-neyag5p6.js} +53 -39
- package/dist/cli-p0m0p34z.js +9321 -0
- package/dist/{cli-gazw7kpa.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-3e4snnzf.js → cli-qkdmz8c8.js} +1 -1
- package/dist/{cli-0ykgn1h5.js → cli-qmd3mse0.js} +2 -2
- package/dist/{cli-t60ajbbp.js → cli-qzt90yze.js} +20 -20
- package/dist/cli-rkc97c6a.js +39 -0
- package/dist/{cli-qd57hhhh.js → cli-rvhdmjvt.js} +6 -10
- package/dist/{cli-kyr67fgx.js → cli-rwymrnaz.js} +18608 -9089
- package/dist/{cli-8h0ayw8c.js → cli-serm8zrx.js} +6 -6
- package/dist/{cli-66ww7fer.js → cli-sgs5k6yd.js} +1 -1
- package/dist/{cli-nbsf8yvn.js → cli-sya22y84.js} +9 -9
- package/dist/{cli-318r69gq.js → cli-t73cas91.js} +440 -9
- package/dist/{cli-zkky4t5g.js → cli-tqq0hspb.js} +2 -2
- package/dist/{cli-z75yxkjh.js → cli-v3cf1ts9.js} +3 -3
- package/dist/{cli-xr8908my.js → cli-varqt4d1.js} +26 -14
- package/dist/{cli-q4ebh7h7.js → cli-vxh6acp7.js} +6 -6
- package/dist/{cli-g83s9ewh.js → cli-xfjrc279.js} +1 -1
- package/dist/{cli-32m9eda8.js → cli-xk879m3k.js} +111 -109
- package/dist/{cli-7cx2m6t2.js → cli-y5rbvxhc.js} +2 -2
- package/dist/{cli-fyhr5h4s.js → cli-y8nbefpb.js} +13 -13
- 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-wemma3jd.js → cli-zgv8gxgs.js} +7 -7
- package/dist/cli.js +31 -51
- package/dist/{cloudflare-workers-ai-system-one-ef2a980q.js → cloudflare-workers-ai-system-one-9y1zx3pt.js} +2 -2
- package/dist/{codex-adapter-88z6psm4.js → codex-adapter-ysq6bzha.js} +7 -7
- package/dist/{codex-login-74wa4hmq.js → codex-login-bcda78ge.js} +2 -2
- package/dist/{codex-session-runner-zwbcwzvx.js → codex-session-runner-qakzfx93.js} +8 -8
- package/dist/{commands-7amxs716.js → commands-rs7hkv9r.js} +3 -3
- package/dist/{controller-5rkkc37m.js → controller-r5x9bg6e.js} +4 -4
- package/dist/{controllers-connect-m7d4vxxb.js → controllers-connect-498hrxvk.js} +24 -24
- package/dist/{cursor-adapter-x1q18693.js → cursor-adapter-d46qszer.js} +2 -2
- package/dist/{db-athc68zt.js → db-pm96nhdb.js} +4 -2
- package/dist/{db-h2fsfve3.js → db-s13dqhr6.js} +3 -3
- package/dist/{devin-adapter-r9phbnc9.js → devin-adapter-z46ep5ph.js} +1 -1
- package/dist/{dispatcher-b1yz2bnn.js → dispatcher-j3h81t7m.js} +18 -18
- package/dist/{docker-c1a3gqmf.js → docker-866qpzt9.js} +2 -2
- package/dist/{dsh-adapter-e33bkxq9.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-pv5qnzc8.js → easter-egg-3d-qtgfxgze.js} +1 -1
- package/dist/{embedding-space-b4txbwrk.js → embedding-space-xh8p4q4x.js} +6 -6
- package/dist/{embeddings-m6zn6tad.js → embeddings-wp745m91.js} +1 -1
- package/dist/{event-bus-g0ka3pbw.js → event-bus-e66gh7cc.js} +1 -1
- package/dist/{execute-68nwny8m.js → execute-2fzb9z74.js} +1 -1
- package/dist/{external-channel-gkckmhzh.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-6c2y3267.js → heartbeat-8phn1kdq.js} +21 -21
- package/dist/{hook-q5fv0jy2.js → hook-amcj4s10.js} +16 -11
- package/dist/{hook-w0q2wcrv.js → hook-bc6n49qn.js} +5 -5
- package/dist/{http-bxat8dg3.js → http-7374brv5.js} +642 -260
- 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-bxrexmfy.js → index-c9y31ytf.js} +13 -13
- package/dist/{index-h39zbx67.js → index-hsad2t3r.js} +31 -31
- package/dist/index-nfy4kkg5.js +33 -0
- package/dist/{index-cqhqpgrv.js → index-p4hjwbvw.js} +1 -1
- package/dist/{index-k7fj52d3.js → index-q5cmtbz5.js} +6 -6
- package/dist/{index-fm0czesf.js → index-w4m9z29z.js} +1 -1
- package/dist/{keepalive-qnt21cv0.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-btdr68y4.js → maintenance-h2ds9w6c.js} +1 -1
- package/dist/{mistral-conversations-3gjpdb4b.js → mistral-conversations-a45tx39a.js} +29 -51
- package/dist/{oauth-refresh-sweep-vczabeh4.js → oauth-refresh-sweep-q7mtbyp3.js} +3 -3
- package/dist/{onboard-k33ezyq8.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-3dst2ka7.js → opencode-adapter-mtb0953j.js} +6 -6
- package/dist/{openrouter-images-3ecegv0d.js → openrouter-images-xr9gme9x.js} +4 -3
- package/dist/{otel-impl-13am7a65.js → otel-impl-j42czw3r.js} +2 -2
- package/dist/{pi-messages-pchtw4he.js → pi-messages-hjbv8v10.js} +28 -12
- package/dist/{pi-mono-adapter-c53de1gd.js → pi-mono-adapter-zk8pg9jr.js} +23 -26
- package/dist/{pricing-refresh-9fcbnq3f.js → pricing-refresh-x7nhv23d.js} +3 -3
- package/dist/{rbac-roles-gw0p9h3j.js → rbac-roles-9044425x.js} +16 -2
- package/dist/{rbac-roles-66j5h4y5.js → rbac-roles-bzvee6cf.js} +12 -3
- package/dist/{render-v2-fg8bmdn4.js → render-v2-t7bn4skz.js} +3 -3
- package/dist/{resume-1c8kr3nh.js → resume-x94gemep.js} +7 -7
- package/dist/{runtime-tzf9j7tc.js → runtime-breq6fmv.js} +1 -1
- package/dist/{session-access-d0atq10j.js → session-access-q7dmqjvt.js} +4 -4
- package/dist/{session-source-backfill-0vscqmsa.js → session-source-backfill-440ysamr.js} +3 -3
- package/dist/{setup-tvfa7rwe.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-ks71xqeb.js → work-objects-pnq5y534.js} +21 -21
- package/dist/{worker-follow-up-bfx0h9hg.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 +1169 -257
- package/package.json +8 -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/tasks/read.ts +22 -0
- package/src/be/db.ts +4 -2
- package/src/be/improvements.ts +416 -0
- package/src/be/migrations/274_improvements.sql +27 -0
- package/src/be/migrations/275_task_dispatched_by.sql +8 -0
- package/src/be/rbac-roles.ts +123 -1
- package/src/be/swarm-config-guard.ts +1 -0
- package/src/be/users.ts +58 -1
- package/src/cli.tsx +5 -25
- 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 +117 -96
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/hooks/hook.ts +13 -5
- package/src/http/all-routes.ts +1 -0
- package/src/http/approval-requests.ts +2 -44
- package/src/http/auth.ts +5 -4
- package/src/http/codex-oauth-accounts.ts +31 -23
- package/src/http/codex-oauth-device.ts +1 -1
- package/src/http/codex-oauth-keep-warm.ts +1 -1
- package/src/http/improvements.ts +317 -0
- package/src/http/index.ts +2 -0
- package/src/http/operator-actor.ts +2 -1
- package/src/http/person-responder.ts +66 -0
- package/src/http/sessions.ts +49 -7
- package/src/http/tasks.ts +1 -1
- package/src/http/user-roles.ts +11 -2
- package/src/http/users.ts +194 -104
- package/src/providers/acp-targets.ts +1 -1
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/codex-adapter.ts +8 -1
- package/src/providers/codex-models.ts +4 -3
- package/src/providers/codex-oauth/auth-json.ts +14 -18
- package/src/providers/codex-oauth/storage.ts +2 -2
- package/src/rbac/legacy-policy.ts +2 -0
- package/src/rbac/permissions.ts +10 -0
- package/src/scripts-runtime/types/swarm-extension.d.ts +2 -0
- package/src/server.ts +2 -0
- package/src/slack/ack.ts +20 -14
- package/src/slack/render-v2.ts +42 -17
- package/src/tests/api-drain-worker-e2e.test.ts +69 -2
- 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-worker-parity.test.ts +2 -2
- package/src/tests/codex-adapter.test.ts +30 -0
- 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 +1 -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/db-task-read-contract.test.ts +2 -0
- package/src/tests/db-task-write-contract.test.ts +1 -0
- package/src/tests/deploy-one-box.test.ts +39 -1
- package/src/tests/docs-index-footprint.test.js +3 -3
- 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/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/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/rbac-engine.test.ts +2 -0
- package/src/tests/runner-context-usage.test.ts +0 -1
- 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/send-task-dispatched-by.test.ts +129 -0
- package/src/tests/session-dispatched-tasks.test.ts +115 -0
- package/src/tests/session-sharing.test.ts +198 -9
- package/src/tests/slack-file-tools-attachments.test.ts +95 -3
- package/src/tests/slack-reaction-config.test.ts +39 -0
- package/src/tests/slack-render-v2.test.ts +47 -0
- package/src/tests/submit-improvement-tool.test.ts +82 -0
- package/src/tests/tool-annotations.test.ts +1 -1
- package/src/tools/manage-user.ts +88 -58
- package/src/tools/send-task.ts +3 -0
- package/src/tools/slack-read.ts +61 -33
- package/src/tools/submit-improvement.ts +68 -0
- package/src/tools/tool-config.ts +3 -0
- package/src/types.ts +5 -0
- package/src/utils/request-auth-context.ts +6 -1
- 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-vg5hqkvj.js +0 -16
- package/dist/cli-5c4hjzne.js +0 -873
- package/dist/cli-ae0dnfee.js +0 -20222
- package/dist/cli-nn3ysbqk.js +0 -428
- package/dist/cli-pc5znp64.js +0 -364
- package/dist/fx-adapter-m5jbgd5q.js +0 -19
- package/dist/grok-adapter-csvv7sac.js +0 -19
- package/dist/handlers-8x5gfbzx.js +0 -32
- package/dist/index-hpfte8jd.js +0 -33
- package/dist/index-ncf7yb5s.js +0 -30
- package/dist/index-vte6dyeh.js +0 -37
- package/dist/lead-4bvftzm6.js +0 -71
- package/dist/virtual-modules-efxcp740.js +0 -59
- package/dist/worker-e7v2bvm9.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";
|
|
@@ -65,6 +72,28 @@ async function userHoldsExplicitVerb2(userId, verb) {
|
|
|
65
72
|
LIMIT 1`, [userId, verb]);
|
|
66
73
|
return row != null;
|
|
67
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
|
+
}
|
|
68
97
|
async function getUserGrant2(userId) {
|
|
69
98
|
const rows = await getDbClient2().query(`SELECT r.id AS roleId, r.grantsAll, rp.verb
|
|
70
99
|
FROM principal_roles pr
|
|
@@ -141,6 +170,16 @@ async function setUserRoles2(userId, roleNames, actorUserId) {
|
|
|
141
170
|
FROM principal_roles pr JOIN roles r ON r.id = pr.roleId
|
|
142
171
|
WHERE pr.principalType = 'user' AND pr.principalId = ?
|
|
143
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
|
+
}
|
|
144
183
|
const wantsAll = wanted.some((r) => r.grantsAll === 1);
|
|
145
184
|
if (current.some((r) => r.grantsAll === 1) && !wantsAll) {
|
|
146
185
|
const user = await tx.get("SELECT status FROM users WHERE id = ?", [
|
|
@@ -167,6 +206,9 @@ async function setUserRoles2(userId, roleNames, actorUserId) {
|
|
|
167
206
|
await tx.run(`INSERT OR IGNORE INTO principal_roles (principalType, principalId, roleId, created_by)
|
|
168
207
|
VALUES ('user', ?, ?, ?)`, [userId, row.id, actorUserId]);
|
|
169
208
|
}
|
|
209
|
+
if (gated.length > 0) {
|
|
210
|
+
await revokeAllUserCredentials(userId, { kind: "system", id: "operator-granted-role" });
|
|
211
|
+
}
|
|
170
212
|
getDbClient2().afterCommit(() => invalidateTelemetryUserRole(userId));
|
|
171
213
|
return { before: current.map((r) => r.name), after: wanted.map((r) => r.name).sort() };
|
|
172
214
|
});
|
|
@@ -247,7 +289,7 @@ function ensureRbacSeedsSynced2(opts) {
|
|
|
247
289
|
}
|
|
248
290
|
return stats;
|
|
249
291
|
}
|
|
250
|
-
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 = `
|
|
251
293
|
CREATE TRIGGER IF NOT EXISTS trg_users_default_role
|
|
252
294
|
AFTER INSERT ON users
|
|
253
295
|
BEGIN
|
|
@@ -255,12 +297,14 @@ BEGIN
|
|
|
255
297
|
SELECT 'user', NEW.id, 'rbac-role-admin'
|
|
256
298
|
WHERE EXISTS (SELECT 1 FROM roles WHERE id = 'rbac-role-admin');
|
|
257
299
|
END;
|
|
258
|
-
`, loggedInvalidGrantVerbs, InvalidRoleSetError2, LastAdminError2;
|
|
300
|
+
`, loggedInvalidGrantVerbs, OperatorGrantedTargetError2, InvalidRoleSetError2, OperatorGrantedRoleError2, LastAdminError2;
|
|
259
301
|
var init_rbac_roles = __esm(() => {
|
|
260
302
|
init_rbac();
|
|
261
303
|
init_telemetry_identity();
|
|
262
304
|
init_env_flag();
|
|
263
305
|
init_db4();
|
|
306
|
+
init_db_client();
|
|
307
|
+
init_users();
|
|
264
308
|
BUILTIN_ROLES = [
|
|
265
309
|
{
|
|
266
310
|
id: DEFAULT_ROLE_ID,
|
|
@@ -297,12 +341,33 @@ var init_rbac_roles = __esm(() => {
|
|
|
297
341
|
isBuiltin: true,
|
|
298
342
|
grantsAll: false,
|
|
299
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"]
|
|
300
352
|
}
|
|
301
353
|
];
|
|
354
|
+
OPERATOR_GRANTED_VERBS = ["session.read.all"];
|
|
302
355
|
PRIMARY_ROLE_NAMES2 = ["admin", "requester", "viewer"];
|
|
303
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
|
+
};
|
|
304
362
|
InvalidRoleSetError2 = class InvalidRoleSetError2 extends Error {
|
|
305
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
|
+
};
|
|
306
371
|
LastAdminError2 = class LastAdminError2 extends Error {
|
|
307
372
|
constructor() {
|
|
308
373
|
super("last_admin");
|
|
@@ -310,4 +375,4 @@ var init_rbac_roles = __esm(() => {
|
|
|
310
375
|
};
|
|
311
376
|
});
|
|
312
377
|
|
|
313
|
-
export { PRIMARY_ROLE_NAMES2, userHoldsExplicitVerb2, 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
|
});
|
|
@@ -2498,6 +2498,7 @@ var init_types4 = __esm(() => {
|
|
|
2498
2498
|
mentionChannelId: string2().optional(),
|
|
2499
2499
|
dir: string2().min(1).optional(),
|
|
2500
2500
|
parentTaskId: string2().optional(),
|
|
2501
|
+
dispatchedByTaskId: string2().optional(),
|
|
2501
2502
|
claudeSessionId: string2().optional(),
|
|
2502
2503
|
model: string2().optional(),
|
|
2503
2504
|
modelTier: ModelTierSchema.optional(),
|
|
@@ -2575,6 +2576,7 @@ var init_types4 = __esm(() => {
|
|
|
2575
2576
|
workflowRunId: string2().optional(),
|
|
2576
2577
|
workflowRunStepId: string2().optional(),
|
|
2577
2578
|
sourceTaskId: string2().optional(),
|
|
2579
|
+
dispatchedByTaskId: string2().optional(),
|
|
2578
2580
|
outputSchema: record2(string2(), unknown()).optional(),
|
|
2579
2581
|
inheritParentOutputSchema: boolean().optional(),
|
|
2580
2582
|
inheritParentRequester: boolean().optional(),
|
|
@@ -2848,7 +2850,7 @@ var init_types4 = __esm(() => {
|
|
|
2848
2850
|
description: string2().nullable().optional(),
|
|
2849
2851
|
category: string2().nullable().optional(),
|
|
2850
2852
|
currentValue: string2(),
|
|
2851
|
-
options: array2(
|
|
2853
|
+
options: array2(union3([AcpSessionConfigSelectValueSchema, AcpSessionConfigSelectGroupSchema]))
|
|
2852
2854
|
}),
|
|
2853
2855
|
object2({
|
|
2854
2856
|
type: literal2("boolean"),
|
|
@@ -3412,7 +3414,7 @@ var init_types4 = __esm(() => {
|
|
|
3412
3414
|
type: string2().describe("Executor type: 'agent-task', 'script', 'swarm-script', 'raw-llm', 'system-one-decision', 'system-one-extraction', 'validate', 'property-match'"),
|
|
3413
3415
|
label: string2().optional().describe("Human-readable label for UI display"),
|
|
3414
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})."),
|
|
3415
|
-
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'})"),
|
|
3416
3418
|
validation: StepValidationConfigSchema.optional(),
|
|
3417
3419
|
retry: RetryPolicySchema.optional(),
|
|
3418
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."),
|
|
@@ -3500,7 +3502,7 @@ var init_types4 = __esm(() => {
|
|
|
3500
3502
|
}).refine((v) => v.hours !== undefined || v.minutes !== undefined || v.seconds !== undefined, {
|
|
3501
3503
|
message: "At least one of hours, minutes, or seconds is required"
|
|
3502
3504
|
});
|
|
3503
|
-
InputValueSchema =
|
|
3505
|
+
InputValueSchema = union3([
|
|
3504
3506
|
string2().regex(/^\$\{.+\}$/),
|
|
3505
3507
|
string2().regex(/^secret\..+$/),
|
|
3506
3508
|
string2()
|
|
@@ -3617,7 +3619,7 @@ var init_types4 = __esm(() => {
|
|
|
3617
3619
|
changedByAgentId: string2().optional(),
|
|
3618
3620
|
createdAt: string2()
|
|
3619
3621
|
}).openapi("PageVersion");
|
|
3620
|
-
MetricParamSchema =
|
|
3622
|
+
MetricParamSchema = union3([string2(), number2(), boolean(), _null()]);
|
|
3621
3623
|
MetricVariableTypeSchema = _enum2(["text", "number", "select"]);
|
|
3622
3624
|
MetricFormatSchema = _enum2(["number", "integer", "currency", "percent", "duration"]);
|
|
3623
3625
|
MetricVisualizationSchema = _enum2([
|
|
@@ -3821,7 +3823,7 @@ var init_types4 = __esm(() => {
|
|
|
3821
3823
|
mode: WaitModeSchema,
|
|
3822
3824
|
wakeUpAt: string2().nullable(),
|
|
3823
3825
|
eventName: string2().nullable(),
|
|
3824
|
-
eventFilter:
|
|
3826
|
+
eventFilter: union3([record2(string2(), unknown()), string2()]).nullable(),
|
|
3825
3827
|
expiresAt: string2().nullable(),
|
|
3826
3828
|
status: WaitStateStatusSchema,
|
|
3827
3829
|
firedPayload: unknown().nullable(),
|
|
@@ -4248,4 +4250,4 @@ var init_types4 = __esm(() => {
|
|
|
4248
4250
|
}).openapi("KvEntry");
|
|
4249
4251
|
});
|
|
4250
4252
|
|
|
4251
|
-
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,
|
|
@@ -394,6 +396,14 @@ var init_permissions = __esm(() => {
|
|
|
394
396
|
description: "Approve or reject a pending approval request as a person. Agents never hold it; the request's approvers list still applies.",
|
|
395
397
|
namespace: "approval"
|
|
396
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
|
+
},
|
|
397
407
|
"task.steer.any": {
|
|
398
408
|
description: "Steer any task (beyond tasks the caller created).",
|
|
399
409
|
namespace: "task"
|