@desplega.ai/agent-swarm 2.13.5 → 2.14.0
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-99n6z9ky.js +17 -0
- package/dist/{acp-targets-w8dbs4nr.js → acp-targets-23exz4z4.js} +10 -10
- package/dist/{actions-8zrcbjrx.js → actions-zcr25x27.js} +60 -39
- package/dist/{agent-fs-provision-cbt2ttds.js → agent-fs-provision-7fa9e12e.js} +4 -4
- package/dist/{amp-adapter-8x6zp8w4.js → amp-adapter-s7ytmv6b.js} +3 -3
- package/dist/{app-zfa9dwjw.js → app-5d3sz1hy.js} +7 -7
- package/dist/{approval-notifications-rv92zmza.js → approval-notifications-7qgkzkzx.js} +8 -8
- package/dist/{assistant-q7s7rm1q.js → assistant-p2yvhc3j.js} +37 -32
- package/dist/{boot-args-schema-g27kpzr1.js → boot-args-schema-ry6cb0p7.js} +1 -1
- package/dist/{boot-reembed-1mjs52nt.js → boot-reembed-2hkm3vz2.js} +1 -1
- package/dist/{boot-reembed-m62dpdkg.js → boot-reembed-c9643ms3.js} +1 -1
- package/dist/{boot-scrub-sweep-ss1vcamw.js → boot-scrub-sweep-3ycxr51t.js} +2 -2
- package/dist/{boot-seeds-hwnvgbb3.js → boot-seeds-2hzvvzg0.js} +4 -4
- package/dist/{boxd-y0szhp0g.js → boxd-9py3x0jb.js} +2 -2
- package/dist/{claude-adapter-0rjmbhjk.js → claude-adapter-dnkww93e.js} +9 -9
- package/dist/{claude-managed-adapter-6k032agg.js → claude-managed-adapter-yk0cr5x6.js} +4 -4
- package/dist/{claude-managed-setup-6czvve8q.js → claude-managed-setup-4byxpp47.js} +5 -5
- package/dist/{claude-sdk-session-pr0znb81.js → claude-sdk-session-4wf3dbvs.js} +12467 -12285
- package/dist/{cli-t0n9svkb.js → cli-096aftq6.js} +12 -7
- package/dist/{cli-2wzkvfgm.js → cli-0e914dp9.js} +3 -3
- package/dist/{cli-vcpyttcw.js → cli-0h6m6z5g.js} +1 -1
- package/dist/{cli-q41qar56.js → cli-0k7ppk9k.js} +130 -8
- package/dist/{cli-ks06cd0n.js → cli-1nfabrt4.js} +8 -8
- package/dist/{cli-ebpq3c5z.js → cli-2414h5r9.js} +8 -8
- package/dist/{cli-nrt048ys.js → cli-24wervhz.js} +37 -0
- package/dist/{cli-pedm2kht.js → cli-2ayk9gn8.js} +2 -2
- package/dist/{cli-kr0jpw9c.js → cli-2ckwgs7q.js} +1 -1
- package/dist/{cli-evy3egte.js → cli-2savn6mm.js} +11 -100
- package/dist/{cli-n79j1vxc.js → cli-2zjxake1.js} +4 -4
- package/dist/{cli-z3x7h79n.js → cli-37p61fcg.js} +9 -9
- package/dist/{cli-2vp0z049.js → cli-39t9d248.js} +1 -1
- package/dist/{cli-sa02jsqt.js → cli-3mhdmcd4.js} +1 -1
- package/dist/{cli-34fygf87.js → cli-3wsabyt0.js} +2 -2
- package/dist/{cli-grbngev5.js → cli-466jjrwe.js} +11 -2
- package/dist/{cli-zxa1vmx7.js → cli-6ajyhxh7.js} +2 -2
- package/dist/{cli-bvamr9g0.js → cli-6yy4fepf.js} +4 -4
- package/dist/{cli-3vw6dd4g.js → cli-73rmgm45.js} +2 -2
- package/dist/{cli-8b4rpnwj.js → cli-7ca8hczj.js} +1 -1
- package/dist/{cli-0h8skzss.js → cli-7g5qj2ca.js} +4 -3
- package/dist/{cli-srre41gb.js → cli-7w1fs01q.js} +2 -2
- package/dist/{cli-tgc1kgg3.js → cli-84wxwt3z.js} +1 -1
- package/dist/{cli-4gaf3tx5.js → cli-84xn7bgz.js} +1 -1
- package/dist/{cli-s8dhq7rj.js → cli-879txsac.js} +5 -5
- package/dist/{cli-9n6g14vs.js → cli-8vbxjzk0.js} +3 -3
- package/dist/{cli-cmbb2t8a.js → cli-91amj3md.js} +2 -2
- package/dist/{cli-ewk3sg68.js → cli-930zbczq.js} +3 -3
- package/dist/{cli-6msnpj1z.js → cli-9fwznq4p.js} +10 -10
- package/dist/{cli-qmx8bnt4.js → cli-9j1t3kf6.js} +2 -2
- package/dist/{cli-t879ww0y.js → cli-9j47sgzy.js} +2 -2
- package/dist/{cli-0qt3epg4.js → cli-ad00h1st.js} +7 -7
- package/dist/{cli-avax5mp9.js → cli-adzmmcvf.js} +19 -7
- package/dist/{cli-ffn0a515.js → cli-ayxxkk3p.js} +68 -25
- package/dist/{cli-4vynxtrb.js → cli-bqfx72e6.js} +10 -3
- package/dist/{cli-887vhew6.js → cli-cbg0j1yt.js} +2716 -2643
- package/dist/{cli-fw67mnyc.js → cli-cg1q8ymp.js} +1 -1
- package/dist/{cli-he5nxaa8.js → cli-dw9rtjm3.js} +1 -1
- package/dist/{cli-emdfd8fh.js → cli-dy754erz.js} +9 -1
- package/dist/{cli-3860pmrq.js → cli-edxfzgah.js} +4 -4
- package/dist/{cli-v09eza21.js → cli-ejnhs815.js} +15 -15
- package/dist/{cli-k0nebh10.js → cli-enavhq6r.js} +1 -1
- package/dist/{cli-b42yfn17.js → cli-f2rwt43y.js} +13 -13
- package/dist/{cli-tvyt8w6n.js → cli-f9g96z28.js} +8 -8
- package/dist/{cli-zbbtp02a.js → cli-fww016hh.js} +457 -70
- package/dist/{cli-vbge4rsp.js → cli-g6a696c0.js} +4 -4
- package/dist/{cli-z1vam71h.js → cli-gc6b94tj.js} +2 -2
- package/dist/{cli-5tq15aa7.js → cli-gcyws2bp.js} +2 -2
- package/dist/{cli-srktrbby.js → cli-hzhv7yac.js} +1 -1
- package/dist/{cli-cp163xga.js → cli-jcnc5ret.js} +44 -32
- package/dist/{cli-j69pzrrz.js → cli-jgq9xptq.js} +5 -5
- package/dist/{cli-kwj3131p.js → cli-jwnac23b.js} +1 -1
- package/dist/{cli-wzecestt.js → cli-kc7vd07m.js} +616 -289
- package/dist/{cli-8pd1t17c.js → cli-kg63yp1r.js} +14 -14
- package/dist/{cli-zzq96q57.js → cli-krk8y8c7.js} +727 -139
- package/dist/{cli-5web09sb.js → cli-m0ea8ggd.js} +8 -10
- package/dist/{cli-qrvk9nka.js → cli-md4tn21h.js} +13 -13
- package/dist/{cli-1jq2em7b.js → cli-mv8ft7b0.js} +10 -9
- package/dist/{cli-ryem5cfq.js → cli-mw1tmn3x.js} +217 -27
- package/dist/{cli-abby987g.js → cli-njvpngc6.js} +3 -3
- package/dist/{cli-55h8m1x3.js → cli-phe2vcw5.js} +6 -6
- package/dist/{cli-prz1p3ft.js → cli-pq0kv31y.js} +5 -5
- package/dist/{cli-q1h041y8.js → cli-q457ga28.js} +6 -6
- package/dist/{cli-z40t85ms.js → cli-q5n3deaf.js} +1 -1
- package/dist/{cli-7ypg8hka.js → cli-qkbevqer.js} +3 -3
- package/dist/{cli-f9xw9pr4.js → cli-qrwjk4xy.js} +5 -5
- package/dist/{cli-kezzteka.js → cli-r04ve9xw.js} +1 -1
- package/dist/{cli-zntvmqmm.js → cli-r495stwd.js} +2 -2
- package/dist/{cli-1kvcsd2f.js → cli-r9d2tya0.js} +71 -3
- package/dist/{cli-ybte1fqc.js → cli-rp1n2xpd.js} +1 -1
- package/dist/{cli-sejvnjvw.js → cli-rs1rzwp4.js} +1 -1
- package/dist/{cli-94mxerrp.js → cli-rzbsh6bw.js} +1 -1
- package/dist/{cli-94gx6ze9.js → cli-s4pccby1.js} +1 -1
- package/dist/{cli-hd5bm1e1.js → cli-shyhb4t5.js} +10 -10
- package/dist/{cli-r3dxpmyt.js → cli-srq69pn1.js} +1 -1
- package/dist/{cli-7r9tvk8v.js → cli-tc165vrb.js} +8 -3
- package/dist/{cli-ced4azn1.js → cli-v4z5v3jd.js} +298 -80
- package/dist/{cli-ehg90jd1.js → cli-vxmmttmt.js} +55 -50
- package/dist/{cli-tt7dkwjj.js → cli-w4bvtxet.js} +7 -7
- package/dist/{cli-x2adbg4j.js → cli-wd7b5hgc.js} +1 -1
- package/dist/{cli-htb5bpz2.js → cli-wvbaq052.js} +1 -1
- package/dist/{cli-ywy8yz6t.js → cli-wvgg7r4j.js} +2 -2
- package/dist/{cli-19d6v8er.js → cli-wym6rxgt.js} +165 -6
- package/dist/{cli-f7b9nyvk.js → cli-yd7e590v.js} +12 -12
- package/dist/{cli-69zzpjgh.js → cli-yjb3cddd.js} +1 -1
- package/dist/{cli-5n9w2xzx.js → cli-z8t4485r.js} +2 -2
- package/dist/{cli-jdq3jmny.js → cli-ze1ndjs4.js} +4 -6
- package/dist/cli.js +28 -28
- package/dist/{codex-adapter-bn7eaxk5.js → codex-adapter-eq61radw.js} +8 -8
- package/dist/{codex-hook-nnmezjg9.js → codex-hook-8nmepvz6.js} +3 -3
- package/dist/{codex-login-ktfg1cxk.js → codex-login-vbd9707w.js} +1 -1
- package/dist/{codex-session-runner-j1e9hffc.js → codex-session-runner-rfx355h4.js} +9 -9
- package/dist/{commands-amhpafrr.js → commands-d1z0sx62.js} +3 -3
- package/dist/{controller-tw7g10j2.js → controller-9hz6d8x3.js} +4 -4
- package/dist/{controllers-connect-2ssqz7f4.js → controllers-connect-tz07d2xr.js} +24 -25
- package/dist/core-dynsv289.js +41 -0
- package/dist/{cursor-adapter-d6knjmwa.js → cursor-adapter-ef22ze3j.js} +2 -2
- package/dist/{db-fd6xxm77.js → db-gd81d68c.js} +3 -3
- package/dist/{db-sc59379z.js → db-vrckks6q.js} +4 -2
- package/dist/{devin-adapter-3bp6rape.js → devin-adapter-kdt6a2bh.js} +1 -1
- package/dist/{dispatcher-a2gdqz8c.js → dispatcher-76as8w2t.js} +21 -22
- package/dist/{docker-a59g3ebm.js → docker-51ta7jsh.js} +2 -2
- package/dist/dsh-adapter-ypfvcdyz.js +11 -0
- package/dist/{e2b-cn7cvjqy.js → e2b-05kn3kpq.js} +16 -5
- package/dist/{e2b-qnxyfea6.js → e2b-dm9r8hpy.js} +3 -3
- package/dist/{easter-egg-3d-a0pphy71.js → easter-egg-3d-sg21j15g.js} +1 -1
- package/dist/{embedding-space-qepzrach.js → embedding-space-zsdw37bb.js} +13 -23
- package/dist/{embeddings-d7vr881x.js → embeddings-p4e3e1m6.js} +1 -1
- package/dist/{event-bus-7gbsr0g4.js → event-bus-tvf2grf4.js} +1 -1
- package/dist/{execute-6afts2bn.js → execute-nztd0af0.js} +1 -1
- package/dist/{external-channel-881zq1x4.js → external-channel-717yzn4d.js} +2 -2
- package/dist/fx-adapter-9k0hptnz.js +20 -0
- package/dist/grok-adapter-skdj2pce.js +20 -0
- package/dist/handlers-5btjqkz6.js +39 -0
- package/dist/{heartbeat-4c022m6a.js → heartbeat-vfb1gy84.js} +24 -25
- package/dist/{hook-a7eh6zty.js → hook-ctz0xmp3.js} +11 -11
- package/dist/{hook-4k84x499.js → hook-eh52p7yd.js} +6 -6
- package/dist/{http-6aw5wanc.js → http-zregegrx.js} +784 -166
- package/dist/{index-xhad0n8m.js → index-5kx15d19.js} +1 -1
- package/dist/index-7w8p6em0.js +41 -0
- package/dist/index-evay0xyk.js +17 -0
- package/dist/{index-yq9hhhhy.js → index-fdym6ryb.js} +25 -26
- package/dist/{index-3j803vnb.js → index-mtnbhe12.js} +20533 -19786
- package/dist/index-vz4semsx.js +38 -0
- package/dist/{index-z2g9469g.js → index-x9qf8dg7.js} +108 -28
- package/dist/index-y3s0xp2v.js +43 -0
- package/dist/{k8s-36gfn847.js → k8s-ejkk0aw7.js} +2 -2
- package/dist/{keepalive-zhbmztqw.js → keepalive-zdqay870.js} +4 -5
- package/dist/lead-6cscw8a5.js +82 -0
- package/dist/{maintenance-rsp0591h.js → maintenance-t5ndg11m.js} +1 -1
- package/dist/{node-rxte5hc6.js → node-jkdd5w7m.js} +1 -1
- package/dist/{oauth-refresh-sweep-w3cqmxq7.js → oauth-refresh-sweep-y9zyd7t6.js} +3 -4
- package/dist/{object-webhooks-331hay92.js → object-webhooks-mkca91s0.js} +7 -7
- package/dist/{onboard-n2w80m2n.js → onboard-ss995244.js} +11 -9
- package/dist/{opencode-adapter-z98127cz.js → opencode-adapter-mwpz0278.js} +8 -8
- package/dist/{otel-impl-xsk35tvf.js → otel-impl-6n6vva3x.js} +2 -2
- package/dist/{pending-2e6trkxd.js → pending-2sxh1t6j.js} +22 -23
- package/dist/{pi-mono-adapter-wh6yndtm.js → pi-mono-adapter-sfb7zy43.js} +13 -13
- package/dist/{pricing-refresh-9355dj1t.js → pricing-refresh-h79bg4cf.js} +2 -2
- package/dist/{rbac-roles-8eajw4s6.js → rbac-roles-ckq0czp4.js} +2 -2
- package/dist/{rbac-roles-58y3m912.js → rbac-roles-jg2e260w.js} +3 -3
- package/dist/{render-v2-7gskkmd4.js → render-v2-ymbshmn0.js} +7 -7
- package/dist/{resume-0drnmpja.js → resume-jdhnt4jk.js} +10 -10
- package/dist/{runtime-d2tcmqte.js → runtime-y28jhhnf.js} +1 -1
- package/dist/{session-access-0ztys6bd.js → session-access-k4ta5hvp.js} +5 -5
- package/dist/{session-source-backfill-cdm5s046.js → session-source-backfill-528j4s8j.js} +3 -3
- package/dist/{setup-pqwb9tcc.js → setup-d6pj82fr.js} +15 -6
- package/dist/thread-buffer-9w6x5zec.js +40 -0
- package/dist/{tree-visibility-rwz67mje.js → tree-visibility-kjxv3nxk.js} +2 -2
- package/dist/{user-merge-jobs-mxrhamwt.js → user-merge-jobs-rabbncf6.js} +3 -3
- package/dist/{virtual-modules-71y1gsmg.js → virtual-modules-22k51txd.js} +3 -3
- package/dist/{work-objects-3k4ykt9j.js → work-objects-xtjbar3r.js} +26 -30
- package/dist/{worker-follow-up-y0h64xpr.js → worker-follow-up-fg48vk6d.js} +21 -22
- package/dist/worker-g4aj93dt.js +82 -0
- package/dist/{x-d27jj7z7.js → x-vfsqypht.js} +2 -2
- package/openapi.json +247 -20
- package/package.json +10 -10
- package/src/apps/definition.ts +76 -24
- package/src/apps/row-store.ts +67 -0
- package/src/apps/script-types.ts +131 -21
- package/src/apps/store.ts +4 -1
- package/src/be/db/script-runs.ts +33 -0
- package/src/be/db/slack-card-groups.ts +147 -0
- package/src/be/db/slack-trees.ts +26 -0
- package/src/be/db/task-idempotency.ts +63 -0
- package/src/be/db/tasks/read.ts +2 -0
- package/src/be/db/tasks/write.ts +4 -2
- package/src/be/db/workflow-idempotency.ts +6 -1
- package/src/be/db/workflows/read.ts +79 -0
- package/src/be/db.ts +51 -147
- package/src/be/improvements.ts +24 -2
- package/src/be/mcp-proxy.ts +45 -11
- package/src/be/memory/embedding-space.ts +10 -20
- package/src/be/memory/index.ts +35 -0
- package/src/be/memory/providers/openai-embedding.ts +10 -0
- package/src/be/migrations/348_task_deferred_until.sql +4 -0
- package/src/be/migrations/354_durable_objects.sql +9 -0
- package/src/be/migrations/356_slack_outcome_card_groups.sql +14 -0
- package/src/be/migrations/357_task_idempotency_keys.sql +27 -0
- package/src/be/migrations/362_favorites_app.sql +36 -0
- package/src/be/repo-checked-update.ts +58 -5
- package/src/be/requester-timezone.ts +10 -0
- package/src/be/script-connections.ts +5 -1
- package/src/be/script-credential-broker.ts +29 -2
- package/src/be/scripts/durable.ts +204 -0
- package/src/be/scripts/extract-schema.ts +29 -4
- package/src/be/scripts/run-credential.ts +1 -8
- package/src/be/scripts/typecheck.ts +32 -7
- package/src/be/seed-scripts/catalog/memory-eval.ts +11 -2
- package/src/be/seed-scripts/catalog/tool-usage.ts +27 -8
- package/src/be/swarm-config-guard.ts +87 -7
- package/src/be/users.ts +33 -12
- package/src/comb/review-batch.ts +16 -5
- package/src/commands/context-preamble.ts +237 -0
- package/src/commands/e2b.ts +14 -0
- package/src/commands/entrypoint-mcp-config.ts +231 -0
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/onboard/compose-generator.ts +2 -1
- package/src/commands/onboard/env-generator.ts +16 -7
- package/src/commands/runner.ts +23 -7
- package/src/commands/setup.tsx +17 -3
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/hooks/hook.ts +8 -2
- package/src/hooks/native-tool-hooks.ts +4 -2
- package/src/http/apps.ts +82 -42
- package/src/http/comb.ts +21 -5
- package/src/http/config.ts +8 -4
- package/src/http/heartbeat.ts +5 -0
- package/src/http/index.ts +12 -6
- package/src/http/kv.ts +7 -5
- package/src/http/mcp-oauth.ts +16 -0
- package/src/http/mcp-servers.ts +43 -3
- package/src/http/memory.ts +28 -1
- package/src/http/metrics.ts +11 -4
- package/src/http/onboarding.ts +12 -1
- package/src/http/repos.ts +27 -11
- package/src/http/request-principal.ts +27 -1
- package/src/http/schedules.ts +36 -8
- package/src/http/script-connection-proxy.ts +3 -1
- package/src/http/script-runs.ts +21 -10
- package/src/http/scripts.ts +177 -26
- package/src/http/session-cost-recompute.ts +9 -4
- package/src/http/skills.ts +70 -0
- package/src/http/status.ts +2 -0
- package/src/http/tasks.ts +92 -14
- package/src/http/trackers/jira.ts +18 -3
- package/src/http/trackers/linear.ts +3 -0
- package/src/kv-limits.ts +2 -0
- package/src/kv-reserved-namespaces.ts +25 -2
- package/src/prompts/session-templates.ts +49 -0
- package/src/prompts/session-turns.ts +30 -0
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/claude-managed-adapter.ts +14 -0
- package/src/providers/claude-sdk-session.ts +14 -1
- package/src/providers/cursor-adapter.ts +1 -1
- package/src/providers/dsh-adapter.ts +1 -1
- package/src/providers/opencode-adapter.ts +3 -5
- package/src/providers/runtime-dependencies.ts +11 -8
- package/src/rbac/legacy-policy.ts +7 -0
- package/src/rbac/permissions.ts +27 -0
- package/src/scheduler/scheduler.ts +36 -18
- package/src/script-workflows/executor.ts +37 -8
- package/src/script-workflows/supervisor.ts +14 -0
- package/src/scripts-runtime/ctx.ts +5 -1
- package/src/scripts-runtime/durable-object-base.ts +19 -0
- package/src/scripts-runtime/eval-harness.ts +46 -1
- package/src/scripts-runtime/executors/native.ts +13 -1
- package/src/scripts-runtime/executors/quickjs-bundle.ts +20 -1
- package/src/scripts-runtime/executors/quickjs-prelude.ts +40 -1
- package/src/scripts-runtime/executors/quickjs-runner.ts +26 -3
- package/src/scripts-runtime/executors/quickjs-worker.ts +2 -1
- package/src/scripts-runtime/executors/types.ts +26 -0
- package/src/scripts-runtime/extract-signature.ts +96 -1
- package/src/scripts-runtime/loader.ts +11 -5
- package/src/scripts-runtime/mcp-client.ts +1 -1
- package/src/scripts-runtime/sdk-allowlist.ts +1 -0
- package/src/scripts-runtime/swarm-config.ts +7 -0
- package/src/scripts-runtime/swarm-sdk.ts +4 -1
- package/src/scripts-runtime/types/stdlib.d.ts +19 -0
- package/src/scripts-runtime/types/swarm-extension.d.ts +1 -0
- package/src/scripts-runtime/types/swarm-sdk.d.ts +19 -0
- package/src/slack/actions.ts +24 -0
- package/src/slack/assistant.ts +8 -0
- package/src/slack/blocks.ts +35 -0
- package/src/slack/channel-activity.ts +7 -0
- package/src/slack/enrich.ts +46 -54
- package/src/slack/files.ts +173 -23
- package/src/slack/handlers.test.ts +17 -19
- package/src/slack/handlers.ts +15 -14
- package/src/slack/render-v2.ts +264 -19
- package/src/slack/responses.ts +61 -5
- package/src/slack/session-mirror.ts +10 -5
- package/src/slack/task-output.ts +25 -14
- package/src/slack/templates.ts +9 -0
- package/src/slack/thread-participants.ts +64 -24
- package/src/slack/watcher.ts +4 -4
- package/src/slack/work-objects.ts +1 -1
- package/src/stdio.ts +5 -0
- package/src/tests/agents-list-model-display.test.ts +4 -0
- package/src/tests/apps-script-types.test.ts +63 -16
- package/src/tests/apps-sort-order.test.ts +87 -0
- package/src/tests/bedrock-model-groups.test.ts +4 -0
- package/src/tests/channel-activity.test.ts +9 -0
- package/src/tests/chatgpt-subscription-model-groups.test.ts +4 -0
- package/src/tests/claude-hook-output.test.ts +2 -0
- package/src/tests/claude-managed-adapter.test.ts +15 -3
- package/src/tests/claude-sdk-stderr.test.ts +28 -0
- package/src/tests/codex-gpt6-release.test.ts +4 -0
- package/src/tests/comb-review-batch.test.ts +17 -4
- package/src/tests/comb-status.test.ts +1 -0
- package/src/tests/db-client.test.ts +11 -5
- package/src/tests/db-task-read-contract.test.ts +1 -0
- package/src/tests/db-task-write-contract.test.ts +2 -2
- package/src/tests/defer-task.test.ts +23 -1
- package/src/tests/dsh-adapter.test.ts +1 -1
- package/src/tests/e2b-dispatch.test.ts +13 -1
- package/src/tests/entrypoint-mcp-config.test.ts +642 -0
- package/src/tests/fixtures/onboard/content.env.txt +2 -2
- package/src/tests/fixtures/onboard/dev.env.txt +2 -2
- package/src/tests/fixtures/onboard/full-all.env.txt +2 -2
- package/src/tests/fixtures/onboard/full.env.txt +2 -2
- package/src/tests/fixtures/onboard/research.env.txt +2 -2
- package/src/tests/fixtures/onboard/solo.env.txt +2 -2
- package/src/tests/fixtures/runner-missing-dependency.ts +2 -1
- package/src/tests/fx-adapter.test.ts +4 -5
- package/src/tests/hook-mcp-config-precedence.test.ts +59 -0
- package/src/tests/hook-ping-me-order.test.ts +1 -0
- package/src/tests/hook-runtime-close.test.ts +1 -0
- package/src/tests/improvements-payload.test.ts +2 -2
- package/src/tests/model-groups-live-catalog.test.ts +4 -0
- package/src/tests/oauth-credential-bindings.test.ts +8 -3
- package/src/tests/oauth-refresh-failure.test.ts +15 -3
- package/src/tests/onboard-env.test.ts +1 -1
- package/src/tests/openai-compatible-providers.test.ts +5 -0
- package/src/tests/openapi-route-headers.test.ts +2 -1
- package/src/tests/opus-5-5-registry.test.ts +4 -0
- package/src/tests/provider-runtime-dependencies.test.ts +26 -15
- package/src/tests/routing-affinity-inventory.test.ts +11 -0
- package/src/tests/runner-context-preamble.test.ts +202 -0
- package/src/tests/runner-repo-clone-args.test.ts +116 -0
- package/src/tests/scheduler-occurrence.test.ts +60 -9
- package/src/tests/script-connections-mcp.test.ts +6 -3
- package/src/tests/script-connections.test.ts +4 -0
- package/src/tests/scripts-namespaces.test.ts +3 -1
- package/src/tests/secret-scrubber.test.ts +8 -2
- package/src/tests/session-cost-recompute-unit.test.ts +39 -0
- package/src/tests/session-costs-recompute-all-providers.test.ts +6 -3
- package/src/tests/session-route-posture.test.ts +7 -1
- package/src/tests/slack-file-tools-attachments.test.ts +14 -9
- package/src/tests/slack-identity-resolution.test.ts +10 -3
- package/src/tests/slack-inline-output.test.ts +10 -8
- package/src/tests/slack-render-v2.test.ts +9 -4
- package/src/tests/slack-steering.test.ts +8 -2
- package/src/tests/slack-thread-participants.test.ts +11 -1
- package/src/tests/sonnet-5-5-registry.test.ts +4 -0
- package/src/tests/swarm-config-encryption.test.ts +5 -8
- package/src/tests/ui-spec-script-actions-config.test.ts +7 -3
- package/src/tests/workflow-triggers-v2.test.ts +35 -11
- package/src/tools/app-patch.ts +6 -2
- package/src/tools/app-upsert.ts +8 -4
- package/src/tools/defer-task.ts +17 -77
- package/src/tools/kv/kv-get.ts +2 -0
- package/src/tools/kv/kv-list.ts +11 -5
- package/src/tools/kv/kv-set.ts +1 -3
- package/src/tools/repos/update-repo.ts +37 -19
- package/src/tools/schedules/run-schedule-now.ts +21 -1
- package/src/tools/script-apis.ts +9 -4
- package/src/tools/script-common.ts +2 -2
- package/src/tools/script-run.ts +8 -0
- package/src/tools/script-upsert.ts +1 -1
- package/src/tools/slack-download-file.ts +15 -12
- package/src/tools/slack-post.ts +7 -1
- package/src/tools/slack-read.ts +3 -1
- package/src/tools/slack-reply.ts +16 -0
- package/src/tools/slack-start-thread.ts +8 -1
- package/src/tools/slack-upload-file.ts +99 -96
- package/src/tools/swarm-config/set-config.ts +3 -1
- package/src/tools/swarm-x.ts +0 -2
- package/src/tools/utils.ts +3 -0
- package/src/types.ts +8 -2
- package/src/utils/constants.ts +20 -0
- package/src/utils/deferral-time.ts +61 -0
- package/src/utils/request-auth-context.ts +15 -16
- package/src/utils/secret-scrubber.ts +1 -1
- package/src/workflows/engine.ts +6 -11
- package/src/workflows/executors/swarm-script.ts +0 -2
- package/src/workflows/foreach-driver.ts +6 -12
- package/src/workflows/input.ts +24 -1
- package/src/workflows/node-timeout.ts +18 -0
- package/src/workflows/retry-poller.ts +2 -1
- package/src/workflows/triggers.ts +21 -11
- package/src/x/composio.ts +10 -1
- package/templates/skills/apps/SKILL.md +4 -2
- package/templates/skills/apps/content.md +4 -2
- package/templates/skills/code-quality/content.md +4 -4
- package/templates/skills/scheduled-task-resilience/SKILL.md +2 -0
- package/templates/skills/scheduled-task-resilience/content.md +2 -0
- package/templates/skills/swarm-docs/content.md +7 -0
- package/templates/skills/swarm-scripts/SKILL.md +44 -0
- package/templates/skills/swarm-scripts/content.md +44 -0
- package/dist/acp-adapter-tbt61zkm.js +0 -17
- package/dist/cli-b9ygp1kz.js +0 -459
- package/dist/cli-kj0hyr43.js +0 -51
- package/dist/cli-m8f4379k.js +0 -173
- package/dist/core-bwp98v4w.js +0 -42
- package/dist/dsh-adapter-43ygwqn7.js +0 -9
- package/dist/fx-adapter-cr2hq17y.js +0 -20
- package/dist/grok-adapter-ayddnbsc.js +0 -20
- package/dist/handlers-7ghs84x2.js +0 -41
- package/dist/index-dtt0d634.js +0 -44
- package/dist/index-hmszyqkk.js +0 -42
- package/dist/index-j6rm1rtn.js +0 -39
- package/dist/index-rwwhsmjg.js +0 -13
- package/dist/lead-g2j4q39z.js +0 -83
- package/dist/thread-buffer-epx3san4.js +0 -42
- package/dist/worker-09gqn9xy.js +0 -83
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Anthropic
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-0k7ppk9k.js";
|
|
4
4
|
import {
|
|
5
5
|
contextBoundNoteThreshold,
|
|
6
6
|
createContextBoundNote
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-r495stwd.js";
|
|
8
8
|
import {
|
|
9
9
|
checkToolLoop
|
|
10
10
|
} from "./cli-0726awxw.js";
|
|
11
11
|
import {
|
|
12
12
|
createSwarmEventHandler
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-hzhv7yac.js";
|
|
14
14
|
import {
|
|
15
15
|
readPkgVersion
|
|
16
16
|
} from "./cli-kr5tjjtz.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
computeContextUsedUnified,
|
|
21
21
|
clampContextPercent,
|
|
22
22
|
init_context_window
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-gc6b94tj.js";
|
|
24
24
|
import {
|
|
25
25
|
isGitHubEnterprise,
|
|
26
26
|
init_github_host
|
|
@@ -28,16 +28,16 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
selectCredential,
|
|
30
30
|
init_credentials2
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-wd7b5hgc.js";
|
|
32
32
|
import {
|
|
33
33
|
runtimeCatalogModel,
|
|
34
34
|
init_runtime_model_catalog
|
|
35
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-7ca8hczj.js";
|
|
36
36
|
import {
|
|
37
37
|
init_src2,
|
|
38
38
|
scrubSecrets,
|
|
39
39
|
init_secret_scrubber
|
|
40
|
-
} from "./cli-
|
|
40
|
+
} from "./cli-r9d2tya0.js";
|
|
41
41
|
|
|
42
42
|
// src/providers/claude-managed-adapter.ts
|
|
43
43
|
init_context_window();
|
|
@@ -149,6 +149,11 @@ function normalizeRepoUrl(vcsRepo) {
|
|
|
149
149
|
throw new Error("claude-managed does not support GitHub Enterprise Server (GITHUB_URL is set)");
|
|
150
150
|
}
|
|
151
151
|
if (vcsRepo.startsWith("http://") || vcsRepo.startsWith("https://")) {
|
|
152
|
+
const url = new URL(vcsRepo);
|
|
153
|
+
const isGitHubRepo = url.protocol === "https:" && url.hostname === "github.com" && !url.username && !url.password && !url.port && /^\/[^/]+\/[^/]+?(\.git)?\/?$/.test(url.pathname);
|
|
154
|
+
if (!isGitHubRepo) {
|
|
155
|
+
throw new Error("claude-managed supports only https://github.com/<owner>/<repo> repository URLs");
|
|
156
|
+
}
|
|
152
157
|
return vcsRepo;
|
|
153
158
|
}
|
|
154
159
|
return `https://github.com/${vcsRepo}`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ACPAdapter2
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-cbg0j1yt.js";
|
|
4
4
|
import {
|
|
5
5
|
isGrokOpenRouterModel2,
|
|
6
6
|
grokTargetProfile2
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-ad00h1st.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-r9d2tya0.js";
|
|
19
19
|
|
|
20
20
|
// src/providers/grok-adapter.ts
|
|
21
21
|
init_src2();
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
RetryableError,
|
|
12
12
|
BadRequestError,
|
|
13
13
|
AuthenticationError,
|
|
14
|
+
PaymentRequiredError,
|
|
14
15
|
PermissionDeniedError,
|
|
15
16
|
NotFoundError2,
|
|
16
17
|
RequestTimeoutError,
|
|
@@ -55,7 +56,7 @@ import {
|
|
|
55
56
|
ToolError,
|
|
56
57
|
checkMemorySyncInterval,
|
|
57
58
|
promiseWithResolvers
|
|
58
|
-
} from "./cli-
|
|
59
|
+
} from "./cli-dy754erz.js";
|
|
59
60
|
import {
|
|
60
61
|
require_dist2
|
|
61
62
|
} from "./cli-xf1wn5ns.js";
|
|
@@ -82,7 +83,7 @@ var sleep = (ms, signal) => new Promise((resolve) => {
|
|
|
82
83
|
});
|
|
83
84
|
|
|
84
85
|
// node_modules/@anthropic-ai/sdk/version.mjs
|
|
85
|
-
var VERSION = "1.
|
|
86
|
+
var VERSION = "1.10.0";
|
|
86
87
|
|
|
87
88
|
// node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs
|
|
88
89
|
var isRunningInBrowser = () => {
|
|
@@ -2848,6 +2849,20 @@ var RequestBodyEncodingUnsupportedError = /* @__PURE__ */ (() => {
|
|
|
2848
2849
|
RequestBodyEncodingUnsupportedError._errorName = "RequestBodyEncodingUnsupportedError";
|
|
2849
2850
|
return RequestBodyEncodingUnsupportedError;
|
|
2850
2851
|
})();
|
|
2852
|
+
var LinkedOrganizationBillingUnavailableError = /* @__PURE__ */ (() => {
|
|
2853
|
+
|
|
2854
|
+
class LinkedOrganizationBillingUnavailableError extends PaymentRequiredError {
|
|
2855
|
+
}
|
|
2856
|
+
LinkedOrganizationBillingUnavailableError._errorName = "LinkedOrganizationBillingUnavailableError";
|
|
2857
|
+
return LinkedOrganizationBillingUnavailableError;
|
|
2858
|
+
})();
|
|
2859
|
+
var LinkedOrganizationSpendLimitReachedError = /* @__PURE__ */ (() => {
|
|
2860
|
+
|
|
2861
|
+
class LinkedOrganizationSpendLimitReachedError extends PaymentRequiredError {
|
|
2862
|
+
}
|
|
2863
|
+
LinkedOrganizationSpendLimitReachedError._errorName = "LinkedOrganizationSpendLimitReachedError";
|
|
2864
|
+
return LinkedOrganizationSpendLimitReachedError;
|
|
2865
|
+
})();
|
|
2851
2866
|
var SandboxEgressRestrictedError = /* @__PURE__ */ (() => {
|
|
2852
2867
|
|
|
2853
2868
|
class SandboxEgressRestrictedError extends PermissionDeniedError {
|
|
@@ -2862,6 +2877,13 @@ var RequestBodyTooLargeAfterDecodingError = /* @__PURE__ */ (() => {
|
|
|
2862
2877
|
RequestBodyTooLargeAfterDecodingError._errorName = "RequestBodyTooLargeAfterDecodingError";
|
|
2863
2878
|
return RequestBodyTooLargeAfterDecodingError;
|
|
2864
2879
|
})();
|
|
2880
|
+
var ContractSpendLimitReachedError = /* @__PURE__ */ (() => {
|
|
2881
|
+
|
|
2882
|
+
class ContractSpendLimitReachedError extends RateLimitError {
|
|
2883
|
+
}
|
|
2884
|
+
ContractSpendLimitReachedError._errorName = "ContractSpendLimitReachedError";
|
|
2885
|
+
return ContractSpendLimitReachedError;
|
|
2886
|
+
})();
|
|
2865
2887
|
var EnforcedSpendLimitReachedError = /* @__PURE__ */ (() => {
|
|
2866
2888
|
|
|
2867
2889
|
class EnforcedSpendLimitReachedError extends RateLimitError {
|
|
@@ -3787,6 +3809,7 @@ var _IdleClock_maxIdleMs;
|
|
|
3787
3809
|
var _IdleClock_onExpire;
|
|
3788
3810
|
var _IdleClock_blockers;
|
|
3789
3811
|
var _IdleClock_armPending;
|
|
3812
|
+
var _IdleClock_idleMayBeStale;
|
|
3790
3813
|
var _IdleClock_timer;
|
|
3791
3814
|
var _SessionToolRunner_instances;
|
|
3792
3815
|
var _SessionToolRunner_consumed;
|
|
@@ -3799,6 +3822,7 @@ var _SessionToolRunner_seen;
|
|
|
3799
3822
|
var _SessionToolRunner_answered;
|
|
3800
3823
|
var _SessionToolRunner_confirmationVerdicts;
|
|
3801
3824
|
var _SessionToolRunner_awaitingConfirmation;
|
|
3825
|
+
var _SessionToolRunner_terminatedThreads;
|
|
3802
3826
|
var _SessionToolRunner_results;
|
|
3803
3827
|
var _SessionToolRunner_inFlightCount;
|
|
3804
3828
|
var _SessionToolRunner_sendRetryWindowMs;
|
|
@@ -3813,6 +3837,8 @@ var _SessionToolRunner_reconcile;
|
|
|
3813
3837
|
var _SessionToolRunner_ingestHistory;
|
|
3814
3838
|
var _SessionToolRunner_notePrimaryThread;
|
|
3815
3839
|
var _SessionToolRunner_handleStreamEvent;
|
|
3840
|
+
var _SessionToolRunner_inTerminatedThread;
|
|
3841
|
+
var _SessionToolRunner_releaseTerminatedHolds;
|
|
3816
3842
|
var _SessionToolRunner_routeToolEvent;
|
|
3817
3843
|
var _SessionToolRunner_noteConfirmation;
|
|
3818
3844
|
var _SessionToolRunner_applyVerdict;
|
|
@@ -3833,6 +3859,9 @@ function endsTurn(ev) {
|
|
|
3833
3859
|
return false;
|
|
3834
3860
|
return ev.stop_reason?.type !== "requires_action";
|
|
3835
3861
|
}
|
|
3862
|
+
function isIdleNeutral(ev) {
|
|
3863
|
+
return ev.type === "user.tool_confirmation" || ev.type === "session.thread_status_terminated";
|
|
3864
|
+
}
|
|
3836
3865
|
var IdleClock = /* @__PURE__ */ (() => {
|
|
3837
3866
|
|
|
3838
3867
|
class IdleClock {
|
|
@@ -3841,18 +3870,25 @@ var IdleClock = /* @__PURE__ */ (() => {
|
|
|
3841
3870
|
_IdleClock_onExpire.set(this, undefined);
|
|
3842
3871
|
_IdleClock_blockers.set(this, new Set);
|
|
3843
3872
|
_IdleClock_armPending.set(this, false);
|
|
3873
|
+
_IdleClock_idleMayBeStale.set(this, false);
|
|
3844
3874
|
_IdleClock_timer.set(this, undefined);
|
|
3845
3875
|
__classPrivateFieldSet(this, _IdleClock_maxIdleMs, maxIdleMs, "f");
|
|
3846
3876
|
__classPrivateFieldSet(this, _IdleClock_onExpire, onExpire, "f");
|
|
3847
3877
|
}
|
|
3848
3878
|
noteEvent(ev) {
|
|
3849
|
-
if (ev.type === "
|
|
3879
|
+
if (__classPrivateFieldGet(this, _IdleClock_idleMayBeStale, "f") && ev.type === "session.thread_status_terminated")
|
|
3880
|
+
this.disarm();
|
|
3881
|
+
if (isIdleNeutral(ev))
|
|
3850
3882
|
return;
|
|
3883
|
+
__classPrivateFieldSet(this, _IdleClock_idleMayBeStale, false, "f");
|
|
3851
3884
|
if (endsTurn(ev))
|
|
3852
3885
|
this.arm();
|
|
3853
3886
|
else
|
|
3854
3887
|
this.disarm();
|
|
3855
3888
|
}
|
|
3889
|
+
noteHistoryRead(succeeded) {
|
|
3890
|
+
__classPrivateFieldSet(this, _IdleClock_idleMayBeStale, !succeeded, "f");
|
|
3891
|
+
}
|
|
3856
3892
|
block(toolUseId) {
|
|
3857
3893
|
__classPrivateFieldGet(this, _IdleClock_blockers, "f").add(toolUseId);
|
|
3858
3894
|
if (__classPrivateFieldGet(this, _IdleClock_timer, "f") !== undefined) {
|
|
@@ -3866,6 +3902,11 @@ var IdleClock = /* @__PURE__ */ (() => {
|
|
|
3866
3902
|
if (__classPrivateFieldGet(this, _IdleClock_blockers, "f").size === 0 && __classPrivateFieldGet(this, _IdleClock_armPending, "f"))
|
|
3867
3903
|
this.arm();
|
|
3868
3904
|
}
|
|
3905
|
+
abandon(toolUseId) {
|
|
3906
|
+
if (__classPrivateFieldGet(this, _IdleClock_idleMayBeStale, "f"))
|
|
3907
|
+
this.disarm();
|
|
3908
|
+
this.unblock(toolUseId);
|
|
3909
|
+
}
|
|
3869
3910
|
arm() {
|
|
3870
3911
|
if (__classPrivateFieldGet(this, _IdleClock_maxIdleMs, "f") <= 0)
|
|
3871
3912
|
return;
|
|
@@ -3886,7 +3927,7 @@ var IdleClock = /* @__PURE__ */ (() => {
|
|
|
3886
3927
|
}
|
|
3887
3928
|
}
|
|
3888
3929
|
}
|
|
3889
|
-
_IdleClock_maxIdleMs = new WeakMap, _IdleClock_onExpire = new WeakMap, _IdleClock_blockers = new WeakMap, _IdleClock_armPending = new WeakMap, _IdleClock_timer = new WeakMap;
|
|
3930
|
+
_IdleClock_maxIdleMs = new WeakMap, _IdleClock_onExpire = new WeakMap, _IdleClock_blockers = new WeakMap, _IdleClock_armPending = new WeakMap, _IdleClock_idleMayBeStale = new WeakMap, _IdleClock_timer = new WeakMap;
|
|
3890
3931
|
return IdleClock;
|
|
3891
3932
|
})();
|
|
3892
3933
|
var SessionToolRunner = /* @__PURE__ */ (() => {
|
|
@@ -3904,6 +3945,7 @@ var SessionToolRunner = /* @__PURE__ */ (() => {
|
|
|
3904
3945
|
_SessionToolRunner_answered.set(this, new Set);
|
|
3905
3946
|
_SessionToolRunner_confirmationVerdicts.set(this, new Map);
|
|
3906
3947
|
_SessionToolRunner_awaitingConfirmation.set(this, new Map);
|
|
3948
|
+
_SessionToolRunner_terminatedThreads.set(this, new Set);
|
|
3907
3949
|
_SessionToolRunner_results.set(this, new AsyncQueue);
|
|
3908
3950
|
_SessionToolRunner_inFlightCount.set(this, 0);
|
|
3909
3951
|
_SessionToolRunner_sendRetryWindowMs.set(this, SEND_RETRY_WINDOW_MS);
|
|
@@ -3939,7 +3981,7 @@ var SessionToolRunner = /* @__PURE__ */ (() => {
|
|
|
3939
3981
|
_setSendRetryWindow(ms) {
|
|
3940
3982
|
__classPrivateFieldSet(this, _SessionToolRunner_sendRetryWindowMs, ms, "f");
|
|
3941
3983
|
}
|
|
3942
|
-
async* [(_SessionToolRunner_consumed = new WeakMap, _SessionToolRunner_controller = new WeakMap, _SessionToolRunner_detachExternal = new WeakMap, _SessionToolRunner_requestOpts = new WeakMap, _SessionToolRunner_toolByName = new WeakMap, _SessionToolRunner_logger = new WeakMap, _SessionToolRunner_seen = new WeakMap, _SessionToolRunner_answered = new WeakMap, _SessionToolRunner_confirmationVerdicts = new WeakMap, _SessionToolRunner_awaitingConfirmation = new WeakMap, _SessionToolRunner_results = new WeakMap, _SessionToolRunner_inFlightCount = new WeakMap, _SessionToolRunner_sendRetryWindowMs = new WeakMap, _SessionToolRunner_onIdle = new WeakMap, _SessionToolRunner_idleClock = new WeakMap, _SessionToolRunner_otelContext = new WeakMap, _SessionToolRunner_primaryThreadId = new WeakMap, _SessionToolRunner_historyRead = new WeakMap, _SessionToolRunner_instances = new WeakSet, Symbol.asyncIterator)]() {
|
|
3984
|
+
async* [(_SessionToolRunner_consumed = new WeakMap, _SessionToolRunner_controller = new WeakMap, _SessionToolRunner_detachExternal = new WeakMap, _SessionToolRunner_requestOpts = new WeakMap, _SessionToolRunner_toolByName = new WeakMap, _SessionToolRunner_logger = new WeakMap, _SessionToolRunner_seen = new WeakMap, _SessionToolRunner_answered = new WeakMap, _SessionToolRunner_confirmationVerdicts = new WeakMap, _SessionToolRunner_awaitingConfirmation = new WeakMap, _SessionToolRunner_terminatedThreads = new WeakMap, _SessionToolRunner_results = new WeakMap, _SessionToolRunner_inFlightCount = new WeakMap, _SessionToolRunner_sendRetryWindowMs = new WeakMap, _SessionToolRunner_onIdle = new WeakMap, _SessionToolRunner_idleClock = new WeakMap, _SessionToolRunner_otelContext = new WeakMap, _SessionToolRunner_primaryThreadId = new WeakMap, _SessionToolRunner_historyRead = new WeakMap, _SessionToolRunner_instances = new WeakSet, Symbol.asyncIterator)]() {
|
|
3943
3985
|
if (__classPrivateFieldGet(this, _SessionToolRunner_consumed, "f")) {
|
|
3944
3986
|
throw new AnthropicError("Cannot iterate over a consumed SessionToolRunner");
|
|
3945
3987
|
}
|
|
@@ -4030,7 +4072,7 @@ var SessionToolRunner = /* @__PURE__ */ (() => {
|
|
|
4030
4072
|
try {
|
|
4031
4073
|
for await (const ev of this.client.beta.sessions.events.list(this.sessionId, { limit: 1000 }, __classPrivateFieldGet(this, _SessionToolRunner_instances, "m", _SessionToolRunner_requestOptions).call(this))) {
|
|
4032
4074
|
__classPrivateFieldGet(this, _SessionToolRunner_instances, "m", _SessionToolRunner_ingestHistory).call(this, ev, pending);
|
|
4033
|
-
if (ev
|
|
4075
|
+
if (!isIdleNeutral(ev))
|
|
4034
4076
|
lastEndedTurn = endsTurn(ev);
|
|
4035
4077
|
}
|
|
4036
4078
|
} catch (e) {
|
|
@@ -4038,9 +4080,13 @@ var SessionToolRunner = /* @__PURE__ */ (() => {
|
|
|
4038
4080
|
__classPrivateFieldGet(this, _SessionToolRunner_logger, "f").warn("reconcile list failed", { error: String(e) });
|
|
4039
4081
|
for (const ev of pending)
|
|
4040
4082
|
__classPrivateFieldGet(this, _SessionToolRunner_seen, "f").delete(ev.id);
|
|
4083
|
+
__classPrivateFieldGet(this, _SessionToolRunner_idleClock, "f").noteHistoryRead(false);
|
|
4084
|
+
__classPrivateFieldGet(this, _SessionToolRunner_instances, "m", _SessionToolRunner_releaseTerminatedHolds).call(this);
|
|
4041
4085
|
return;
|
|
4042
4086
|
}
|
|
4043
4087
|
__classPrivateFieldSet(this, _SessionToolRunner_historyRead, true, "f");
|
|
4088
|
+
__classPrivateFieldGet(this, _SessionToolRunner_idleClock, "f").noteHistoryRead(true);
|
|
4089
|
+
__classPrivateFieldGet(this, _SessionToolRunner_instances, "m", _SessionToolRunner_releaseTerminatedHolds).call(this);
|
|
4044
4090
|
const unanswered = pending.filter((ev) => !__classPrivateFieldGet(this, _SessionToolRunner_answered, "f").has(ev.id));
|
|
4045
4091
|
__classPrivateFieldGet(this, _SessionToolRunner_idleClock, "f").disarm();
|
|
4046
4092
|
for (const ev of unanswered)
|
|
@@ -4050,7 +4096,7 @@ var SessionToolRunner = /* @__PURE__ */ (() => {
|
|
|
4050
4096
|
if (verdict !== undefined)
|
|
4051
4097
|
await __classPrivateFieldGet(this, _SessionToolRunner_instances, "m", _SessionToolRunner_applyVerdict).call(this, held, verdict);
|
|
4052
4098
|
}
|
|
4053
|
-
const outstanding = unanswered.filter((ev) => !__classPrivateFieldGet(this, _SessionToolRunner_answered, "f").has(ev.id) && !__classPrivateFieldGet(this, _SessionToolRunner_awaitingConfirmation, "f").has(ev.id));
|
|
4099
|
+
const outstanding = unanswered.filter((ev) => !__classPrivateFieldGet(this, _SessionToolRunner_answered, "f").has(ev.id) && !__classPrivateFieldGet(this, _SessionToolRunner_instances, "m", _SessionToolRunner_inTerminatedThread).call(this, ev) && !__classPrivateFieldGet(this, _SessionToolRunner_awaitingConfirmation, "f").has(ev.id));
|
|
4054
4100
|
if (lastEndedTurn && outstanding.length === 0)
|
|
4055
4101
|
__classPrivateFieldGet(this, _SessionToolRunner_idleClock, "f").arm();
|
|
4056
4102
|
else
|
|
@@ -4068,6 +4114,8 @@ var SessionToolRunner = /* @__PURE__ */ (() => {
|
|
|
4068
4114
|
} else if (ev.type === "user.tool_confirmation") {
|
|
4069
4115
|
if (!__classPrivateFieldGet(this, _SessionToolRunner_answered, "f").has(ev.tool_use_id))
|
|
4070
4116
|
__classPrivateFieldGet(this, _SessionToolRunner_confirmationVerdicts, "f").set(ev.tool_use_id, ev.result);
|
|
4117
|
+
} else if (ev.type === "session.thread_status_terminated") {
|
|
4118
|
+
__classPrivateFieldGet(this, _SessionToolRunner_terminatedThreads, "f").add(ev.session_thread_id);
|
|
4071
4119
|
}
|
|
4072
4120
|
}, _SessionToolRunner_notePrimaryThread = function _SessionToolRunner_notePrimaryThread(ev) {
|
|
4073
4121
|
if (!this.client._tracer || __classPrivateFieldGet(this, _SessionToolRunner_primaryThreadId, "f") !== undefined)
|
|
@@ -4100,6 +4148,10 @@ var SessionToolRunner = /* @__PURE__ */ (() => {
|
|
|
4100
4148
|
case "user.custom_tool_result":
|
|
4101
4149
|
__classPrivateFieldGet(this, _SessionToolRunner_answered, "f").add(ev.custom_tool_use_id);
|
|
4102
4150
|
return false;
|
|
4151
|
+
case "session.thread_status_terminated":
|
|
4152
|
+
__classPrivateFieldGet(this, _SessionToolRunner_terminatedThreads, "f").add(ev.session_thread_id);
|
|
4153
|
+
__classPrivateFieldGet(this, _SessionToolRunner_instances, "m", _SessionToolRunner_releaseTerminatedHolds).call(this);
|
|
4154
|
+
return false;
|
|
4103
4155
|
case "session.status_terminated":
|
|
4104
4156
|
case "session.deleted":
|
|
4105
4157
|
__classPrivateFieldGet(this, _SessionToolRunner_logger, "f").info("session terminated", {
|
|
@@ -4111,7 +4163,33 @@ var SessionToolRunner = /* @__PURE__ */ (() => {
|
|
|
4111
4163
|
default:
|
|
4112
4164
|
return false;
|
|
4113
4165
|
}
|
|
4166
|
+
}, _SessionToolRunner_inTerminatedThread = function _SessionToolRunner_inTerminatedThread(ev) {
|
|
4167
|
+
return !!ev.session_thread_id && __classPrivateFieldGet(this, _SessionToolRunner_terminatedThreads, "f").has(ev.session_thread_id);
|
|
4168
|
+
}, _SessionToolRunner_releaseTerminatedHolds = function _SessionToolRunner_releaseTerminatedHolds() {
|
|
4169
|
+
for (const held of __classPrivateFieldGet(this, _SessionToolRunner_awaitingConfirmation, "f").values()) {
|
|
4170
|
+
if (!__classPrivateFieldGet(this, _SessionToolRunner_instances, "m", _SessionToolRunner_inTerminatedThread).call(this, held))
|
|
4171
|
+
continue;
|
|
4172
|
+
__classPrivateFieldGet(this, _SessionToolRunner_logger, "f").info("session thread terminated; not executing", {
|
|
4173
|
+
component: "session-tool-runner",
|
|
4174
|
+
session_id: this.sessionId,
|
|
4175
|
+
session_thread_id: held.session_thread_id,
|
|
4176
|
+
tool: held.name,
|
|
4177
|
+
tool_use_id: held.id
|
|
4178
|
+
});
|
|
4179
|
+
__classPrivateFieldGet(this, _SessionToolRunner_awaitingConfirmation, "f").delete(held.id);
|
|
4180
|
+
__classPrivateFieldGet(this, _SessionToolRunner_idleClock, "f").abandon(held.id);
|
|
4181
|
+
}
|
|
4114
4182
|
}, _SessionToolRunner_routeToolEvent = async function _SessionToolRunner_routeToolEvent(ev) {
|
|
4183
|
+
if (__classPrivateFieldGet(this, _SessionToolRunner_instances, "m", _SessionToolRunner_inTerminatedThread).call(this, ev)) {
|
|
4184
|
+
__classPrivateFieldGet(this, _SessionToolRunner_logger, "f").debug("session thread terminated; not executing", {
|
|
4185
|
+
component: "session-tool-runner",
|
|
4186
|
+
session_id: this.sessionId,
|
|
4187
|
+
session_thread_id: ev.session_thread_id,
|
|
4188
|
+
tool: ev.name,
|
|
4189
|
+
tool_use_id: ev.id
|
|
4190
|
+
});
|
|
4191
|
+
return;
|
|
4192
|
+
}
|
|
4115
4193
|
const permission = ev.evaluated_permission;
|
|
4116
4194
|
const verdict = permission === "deny" ? "deny" : __classPrivateFieldGet(this, _SessionToolRunner_confirmationVerdicts, "f").get(ev.id);
|
|
4117
4195
|
if (verdict === undefined) {
|
|
@@ -4451,7 +4529,7 @@ var EnvironmentWorker = /* @__PURE__ */ (() => {
|
|
|
4451
4529
|
const ctrl = new AbortController;
|
|
4452
4530
|
const detachExternal = linkAbort(externalSignal, ctrl);
|
|
4453
4531
|
const lease = new Lease(ctrl);
|
|
4454
|
-
const agentToolset = await import("./node-
|
|
4532
|
+
const agentToolset = await import("./node-jkdd5w7m.js");
|
|
4455
4533
|
let leaseTtlMs;
|
|
4456
4534
|
let runner;
|
|
4457
4535
|
const heartbeatPromise = heartbeatLoop(sessionClient, work, lease, log, this.requestOptions, (ttlMs) => {
|
|
@@ -4471,6 +4549,13 @@ var EnvironmentWorker = /* @__PURE__ */ (() => {
|
|
|
4471
4549
|
return;
|
|
4472
4550
|
}
|
|
4473
4551
|
const session = await sessionClient.beta.sessions.retrieve(sessionId);
|
|
4552
|
+
if (session.status === "terminated") {
|
|
4553
|
+
log.info("skipping the work item of a terminated session", {
|
|
4554
|
+
session_id: sessionId,
|
|
4555
|
+
work_id: work.id
|
|
4556
|
+
});
|
|
4557
|
+
return;
|
|
4558
|
+
}
|
|
4474
4559
|
if (sessionsToken === null && this.memorySyncIntervalMs !== null && hasMemoryStore(session)) {
|
|
4475
4560
|
throw new agentToolset.SessionMemoryError(`cannot mount the session's memories: the work item carried no sessions token (work_id=${work.id}, session_id=${sessionId}); the memory endpoints reject the environment key, so the poller must issue a per-item \`secret\` carrying \`sessions_token\`, or set \`memorySyncIntervalMs: null\` to run without memory`);
|
|
4476
4561
|
}
|
|
@@ -14649,6 +14734,27 @@ var UserProfileNotFoundError = /* @__PURE__ */ (() => {
|
|
|
14649
14734
|
UserProfileNotFoundError._errorName = "UserProfileNotFoundError";
|
|
14650
14735
|
return UserProfileNotFoundError;
|
|
14651
14736
|
})();
|
|
14737
|
+
var UserProfileRequiredError = /* @__PURE__ */ (() => {
|
|
14738
|
+
|
|
14739
|
+
class UserProfileRequiredError extends BadRequestError {
|
|
14740
|
+
}
|
|
14741
|
+
UserProfileRequiredError._errorName = "UserProfileRequiredError";
|
|
14742
|
+
return UserProfileRequiredError;
|
|
14743
|
+
})();
|
|
14744
|
+
var UserProfileBillingNotAuthorizedError = /* @__PURE__ */ (() => {
|
|
14745
|
+
|
|
14746
|
+
class UserProfileBillingNotAuthorizedError extends PermissionDeniedError {
|
|
14747
|
+
}
|
|
14748
|
+
UserProfileBillingNotAuthorizedError._errorName = "UserProfileBillingNotAuthorizedError";
|
|
14749
|
+
return UserProfileBillingNotAuthorizedError;
|
|
14750
|
+
})();
|
|
14751
|
+
var UserProfileNotBillableError = /* @__PURE__ */ (() => {
|
|
14752
|
+
|
|
14753
|
+
class UserProfileNotBillableError extends PermissionDeniedError {
|
|
14754
|
+
}
|
|
14755
|
+
UserProfileNotBillableError._errorName = "UserProfileNotBillableError";
|
|
14756
|
+
return UserProfileNotBillableError;
|
|
14757
|
+
})();
|
|
14652
14758
|
var UserProfiles2 = /* @__PURE__ */ (() => {
|
|
14653
14759
|
|
|
14654
14760
|
class UserProfiles extends APIResource {
|
|
@@ -14731,6 +14837,9 @@ var UserProfiles2 = /* @__PURE__ */ (() => {
|
|
|
14731
14837
|
}
|
|
14732
14838
|
}
|
|
14733
14839
|
UserProfiles.UserProfileNotFoundError = UserProfileNotFoundError;
|
|
14840
|
+
UserProfiles.UserProfileRequiredError = UserProfileRequiredError;
|
|
14841
|
+
UserProfiles.UserProfileBillingNotAuthorizedError = UserProfileBillingNotAuthorizedError;
|
|
14842
|
+
UserProfiles.UserProfileNotBillableError = UserProfileNotBillableError;
|
|
14734
14843
|
UserProfiles.ActionURLs = ActionURLs2;
|
|
14735
14844
|
return UserProfiles;
|
|
14736
14845
|
})();
|
|
@@ -14788,9 +14897,12 @@ var ERROR_CODE_CLASSES = /* @__PURE__ */ new Map([
|
|
|
14788
14897
|
["400 tool_reference_unresolved", ToolReferenceUnresolvedError],
|
|
14789
14898
|
["400 unsupported_charset", BetaUnsupportedCharsetError],
|
|
14790
14899
|
["400 user_profile_not_found", UserProfileNotFoundError],
|
|
14900
|
+
["400 user_profile_required", UserProfileRequiredError],
|
|
14791
14901
|
["400 workspace_api_key_limit_exceeded", WorkspaceAPIKeyLimitExceededError],
|
|
14792
14902
|
["400 workspace_member_limit_exceeded", WorkspaceMemberLimitExceededError],
|
|
14793
14903
|
["400 workspace_policy_violation", WorkspacePolicyViolationError],
|
|
14904
|
+
["402 linked_organization_billing_unavailable", LinkedOrganizationBillingUnavailableError],
|
|
14905
|
+
["402 linked_organization_spend_limit_reached", LinkedOrganizationSpendLimitReachedError],
|
|
14794
14906
|
["403 api_key_scope_missing", BetaAPIKeyScopeMissingError],
|
|
14795
14907
|
["403 cannot_sign_out_managed_member", BetaCannotSignOutManagedMemberError],
|
|
14796
14908
|
["403 cannot_sign_out_membership_admin", BetaCannotSignOutMembershipAdminError],
|
|
@@ -14803,6 +14915,8 @@ var ERROR_CODE_CLASSES = /* @__PURE__ */ new Map([
|
|
|
14803
14915
|
["403 organization_level_scoped_api_key_required", BetaOrganizationLevelScopedAPIKeyRequiredError],
|
|
14804
14916
|
["403 sandbox_egress_restricted", SandboxEgressRestrictedError],
|
|
14805
14917
|
["403 spend_limits_admin_api_writes_not_enabled", BetaSpendLimitsAdminAPIWritesNotEnabledError],
|
|
14918
|
+
["403 user_profile_billing_not_authorized", UserProfileBillingNotAuthorizedError],
|
|
14919
|
+
["403 user_profile_not_billable", UserProfileNotBillableError],
|
|
14806
14920
|
["404 environment_not_found", BetaEnvironmentNotFoundError],
|
|
14807
14921
|
["404 file_expired", FileExpiredError],
|
|
14808
14922
|
["404 rbac_role_not_found", RBACRoleNotFoundError],
|
|
@@ -14817,6 +14931,7 @@ var ERROR_CODE_CLASSES = /* @__PURE__ */ new Map([
|
|
|
14817
14931
|
["409 slack_channel_set_up_settings_conflict", BetaSlackChannelSetUpSettingsConflictError],
|
|
14818
14932
|
["412 heartbeat_precondition_failed", BetaHeartbeatPreconditionFailedError],
|
|
14819
14933
|
["413 request_body_too_large_after_decoding", RequestBodyTooLargeAfterDecodingError],
|
|
14934
|
+
["429 contract_spend_limit_reached", ContractSpendLimitReachedError],
|
|
14820
14935
|
["429 enforced_spend_limit_reached", EnforcedSpendLimitReachedError],
|
|
14821
14936
|
["429 ramp_limit_exceeded", RampLimitExceededError],
|
|
14822
14937
|
["503 cmek_context_unavailable", CMEKContextUnavailableError],
|
|
@@ -16442,6 +16557,7 @@ new Anthropic({ apiKey, dangerouslyAllowBrowser: true });
|
|
|
16442
16557
|
BaseAnthropic.InternalServerError = InternalServerError;
|
|
16443
16558
|
BaseAnthropic.NotImplementedError = NotImplementedError2;
|
|
16444
16559
|
BaseAnthropic.GatewayTimeoutError = GatewayTimeoutError;
|
|
16560
|
+
BaseAnthropic.PaymentRequiredError = PaymentRequiredError;
|
|
16445
16561
|
BaseAnthropic.ContentTooLargeError = ContentTooLargeError;
|
|
16446
16562
|
BaseAnthropic.PermissionDeniedError = PermissionDeniedError;
|
|
16447
16563
|
BaseAnthropic.PreconditionFailedError = PreconditionFailedError;
|
|
@@ -16494,6 +16610,9 @@ var Anthropic = /* @__PURE__ */ (() => {
|
|
|
16494
16610
|
Anthropic.SkillReadBlockedUndecryptableError = SkillReadBlockedUndecryptableError;
|
|
16495
16611
|
Anthropic.UserProfiles = UserProfiles2;
|
|
16496
16612
|
Anthropic.UserProfileNotFoundError = UserProfileNotFoundError;
|
|
16613
|
+
Anthropic.UserProfileRequiredError = UserProfileRequiredError;
|
|
16614
|
+
Anthropic.UserProfileBillingNotAuthorizedError = UserProfileBillingNotAuthorizedError;
|
|
16615
|
+
Anthropic.UserProfileNotBillableError = UserProfileNotBillableError;
|
|
16497
16616
|
Anthropic.Organization = Organization2;
|
|
16498
16617
|
Anthropic.OrgMemberLimitExceededError = OrgMemberLimitExceededError;
|
|
16499
16618
|
Anthropic.RBACRoleNotFoundError = RBACRoleNotFoundError;
|
|
@@ -16510,8 +16629,11 @@ var Anthropic = /* @__PURE__ */ (() => {
|
|
|
16510
16629
|
Anthropic.ParentOrganizationRequiredError = ParentOrganizationRequiredError;
|
|
16511
16630
|
Anthropic.RequestBodyEncodingInvalidError = RequestBodyEncodingInvalidError;
|
|
16512
16631
|
Anthropic.RequestBodyEncodingUnsupportedError = RequestBodyEncodingUnsupportedError;
|
|
16632
|
+
Anthropic.LinkedOrganizationBillingUnavailableError = LinkedOrganizationBillingUnavailableError;
|
|
16633
|
+
Anthropic.LinkedOrganizationSpendLimitReachedError = LinkedOrganizationSpendLimitReachedError;
|
|
16513
16634
|
Anthropic.SandboxEgressRestrictedError = SandboxEgressRestrictedError;
|
|
16514
16635
|
Anthropic.RequestBodyTooLargeAfterDecodingError = RequestBodyTooLargeAfterDecodingError;
|
|
16636
|
+
Anthropic.ContractSpendLimitReachedError = ContractSpendLimitReachedError;
|
|
16515
16637
|
Anthropic.EnforcedSpendLimitReachedError = EnforcedSpendLimitReachedError;
|
|
16516
16638
|
Anthropic.RampLimitExceededError = RampLimitExceededError;
|
|
16517
16639
|
Anthropic.CMEKContextUnavailableError = CMEKContextUnavailableError;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reasoningCapability,
|
|
3
3
|
applyReasoningEffort
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-wvgg7r4j.js";
|
|
5
5
|
import {
|
|
6
6
|
CONTEXT_FORMULA,
|
|
7
7
|
getContextWindowSize,
|
|
8
8
|
clampContextPercent,
|
|
9
9
|
init_context_window
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-gc6b94tj.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveSlashSkillPrompt
|
|
13
13
|
} from "./cli-5j88qqa8.js";
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
DEFAULT_MODEL_TIER_MAP,
|
|
31
31
|
init_types5
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-tc165vrb.js";
|
|
33
33
|
import {
|
|
34
34
|
scrubSecrets,
|
|
35
35
|
registerVolatileSecret,
|
|
36
36
|
init_secret_scrubber
|
|
37
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-r9d2tya0.js";
|
|
38
38
|
|
|
39
39
|
// src/providers/dsh-adapter.ts
|
|
40
40
|
init_types5();
|
|
@@ -72,10 +72,10 @@ init_multi_runtime2();
|
|
|
72
72
|
init_openrouter_base_url();
|
|
73
73
|
init_process_group();
|
|
74
74
|
init_secret_scrubber();
|
|
75
|
-
var DSH_PACKAGE = "@deepseek-ai/dsh@0.2.2-rc.
|
|
75
|
+
var DSH_PACKAGE = "@deepseek-ai/dsh@0.2.2-rc.5";
|
|
76
76
|
var STDERR_HOLD_MAX = 64 * 1024;
|
|
77
77
|
var PEM_PRIVATE_BEGIN_RE = /^-----BEGIN [A-Z0-9 ]{0,32}PRIVATE KEY/;
|
|
78
|
-
function
|
|
78
|
+
function stderrFlushLength2(pending) {
|
|
79
79
|
if (pending.length > STDERR_HOLD_MAX)
|
|
80
80
|
return pending.length;
|
|
81
81
|
let cut = pending.lastIndexOf(`
|
|
@@ -252,7 +252,7 @@ class DshSession {
|
|
|
252
252
|
let pending = "";
|
|
253
253
|
for await (const chunk of this.proc.stderr) {
|
|
254
254
|
pending += decoder.decode(chunk, { stream: true });
|
|
255
|
-
const cut =
|
|
255
|
+
const cut = stderrFlushLength2(pending);
|
|
256
256
|
if (cut === 0)
|
|
257
257
|
continue;
|
|
258
258
|
const text = pending.slice(0, cut);
|
|
@@ -445,4 +445,4 @@ class DshAdapter2 {
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
export { checkDshCredentials2, DshAdapter2 };
|
|
448
|
+
export { stderrFlushLength2, checkDshCredentials2, DshAdapter2 };
|
|
@@ -148,7 +148,7 @@ import {
|
|
|
148
148
|
Instantiate,
|
|
149
149
|
Evaluate2,
|
|
150
150
|
Priority
|
|
151
|
-
} from "./cli-
|
|
151
|
+
} from "./cli-8vbxjzk0.js";
|
|
152
152
|
import {
|
|
153
153
|
require_index_min
|
|
154
154
|
} from "./cli-t9wbrgm4.js";
|
|
@@ -198,7 +198,7 @@ import {
|
|
|
198
198
|
streamSimple2,
|
|
199
199
|
completeSimple,
|
|
200
200
|
init_compat
|
|
201
|
-
} from "./cli-
|
|
201
|
+
} from "./cli-91amj3md.js";
|
|
202
202
|
import {
|
|
203
203
|
uuidv7
|
|
204
204
|
} from "./cli-4se3x6qm.js";
|
|
@@ -59482,7 +59482,7 @@ function loadAllHighlightLanguages() {
|
|
|
59482
59482
|
if (!allLanguagesPromise) {
|
|
59483
59483
|
allLanguagesPromise = new Promise((resolve) => {
|
|
59484
59484
|
setImmediate(() => {
|
|
59485
|
-
import("./index-
|
|
59485
|
+
import("./index-5kx15d19.js").then((m)=>__toESM(m.default,1)).then(() => resolve(), () => {
|
|
59486
59486
|
resolve();
|
|
59487
59487
|
});
|
|
59488
59488
|
});
|
|
@@ -65897,7 +65897,7 @@ function getCreateJiti() {
|
|
|
65897
65897
|
}
|
|
65898
65898
|
var virtualModulesPromise;
|
|
65899
65899
|
function getVirtualModules() {
|
|
65900
|
-
virtualModulesPromise ??= import("./virtual-modules-
|
|
65900
|
+
virtualModulesPromise ??= import("./virtual-modules-22k51txd.js").then((module) => module.VIRTUAL_MODULES);
|
|
65901
65901
|
return virtualModulesPromise;
|
|
65902
65902
|
}
|
|
65903
65903
|
var _aliases = null;
|
|
@@ -90060,7 +90060,7 @@ function parseCodemodeSource(input) {
|
|
|
90060
90060
|
}
|
|
90061
90061
|
|
|
90062
90062
|
// node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/execute.lazy.js
|
|
90063
|
-
var loadCodemodeExecutor = () => import("./execute-
|
|
90063
|
+
var loadCodemodeExecutor = () => import("./execute-nztd0af0.js");
|
|
90064
90064
|
|
|
90065
90065
|
// node_modules/@earendil-works/pi-coding-agent/dist/extensions/codemode/renderer.js
|
|
90066
90066
|
var CODE_PREVIEW_LINES = 10;
|
|
@@ -91205,7 +91205,7 @@ function createMcpResourceToolDefinitions(options) {
|
|
|
91205
91205
|
}
|
|
91206
91206
|
|
|
91207
91207
|
// node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/runtime.lazy.js
|
|
91208
|
-
var loadMcpRuntime = () => import("./runtime-
|
|
91208
|
+
var loadMcpRuntime = () => import("./runtime-y28jhhnf.js");
|
|
91209
91209
|
|
|
91210
91210
|
// node_modules/@earendil-works/pi-coding-agent/dist/utils/clipboard.js
|
|
91211
91211
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
@@ -96824,7 +96824,7 @@ var builtInExtensions = [
|
|
|
96824
96824
|
];
|
|
96825
96825
|
|
|
96826
96826
|
// node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/cli.lazy.js
|
|
96827
|
-
var loadMcpCommand = () => import("./cli-
|
|
96827
|
+
var loadMcpCommand = () => import("./cli-73rmgm45.js");
|
|
96828
96828
|
|
|
96829
96829
|
// node_modules/@earendil-works/pi-coding-agent/dist/migrations.js
|
|
96830
96830
|
import { existsSync as existsSync22, mkdirSync as mkdirSync11, readdirSync as readdirSync10, readFileSync as readFileSync17, renameSync as renameSync2, rmSync as rmSync4, writeFileSync as writeFileSync11 } from "fs";
|
|
@@ -99414,7 +99414,7 @@ function playEasterEgg3d(tui, egg) {
|
|
|
99414
99414
|
if (tui.hasOverlay())
|
|
99415
99415
|
return true;
|
|
99416
99416
|
const screen = tui.getScreenLines();
|
|
99417
|
-
import("./easter-egg-3d-
|
|
99417
|
+
import("./easter-egg-3d-sg21j15g.js").then((module) => module.playEasterEgg3d(tui, screen, egg), () => {});
|
|
99418
99418
|
return true;
|
|
99419
99419
|
}
|
|
99420
99420
|
function playPiLogo3d(tui, column, row) {
|
|
@@ -851,6 +851,43 @@ This task is in the use case with key \`{{key}}\`. \`create-schedule\` and \`cre
|
|
|
851
851
|
],
|
|
852
852
|
category: "task_lifecycle"
|
|
853
853
|
});
|
|
854
|
+
registerTemplate({
|
|
855
|
+
eventType: "task.followup.session_turns",
|
|
856
|
+
header: "",
|
|
857
|
+
defaultBody: `
|
|
858
|
+
---
|
|
859
|
+
## Prior Conversation Context
|
|
860
|
+
|
|
861
|
+
This message continues a Sessions conversation with you. Below are the session's original ask and your last {{turn_count}} turns in it, oldest first: what you were asked and what you answered. The new message may refer to any of them.
|
|
862
|
+
|
|
863
|
+
{{reply_target}}{{root}}{{elided}}{{turns}}
|
|
864
|
+
If this block does not tell you what the new message refers to, get more context before you act. Never guess the referent.
|
|
865
|
+
- \`get-task-details\` with any task id above: the original ask, a skipped turn, or a turn whose text was cut.
|
|
866
|
+
- The \`task-context-gathering\` script returns a task plus the memories related to it: \`script-run\` with \`name: "task-context-gathering"\`, \`scope: "global"\` and \`args: { "taskId": "<id>", "queries": ["<topic>"] }\`.
|
|
867
|
+
|
|
868
|
+
---
|
|
869
|
+
`,
|
|
870
|
+
variables: [
|
|
871
|
+
{ name: "turn_count", description: "Lead turns shown in `turns`" },
|
|
872
|
+
{
|
|
873
|
+
name: "reply_target",
|
|
874
|
+
description: "A paragraph naming the task the message was sent on when that is not a Lead turn (a delegated task), else empty"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
name: "root",
|
|
878
|
+
description: "The session's original ask: '### Original ask (session root) (task `<id>`, <status>)', its ask, answer and artifacts. Empty when the root is the only turn or unknown"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
name: "elided",
|
|
882
|
+
description: "'### … N earlier turns skipped' with the skipped turn task ids, newest first, else empty"
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
name: "turns",
|
|
886
|
+
description: "One block per Lead turn, oldest first: '### Turn N (task `<id>`, <status>)', the ask, the answer and its artifacts"
|
|
887
|
+
}
|
|
888
|
+
],
|
|
889
|
+
category: "task_lifecycle"
|
|
890
|
+
});
|
|
854
891
|
registerTemplate({
|
|
855
892
|
eventType: "task.thread.participants",
|
|
856
893
|
header: "",
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
getActivePricingRow2,
|
|
17
17
|
insertPricingRow2,
|
|
18
18
|
init_db4
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-krk8y8c7.js";
|
|
20
20
|
import {
|
|
21
21
|
scrubSecrets,
|
|
22
22
|
init_secret_scrubber
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-r9d2tya0.js";
|
|
24
24
|
import {
|
|
25
25
|
__esm
|
|
26
26
|
} from "./cli-242037k3.js";
|