@desplega.ai/agent-swarm 2.13.0 → 2.13.1
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-xtj40wd8.js +17 -0
- package/dist/{acp-targets-86f0sh6g.js → acp-targets-n7vm5atw.js} +10 -10
- package/dist/{actions-zv8vcxvr.js → actions-hq6wp9xv.js} +27 -27
- package/dist/{agent-fs-provision-jqshb33y.js → agent-fs-provision-y0qc1rdd.js} +4 -4
- package/dist/{amp-adapter-gt503ywc.js → amp-adapter-1qqs6h91.js} +3 -3
- package/dist/{app-6t4k5rh1.js → app-7m4z44rv.js} +10 -10
- package/dist/{approval-notifications-fcfw063h.js → approval-notifications-8sr41gjx.js} +11 -11
- package/dist/{assistant-9dzybh12.js → assistant-hkczwfv6.js} +28 -28
- package/dist/{boot-args-schema-xzfp2feg.js → boot-args-schema-8025snev.js} +1 -1
- package/dist/{boot-reembed-r88wngfg.js → boot-reembed-15m87nr1.js} +1 -1
- package/dist/{boot-reembed-3jz0p2jk.js → boot-reembed-4bbpxjh1.js} +1 -1
- package/dist/{boot-scrub-sweep-scrqhw48.js → boot-scrub-sweep-eajr97e9.js} +2 -2
- package/dist/{boot-seeds-vb2dcrrb.js → boot-seeds-9cwy39jx.js} +4 -4
- package/dist/{boxd-68n75y1s.js → boxd-hr8rsxzq.js} +1 -1
- package/dist/{claude-adapter-h3mp9hgs.js → claude-adapter-g61wa4rt.js} +9 -9
- package/dist/{claude-managed-adapter-kpbyj2vb.js → claude-managed-adapter-znkk0prm.js} +3 -3
- package/dist/{claude-managed-setup-0efr3wkg.js → claude-managed-setup-f1wndkr2.js} +2 -2
- package/dist/{claude-sdk-session-03dw669q.js → claude-sdk-session-687xzf21.js} +20763 -19381
- package/dist/{cli-gfcv679k.js → cli-04103ryh.js} +1 -1
- package/dist/{cli-hbq0kwxz.js → cli-0a336ze7.js} +4 -4
- package/dist/{cli-1v82d2w6.js → cli-0fx95c06.js} +4 -4
- package/dist/{cli-wxwv3t11.js → cli-0m77n7ej.js} +3 -3
- package/dist/{cli-j53hpbsm.js → cli-0xwb7zpt.js} +2 -2
- package/dist/{cli-0dg7ytxm.js → cli-13t0smbk.js} +917 -23
- package/dist/{cli-0pazkmd4.js → cli-1b5axkt1.js} +4 -4
- package/dist/{cli-6h88mn9q.js → cli-1carhg8g.js} +4 -4
- package/dist/{cli-hgsxnjyg.js → cli-1dr5at77.js} +10 -10
- package/dist/{cli-0jkenasr.js → cli-2v4xxnx2.js} +1 -1
- package/dist/{cli-dnh64e8e.js → cli-32xndx6b.js} +6 -6
- package/dist/{cli-hpb9x72z.js → cli-3m8vqehw.js} +9 -9
- package/dist/{cli-ercwc8xn.js → cli-3mf04tkh.js} +1 -1
- package/dist/{cli-7dbhnsj9.js → cli-3zyme1wt.js} +4 -4
- package/dist/{cli-s6zk31gr.js → cli-43dsqhcp.js} +4 -4
- package/dist/{cli-t35hx078.js → cli-4h90xaet.js} +2 -2
- package/dist/{cli-117g15t4.js → cli-4mj5g29m.js} +8 -8
- package/dist/{cli-47hz21se.js → cli-4tbvndmm.js} +4 -5
- package/dist/{cli-tn91wc6e.js → cli-50whymxq.js} +1 -1
- package/dist/{cli-js10kdk7.js → cli-5basv0e7.js} +19 -5
- package/dist/{cli-xfjn2kyq.js → cli-5v6b2am8.js} +5 -5
- package/dist/{cli-49f5jyhh.js → cli-6r1dwegd.js} +3 -3
- package/dist/{cli-kspxjftk.js → cli-7ewre3dm.js} +15 -6
- package/dist/{cli-n3qe7tyr.js → cli-84xtgbn6.js} +35 -2
- package/dist/{cli-w14j2z4k.js → cli-8cmjkbvj.js} +2 -2
- package/dist/{cli-2m6yaq6b.js → cli-8fj8yfmk.js} +1 -1
- package/dist/{cli-9m9kyw77.js → cli-8rbkw18r.js} +2 -2
- package/dist/{cli-x05p2d05.js → cli-9tevdxyf.js} +1 -1
- package/dist/{cli-f1952kjy.js → cli-9xx36trj.js} +4 -4
- package/dist/{cli-hc6e4tac.js → cli-a8ts6x1n.js} +6 -6
- package/dist/{cli-mh7pdxe0.js → cli-aebswqmz.js} +12 -12
- package/dist/{cli-ex1y88j3.js → cli-at67kvnp.js} +1 -1
- package/dist/{cli-b2jh3dyb.js → cli-bjmq14k9.js} +4 -4
- package/dist/{cli-mz34pxbk.js → cli-byxsctca.js} +11 -11
- package/dist/{cli-dka73bak.js → cli-c0tyzt73.js} +152 -12
- package/dist/{cli-wv20kbr3.js → cli-c8kqmzzf.js} +5 -5
- package/dist/{cli-qhhb30e8.js → cli-cd9acnvd.js} +9 -9
- package/dist/{cli-wndegmns.js → cli-cmgdptmx.js} +3 -3
- package/dist/{cli-1dbv9mj9.js → cli-cn6fpa1p.js} +1 -1
- package/dist/{cli-wrhbym01.js → cli-cp0m07wb.js} +6 -6
- package/dist/{cli-3p288654.js → cli-cpkxh68d.js} +2 -2
- package/dist/{cli-g6j6ac3h.js → cli-cqxwjb93.js} +2 -2
- package/dist/{cli-8hp56wat.js → cli-d2epqm0y.js} +1 -1
- package/dist/{cli-qm3ntjqs.js → cli-dd57p1gd.js} +13 -13
- package/dist/{cli-tstj6e8e.js → cli-fn8aj7gb.js} +250 -55
- package/dist/{cli-bpje8n65.js → cli-fp65jdp2.js} +31 -6
- package/dist/{cli-2skf1mdf.js → cli-gedf48yw.js} +4 -4
- package/dist/{cli-c8v2yvej.js → cli-gq6qhmrr.js} +2 -2
- package/dist/{cli-sq913bh1.js → cli-grcc2h2g.js} +8 -8
- package/dist/{cli-qec9bynj.js → cli-h03j6je3.js} +3 -3
- package/dist/{cli-mbwmqb5w.js → cli-h0ewec3d.js} +1 -1
- package/dist/{cli-jj3c5nyb.js → cli-h9bejmkf.js} +76 -39
- package/dist/{cli-ct8sz3np.js → cli-hs3mqswp.js} +6 -6
- package/dist/{cli-tdk7jtka.js → cli-hv3820ez.js} +1 -1
- package/dist/{cli-pqfecppn.js → cli-je587f74.js} +1 -1
- package/dist/{cli-y4a4458j.js → cli-jhtvt7gn.js} +3 -3
- package/dist/{cli-dkejt425.js → cli-mmw2sjaf.js} +7 -7
- package/dist/{cli-50w82h6m.js → cli-mwxez0pz.js} +1 -0
- package/dist/{cli-avxh26pd.js → cli-nk8swfpx.js} +4 -4
- package/dist/{cli-fhvk2nvp.js → cli-p7g7wd9n.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-nc6a8b5b.js → cli-qx1dwrr5.js} +2 -2
- package/dist/{cli-sdh61g52.js → cli-s6fhqbz1.js} +2 -2
- package/dist/{cli-eb279wn3.js → cli-sfajkbd7.js} +2 -2
- package/dist/{cli-z64t9pe6.js → cli-snypfjgj.js} +1 -1
- package/dist/{cli-ytc7fpza.js → cli-t25rq8mg.js} +4 -4
- package/dist/{cli-zqmmy073.js → cli-t90k0phh.js} +18 -18
- package/dist/{cli-fz9pcjsw.js → cli-tzzas8rb.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-y518qkjg.js → cli-w24f3j49.js} +10 -10
- package/dist/{cli-yn4kt85g.js → cli-w41bvvms.js} +1 -1
- package/dist/{cli-9fsagra4.js → cli-w6c6dj91.js} +1 -1
- package/dist/{cli-kde4ky90.js → cli-x5yb8zc8.js} +2 -2
- package/dist/{cli-48nvk6sb.js → cli-xhkek467.js} +2 -2
- package/dist/{cli-avqkr20b.js → cli-y6qqbpwc.js} +2 -2
- package/dist/{cli-7wy8gbwb.js → cli-ya1cj689.js} +1 -1
- package/dist/{cli-prf7kz78.js → cli-yeh3g1q6.js} +603 -78
- package/dist/{cli-ajjvqhf3.js → cli-z6m6xzxt.js} +2 -2
- package/dist/{cli-2jk4s7z1.js → cli-zaate0rd.js} +3 -3
- package/dist/{cli-n85m2wkq.js → cli-zkbz8m2q.js} +3 -2
- package/dist/{cli-0b655smz.js → cli-zvpkrgsc.js} +5 -5
- package/dist/cli.js +27 -27
- package/dist/{codex-adapter-f3yp0kaj.js → codex-adapter-ysfg6ty3.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-823scr6g.js} +9 -9
- package/dist/{commands-5bzf2tfw.js → commands-5rbm07fz.js} +3 -3
- package/dist/{controller-5xt7kvfm.js → controller-wn3vd217.js} +3 -3
- package/dist/{controllers-connect-0gg13mzp.js → controllers-connect-34jzhfft.js} +28 -28
- package/dist/core-kdehq26g.js +42 -0
- package/dist/{cursor-adapter-p0c5zv6r.js → cursor-adapter-w1681kp1.js} +2 -2
- package/dist/{db-2s68ycq7.js → db-6bkgbfwk.js} +3 -3
- package/dist/{db-q7q639k5.js → db-hcj16x7z.js} +2 -2
- package/dist/{devin-adapter-t8d86q9x.js → devin-adapter-fs90ab4v.js} +1 -1
- package/dist/{dispatcher-j2y1q7ae.js → dispatcher-jgjqrfzv.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-w17nsny6.js} +1 -1
- package/dist/{embedding-space-3n6mhhmy.js → embedding-space-v06fwy7b.js} +6 -6
- package/dist/{embeddings-jfmj6yme.js → embeddings-g50dxea4.js} +1 -1
- package/dist/{event-bus-v4ywhc2p.js → event-bus-08t2b4y2.js} +1 -1
- package/dist/{execute-tjrej979.js → execute-1n36haw1.js} +1 -1
- package/dist/{external-channel-jy8w2gg3.js → external-channel-43tv8pg6.js} +2 -2
- package/dist/fx-adapter-bvh05t4a.js +20 -0
- package/dist/grok-adapter-my5j8mdf.js +20 -0
- package/dist/handlers-wyymeeqh.js +41 -0
- package/dist/heartbeat-sf3nk937.js +50 -0
- package/dist/{hook-bpnncsec.js → hook-dqph1e05.js} +8 -8
- package/dist/{hook-fv1jwrv7.js → hook-m1m9dm6w.js} +6 -6
- package/dist/{http-bpa26czn.js → http-w0th1cz9.js} +160 -102
- package/dist/index-22khdtby.js +44 -0
- package/dist/{index-mpj0z9e0.js → index-c0e8en64.js} +1 -1
- package/dist/{index-620y7jzq.js → index-e8pz8qdg.js} +3 -3
- package/dist/{index-8p0j4h4j.js → index-ez823q84.js} +94 -89
- package/dist/{index-w216g9y9.js → index-ffba0z8q.js} +35 -21
- package/dist/{index-s8re7mvq.js → index-gkpfgpg7.js} +1 -1
- package/dist/{index-4k7m5dgj.js → index-k8ajc0g0.js} +143 -103
- package/dist/index-np0582ac.js +40 -0
- package/dist/{index-52tgbhrw.js → index-pb03vans.js} +28 -28
- package/dist/index-vgkrj1jt.js +39 -0
- package/dist/{index-pe3d8jfy.js → index-whysn1wf.js} +1 -1
- package/dist/{index-0h6qd4p1.js → index-y4vd4mhn.js} +3 -4
- package/dist/{k8s-fy8hbhkg.js → k8s-8326q0rq.js} +2 -2
- package/dist/{keepalive-d6z12s04.js → keepalive-2v06q2e8.js} +5 -4
- package/dist/lead-55z813ng.js +79 -0
- package/dist/{maintenance-7kac6g2g.js → maintenance-vx7vjhhy.js} +1 -1
- package/dist/{oauth-refresh-sweep-t1xjetbh.js → oauth-refresh-sweep-g06k4bza.js} +4 -3
- package/dist/{object-webhooks-6rdagg0r.js → object-webhooks-3dzdq4fm.js} +7 -7
- package/dist/{onboard-32y1cfxy.js → onboard-232pazny.js} +4 -4
- package/dist/{opencode-adapter-enp3v31n.js → opencode-adapter-t0paqbh8.js} +8 -8
- package/dist/{otel-impl-k0tm5ptj.js → otel-impl-kmpkyp4y.js} +2 -2
- package/dist/{pending-24zebgvs.js → pending-x0z3vx1x.js} +26 -26
- package/dist/{pi-mono-adapter-yj72xxxe.js → pi-mono-adapter-7pmypn6d.js} +17 -15
- package/dist/{pricing-refresh-cf25x38j.js → pricing-refresh-ytjmtyd7.js} +2 -2
- package/dist/{rbac-roles-0wydd22m.js → rbac-roles-fgm5mxr2.js} +3 -3
- package/dist/{rbac-roles-at6crb3r.js → rbac-roles-xyaxekh3.js} +2 -2
- package/dist/{render-v2-nvcw0jd7.js → render-v2-ws972g4r.js} +10 -10
- package/dist/{resume-y4w0k5v3.js → resume-m6mjzhkp.js} +13 -13
- package/dist/{runtime-vpe43hx0.js → runtime-zzpc0c8a.js} +1 -1
- package/dist/{session-access-gkyvnfye.js → session-access-vp35xs91.js} +5 -5
- package/dist/{session-source-backfill-3w2st4m2.js → session-source-backfill-p73e8zbe.js} +2 -2
- package/dist/{setup-axxvqtys.js → setup-r4kd7rxg.js} +1 -1
- package/dist/thread-buffer-cm2nzq6t.js +42 -0
- package/dist/{tree-visibility-y4fqvab5.js → tree-visibility-07h2tbs2.js} +2 -2
- package/dist/{user-merge-jobs-kcmwvrc6.js → user-merge-jobs-96vg9rpe.js} +3 -3
- package/dist/{virtual-modules-7d92dct1.js → virtual-modules-vgn3f2x4.js} +3 -3
- package/dist/{work-objects-f708e069.js → work-objects-74hbcx3e.js} +28 -28
- package/dist/worker-5pn2vzx6.js +79 -0
- package/dist/{worker-follow-up-0by8wztc.js → worker-follow-up-ezavwn5d.js} +25 -25
- package/dist/{x-3dtaf2r9.js → x-asbrnafg.js} +2 -2
- package/openapi.json +1793 -1622
- package/package.json +10 -10
- 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/schedules/validate.ts +26 -0
- package/src/be/swarm-config-guard.ts +4 -0
- 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-connections.ts +12 -4
- package/src/http/script-runs.ts +12 -3
- package/src/http/tasks.ts +6 -10
- 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 +2 -0
- package/src/rbac/permissions.ts +5 -0
- package/src/scripts-runtime/types/swarm-extension.d.ts +7 -7
- 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/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/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.test.ts +2 -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/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/pages/content.md +11 -0
- package/templates/skills/swarm-docs/content.md +2 -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
|
@@ -406,27 +406,27 @@ import {
|
|
|
406
406
|
recordInlineScriptRun2,
|
|
407
407
|
exports_db,
|
|
408
408
|
init_db4
|
|
409
|
-
} from "./cli-
|
|
409
|
+
} from "./cli-h9bejmkf.js";
|
|
410
410
|
import {
|
|
411
411
|
assertMayActOnOperatorGrantedTarget2,
|
|
412
412
|
getUserGrant2,
|
|
413
413
|
init_rbac_roles
|
|
414
|
-
} from "./cli-
|
|
414
|
+
} from "./cli-qx1dwrr5.js";
|
|
415
415
|
import {
|
|
416
416
|
ensurePricingSeeded2,
|
|
417
417
|
ensureRbacSeeded2,
|
|
418
418
|
ensureModelProfilesSeeded2,
|
|
419
419
|
init_boot_seeds
|
|
420
|
-
} from "./cli-
|
|
420
|
+
} from "./cli-8rbkw18r.js";
|
|
421
421
|
import {
|
|
422
422
|
requestModelCatalogRefresh2,
|
|
423
423
|
startPricingRefreshLoop2,
|
|
424
424
|
init_pricing_refresh
|
|
425
|
-
} from "./cli-
|
|
425
|
+
} from "./cli-4h90xaet.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-cqxwjb93.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-t90k0phh.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-hs3mqswp.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-zvpkrgsc.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-0fx95c06.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-a8ts6x1n.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-13t0smbk.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-7ewre3dm.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-3zyme1wt.js";
|
|
740
740
|
import {
|
|
741
741
|
agentFsClientFor,
|
|
742
742
|
init_agent_fs_identity
|
|
743
|
-
} from "./cli-
|
|
743
|
+
} from "./cli-y6qqbpwc.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-cn6fpa1p.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-1dr5at77.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-w41bvvms.js";
|
|
871
871
|
import {
|
|
872
872
|
publicEndpointSsrfOptions,
|
|
873
873
|
init_mcp_wrapper
|
|
874
|
-
} from "./cli-
|
|
874
|
+
} from "./cli-c0tyzt73.js";
|
|
875
875
|
import {
|
|
876
876
|
findUserById,
|
|
877
877
|
findUserByExternalId,
|
|
@@ -886,7 +886,7 @@ import {
|
|
|
886
886
|
resolveSessionToken,
|
|
887
887
|
fingerprintApiKey,
|
|
888
888
|
init_users
|
|
889
|
-
} from "./cli-
|
|
889
|
+
} from "./cli-z6m6xzxt.js";
|
|
890
890
|
import {
|
|
891
891
|
resolveGitHubHost,
|
|
892
892
|
getGitHubLinkConfig,
|
|
@@ -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-w24f3j49.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-m6mjzhkp.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-7m4z44rv.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-jgjqrfzv.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;
|
|
@@ -32890,7 +32890,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
32890
32890
|
const base = { ...config, apiUrl, logger };
|
|
32891
32891
|
switch (name) {
|
|
32892
32892
|
case "telegram": {
|
|
32893
|
-
const { TelegramAdapter } = await import("./index-
|
|
32893
|
+
const { TelegramAdapter } = await import("./index-ez823q84.js");
|
|
32894
32894
|
|
|
32895
32895
|
class SwarmTelegramAdapter extends TelegramAdapter {
|
|
32896
32896
|
isBotMentioned(message, text) {
|
|
@@ -32904,7 +32904,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
32904
32904
|
});
|
|
32905
32905
|
}
|
|
32906
32906
|
case "slack": {
|
|
32907
|
-
const { createSlackAdapter } = await import("./index-
|
|
32907
|
+
const { createSlackAdapter } = await import("./index-e8pz8qdg.js");
|
|
32908
32908
|
return createSlackAdapter({
|
|
32909
32909
|
...base,
|
|
32910
32910
|
signingSecret: config.signingSecret ?? "",
|
|
@@ -32914,7 +32914,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
32914
32914
|
});
|
|
32915
32915
|
}
|
|
32916
32916
|
case "discord": {
|
|
32917
|
-
const { createDiscordAdapter } = await import("./index-
|
|
32917
|
+
const { createDiscordAdapter } = await import("./index-y4vd4mhn.js");
|
|
32918
32918
|
return createDiscordAdapter({
|
|
32919
32919
|
...base,
|
|
32920
32920
|
logger: withInfoFilter(logger, keepDiscordInfoLine),
|
|
@@ -32923,7 +32923,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
32923
32923
|
});
|
|
32924
32924
|
}
|
|
32925
32925
|
case "teams": {
|
|
32926
|
-
const { createTeamsAdapter } = await import("./index-
|
|
32926
|
+
const { createTeamsAdapter } = await import("./index-k8ajc0g0.js");
|
|
32927
32927
|
const { teamsWebhookVerifier, teamsToken } = getChatSdkTestHooks();
|
|
32928
32928
|
return createTeamsAdapter({
|
|
32929
32929
|
...base,
|
|
@@ -33132,7 +33132,7 @@ async function readPersistedThreadHistory(threadId) {
|
|
|
33132
33132
|
const rows = await new SqliteChatState().getList(`${SDK_THREAD_HISTORY_PREFIX}${threadId}`);
|
|
33133
33133
|
if (rows.length === 0)
|
|
33134
33134
|
return [];
|
|
33135
|
-
const { Message: MessageClass } = await import("./index-
|
|
33135
|
+
const { Message: MessageClass } = await import("./index-whysn1wf.js");
|
|
33136
33136
|
return rows.map((row) => MessageClass.fromJSON(row));
|
|
33137
33137
|
}
|
|
33138
33138
|
var SDK_THREAD_HISTORY_PREFIX = "msg-history:";
|
|
@@ -35788,7 +35788,7 @@ async function startChatSdk() {
|
|
|
35788
35788
|
for (const [name, reason] of Object.entries(config.incomplete ?? {})) {
|
|
35789
35789
|
console.warn(`[chat-sdk] ${name} not started, incomplete: ${scrubSecrets(reason)}`);
|
|
35790
35790
|
}
|
|
35791
|
-
const { Chat: ChatClass } = await import("./index-
|
|
35791
|
+
const { Chat: ChatClass } = await import("./index-whysn1wf.js");
|
|
35792
35792
|
const state = new SqliteChatState;
|
|
35793
35793
|
startChatRelayWatcher();
|
|
35794
35794
|
await Promise.all(CHAT_SDK_ADAPTER_NAMES.map(async (name) => {
|
|
@@ -36697,7 +36697,7 @@ async function notifySlack(text) {
|
|
|
36697
36697
|
return;
|
|
36698
36698
|
}
|
|
36699
36699
|
try {
|
|
36700
|
-
const { getSlackApp } = await import("./app-
|
|
36700
|
+
const { getSlackApp } = await import("./app-7m4z44rv.js");
|
|
36701
36701
|
const app = getSlackApp();
|
|
36702
36702
|
if (!app) {
|
|
36703
36703
|
console.warn("[Jira webhook keepalive] Slack not available, cannot send notification");
|
|
@@ -36768,7 +36768,7 @@ async function deleteJiraWebhook(webhookId) {
|
|
|
36768
36768
|
console.log(`[Jira webhook keepalive] Deleted webhook id=${webhookId}`);
|
|
36769
36769
|
}
|
|
36770
36770
|
async function overwriteWebhookIds(next) {
|
|
36771
|
-
const { getDbClient } = await import("./db-
|
|
36771
|
+
const { getDbClient } = await import("./db-hcj16x7z.js");
|
|
36772
36772
|
await getDbClient().transaction(async (tx) => {
|
|
36773
36773
|
const row = await tx.get("SELECT metadata FROM oauth_apps WHERE provider = 'jira'");
|
|
36774
36774
|
if (!row) {
|
|
@@ -110262,7 +110262,7 @@ async function loadGlobalConfigsIntoEnv2(override = false) {
|
|
|
110262
110262
|
if (updated.length > 0) {
|
|
110263
110263
|
refreshSecretScrubberCache();
|
|
110264
110264
|
}
|
|
110265
|
-
const { syncSlackTreeVisibility } = await import("./tree-visibility-
|
|
110265
|
+
const { syncSlackTreeVisibility } = await import("./tree-visibility-07h2tbs2.js");
|
|
110266
110266
|
await syncSlackTreeVisibility();
|
|
110267
110267
|
return updated;
|
|
110268
110268
|
}
|
|
@@ -110270,7 +110270,7 @@ async function reloadGlobalConfigsAndIntegrations2() {
|
|
|
110270
110270
|
return runWithoutRequestAuth(() => runSlackLifecycleExclusive(() => reloadGlobalConfigsAndIntegrationsInner()));
|
|
110271
110271
|
}
|
|
110272
110272
|
async function reloadGlobalConfigsAndIntegrationsInner() {
|
|
110273
|
-
const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-
|
|
110273
|
+
const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-c0e8en64.js");
|
|
110274
110274
|
const wasEmbeddingsConfigured = getEmbeddingProvider().isConfigured();
|
|
110275
110275
|
const updated = await loadGlobalConfigsIntoEnv2(true);
|
|
110276
110276
|
await syncTelemetryEnabled("settings").catch((err) => {
|
|
@@ -110286,7 +110286,7 @@ async function reloadGlobalConfigsAndIntegrationsInner() {
|
|
|
110286
110286
|
integrations.push("embeddings");
|
|
110287
110287
|
}
|
|
110288
110288
|
if (isEmbeddingsConfigured) {
|
|
110289
|
-
import("./embedding-space-
|
|
110289
|
+
import("./embedding-space-v06fwy7b.js").then(({ runEmbeddingMaintenance }) => runEmbeddingMaintenance({ backfill: !wasEmbeddingsConfigured })).catch((err) => {
|
|
110290
110290
|
console.error("[config-reload] embedding maintenance failed (non-fatal):", err);
|
|
110291
110291
|
});
|
|
110292
110292
|
}
|
|
@@ -117480,7 +117480,139 @@ function getUserCommsPrefs(user) {
|
|
|
117480
117480
|
var init_requester_comms = () => {};
|
|
117481
117481
|
|
|
117482
117482
|
// src/tools/get-task-details.ts
|
|
117483
|
-
|
|
117483
|
+
function head(value, chars) {
|
|
117484
|
+
const code = value.charCodeAt(chars - 1);
|
|
117485
|
+
return value.slice(0, code >= 55296 && code <= 56319 ? chars - 1 : chars);
|
|
117486
|
+
}
|
|
117487
|
+
function fitToBudget(full, include) {
|
|
117488
|
+
if (jsonBytes(full) <= FIT_BUDGET_BYTES)
|
|
117489
|
+
return full;
|
|
117490
|
+
const fitted = { budgetBytes: FIT_BUDGET_BYTES };
|
|
117491
|
+
const reduced = [];
|
|
117492
|
+
let task = full.task;
|
|
117493
|
+
let requestedBy = full.requestedBy;
|
|
117494
|
+
let logs = full.logs;
|
|
117495
|
+
const view = () => ({
|
|
117496
|
+
...full,
|
|
117497
|
+
task,
|
|
117498
|
+
requestedBy,
|
|
117499
|
+
logs,
|
|
117500
|
+
fitted: { ...fitted, include: reduced }
|
|
117501
|
+
});
|
|
117502
|
+
const fits = () => jsonBytes(view()) <= FIT_BUDGET_BYTES;
|
|
117503
|
+
if (!include.has("logs")) {
|
|
117504
|
+
reduced.push("logs");
|
|
117505
|
+
const taskAgentId = full.task.agentId;
|
|
117506
|
+
const compact = full.logs.map(({ taskId: _sameTask, agentId, ...rest }) => agentId && agentId !== taskAgentId ? { ...rest, agentId } : rest);
|
|
117507
|
+
logs = compact;
|
|
117508
|
+
fitted.logs = {
|
|
117509
|
+
compacted: "Log rows omit taskId (always this task) and agentId where it equals task.agentId."
|
|
117510
|
+
};
|
|
117511
|
+
if (!fits()) {
|
|
117512
|
+
let newestProgress = -1;
|
|
117513
|
+
compact.forEach((log, i) => {
|
|
117514
|
+
if (log.eventType === "task_progress")
|
|
117515
|
+
newestProgress = i;
|
|
117516
|
+
});
|
|
117517
|
+
const droppable = compact.map((_log, i) => i).filter((i) => i !== newestProgress && !LIFECYCLE_EVENTS.has(compact[i]?.eventType ?? ""));
|
|
117518
|
+
const { compacted } = fitted.logs;
|
|
117519
|
+
const without = (count) => {
|
|
117520
|
+
const drop = new Set(droppable.slice(0, count));
|
|
117521
|
+
const byEventType = {};
|
|
117522
|
+
for (const i of drop) {
|
|
117523
|
+
const type = compact[i]?.eventType ?? "unknown";
|
|
117524
|
+
byEventType[type] = (byEventType[type] ?? 0) + 1;
|
|
117525
|
+
}
|
|
117526
|
+
fitted.logs = count > 0 ? { compacted, omitted: count, omittedByEventType: byEventType } : { compacted };
|
|
117527
|
+
return compact.filter((_, i) => !drop.has(i));
|
|
117528
|
+
};
|
|
117529
|
+
let low = 1;
|
|
117530
|
+
let high = droppable.length;
|
|
117531
|
+
while (low < high) {
|
|
117532
|
+
const mid = Math.floor((low + high) / 2);
|
|
117533
|
+
logs = without(mid);
|
|
117534
|
+
if (fits())
|
|
117535
|
+
high = mid;
|
|
117536
|
+
else
|
|
117537
|
+
low = mid + 1;
|
|
117538
|
+
}
|
|
117539
|
+
const dropped = Math.min(low, droppable.length);
|
|
117540
|
+
logs = without(dropped);
|
|
117541
|
+
}
|
|
117542
|
+
}
|
|
117543
|
+
if (!fits() && !include.has("text")) {
|
|
117544
|
+
reduced.push("text");
|
|
117545
|
+
fitted.text = [];
|
|
117546
|
+
task = { ...task };
|
|
117547
|
+
if (requestedBy) {
|
|
117548
|
+
const comms = requestedBy.comms;
|
|
117549
|
+
requestedBy = {
|
|
117550
|
+
...requestedBy,
|
|
117551
|
+
...comms && typeof comms === "object" ? { comms: { ...comms } } : {}
|
|
117552
|
+
};
|
|
117553
|
+
}
|
|
117554
|
+
const shortenLogs = !include.has("logs");
|
|
117555
|
+
if (shortenLogs)
|
|
117556
|
+
logs = logs.map((log) => ({ ...log }));
|
|
117557
|
+
const slots = () => {
|
|
117558
|
+
const out = [];
|
|
117559
|
+
const mutableTask = task;
|
|
117560
|
+
for (const key of TASK_TEXT_FIELDS) {
|
|
117561
|
+
const value = mutableTask[key];
|
|
117562
|
+
if (typeof value === "string") {
|
|
117563
|
+
out.push({ field: `task.${key}`, value, set: (next) => mutableTask[key] = next });
|
|
117564
|
+
}
|
|
117565
|
+
}
|
|
117566
|
+
const owner = requestedBy;
|
|
117567
|
+
const comms = owner?.comms;
|
|
117568
|
+
for (const [prefix, record] of [
|
|
117569
|
+
["requestedBy", owner],
|
|
117570
|
+
["requestedBy.comms", comms]
|
|
117571
|
+
]) {
|
|
117572
|
+
if (!record)
|
|
117573
|
+
continue;
|
|
117574
|
+
for (const [key, value] of Object.entries(record)) {
|
|
117575
|
+
if (typeof value === "string" && key !== "name" && key !== "email" && key !== "role") {
|
|
117576
|
+
out.push({ field: `${prefix}.${key}`, value, set: (next) => record[key] = next });
|
|
117577
|
+
}
|
|
117578
|
+
}
|
|
117579
|
+
}
|
|
117580
|
+
if (shortenLogs) {
|
|
117581
|
+
logs.forEach((log, i) => {
|
|
117582
|
+
for (const key of ["newValue", "oldValue", "metadata"]) {
|
|
117583
|
+
const value = log[key];
|
|
117584
|
+
if (typeof value === "string") {
|
|
117585
|
+
out.push({ field: `logs[${i}].${key}`, value, set: (next) => log[key] = next });
|
|
117586
|
+
}
|
|
117587
|
+
}
|
|
117588
|
+
});
|
|
117589
|
+
}
|
|
117590
|
+
return out;
|
|
117591
|
+
};
|
|
117592
|
+
const original = new Map;
|
|
117593
|
+
for (let round = 0;round < 40 && !fits(); round++) {
|
|
117594
|
+
const over = jsonBytes(view()) - FIT_BUDGET_BYTES;
|
|
117595
|
+
const longest = slots().reduce((best, slot) => !best || slot.value.length > best.value.length ? slot : best, undefined);
|
|
117596
|
+
if (!longest || longest.value.length <= MIN_TEXT_CHARS + 120)
|
|
117597
|
+
break;
|
|
117598
|
+
const first = original.get(longest.field) ?? longest.value.length;
|
|
117599
|
+
original.set(longest.field, first);
|
|
117600
|
+
const keep = Math.max(MIN_TEXT_CHARS, longest.value.length - over - 120);
|
|
117601
|
+
longest.set(`${head(longest.value, keep)}… [cut, ${first} chars in full; include "text" for all]`);
|
|
117602
|
+
const existing = fitted.text.find((entry) => entry.field === longest.field);
|
|
117603
|
+
if (existing)
|
|
117604
|
+
existing.keptChars = keep;
|
|
117605
|
+
else
|
|
117606
|
+
fitted.text.push({ field: longest.field, originalChars: first, keptChars: keep });
|
|
117607
|
+
}
|
|
117608
|
+
if (fitted.text.length === 0) {
|
|
117609
|
+
delete fitted.text;
|
|
117610
|
+
reduced.pop();
|
|
117611
|
+
}
|
|
117612
|
+
}
|
|
117613
|
+
return view();
|
|
117614
|
+
}
|
|
117615
|
+
async function getTaskDetailsHandler(ctx, { taskId, include }) {
|
|
117484
117616
|
const task = await getTaskById2(taskId);
|
|
117485
117617
|
const agentId = ctx.kind === "owner" ? ctx.agentId : undefined;
|
|
117486
117618
|
if (!task) {
|
|
@@ -117499,22 +117631,26 @@ async function getTaskDetailsHandler(ctx, { taskId }) {
|
|
|
117499
117631
|
notes: requestedByUser.notes,
|
|
117500
117632
|
comms: getUserCommsPrefs(requestedByUser)
|
|
117501
117633
|
} : undefined;
|
|
117502
|
-
const
|
|
117634
|
+
const full = {
|
|
117503
117635
|
yourAgentId: agentId,
|
|
117504
117636
|
task,
|
|
117505
117637
|
requestedBy,
|
|
117506
117638
|
logs,
|
|
117507
117639
|
attachments
|
|
117508
117640
|
};
|
|
117509
|
-
|
|
117641
|
+
const origin = ctx.kind === "owner" ? ctx.requestInfo?.callOrigin : undefined;
|
|
117642
|
+
const data = origin === "script-sdk" || origin === "extension" ? full : fitToBudget(full, new Set(include ?? []));
|
|
117643
|
+
const reducedParts = data.fitted?.include ?? [];
|
|
117644
|
+
const fitNote = reducedParts.length ? ` Fitted to the size budget; include ${JSON.stringify(reducedParts)} for the rest.` : "";
|
|
117645
|
+
return toolOk(`Task "${taskId}" (${task.status}) details retrieved.${fitNote}`, {
|
|
117510
117646
|
details: JSON.stringify(data),
|
|
117511
117647
|
data
|
|
117512
117648
|
});
|
|
117513
117649
|
}
|
|
117514
|
-
var getTaskDetailsInputSchema, looseFollowUpConfigSchema, looseRoutingAffinitySchema, looseAgentTaskOutputSchema, looseAgentLogSchema, looseTaskAttachmentSchema, getTaskDetailsOutputSchema, registerGetTaskDetailsTool = (server) => {
|
|
117650
|
+
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
117651
|
createToolRegistrar(server)("get-task-details", {
|
|
117516
117652
|
title: "Get task details",
|
|
117517
|
-
description:
|
|
117653
|
+
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
117654
|
annotations: { readOnlyHint: true },
|
|
117519
117655
|
inputSchema: getTaskDetailsInputSchema,
|
|
117520
117656
|
outputSchema: getTaskDetailsOutputSchema
|
|
@@ -117527,8 +117663,10 @@ var init_get_task_details = __esm(() => {
|
|
|
117527
117663
|
init_utils();
|
|
117528
117664
|
init_types5();
|
|
117529
117665
|
init_requester_comms();
|
|
117666
|
+
GET_TASK_DETAILS_INCLUDE = ["logs", "text"];
|
|
117530
117667
|
getTaskDetailsInputSchema = object2({
|
|
117531
|
-
taskId: uuid().describe("The ID of the task to get details for.")
|
|
117668
|
+
taskId: uuid().describe("The ID of the task to get details for."),
|
|
117669
|
+
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
117670
|
});
|
|
117533
117671
|
looseFollowUpConfigSchema = looseObject({
|
|
117534
117672
|
disabled: boolean().optional(),
|
|
@@ -117663,8 +117801,24 @@ var init_get_task_details = __esm(() => {
|
|
|
117663
117801
|
}).optional()
|
|
117664
117802
|
}).optional().describe("Resolved user who requested this task, with role/notes and structured communication preferences (users.metadata.comms) when set"),
|
|
117665
117803
|
logs: array2(looseAgentLogSchema).optional(),
|
|
117666
|
-
attachments: array2(looseTaskAttachmentSchema).optional().describe("Pointer-based artifacts attached to this task via store-progress, ordered by created_at.")
|
|
117804
|
+
attachments: array2(looseTaskAttachmentSchema).optional().describe("Pointer-based artifacts attached to this task via store-progress, ordered by created_at."),
|
|
117805
|
+
fitted: looseObject({
|
|
117806
|
+
budgetBytes: number2().optional(),
|
|
117807
|
+
logs: looseObject({
|
|
117808
|
+
compacted: string2().optional(),
|
|
117809
|
+
omitted: number2().optional(),
|
|
117810
|
+
omittedByEventType: record2(string2(), number2()).optional()
|
|
117811
|
+
}).optional(),
|
|
117812
|
+
text: array2(looseObject({
|
|
117813
|
+
field: string2().optional(),
|
|
117814
|
+
originalChars: number2().optional(),
|
|
117815
|
+
keptChars: number2().optional()
|
|
117816
|
+
})).optional(),
|
|
117817
|
+
include: array2(string2()).optional()
|
|
117818
|
+
}).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
117819
|
});
|
|
117820
|
+
LIFECYCLE_EVENTS = new Set(["task_created", "task_status_change"]);
|
|
117821
|
+
TASK_TEXT_FIELDS = ["task", "output", "progress", "failureReason"];
|
|
117668
117822
|
});
|
|
117669
117823
|
|
|
117670
117824
|
// src/tools/cancel-task.ts
|
|
@@ -117898,7 +118052,7 @@ ${issues.map((issue) => `- ${issue}`).join(`
|
|
|
117898
118052
|
`)}`;
|
|
117899
118053
|
}
|
|
117900
118054
|
async function cardToSlack(card) {
|
|
117901
|
-
const { cardToBlockKit, cardToFallbackText } = await import("./index-
|
|
118055
|
+
const { cardToBlockKit, cardToFallbackText } = await import("./index-e8pz8qdg.js");
|
|
117902
118056
|
const issues = cardChildren(card).flatMap((child) => {
|
|
117903
118057
|
const native = NATIVE_SLACK_BLOCKS[child.type];
|
|
117904
118058
|
if (!native)
|
|
@@ -136292,7 +136446,20 @@ function validateRecurringTiming(merged) {
|
|
|
136292
136446
|
}
|
|
136293
136447
|
return null;
|
|
136294
136448
|
}
|
|
136295
|
-
|
|
136449
|
+
function changesScheduleTarget(existing, patch) {
|
|
136450
|
+
return SCHEDULE_TARGET_FIELDS.some((field) => patch[field] !== undefined && !Bun.deepEquals(patch[field] ?? null, existing[field] ?? null));
|
|
136451
|
+
}
|
|
136452
|
+
var SCHEDULE_TARGET_FIELDS;
|
|
136453
|
+
var init_validate = __esm(() => {
|
|
136454
|
+
SCHEDULE_TARGET_FIELDS = [
|
|
136455
|
+
"targetType",
|
|
136456
|
+
"taskTemplate",
|
|
136457
|
+
"workflowId",
|
|
136458
|
+
"scriptName",
|
|
136459
|
+
"scriptArgs",
|
|
136460
|
+
"params"
|
|
136461
|
+
];
|
|
136462
|
+
});
|
|
136296
136463
|
|
|
136297
136464
|
// src/tools/schedules/patch-schedule.ts
|
|
136298
136465
|
var import_cron_parser3, patchScheduleInputSchema, scheduleDataShape2, registerPatchScheduleTool = (server) => {
|
|
@@ -136349,6 +136516,20 @@ var import_cron_parser3, patchScheduleInputSchema, scheduleDataShape2, registerP
|
|
|
136349
136516
|
}).allow) {
|
|
136350
136517
|
return toolErr(`Schedule "${schedule.name}" defers another agent's task. Only that agent or a lead can change it.`);
|
|
136351
136518
|
}
|
|
136519
|
+
if (changesScheduleTarget(schedule, {
|
|
136520
|
+
targetType,
|
|
136521
|
+
taskTemplate,
|
|
136522
|
+
workflowId,
|
|
136523
|
+
scriptName,
|
|
136524
|
+
scriptArgs
|
|
136525
|
+
}) && !can({
|
|
136526
|
+
principal: { kind: "agent", agentId: caller.id, isLead: caller.isLead },
|
|
136527
|
+
verb: "schedule.target.update.any",
|
|
136528
|
+
resource: { kind: "owned", ownerAgentId: schedule.createdByAgentId },
|
|
136529
|
+
source: "mcp"
|
|
136530
|
+
}).allow) {
|
|
136531
|
+
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.`);
|
|
136532
|
+
}
|
|
136352
136533
|
if (schedule.scheduleType === "one_time" && !schedule.enabled && schedule.lastRunAt) {
|
|
136353
136534
|
return toolErr(`One-time schedule "${schedule.name}" has already executed. Create a new one instead.`);
|
|
136354
136535
|
}
|
|
@@ -136662,7 +136843,7 @@ var import_cron_parser4, updateScheduleInputSchema, scheduleDataShape3, register
|
|
|
136662
136843
|
createToolRegistrar(server)("update-schedule", {
|
|
136663
136844
|
title: "Update Scheduled Task",
|
|
136664
136845
|
annotations: { idempotentHint: true },
|
|
136665
|
-
description: "Update an existing scheduled task. Any registered agent can update schedules.",
|
|
136846
|
+
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
136847
|
inputSchema: updateScheduleInputSchema,
|
|
136667
136848
|
outputSchema: swarmToolOutputSchema({
|
|
136668
136849
|
yourAgentId: string2().optional(),
|
|
@@ -136712,6 +136893,20 @@ var import_cron_parser4, updateScheduleInputSchema, scheduleDataShape3, register
|
|
|
136712
136893
|
}).allow) {
|
|
136713
136894
|
return toolErr(`Schedule "${schedule.name}" defers another agent's task. Only that agent or a lead can change it.`);
|
|
136714
136895
|
}
|
|
136896
|
+
if (changesScheduleTarget(schedule, {
|
|
136897
|
+
targetType,
|
|
136898
|
+
taskTemplate,
|
|
136899
|
+
workflowId,
|
|
136900
|
+
scriptName,
|
|
136901
|
+
scriptArgs
|
|
136902
|
+
}) && !can({
|
|
136903
|
+
principal: { kind: "agent", agentId: caller.id, isLead: caller.isLead },
|
|
136904
|
+
verb: "schedule.target.update.any",
|
|
136905
|
+
resource: { kind: "owned", ownerAgentId: schedule.createdByAgentId },
|
|
136906
|
+
source: "mcp"
|
|
136907
|
+
}).allow) {
|
|
136908
|
+
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.`);
|
|
136909
|
+
}
|
|
136715
136910
|
if (schedule.scheduleType === "one_time" && !schedule.enabled && schedule.lastRunAt) {
|
|
136716
136911
|
return toolErr(`One-time schedule "${schedule.name}" has already executed. Create a new one instead.`);
|
|
136717
136912
|
}
|
|
@@ -142900,7 +143095,7 @@ async function readScriptActionAllowlist() {
|
|
|
142900
143095
|
const [row] = await getSwarmConfigs2({ scope: "global", key: UI_SPEC_SCRIPT_ACTIONS_KEY });
|
|
142901
143096
|
if (row)
|
|
142902
143097
|
return row.value;
|
|
142903
|
-
const { getDeploymentEnvValue } = await import("./core-
|
|
143098
|
+
const { getDeploymentEnvValue } = await import("./core-kdehq26g.js");
|
|
142904
143099
|
return getDeploymentEnvValue(UI_SPEC_SCRIPT_ACTIONS_KEY);
|
|
142905
143100
|
}
|
|
142906
143101
|
async function loadScriptActionLookups() {
|
|
@@ -144787,7 +144982,7 @@ async function emitBudgetRefusalSideEffects(ctx, inserted) {
|
|
|
144787
144982
|
console.warn(`[budget-refusal-notify] Failed to create follow-up task for budget refusal (task=${ctx.task.id.slice(0, 8)}): ${err}`);
|
|
144788
144983
|
}
|
|
144789
144984
|
}
|
|
144790
|
-
import("./event-bus-
|
|
144985
|
+
import("./event-bus-08t2b4y2.js").then(({ workflowEventBus }) => {
|
|
144791
144986
|
workflowEventBus.emit("task.budget_refused", {
|
|
144792
144987
|
taskId: ctx.task.id,
|
|
144793
144988
|
agentId: ctx.agentId,
|
|
@@ -147384,4 +147579,4 @@ var init_server = __esm(() => {
|
|
|
147384
147579
|
loggedToolAllowlistWarnings = new Set;
|
|
147385
147580
|
});
|
|
147386
147581
|
|
|
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 };
|
|
147582
|
+
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, changesScheduleTarget, 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 };
|