@desplega.ai/agent-swarm 2.13.0 → 2.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/acp-adapter-x1qqgzwx.js +17 -0
- package/dist/{acp-targets-86f0sh6g.js → acp-targets-mz8c5dnt.js} +10 -10
- package/dist/{actions-zv8vcxvr.js → actions-5ft3qp5a.js} +27 -27
- package/dist/{agent-fs-provision-jqshb33y.js → agent-fs-provision-6fgz7wvz.js} +4 -4
- package/dist/{amp-adapter-gt503ywc.js → amp-adapter-nthn8ezm.js} +3 -3
- package/dist/{app-6t4k5rh1.js → app-535m78qw.js} +10 -10
- package/dist/{approval-notifications-fcfw063h.js → approval-notifications-dewbk403.js} +11 -11
- package/dist/{assistant-9dzybh12.js → assistant-39zyabv2.js} +28 -28
- package/dist/{boot-args-schema-xzfp2feg.js → boot-args-schema-bqv5bf77.js} +1 -1
- package/dist/{boot-reembed-3jz0p2jk.js → boot-reembed-157c0gcz.js} +1 -1
- package/dist/{boot-reembed-r88wngfg.js → boot-reembed-fas7z3zn.js} +1 -1
- package/dist/{boot-scrub-sweep-scrqhw48.js → boot-scrub-sweep-tmec0be2.js} +2 -2
- package/dist/{boot-seeds-vb2dcrrb.js → boot-seeds-32zm50x2.js} +4 -4
- package/dist/{boxd-68n75y1s.js → boxd-hr8rsxzq.js} +1 -1
- package/dist/{claude-adapter-h3mp9hgs.js → claude-adapter-gwq7x2nj.js} +9 -9
- package/dist/{claude-managed-adapter-kpbyj2vb.js → claude-managed-adapter-rkvw6fvq.js} +4 -4
- package/dist/{claude-managed-setup-0efr3wkg.js → claude-managed-setup-0vgz4d1j.js} +6 -6
- package/dist/{claude-sdk-session-03dw669q.js → claude-sdk-session-5wbwxy8c.js} +20967 -19390
- package/dist/{cli-z64t9pe6.js → cli-0f7n3td3.js} +1 -1
- package/dist/{cli-j53hpbsm.js → cli-0xwb7zpt.js} +2 -2
- package/dist/{cli-wxwv3t11.js → cli-1f48qdnb.js} +55 -13
- package/dist/{cli-gfcv679k.js → cli-1gevjrc1.js} +1 -1
- package/dist/{cli-0jkenasr.js → cli-2v4xxnx2.js} +1 -1
- package/dist/{cli-hc6e4tac.js → cli-2wde56gv.js} +6 -6
- package/dist/{cli-mh7pdxe0.js → cli-31vt7baf.js} +17 -17
- package/dist/{cli-ercwc8xn.js → cli-3mf04tkh.js} +1 -1
- package/dist/{cli-s6zk31gr.js → cli-43dsqhcp.js} +4 -4
- package/dist/{cli-1dbv9mj9.js → cli-4djg31jh.js} +1 -1
- package/dist/{cli-tn91wc6e.js → cli-50whymxq.js} +1 -1
- package/dist/{cli-js10kdk7.js → cli-5basv0e7.js} +19 -5
- package/dist/{cli-b2jh3dyb.js → cli-5k1hvycs.js} +4 -4
- package/dist/{cli-dkejt425.js → cli-62fjschk.js} +7 -7
- package/dist/{cli-zqmmy073.js → cli-69eq6gdk.js} +18 -18
- package/dist/{cli-qm3ntjqs.js → cli-6rmryz03.js} +13 -13
- package/dist/{cli-mz34pxbk.js → cli-7m6bbtab.js} +11 -11
- package/dist/{cli-wv20kbr3.js → cli-8a4qg44m.js} +5 -5
- package/dist/{cli-2m6yaq6b.js → cli-8fj8yfmk.js} +1 -1
- package/dist/{cli-9m9kyw77.js → cli-8qvte9hn.js} +2 -2
- package/dist/{cli-x05p2d05.js → cli-9tevdxyf.js} +1 -1
- package/dist/{cli-qec9bynj.js → cli-a6rzw649.js} +3 -3
- package/dist/{cli-ex1y88j3.js → cli-at67kvnp.js} +1 -1
- package/dist/{cli-yn4kt85g.js → cli-b0kqw55g.js} +1 -1
- package/dist/{cli-n3qe7tyr.js → cli-b0m3bg0f.js} +134 -3
- package/dist/{cli-xfjn2kyq.js → cli-bp2rt28p.js} +9 -9
- package/dist/{cli-2jk4s7z1.js → cli-c9bwawf9.js} +3 -3
- package/dist/{cli-wndegmns.js → cli-cmgdptmx.js} +3 -3
- package/dist/{cli-3p288654.js → cli-cpkxh68d.js} +2 -2
- package/dist/{cli-117g15t4.js → cli-cs26ed89.js} +8 -8
- package/dist/{cli-prf7kz78.js → cli-d0jb2qnt.js} +603 -78
- package/dist/{cli-8hp56wat.js → cli-d2epqm0y.js} +1 -1
- package/dist/{cli-wrhbym01.js → cli-d528acsw.js} +6 -6
- package/dist/{cli-tstj6e8e.js → cli-dnvmwsvc.js} +310 -88
- package/dist/{cli-9fsagra4.js → cli-e87fg3en.js} +1 -1
- package/dist/{cli-jj3c5nyb.js → cli-erh1rgh4.js} +116 -56
- package/dist/{cli-f1952kjy.js → cli-ewb028rs.js} +4 -4
- package/dist/{cli-ct8sz3np.js → cli-f1sdh8ca.js} +6 -6
- package/dist/{cli-0b655smz.js → cli-fcwrd7bh.js} +5 -5
- package/dist/{cli-eb279wn3.js → cli-fgm2mad9.js} +2 -2
- package/dist/{cli-bpje8n65.js → cli-fp65jdp2.js} +31 -6
- package/dist/{cli-dnh64e8e.js → cli-g0b3ma7r.js} +7 -7
- package/dist/{cli-avxh26pd.js → cli-gc7jkf4a.js} +4 -4
- package/dist/{cli-2skf1mdf.js → cli-gedf48yw.js} +4 -4
- package/dist/{cli-ajjvqhf3.js → cli-getrvmtx.js} +27 -6
- package/dist/{cli-c8v2yvej.js → cli-gq6qhmrr.js} +2 -2
- package/dist/{cli-mbwmqb5w.js → cli-h0ewec3d.js} +1 -1
- package/dist/{cli-tdk7jtka.js → cli-hv3820ez.js} +1 -1
- package/dist/{cli-avqkr20b.js → cli-j2ybkdk2.js} +2 -2
- package/dist/{cli-pqfecppn.js → cli-je587f74.js} +1 -1
- package/dist/{cli-hgsxnjyg.js → cli-jkkcm72j.js} +13 -13
- package/dist/{cli-g6j6ac3h.js → cli-ka13xx6b.js} +2 -2
- package/dist/{cli-t35hx078.js → cli-m1wddksc.js} +2 -2
- package/dist/{cli-50w82h6m.js → cli-mwxez0pz.js} +1 -0
- package/dist/{cli-nc6a8b5b.js → cli-n14r8h4n.js} +2 -2
- package/dist/{cli-y4a4458j.js → cli-n46d87mj.js} +3 -3
- package/dist/{cli-0dg7ytxm.js → cli-nkfv398a.js} +1096 -75
- package/dist/{cli-fhvk2nvp.js → cli-nvqq3232.js} +9 -9
- package/dist/{cli-bhgrhedp.js → cli-q8aq48v1.js} +1 -1
- package/dist/{cli-6a40p4kv.js → cli-qn79645p.js} +1 -1
- package/dist/{cli-hbq0kwxz.js → cli-r4fphq38.js} +4 -4
- package/dist/{cli-47hz21se.js → cli-r8ddn0hf.js} +4 -5
- package/dist/{cli-hpb9x72z.js → cli-rvhaahfv.js} +9 -9
- package/dist/{cli-qhhb30e8.js → cli-s08zsqva.js} +9 -9
- package/dist/{cli-sdh61g52.js → cli-s6fhqbz1.js} +2 -2
- package/dist/{cli-y518qkjg.js → cli-sjk85d7v.js} +13 -12
- package/dist/{cli-ytc7fpza.js → cli-t25rq8mg.js} +4 -4
- package/dist/{cli-sq913bh1.js → cli-t9nxq30h.js} +8 -8
- package/dist/{cli-49f5jyhh.js → cli-tbdw3f92.js} +3 -3
- package/dist/{cli-1v82d2w6.js → cli-tceqvv6h.js} +4 -4
- package/dist/{cli-fz9pcjsw.js → cli-tgmate57.js} +4 -4
- package/dist/{cli-rtmqzat7.js → cli-vdfngx2g.js} +2 -2
- package/dist/{cli-9w8712tq.js → cli-vr4eyq6p.js} +43 -14
- package/dist/{cli-z4f346g5.js → cli-vx9acp12.js} +1 -1
- package/dist/{cli-7dbhnsj9.js → cli-wdtqkqnq.js} +4 -4
- package/dist/{cli-kde4ky90.js → cli-x5yb8zc8.js} +2 -2
- package/dist/{cli-w14j2z4k.js → cli-x7aqhxj5.js} +2 -2
- package/dist/{cli-kspxjftk.js → cli-xerdrnqs.js} +15 -6
- package/dist/{cli-48nvk6sb.js → cli-xhkek467.js} +2 -2
- package/dist/{cli-dka73bak.js → cli-xysy1g8x.js} +152 -12
- package/dist/{cli-7wy8gbwb.js → cli-ya1cj689.js} +1 -1
- package/dist/{cli-n85m2wkq.js → cli-zkbz8m2q.js} +3 -2
- package/dist/{cli-0pazkmd4.js → cli-zm6bkx3e.js} +4 -4
- package/dist/{cli-6h88mn9q.js → cli-zqy28rwx.js} +4 -4
- package/dist/cli.js +30 -29
- package/dist/{codex-adapter-f3yp0kaj.js → codex-adapter-x25xfbnh.js} +8 -8
- package/dist/{codex-hook-262cekfp.js → codex-hook-c0nvm30r.js} +2 -2
- package/dist/{codex-login-1ven7yje.js → codex-login-ven5cz5j.js} +1 -1
- package/dist/{codex-session-runner-ns4mv70p.js → codex-session-runner-kn5xnrvp.js} +9 -9
- package/dist/{commands-5bzf2tfw.js → commands-8n59gxmy.js} +3 -3
- package/dist/{controller-5xt7kvfm.js → controller-wn3vd217.js} +3 -3
- package/dist/{controllers-connect-0gg13mzp.js → controllers-connect-09gvkrhc.js} +28 -28
- package/dist/core-2b8bv6ny.js +42 -0
- package/dist/{cursor-adapter-p0c5zv6r.js → cursor-adapter-w1681kp1.js} +2 -2
- package/dist/{db-2s68ycq7.js → db-e71keqxk.js} +3 -3
- package/dist/{db-q7q639k5.js → db-spg81qtr.js} +2 -2
- package/dist/{devin-adapter-t8d86q9x.js → devin-adapter-fs90ab4v.js} +1 -1
- package/dist/{dispatcher-j2y1q7ae.js → dispatcher-fr4vawwb.js} +25 -25
- package/dist/{docker-1b41eysj.js → docker-1h33jvh9.js} +2 -2
- package/dist/{dsh-adapter-pgnkf4st.js → dsh-adapter-g9yqv09y.js} +2 -2
- package/dist/{e2b-xm60c8ad.js → e2b-jnk0yeva.js} +2 -2
- package/dist/{e2b-ew8c5j5v.js → e2b-y7e5kmzf.js} +2 -2
- package/dist/{easter-egg-3d-0kea97jf.js → easter-egg-3d-ac9tv9a6.js} +1 -1
- package/dist/{embedding-space-3n6mhhmy.js → embedding-space-an77f45k.js} +6 -6
- package/dist/{embeddings-jfmj6yme.js → embeddings-jkrehejr.js} +1 -1
- package/dist/{event-bus-v4ywhc2p.js → event-bus-08t2b4y2.js} +1 -1
- package/dist/{execute-tjrej979.js → execute-3mys4nta.js} +1 -1
- package/dist/{external-channel-jy8w2gg3.js → external-channel-s6zxpts9.js} +2 -2
- package/dist/fx-adapter-4yet1c4f.js +20 -0
- package/dist/grok-adapter-8ge6tw7m.js +20 -0
- package/dist/handlers-0r9evrdj.js +41 -0
- package/dist/heartbeat-jjpb44e5.js +50 -0
- package/dist/{hook-fv1jwrv7.js → hook-68gbs87k.js} +6 -6
- package/dist/{hook-bpnncsec.js → hook-y6n23zzj.js} +8 -8
- package/dist/{http-bpa26czn.js → http-8c6y008s.js} +404 -146
- package/dist/{index-w216g9y9.js → index-0vthtbc2.js} +38 -22
- package/dist/index-1v23363p.js +39 -0
- package/dist/index-30qw6vyw.js +44 -0
- package/dist/index-6bm3w6cn.js +40 -0
- package/dist/{index-s8re7mvq.js → index-6h3r0vpe.js} +1 -1
- package/dist/{index-620y7jzq.js → index-7dgxveck.js} +3 -3
- package/dist/{index-4k7m5dgj.js → index-maddg9ys.js} +143 -103
- package/dist/{index-0h6qd4p1.js → index-mbpxhc4w.js} +3 -4
- package/dist/index-rz8ve510.js +569 -0
- package/dist/{index-mpj0z9e0.js → index-we3nd2t0.js} +1 -1
- package/dist/{index-pe3d8jfy.js → index-whysn1wf.js} +1 -1
- package/dist/{index-52tgbhrw.js → index-xcw7hjt5.js} +28 -28
- package/dist/{index-8p0j4h4j.js → index-ym9fgxad.js} +94 -89
- package/dist/{k8s-fy8hbhkg.js → k8s-8326q0rq.js} +2 -2
- package/dist/{keepalive-d6z12s04.js → keepalive-7e9r5dvp.js} +5 -4
- package/dist/lead-3jpc7kcr.js +79 -0
- package/dist/{maintenance-7kac6g2g.js → maintenance-d3erjvcg.js} +1 -1
- package/dist/{oauth-refresh-sweep-t1xjetbh.js → oauth-refresh-sweep-0qh70988.js} +4 -3
- package/dist/{object-webhooks-6rdagg0r.js → object-webhooks-ac7v2q5p.js} +7 -7
- package/dist/{onboard-32y1cfxy.js → onboard-5yphtken.js} +4 -4
- package/dist/{opencode-adapter-enp3v31n.js → opencode-adapter-0xvyba4m.js} +8 -8
- package/dist/{otel-impl-k0tm5ptj.js → otel-impl-svqp691q.js} +2 -2
- package/dist/{pending-24zebgvs.js → pending-bn4xe5br.js} +26 -26
- package/dist/{pi-mono-adapter-yj72xxxe.js → pi-mono-adapter-763s8a3w.js} +20 -18
- package/dist/{pricing-refresh-cf25x38j.js → pricing-refresh-kfc215mf.js} +2 -2
- package/dist/{rbac-roles-0wydd22m.js → rbac-roles-3bznvkpt.js} +3 -3
- package/dist/{rbac-roles-at6crb3r.js → rbac-roles-6r4h2ghj.js} +2 -2
- package/dist/{render-v2-nvcw0jd7.js → render-v2-f3qedbpy.js} +10 -10
- package/dist/{resume-y4w0k5v3.js → resume-vcag4ann.js} +13 -13
- package/dist/{runtime-vpe43hx0.js → runtime-x0s55z2t.js} +1 -1
- package/dist/{session-access-gkyvnfye.js → session-access-nwzve8q2.js} +5 -5
- package/dist/{session-source-backfill-3w2st4m2.js → session-source-backfill-jpqfzmgz.js} +2 -2
- package/dist/{setup-axxvqtys.js → setup-d2smwaem.js} +1 -1
- package/dist/thread-buffer-8fc703jc.js +42 -0
- package/dist/{tree-visibility-y4fqvab5.js → tree-visibility-dwzc8en0.js} +2 -2
- package/dist/{user-merge-jobs-kcmwvrc6.js → user-merge-jobs-4ce7kma2.js} +3 -3
- package/dist/{virtual-modules-7d92dct1.js → virtual-modules-78a6yw71.js} +3 -3
- package/dist/{work-objects-f708e069.js → work-objects-m0w1e7q8.js} +28 -28
- package/dist/worker-3p2vq107.js +79 -0
- package/dist/{worker-follow-up-0by8wztc.js → worker-follow-up-e3t6f895.js} +25 -25
- package/dist/{x-3dtaf2r9.js → x-asbrnafg.js} +2 -2
- package/openapi.json +1795 -1623
- package/package.json +13 -12
- package/src/apps/catalog.generated.json +726 -0
- package/src/apps/definition.ts +24 -7
- package/src/apps/page-validator.ts +225 -3
- package/src/be/db.ts +38 -10
- package/src/be/mcp-proxy.ts +5 -4
- package/src/be/migrations/340_api_key_spend_cap.sql +5 -0
- package/src/be/migrations/341_user_token_expiry.sql +4 -0
- package/src/be/schedules/validate.ts +26 -0
- package/src/be/scripts/run-credential.ts +55 -1
- package/src/be/scripts/typecheck.ts +4 -4
- package/src/be/scripts/user-code-mode.ts +160 -0
- package/src/be/swarm-config-guard.ts +4 -0
- package/src/be/users.ts +48 -7
- package/src/commands/credential-outcome-report.ts +5 -2
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/provider-credentials.ts +19 -0
- package/src/commands/provider-error-class.ts +4 -1
- package/src/commands/rate-limit-outcome.ts +48 -3
- package/src/commands/runner.ts +113 -55
- package/src/commands/worktree-reaper.ts +600 -0
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/http/agents.ts +4 -0
- package/src/http/api-keys.ts +27 -3
- package/src/http/pages-public.ts +40 -4
- package/src/http/pool-keys.ts +21 -2
- package/src/http/schedules.ts +28 -3
- package/src/http/script-connection-proxy.ts +18 -6
- package/src/http/script-connections.ts +12 -4
- package/src/http/script-runs.ts +12 -3
- package/src/http/scripts.ts +2 -11
- package/src/http/tasks.ts +6 -10
- package/src/http/users.ts +1 -0
- package/src/integrations/chat-sdk/adapters.ts +29 -0
- package/src/integrations/chat-sdk/limits.ts +3 -0
- package/src/integrations/chat-sdk/rocketchat/README.md +8 -0
- package/src/integrations/chat-sdk/rocketchat/index.ts +790 -0
- package/src/integrations/chat-sdk/rocketchat/markdown.ts +210 -0
- package/src/integrations/chat-sdk/rocketchat/types.ts +249 -0
- package/src/integrations/chat-sdk/runtime.ts +11 -5
- package/src/integrations/chat-sdk/schema.ts +37 -3
- package/src/integrations/chat-sdk/status.ts +9 -0
- package/src/mcp-client/http-client.ts +3 -1
- package/src/oauth/identity-capture.ts +6 -1
- package/src/oauth/mcp-wrapper.ts +10 -3
- package/src/oauth/wrapper.ts +15 -3
- package/src/prompts/session-templates.ts +1 -0
- package/src/providers/acp-targets.ts +2 -2
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/dsh-adapter.ts +1 -1
- package/src/providers/pi-mono-adapter.ts +4 -2
- package/src/providers/runtime-dependencies.ts +1 -1
- package/src/rbac/legacy-policy.ts +3 -0
- package/src/rbac/permissions.ts +9 -0
- package/src/scripts-runtime/executors/native.ts +225 -67
- package/src/scripts-runtime/mcp-client.ts +2 -1
- package/src/scripts-runtime/swarm-sdk.ts +2 -1
- package/src/scripts-runtime/types/stdlib.d.ts +4 -4
- package/src/scripts-runtime/types/swarm-extension.d.ts +7 -7
- package/src/scripts-runtime/types/swarm-sdk.d.ts +4 -4
- package/src/server-user.ts +98 -0
- package/src/slack/enrich.ts +14 -11
- package/src/tests/agents-list-model-display.test.ts +23 -0
- package/src/tests/apps-spike2.test.ts +35 -0
- package/src/tests/base-prompt.test.ts +1 -0
- package/src/tests/chat-sdk-rocketchat-vendored.test.ts +67 -0
- package/src/tests/chat-sdk-status-route.test.ts +13 -1
- package/src/tests/codex-app-server.test.ts +4 -6
- package/src/tests/deploy-guard.test.ts +24 -0
- package/src/tests/dsh-adapter.test.ts +1 -1
- package/src/tests/ensure-token.test.ts +2 -2
- package/src/tests/entrypoint-repo-autoclone-args.test.ts +202 -0
- package/src/tests/fake-dns.ts +47 -0
- package/src/tests/fixtures/base-prompt-baseline.json +12 -12
- package/src/tests/latest-model-report.test.ts +138 -0
- package/src/tests/mcp-oauth-dcr-reuse.test.ts +5 -2
- package/src/tests/mcp-oauth-ensure-token.test.ts +3 -2
- package/src/tests/mcp-oauth-manual-client.test.ts +6 -1
- package/src/tests/mcp-oauth-wrapper.test.ts +20 -4
- package/src/tests/mcp-outbound-fetch-guard.test.ts +169 -0
- package/src/tests/mcp-server-ssrf.test.ts +2 -0
- package/src/tests/mcp-user-route.test.ts +10 -1
- package/src/tests/memory-search-stall.test.ts +5 -0
- package/src/tests/oauth-connection-fetch-guard.test.ts +162 -0
- package/src/tests/oauth-token-endpoint-fetch-guard.test.ts +121 -0
- package/src/tests/oauth-wrapper.test.ts +1 -2
- package/src/tests/pages-head-v2.test.ts +2 -1
- package/src/tests/script-connections-http.test.ts +8 -3
- package/src/tests/script-connections-mcp.test.ts +14 -10
- package/src/tests/script-connections-sql.test.ts +6 -2
- package/src/tests/script-connections.test.ts +4 -0
- package/src/tests/slack-thread-participants.test.ts +14 -3
- package/src/tests/spend-cap-credentials.test.ts +34 -0
- package/src/tests/spend-cap-outcome.test.ts +67 -0
- package/src/tests/subscription-first.test.ts +119 -0
- package/src/tests/worktree-reaper.test.ts +424 -0
- package/src/tools/get-task-details.ts +247 -5
- package/src/tools/schedules/patch-schedule.ts +26 -1
- package/src/tools/schedules/update-schedule.ts +28 -2
- package/src/tools/script-common.ts +37 -22
- package/src/tools/script-query-types.ts +1 -1
- package/src/tools/script-run.ts +1 -1
- package/src/tools/script-search.ts +12 -10
- package/src/tools/utils.ts +7 -1
- package/src/utils/credentials.ts +36 -1
- package/src/utils/egress-guard.ts +40 -10
- package/src/utils/error-tracker.ts +17 -0
- package/templates/skills/apps/SKILL.md +191 -2
- package/templates/skills/apps/content.md +191 -2
- package/templates/skills/boards-and-sheets/content.md +11 -0
- package/templates/skills/chat-sdk/content.md +2 -2
- package/templates/skills/pages/content.md +11 -0
- package/templates/skills/swarm-docs/content.md +4 -0
- package/templates/skills/swarm-scripts/SKILL.md +1 -0
- package/templates/skills/swarm-scripts/content.md +1 -0
- package/templates/workflows/ralph-loop/content.md +6 -6
- package/dist/acp-adapter-cn53011z.js +0 -17
- package/dist/cli-pr0eze3x.js +0 -149
- package/dist/core-0fqtbrxa.js +0 -42
- package/dist/fx-adapter-k6w3jvz9.js +0 -20
- package/dist/grok-adapter-4q5tssw0.js +0 -20
- package/dist/handlers-qxgfvvsf.js +0 -41
- package/dist/heartbeat-6tr2w2da.js +0 -50
- package/dist/index-0mcxjdsa.js +0 -44
- package/dist/index-dz4q23ag.js +0 -40
- package/dist/index-s175jckx.js +0 -39
- package/dist/lead-p3hx7h35.js +0 -79
- package/dist/thread-buffer-rwa7d4dx.js +0 -42
- package/dist/worker-8rg9gz74.js +0 -79
- /package/dist/{cli-m4ejz4nj.js → cli-cah298e5.js} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
contextBoundNoteThreshold,
|
|
3
3
|
createContextBoundNote
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-0xwb7zpt.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionErrorTracker
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-zkbz8m2q.js";
|
|
8
8
|
import {
|
|
9
9
|
summarizeSession
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-gq6qhmrr.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveCodexCommand
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-zm6bkx3e.js";
|
|
14
14
|
import {
|
|
15
15
|
createSwarmEventHandler
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-at67kvnp.js";
|
|
17
17
|
import {
|
|
18
18
|
readPkgVersion
|
|
19
19
|
} from "./cli-kr5tjjtz.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./cli-snxhtehz.js";
|
|
23
23
|
import {
|
|
24
24
|
applyReasoningEffort
|
|
25
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-vdfngx2g.js";
|
|
26
26
|
import {
|
|
27
27
|
hasCodexOAuthPoolSlots
|
|
28
28
|
} from "./cli-j4bwnpkm.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
computeContextUsedUnified,
|
|
32
32
|
clampContextPercent,
|
|
33
33
|
init_context_window
|
|
34
|
-
} from "./cli-
|
|
34
|
+
} from "./cli-cpkxh68d.js";
|
|
35
35
|
import {
|
|
36
36
|
resolveCodexPrompt
|
|
37
37
|
} from "./cli-5j88qqa8.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
buildPoolRevalidationFailureReason,
|
|
56
56
|
getValidCodexOAuth,
|
|
57
57
|
init_storage
|
|
58
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-8fj8yfmk.js";
|
|
59
59
|
import {
|
|
60
60
|
swarmRuntimeInstanceId,
|
|
61
61
|
init_multi_runtime2
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
applyProviderQuotaReport,
|
|
71
71
|
scrubProviderQuotaReport,
|
|
72
72
|
init_provider_account_telemetry
|
|
73
|
-
} from "./cli-
|
|
73
|
+
} from "./cli-ya1cj689.js";
|
|
74
74
|
import {
|
|
75
75
|
isCodexRejectedAccessError,
|
|
76
76
|
init_codex_auth_failure
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
init_src,
|
|
84
84
|
selectCredential,
|
|
85
85
|
init_credentials2
|
|
86
|
-
} from "./cli-
|
|
86
|
+
} from "./cli-5basv0e7.js";
|
|
87
87
|
import {
|
|
88
88
|
DEFAULT_MODEL_TIER_MAP,
|
|
89
89
|
init_types5
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
import {
|
|
92
92
|
runtimeCatalogModel,
|
|
93
93
|
init_runtime_model_catalog
|
|
94
|
-
} from "./cli-
|
|
94
|
+
} from "./cli-q8aq48v1.js";
|
|
95
95
|
import {
|
|
96
96
|
isSessionSummarySkipped,
|
|
97
97
|
init_env_flag
|
|
@@ -99,12 +99,12 @@ import {
|
|
|
99
99
|
import {
|
|
100
100
|
init_package,
|
|
101
101
|
package_default
|
|
102
|
-
} from "./cli-
|
|
102
|
+
} from "./cli-sjk85d7v.js";
|
|
103
103
|
import {
|
|
104
104
|
init_src2,
|
|
105
105
|
scrubSecrets,
|
|
106
106
|
init_secret_scrubber
|
|
107
|
-
} from "./cli-
|
|
107
|
+
} from "./cli-fp65jdp2.js";
|
|
108
108
|
|
|
109
109
|
// src/providers/codex-oauth/home.ts
|
|
110
110
|
import os from "node:os";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
CONTROLLER_COMMAND_TIMEOUT_MS,
|
|
5
5
|
RuntimeHandleSchema,
|
|
6
6
|
ControllerStatusResultSchema
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-50whymxq.js";
|
|
8
8
|
import {
|
|
9
9
|
getDbClient2,
|
|
10
10
|
validateControllerGraceSec,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
upsertSwarmConfig2,
|
|
20
20
|
getResolvedConfig2,
|
|
21
21
|
init_db4
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-erh1rgh4.js";
|
|
23
23
|
import {
|
|
24
24
|
getPoolCache,
|
|
25
25
|
reconcileCacheReleases,
|
|
@@ -33,11 +33,11 @@ import {
|
|
|
33
33
|
getPoolForAgent2,
|
|
34
34
|
resolvePoolDelivery2,
|
|
35
35
|
init_db2
|
|
36
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-tceqvv6h.js";
|
|
37
37
|
import {
|
|
38
38
|
workflowEventBus2,
|
|
39
39
|
init_event_bus
|
|
40
|
-
} from "./cli-
|
|
40
|
+
} from "./cli-vx9acp12.js";
|
|
41
41
|
import {
|
|
42
42
|
runtimeStaleThresholdMinutes,
|
|
43
43
|
getRuntimeInstanceById,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
listRuntimeInstancesForAgent,
|
|
48
48
|
listRuntimeInstancesForPool,
|
|
49
49
|
init_multi_runtime
|
|
50
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-f1sdh8ca.js";
|
|
51
51
|
import {
|
|
52
52
|
pendingWorkForAgent,
|
|
53
53
|
countPoolRuntimes,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
init_worker_follow_up,
|
|
58
58
|
canClaim,
|
|
59
59
|
init_budget_admission
|
|
60
|
-
} from "./cli-
|
|
60
|
+
} from "./cli-dnvmwsvc.js";
|
|
61
61
|
import {
|
|
62
62
|
isMultiRuntimeEnabled,
|
|
63
63
|
init_multi_runtime2
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
import {
|
|
66
66
|
buildImageTemplate,
|
|
67
67
|
init_dispatch
|
|
68
|
-
} from "./cli-
|
|
68
|
+
} from "./cli-h0ewec3d.js";
|
|
69
69
|
import {
|
|
70
70
|
resolveWorkerApiUrl,
|
|
71
71
|
init_worker_api_url
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
canProvisionKind,
|
|
75
75
|
createRuntimeProvider,
|
|
76
76
|
init_runtime_providers
|
|
77
|
-
} from "./cli-
|
|
77
|
+
} from "./cli-43dsqhcp.js";
|
|
78
78
|
import {
|
|
79
79
|
workspaceVolumeKey,
|
|
80
80
|
RUNTIME_LABELS,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
import {
|
|
88
88
|
mintRuntimeToken,
|
|
89
89
|
init_users
|
|
90
|
-
} from "./cli-
|
|
90
|
+
} from "./cli-getrvmtx.js";
|
|
91
91
|
import {
|
|
92
92
|
TERMINAL_TASK_STATUSES,
|
|
93
93
|
isTerminalTaskStatus,
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
scrubSecrets,
|
|
110
110
|
registerVolatileSecret,
|
|
111
111
|
init_secret_scrubber
|
|
112
|
-
} from "./cli-
|
|
112
|
+
} from "./cli-fp65jdp2.js";
|
|
113
113
|
|
|
114
114
|
// src/be/runtime-pools/supervisor.ts
|
|
115
115
|
init_runtime_providers();
|
|
@@ -524,7 +524,7 @@ async function recoverSessions(runtimeId, reason) {
|
|
|
524
524
|
}
|
|
525
525
|
if (!sessions.length)
|
|
526
526
|
return;
|
|
527
|
-
const { remediateTaskForDeadRuntime } = await import("./heartbeat-
|
|
527
|
+
const { remediateTaskForDeadRuntime } = await import("./heartbeat-jjpb44e5.js");
|
|
528
528
|
for (const session of sessions) {
|
|
529
529
|
try {
|
|
530
530
|
const task = await getTaskById2(session.taskId);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
contextBoundNoteThreshold,
|
|
3
3
|
createContextBoundNote
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-0xwb7zpt.js";
|
|
5
5
|
import {
|
|
6
6
|
applyReasoningEffort
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-vdfngx2g.js";
|
|
8
8
|
import {
|
|
9
9
|
CONTEXT_FORMULA,
|
|
10
10
|
computeContextUsedUnified,
|
|
11
11
|
clampContextPercent,
|
|
12
12
|
init_context_window
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-cpkxh68d.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveSlashSkillPrompt
|
|
16
16
|
} from "./cli-5j88qqa8.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
scrubSecrets,
|
|
37
37
|
registerVolatileSecret,
|
|
38
38
|
init_secret_scrubber
|
|
39
|
-
} from "./cli-
|
|
39
|
+
} from "./cli-fp65jdp2.js";
|
|
40
40
|
|
|
41
41
|
// src/providers/amp-adapter.ts
|
|
42
42
|
import { existsSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -48,7 +48,7 @@ init_context_window();
|
|
|
48
48
|
init_multi_runtime2();
|
|
49
49
|
init_process_group();
|
|
50
50
|
init_secret_scrubber();
|
|
51
|
-
var AMP_PACKAGE = "@ampcode/cli@0.0.
|
|
51
|
+
var AMP_PACKAGE = "@ampcode/cli@0.0.1794657642-gc1e41b";
|
|
52
52
|
var AMP_MCP_SERVER_NAME = "agent-swarm";
|
|
53
53
|
var AMP_PLUGIN_MODE_KEY = "agent-swarm";
|
|
54
54
|
var AMP_LIVE_TEST_TIMEOUT_MS = 5000;
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
isModelNameTakenError,
|
|
13
13
|
init_model_profiles,
|
|
14
14
|
init_db4
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-erh1rgh4.js";
|
|
16
16
|
import {
|
|
17
17
|
ensureRbacSeedsSynced2,
|
|
18
18
|
init_rbac_roles
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-n14r8h4n.js";
|
|
20
20
|
import {
|
|
21
21
|
MODEL_TIERS,
|
|
22
22
|
DEFAULT_MODEL_TIER_MAP,
|
|
@@ -49,7 +49,7 @@ class McpHttpClient {
|
|
|
49
49
|
const url = this.useRawUrl ? this.baseUrl : `${this.baseUrl}/mcp`;
|
|
50
50
|
try {
|
|
51
51
|
this.options.validateUrl?.(url);
|
|
52
|
-
const res = await fetch(url, {
|
|
52
|
+
const res = await (this.options.fetch ?? fetch)(url, {
|
|
53
53
|
method: "POST",
|
|
54
54
|
headers,
|
|
55
55
|
body: JSON.stringify(body),
|
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
getResolvedConfig2,
|
|
7
7
|
getAllUsers2,
|
|
8
8
|
init_db4
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-erh1rgh4.js";
|
|
10
10
|
import {
|
|
11
11
|
getUserGrant2,
|
|
12
12
|
init_rbac_roles
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-n14r8h4n.js";
|
|
14
14
|
import {
|
|
15
15
|
scrubSecrets,
|
|
16
16
|
init_secret_scrubber
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-fp65jdp2.js";
|
|
18
18
|
import {
|
|
19
19
|
__esm
|
|
20
20
|
} from "./cli-242037k3.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
cardChildToFallbackText2,
|
|
5
5
|
isCardElement2,
|
|
6
6
|
init_dist8
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-vr4eyq6p.js";
|
|
8
8
|
import {
|
|
9
9
|
__esm
|
|
10
10
|
} from "./cli-242037k3.js";
|
|
@@ -169,6 +169,38 @@ function maskCodeSpans(text, replacement = " ") {
|
|
|
169
169
|
var HTTP = "http://", HTTPS = "https://";
|
|
170
170
|
var init_chunk_KGHU3EYG = () => {};
|
|
171
171
|
|
|
172
|
+
// node_modules/@chat-adapter/shared/dist/chunk-5C7UKIZ7.js
|
|
173
|
+
function isChatCallbackData(data) {
|
|
174
|
+
return data.startsWith(CALLBACK_DATA_PREFIX);
|
|
175
|
+
}
|
|
176
|
+
function encodeCallbackData(actionId, value) {
|
|
177
|
+
const payload = { a: actionId };
|
|
178
|
+
if (typeof value === "string") {
|
|
179
|
+
payload.v = value;
|
|
180
|
+
}
|
|
181
|
+
return `${CALLBACK_DATA_PREFIX}${JSON.stringify(payload)}`;
|
|
182
|
+
}
|
|
183
|
+
function decodeCallbackData(data, fallbackActionId) {
|
|
184
|
+
if (!data) {
|
|
185
|
+
return { actionId: fallbackActionId, value: undefined };
|
|
186
|
+
}
|
|
187
|
+
if (!isChatCallbackData(data)) {
|
|
188
|
+
return { actionId: data, value: data };
|
|
189
|
+
}
|
|
190
|
+
try {
|
|
191
|
+
const decoded = JSON.parse(data.slice(CALLBACK_DATA_PREFIX.length));
|
|
192
|
+
if (typeof decoded.a === "string" && decoded.a) {
|
|
193
|
+
return {
|
|
194
|
+
actionId: decoded.a,
|
|
195
|
+
value: typeof decoded.v === "string" ? decoded.v : undefined
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
} catch {}
|
|
199
|
+
return { actionId: data, value: data };
|
|
200
|
+
}
|
|
201
|
+
var CALLBACK_DATA_PREFIX = "chat:";
|
|
202
|
+
var init_chunk_5C7UKIZ7 = () => {};
|
|
203
|
+
|
|
172
204
|
// node_modules/@chat-adapter/shared/dist/index.js
|
|
173
205
|
import crypto from "crypto";
|
|
174
206
|
import { lookup as resolve } from "dns/promises";
|
|
@@ -284,6 +316,101 @@ function renderGfmTable(table) {
|
|
|
284
316
|
}
|
|
285
317
|
return lines;
|
|
286
318
|
}
|
|
319
|
+
function normalizeCodeFences(text, options = {}) {
|
|
320
|
+
const convertText = options.convertText ?? passThrough;
|
|
321
|
+
const convertCode = options.convertCode ?? passThrough;
|
|
322
|
+
if (!text.includes(CODE_FENCE)) {
|
|
323
|
+
return convertText(text);
|
|
324
|
+
}
|
|
325
|
+
let result = "";
|
|
326
|
+
let textStart = 0;
|
|
327
|
+
let cursor = 0;
|
|
328
|
+
let movedToOwnLine = false;
|
|
329
|
+
const flushTextBefore = (end) => {
|
|
330
|
+
let segment = text.slice(textStart, end);
|
|
331
|
+
if (movedToOwnLine) {
|
|
332
|
+
segment = escapeLeadingBlockMarker(segment);
|
|
333
|
+
movedToOwnLine = false;
|
|
334
|
+
}
|
|
335
|
+
result += convertText(segment);
|
|
336
|
+
};
|
|
337
|
+
while (cursor < text.length) {
|
|
338
|
+
if (text[cursor] !== "`") {
|
|
339
|
+
cursor += 1;
|
|
340
|
+
continue;
|
|
341
|
+
}
|
|
342
|
+
if (!text.startsWith(CODE_FENCE, cursor)) {
|
|
343
|
+
const spanEnd = findInlineCodeEnd(text, cursor);
|
|
344
|
+
cursor = spanEnd === -1 ? cursor + 1 : spanEnd;
|
|
345
|
+
continue;
|
|
346
|
+
}
|
|
347
|
+
const contentStart = cursor + CODE_FENCE.length;
|
|
348
|
+
const contentEnd = text.indexOf(CODE_FENCE, contentStart);
|
|
349
|
+
if (contentEnd === -1 || isOnBlockquoteLine(text, cursor)) {
|
|
350
|
+
cursor = contentStart;
|
|
351
|
+
continue;
|
|
352
|
+
}
|
|
353
|
+
flushTextBefore(cursor);
|
|
354
|
+
if (result.length > 0 && !result.endsWith(`
|
|
355
|
+
`)) {
|
|
356
|
+
result += `
|
|
357
|
+
`;
|
|
358
|
+
}
|
|
359
|
+
const content = text.slice(contentStart, contentEnd);
|
|
360
|
+
result += CODE_FENCE;
|
|
361
|
+
if (!content.startsWith(`
|
|
362
|
+
`)) {
|
|
363
|
+
result += `
|
|
364
|
+
`;
|
|
365
|
+
}
|
|
366
|
+
result += convertCode(content);
|
|
367
|
+
if (!content.endsWith(`
|
|
368
|
+
`)) {
|
|
369
|
+
result += `
|
|
370
|
+
`;
|
|
371
|
+
}
|
|
372
|
+
result += CODE_FENCE;
|
|
373
|
+
cursor = contentEnd + CODE_FENCE.length;
|
|
374
|
+
textStart = cursor;
|
|
375
|
+
if (cursor < text.length && text[cursor] !== `
|
|
376
|
+
`) {
|
|
377
|
+
result += `
|
|
378
|
+
`;
|
|
379
|
+
movedToOwnLine = true;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
flushTextBefore(text.length);
|
|
383
|
+
return result;
|
|
384
|
+
}
|
|
385
|
+
function passThrough(value) {
|
|
386
|
+
return value;
|
|
387
|
+
}
|
|
388
|
+
function findInlineCodeEnd(text, index) {
|
|
389
|
+
const close = text.indexOf("`", index + 1);
|
|
390
|
+
if (close === -1) {
|
|
391
|
+
return -1;
|
|
392
|
+
}
|
|
393
|
+
const newline = text.indexOf(`
|
|
394
|
+
`, index + 1);
|
|
395
|
+
if (newline !== -1 && newline < close) {
|
|
396
|
+
return -1;
|
|
397
|
+
}
|
|
398
|
+
return close + 1;
|
|
399
|
+
}
|
|
400
|
+
function isOnBlockquoteLine(text, index) {
|
|
401
|
+
const lineStart = text.lastIndexOf(`
|
|
402
|
+
`, index - 1) + 1;
|
|
403
|
+
return text.slice(lineStart, index).trimStart().startsWith(">");
|
|
404
|
+
}
|
|
405
|
+
function escapeLeadingBlockMarker(text) {
|
|
406
|
+
const whitespace = LEADING_WHITESPACE_PATTERN.exec(text)?.[0] ?? "";
|
|
407
|
+
const prefix = whitespace.length > 0 ? " " : "";
|
|
408
|
+
const rest = text.slice(whitespace.length);
|
|
409
|
+
if (BLOCK_MARKER_PATTERN.test(rest)) {
|
|
410
|
+
return `${prefix}\\${rest}`;
|
|
411
|
+
}
|
|
412
|
+
return prefix + rest.replace(ORDERED_LIST_MARKER_PATTERN, "$1\\$2");
|
|
413
|
+
}
|
|
287
414
|
function encryptToken(plaintext, key) {
|
|
288
415
|
const iv = crypto.randomBytes(IV_LENGTH);
|
|
289
416
|
const cipher = crypto.createCipheriv(ALGORITHM, key, iv, {
|
|
@@ -530,8 +657,9 @@ async function downloadAttachment(value, options) {
|
|
|
530
657
|
throw error;
|
|
531
658
|
}
|
|
532
659
|
}
|
|
533
|
-
var AdapterError, AdapterRateLimitError, AuthenticationError3, ResourceNotFoundError, PermissionError, ValidationError, NetworkError, BUTTON_STYLE_MAPPINGS, ALGORITHM = "aes-256-gcm", IV_LENGTH = 12, AUTH_TAG_LENGTH = 16, HEX_KEY_PATTERN, LIMIT, REDIRECTS = 5, TIMEOUT = 30000, STATUSES, BRACKETS, IPV4, IPV6, DECODERS, BLOCKED4, BLOCKED6;
|
|
660
|
+
var AdapterError, AdapterRateLimitError, AuthenticationError3, ResourceNotFoundError, PermissionError, ValidationError, NetworkError, BUTTON_STYLE_MAPPINGS, CODE_FENCE = "```", LEADING_WHITESPACE_PATTERN, BLOCK_MARKER_PATTERN, ORDERED_LIST_MARKER_PATTERN, ALGORITHM = "aes-256-gcm", IV_LENGTH = 12, AUTH_TAG_LENGTH = 16, HEX_KEY_PATTERN, LIMIT, REDIRECTS = 5, TIMEOUT = 30000, STATUSES, BRACKETS, IPV4, IPV6, DECODERS, BLOCKED4, BLOCKED6;
|
|
534
661
|
var init_dist7 = __esm(() => {
|
|
662
|
+
init_chunk_5C7UKIZ7();
|
|
535
663
|
init_chunk_KGHU3EYG();
|
|
536
664
|
init_dist8();
|
|
537
665
|
init_dist8();
|
|
@@ -601,6 +729,9 @@ var init_dist7 = __esm(() => {
|
|
|
601
729
|
teams: { primary: "positive", danger: "destructive" },
|
|
602
730
|
discord: { primary: "primary", danger: "danger" }
|
|
603
731
|
};
|
|
732
|
+
LEADING_WHITESPACE_PATTERN = /^[ \t]+/;
|
|
733
|
+
BLOCK_MARKER_PATTERN = /^(?:[<>]|#{1,6}(?=[ \t\n]|$)|[-+*](?=[ \t\n]|$)|`{3,}|~{3,}|(?:[-*_][ \t]*){3,}(?=\n|$))/;
|
|
734
|
+
ORDERED_LIST_MARKER_PATTERN = /^(\d{1,9})([.)])(?=[ \t\n]|$)/;
|
|
604
735
|
HEX_KEY_PATTERN = /^[0-9a-fA-F]{64}$/;
|
|
605
736
|
LIMIT = 25 * 1024 * 1024;
|
|
606
737
|
STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
@@ -641,4 +772,4 @@ var init_dist7 = __esm(() => {
|
|
|
641
772
|
BLOCKED6 = blocklist(IPV6, "ipv6");
|
|
642
773
|
});
|
|
643
774
|
|
|
644
|
-
export { replaceBareMentions, maskCodeSpans, init_chunk_KGHU3EYG, extractCard, extractFiles, extractPostableAttachments, AdapterRateLimitError, AuthenticationError3, ResourceNotFoundError, PermissionError, ValidationError, NetworkError, toBuffer, bufferToDataUri, createEmojiConverter, mapButtonStyle, cardToFallbackText3, escapeTableCell, renderGfmTable, encryptToken, decryptToken, isEncryptedTokenData, decodeKey, downloadAttachment, init_dist7 };
|
|
775
|
+
export { replaceBareMentions, maskCodeSpans, init_chunk_KGHU3EYG, encodeCallbackData, decodeCallbackData, extractCard, extractFiles, extractPostableAttachments, AdapterRateLimitError, AuthenticationError3, ResourceNotFoundError, PermissionError, ValidationError, NetworkError, toBuffer, bufferToDataUri, createEmojiConverter, mapButtonStyle, cardToFallbackText3, escapeTableCell, renderGfmTable, normalizeCodeFences, encryptToken, decryptToken, isEncryptedTokenData, decodeKey, downloadAttachment, init_dist7 };
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
rawArgsFromCanonical,
|
|
5
5
|
runNativePre,
|
|
6
6
|
runNativePost
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-2v4xxnx2.js";
|
|
8
8
|
import {
|
|
9
9
|
checkToolLoop,
|
|
10
10
|
clearToolHistory
|
|
11
11
|
} from "./cli-0726awxw.js";
|
|
12
12
|
import {
|
|
13
13
|
summarizeSession
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-gq6qhmrr.js";
|
|
15
15
|
import {
|
|
16
16
|
getMemoryRaterNames,
|
|
17
17
|
init_memory_raters,
|
|
@@ -26,17 +26,17 @@ import {
|
|
|
26
26
|
readIdentityBaselines,
|
|
27
27
|
advanceIdentityBaselines,
|
|
28
28
|
init_profile_sync
|
|
29
|
-
} from "./cli-
|
|
30
|
-
import {
|
|
31
|
-
getOpenRouterAttributionHeaders,
|
|
32
|
-
init_openrouter_base_url
|
|
33
|
-
} from "./cli-dfyv0jdy.js";
|
|
29
|
+
} from "./cli-s6fhqbz1.js";
|
|
34
30
|
import {
|
|
35
31
|
resolveTemplateFromCode,
|
|
36
32
|
resolveTemplateAsync,
|
|
37
33
|
init_resolver,
|
|
38
34
|
init_session_templates
|
|
39
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-mwxez0pz.js";
|
|
36
|
+
import {
|
|
37
|
+
getOpenRouterAttributionHeaders,
|
|
38
|
+
init_openrouter_base_url
|
|
39
|
+
} from "./cli-dfyv0jdy.js";
|
|
40
40
|
import {
|
|
41
41
|
isSessionSummarySkipped,
|
|
42
42
|
init_env_flag
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
import {
|
|
45
45
|
scrubSecrets,
|
|
46
46
|
init_secret_scrubber
|
|
47
|
-
} from "./cli-
|
|
47
|
+
} from "./cli-fp65jdp2.js";
|
|
48
48
|
|
|
49
49
|
// src/prompts/goal-reminder.ts
|
|
50
50
|
init_session_templates();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ACPAdapter2
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-1f48qdnb.js";
|
|
4
4
|
import {
|
|
5
5
|
isGrokOpenRouterModel2,
|
|
6
6
|
grokTargetProfile2
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-d528acsw.js";
|
|
8
8
|
import {
|
|
9
9
|
getOpenRouterBaseUrl,
|
|
10
10
|
getOpenRouterAttributionHeaders,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
init_src2,
|
|
16
16
|
registerVolatileSecret,
|
|
17
17
|
init_secret_scrubber
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-fp65jdp2.js";
|
|
19
19
|
|
|
20
20
|
// src/providers/grok-adapter.ts
|
|
21
21
|
init_src2();
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
resolveCredential,
|
|
7
7
|
resolveCredentials,
|
|
8
8
|
init_credentials
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-xhkek467.js";
|
|
10
10
|
import {
|
|
11
11
|
kindForModelString,
|
|
12
12
|
parseModelStr,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
selectCredential,
|
|
17
17
|
init_credentials2
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-5basv0e7.js";
|
|
19
19
|
import {
|
|
20
20
|
DEFAULT_OPENROUTER_BASE_URL,
|
|
21
21
|
getOpenRouterBaseUrl,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
scrubSecrets,
|
|
35
35
|
init_secret_scrubber
|
|
36
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-fp65jdp2.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
39
|
} from "./cli-242037k3.js";
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
runtimeCatalogSection,
|
|
3
3
|
runtimeCatalogModel,
|
|
4
4
|
init_runtime_model_catalog
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-q8aq48v1.js";
|
|
6
6
|
import {
|
|
7
7
|
chatgptSubscriptionModelId,
|
|
8
8
|
buildClaudeShortnameMap,
|
|
9
9
|
init_src2
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-fp65jdp2.js";
|
|
11
11
|
import {
|
|
12
12
|
__esm
|
|
13
13
|
} from "./cli-242037k3.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
deleteKv2,
|
|
20
20
|
listKv2,
|
|
21
21
|
init_db4
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-erh1rgh4.js";
|
|
23
23
|
import {
|
|
24
24
|
ackSlackMessage,
|
|
25
25
|
skipSlackMessageReaction,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
init_watcher,
|
|
37
37
|
getSlackApp2,
|
|
38
38
|
init_app4
|
|
39
|
-
} from "./cli-
|
|
39
|
+
} from "./cli-69eq6gdk.js";
|
|
40
40
|
import {
|
|
41
41
|
applyPreTaskCreate,
|
|
42
42
|
init_apply_task_create,
|
|
@@ -55,21 +55,21 @@ import {
|
|
|
55
55
|
init_message_text,
|
|
56
56
|
createAdditiveBuffer,
|
|
57
57
|
init_additive_buffer
|
|
58
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-dnvmwsvc.js";
|
|
59
59
|
import {
|
|
60
60
|
resolveSlackParticipant,
|
|
61
61
|
resolveSlackUserId,
|
|
62
62
|
rewriteSlackMentions,
|
|
63
63
|
init_enrich
|
|
64
|
-
} from "./cli-
|
|
64
|
+
} from "./cli-gc7jkf4a.js";
|
|
65
65
|
import {
|
|
66
66
|
isSlackThreadLeft,
|
|
67
67
|
init_left_threads
|
|
68
|
-
} from "./cli-
|
|
68
|
+
} from "./cli-4djg31jh.js";
|
|
69
69
|
import {
|
|
70
70
|
findUserByExternalId,
|
|
71
71
|
init_users
|
|
72
|
-
} from "./cli-
|
|
72
|
+
} from "./cli-getrvmtx.js";
|
|
73
73
|
import {
|
|
74
74
|
isSteeringEnabled2,
|
|
75
75
|
init_steering_enabled
|
|
@@ -77,11 +77,11 @@ import {
|
|
|
77
77
|
import {
|
|
78
78
|
resolveTemplate,
|
|
79
79
|
init_resolver
|
|
80
|
-
} from "./cli-
|
|
80
|
+
} from "./cli-mwxez0pz.js";
|
|
81
81
|
import {
|
|
82
82
|
scrubSecrets,
|
|
83
83
|
init_secret_scrubber
|
|
84
|
-
} from "./cli-
|
|
84
|
+
} from "./cli-fp65jdp2.js";
|
|
85
85
|
import {
|
|
86
86
|
__esm,
|
|
87
87
|
__using,
|