@desplega.ai/agent-swarm 2.13.0 → 2.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/acp-adapter-x1qqgzwx.js +17 -0
- package/dist/{acp-targets-86f0sh6g.js → acp-targets-mz8c5dnt.js} +10 -10
- package/dist/{actions-zv8vcxvr.js → actions-5ft3qp5a.js} +27 -27
- package/dist/{agent-fs-provision-jqshb33y.js → agent-fs-provision-6fgz7wvz.js} +4 -4
- package/dist/{amp-adapter-gt503ywc.js → amp-adapter-nthn8ezm.js} +3 -3
- package/dist/{app-6t4k5rh1.js → app-535m78qw.js} +10 -10
- package/dist/{approval-notifications-fcfw063h.js → approval-notifications-dewbk403.js} +11 -11
- package/dist/{assistant-9dzybh12.js → assistant-39zyabv2.js} +28 -28
- package/dist/{boot-args-schema-xzfp2feg.js → boot-args-schema-bqv5bf77.js} +1 -1
- package/dist/{boot-reembed-3jz0p2jk.js → boot-reembed-157c0gcz.js} +1 -1
- package/dist/{boot-reembed-r88wngfg.js → boot-reembed-fas7z3zn.js} +1 -1
- package/dist/{boot-scrub-sweep-scrqhw48.js → boot-scrub-sweep-tmec0be2.js} +2 -2
- package/dist/{boot-seeds-vb2dcrrb.js → boot-seeds-32zm50x2.js} +4 -4
- package/dist/{boxd-68n75y1s.js → boxd-hr8rsxzq.js} +1 -1
- package/dist/{claude-adapter-h3mp9hgs.js → claude-adapter-gwq7x2nj.js} +9 -9
- package/dist/{claude-managed-adapter-kpbyj2vb.js → claude-managed-adapter-rkvw6fvq.js} +4 -4
- package/dist/{claude-managed-setup-0efr3wkg.js → claude-managed-setup-0vgz4d1j.js} +6 -6
- package/dist/{claude-sdk-session-03dw669q.js → claude-sdk-session-5wbwxy8c.js} +20967 -19390
- package/dist/{cli-z64t9pe6.js → cli-0f7n3td3.js} +1 -1
- package/dist/{cli-j53hpbsm.js → cli-0xwb7zpt.js} +2 -2
- package/dist/{cli-wxwv3t11.js → cli-1f48qdnb.js} +55 -13
- package/dist/{cli-gfcv679k.js → cli-1gevjrc1.js} +1 -1
- package/dist/{cli-0jkenasr.js → cli-2v4xxnx2.js} +1 -1
- package/dist/{cli-hc6e4tac.js → cli-2wde56gv.js} +6 -6
- package/dist/{cli-mh7pdxe0.js → cli-31vt7baf.js} +17 -17
- package/dist/{cli-ercwc8xn.js → cli-3mf04tkh.js} +1 -1
- package/dist/{cli-s6zk31gr.js → cli-43dsqhcp.js} +4 -4
- package/dist/{cli-1dbv9mj9.js → cli-4djg31jh.js} +1 -1
- package/dist/{cli-tn91wc6e.js → cli-50whymxq.js} +1 -1
- package/dist/{cli-js10kdk7.js → cli-5basv0e7.js} +19 -5
- package/dist/{cli-b2jh3dyb.js → cli-5k1hvycs.js} +4 -4
- package/dist/{cli-dkejt425.js → cli-62fjschk.js} +7 -7
- package/dist/{cli-zqmmy073.js → cli-69eq6gdk.js} +18 -18
- package/dist/{cli-qm3ntjqs.js → cli-6rmryz03.js} +13 -13
- package/dist/{cli-mz34pxbk.js → cli-7m6bbtab.js} +11 -11
- package/dist/{cli-wv20kbr3.js → cli-8a4qg44m.js} +5 -5
- package/dist/{cli-2m6yaq6b.js → cli-8fj8yfmk.js} +1 -1
- package/dist/{cli-9m9kyw77.js → cli-8qvte9hn.js} +2 -2
- package/dist/{cli-x05p2d05.js → cli-9tevdxyf.js} +1 -1
- package/dist/{cli-qec9bynj.js → cli-a6rzw649.js} +3 -3
- package/dist/{cli-ex1y88j3.js → cli-at67kvnp.js} +1 -1
- package/dist/{cli-yn4kt85g.js → cli-b0kqw55g.js} +1 -1
- package/dist/{cli-n3qe7tyr.js → cli-b0m3bg0f.js} +134 -3
- package/dist/{cli-xfjn2kyq.js → cli-bp2rt28p.js} +9 -9
- package/dist/{cli-2jk4s7z1.js → cli-c9bwawf9.js} +3 -3
- package/dist/{cli-wndegmns.js → cli-cmgdptmx.js} +3 -3
- package/dist/{cli-3p288654.js → cli-cpkxh68d.js} +2 -2
- package/dist/{cli-117g15t4.js → cli-cs26ed89.js} +8 -8
- package/dist/{cli-prf7kz78.js → cli-d0jb2qnt.js} +603 -78
- package/dist/{cli-8hp56wat.js → cli-d2epqm0y.js} +1 -1
- package/dist/{cli-wrhbym01.js → cli-d528acsw.js} +6 -6
- package/dist/{cli-tstj6e8e.js → cli-dnvmwsvc.js} +310 -88
- package/dist/{cli-9fsagra4.js → cli-e87fg3en.js} +1 -1
- package/dist/{cli-jj3c5nyb.js → cli-erh1rgh4.js} +116 -56
- package/dist/{cli-f1952kjy.js → cli-ewb028rs.js} +4 -4
- package/dist/{cli-ct8sz3np.js → cli-f1sdh8ca.js} +6 -6
- package/dist/{cli-0b655smz.js → cli-fcwrd7bh.js} +5 -5
- package/dist/{cli-eb279wn3.js → cli-fgm2mad9.js} +2 -2
- package/dist/{cli-bpje8n65.js → cli-fp65jdp2.js} +31 -6
- package/dist/{cli-dnh64e8e.js → cli-g0b3ma7r.js} +7 -7
- package/dist/{cli-avxh26pd.js → cli-gc7jkf4a.js} +4 -4
- package/dist/{cli-2skf1mdf.js → cli-gedf48yw.js} +4 -4
- package/dist/{cli-ajjvqhf3.js → cli-getrvmtx.js} +27 -6
- package/dist/{cli-c8v2yvej.js → cli-gq6qhmrr.js} +2 -2
- package/dist/{cli-mbwmqb5w.js → cli-h0ewec3d.js} +1 -1
- package/dist/{cli-tdk7jtka.js → cli-hv3820ez.js} +1 -1
- package/dist/{cli-avqkr20b.js → cli-j2ybkdk2.js} +2 -2
- package/dist/{cli-pqfecppn.js → cli-je587f74.js} +1 -1
- package/dist/{cli-hgsxnjyg.js → cli-jkkcm72j.js} +13 -13
- package/dist/{cli-g6j6ac3h.js → cli-ka13xx6b.js} +2 -2
- package/dist/{cli-t35hx078.js → cli-m1wddksc.js} +2 -2
- package/dist/{cli-50w82h6m.js → cli-mwxez0pz.js} +1 -0
- package/dist/{cli-nc6a8b5b.js → cli-n14r8h4n.js} +2 -2
- package/dist/{cli-y4a4458j.js → cli-n46d87mj.js} +3 -3
- package/dist/{cli-0dg7ytxm.js → cli-nkfv398a.js} +1096 -75
- package/dist/{cli-fhvk2nvp.js → cli-nvqq3232.js} +9 -9
- package/dist/{cli-bhgrhedp.js → cli-q8aq48v1.js} +1 -1
- package/dist/{cli-6a40p4kv.js → cli-qn79645p.js} +1 -1
- package/dist/{cli-hbq0kwxz.js → cli-r4fphq38.js} +4 -4
- package/dist/{cli-47hz21se.js → cli-r8ddn0hf.js} +4 -5
- package/dist/{cli-hpb9x72z.js → cli-rvhaahfv.js} +9 -9
- package/dist/{cli-qhhb30e8.js → cli-s08zsqva.js} +9 -9
- package/dist/{cli-sdh61g52.js → cli-s6fhqbz1.js} +2 -2
- package/dist/{cli-y518qkjg.js → cli-sjk85d7v.js} +13 -12
- package/dist/{cli-ytc7fpza.js → cli-t25rq8mg.js} +4 -4
- package/dist/{cli-sq913bh1.js → cli-t9nxq30h.js} +8 -8
- package/dist/{cli-49f5jyhh.js → cli-tbdw3f92.js} +3 -3
- package/dist/{cli-1v82d2w6.js → cli-tceqvv6h.js} +4 -4
- package/dist/{cli-fz9pcjsw.js → cli-tgmate57.js} +4 -4
- package/dist/{cli-rtmqzat7.js → cli-vdfngx2g.js} +2 -2
- package/dist/{cli-9w8712tq.js → cli-vr4eyq6p.js} +43 -14
- package/dist/{cli-z4f346g5.js → cli-vx9acp12.js} +1 -1
- package/dist/{cli-7dbhnsj9.js → cli-wdtqkqnq.js} +4 -4
- package/dist/{cli-kde4ky90.js → cli-x5yb8zc8.js} +2 -2
- package/dist/{cli-w14j2z4k.js → cli-x7aqhxj5.js} +2 -2
- package/dist/{cli-kspxjftk.js → cli-xerdrnqs.js} +15 -6
- package/dist/{cli-48nvk6sb.js → cli-xhkek467.js} +2 -2
- package/dist/{cli-dka73bak.js → cli-xysy1g8x.js} +152 -12
- package/dist/{cli-7wy8gbwb.js → cli-ya1cj689.js} +1 -1
- package/dist/{cli-n85m2wkq.js → cli-zkbz8m2q.js} +3 -2
- package/dist/{cli-0pazkmd4.js → cli-zm6bkx3e.js} +4 -4
- package/dist/{cli-6h88mn9q.js → cli-zqy28rwx.js} +4 -4
- package/dist/cli.js +30 -29
- package/dist/{codex-adapter-f3yp0kaj.js → codex-adapter-x25xfbnh.js} +8 -8
- package/dist/{codex-hook-262cekfp.js → codex-hook-c0nvm30r.js} +2 -2
- package/dist/{codex-login-1ven7yje.js → codex-login-ven5cz5j.js} +1 -1
- package/dist/{codex-session-runner-ns4mv70p.js → codex-session-runner-kn5xnrvp.js} +9 -9
- package/dist/{commands-5bzf2tfw.js → commands-8n59gxmy.js} +3 -3
- package/dist/{controller-5xt7kvfm.js → controller-wn3vd217.js} +3 -3
- package/dist/{controllers-connect-0gg13mzp.js → controllers-connect-09gvkrhc.js} +28 -28
- package/dist/core-2b8bv6ny.js +42 -0
- package/dist/{cursor-adapter-p0c5zv6r.js → cursor-adapter-w1681kp1.js} +2 -2
- package/dist/{db-2s68ycq7.js → db-e71keqxk.js} +3 -3
- package/dist/{db-q7q639k5.js → db-spg81qtr.js} +2 -2
- package/dist/{devin-adapter-t8d86q9x.js → devin-adapter-fs90ab4v.js} +1 -1
- package/dist/{dispatcher-j2y1q7ae.js → dispatcher-fr4vawwb.js} +25 -25
- package/dist/{docker-1b41eysj.js → docker-1h33jvh9.js} +2 -2
- package/dist/{dsh-adapter-pgnkf4st.js → dsh-adapter-g9yqv09y.js} +2 -2
- package/dist/{e2b-xm60c8ad.js → e2b-jnk0yeva.js} +2 -2
- package/dist/{e2b-ew8c5j5v.js → e2b-y7e5kmzf.js} +2 -2
- package/dist/{easter-egg-3d-0kea97jf.js → easter-egg-3d-ac9tv9a6.js} +1 -1
- package/dist/{embedding-space-3n6mhhmy.js → embedding-space-an77f45k.js} +6 -6
- package/dist/{embeddings-jfmj6yme.js → embeddings-jkrehejr.js} +1 -1
- package/dist/{event-bus-v4ywhc2p.js → event-bus-08t2b4y2.js} +1 -1
- package/dist/{execute-tjrej979.js → execute-3mys4nta.js} +1 -1
- package/dist/{external-channel-jy8w2gg3.js → external-channel-s6zxpts9.js} +2 -2
- package/dist/fx-adapter-4yet1c4f.js +20 -0
- package/dist/grok-adapter-8ge6tw7m.js +20 -0
- package/dist/handlers-0r9evrdj.js +41 -0
- package/dist/heartbeat-jjpb44e5.js +50 -0
- package/dist/{hook-fv1jwrv7.js → hook-68gbs87k.js} +6 -6
- package/dist/{hook-bpnncsec.js → hook-y6n23zzj.js} +8 -8
- package/dist/{http-bpa26czn.js → http-8c6y008s.js} +404 -146
- package/dist/{index-w216g9y9.js → index-0vthtbc2.js} +38 -22
- package/dist/index-1v23363p.js +39 -0
- package/dist/index-30qw6vyw.js +44 -0
- package/dist/index-6bm3w6cn.js +40 -0
- package/dist/{index-s8re7mvq.js → index-6h3r0vpe.js} +1 -1
- package/dist/{index-620y7jzq.js → index-7dgxveck.js} +3 -3
- package/dist/{index-4k7m5dgj.js → index-maddg9ys.js} +143 -103
- package/dist/{index-0h6qd4p1.js → index-mbpxhc4w.js} +3 -4
- package/dist/index-rz8ve510.js +569 -0
- package/dist/{index-mpj0z9e0.js → index-we3nd2t0.js} +1 -1
- package/dist/{index-pe3d8jfy.js → index-whysn1wf.js} +1 -1
- package/dist/{index-52tgbhrw.js → index-xcw7hjt5.js} +28 -28
- package/dist/{index-8p0j4h4j.js → index-ym9fgxad.js} +94 -89
- package/dist/{k8s-fy8hbhkg.js → k8s-8326q0rq.js} +2 -2
- package/dist/{keepalive-d6z12s04.js → keepalive-7e9r5dvp.js} +5 -4
- package/dist/lead-3jpc7kcr.js +79 -0
- package/dist/{maintenance-7kac6g2g.js → maintenance-d3erjvcg.js} +1 -1
- package/dist/{oauth-refresh-sweep-t1xjetbh.js → oauth-refresh-sweep-0qh70988.js} +4 -3
- package/dist/{object-webhooks-6rdagg0r.js → object-webhooks-ac7v2q5p.js} +7 -7
- package/dist/{onboard-32y1cfxy.js → onboard-5yphtken.js} +4 -4
- package/dist/{opencode-adapter-enp3v31n.js → opencode-adapter-0xvyba4m.js} +8 -8
- package/dist/{otel-impl-k0tm5ptj.js → otel-impl-svqp691q.js} +2 -2
- package/dist/{pending-24zebgvs.js → pending-bn4xe5br.js} +26 -26
- package/dist/{pi-mono-adapter-yj72xxxe.js → pi-mono-adapter-763s8a3w.js} +20 -18
- package/dist/{pricing-refresh-cf25x38j.js → pricing-refresh-kfc215mf.js} +2 -2
- package/dist/{rbac-roles-0wydd22m.js → rbac-roles-3bznvkpt.js} +3 -3
- package/dist/{rbac-roles-at6crb3r.js → rbac-roles-6r4h2ghj.js} +2 -2
- package/dist/{render-v2-nvcw0jd7.js → render-v2-f3qedbpy.js} +10 -10
- package/dist/{resume-y4w0k5v3.js → resume-vcag4ann.js} +13 -13
- package/dist/{runtime-vpe43hx0.js → runtime-x0s55z2t.js} +1 -1
- package/dist/{session-access-gkyvnfye.js → session-access-nwzve8q2.js} +5 -5
- package/dist/{session-source-backfill-3w2st4m2.js → session-source-backfill-jpqfzmgz.js} +2 -2
- package/dist/{setup-axxvqtys.js → setup-d2smwaem.js} +1 -1
- package/dist/thread-buffer-8fc703jc.js +42 -0
- package/dist/{tree-visibility-y4fqvab5.js → tree-visibility-dwzc8en0.js} +2 -2
- package/dist/{user-merge-jobs-kcmwvrc6.js → user-merge-jobs-4ce7kma2.js} +3 -3
- package/dist/{virtual-modules-7d92dct1.js → virtual-modules-78a6yw71.js} +3 -3
- package/dist/{work-objects-f708e069.js → work-objects-m0w1e7q8.js} +28 -28
- package/dist/worker-3p2vq107.js +79 -0
- package/dist/{worker-follow-up-0by8wztc.js → worker-follow-up-e3t6f895.js} +25 -25
- package/dist/{x-3dtaf2r9.js → x-asbrnafg.js} +2 -2
- package/openapi.json +1795 -1623
- package/package.json +13 -12
- package/src/apps/catalog.generated.json +726 -0
- package/src/apps/definition.ts +24 -7
- package/src/apps/page-validator.ts +225 -3
- package/src/be/db.ts +38 -10
- package/src/be/mcp-proxy.ts +5 -4
- package/src/be/migrations/340_api_key_spend_cap.sql +5 -0
- package/src/be/migrations/341_user_token_expiry.sql +4 -0
- package/src/be/schedules/validate.ts +26 -0
- package/src/be/scripts/run-credential.ts +55 -1
- package/src/be/scripts/typecheck.ts +4 -4
- package/src/be/scripts/user-code-mode.ts +160 -0
- package/src/be/swarm-config-guard.ts +4 -0
- package/src/be/users.ts +48 -7
- package/src/commands/credential-outcome-report.ts +5 -2
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/provider-credentials.ts +19 -0
- package/src/commands/provider-error-class.ts +4 -1
- package/src/commands/rate-limit-outcome.ts +48 -3
- package/src/commands/runner.ts +113 -55
- package/src/commands/worktree-reaper.ts +600 -0
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/http/agents.ts +4 -0
- package/src/http/api-keys.ts +27 -3
- package/src/http/pages-public.ts +40 -4
- package/src/http/pool-keys.ts +21 -2
- package/src/http/schedules.ts +28 -3
- package/src/http/script-connection-proxy.ts +18 -6
- package/src/http/script-connections.ts +12 -4
- package/src/http/script-runs.ts +12 -3
- package/src/http/scripts.ts +2 -11
- package/src/http/tasks.ts +6 -10
- package/src/http/users.ts +1 -0
- package/src/integrations/chat-sdk/adapters.ts +29 -0
- package/src/integrations/chat-sdk/limits.ts +3 -0
- package/src/integrations/chat-sdk/rocketchat/README.md +8 -0
- package/src/integrations/chat-sdk/rocketchat/index.ts +790 -0
- package/src/integrations/chat-sdk/rocketchat/markdown.ts +210 -0
- package/src/integrations/chat-sdk/rocketchat/types.ts +249 -0
- package/src/integrations/chat-sdk/runtime.ts +11 -5
- package/src/integrations/chat-sdk/schema.ts +37 -3
- package/src/integrations/chat-sdk/status.ts +9 -0
- package/src/mcp-client/http-client.ts +3 -1
- package/src/oauth/identity-capture.ts +6 -1
- package/src/oauth/mcp-wrapper.ts +10 -3
- package/src/oauth/wrapper.ts +15 -3
- package/src/prompts/session-templates.ts +1 -0
- package/src/providers/acp-targets.ts +2 -2
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/dsh-adapter.ts +1 -1
- package/src/providers/pi-mono-adapter.ts +4 -2
- package/src/providers/runtime-dependencies.ts +1 -1
- package/src/rbac/legacy-policy.ts +3 -0
- package/src/rbac/permissions.ts +9 -0
- package/src/scripts-runtime/executors/native.ts +225 -67
- package/src/scripts-runtime/mcp-client.ts +2 -1
- package/src/scripts-runtime/swarm-sdk.ts +2 -1
- package/src/scripts-runtime/types/stdlib.d.ts +4 -4
- package/src/scripts-runtime/types/swarm-extension.d.ts +7 -7
- package/src/scripts-runtime/types/swarm-sdk.d.ts +4 -4
- package/src/server-user.ts +98 -0
- package/src/slack/enrich.ts +14 -11
- package/src/tests/agents-list-model-display.test.ts +23 -0
- package/src/tests/apps-spike2.test.ts +35 -0
- package/src/tests/base-prompt.test.ts +1 -0
- package/src/tests/chat-sdk-rocketchat-vendored.test.ts +67 -0
- package/src/tests/chat-sdk-status-route.test.ts +13 -1
- package/src/tests/codex-app-server.test.ts +4 -6
- package/src/tests/deploy-guard.test.ts +24 -0
- package/src/tests/dsh-adapter.test.ts +1 -1
- package/src/tests/ensure-token.test.ts +2 -2
- package/src/tests/entrypoint-repo-autoclone-args.test.ts +202 -0
- package/src/tests/fake-dns.ts +47 -0
- package/src/tests/fixtures/base-prompt-baseline.json +12 -12
- package/src/tests/latest-model-report.test.ts +138 -0
- package/src/tests/mcp-oauth-dcr-reuse.test.ts +5 -2
- package/src/tests/mcp-oauth-ensure-token.test.ts +3 -2
- package/src/tests/mcp-oauth-manual-client.test.ts +6 -1
- package/src/tests/mcp-oauth-wrapper.test.ts +20 -4
- package/src/tests/mcp-outbound-fetch-guard.test.ts +169 -0
- package/src/tests/mcp-server-ssrf.test.ts +2 -0
- package/src/tests/mcp-user-route.test.ts +10 -1
- package/src/tests/memory-search-stall.test.ts +5 -0
- package/src/tests/oauth-connection-fetch-guard.test.ts +162 -0
- package/src/tests/oauth-token-endpoint-fetch-guard.test.ts +121 -0
- package/src/tests/oauth-wrapper.test.ts +1 -2
- package/src/tests/pages-head-v2.test.ts +2 -1
- package/src/tests/script-connections-http.test.ts +8 -3
- package/src/tests/script-connections-mcp.test.ts +14 -10
- package/src/tests/script-connections-sql.test.ts +6 -2
- package/src/tests/script-connections.test.ts +4 -0
- package/src/tests/slack-thread-participants.test.ts +14 -3
- package/src/tests/spend-cap-credentials.test.ts +34 -0
- package/src/tests/spend-cap-outcome.test.ts +67 -0
- package/src/tests/subscription-first.test.ts +119 -0
- package/src/tests/worktree-reaper.test.ts +424 -0
- package/src/tools/get-task-details.ts +247 -5
- package/src/tools/schedules/patch-schedule.ts +26 -1
- package/src/tools/schedules/update-schedule.ts +28 -2
- package/src/tools/script-common.ts +37 -22
- package/src/tools/script-query-types.ts +1 -1
- package/src/tools/script-run.ts +1 -1
- package/src/tools/script-search.ts +12 -10
- package/src/tools/utils.ts +7 -1
- package/src/utils/credentials.ts +36 -1
- package/src/utils/egress-guard.ts +40 -10
- package/src/utils/error-tracker.ts +17 -0
- package/templates/skills/apps/SKILL.md +191 -2
- package/templates/skills/apps/content.md +191 -2
- package/templates/skills/boards-and-sheets/content.md +11 -0
- package/templates/skills/chat-sdk/content.md +2 -2
- package/templates/skills/pages/content.md +11 -0
- package/templates/skills/swarm-docs/content.md +4 -0
- package/templates/skills/swarm-scripts/SKILL.md +1 -0
- package/templates/skills/swarm-scripts/content.md +1 -0
- package/templates/workflows/ralph-loop/content.md +6 -6
- package/dist/acp-adapter-cn53011z.js +0 -17
- package/dist/cli-pr0eze3x.js +0 -149
- package/dist/core-0fqtbrxa.js +0 -42
- package/dist/fx-adapter-k6w3jvz9.js +0 -20
- package/dist/grok-adapter-4q5tssw0.js +0 -20
- package/dist/handlers-qxgfvvsf.js +0 -41
- package/dist/heartbeat-6tr2w2da.js +0 -50
- package/dist/index-0mcxjdsa.js +0 -44
- package/dist/index-dz4q23ag.js +0 -40
- package/dist/index-s175jckx.js +0 -39
- package/dist/lead-p3hx7h35.js +0 -79
- package/dist/thread-buffer-rwa7d4dx.js +0 -42
- package/dist/worker-8rg9gz74.js +0 -79
- /package/dist/{cli-m4ejz4nj.js → cli-cah298e5.js} +0 -0
|
@@ -406,27 +406,27 @@ import {
|
|
|
406
406
|
recordInlineScriptRun2,
|
|
407
407
|
exports_db,
|
|
408
408
|
init_db4
|
|
409
|
-
} from "./cli-
|
|
409
|
+
} from "./cli-erh1rgh4.js";
|
|
410
410
|
import {
|
|
411
411
|
assertMayActOnOperatorGrantedTarget2,
|
|
412
412
|
getUserGrant2,
|
|
413
413
|
init_rbac_roles
|
|
414
|
-
} from "./cli-
|
|
414
|
+
} from "./cli-n14r8h4n.js";
|
|
415
415
|
import {
|
|
416
416
|
ensurePricingSeeded2,
|
|
417
417
|
ensureRbacSeeded2,
|
|
418
418
|
ensureModelProfilesSeeded2,
|
|
419
419
|
init_boot_seeds
|
|
420
|
-
} from "./cli-
|
|
420
|
+
} from "./cli-8qvte9hn.js";
|
|
421
421
|
import {
|
|
422
422
|
requestModelCatalogRefresh2,
|
|
423
423
|
startPricingRefreshLoop2,
|
|
424
424
|
init_pricing_refresh
|
|
425
|
-
} from "./cli-
|
|
425
|
+
} from "./cli-m1wddksc.js";
|
|
426
426
|
import {
|
|
427
427
|
workflowEventBus2,
|
|
428
428
|
init_event_bus
|
|
429
|
-
} from "./cli-
|
|
429
|
+
} from "./cli-vx9acp12.js";
|
|
430
430
|
import {
|
|
431
431
|
slackCode,
|
|
432
432
|
slackMissingScopeMessage,
|
|
@@ -435,11 +435,11 @@ import {
|
|
|
435
435
|
externalChannelToolError2,
|
|
436
436
|
getChannelBlockReason2,
|
|
437
437
|
init_external_channel
|
|
438
|
-
} from "./cli-
|
|
438
|
+
} from "./cli-ka13xx6b.js";
|
|
439
439
|
import {
|
|
440
440
|
tableToAscii2,
|
|
441
441
|
init_dist8
|
|
442
|
-
} from "./cli-
|
|
442
|
+
} from "./cli-vr4eyq6p.js";
|
|
443
443
|
import {
|
|
444
444
|
noteSlackInboundSideEffect,
|
|
445
445
|
init_inbound_dispatch,
|
|
@@ -498,7 +498,7 @@ import {
|
|
|
498
498
|
startSlackApp2,
|
|
499
499
|
stopSlackAppUnderLifecycleLock2,
|
|
500
500
|
init_app4
|
|
501
|
-
} from "./cli-
|
|
501
|
+
} from "./cli-69eq6gdk.js";
|
|
502
502
|
import {
|
|
503
503
|
AGENT_MAX_TASKS_CONFIG_KEY,
|
|
504
504
|
resetAgentMaxTasksMirror,
|
|
@@ -519,7 +519,7 @@ import {
|
|
|
519
519
|
postApprovalCancellationUpdates2,
|
|
520
520
|
createApprovalFollowUpTask2,
|
|
521
521
|
init_approval_notifications
|
|
522
|
-
} from "./cli-
|
|
522
|
+
} from "./cli-f1sdh8ca.js";
|
|
523
523
|
import {
|
|
524
524
|
shapeApprovalResolution,
|
|
525
525
|
init_approval_resolution,
|
|
@@ -543,7 +543,7 @@ import {
|
|
|
543
543
|
resumeFromChildRun2,
|
|
544
544
|
initWaitBusSubscriptions2,
|
|
545
545
|
init_resume
|
|
546
|
-
} from "./cli-
|
|
546
|
+
} from "./cli-fcwrd7bh.js";
|
|
547
547
|
import {
|
|
548
548
|
getFileStorageProvider2,
|
|
549
549
|
init_registry2
|
|
@@ -551,7 +551,7 @@ import {
|
|
|
551
551
|
import {
|
|
552
552
|
getRuntimePool2,
|
|
553
553
|
init_db2
|
|
554
|
-
} from "./cli-
|
|
554
|
+
} from "./cli-tceqvv6h.js";
|
|
555
555
|
import {
|
|
556
556
|
duplicateGuardedQueryKey,
|
|
557
557
|
parseQueryParams,
|
|
@@ -584,13 +584,13 @@ import {
|
|
|
584
584
|
findRoute,
|
|
585
585
|
route,
|
|
586
586
|
init_route_def
|
|
587
|
-
} from "./cli-
|
|
587
|
+
} from "./cli-2wde56gv.js";
|
|
588
588
|
import {
|
|
589
589
|
COMPOSIO_HTTP_METHODS,
|
|
590
590
|
executeComposioRequest,
|
|
591
591
|
composioArgsFromParts,
|
|
592
592
|
init_composio
|
|
593
|
-
} from "./cli-
|
|
593
|
+
} from "./cli-3mf04tkh.js";
|
|
594
594
|
import {
|
|
595
595
|
object,
|
|
596
596
|
init_v4_mini
|
|
@@ -686,7 +686,7 @@ import {
|
|
|
686
686
|
init_typecheck,
|
|
687
687
|
parseSkillContent,
|
|
688
688
|
init_skill_parser
|
|
689
|
-
} from "./cli-
|
|
689
|
+
} from "./cli-nkfv398a.js";
|
|
690
690
|
import {
|
|
691
691
|
detachedProcessGroup,
|
|
692
692
|
registerProcessGroup,
|
|
@@ -701,7 +701,7 @@ import {
|
|
|
701
701
|
ensureToken,
|
|
702
702
|
ensureTokenOrThrow,
|
|
703
703
|
init_ensure_token
|
|
704
|
-
} from "./cli-
|
|
704
|
+
} from "./cli-xerdrnqs.js";
|
|
705
705
|
import {
|
|
706
706
|
A1Error,
|
|
707
707
|
colName,
|
|
@@ -736,11 +736,11 @@ import {
|
|
|
736
736
|
listObjects,
|
|
737
737
|
reindexObjects,
|
|
738
738
|
init_objects
|
|
739
|
-
} from "./cli-
|
|
739
|
+
} from "./cli-wdtqkqnq.js";
|
|
740
740
|
import {
|
|
741
741
|
agentFsClientFor,
|
|
742
742
|
init_agent_fs_identity
|
|
743
|
-
} from "./cli-
|
|
743
|
+
} from "./cli-j2ybkdk2.js";
|
|
744
744
|
import {
|
|
745
745
|
FilesError,
|
|
746
746
|
providerPath,
|
|
@@ -754,7 +754,7 @@ import {
|
|
|
754
754
|
isSlackLeaveThreadDisabled,
|
|
755
755
|
leaveSlackThread,
|
|
756
756
|
init_left_threads
|
|
757
|
-
} from "./cli-
|
|
757
|
+
} from "./cli-4djg31jh.js";
|
|
758
758
|
import {
|
|
759
759
|
require_fast_deep_equal
|
|
760
760
|
} from "./cli-bhp11egn.js";
|
|
@@ -839,7 +839,7 @@ import {
|
|
|
839
839
|
validateDefinition,
|
|
840
840
|
applyDefinitionPatch,
|
|
841
841
|
init_definition2
|
|
842
|
-
} from "./cli-
|
|
842
|
+
} from "./cli-jkkcm72j.js";
|
|
843
843
|
import {
|
|
844
844
|
isMultiRuntimeEnabled,
|
|
845
845
|
init_multi_runtime2
|
|
@@ -862,16 +862,16 @@ import {
|
|
|
862
862
|
import {
|
|
863
863
|
canProvisionKind,
|
|
864
864
|
init_runtime_providers
|
|
865
|
-
} from "./cli-
|
|
865
|
+
} from "./cli-43dsqhcp.js";
|
|
866
866
|
import {
|
|
867
867
|
getSessionRoot,
|
|
868
868
|
sessionAccessForRoot,
|
|
869
869
|
init_session_shares
|
|
870
|
-
} from "./cli-
|
|
870
|
+
} from "./cli-b0kqw55g.js";
|
|
871
871
|
import {
|
|
872
872
|
publicEndpointSsrfOptions,
|
|
873
873
|
init_mcp_wrapper
|
|
874
|
-
} from "./cli-
|
|
874
|
+
} from "./cli-xysy1g8x.js";
|
|
875
875
|
import {
|
|
876
876
|
findUserById,
|
|
877
877
|
findUserByExternalId,
|
|
@@ -886,7 +886,13 @@ import {
|
|
|
886
886
|
resolveSessionToken,
|
|
887
887
|
fingerprintApiKey,
|
|
888
888
|
init_users
|
|
889
|
-
} from "./cli-
|
|
889
|
+
} from "./cli-getrvmtx.js";
|
|
890
|
+
import {
|
|
891
|
+
AMP_ESTIMATE_MODELS,
|
|
892
|
+
ampBillsCacheWrites,
|
|
893
|
+
resolveAmpModel,
|
|
894
|
+
init_amp_models
|
|
895
|
+
} from "./cli-rfejbpe1.js";
|
|
890
896
|
import {
|
|
891
897
|
resolveGitHubHost,
|
|
892
898
|
getGitHubLinkConfig,
|
|
@@ -894,12 +900,6 @@ import {
|
|
|
894
900
|
githubApiUrl,
|
|
895
901
|
init_github_host
|
|
896
902
|
} from "./cli-9ttx00s3.js";
|
|
897
|
-
import {
|
|
898
|
-
AMP_ESTIMATE_MODELS,
|
|
899
|
-
ampBillsCacheWrites,
|
|
900
|
-
resolveAmpModel,
|
|
901
|
-
init_amp_models
|
|
902
|
-
} from "./cli-rfejbpe1.js";
|
|
903
903
|
import {
|
|
904
904
|
generateDefaultClaudeMd2,
|
|
905
905
|
generateDefaultSoulMd2,
|
|
@@ -910,7 +910,7 @@ import {
|
|
|
910
910
|
init_task_attachment_links,
|
|
911
911
|
contentSha256,
|
|
912
912
|
init_profile_sync
|
|
913
|
-
} from "./cli-
|
|
913
|
+
} from "./cli-s6fhqbz1.js";
|
|
914
914
|
import {
|
|
915
915
|
getSlackConfiguration,
|
|
916
916
|
isSlackConfigured,
|
|
@@ -928,7 +928,7 @@ import {
|
|
|
928
928
|
splitCredentialPool,
|
|
929
929
|
selectCredential,
|
|
930
930
|
init_credentials2
|
|
931
|
-
} from "./cli-
|
|
931
|
+
} from "./cli-5basv0e7.js";
|
|
932
932
|
import {
|
|
933
933
|
findInterpolationTokens,
|
|
934
934
|
interpolate,
|
|
@@ -938,7 +938,7 @@ import {
|
|
|
938
938
|
init_registry3,
|
|
939
939
|
resolveTemplate,
|
|
940
940
|
init_resolver
|
|
941
|
-
} from "./cli-
|
|
941
|
+
} from "./cli-mwxez0pz.js";
|
|
942
942
|
import {
|
|
943
943
|
normalizeAssetKey,
|
|
944
944
|
defaultAssetKey,
|
|
@@ -1067,7 +1067,7 @@ import {
|
|
|
1067
1067
|
import {
|
|
1068
1068
|
init_package,
|
|
1069
1069
|
package_default
|
|
1070
|
-
} from "./cli-
|
|
1070
|
+
} from "./cli-sjk85d7v.js";
|
|
1071
1071
|
import {
|
|
1072
1072
|
getNodeEnv,
|
|
1073
1073
|
isDevOrTestNodeEnv,
|
|
@@ -1087,7 +1087,7 @@ import {
|
|
|
1087
1087
|
registerVolatileSecret,
|
|
1088
1088
|
registerSensitiveKeyName,
|
|
1089
1089
|
init_secret_scrubber
|
|
1090
|
-
} from "./cli-
|
|
1090
|
+
} from "./cli-fp65jdp2.js";
|
|
1091
1091
|
import {
|
|
1092
1092
|
__toESM,
|
|
1093
1093
|
__commonJS,
|
|
@@ -20469,7 +20469,7 @@ function startRetryPoller(registry, intervalMs = 5000) {
|
|
|
20469
20469
|
if (!waiting)
|
|
20470
20470
|
continue;
|
|
20471
20471
|
if (result.waitFor === "workflow.child.finished") {
|
|
20472
|
-
const { resumeFromChildRun } = await import("./resume-
|
|
20472
|
+
const { resumeFromChildRun } = await import("./resume-vcag4ann.js");
|
|
20473
20473
|
await resumeFromChildRun(step.id, registry);
|
|
20474
20474
|
}
|
|
20475
20475
|
} else {
|
|
@@ -21348,7 +21348,7 @@ var init_notify = __esm(() => {
|
|
|
21348
21348
|
}
|
|
21349
21349
|
}
|
|
21350
21350
|
case "slack": {
|
|
21351
|
-
const { getSlackApp } = await import("./app-
|
|
21351
|
+
const { getSlackApp } = await import("./app-535m78qw.js");
|
|
21352
21352
|
let app = getSlackApp();
|
|
21353
21353
|
if (!app) {
|
|
21354
21354
|
if (!isSlackConfigured()) {
|
|
@@ -24985,7 +24985,7 @@ function setPreloadedTools(server, names) {
|
|
|
24985
24985
|
async function applyPreToolCall(name, args, requestInfo, inputSchema) {
|
|
24986
24986
|
if (requestInfo.callOrigin !== "mcp")
|
|
24987
24987
|
return { args };
|
|
24988
|
-
const dispatcher = await import("./dispatcher-
|
|
24988
|
+
const dispatcher = await import("./dispatcher-fr4vawwb.js");
|
|
24989
24989
|
const result = await dispatcher.dispatchPre("pre.tool.call", { tool: name, args, requestInfo }, inputSchema ? {
|
|
24990
24990
|
validateModify: async (data) => {
|
|
24991
24991
|
const schema = normalizeObjectSchema(inputSchema) ?? inputSchema;
|
|
@@ -25322,7 +25322,10 @@ var init_utils = __esm(() => {
|
|
|
25322
25322
|
}
|
|
25323
25323
|
};
|
|
25324
25324
|
MCP_OVERFLOW_TTL_MS = 24 * 60 * 60 * 1000;
|
|
25325
|
-
CTX_CONTROL_EXEMPT_TOOLS = new Set([
|
|
25325
|
+
CTX_CONTROL_EXEMPT_TOOLS = new Set([
|
|
25326
|
+
"kv-get",
|
|
25327
|
+
"script-get-types"
|
|
25328
|
+
]);
|
|
25326
25329
|
FINALIZE_PIPELINE = [
|
|
25327
25330
|
scrubMiddleware,
|
|
25328
25331
|
nudgeMiddleware,
|
|
@@ -25706,7 +25709,7 @@ var init_retry = __esm(() => {
|
|
|
25706
25709
|
function headers(config) {
|
|
25707
25710
|
return {
|
|
25708
25711
|
Authorization: `Bearer ${Redacted.value(config.apiKey)}`,
|
|
25709
|
-
"X-Agent-ID": Redacted.value(config.agentId),
|
|
25712
|
+
...Redacted.value(config.agentId) ? { "X-Agent-ID": Redacted.value(config.agentId) } : {},
|
|
25710
25713
|
...config.runtimeInstanceId ? { "X-Runtime-Instance-ID": Redacted.value(config.runtimeInstanceId) } : {},
|
|
25711
25714
|
...config.auditSourceTaskId ? { "X-Audit-Source-Task-Id": Redacted.value(config.auditSourceTaskId) } : {},
|
|
25712
25715
|
...config.extensionToken ? { "X-Extension-Token": Redacted.value(config.extensionToken) } : {},
|
|
@@ -32890,7 +32893,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
32890
32893
|
const base = { ...config, apiUrl, logger };
|
|
32891
32894
|
switch (name) {
|
|
32892
32895
|
case "telegram": {
|
|
32893
|
-
const { TelegramAdapter } = await import("./index-
|
|
32896
|
+
const { TelegramAdapter } = await import("./index-ym9fgxad.js");
|
|
32894
32897
|
|
|
32895
32898
|
class SwarmTelegramAdapter extends TelegramAdapter {
|
|
32896
32899
|
isBotMentioned(message, text) {
|
|
@@ -32904,7 +32907,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
32904
32907
|
});
|
|
32905
32908
|
}
|
|
32906
32909
|
case "slack": {
|
|
32907
|
-
const { createSlackAdapter } = await import("./index-
|
|
32910
|
+
const { createSlackAdapter } = await import("./index-7dgxveck.js");
|
|
32908
32911
|
return createSlackAdapter({
|
|
32909
32912
|
...base,
|
|
32910
32913
|
signingSecret: config.signingSecret ?? "",
|
|
@@ -32914,7 +32917,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
32914
32917
|
});
|
|
32915
32918
|
}
|
|
32916
32919
|
case "discord": {
|
|
32917
|
-
const { createDiscordAdapter } = await import("./index-
|
|
32920
|
+
const { createDiscordAdapter } = await import("./index-mbpxhc4w.js");
|
|
32918
32921
|
return createDiscordAdapter({
|
|
32919
32922
|
...base,
|
|
32920
32923
|
logger: withInfoFilter(logger, keepDiscordInfoLine),
|
|
@@ -32923,7 +32926,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
32923
32926
|
});
|
|
32924
32927
|
}
|
|
32925
32928
|
case "teams": {
|
|
32926
|
-
const { createTeamsAdapter } = await import("./index-
|
|
32929
|
+
const { createTeamsAdapter } = await import("./index-maddg9ys.js");
|
|
32927
32930
|
const { teamsWebhookVerifier, teamsToken } = getChatSdkTestHooks();
|
|
32928
32931
|
return createTeamsAdapter({
|
|
32929
32932
|
...base,
|
|
@@ -32931,6 +32934,18 @@ async function loadAdapter(name, config, logger) {
|
|
|
32931
32934
|
...teamsToken ? { token: teamsToken } : {}
|
|
32932
32935
|
});
|
|
32933
32936
|
}
|
|
32937
|
+
case "rocketchat": {
|
|
32938
|
+
const { createRocketChatAdapter } = await import("./index-rz8ve510.js");
|
|
32939
|
+
const { apiUrl: _apiUrl, ...rest } = base;
|
|
32940
|
+
return createRocketChatAdapter({
|
|
32941
|
+
...rest,
|
|
32942
|
+
baseUrl: apiUrl,
|
|
32943
|
+
token: typeof config.token === "string" ? config.token : "",
|
|
32944
|
+
botUserId: typeof config.botUserId === "string" ? config.botUserId : "",
|
|
32945
|
+
webhookToken: typeof config.webhookToken === "string" ? config.webhookToken : "",
|
|
32946
|
+
userName: typeof config.userName === "string" ? config.userName : ""
|
|
32947
|
+
});
|
|
32948
|
+
}
|
|
32934
32949
|
}
|
|
32935
32950
|
}
|
|
32936
32951
|
function watchSocketConnection(adapter, logger) {
|
|
@@ -32941,7 +32956,7 @@ function watchSocketConnection(adapter, logger) {
|
|
|
32941
32956
|
client.on("unable_to_socket_mode_start", () => logger.warn("Slack socket mode unable to start, retrying"));
|
|
32942
32957
|
client.on("error", () => logger.warn("Slack socket mode error"));
|
|
32943
32958
|
}
|
|
32944
|
-
var DEFAULT_API_URLS, DISCORD_NOISY_INFO_PREFIXES;
|
|
32959
|
+
var DEFAULT_BOT_USER_NAME = "swarm", DEFAULT_API_URLS, DISCORD_NOISY_INFO_PREFIXES;
|
|
32945
32960
|
var init_adapters = __esm(() => {
|
|
32946
32961
|
init_config();
|
|
32947
32962
|
init_facts();
|
|
@@ -32951,7 +32966,8 @@ var init_adapters = __esm(() => {
|
|
|
32951
32966
|
telegram: "https://api.telegram.org",
|
|
32952
32967
|
slack: "https://slack.com/api/",
|
|
32953
32968
|
discord: "https://discord.com/api/v10",
|
|
32954
|
-
teams: ""
|
|
32969
|
+
teams: "",
|
|
32970
|
+
rocketchat: ""
|
|
32955
32971
|
};
|
|
32956
32972
|
DISCORD_NOISY_INFO_PREFIXES = [
|
|
32957
32973
|
"Discord Gateway message received",
|
|
@@ -33132,7 +33148,7 @@ async function readPersistedThreadHistory(threadId) {
|
|
|
33132
33148
|
const rows = await new SqliteChatState().getList(`${SDK_THREAD_HISTORY_PREFIX}${threadId}`);
|
|
33133
33149
|
if (rows.length === 0)
|
|
33134
33150
|
return [];
|
|
33135
|
-
const { Message: MessageClass } = await import("./index-
|
|
33151
|
+
const { Message: MessageClass } = await import("./index-whysn1wf.js");
|
|
33136
33152
|
return rows.map((row) => MessageClass.fromJSON(row));
|
|
33137
33153
|
}
|
|
33138
33154
|
var SDK_THREAD_HISTORY_PREFIX = "msg-history:";
|
|
@@ -34218,7 +34234,8 @@ var init_limits = __esm(() => {
|
|
|
34218
34234
|
telegram: 4096,
|
|
34219
34235
|
discord: 2000,
|
|
34220
34236
|
slack: 4000,
|
|
34221
|
-
teams: 20000
|
|
34237
|
+
teams: 20000,
|
|
34238
|
+
rocketchat: 5000
|
|
34222
34239
|
};
|
|
34223
34240
|
MB2 = 1024 * 1024;
|
|
34224
34241
|
CHAT_UPLOAD_LIMITS = {
|
|
@@ -35735,7 +35752,7 @@ async function startAdapter(name, config, state, ChatClass) {
|
|
|
35735
35752
|
const chat = new ChatClass({
|
|
35736
35753
|
adapters: { [name]: adapter },
|
|
35737
35754
|
state,
|
|
35738
|
-
userName: typeof config.userName === "string" ? config.userName :
|
|
35755
|
+
userName: typeof config.userName === "string" ? config.userName : DEFAULT_BOT_USER_NAME,
|
|
35739
35756
|
logger,
|
|
35740
35757
|
concurrency: "concurrent"
|
|
35741
35758
|
});
|
|
@@ -35788,7 +35805,7 @@ async function startChatSdk() {
|
|
|
35788
35805
|
for (const [name, reason] of Object.entries(config.incomplete ?? {})) {
|
|
35789
35806
|
console.warn(`[chat-sdk] ${name} not started, incomplete: ${scrubSecrets(reason)}`);
|
|
35790
35807
|
}
|
|
35791
|
-
const { Chat: ChatClass } = await import("./index-
|
|
35808
|
+
const { Chat: ChatClass } = await import("./index-whysn1wf.js");
|
|
35792
35809
|
const state = new SqliteChatState;
|
|
35793
35810
|
startChatRelayWatcher();
|
|
35794
35811
|
await Promise.all(CHAT_SDK_ADAPTER_NAMES.map(async (name) => {
|
|
@@ -35881,7 +35898,7 @@ async function restartChatSdkIfConfigChanged() {
|
|
|
35881
35898
|
return false;
|
|
35882
35899
|
}
|
|
35883
35900
|
}
|
|
35884
|
-
var instances, health2, stopping = false, appliedFingerprint,
|
|
35901
|
+
var instances, health2, stopping = false, appliedFingerprint, SHUTDOWN_BUDGET_MS = 1e4, RELOAD_START_BUDGET_MS = 15000, SECRET_FIELDS;
|
|
35885
35902
|
var init_runtime = __esm(() => {
|
|
35886
35903
|
init_env_flag();
|
|
35887
35904
|
init_secret_scrubber();
|
|
@@ -35900,7 +35917,15 @@ var init_runtime = __esm(() => {
|
|
|
35900
35917
|
init_typing();
|
|
35901
35918
|
instances = new Map;
|
|
35902
35919
|
health2 = new Map;
|
|
35903
|
-
SECRET_FIELDS = [
|
|
35920
|
+
SECRET_FIELDS = [
|
|
35921
|
+
"botToken",
|
|
35922
|
+
"secretToken",
|
|
35923
|
+
"signingSecret",
|
|
35924
|
+
"appToken",
|
|
35925
|
+
"appPassword",
|
|
35926
|
+
"token",
|
|
35927
|
+
"webhookToken"
|
|
35928
|
+
];
|
|
35904
35929
|
});
|
|
35905
35930
|
|
|
35906
35931
|
// src/jira/adf.ts
|
|
@@ -36697,7 +36722,7 @@ async function notifySlack(text) {
|
|
|
36697
36722
|
return;
|
|
36698
36723
|
}
|
|
36699
36724
|
try {
|
|
36700
|
-
const { getSlackApp } = await import("./app-
|
|
36725
|
+
const { getSlackApp } = await import("./app-535m78qw.js");
|
|
36701
36726
|
const app = getSlackApp();
|
|
36702
36727
|
if (!app) {
|
|
36703
36728
|
console.warn("[Jira webhook keepalive] Slack not available, cannot send notification");
|
|
@@ -36768,7 +36793,7 @@ async function deleteJiraWebhook(webhookId) {
|
|
|
36768
36793
|
console.log(`[Jira webhook keepalive] Deleted webhook id=${webhookId}`);
|
|
36769
36794
|
}
|
|
36770
36795
|
async function overwriteWebhookIds(next) {
|
|
36771
|
-
const { getDbClient } = await import("./db-
|
|
36796
|
+
const { getDbClient } = await import("./db-spg81qtr.js");
|
|
36772
36797
|
await getDbClient().transaction(async (tx) => {
|
|
36773
36798
|
const row = await tx.get("SELECT metadata FROM oauth_apps WHERE provider = 'jira'");
|
|
36774
36799
|
if (!row) {
|
|
@@ -110262,7 +110287,7 @@ async function loadGlobalConfigsIntoEnv2(override = false) {
|
|
|
110262
110287
|
if (updated.length > 0) {
|
|
110263
110288
|
refreshSecretScrubberCache();
|
|
110264
110289
|
}
|
|
110265
|
-
const { syncSlackTreeVisibility } = await import("./tree-visibility-
|
|
110290
|
+
const { syncSlackTreeVisibility } = await import("./tree-visibility-dwzc8en0.js");
|
|
110266
110291
|
await syncSlackTreeVisibility();
|
|
110267
110292
|
return updated;
|
|
110268
110293
|
}
|
|
@@ -110270,7 +110295,7 @@ async function reloadGlobalConfigsAndIntegrations2() {
|
|
|
110270
110295
|
return runWithoutRequestAuth(() => runSlackLifecycleExclusive(() => reloadGlobalConfigsAndIntegrationsInner()));
|
|
110271
110296
|
}
|
|
110272
110297
|
async function reloadGlobalConfigsAndIntegrationsInner() {
|
|
110273
|
-
const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-
|
|
110298
|
+
const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-we3nd2t0.js");
|
|
110274
110299
|
const wasEmbeddingsConfigured = getEmbeddingProvider().isConfigured();
|
|
110275
110300
|
const updated = await loadGlobalConfigsIntoEnv2(true);
|
|
110276
110301
|
await syncTelemetryEnabled("settings").catch((err) => {
|
|
@@ -110286,7 +110311,7 @@ async function reloadGlobalConfigsAndIntegrationsInner() {
|
|
|
110286
110311
|
integrations.push("embeddings");
|
|
110287
110312
|
}
|
|
110288
110313
|
if (isEmbeddingsConfigured) {
|
|
110289
|
-
import("./embedding-space-
|
|
110314
|
+
import("./embedding-space-an77f45k.js").then(({ runEmbeddingMaintenance }) => runEmbeddingMaintenance({ backfill: !wasEmbeddingsConfigured })).catch((err) => {
|
|
110290
110315
|
console.error("[config-reload] embedding maintenance failed (non-fatal):", err);
|
|
110291
110316
|
});
|
|
110292
110317
|
}
|
|
@@ -117480,7 +117505,139 @@ function getUserCommsPrefs(user) {
|
|
|
117480
117505
|
var init_requester_comms = () => {};
|
|
117481
117506
|
|
|
117482
117507
|
// src/tools/get-task-details.ts
|
|
117483
|
-
|
|
117508
|
+
function head(value, chars) {
|
|
117509
|
+
const code = value.charCodeAt(chars - 1);
|
|
117510
|
+
return value.slice(0, code >= 55296 && code <= 56319 ? chars - 1 : chars);
|
|
117511
|
+
}
|
|
117512
|
+
function fitToBudget(full, include) {
|
|
117513
|
+
if (jsonBytes(full) <= FIT_BUDGET_BYTES)
|
|
117514
|
+
return full;
|
|
117515
|
+
const fitted = { budgetBytes: FIT_BUDGET_BYTES };
|
|
117516
|
+
const reduced = [];
|
|
117517
|
+
let task = full.task;
|
|
117518
|
+
let requestedBy = full.requestedBy;
|
|
117519
|
+
let logs = full.logs;
|
|
117520
|
+
const view = () => ({
|
|
117521
|
+
...full,
|
|
117522
|
+
task,
|
|
117523
|
+
requestedBy,
|
|
117524
|
+
logs,
|
|
117525
|
+
fitted: { ...fitted, include: reduced }
|
|
117526
|
+
});
|
|
117527
|
+
const fits = () => jsonBytes(view()) <= FIT_BUDGET_BYTES;
|
|
117528
|
+
if (!include.has("logs")) {
|
|
117529
|
+
reduced.push("logs");
|
|
117530
|
+
const taskAgentId = full.task.agentId;
|
|
117531
|
+
const compact = full.logs.map(({ taskId: _sameTask, agentId, ...rest }) => agentId && agentId !== taskAgentId ? { ...rest, agentId } : rest);
|
|
117532
|
+
logs = compact;
|
|
117533
|
+
fitted.logs = {
|
|
117534
|
+
compacted: "Log rows omit taskId (always this task) and agentId where it equals task.agentId."
|
|
117535
|
+
};
|
|
117536
|
+
if (!fits()) {
|
|
117537
|
+
let newestProgress = -1;
|
|
117538
|
+
compact.forEach((log, i) => {
|
|
117539
|
+
if (log.eventType === "task_progress")
|
|
117540
|
+
newestProgress = i;
|
|
117541
|
+
});
|
|
117542
|
+
const droppable = compact.map((_log, i) => i).filter((i) => i !== newestProgress && !LIFECYCLE_EVENTS.has(compact[i]?.eventType ?? ""));
|
|
117543
|
+
const { compacted } = fitted.logs;
|
|
117544
|
+
const without = (count) => {
|
|
117545
|
+
const drop = new Set(droppable.slice(0, count));
|
|
117546
|
+
const byEventType = {};
|
|
117547
|
+
for (const i of drop) {
|
|
117548
|
+
const type = compact[i]?.eventType ?? "unknown";
|
|
117549
|
+
byEventType[type] = (byEventType[type] ?? 0) + 1;
|
|
117550
|
+
}
|
|
117551
|
+
fitted.logs = count > 0 ? { compacted, omitted: count, omittedByEventType: byEventType } : { compacted };
|
|
117552
|
+
return compact.filter((_, i) => !drop.has(i));
|
|
117553
|
+
};
|
|
117554
|
+
let low = 1;
|
|
117555
|
+
let high = droppable.length;
|
|
117556
|
+
while (low < high) {
|
|
117557
|
+
const mid = Math.floor((low + high) / 2);
|
|
117558
|
+
logs = without(mid);
|
|
117559
|
+
if (fits())
|
|
117560
|
+
high = mid;
|
|
117561
|
+
else
|
|
117562
|
+
low = mid + 1;
|
|
117563
|
+
}
|
|
117564
|
+
const dropped = Math.min(low, droppable.length);
|
|
117565
|
+
logs = without(dropped);
|
|
117566
|
+
}
|
|
117567
|
+
}
|
|
117568
|
+
if (!fits() && !include.has("text")) {
|
|
117569
|
+
reduced.push("text");
|
|
117570
|
+
fitted.text = [];
|
|
117571
|
+
task = { ...task };
|
|
117572
|
+
if (requestedBy) {
|
|
117573
|
+
const comms = requestedBy.comms;
|
|
117574
|
+
requestedBy = {
|
|
117575
|
+
...requestedBy,
|
|
117576
|
+
...comms && typeof comms === "object" ? { comms: { ...comms } } : {}
|
|
117577
|
+
};
|
|
117578
|
+
}
|
|
117579
|
+
const shortenLogs = !include.has("logs");
|
|
117580
|
+
if (shortenLogs)
|
|
117581
|
+
logs = logs.map((log) => ({ ...log }));
|
|
117582
|
+
const slots = () => {
|
|
117583
|
+
const out = [];
|
|
117584
|
+
const mutableTask = task;
|
|
117585
|
+
for (const key of TASK_TEXT_FIELDS) {
|
|
117586
|
+
const value = mutableTask[key];
|
|
117587
|
+
if (typeof value === "string") {
|
|
117588
|
+
out.push({ field: `task.${key}`, value, set: (next) => mutableTask[key] = next });
|
|
117589
|
+
}
|
|
117590
|
+
}
|
|
117591
|
+
const owner = requestedBy;
|
|
117592
|
+
const comms = owner?.comms;
|
|
117593
|
+
for (const [prefix, record] of [
|
|
117594
|
+
["requestedBy", owner],
|
|
117595
|
+
["requestedBy.comms", comms]
|
|
117596
|
+
]) {
|
|
117597
|
+
if (!record)
|
|
117598
|
+
continue;
|
|
117599
|
+
for (const [key, value] of Object.entries(record)) {
|
|
117600
|
+
if (typeof value === "string" && key !== "name" && key !== "email" && key !== "role") {
|
|
117601
|
+
out.push({ field: `${prefix}.${key}`, value, set: (next) => record[key] = next });
|
|
117602
|
+
}
|
|
117603
|
+
}
|
|
117604
|
+
}
|
|
117605
|
+
if (shortenLogs) {
|
|
117606
|
+
logs.forEach((log, i) => {
|
|
117607
|
+
for (const key of ["newValue", "oldValue", "metadata"]) {
|
|
117608
|
+
const value = log[key];
|
|
117609
|
+
if (typeof value === "string") {
|
|
117610
|
+
out.push({ field: `logs[${i}].${key}`, value, set: (next) => log[key] = next });
|
|
117611
|
+
}
|
|
117612
|
+
}
|
|
117613
|
+
});
|
|
117614
|
+
}
|
|
117615
|
+
return out;
|
|
117616
|
+
};
|
|
117617
|
+
const original = new Map;
|
|
117618
|
+
for (let round = 0;round < 40 && !fits(); round++) {
|
|
117619
|
+
const over = jsonBytes(view()) - FIT_BUDGET_BYTES;
|
|
117620
|
+
const longest = slots().reduce((best, slot) => !best || slot.value.length > best.value.length ? slot : best, undefined);
|
|
117621
|
+
if (!longest || longest.value.length <= MIN_TEXT_CHARS + 120)
|
|
117622
|
+
break;
|
|
117623
|
+
const first = original.get(longest.field) ?? longest.value.length;
|
|
117624
|
+
original.set(longest.field, first);
|
|
117625
|
+
const keep = Math.max(MIN_TEXT_CHARS, longest.value.length - over - 120);
|
|
117626
|
+
longest.set(`${head(longest.value, keep)}… [cut, ${first} chars in full; include "text" for all]`);
|
|
117627
|
+
const existing = fitted.text.find((entry) => entry.field === longest.field);
|
|
117628
|
+
if (existing)
|
|
117629
|
+
existing.keptChars = keep;
|
|
117630
|
+
else
|
|
117631
|
+
fitted.text.push({ field: longest.field, originalChars: first, keptChars: keep });
|
|
117632
|
+
}
|
|
117633
|
+
if (fitted.text.length === 0) {
|
|
117634
|
+
delete fitted.text;
|
|
117635
|
+
reduced.pop();
|
|
117636
|
+
}
|
|
117637
|
+
}
|
|
117638
|
+
return view();
|
|
117639
|
+
}
|
|
117640
|
+
async function getTaskDetailsHandler(ctx, { taskId, include }) {
|
|
117484
117641
|
const task = await getTaskById2(taskId);
|
|
117485
117642
|
const agentId = ctx.kind === "owner" ? ctx.agentId : undefined;
|
|
117486
117643
|
if (!task) {
|
|
@@ -117499,22 +117656,26 @@ async function getTaskDetailsHandler(ctx, { taskId }) {
|
|
|
117499
117656
|
notes: requestedByUser.notes,
|
|
117500
117657
|
comms: getUserCommsPrefs(requestedByUser)
|
|
117501
117658
|
} : undefined;
|
|
117502
|
-
const
|
|
117659
|
+
const full = {
|
|
117503
117660
|
yourAgentId: agentId,
|
|
117504
117661
|
task,
|
|
117505
117662
|
requestedBy,
|
|
117506
117663
|
logs,
|
|
117507
117664
|
attachments
|
|
117508
117665
|
};
|
|
117509
|
-
|
|
117666
|
+
const origin = ctx.kind === "owner" ? ctx.requestInfo?.callOrigin : undefined;
|
|
117667
|
+
const data = origin === "script-sdk" || origin === "extension" ? full : fitToBudget(full, new Set(include ?? []));
|
|
117668
|
+
const reducedParts = data.fitted?.include ?? [];
|
|
117669
|
+
const fitNote = reducedParts.length ? ` Fitted to the size budget; include ${JSON.stringify(reducedParts)} for the rest.` : "";
|
|
117670
|
+
return toolOk(`Task "${taskId}" (${task.status}) details retrieved.${fitNote}`, {
|
|
117510
117671
|
details: JSON.stringify(data),
|
|
117511
117672
|
data
|
|
117512
117673
|
});
|
|
117513
117674
|
}
|
|
117514
|
-
var getTaskDetailsInputSchema, looseFollowUpConfigSchema, looseRoutingAffinitySchema, looseAgentTaskOutputSchema, looseAgentLogSchema, looseTaskAttachmentSchema, getTaskDetailsOutputSchema, registerGetTaskDetailsTool = (server) => {
|
|
117675
|
+
var GET_TASK_DETAILS_INCLUDE, getTaskDetailsInputSchema, looseFollowUpConfigSchema, looseRoutingAffinitySchema, looseAgentTaskOutputSchema, looseAgentLogSchema, looseTaskAttachmentSchema, getTaskDetailsOutputSchema, FIT_BUDGET_BYTES = 9000, LIFECYCLE_EVENTS, MIN_TEXT_CHARS = 280, TASK_TEXT_FIELDS, jsonBytes = (value) => Buffer.byteLength(JSON.stringify(value), "utf8"), registerGetTaskDetailsTool = (server) => {
|
|
117515
117676
|
createToolRegistrar(server)("get-task-details", {
|
|
117516
117677
|
title: "Get task details",
|
|
117517
|
-
description:
|
|
117678
|
+
description: 'Returns detailed information about a specific task, including output, failure reason, attachments and log history. A response over the size budget is fitted with the least loss: log rows drop fields that repeat the task, then the oldest non-lifecycle rows, then the longest text is cut. `fitted` lists each reduction; include ["logs", "text"] returns the rest.',
|
|
117518
117679
|
annotations: { readOnlyHint: true },
|
|
117519
117680
|
inputSchema: getTaskDetailsInputSchema,
|
|
117520
117681
|
outputSchema: getTaskDetailsOutputSchema
|
|
@@ -117527,8 +117688,10 @@ var init_get_task_details = __esm(() => {
|
|
|
117527
117688
|
init_utils();
|
|
117528
117689
|
init_types5();
|
|
117529
117690
|
init_requester_comms();
|
|
117691
|
+
GET_TASK_DETAILS_INCLUDE = ["logs", "text"];
|
|
117530
117692
|
getTaskDetailsInputSchema = object2({
|
|
117531
|
-
taskId: uuid().describe("The ID of the task to get details for.")
|
|
117693
|
+
taskId: uuid().describe("The ID of the task to get details for."),
|
|
117694
|
+
include: array2(_enum2(GET_TASK_DETAILS_INCLUDE)).optional().describe('Opt out of the size fit. A response that fits the budget is never reduced. One that does not is reduced only as far as needed, and `fitted` lists what changed. "logs": every log row verbatim. "text": every text field (task, output, progress, failureReason, requester notes, log values) uncut. A result over the wire limit still spills to KV.')
|
|
117532
117695
|
});
|
|
117533
117696
|
looseFollowUpConfigSchema = looseObject({
|
|
117534
117697
|
disabled: boolean().optional(),
|
|
@@ -117663,8 +117826,24 @@ var init_get_task_details = __esm(() => {
|
|
|
117663
117826
|
}).optional()
|
|
117664
117827
|
}).optional().describe("Resolved user who requested this task, with role/notes and structured communication preferences (users.metadata.comms) when set"),
|
|
117665
117828
|
logs: array2(looseAgentLogSchema).optional(),
|
|
117666
|
-
attachments: array2(looseTaskAttachmentSchema).optional().describe("Pointer-based artifacts attached to this task via store-progress, ordered by created_at.")
|
|
117829
|
+
attachments: array2(looseTaskAttachmentSchema).optional().describe("Pointer-based artifacts attached to this task via store-progress, ordered by created_at."),
|
|
117830
|
+
fitted: looseObject({
|
|
117831
|
+
budgetBytes: number2().optional(),
|
|
117832
|
+
logs: looseObject({
|
|
117833
|
+
compacted: string2().optional(),
|
|
117834
|
+
omitted: number2().optional(),
|
|
117835
|
+
omittedByEventType: record2(string2(), number2()).optional()
|
|
117836
|
+
}).optional(),
|
|
117837
|
+
text: array2(looseObject({
|
|
117838
|
+
field: string2().optional(),
|
|
117839
|
+
originalChars: number2().optional(),
|
|
117840
|
+
keptChars: number2().optional()
|
|
117841
|
+
})).optional(),
|
|
117842
|
+
include: array2(string2()).optional()
|
|
117843
|
+
}).optional().describe("Present only when the full response passed the size budget: what was reduced to fit, and the include values that return it.")
|
|
117667
117844
|
});
|
|
117845
|
+
LIFECYCLE_EVENTS = new Set(["task_created", "task_status_change"]);
|
|
117846
|
+
TASK_TEXT_FIELDS = ["task", "output", "progress", "failureReason"];
|
|
117668
117847
|
});
|
|
117669
117848
|
|
|
117670
117849
|
// src/tools/cancel-task.ts
|
|
@@ -117898,7 +118077,7 @@ ${issues.map((issue) => `- ${issue}`).join(`
|
|
|
117898
118077
|
`)}`;
|
|
117899
118078
|
}
|
|
117900
118079
|
async function cardToSlack(card) {
|
|
117901
|
-
const { cardToBlockKit, cardToFallbackText } = await import("./index-
|
|
118080
|
+
const { cardToBlockKit, cardToFallbackText } = await import("./index-7dgxveck.js");
|
|
117902
118081
|
const issues = cardChildren(card).flatMap((child) => {
|
|
117903
118082
|
const native = NATIVE_SLACK_BLOCKS[child.type];
|
|
117904
118083
|
if (!native)
|
|
@@ -123759,25 +123938,26 @@ ${stderr}` : undefined)
|
|
|
123759
123938
|
}
|
|
123760
123939
|
return;
|
|
123761
123940
|
}
|
|
123941
|
+
function scriptsApiToolResult(data, res, args) {
|
|
123942
|
+
const toolData = { status: res.status, data };
|
|
123943
|
+
const failure = describeScriptFailure(res.ok, res.status, data);
|
|
123944
|
+
if (failure) {
|
|
123945
|
+
return toolErr(failure.message, {
|
|
123946
|
+
details: failure.details ?? capDetails(args.failureDetails?.(data)),
|
|
123947
|
+
data: toolData
|
|
123948
|
+
});
|
|
123949
|
+
}
|
|
123950
|
+
const successDetails = args.successDetails?.(data);
|
|
123951
|
+
return toolOk(args.successMessage(data), {
|
|
123952
|
+
details: args.uncappedDetails ? successDetails : capDetails(successDetails),
|
|
123953
|
+
data: toolData
|
|
123954
|
+
});
|
|
123955
|
+
}
|
|
123762
123956
|
async function proxyScriptsApi(args) {
|
|
123763
123957
|
return proxySwarmApi({
|
|
123764
123958
|
...args,
|
|
123765
123959
|
transportError: SCRIPT_TRANSPORT_ERROR,
|
|
123766
|
-
respond: (data, res) =>
|
|
123767
|
-
const toolData = { status: res.status, data };
|
|
123768
|
-
const failure = describeScriptFailure(res.ok, res.status, data);
|
|
123769
|
-
if (failure) {
|
|
123770
|
-
return toolErr(failure.message, {
|
|
123771
|
-
details: failure.details ?? capDetails(args.failureDetails?.(data)),
|
|
123772
|
-
data: toolData
|
|
123773
|
-
});
|
|
123774
|
-
}
|
|
123775
|
-
const successDetails = args.successDetails?.(data);
|
|
123776
|
-
return toolOk(args.successMessage(data), {
|
|
123777
|
-
details: args.uncappedDetails ? successDetails : capDetails(successDetails),
|
|
123778
|
-
data: toolData
|
|
123779
|
-
});
|
|
123780
|
-
}
|
|
123960
|
+
respond: (data, res) => scriptsApiToolResult(data, res, args)
|
|
123781
123961
|
});
|
|
123782
123962
|
}
|
|
123783
123963
|
async function proxySwarmApi(args) {
|
|
@@ -136292,7 +136472,20 @@ function validateRecurringTiming(merged) {
|
|
|
136292
136472
|
}
|
|
136293
136473
|
return null;
|
|
136294
136474
|
}
|
|
136295
|
-
|
|
136475
|
+
function changesScheduleTarget(existing, patch) {
|
|
136476
|
+
return SCHEDULE_TARGET_FIELDS.some((field) => patch[field] !== undefined && !Bun.deepEquals(patch[field] ?? null, existing[field] ?? null));
|
|
136477
|
+
}
|
|
136478
|
+
var SCHEDULE_TARGET_FIELDS;
|
|
136479
|
+
var init_validate = __esm(() => {
|
|
136480
|
+
SCHEDULE_TARGET_FIELDS = [
|
|
136481
|
+
"targetType",
|
|
136482
|
+
"taskTemplate",
|
|
136483
|
+
"workflowId",
|
|
136484
|
+
"scriptName",
|
|
136485
|
+
"scriptArgs",
|
|
136486
|
+
"params"
|
|
136487
|
+
];
|
|
136488
|
+
});
|
|
136296
136489
|
|
|
136297
136490
|
// src/tools/schedules/patch-schedule.ts
|
|
136298
136491
|
var import_cron_parser3, patchScheduleInputSchema, scheduleDataShape2, registerPatchScheduleTool = (server) => {
|
|
@@ -136349,6 +136542,20 @@ var import_cron_parser3, patchScheduleInputSchema, scheduleDataShape2, registerP
|
|
|
136349
136542
|
}).allow) {
|
|
136350
136543
|
return toolErr(`Schedule "${schedule.name}" defers another agent's task. Only that agent or a lead can change it.`);
|
|
136351
136544
|
}
|
|
136545
|
+
if (changesScheduleTarget(schedule, {
|
|
136546
|
+
targetType,
|
|
136547
|
+
taskTemplate,
|
|
136548
|
+
workflowId,
|
|
136549
|
+
scriptName,
|
|
136550
|
+
scriptArgs
|
|
136551
|
+
}) && !can({
|
|
136552
|
+
principal: { kind: "agent", agentId: caller.id, isLead: caller.isLead },
|
|
136553
|
+
verb: "schedule.target.update.any",
|
|
136554
|
+
resource: { kind: "owned", ownerAgentId: schedule.createdByAgentId },
|
|
136555
|
+
source: "mcp"
|
|
136556
|
+
}).allow) {
|
|
136557
|
+
return toolErr(`Schedule "${schedule.name}" runs as the agent that created it. Only that agent or a lead can change its targetType, taskTemplate, workflowId, scriptName or scriptArgs.`);
|
|
136558
|
+
}
|
|
136352
136559
|
if (schedule.scheduleType === "one_time" && !schedule.enabled && schedule.lastRunAt) {
|
|
136353
136560
|
return toolErr(`One-time schedule "${schedule.name}" has already executed. Create a new one instead.`);
|
|
136354
136561
|
}
|
|
@@ -136662,7 +136869,7 @@ var import_cron_parser4, updateScheduleInputSchema, scheduleDataShape3, register
|
|
|
136662
136869
|
createToolRegistrar(server)("update-schedule", {
|
|
136663
136870
|
title: "Update Scheduled Task",
|
|
136664
136871
|
annotations: { idempotentHint: true },
|
|
136665
|
-
description: "Update an existing scheduled task. Any registered agent can update schedules.",
|
|
136872
|
+
description: "Update an existing scheduled task. Any registered agent can update schedules; only the creator or a lead can change what one runs (targetType, taskTemplate, workflowId, scriptName, scriptArgs).",
|
|
136666
136873
|
inputSchema: updateScheduleInputSchema,
|
|
136667
136874
|
outputSchema: swarmToolOutputSchema({
|
|
136668
136875
|
yourAgentId: string2().optional(),
|
|
@@ -136712,6 +136919,20 @@ var import_cron_parser4, updateScheduleInputSchema, scheduleDataShape3, register
|
|
|
136712
136919
|
}).allow) {
|
|
136713
136920
|
return toolErr(`Schedule "${schedule.name}" defers another agent's task. Only that agent or a lead can change it.`);
|
|
136714
136921
|
}
|
|
136922
|
+
if (changesScheduleTarget(schedule, {
|
|
136923
|
+
targetType,
|
|
136924
|
+
taskTemplate,
|
|
136925
|
+
workflowId,
|
|
136926
|
+
scriptName,
|
|
136927
|
+
scriptArgs
|
|
136928
|
+
}) && !can({
|
|
136929
|
+
principal: { kind: "agent", agentId: caller.id, isLead: caller.isLead },
|
|
136930
|
+
verb: "schedule.target.update.any",
|
|
136931
|
+
resource: { kind: "owned", ownerAgentId: schedule.createdByAgentId },
|
|
136932
|
+
source: "mcp"
|
|
136933
|
+
}).allow) {
|
|
136934
|
+
return toolErr(`Schedule "${schedule.name}" runs as the agent that created it. Only that agent or a lead can change its targetType, taskTemplate, workflowId, scriptName or scriptArgs.`);
|
|
136935
|
+
}
|
|
136715
136936
|
if (schedule.scheduleType === "one_time" && !schedule.enabled && schedule.lastRunAt) {
|
|
136716
136937
|
return toolErr(`One-time schedule "${schedule.name}" has already executed. Create a new one instead.`);
|
|
136717
136938
|
}
|
|
@@ -137716,6 +137937,10 @@ function renderSearchResults(data) {
|
|
|
137716
137937
|
}).join(`
|
|
137717
137938
|
`);
|
|
137718
137939
|
}
|
|
137940
|
+
function searchSuccessMessage(data) {
|
|
137941
|
+
const results = typeof data === "object" && data !== null && Array.isArray(data.results) ? data.results : [];
|
|
137942
|
+
return `Found ${results.length} script(s).`;
|
|
137943
|
+
}
|
|
137719
137944
|
var SCRIPT_SEARCH_DESCRIPTION = "Semantic search over swarm-shared TypeScript scripts (catalog persisted in the agent-swarm DB; callable from agents and workflows). For ephemeral throwaway TS on your local machine, use code-mode instead.", registerScriptSearchTool = (server) => {
|
|
137720
137945
|
createToolRegistrar(server)("script-search", {
|
|
137721
137946
|
title: "Script Search",
|
|
@@ -137732,10 +137957,7 @@ var SCRIPT_SEARCH_DESCRIPTION = "Semantic search over swarm-shared TypeScript sc
|
|
|
137732
137957
|
path: "/api/scripts/search",
|
|
137733
137958
|
body: args,
|
|
137734
137959
|
requestInfo,
|
|
137735
|
-
successMessage:
|
|
137736
|
-
const results = typeof data === "object" && data !== null && Array.isArray(data.results) ? data.results : [];
|
|
137737
|
-
return `Found ${results.length} script(s).`;
|
|
137738
|
-
},
|
|
137960
|
+
successMessage: searchSuccessMessage,
|
|
137739
137961
|
successDetails: renderSearchResults
|
|
137740
137962
|
}));
|
|
137741
137963
|
};
|
|
@@ -142900,7 +143122,7 @@ async function readScriptActionAllowlist() {
|
|
|
142900
143122
|
const [row] = await getSwarmConfigs2({ scope: "global", key: UI_SPEC_SCRIPT_ACTIONS_KEY });
|
|
142901
143123
|
if (row)
|
|
142902
143124
|
return row.value;
|
|
142903
|
-
const { getDeploymentEnvValue } = await import("./core-
|
|
143125
|
+
const { getDeploymentEnvValue } = await import("./core-2b8bv6ny.js");
|
|
142904
143126
|
return getDeploymentEnvValue(UI_SPEC_SCRIPT_ACTIONS_KEY);
|
|
142905
143127
|
}
|
|
142906
143128
|
async function loadScriptActionLookups() {
|
|
@@ -144787,7 +145009,7 @@ async function emitBudgetRefusalSideEffects(ctx, inserted) {
|
|
|
144787
145009
|
console.warn(`[budget-refusal-notify] Failed to create follow-up task for budget refusal (task=${ctx.task.id.slice(0, 8)}): ${err}`);
|
|
144788
145010
|
}
|
|
144789
145011
|
}
|
|
144790
|
-
import("./event-bus-
|
|
145012
|
+
import("./event-bus-08t2b4y2.js").then(({ workflowEventBus }) => {
|
|
144791
145013
|
workflowEventBus.emit("task.budget_refused", {
|
|
144792
145014
|
taskId: ctx.task.id,
|
|
144793
145015
|
agentId: ctx.agentId,
|
|
@@ -147384,4 +147606,4 @@ var init_server = __esm(() => {
|
|
|
147384
147606
|
loggedToolAllowlistWarnings = new Set;
|
|
147385
147607
|
});
|
|
147386
147608
|
|
|
147387
|
-
export { safeParse, getObjectShape, getLiteralValue, init_zod_compat, LATEST_PROTOCOL_VERSION, DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, isJSONRPCRequest, isJSONRPCResultResponse, ErrorCode, isJSONRPCErrorResponse, JSONRPCMessageSchema, EmptyResultSchema, isInitializeRequest, InitializeResultSchema, CreateTaskResultSchema, ListResourcesResultSchema, ListResourceTemplatesResultSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, ListPromptsResultSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ListToolsResultSchema, CallToolResultSchema, ToolListChangedNotificationSchema, ListChangedOptionsBaseSchema, CreateMessageRequestSchema, CreateMessageResultSchema, CreateMessageResultWithToolsSchema, ElicitRequestSchema, ElicitResultSchema, CompleteResultSchema, McpError, init_types, Protocol, mergeCapabilities, init_protocol, AjvJsonSchemaValidator, init_ajv_provider, assertToolsCallTaskCapability, assertClientRequestTaskCapability, init_helpers, McpServer, init_mcp, referencedBundlePaths, skillDirs, init_manifest_format, recoverIncompleteRuns, init_recovery, handleWebhookTrigger, verifyHmacSignature, decodeStandardWebhookSecret, verifyStandardWebhookSignature, verifyTokenEquality, WebhookError, init_triggers, snapshotAndUpdateWorkflow, init_version, applyPreTaskCreate, init_apply_task_create, RawLlmConfigSchema, RawLlmOutputSchema, executeRawLlm, init_raw_llm, getExecutorRegistry2, initWorkflows2, init_workflows, isGitHubEnabled, initGitHub, verifyWebhookSignature, getWorkerInstallationToken, init_app, isReservedProviderEvent, init_event_waits, stripSiblingBlock, init_sibling_block, createTaskWithSiblingAwareness, init_sibling_awareness, dispatchScheduleTarget, calculateNextRun2, startScheduler2, stopScheduler2, runScheduleNow2, init_scheduler, ExtensionAssetConflictError, hashOf, scriptHash, liveScriptSpec, liveWorkflowSpec, skillSpecOf, liveSkillSpec, skillHash, init_assets, ExtensionOwnershipError, getExtensionFiles, getExtensionById, getExtensionByName, listExtensions, listExtensionVersions, updateExtensionMeta, listExtensionRuns, init_db, SDK_ALLOWLIST, mcpToolNameForSdkMethod, init_sdk_allowlist, MCP_OVERFLOW_NAMESPACE, mcpOverflowAuthError, init_kv_overflow, hasKvViewArgs, resolveKvView, init_kv_view, COLOR_LITERAL_THRESHOLD, countColorLiterals, init_color_literals, toolErr, createToolRegistrar, init_utils, handleMcpBridge, init_mcp_bridge, Redacted, init_redacted, SCRIPT_SDK_RESPONSE_LIMIT_BYTES, readScriptSdkJsonResponse, init_response_limit, retry, init_retry, ExtensionConfigError, init_loader, ExtensionLifecycleError, setExtensionLoopbackBaseUrl, enableExtension, disableExtension, activateVersion, ExtensionAssetsInvalidError, installExtensionWithAssets, uninstallExtension, reloadExtension, loadEnabledExtensions, stopExtensionRuntime, init_lifecycle, ExtensionAbortedError2, isRegistered2, isExtensionAgentId2, getExtensionBridgeToken2, resolveBridgeCallOrigin2, extensionIdForAgent2, runContext2, registerLoaded2, unregister2, hasNativeToolHandlers2, listRegistered2, dispatchPre2, dispatchPost2, init_dispatcher, resolveIdentity, renderIdentity, init_identity, dismissedNamespace, dismissUnmappedIdentity, restoreUnmappedIdentity, recordUnmappedIdentity, init_unmapped_identities, getDeliveredSlackMessageTs, foldIntoPendingSlackTask, init_slack_fold, MAX_TASK_ATTACHMENT_BYTES, recordTaskAttachmentUpload, scopeFromAttachment, backingProviderId, init_task_attachment_store, transcribeAudioNotes, init_transcription, init_templates, buildEffectiveText, bufferedFileFailures, fetchSlackFiles, createSlackTaskWithFiles, attachSlackFilesToDraft, notifySlackFileFailures, init_inbound_files, pendingWorkForAgent, countPoolRuntimes, computeDesired, init_demand, isRuntimePoolWakeable, isAgentReachable, isAgentOnDemand, init_reachability, isAddressedToOtherUser, broadcastMatches, routeMessage, extractTaskFromMessage, init_router, extractSlackMessageText, slackInboundMessageText, collectSlackMessageFiles, init_message_text, createAdditiveBuffer, init_additive_buffer, isAgentMailEnabled, initAgentMail, verifyAgentMailWebhook, isInboxAllowed, isSenderAllowed, handleMessageReceived, init_agentmail, isAzureDevOpsEnabled, initAzureDevOps, verifyAzureDevOpsWebhook, repointTrackerSyncBySwarmId, init_tracker, isAzureDevOpsUrl, canonicalAzureDevOpsRepoUrl, parseAzureDevOpsRepoUrl, init_azure_devops, createdPullRequestOf, commentedPayloadOf, handlePullRequestCreated, handlePullRequestCommented, handleWorkItemCreated, handleWorkItemUpdated, handleWorkItemCommented, handleWorkItemDeleted, handleWorkItemRestored, initAzureDevOpsOutbound, init_azure_devops2, enqueueAuditRow, enqueueAdmissionRow, flushAuditBuffer, startAuditWriter, stopAuditWriter, startAuditGc, stopAuditGc, init_rbac_audit, getTelemetryIngestAnchor, init_telemetry_ingest_anchor, initApiTelemetry, syncTelemetryEnabled, init_telemetry_enable, isBitbucketEnabled, initBitbucket, verifyBitbucketWebhook, isDuplicateDelivery, markDeliveryProcessed, pullRequestEventOf, pullRequestCommentEventOf, handlePullRequestCreated2, handlePullRequestCommentCreated, handlePullRequestClosed, init_bitbucket, handlePullRequest, handleIssue, handleComment, handlePullRequestReview, handleCheckRun, handleCheckSuite, handleWorkflowRun, init_github, isGitLabEnabled, initGitLab, verifyGitLabWebhook, handleMergeRequest, handleIssue2, handleNote, handlePipeline, init_gitlab, isChatSdkEnabled, getChatSdkConfig, init_config, errorMessage, init_logger, resolveAdapterApiUrl, init_adapters, trackBackground, init_background, TelegramBotApiError, callTelegramBotApi, init_telegram_api, isTrustedTeamsServiceUrl, init_teams_origin, getSessionLabels, rememberSessionLabel, getResourceSessionLabels, init_session_labels, isChatSdkStopping, startChatSdk, getChatInstance, isChatAdapterConfigured, getChatSdkHealth, stopChatSdk, init_runtime, getJiraMetadata, updateJiraMetadata, clearJiraMetadata, init_metadata, registerJiraWebhook, deleteJiraWebhook, init_webhook_lifecycle, isJiraEnabled, initJira, init_app2, handleJiraWebhook, init_webhook, init_jira, handleAgentSessionEvent, handleIssueUpdate, handleIssueDelete, handleAgentSessionPrompted, init_sync, isLinearEnabled, initLinear, init_app3, init_linear, init_slack, verifyPageSession, LEGACY_PAGE_SESSION_COOKIE, isCookieSafePageId, extractPageSession, extractLegacyPageSession, extractAndVerifyCookie, isLocalDevPageRequest, pageSessionSetCookies, init_page_session, resolveHttpRequestAuth, init_auth, getDeploymentEnvValue2, loadGlobalConfigsIntoEnv2, reloadGlobalConfigsAndIntegrations2, scheduleIntegrationsReload2, handleCore2, init_core, runTaskUiScriptAction, init_script_actions, REBOOT_RETRY_PIN_TAG2, getPinCandidateAgent2, resolveLeadOnlyRecoveryAssignment2, getResumeGeneration2, getNextResumeGeneration2, inheritedModelSelection2, nextFallback2, createWorkerTaskFollowUp2, createResumeFollowUp2, createRerouteDecisionTask2, createPoolStarvationDecisionTask2, init_worker_follow_up, MCP_MAX_TOOL_INPUT_ELEMENTS, MCP_MAX_REQUEST_BODY_BYTES, init_mcp_limits, userCtx, init_task_tool_ctx, resolveRequestPrincipal, requestPrincipal, agentFirstPrincipal, requireAuthKind, rejectGuest, init_request_principal, resolveTaskRequester, init_task_requester, handleApps, init_apps, parseScene, init_elements, MAX_OBJECT_BYTES, init_write_object, cancelApprovalRequest, cancelApprovalRequestAndRun, init_approval_cancel, getUserCommsPrefs, init_requester_comms, getTaskDetailsInputSchema, getTaskDetailsOutputSchema, getTaskDetailsHandler, init_get_task_details, cancelTaskInputSchema, cancelTaskOutputSchema, cancelTaskHandler, init_cancel_task, DbQueryTimeoutError, DbQueryConcurrencyCapError, executeReadOnlyQuery, getDbQueryHttpBudgetMs, init_db_query_shared, assertSelectOnlyQuery, executeReadOnlyQueryGated, handleDbQuery, init_db_query, snapshotMetric, init_version2, AssetKeyAuthorizationError, authorizeAssetKeyWrite, init_asset_key_auth, getPageEditCounter, init_page_versions, snapshotPage, init_version3, DEFAULT_THEME_ID, THEME_PRESET_IDS, getThemePreset, init_presets, readThemeFields, init_page_fields, assertOAuthAppUrlsSafe, assertOAuthEgressUrlSafe, init_app_validation, listOAuthPresets, listOAuthPresetIds, getOAuthPreset, hydrateOAuthAppFromPreset, init_presets2, scopedResourceScopeIdSchema, resolveScopedResourceId, init_scoped_resource, MemoryKeyError, init_key_guard, refreshLinks, init_link_resolver, indexMemoryContent, init_index_content, dedupeMemoryDocumentIds, recordMemoryAccesses, recordRetrievals, init_retrieval, ExplicitSelfDuplicateError, applyRating, init_store, shouldPersistAutomaticTaskMemory, init_automatic_task_gate, guardTerminalTaskResultWrite, init_terminal_result_guard, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, init_get_tasks, requiresLeadToWrite, reservedNamespaceError, privateNamespaceError, reservedRoomKeyError, init_kv_reserved_namespaces, updateMcpServerChecked, init_mcp_server_checked_update, updateTouchesStdioExecution, init_mcp_server_stdio_gate, canReadMemory, init_access, getLinksForMemory, init_links_store, attachDemotionEvidence, init_demotion_evidence, expandCandidatesWithGraph, init_graph_expansion, isApiDraining, drainApi, init_api_drain, markKapsoMessageRead, sendKapsoReaction, init_client, getKapsoConfig, getKapsoNumberMapping, markKapsoMessageSeen, init_config2, changesMergePolicy, init_repo_merge_policy, updateSwarmRepoChecked, init_repo_checked_update, getCombConfig, init_config3, resolveRoomNamespace, roomRequestInfo, authorizeRoomNamespace, sessionAccessTopic, sessionPresenceRoot, init_auth2, RoomOperationSchema, init_document, removeAwarenessStates, init_awareness, roomTopic, decodeRoomSnapshot, roomView, getRoom, changeRoom, applyRoomUpdate, resetRoom, sweepRooms, closeRooms, removeNamespaceRooms, init_rooms, init_scheduler2, MEMORY_KEYS_DEFAULT_PREFIX, MEMORY_KEYS_MAX_LIMIT, estimateTokens, posteriorMean, listMemoryKeys, checkChunkIntegrity, getMemoryChunks, getPosteriorsByIds, init_key_browser, createEvent, createEventsBatch, getEventCountsFiltered, getEventsFiltered, init_events, mergeScheduleTiming, validateRecurringTiming, init_validate, followUpThreadForSourceTask, evaluateFollowUpRedelegation, init_follow_up_redelegation_guard, checkOutputSchemaShape, sendTaskOutputSchema, sendTaskHandler, init_send_task, setSheetRange, appendSheetRows, clearSheetRange, init_service, steerTaskUserInputSchema, steerTaskOutputSchema, steerTaskHandler, init_steer_task, skipReasonFrom, finalizeSkippedTaskReaction, init_task_skip, IMPROVEMENT_TEXT_MAX, IMPROVEMENT_STATUSES, IMPROVEMENT_SOURCES, ImprovementError, isImprovementsEnabled, getImprovement, listImprovements, createImprovement, approveAndSend, discardImprovement, improvementLeakHints, init_improvements, recomputeSessionCost, init_session_cost_recompute, canClaim, init_budget_admission, emitBudgetRefusalSideEffects, init_budget_refusal_notify, workflowModelErrors, init_model_validation, patchWorkflowDefinition, init_patch_definition, idempotencyKeyHeader, readIdempotencyKey, replayAcceptedOperation, init_idempotency_key, resolveScriptsOnlyMode, init_scripts_only_mode, ALL_CAPABILITIES, hasCapability, getEnabledCapabilities, createServer, init_server };
|
|
147609
|
+
export { safeParse, getObjectShape, getLiteralValue, init_zod_compat, LATEST_PROTOCOL_VERSION, DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, isJSONRPCRequest, isJSONRPCResultResponse, ErrorCode, isJSONRPCErrorResponse, JSONRPCMessageSchema, EmptyResultSchema, isInitializeRequest, InitializeResultSchema, CreateTaskResultSchema, ListResourcesResultSchema, ListResourceTemplatesResultSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, ListPromptsResultSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ListToolsResultSchema, CallToolResultSchema, ToolListChangedNotificationSchema, ListChangedOptionsBaseSchema, CreateMessageRequestSchema, CreateMessageResultSchema, CreateMessageResultWithToolsSchema, ElicitRequestSchema, ElicitResultSchema, CompleteResultSchema, McpError, init_types, Protocol, mergeCapabilities, init_protocol, AjvJsonSchemaValidator, init_ajv_provider, assertToolsCallTaskCapability, assertClientRequestTaskCapability, init_helpers, McpServer, init_mcp, referencedBundlePaths, skillDirs, init_manifest_format, recoverIncompleteRuns, init_recovery, handleWebhookTrigger, verifyHmacSignature, decodeStandardWebhookSecret, verifyStandardWebhookSignature, verifyTokenEquality, WebhookError, init_triggers, snapshotAndUpdateWorkflow, init_version, applyPreTaskCreate, init_apply_task_create, RawLlmConfigSchema, RawLlmOutputSchema, executeRawLlm, init_raw_llm, getExecutorRegistry2, initWorkflows2, init_workflows, isGitHubEnabled, initGitHub, verifyWebhookSignature, getWorkerInstallationToken, init_app, isReservedProviderEvent, init_event_waits, stripSiblingBlock, init_sibling_block, createTaskWithSiblingAwareness, init_sibling_awareness, dispatchScheduleTarget, calculateNextRun2, startScheduler2, stopScheduler2, runScheduleNow2, init_scheduler, ExtensionAssetConflictError, hashOf, scriptHash, liveScriptSpec, liveWorkflowSpec, skillSpecOf, liveSkillSpec, skillHash, init_assets, ExtensionOwnershipError, getExtensionFiles, getExtensionById, getExtensionByName, listExtensions, listExtensionVersions, updateExtensionMeta, listExtensionRuns, init_db, SDK_ALLOWLIST, mcpToolNameForSdkMethod, init_sdk_allowlist, MCP_OVERFLOW_NAMESPACE, mcpOverflowAuthError, init_kv_overflow, hasKvViewArgs, resolveKvView, init_kv_view, COLOR_LITERAL_THRESHOLD, countColorLiterals, init_color_literals, toolErr, createToolRegistrar, init_utils, handleMcpBridge, init_mcp_bridge, Redacted, init_redacted, SCRIPT_SDK_RESPONSE_LIMIT_BYTES, readScriptSdkJsonResponse, init_response_limit, retry, init_retry, ExtensionConfigError, init_loader, ExtensionLifecycleError, setExtensionLoopbackBaseUrl, enableExtension, disableExtension, activateVersion, ExtensionAssetsInvalidError, installExtensionWithAssets, uninstallExtension, reloadExtension, loadEnabledExtensions, stopExtensionRuntime, init_lifecycle, ExtensionAbortedError2, isRegistered2, isExtensionAgentId2, getExtensionBridgeToken2, resolveBridgeCallOrigin2, extensionIdForAgent2, runContext2, registerLoaded2, unregister2, hasNativeToolHandlers2, listRegistered2, dispatchPre2, dispatchPost2, init_dispatcher, resolveIdentity, renderIdentity, init_identity, dismissedNamespace, dismissUnmappedIdentity, restoreUnmappedIdentity, recordUnmappedIdentity, init_unmapped_identities, getDeliveredSlackMessageTs, foldIntoPendingSlackTask, init_slack_fold, MAX_TASK_ATTACHMENT_BYTES, recordTaskAttachmentUpload, scopeFromAttachment, backingProviderId, init_task_attachment_store, transcribeAudioNotes, init_transcription, init_templates, buildEffectiveText, bufferedFileFailures, fetchSlackFiles, createSlackTaskWithFiles, attachSlackFilesToDraft, notifySlackFileFailures, init_inbound_files, pendingWorkForAgent, countPoolRuntimes, computeDesired, init_demand, isRuntimePoolWakeable, isAgentReachable, isAgentOnDemand, init_reachability, isAddressedToOtherUser, broadcastMatches, routeMessage, extractTaskFromMessage, init_router, extractSlackMessageText, slackInboundMessageText, collectSlackMessageFiles, init_message_text, createAdditiveBuffer, init_additive_buffer, isAgentMailEnabled, initAgentMail, verifyAgentMailWebhook, isInboxAllowed, isSenderAllowed, handleMessageReceived, init_agentmail, isAzureDevOpsEnabled, initAzureDevOps, verifyAzureDevOpsWebhook, repointTrackerSyncBySwarmId, init_tracker, isAzureDevOpsUrl, canonicalAzureDevOpsRepoUrl, parseAzureDevOpsRepoUrl, init_azure_devops, createdPullRequestOf, commentedPayloadOf, handlePullRequestCreated, handlePullRequestCommented, handleWorkItemCreated, handleWorkItemUpdated, handleWorkItemCommented, handleWorkItemDeleted, handleWorkItemRestored, initAzureDevOpsOutbound, init_azure_devops2, enqueueAuditRow, enqueueAdmissionRow, flushAuditBuffer, startAuditWriter, stopAuditWriter, startAuditGc, stopAuditGc, init_rbac_audit, getTelemetryIngestAnchor, init_telemetry_ingest_anchor, initApiTelemetry, syncTelemetryEnabled, init_telemetry_enable, isBitbucketEnabled, initBitbucket, verifyBitbucketWebhook, isDuplicateDelivery, markDeliveryProcessed, pullRequestEventOf, pullRequestCommentEventOf, handlePullRequestCreated2, handlePullRequestCommentCreated, handlePullRequestClosed, init_bitbucket, handlePullRequest, handleIssue, handleComment, handlePullRequestReview, handleCheckRun, handleCheckSuite, handleWorkflowRun, init_github, isGitLabEnabled, initGitLab, verifyGitLabWebhook, handleMergeRequest, handleIssue2, handleNote, handlePipeline, init_gitlab, isChatSdkEnabled, getChatSdkConfig, init_config, errorMessage, init_logger, resolveAdapterApiUrl, init_adapters, trackBackground, init_background, TelegramBotApiError, callTelegramBotApi, init_telegram_api, isTrustedTeamsServiceUrl, init_teams_origin, getSessionLabels, rememberSessionLabel, getResourceSessionLabels, init_session_labels, isChatSdkStopping, startChatSdk, getChatInstance, isChatAdapterConfigured, getChatSdkHealth, stopChatSdk, init_runtime, getJiraMetadata, updateJiraMetadata, clearJiraMetadata, init_metadata, registerJiraWebhook, deleteJiraWebhook, init_webhook_lifecycle, isJiraEnabled, initJira, init_app2, handleJiraWebhook, init_webhook, init_jira, handleAgentSessionEvent, handleIssueUpdate, handleIssueDelete, handleAgentSessionPrompted, init_sync, isLinearEnabled, initLinear, init_app3, init_linear, init_slack, verifyPageSession, LEGACY_PAGE_SESSION_COOKIE, isCookieSafePageId, extractPageSession, extractLegacyPageSession, extractAndVerifyCookie, isLocalDevPageRequest, pageSessionSetCookies, init_page_session, resolveHttpRequestAuth, init_auth, getDeploymentEnvValue2, loadGlobalConfigsIntoEnv2, reloadGlobalConfigsAndIntegrations2, scheduleIntegrationsReload2, handleCore2, init_core, runTaskUiScriptAction, init_script_actions, REBOOT_RETRY_PIN_TAG2, getPinCandidateAgent2, resolveLeadOnlyRecoveryAssignment2, getResumeGeneration2, getNextResumeGeneration2, inheritedModelSelection2, nextFallback2, createWorkerTaskFollowUp2, createResumeFollowUp2, createRerouteDecisionTask2, createPoolStarvationDecisionTask2, init_worker_follow_up, MCP_MAX_TOOL_INPUT_ELEMENTS, MCP_MAX_REQUEST_BODY_BYTES, init_mcp_limits, userCtx, init_task_tool_ctx, resolveRequestPrincipal, requestPrincipal, agentFirstPrincipal, requireAuthKind, rejectGuest, init_request_principal, resolveTaskRequester, init_task_requester, handleApps, init_apps, parseScene, init_elements, MAX_OBJECT_BYTES, init_write_object, cancelApprovalRequest, cancelApprovalRequestAndRun, init_approval_cancel, getUserCommsPrefs, init_requester_comms, getTaskDetailsInputSchema, getTaskDetailsOutputSchema, getTaskDetailsHandler, init_get_task_details, cancelTaskInputSchema, cancelTaskOutputSchema, cancelTaskHandler, init_cancel_task, DbQueryTimeoutError, DbQueryConcurrencyCapError, executeReadOnlyQuery, getDbQueryHttpBudgetMs, init_db_query_shared, assertSelectOnlyQuery, executeReadOnlyQueryGated, handleDbQuery, init_db_query, snapshotMetric, init_version2, AssetKeyAuthorizationError, authorizeAssetKeyWrite, init_asset_key_auth, getPageEditCounter, init_page_versions, snapshotPage, init_version3, DEFAULT_THEME_ID, THEME_PRESET_IDS, getThemePreset, init_presets, readThemeFields, init_page_fields, assertOAuthAppUrlsSafe, assertOAuthEgressUrlSafe, init_app_validation, listOAuthPresets, listOAuthPresetIds, getOAuthPreset, hydrateOAuthAppFromPreset, init_presets2, scopedResourceScopeIdSchema, resolveScopedResourceId, init_scoped_resource, MemoryKeyError, init_key_guard, refreshLinks, init_link_resolver, indexMemoryContent, init_index_content, dedupeMemoryDocumentIds, recordMemoryAccesses, recordRetrievals, init_retrieval, ExplicitSelfDuplicateError, applyRating, init_store, shouldPersistAutomaticTaskMemory, init_automatic_task_gate, guardTerminalTaskResultWrite, init_terminal_result_guard, scriptNameSchema, scriptToolOutputSchema, scriptsApiToolResult, init_script_common, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, init_get_tasks, requiresLeadToWrite, reservedNamespaceError, privateNamespaceError, reservedRoomKeyError, init_kv_reserved_namespaces, updateMcpServerChecked, init_mcp_server_checked_update, updateTouchesStdioExecution, init_mcp_server_stdio_gate, canReadMemory, init_access, getLinksForMemory, init_links_store, attachDemotionEvidence, init_demotion_evidence, expandCandidatesWithGraph, init_graph_expansion, isApiDraining, drainApi, init_api_drain, markKapsoMessageRead, sendKapsoReaction, init_client, getKapsoConfig, getKapsoNumberMapping, markKapsoMessageSeen, init_config2, changesMergePolicy, init_repo_merge_policy, updateSwarmRepoChecked, init_repo_checked_update, getCombConfig, init_config3, resolveRoomNamespace, roomRequestInfo, authorizeRoomNamespace, sessionAccessTopic, sessionPresenceRoot, init_auth2, RoomOperationSchema, init_document, removeAwarenessStates, init_awareness, roomTopic, decodeRoomSnapshot, roomView, getRoom, changeRoom, applyRoomUpdate, resetRoom, sweepRooms, closeRooms, removeNamespaceRooms, init_rooms, init_scheduler2, MEMORY_KEYS_DEFAULT_PREFIX, MEMORY_KEYS_MAX_LIMIT, estimateTokens, posteriorMean, listMemoryKeys, checkChunkIntegrity, getMemoryChunks, getPosteriorsByIds, init_key_browser, createEvent, createEventsBatch, getEventCountsFiltered, getEventsFiltered, init_events, mergeScheduleTiming, validateRecurringTiming, changesScheduleTarget, init_validate, renderTypeBlobs, init_script_query_types, renderRunOutput, init_script_run, renderSearchResults, searchSuccessMessage, init_script_search, followUpThreadForSourceTask, evaluateFollowUpRedelegation, init_follow_up_redelegation_guard, checkOutputSchemaShape, sendTaskOutputSchema, sendTaskHandler, init_send_task, setSheetRange, appendSheetRows, clearSheetRange, init_service, steerTaskUserInputSchema, steerTaskOutputSchema, steerTaskHandler, init_steer_task, skipReasonFrom, finalizeSkippedTaskReaction, init_task_skip, IMPROVEMENT_TEXT_MAX, IMPROVEMENT_STATUSES, IMPROVEMENT_SOURCES, ImprovementError, isImprovementsEnabled, getImprovement, listImprovements, createImprovement, approveAndSend, discardImprovement, improvementLeakHints, init_improvements, recomputeSessionCost, init_session_cost_recompute, canClaim, init_budget_admission, emitBudgetRefusalSideEffects, init_budget_refusal_notify, workflowModelErrors, init_model_validation, patchWorkflowDefinition, init_patch_definition, idempotencyKeyHeader, readIdempotencyKey, replayAcceptedOperation, init_idempotency_key, resolveScriptsOnlyMode, init_scripts_only_mode, ALL_CAPABILITIES, hasCapability, getEnabledCapabilities, createServer, init_server };
|