@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
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
assertUrlSafe,
|
|
11
11
|
EgressDeniedError,
|
|
12
12
|
createGuardedFetch,
|
|
13
|
+
createSsrfGuardedFetch,
|
|
13
14
|
init_egress_guard,
|
|
14
15
|
init_credential_broker,
|
|
15
16
|
encryptSecret,
|
|
@@ -556,7 +557,7 @@ import {
|
|
|
556
557
|
countScriptRunJournalSteps2,
|
|
557
558
|
countScriptRunJournalAgentTaskSteps2,
|
|
558
559
|
init_db4
|
|
559
|
-
} from "./cli-
|
|
560
|
+
} from "./cli-h9bejmkf.js";
|
|
560
561
|
import {
|
|
561
562
|
PRIMARY_ROLE_NAMES2,
|
|
562
563
|
OperatorGrantedTargetError2,
|
|
@@ -570,7 +571,7 @@ import {
|
|
|
570
571
|
assertNotLastAdmin2,
|
|
571
572
|
setUserRoles2,
|
|
572
573
|
init_rbac_roles
|
|
573
|
-
} from "./cli-
|
|
574
|
+
} from "./cli-qx1dwrr5.js";
|
|
574
575
|
import {
|
|
575
576
|
MAX_MODEL_GROUP_MEMBERS,
|
|
576
577
|
listModelGroups,
|
|
@@ -580,19 +581,19 @@ import {
|
|
|
580
581
|
modelGroupReferences,
|
|
581
582
|
deleteModelGroup,
|
|
582
583
|
init_model_groups
|
|
583
|
-
} from "./cli-
|
|
584
|
+
} from "./cli-8rbkw18r.js";
|
|
584
585
|
import {
|
|
585
586
|
requestModelCatalogRefresh2,
|
|
586
587
|
init_pricing_refresh
|
|
587
|
-
} from "./cli-
|
|
588
|
+
} from "./cli-4h90xaet.js";
|
|
588
589
|
import {
|
|
589
590
|
workflowEventBus2,
|
|
590
591
|
init_event_bus
|
|
591
|
-
} from "./cli-
|
|
592
|
-
import"./cli-
|
|
593
|
-
import"./cli-
|
|
594
|
-
import"./cli-
|
|
595
|
-
import"./cli-
|
|
592
|
+
} from "./cli-vx9acp12.js";
|
|
593
|
+
import"./cli-cqxwjb93.js";
|
|
594
|
+
import"./cli-w6c6dj91.js";
|
|
595
|
+
import"./cli-vr4eyq6p.js";
|
|
596
|
+
import"./cli-4tbvndmm.js";
|
|
596
597
|
import {
|
|
597
598
|
require_dist4,
|
|
598
599
|
getSlackConnectionState,
|
|
@@ -630,7 +631,7 @@ import {
|
|
|
630
631
|
startSlackApp2,
|
|
631
632
|
stopSlackApp2,
|
|
632
633
|
init_app4
|
|
633
|
-
} from "./cli-
|
|
634
|
+
} from "./cli-t90k0phh.js";
|
|
634
635
|
import {
|
|
635
636
|
AGENT_MAX_TASKS_CONFIG_KEY,
|
|
636
637
|
reconcileAgentMaxTasksPolicy,
|
|
@@ -659,12 +660,12 @@ import {
|
|
|
659
660
|
dispatchApprovalNotifications2,
|
|
660
661
|
createApprovalFollowUpTask2,
|
|
661
662
|
init_approval_notifications
|
|
662
|
-
} from "./cli-
|
|
663
|
+
} from "./cli-hs3mqswp.js";
|
|
663
664
|
import {
|
|
664
665
|
retryFailedRun2,
|
|
665
666
|
cancelWorkflowRun2,
|
|
666
667
|
init_resume
|
|
667
|
-
} from "./cli-
|
|
668
|
+
} from "./cli-zvpkrgsc.js";
|
|
668
669
|
import {
|
|
669
670
|
safeParse,
|
|
670
671
|
getObjectShape,
|
|
@@ -1103,6 +1104,7 @@ import {
|
|
|
1103
1104
|
init_events,
|
|
1104
1105
|
mergeScheduleTiming,
|
|
1105
1106
|
validateRecurringTiming,
|
|
1107
|
+
changesScheduleTarget,
|
|
1106
1108
|
init_validate,
|
|
1107
1109
|
followUpThreadForSourceTask,
|
|
1108
1110
|
evaluateFollowUpRedelegation,
|
|
@@ -1155,7 +1157,7 @@ import {
|
|
|
1155
1157
|
getEnabledCapabilities,
|
|
1156
1158
|
createServer,
|
|
1157
1159
|
init_server
|
|
1158
|
-
} from "./cli-
|
|
1160
|
+
} from "./cli-fn8aj7gb.js";
|
|
1159
1161
|
import {
|
|
1160
1162
|
getFileStorageProvider2,
|
|
1161
1163
|
init_registry2
|
|
@@ -1181,7 +1183,7 @@ import {
|
|
|
1181
1183
|
resolvePoolDelivery2,
|
|
1182
1184
|
createPoolAgent2,
|
|
1183
1185
|
init_db2
|
|
1184
|
-
} from "./cli-
|
|
1186
|
+
} from "./cli-0fx95c06.js";
|
|
1185
1187
|
import {
|
|
1186
1188
|
duplicateGuardedQueryKey,
|
|
1187
1189
|
warnIfCorsAllowsAnyOrigin,
|
|
@@ -1232,7 +1234,7 @@ import {
|
|
|
1232
1234
|
describeRequestRoute,
|
|
1233
1235
|
route,
|
|
1234
1236
|
init_route_def
|
|
1235
|
-
} from "./cli-
|
|
1237
|
+
} from "./cli-a8ts6x1n.js";
|
|
1236
1238
|
import {
|
|
1237
1239
|
startPoolRouting,
|
|
1238
1240
|
stopPoolRouting,
|
|
@@ -1245,28 +1247,29 @@ import {
|
|
|
1245
1247
|
checkHeartbeatChecklist2,
|
|
1246
1248
|
runHeartbeatSweep2,
|
|
1247
1249
|
stopHeartbeat2
|
|
1248
|
-
} from "./cli-
|
|
1249
|
-
import"./cli-
|
|
1250
|
+
} from "./cli-aebswqmz.js";
|
|
1251
|
+
import"./cli-50whymxq.js";
|
|
1250
1252
|
import {
|
|
1251
1253
|
runtimeSupervisorStatus,
|
|
1252
1254
|
startRuntimeSupervisor,
|
|
1253
1255
|
stopRuntimeSupervisor
|
|
1254
|
-
} from "./cli-
|
|
1256
|
+
} from "./cli-byxsctca.js";
|
|
1255
1257
|
import {
|
|
1256
1258
|
TASK_TITLE_TIMEOUT_MS,
|
|
1257
1259
|
generateTaskTitle
|
|
1258
|
-
} from "./cli-
|
|
1260
|
+
} from "./cli-cmgdptmx.js";
|
|
1259
1261
|
import"./cli-ns59dc6r.js";
|
|
1260
1262
|
import {
|
|
1261
1263
|
ACP_TARGET_IDS
|
|
1262
|
-
} from "./cli-
|
|
1264
|
+
} from "./cli-hv3820ez.js";
|
|
1263
1265
|
import {
|
|
1264
1266
|
reasoningCapability,
|
|
1265
1267
|
supportedReasoningLevels
|
|
1266
|
-
} from "./cli-
|
|
1268
|
+
} from "./cli-vdfngx2g.js";
|
|
1267
1269
|
import {
|
|
1268
|
-
MAX_RATE_LIMIT_RESET_MS
|
|
1269
|
-
|
|
1270
|
+
MAX_RATE_LIMIT_RESET_MS,
|
|
1271
|
+
MAX_SPEND_CAP_HOLD_MS
|
|
1272
|
+
} from "./cli-zkbz8m2q.js";
|
|
1270
1273
|
import {
|
|
1271
1274
|
isLeadChannelMonitoringEnabled,
|
|
1272
1275
|
ORG_IDENTITY_KEYS,
|
|
@@ -1276,7 +1279,7 @@ import {
|
|
|
1276
1279
|
isUnknownModelError,
|
|
1277
1280
|
checkProviderPoolKey,
|
|
1278
1281
|
writeSkillsToFilesystem
|
|
1279
|
-
} from "./cli-
|
|
1282
|
+
} from "./cli-tzzas8rb.js";
|
|
1280
1283
|
import {
|
|
1281
1284
|
AgentFsRequestError2,
|
|
1282
1285
|
resolveAgentFsSharedContext2,
|
|
@@ -1287,7 +1290,7 @@ import {
|
|
|
1287
1290
|
agentFsRequest2,
|
|
1288
1291
|
resolveApiUrl2,
|
|
1289
1292
|
init_agent_fs_provision
|
|
1290
|
-
} from "./cli-
|
|
1293
|
+
} from "./cli-h03j6je3.js";
|
|
1291
1294
|
import {
|
|
1292
1295
|
Anthropic
|
|
1293
1296
|
} from "./cli-m4ejz4nj.js";
|
|
@@ -1295,8 +1298,8 @@ import {
|
|
|
1295
1298
|
objectWebhookSecret2,
|
|
1296
1299
|
handleObjectWebhookEvent2,
|
|
1297
1300
|
init_object_webhooks
|
|
1298
|
-
} from "./cli-
|
|
1299
|
-
import"./cli-
|
|
1301
|
+
} from "./cli-0a336ze7.js";
|
|
1302
|
+
import"./cli-1carhg8g.js";
|
|
1300
1303
|
import {
|
|
1301
1304
|
createUserMergeJob2,
|
|
1302
1305
|
getUserMergeJob2,
|
|
@@ -1305,7 +1308,7 @@ import {
|
|
|
1305
1308
|
findFailedUserMergeJob2,
|
|
1306
1309
|
requeueUserMergeJob2,
|
|
1307
1310
|
runUserMergeJobs2
|
|
1308
|
-
} from "./cli-
|
|
1311
|
+
} from "./cli-6r1dwegd.js";
|
|
1309
1312
|
import {
|
|
1310
1313
|
isCodexOAuthConfigKey
|
|
1311
1314
|
} from "./cli-j4bwnpkm.js";
|
|
@@ -1316,7 +1319,7 @@ import {
|
|
|
1316
1319
|
import {
|
|
1317
1320
|
runTaskUiAction,
|
|
1318
1321
|
init_actions
|
|
1319
|
-
} from "./cli-
|
|
1322
|
+
} from "./cli-jhtvt7gn.js";
|
|
1320
1323
|
import {
|
|
1321
1324
|
RATING_MODEL_MAX_LENGTH,
|
|
1322
1325
|
REFERENCES_SOURCE_MAX_LENGTH,
|
|
@@ -1411,7 +1414,7 @@ import {
|
|
|
1411
1414
|
init_typecheck,
|
|
1412
1415
|
parseSkillContent,
|
|
1413
1416
|
init_skill_parser
|
|
1414
|
-
} from "./cli-
|
|
1417
|
+
} from "./cli-13t0smbk.js";
|
|
1415
1418
|
import {
|
|
1416
1419
|
signalProcessGroup,
|
|
1417
1420
|
detachedProcessGroup,
|
|
@@ -1428,17 +1431,17 @@ import {
|
|
|
1428
1431
|
forceRefreshAuthorizationOrThrow,
|
|
1429
1432
|
forceRefreshTokenOrThrow,
|
|
1430
1433
|
init_ensure_token
|
|
1431
|
-
} from "./cli-
|
|
1434
|
+
} from "./cli-7ewre3dm.js";
|
|
1432
1435
|
import {
|
|
1433
1436
|
PRIMITIVE_KINDS,
|
|
1434
1437
|
ObjectsError,
|
|
1435
1438
|
recordObjectVersion,
|
|
1436
1439
|
init_objects
|
|
1437
|
-
} from "./cli-
|
|
1440
|
+
} from "./cli-3zyme1wt.js";
|
|
1438
1441
|
import {
|
|
1439
1442
|
agentFsClientFor,
|
|
1440
1443
|
init_agent_fs_identity
|
|
1441
|
-
} from "./cli-
|
|
1444
|
+
} from "./cli-y6qqbpwc.js";
|
|
1442
1445
|
import {
|
|
1443
1446
|
FilesError,
|
|
1444
1447
|
normalizeFilesError,
|
|
@@ -1447,7 +1450,7 @@ import {
|
|
|
1447
1450
|
AgentFsProvider,
|
|
1448
1451
|
init_agent_fs_provider
|
|
1449
1452
|
} from "./cli-skd2c4ej.js";
|
|
1450
|
-
import"./cli-
|
|
1453
|
+
import"./cli-cn6fpa1p.js";
|
|
1451
1454
|
import {
|
|
1452
1455
|
automationIntegrationFixUrl,
|
|
1453
1456
|
preflightAutomation,
|
|
@@ -1469,7 +1472,7 @@ import {
|
|
|
1469
1472
|
definitionNodeIds,
|
|
1470
1473
|
validateDefinition,
|
|
1471
1474
|
init_definition2
|
|
1472
|
-
} from "./cli-
|
|
1475
|
+
} from "./cli-1dr5at77.js";
|
|
1473
1476
|
import {
|
|
1474
1477
|
_fetchHolder,
|
|
1475
1478
|
CLIENT_ID,
|
|
@@ -1485,7 +1488,7 @@ import {
|
|
|
1485
1488
|
loadAllCodexOAuthSlots,
|
|
1486
1489
|
getValidCodexOAuth,
|
|
1487
1490
|
init_storage
|
|
1488
|
-
} from "./cli-
|
|
1491
|
+
} from "./cli-8fj8yfmk.js";
|
|
1489
1492
|
import {
|
|
1490
1493
|
isMultiRuntimeEnabled,
|
|
1491
1494
|
init_multi_runtime2
|
|
@@ -1497,11 +1500,11 @@ import {
|
|
|
1497
1500
|
import {
|
|
1498
1501
|
createRuntimeProvider,
|
|
1499
1502
|
init_runtime_providers
|
|
1500
|
-
} from "./cli-
|
|
1503
|
+
} from "./cli-43dsqhcp.js";
|
|
1501
1504
|
import {
|
|
1502
1505
|
require_content_type
|
|
1503
1506
|
} from "./cli-1jx0srjt.js";
|
|
1504
|
-
import"./cli-
|
|
1507
|
+
import"./cli-84xtgbn6.js";
|
|
1505
1508
|
import {
|
|
1506
1509
|
hasSessionAccess,
|
|
1507
1510
|
getSessionRoot,
|
|
@@ -1511,7 +1514,7 @@ import {
|
|
|
1511
1514
|
toSessionSharesState,
|
|
1512
1515
|
setSessionShares,
|
|
1513
1516
|
init_session_shares
|
|
1514
|
-
} from "./cli-
|
|
1517
|
+
} from "./cli-w41bvvms.js";
|
|
1515
1518
|
import {
|
|
1516
1519
|
isInvalidClientError,
|
|
1517
1520
|
publicEndpointSsrfOptions,
|
|
@@ -1529,7 +1532,7 @@ import {
|
|
|
1529
1532
|
revokeMcpToken,
|
|
1530
1533
|
computeExpiresAt,
|
|
1531
1534
|
init_mcp_wrapper
|
|
1532
|
-
} from "./cli-
|
|
1535
|
+
} from "./cli-c0tyzt73.js";
|
|
1533
1536
|
import"./cli-v41kn3cd.js";
|
|
1534
1537
|
import {
|
|
1535
1538
|
setBedrockProviderModule,
|
|
@@ -1569,7 +1572,7 @@ import {
|
|
|
1569
1572
|
revokeAllAgentSessionTokens,
|
|
1570
1573
|
fingerprintApiKey,
|
|
1571
1574
|
init_users
|
|
1572
|
-
} from "./cli-
|
|
1575
|
+
} from "./cli-z6m6xzxt.js";
|
|
1573
1576
|
import {
|
|
1574
1577
|
CORE_TOOLS,
|
|
1575
1578
|
init_tool_config
|
|
@@ -1582,7 +1585,7 @@ import {
|
|
|
1582
1585
|
providerAccountTelemetrySchema,
|
|
1583
1586
|
rateLimitReplacementSchema,
|
|
1584
1587
|
init_provider_account_telemetry
|
|
1585
|
-
} from "./cli-
|
|
1588
|
+
} from "./cli-ya1cj689.js";
|
|
1586
1589
|
import {
|
|
1587
1590
|
CODEX_AUTH_FAILURE_BENCH_THRESHOLD,
|
|
1588
1591
|
CODEX_AUTH_WATCH_NAMESPACE,
|
|
@@ -1597,7 +1600,7 @@ import {
|
|
|
1597
1600
|
IDENTITY_FIELD_BUDGETS,
|
|
1598
1601
|
IdentityFieldBudgetError,
|
|
1599
1602
|
init_identity_field_budget
|
|
1600
|
-
} from "./cli-
|
|
1603
|
+
} from "./cli-s6fhqbz1.js";
|
|
1601
1604
|
import {
|
|
1602
1605
|
getSlackConfiguration,
|
|
1603
1606
|
init_config4
|
|
@@ -1625,7 +1628,7 @@ import {
|
|
|
1625
1628
|
splitCredentialPool,
|
|
1626
1629
|
selectCredential,
|
|
1627
1630
|
init_credentials2
|
|
1628
|
-
} from "./cli-
|
|
1631
|
+
} from "./cli-5basv0e7.js";
|
|
1629
1632
|
import {
|
|
1630
1633
|
getOpenRouterAttributionHeaders,
|
|
1631
1634
|
init_openrouter_base_url
|
|
@@ -1639,7 +1642,7 @@ import {
|
|
|
1639
1642
|
resolveTemplate,
|
|
1640
1643
|
init_resolver,
|
|
1641
1644
|
init_session_templates
|
|
1642
|
-
} from "./cli-
|
|
1645
|
+
} from "./cli-mwxez0pz.js";
|
|
1643
1646
|
import {
|
|
1644
1647
|
ASSET_KEY_MAX_LENGTH,
|
|
1645
1648
|
AssetKeyError,
|
|
@@ -1867,7 +1870,7 @@ import {
|
|
|
1867
1870
|
import {
|
|
1868
1871
|
init_package,
|
|
1869
1872
|
package_default
|
|
1870
|
-
} from "./cli-
|
|
1873
|
+
} from "./cli-w24f3j49.js";
|
|
1871
1874
|
import {
|
|
1872
1875
|
realtimeBus,
|
|
1873
1876
|
init_bus
|
|
@@ -1883,7 +1886,7 @@ import {
|
|
|
1883
1886
|
registerVolatileSecret,
|
|
1884
1887
|
registerEnvSecrets,
|
|
1885
1888
|
init_secret_scrubber
|
|
1886
|
-
} from "./cli-
|
|
1889
|
+
} from "./cli-fp65jdp2.js";
|
|
1887
1890
|
import {
|
|
1888
1891
|
__toESM
|
|
1889
1892
|
} from "./cli-242037k3.js";
|
|
@@ -8777,6 +8780,7 @@ async function handleAgentsRest(req, res, pathSegments, queryParams, myAgentId)
|
|
|
8777
8780
|
if (model !== undefined || profile === null) {
|
|
8778
8781
|
await deleteSwarmConfigByKey2("agent", parsed.params.id, MODEL_PROFILE_CONFIG_KEY);
|
|
8779
8782
|
} else if (profile !== undefined) {
|
|
8783
|
+
await deleteSwarmConfigByKey2("agent", parsed.params.id, "MODEL_OVERRIDE");
|
|
8780
8784
|
await upsertSwarmConfig2({
|
|
8781
8785
|
scope: "agent",
|
|
8782
8786
|
scopeId: parsed.params.id,
|
|
@@ -9394,6 +9398,11 @@ var reportUsage = route({
|
|
|
9394
9398
|
},
|
|
9395
9399
|
auth: { apiKey: true }
|
|
9396
9400
|
});
|
|
9401
|
+
var SpendCapSchema = object2({
|
|
9402
|
+
limitUsd: number2().nullable(),
|
|
9403
|
+
spendUsd: number2().nullable(),
|
|
9404
|
+
resetsAt: string2().datetime().nullable()
|
|
9405
|
+
});
|
|
9397
9406
|
var reportRateLimit = route({
|
|
9398
9407
|
method: "post",
|
|
9399
9408
|
path: "/api/keys/report-rate-limit",
|
|
@@ -9406,7 +9415,8 @@ var reportRateLimit = route({
|
|
|
9406
9415
|
keyIndex: number2().int().min(0),
|
|
9407
9416
|
rateLimitedUntil: string2().datetime(),
|
|
9408
9417
|
scope: string2().optional(),
|
|
9409
|
-
scopeId: string2().optional()
|
|
9418
|
+
scopeId: string2().optional(),
|
|
9419
|
+
spendCap: SpendCapSchema.optional()
|
|
9410
9420
|
}),
|
|
9411
9421
|
responses: {
|
|
9412
9422
|
200: { description: "Key marked as rate-limited", schema: successMessageSchema },
|
|
@@ -9625,6 +9635,7 @@ var getAvailable = route({
|
|
|
9625
9635
|
modelBlockedIndices: array2(number2().int()).optional(),
|
|
9626
9636
|
earliestModelResetAt: string2().nullable().optional(),
|
|
9627
9637
|
seatBlockedIndices: array2(number2().int()).optional(),
|
|
9638
|
+
spendCappedIndices: array2(number2().int()),
|
|
9628
9639
|
authFailureFence: number2().int()
|
|
9629
9640
|
})
|
|
9630
9641
|
},
|
|
@@ -9642,6 +9653,7 @@ var ApiKeyStatusSchema = object2({
|
|
|
9642
9653
|
scopeId: string2().nullable(),
|
|
9643
9654
|
status: string2(),
|
|
9644
9655
|
rateLimitedUntil: string2().nullable(),
|
|
9656
|
+
spendCap: SpendCapSchema.nullable(),
|
|
9645
9657
|
lastUsedAt: string2().nullable(),
|
|
9646
9658
|
lastRateLimitAt: string2().nullable(),
|
|
9647
9659
|
totalUsageCount: number2().int(),
|
|
@@ -9899,12 +9911,14 @@ async function handleApiKeys(req, res, pathSegments, queryParams) {
|
|
|
9899
9911
|
const parsed = await reportRateLimit.parse(req, res, pathSegments, queryParams);
|
|
9900
9912
|
if (!parsed)
|
|
9901
9913
|
return true;
|
|
9902
|
-
const { keyType, keySuffix, keyIndex,
|
|
9914
|
+
const { keyType, keySuffix, keyIndex, scope, scopeId, spendCap } = parsed.body;
|
|
9915
|
+
const holdUntilMs = Date.now() + (spendCap ? MAX_SPEND_CAP_HOLD_MS : MAX_RATE_LIMIT_RESET_MS);
|
|
9916
|
+
const rateLimitedUntil = new Date(Math.min(Date.parse(parsed.body.rateLimitedUntil), holdUntilMs)).toISOString();
|
|
9903
9917
|
try {
|
|
9904
|
-
await markKeyRateLimited2(keyType, keySuffix, keyIndex, rateLimitedUntil, scope, scopeId ?? null);
|
|
9918
|
+
await markKeyRateLimited2(keyType, keySuffix, keyIndex, rateLimitedUntil, scope, scopeId ?? null, spendCap ?? null);
|
|
9905
9919
|
reportRateLimit.respond(res, 200, {
|
|
9906
9920
|
success: true,
|
|
9907
|
-
message: `Key ...${keySuffix} marked as rate-limited until ${rateLimitedUntil}`
|
|
9921
|
+
message: `Key ...${keySuffix} marked as ${spendCap ? "spend-capped" : "rate-limited"} until ${rateLimitedUntil}`
|
|
9908
9922
|
});
|
|
9909
9923
|
} catch (err) {
|
|
9910
9924
|
jsonError(res, err instanceof Error ? err.message : "Failed to mark rate limit", 500);
|
|
@@ -9989,6 +10003,7 @@ async function handleApiKeys(req, res, pathSegments, queryParams) {
|
|
|
9989
10003
|
success: true,
|
|
9990
10004
|
availableIndices: result.availableIndices,
|
|
9991
10005
|
rejectedIndices: result.rejectedIndices,
|
|
10006
|
+
spendCappedIndices: result.spendCappedIndices,
|
|
9992
10007
|
totalKeys,
|
|
9993
10008
|
authFailureFence: result.authFailureFence,
|
|
9994
10009
|
...model !== undefined ? {
|
|
@@ -15114,13 +15129,13 @@ declare module "swarm-extension" {
|
|
|
15114
15129
|
sourceAgentId?: string | undefined;
|
|
15115
15130
|
role?: string | undefined;
|
|
15116
15131
|
harnessProvider?:
|
|
15132
|
+
| "codex"
|
|
15117
15133
|
| "pi"
|
|
15134
|
+
| "opencode"
|
|
15118
15135
|
| "claude"
|
|
15119
15136
|
| "claude-managed"
|
|
15120
|
-
| "codex"
|
|
15121
15137
|
| "grok"
|
|
15122
15138
|
| "fx"
|
|
15123
|
-
| "opencode"
|
|
15124
15139
|
| "dsh"
|
|
15125
15140
|
| "cursor"
|
|
15126
15141
|
| "amp"
|
|
@@ -15282,13 +15297,13 @@ declare module "swarm-extension" {
|
|
|
15282
15297
|
requestedByUserId?: string | undefined;
|
|
15283
15298
|
swarmVersion?: string | undefined;
|
|
15284
15299
|
provider?:
|
|
15300
|
+
| "codex"
|
|
15285
15301
|
| "pi"
|
|
15302
|
+
| "opencode"
|
|
15286
15303
|
| "claude"
|
|
15287
15304
|
| "claude-managed"
|
|
15288
|
-
| "codex"
|
|
15289
15305
|
| "grok"
|
|
15290
15306
|
| "fx"
|
|
15291
|
-
| "opencode"
|
|
15292
15307
|
| "dsh"
|
|
15293
15308
|
| "cursor"
|
|
15294
15309
|
| "amp"
|
|
@@ -15305,13 +15320,13 @@ declare module "swarm-extension" {
|
|
|
15305
15320
|
sourceAgentId?: string | undefined;
|
|
15306
15321
|
role?: string | undefined;
|
|
15307
15322
|
harnessProvider?:
|
|
15323
|
+
| "codex"
|
|
15308
15324
|
| "pi"
|
|
15325
|
+
| "opencode"
|
|
15309
15326
|
| "claude"
|
|
15310
15327
|
| "claude-managed"
|
|
15311
|
-
| "codex"
|
|
15312
15328
|
| "grok"
|
|
15313
15329
|
| "fx"
|
|
15314
|
-
| "opencode"
|
|
15315
15330
|
| "dsh"
|
|
15316
15331
|
| "cursor"
|
|
15317
15332
|
| "amp"
|
|
@@ -15349,7 +15364,7 @@ declare module "swarm-extension" {
|
|
|
15349
15364
|
sourceTaskId: string | undefined;
|
|
15350
15365
|
auditSourceTaskId: string | undefined;
|
|
15351
15366
|
contextKey: string | undefined;
|
|
15352
|
-
callOrigin: "
|
|
15367
|
+
callOrigin: "native" | "mcp" | "extension" | "script-sdk";
|
|
15353
15368
|
harness?: string | undefined;
|
|
15354
15369
|
};
|
|
15355
15370
|
|
|
@@ -27933,8 +27948,10 @@ async function revokeLinearToken(accessToken) {
|
|
|
27933
27948
|
init_ensure_token();
|
|
27934
27949
|
|
|
27935
27950
|
// src/oauth/identity-capture.ts
|
|
27951
|
+
init_egress_guard();
|
|
27936
27952
|
init_secret_scrubber();
|
|
27937
27953
|
init_app_validation();
|
|
27954
|
+
init_mcp_wrapper();
|
|
27938
27955
|
var IDENTITY_FETCH_TIMEOUT_MS = 5000;
|
|
27939
27956
|
function pickString(value) {
|
|
27940
27957
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
@@ -27976,7 +27993,8 @@ async function captureIdentity(input) {
|
|
|
27976
27993
|
const controller = new AbortController;
|
|
27977
27994
|
const timer = setTimeout(() => controller.abort(), IDENTITY_FETCH_TIMEOUT_MS);
|
|
27978
27995
|
try {
|
|
27979
|
-
const
|
|
27996
|
+
const guardedFetch = createSsrfGuardedFetch(publicEndpointSsrfOptions());
|
|
27997
|
+
const response = await guardedFetch(input.userinfoUrl, {
|
|
27980
27998
|
headers: {
|
|
27981
27999
|
authorization: `Bearer ${input.accessToken}`,
|
|
27982
28000
|
accept: "application/json"
|
|
@@ -30021,7 +30039,6 @@ init_session_shares();
|
|
|
30021
30039
|
init_steering2();
|
|
30022
30040
|
init_task_citations2();
|
|
30023
30041
|
init_task_ui_spec();
|
|
30024
|
-
init_users();
|
|
30025
30042
|
init_rbac();
|
|
30026
30043
|
init_session_mirror();
|
|
30027
30044
|
init_context_key();
|
|
@@ -31241,11 +31258,7 @@ async function handleTasks(req, res, pathSegments, queryParams, myAgentId) {
|
|
|
31241
31258
|
jsonError(res, "Forbidden: caller cannot steer this task", 403);
|
|
31242
31259
|
return true;
|
|
31243
31260
|
}
|
|
31244
|
-
const
|
|
31245
|
-
let requestedByUserId = trustedUserId ?? undefined;
|
|
31246
|
-
if (process.env.TRUST_BODY_REQUESTED_BY_USER_ID !== "false" && !requestedByUserId && parsed.body.requestedByUserId) {
|
|
31247
|
-
requestedByUserId = (await findUserById(parsed.body.requestedByUserId))?.id;
|
|
31248
|
-
}
|
|
31261
|
+
const requestedByUserId = await resolveTaskRequester(req, myAgentId, parsed.body.requestedByUserId);
|
|
31249
31262
|
try {
|
|
31250
31263
|
const auth = getRequestAuth(req);
|
|
31251
31264
|
const createdByAgentId = !auth && myAgentId && await getAgentById2(myAgentId) ? myAgentId : undefined;
|
|
@@ -35039,16 +35052,35 @@ function getPageFrameAncestors() {
|
|
|
35039
35052
|
cachedFrameAncestors = { raw, origins };
|
|
35040
35053
|
return origins;
|
|
35041
35054
|
}
|
|
35055
|
+
function embedOrigins(appUrls) {
|
|
35056
|
+
const origins = new Set;
|
|
35057
|
+
for (const value of appUrls) {
|
|
35058
|
+
try {
|
|
35059
|
+
const url = new URL(value);
|
|
35060
|
+
if (url.protocol === "https:" || url.protocol === "http:")
|
|
35061
|
+
origins.add(url.origin);
|
|
35062
|
+
} catch {}
|
|
35063
|
+
}
|
|
35064
|
+
return Array.from(origins, (origin) => ` ${origin}`).join("");
|
|
35065
|
+
}
|
|
35066
|
+
function pageViewer(payload) {
|
|
35067
|
+
if (payload?.uid)
|
|
35068
|
+
return "user";
|
|
35069
|
+
if (payload?.op)
|
|
35070
|
+
return "operator";
|
|
35071
|
+
return "guest";
|
|
35072
|
+
}
|
|
35042
35073
|
function buildCsp(page) {
|
|
35043
35074
|
const configured = getConfiguredAppUrls();
|
|
35044
35075
|
const devFallbacks = getLocalDevAppOrigins();
|
|
35045
35076
|
const embedders = page.authMode === "public" ? getPageFrameAncestors() : [];
|
|
35046
35077
|
const ancestors = Array.from(new Set([...configured, ...devFallbacks, ...embedders]));
|
|
35078
|
+
const appOrigins = embedOrigins(configured);
|
|
35047
35079
|
return [
|
|
35048
35080
|
"default-src 'self'",
|
|
35049
|
-
|
|
35050
|
-
|
|
35051
|
-
|
|
35081
|
+
`script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.tailwindcss.com https://cdn.jsdelivr.net https://unpkg.com${appOrigins}`,
|
|
35082
|
+
`style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.tailwindcss.com https://cdn.jsdelivr.net https://unpkg.com${appOrigins}`,
|
|
35083
|
+
`font-src 'self' https://fonts.gstatic.com data:${appOrigins}`,
|
|
35052
35084
|
"img-src 'self' data: https:",
|
|
35053
35085
|
"media-src 'self' data: https: blob:",
|
|
35054
35086
|
"connect-src 'self'",
|
|
@@ -35243,7 +35275,7 @@ async function handlePagesPublic(req, res, pathSegments, queryParams) {
|
|
|
35243
35275
|
}
|
|
35244
35276
|
const feedback = isPageFeedbackRequested(queryParams);
|
|
35245
35277
|
const html = injectBrowserSdk(page.body, {
|
|
35246
|
-
head: pageHead(page, queryParams, wantsPrint)
|
|
35278
|
+
head: `${pageHead(page, queryParams, wantsPrint)}<meta name="swarm-viewer" content="${pageViewer(cookiePayload)}">`,
|
|
35247
35279
|
headFirst: feedback ? feedbackKeyGuardScript() : "",
|
|
35248
35280
|
standardsMode: page.designVersion !== 1
|
|
35249
35281
|
}) + (wantsPrint ? PRINT_AUTOTRIGGER_SCRIPT : "") + (feedback ? feedbackOverlayScripts(page.id) : "");
|
|
@@ -35939,14 +35971,21 @@ init_secret_scrubber();
|
|
|
35939
35971
|
init_core();
|
|
35940
35972
|
init_route_def();
|
|
35941
35973
|
init_utils2();
|
|
35942
|
-
var PoolKeyStatusSchema = _enum2([
|
|
35974
|
+
var PoolKeyStatusSchema = _enum2([
|
|
35975
|
+
"ok",
|
|
35976
|
+
"rejected",
|
|
35977
|
+
"rate_limited",
|
|
35978
|
+
"spend_capped",
|
|
35979
|
+
"unchecked"
|
|
35980
|
+
]);
|
|
35943
35981
|
var PoolKeySchema = object2({
|
|
35944
35982
|
index: number2().int().min(0),
|
|
35945
35983
|
suffix: string2(),
|
|
35946
35984
|
status: PoolKeyStatusSchema,
|
|
35947
35985
|
error: string2().nullable(),
|
|
35948
35986
|
checkedAt: string2().nullable(),
|
|
35949
|
-
rateLimitedUntil: string2().nullable()
|
|
35987
|
+
rateLimitedUntil: string2().nullable(),
|
|
35988
|
+
spendCap: SpendCapSchema.nullable()
|
|
35950
35989
|
});
|
|
35951
35990
|
var PoolKeysResponseSchema = object2({
|
|
35952
35991
|
key: string2(),
|
|
@@ -36041,13 +36080,15 @@ async function poolResponse(key) {
|
|
|
36041
36080
|
const row = statuses.find((status) => status.keySuffix === suffix);
|
|
36042
36081
|
const rejected = !!row?.lastValidationFailedAt;
|
|
36043
36082
|
const limited = row?.status === "rate_limited" && !!row.rateLimitedUntil && Date.parse(row.rateLimitedUntil) > Date.now();
|
|
36083
|
+
const spendCap = limited ? row?.spendCap ?? null : null;
|
|
36044
36084
|
return {
|
|
36045
36085
|
index,
|
|
36046
36086
|
suffix,
|
|
36047
|
-
status: rejected ? "rejected" : limited ? "rate_limited" : row ? "ok" : "unchecked",
|
|
36087
|
+
status: rejected ? "rejected" : spendCap ? "spend_capped" : limited ? "rate_limited" : row ? "ok" : "unchecked",
|
|
36048
36088
|
error: rejected ? scrubSecrets(row?.lastValidationError) || null : null,
|
|
36049
36089
|
checkedAt: rejected ? row.lastValidationFailedAt : row?.updatedAt ?? null,
|
|
36050
|
-
rateLimitedUntil: row?.rateLimitedUntil ?? null
|
|
36090
|
+
rateLimitedUntil: row?.rateLimitedUntil ?? null,
|
|
36091
|
+
spendCap
|
|
36051
36092
|
};
|
|
36052
36093
|
})
|
|
36053
36094
|
};
|
|
@@ -40784,7 +40825,7 @@ var updateSchedule = route({
|
|
|
40784
40825
|
responses: {
|
|
40785
40826
|
200: { description: "Schedule updated", schema: ScheduledTaskSchema.nullable() },
|
|
40786
40827
|
400: { description: "Validation error" },
|
|
40787
|
-
403: { description: "Deferral owned by another agent" },
|
|
40828
|
+
403: { description: "Deferral or target owned by another agent" },
|
|
40788
40829
|
404: { description: "Schedule not found" },
|
|
40789
40830
|
409: { description: "Duplicate name" }
|
|
40790
40831
|
}
|
|
@@ -40801,7 +40842,7 @@ var patchSchedule = route({
|
|
|
40801
40842
|
responses: {
|
|
40802
40843
|
200: { description: "Schedule patched", schema: ScheduledTaskSchema.nullable() },
|
|
40803
40844
|
400: { description: "Validation error" },
|
|
40804
|
-
403: { description: "Deferral owned by another agent" },
|
|
40845
|
+
403: { description: "Deferral or target owned by another agent" },
|
|
40805
40846
|
404: { description: "Schedule not found" },
|
|
40806
40847
|
409: { description: "Duplicate name" }
|
|
40807
40848
|
},
|
|
@@ -41105,6 +41146,18 @@ async function handleSchedules(req, res, pathSegments, queryParams, myAgentId) {
|
|
|
41105
41146
|
return true;
|
|
41106
41147
|
}
|
|
41107
41148
|
}
|
|
41149
|
+
if (changesScheduleTarget(existing, parsed.body)) {
|
|
41150
|
+
const principal = await agentFirstPrincipal(req, myAgentId);
|
|
41151
|
+
if (principal.kind === "agent" && !can({
|
|
41152
|
+
principal,
|
|
41153
|
+
verb: "schedule.target.update.any",
|
|
41154
|
+
resource: { kind: "owned", ownerAgentId: existing.createdByAgentId },
|
|
41155
|
+
source: "http"
|
|
41156
|
+
}).allow) {
|
|
41157
|
+
jsonError(res, `Schedule "${existing.name}" runs as the agent that created it. Only that agent or a lead can change its targetType, taskTemplate, workflowId, scriptName, scriptArgs or params.`, 403);
|
|
41158
|
+
return true;
|
|
41159
|
+
}
|
|
41160
|
+
}
|
|
41108
41161
|
const agentChanged = parsed.body.targetAgentId !== undefined && parsed.body.targetAgentId !== existing.targetAgentId;
|
|
41109
41162
|
const profileUpdate = await scheduleProfileUpdate(existing, parsed.body);
|
|
41110
41163
|
if (profileUpdate.error !== undefined) {
|
|
@@ -41435,6 +41488,7 @@ init_presets2();
|
|
|
41435
41488
|
init_wrapper();
|
|
41436
41489
|
init_credential_broker();
|
|
41437
41490
|
init_telemetry();
|
|
41491
|
+
init_egress_guard();
|
|
41438
41492
|
init_scoped_resource();
|
|
41439
41493
|
init_secret_scrubber();
|
|
41440
41494
|
init_route_def();
|
|
@@ -42442,7 +42496,7 @@ async function attemptRemoteRevocation(app, accessToken) {
|
|
|
42442
42496
|
const controller = new AbortController;
|
|
42443
42497
|
const timeout = setTimeout(() => controller.abort(), 5000);
|
|
42444
42498
|
try {
|
|
42445
|
-
await
|
|
42499
|
+
await createSsrfGuardedFetch(publicEndpointSsrfOptions())(revocationUrl, {
|
|
42446
42500
|
method: "POST",
|
|
42447
42501
|
headers,
|
|
42448
42502
|
body: body.toString(),
|
|
@@ -42468,9 +42522,10 @@ function oauthDiscoveryUrls(inputUrl) {
|
|
|
42468
42522
|
}
|
|
42469
42523
|
async function fetchJsonMetadata(url, signal) {
|
|
42470
42524
|
let current = assertUrlSafe(url, publicEndpointSsrfOptions());
|
|
42525
|
+
const guardedFetch = createSsrfGuardedFetch(publicEndpointSsrfOptions());
|
|
42471
42526
|
let response = null;
|
|
42472
42527
|
for (let hop = 0;hop <= 5; hop += 1) {
|
|
42473
|
-
response = await
|
|
42528
|
+
response = await guardedFetch(current, {
|
|
42474
42529
|
headers: { accept: "application/json" },
|
|
42475
42530
|
signal,
|
|
42476
42531
|
redirect: "manual"
|
|
@@ -42542,7 +42597,7 @@ async function discoverOAuthApp(url) {
|
|
|
42542
42597
|
function isUrlSafetyError(error) {
|
|
42543
42598
|
if (!(error instanceof Error))
|
|
42544
42599
|
return false;
|
|
42545
|
-
return error.message.startsWith("Refusing ") || error.message.startsWith("Invalid URL:") || error.message.startsWith("Missing hostname:");
|
|
42600
|
+
return error instanceof EgressDeniedError || error.message.startsWith("Refusing ") || error.message.startsWith("Invalid URL:") || error.message.startsWith("Missing hostname:");
|
|
42546
42601
|
}
|
|
42547
42602
|
function stringFromCatalogEntry(entry, keys) {
|
|
42548
42603
|
for (const key of keys) {
|
|
@@ -43417,6 +43472,7 @@ init_constants3();
|
|
|
43417
43472
|
init_secret_scrubber();
|
|
43418
43473
|
init_raw_llm();
|
|
43419
43474
|
init_route_def();
|
|
43475
|
+
init_task_requester();
|
|
43420
43476
|
init_utils2();
|
|
43421
43477
|
var DEFAULT_SCRIPT_RUN_CONCURRENCY_CAP = 10;
|
|
43422
43478
|
var runIdParamsSchema = object2({ runId: string2().uuid() });
|
|
@@ -43752,6 +43808,7 @@ async function handleScriptRuns(req, res, pathSegments, queryParams, agentId) {
|
|
|
43752
43808
|
}
|
|
43753
43809
|
const cap = scriptRunConcurrencyCap();
|
|
43754
43810
|
const sourceTaskId = await resolveRunSourceTaskId(req, agent.id);
|
|
43811
|
+
const requestedByUserId = parsed.body.requestedByUserId ? await resolveTaskRequester(req, agent.id, parsed.body.requestedByUserId) : undefined;
|
|
43755
43812
|
const creation = await getDbClient2().transaction(async () => {
|
|
43756
43813
|
if (await countActiveScriptRuns2() >= cap)
|
|
43757
43814
|
return null;
|
|
@@ -43762,9 +43819,9 @@ async function handleScriptRuns(req, res, pathSegments, queryParams, agentId) {
|
|
|
43762
43819
|
args: parsed.body.args ?? null,
|
|
43763
43820
|
scriptName: parsed.body.scriptName,
|
|
43764
43821
|
idempotencyKey: parsed.body.idempotencyKey,
|
|
43765
|
-
requestedByUserId
|
|
43822
|
+
requestedByUserId,
|
|
43766
43823
|
sourceTaskId,
|
|
43767
|
-
createdBy:
|
|
43824
|
+
createdBy: requestedByUserId
|
|
43768
43825
|
});
|
|
43769
43826
|
});
|
|
43770
43827
|
if (!creation) {
|
|
@@ -43986,6 +44043,7 @@ async function handleScriptRuns(req, res, pathSegments, queryParams, agentId) {
|
|
|
43986
44043
|
return true;
|
|
43987
44044
|
}
|
|
43988
44045
|
const followUpThread = await followUpThreadForSourceTask(run.sourceTaskId);
|
|
44046
|
+
const stepRequester = parsed.body.requestedByUserId ? await resolveTaskRequester(req, agentId, parsed.body.requestedByUserId, null) : undefined;
|
|
43989
44047
|
let dispatched;
|
|
43990
44048
|
try {
|
|
43991
44049
|
dispatched = await getDbClient2().transaction(async () => {
|
|
@@ -44036,7 +44094,7 @@ async function handleScriptRuns(req, res, pathSegments, queryParams, agentId) {
|
|
|
44036
44094
|
vcsRepo: parsed.body.vcsRepo,
|
|
44037
44095
|
model: parsed.body.model,
|
|
44038
44096
|
parentTaskId: parsed.body.parentTaskId,
|
|
44039
|
-
requestedByUserId:
|
|
44097
|
+
requestedByUserId: stepRequester ?? run.requestedByUserId,
|
|
44040
44098
|
outputSchema: parsed.body.outputSchema,
|
|
44041
44099
|
contextKey
|
|
44042
44100
|
});
|
|
@@ -53466,7 +53524,7 @@ var httpServer = createHttpServer(async (req, res) => {
|
|
|
53466
53524
|
});
|
|
53467
53525
|
});
|
|
53468
53526
|
var detachRealtime = attachRealtimeTransport(httpServer);
|
|
53469
|
-
var { attachControllerTransport } = await import("./controllers-connect-
|
|
53527
|
+
var { attachControllerTransport } = await import("./controllers-connect-34jzhfft.js");
|
|
53470
53528
|
var detachControllers = attachControllerTransport(httpServer);
|
|
53471
53529
|
var stopWorkerNudges = startWorkerNudgeListener();
|
|
53472
53530
|
var taskAutoTitles = startTaskAutoTitleListener();
|
|
@@ -53497,7 +53555,7 @@ async function shutdown() {
|
|
|
53497
53555
|
sessionsProcessed: getServerSessionsProcessed()
|
|
53498
53556
|
});
|
|
53499
53557
|
if (hasCapability("scheduling")) {
|
|
53500
|
-
const { stopScheduler } = await import("./index-
|
|
53558
|
+
const { stopScheduler } = await import("./index-np0582ac.js");
|
|
53501
53559
|
stopScheduler();
|
|
53502
53560
|
}
|
|
53503
53561
|
stopHeartbeat2();
|
|
@@ -53509,7 +53567,7 @@ async function shutdown() {
|
|
|
53509
53567
|
await stopSlackApp2();
|
|
53510
53568
|
await stopChatSdk();
|
|
53511
53569
|
if (!isEnvFlagEnabled("OAUTH_KEEPALIVE_DISABLE", false)) {
|
|
53512
|
-
const { stopOAuthKeepalive } = await import("./keepalive-
|
|
53570
|
+
const { stopOAuthKeepalive } = await import("./keepalive-2v06q2e8.js");
|
|
53513
53571
|
await stopOAuthKeepalive();
|
|
53514
53572
|
}
|
|
53515
53573
|
stopOAuthPendingGc();
|
|
@@ -53599,21 +53657,21 @@ try {
|
|
|
53599
53657
|
console.warn("[startup] CAPABILITIES upgrade seed failed (non-fatal):", err);
|
|
53600
53658
|
}
|
|
53601
53659
|
try {
|
|
53602
|
-
const { ensurePricingSeeded } = await import("./boot-seeds-
|
|
53660
|
+
const { ensurePricingSeeded } = await import("./boot-seeds-9cwy39jx.js");
|
|
53603
53661
|
ensurePricingSeeded();
|
|
53604
|
-
const { startPricingRefreshLoop } = await import("./pricing-refresh-
|
|
53662
|
+
const { startPricingRefreshLoop } = await import("./pricing-refresh-ytjmtyd7.js");
|
|
53605
53663
|
startPricingRefreshLoop();
|
|
53606
53664
|
} catch (err) {
|
|
53607
53665
|
console.error("[startup] Failed to seed pricing rows:", err);
|
|
53608
53666
|
}
|
|
53609
53667
|
try {
|
|
53610
|
-
const { ensureModelProfilesSeeded } = await import("./boot-seeds-
|
|
53668
|
+
const { ensureModelProfilesSeeded } = await import("./boot-seeds-9cwy39jx.js");
|
|
53611
53669
|
await ensureModelProfilesSeeded();
|
|
53612
53670
|
} catch (err) {
|
|
53613
53671
|
console.error("[startup] Failed to seed model profiles:", err);
|
|
53614
53672
|
}
|
|
53615
53673
|
try {
|
|
53616
|
-
const { ensureRbacSeeded } = await import("./boot-seeds-
|
|
53674
|
+
const { ensureRbacSeeded } = await import("./boot-seeds-9cwy39jx.js");
|
|
53617
53675
|
ensureRbacSeeded();
|
|
53618
53676
|
} catch (err) {
|
|
53619
53677
|
console.error("[startup] Failed to sync RBAC seed rows:", err);
|
|
@@ -53621,13 +53679,13 @@ try {
|
|
|
53621
53679
|
throw err;
|
|
53622
53680
|
}
|
|
53623
53681
|
try {
|
|
53624
|
-
const { runAllSeeders } = await import("./index-
|
|
53682
|
+
const { runAllSeeders } = await import("./index-ffba0z8q.js");
|
|
53625
53683
|
await runAllSeeders({ scriptEmbeddingMode: "skip" });
|
|
53626
53684
|
} catch (err) {
|
|
53627
53685
|
console.error("[startup] Failed to seed built-in entities:", err);
|
|
53628
53686
|
}
|
|
53629
53687
|
try {
|
|
53630
|
-
const { runImports } = await import("./index-
|
|
53688
|
+
const { runImports } = await import("./index-pb03vans.js");
|
|
53631
53689
|
await runImports();
|
|
53632
53690
|
} catch (err) {
|
|
53633
53691
|
console.error("[startup] File import failed:", scrubSecrets(err instanceof Error ? err.message : String(err)));
|
|
@@ -53678,10 +53736,10 @@ httpServer.listen(port, async () => {
|
|
|
53678
53736
|
startChatSdk().catch((err) => {
|
|
53679
53737
|
console.error("[chat-sdk] Failed to start, continuing without Chat SDK:", scrubSecrets(err instanceof Error ? err.message : String(err)));
|
|
53680
53738
|
});
|
|
53681
|
-
import("./agent-fs-provision-
|
|
53739
|
+
import("./agent-fs-provision-y0qc1rdd.js").then(({ syncAgentFsOrgSwarmUrl }) => syncAgentFsOrgSwarmUrl(getConfiguredAppUrls()[0])).catch((err) => {
|
|
53682
53740
|
console.warn("[agent-fs] Failed to set the org swarm URL:", scrubSecrets(err instanceof Error ? err.message : String(err)));
|
|
53683
53741
|
});
|
|
53684
|
-
import("./object-webhooks-
|
|
53742
|
+
import("./object-webhooks-3dzdq4fm.js").then(({ ensureObjectWebhooksForKnownDrives }) => ensureObjectWebhooksForKnownDrives()).catch((err) => {
|
|
53685
53743
|
console.warn("[objects] agent-fs webhook boot check failed:", scrubSecrets(err instanceof Error ? err.message : String(err)));
|
|
53686
53744
|
});
|
|
53687
53745
|
startQueueStallAlarm();
|
|
@@ -53697,25 +53755,25 @@ httpServer.listen(port, async () => {
|
|
|
53697
53755
|
await initWorkflows2();
|
|
53698
53756
|
await startScriptRunSupervisor(getMcpBaseUrl());
|
|
53699
53757
|
if (hasCapability("scheduling")) {
|
|
53700
|
-
const { startScheduler } = await import("./index-
|
|
53701
|
-
const { getExecutorRegistry } = await import("./index-
|
|
53758
|
+
const { startScheduler } = await import("./index-np0582ac.js");
|
|
53759
|
+
const { getExecutorRegistry } = await import("./index-22khdtby.js");
|
|
53702
53760
|
const intervalMs = Number(process.env.SCHEDULER_INTERVAL_MS) || 1e4;
|
|
53703
53761
|
startScheduler(getExecutorRegistry(), intervalMs, {
|
|
53704
53762
|
runId: globalState.__runId
|
|
53705
53763
|
});
|
|
53706
53764
|
}
|
|
53707
53765
|
if (!isEnvFlagEnabled("HEARTBEAT_DISABLE", false)) {
|
|
53708
|
-
const { parseHeartbeatIntervalMs, startHeartbeat } = await import("./index-
|
|
53766
|
+
const { parseHeartbeatIntervalMs, startHeartbeat } = await import("./index-vgkrj1jt.js");
|
|
53709
53767
|
startHeartbeat(parseHeartbeatIntervalMs(process.env.HEARTBEAT_INTERVAL_MS));
|
|
53710
53768
|
}
|
|
53711
53769
|
startPoolRouting();
|
|
53712
53770
|
startRuntimeSupervisor();
|
|
53713
53771
|
if (!isEnvFlagEnabled("OAUTH_KEEPALIVE_DISABLE", false)) {
|
|
53714
|
-
const { startOAuthKeepalive } = await import("./keepalive-
|
|
53772
|
+
const { startOAuthKeepalive } = await import("./keepalive-2v06q2e8.js");
|
|
53715
53773
|
startOAuthKeepalive();
|
|
53716
53774
|
}
|
|
53717
53775
|
if (!isEnvFlagEnabled("OAUTH_REFRESH_SWEEP_DISABLE", false)) {
|
|
53718
|
-
const { startOAuthRefreshSweep } = await import("./oauth-refresh-sweep-
|
|
53776
|
+
const { startOAuthRefreshSweep } = await import("./oauth-refresh-sweep-g06k4bza.js");
|
|
53719
53777
|
startOAuthRefreshSweep();
|
|
53720
53778
|
}
|
|
53721
53779
|
startOAuthPendingGc();
|
|
@@ -53725,22 +53783,22 @@ httpServer.listen(port, async () => {
|
|
|
53725
53783
|
startSavingsRollup(savingsRollupSql);
|
|
53726
53784
|
startHumanFreeDrain();
|
|
53727
53785
|
startTaskSearchBackfill();
|
|
53728
|
-
import("./embedding-space-
|
|
53786
|
+
import("./embedding-space-v06fwy7b.js").then(({ runEmbeddingMaintenance, setDeploymentEnvReader }) => {
|
|
53729
53787
|
setDeploymentEnvReader(getDeploymentEnvValue2);
|
|
53730
53788
|
return runEmbeddingMaintenance({ backfill: true });
|
|
53731
53789
|
}).catch((err) => {
|
|
53732
53790
|
console.error("[embedding-space] startup maintenance failed (non-fatal):", err);
|
|
53733
53791
|
});
|
|
53734
|
-
import("./boot-args-schema-
|
|
53792
|
+
import("./boot-args-schema-8025snev.js").then(({ runBootArgsSchemaBackfill }) => runBootArgsSchemaBackfill()).catch((err) => {
|
|
53735
53793
|
console.error("[boot-args-schema] startup backfill failed (non-fatal):", err);
|
|
53736
53794
|
});
|
|
53737
|
-
import("./boot-scrub-sweep-
|
|
53795
|
+
import("./boot-scrub-sweep-eajr97e9.js").then(({ runBootScrubSweep }) => runBootScrubSweep()).catch((err) => {
|
|
53738
53796
|
console.error("[boot-scrub-sweep] startup scrub failed (non-fatal):", err);
|
|
53739
53797
|
});
|
|
53740
|
-
import("./user-merge-jobs-
|
|
53798
|
+
import("./user-merge-jobs-96vg9rpe.js").then(({ resumeUserMergeJobs }) => resumeUserMergeJobs()).catch((err) => {
|
|
53741
53799
|
console.error("[user-merge] startup resume failed (non-fatal):", err);
|
|
53742
53800
|
});
|
|
53743
|
-
import("./session-source-backfill-
|
|
53801
|
+
import("./session-source-backfill-p73e8zbe.js").then(({ runSessionSourceBackfill }) => runSessionSourceBackfill()).catch((err) => {
|
|
53744
53802
|
console.error("[session-source-backfill] startup run failed (non-fatal):", err);
|
|
53745
53803
|
});
|
|
53746
53804
|
}).on("error", (err) => {
|