@desplega.ai/agent-swarm 2.13.4 → 2.13.5
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-tbt61zkm.js +17 -0
- package/dist/{acp-targets-zrk9k0n7.js → acp-targets-w8dbs4nr.js} +7 -7
- package/dist/{actions-acqqj9jn.js → actions-8zrcbjrx.js} +26 -26
- package/dist/{agent-fs-provision-zmaykqnd.js → agent-fs-provision-cbt2ttds.js} +4 -4
- package/dist/{amp-adapter-a7ts8tmw.js → amp-adapter-8x6zp8w4.js} +2 -2
- package/dist/{anthropic-messages-88b7s3n9.js → anthropic-messages-vdd1zmha.js} +10 -10
- package/dist/{app-tmwa442h.js → app-zfa9dwjw.js} +6 -6
- package/dist/{approval-notifications-6psaaaye.js → approval-notifications-rv92zmza.js} +7 -7
- package/dist/{assistant-564v6emv.js → assistant-q7s7rm1q.js} +24 -24
- package/dist/{boot-args-schema-n099e0f2.js → boot-args-schema-g27kpzr1.js} +1 -1
- package/dist/{boot-reembed-epvg4fp9.js → boot-reembed-1mjs52nt.js} +1 -1
- package/dist/{boot-reembed-chx66qfk.js → boot-reembed-m62dpdkg.js} +1 -1
- package/dist/{boot-scrub-sweep-dhkfp0a7.js → boot-scrub-sweep-ss1vcamw.js} +2 -2
- package/dist/{boot-seeds-m74fc07r.js → boot-seeds-hwnvgbb3.js} +4 -4
- package/dist/{boxd-451q55ys.js → boxd-y0szhp0g.js} +1 -1
- package/dist/{claude-adapter-hw63yj3j.js → claude-adapter-0rjmbhjk.js} +7 -7
- package/dist/{claude-managed-adapter-z5s7fx6p.js → claude-managed-adapter-6k032agg.js} +3 -3
- package/dist/{claude-managed-setup-wee1762m.js → claude-managed-setup-6czvve8q.js} +4 -4
- package/dist/{claude-sdk-session-cktyqkpk.js → claude-sdk-session-pr0znb81.js} +12667 -11881
- package/dist/{cli-0fgvnb0x.js → cli-0qt3epg4.js} +3 -3
- package/dist/{cli-ka48vpev.js → cli-19d6v8er.js} +3 -3
- package/dist/{cli-zexwhj3f.js → cli-1jq2em7b.js} +3 -3
- package/dist/{cli-5rgm8p39.js → cli-2wzkvfgm.js} +2 -2
- package/dist/{cli-x2cem5vy.js → cli-34fygf87.js} +2 -2
- package/dist/{cli-tsc3pdfd.js → cli-3860pmrq.js} +3 -3
- package/dist/{cli-hhtbandk.js → cli-3vw6dd4g.js} +2 -2
- package/dist/{cli-qzz6tz8s.js → cli-4gaf3tx5.js} +1 -1
- package/dist/{cli-9ah37a8a.js → cli-55h8m1x3.js} +8 -5
- package/dist/{cli-7gbff32z.js → cli-5n9w2xzx.js} +1 -1
- package/dist/{cli-p436yrzp.js → cli-5tq15aa7.js} +1 -1
- package/dist/{cli-jyhbvdga.js → cli-5web09sb.js} +2 -2
- package/dist/{cli-3zrwrnz7.js → cli-69zzpjgh.js} +1 -1
- package/dist/{cli-7g3fg4gf.js → cli-6msnpj1z.js} +6 -6
- package/dist/{cli-azj9t1f9.js → cli-7r9tvk8v.js} +41 -3
- package/dist/{cli-4fpa0zns.js → cli-7ypg8hka.js} +3 -3
- package/dist/{cli-8cas2xvp.js → cli-887vhew6.js} +2 -2
- package/dist/{cli-t0jmkcah.js → cli-8pd1t17c.js} +7 -7
- package/dist/{cli-h9d3sdnc.js → cli-94mxerrp.js} +1 -1
- package/dist/{cli-bv4vvnmg.js → cli-9n6g14vs.js} +2 -2
- package/dist/{cli-5ashycw3.js → cli-abby987g.js} +2 -2
- package/dist/{cli-kj84fqxz.js → cli-avax5mp9.js} +1 -1
- package/dist/{cli-ea7nz50q.js → cli-b42yfn17.js} +11 -11
- package/dist/{cli-ysv0k1we.js → cli-b9ygp1kz.js} +1 -1
- package/dist/{cli-3bxrrh53.js → cli-bvamr9g0.js} +2 -2
- package/dist/{cli-gse7bp3z.js → cli-ced4azn1.js} +10 -9
- package/dist/{cli-7by7vp6m.js → cli-cmbb2t8a.js} +2 -2
- package/dist/{cli-0p76my9q.js → cli-cp163xga.js} +10 -10
- package/dist/{cli-jzerrzgc.js → cli-ebpq3c5z.js} +8 -8
- package/dist/{cli-p3knvk62.js → cli-ehg90jd1.js} +113 -39
- package/dist/{cli-jg5txpm6.js → cli-emdfd8fh.js} +75 -1
- package/dist/{cli-d5pc8ep0.js → cli-evy3egte.js} +7 -7
- package/dist/{cli-60dwk8tx.js → cli-ewk3sg68.js} +2 -2
- package/dist/{cli-nc4pbwmp.js → cli-f7b9nyvk.js} +4 -4
- package/dist/{cli-29h5239w.js → cli-f9xw9pr4.js} +4 -4
- package/dist/{cli-3tzmh38q.js → cli-ffn0a515.js} +7 -7
- package/dist/{cli-dqgnbnxs.js → cli-grbngev5.js} +6 -1
- package/dist/{cli-cq4am6vg.js → cli-hd5bm1e1.js} +4 -4
- package/dist/{cli-akm6y2a8.js → cli-htb5bpz2.js} +1 -1
- package/dist/{cli-tr19nyn9.js → cli-j69pzrrz.js} +6 -6
- package/dist/{cli-hdhpdrka.js → cli-jdq3jmny.js} +3 -3
- package/dist/{cli-ja450998.js → cli-ks06cd0n.js} +1 -1
- package/dist/{cli-pz1dp12c.js → cli-kwj3131p.js} +1 -1
- package/dist/{cli-1vmhnncj.js → cli-m8f4379k.js} +3 -3
- package/dist/{cli-jbrc98qb.js → cli-n79j1vxc.js} +2 -2
- package/dist/{cli-b768ek79.js → cli-nrt048ys.js} +1 -0
- package/dist/{cli-93n305hm.js → cli-pedm2kht.js} +1 -1
- package/dist/{cli-eds5xnsz.js → cli-phmy14hb.js} +2 -2
- package/dist/{cli-n1kjs58m.js → cli-prz1p3ft.js} +3 -3
- package/dist/{cli-pz1nq5xm.js → cli-q1h041y8.js} +3 -3
- package/dist/{cli-cah298e5.js → cli-q41qar56.js} +104 -119
- package/dist/{cli-4pbwg7sn.js → cli-qmx8bnt4.js} +1 -1
- package/dist/{cli-944w9wb4.js → cli-qrvk9nka.js} +18 -13
- package/dist/{cli-gtj12v95.js → cli-r3dxpmyt.js} +1 -1
- package/dist/{cli-phdzn699.js → cli-ryem5cfq.js} +7 -7
- package/dist/{cli-49aq3cyn.js → cli-s8dhq7rj.js} +4 -4
- package/dist/{cli-fkpnx3vf.js → cli-sejvnjvw.js} +3 -2
- package/dist/{cli-m1sns1da.js → cli-srre41gb.js} +2 -2
- package/dist/{cli-5rxsb3wq.js → cli-t0n9svkb.js} +3 -3
- package/dist/{cli-tzw1jr2t.js → cli-t879ww0y.js} +2 -2
- package/dist/{cli-xwsm6xkr.js → cli-tgc1kgg3.js} +1 -1
- package/dist/{cli-404am6f3.js → cli-tt7dkwjj.js} +6 -6
- package/dist/{cli-zjdhrzm0.js → cli-tvyt8w6n.js} +2 -2
- package/dist/{cli-hyqksecw.js → cli-v09eza21.js} +9 -9
- package/dist/{cli-rv3y60bt.js → cli-vbge4rsp.js} +4 -4
- package/dist/{cli-bzcwwebm.js → cli-vcpyttcw.js} +1 -1
- package/dist/{cli-904wk98s.js → cli-wzecestt.js} +338 -98
- package/dist/{cli-gkv0r2hq.js → cli-x2adbg4j.js} +70 -8
- package/dist/{cli-4q2c8rxw.js → cli-z3x7h79n.js} +12 -6
- package/dist/{cli-s33bzmk0.js → cli-z40t85ms.js} +1 -1
- package/dist/{cli-rmgvwcmy.js → cli-zbbtp02a.js} +98 -21
- package/dist/{cli-3xqad83h.js → cli-zntvmqmm.js} +1 -1
- package/dist/{cli-zhwjdhjr.js → cli-zxa1vmx7.js} +1 -1
- package/dist/{cli-50wa8k4h.js → cli-zy9bb22b.js} +1 -2
- package/dist/{cli-ts5yv7dn.js → cli-zzq96q57.js} +123 -33
- package/dist/cli.js +18 -18
- package/dist/{codex-adapter-2fs2c0n6.js → codex-adapter-bn7eaxk5.js} +6 -6
- package/dist/{codex-hook-jxjv6dy5.js → codex-hook-nnmezjg9.js} +2 -2
- package/dist/{codex-session-runner-r55tmx4c.js → codex-session-runner-j1e9hffc.js} +6 -6
- package/dist/{commands-0mxdy9x8.js → commands-amhpafrr.js} +3 -3
- package/dist/{controller-g3vkfhr4.js → controller-tw7g10j2.js} +3 -3
- package/dist/{controllers-connect-4wdmncqt.js → controllers-connect-2ssqz7f4.js} +23 -23
- package/dist/{core-gsvj5f3z.js → core-bwp98v4w.js} +21 -21
- package/dist/{cursor-adapter-t9qb96q2.js → cursor-adapter-d6knjmwa.js} +1 -1
- package/dist/{db-487vvyv9.js → db-fd6xxm77.js} +3 -3
- package/dist/{db-76p7w3gr.js → db-sc59379z.js} +2 -2
- package/dist/{dispatcher-64rp6w67.js → dispatcher-a2gdqz8c.js} +21 -21
- package/dist/{dsh-adapter-8abzqk5c.js → dsh-adapter-43ygwqn7.js} +1 -1
- package/dist/{e2b-dc8f6ctq.js → e2b-cn7cvjqy.js} +1 -1
- package/dist/{e2b-3ykbe805.js → e2b-qnxyfea6.js} +1 -1
- package/dist/{easter-egg-3d-jrrwyf55.js → easter-egg-3d-a0pphy71.js} +1 -1
- package/dist/{embedding-space-001hhhpk.js → embedding-space-qepzrach.js} +6 -6
- package/dist/{embeddings-esj19cnw.js → embeddings-d7vr881x.js} +1 -1
- package/dist/{execute-301hkxqg.js → execute-6afts2bn.js} +1 -1
- package/dist/{external-channel-w10e2j05.js → external-channel-881zq1x4.js} +2 -2
- package/dist/fx-adapter-cr2hq17y.js +20 -0
- package/dist/{grok-adapter-3a0ezfee.js → grok-adapter-ayddnbsc.js} +9 -9
- package/dist/handlers-7ghs84x2.js +41 -0
- package/dist/{heartbeat-tbrj7vhq.js → heartbeat-4c022m6a.js} +24 -24
- package/dist/{hook-3am1sq68.js → hook-4k84x499.js} +5 -5
- package/dist/{hook-tx917rqw.js → hook-a7eh6zty.js} +7 -7
- package/dist/{http-3rmemtqy.js → http-6aw5wanc.js} +180 -94
- package/dist/index-dtt0d634.js +44 -0
- package/dist/index-hmszyqkk.js +42 -0
- package/dist/index-j6rm1rtn.js +39 -0
- package/dist/{index-aetfyx6p.js → index-rwwhsmjg.js} +1 -1
- package/dist/{index-s7xtvc0f.js → index-xhad0n8m.js} +1 -1
- package/dist/{index-2jw11t8s.js → index-yq9hhhhy.js} +25 -25
- package/dist/{index-gfnq66t1.js → index-z2g9469g.js} +202 -17
- package/dist/{keepalive-9px3t7qj.js → keepalive-zhbmztqw.js} +4 -4
- package/dist/lead-g2j4q39z.js +83 -0
- package/dist/{maintenance-vwqjwst6.js → maintenance-rsp0591h.js} +1 -1
- package/dist/{node-2wfcey7d.js → node-0as4n1ef.js} +3 -3
- package/dist/{node-zd6shky9.js → node-dhxbt01p.js} +3 -3
- package/dist/{node-z67yjre7.js → node-rxte5hc6.js} +290 -70
- package/dist/{node-hjn5n1yp.js → node-t0ct2zpw.js} +3 -5
- package/dist/{oauth-refresh-sweep-yqry3wn4.js → oauth-refresh-sweep-w3cqmxq7.js} +3 -3
- package/dist/{object-webhooks-8s1wtths.js → object-webhooks-331hay92.js} +7 -7
- package/dist/{onboard-hb8czx0p.js → onboard-n2w80m2n.js} +3 -3
- package/dist/{opencode-adapter-djd6m6dk.js → opencode-adapter-z98127cz.js} +6 -6
- package/dist/{otel-impl-2ymwyczz.js → otel-impl-xsk35tvf.js} +1 -1
- package/dist/{pending-nxavtvx7.js → pending-2e6trkxd.js} +22 -22
- package/dist/{pi-mono-adapter-d2cpmcy4.js → pi-mono-adapter-wh6yndtm.js} +8 -8
- package/dist/{pricing-refresh-1yz8jkqv.js → pricing-refresh-9355dj1t.js} +2 -2
- package/dist/{rbac-roles-dbpx0x9v.js → rbac-roles-58y3m912.js} +3 -3
- package/dist/{rbac-roles-7s6m31xw.js → rbac-roles-8eajw4s6.js} +2 -2
- package/dist/{render-v2-7y20rjrn.js → render-v2-7gskkmd4.js} +6 -6
- package/dist/{resume-wz546x47.js → resume-0drnmpja.js} +9 -9
- package/dist/{runtime-cb5bd9tz.js → runtime-d2tcmqte.js} +1 -1
- package/dist/{session-access-4vcft8kq.js → session-access-0ztys6bd.js} +5 -5
- package/dist/{session-source-backfill-57b50tpw.js → session-source-backfill-cdm5s046.js} +2 -2
- package/dist/{setup-e1tevjyj.js → setup-pqwb9tcc.js} +1 -1
- package/dist/thread-buffer-epx3san4.js +42 -0
- package/dist/{tree-visibility-07wf1nct.js → tree-visibility-rwz67mje.js} +2 -2
- package/dist/{user-merge-jobs-n20qpv6s.js → user-merge-jobs-mxrhamwt.js} +3 -3
- package/dist/{virtual-modules-6fxmn1yv.js → virtual-modules-71y1gsmg.js} +3 -3
- package/dist/{work-objects-eg7y48pe.js → work-objects-3k4ykt9j.js} +24 -24
- package/dist/worker-09gqn9xy.js +83 -0
- package/dist/{worker-follow-up-jnvnnf2b.js → worker-follow-up-y0h64xpr.js} +21 -21
- package/openapi.json +387 -6
- package/package.json +4 -4
- package/src/apps/sync.ts +20 -5
- package/src/azure-devops/boards-sync.ts +1 -1
- package/src/be/db/slack-trees.ts +12 -1
- package/src/be/db/tasks/read.ts +25 -1
- package/src/be/db/tasks/write.ts +47 -12
- package/src/be/db/users/avatar.ts +12 -0
- package/src/be/db.ts +78 -5
- package/src/be/migrations/344_user_avatar.sql +4 -0
- package/src/be/migrations/345_task_status_kind.sql +6 -0
- package/src/be/primitives/object-embed.ts +2 -2
- package/src/be/primitives/objects.ts +2 -2
- package/src/be/runtime-pools/supervisor.ts +1 -0
- package/src/be/scripts/typecheck.ts +1 -1
- package/src/be/swarm-config-guard.ts +4 -0
- package/src/bitbucket/handlers.ts +1 -1
- package/src/commands/credential-outcome-report.ts +96 -0
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/runner.ts +49 -3
- package/src/event-waits/github.ts +39 -6
- package/src/event-waits/index.ts +4 -2
- package/src/event-waits/types.ts +10 -3
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/github/app.ts +177 -13
- package/src/github/handlers.ts +7 -2
- package/src/github/pull-request-state.ts +100 -11
- package/src/gitlab/handlers.ts +2 -2
- package/src/heartbeat/heartbeat.ts +6 -1
- package/src/http/api-keys.ts +26 -0
- package/src/http/asset-key-write.ts +45 -0
- package/src/http/assets.ts +4 -3
- package/src/http/github-token.ts +27 -6
- package/src/http/pages.ts +4 -10
- package/src/http/schedules.ts +6 -6
- package/src/http/sessions.ts +7 -2
- package/src/http/tasks.ts +23 -5
- package/src/http/users.ts +5 -0
- package/src/http/webhooks.ts +19 -1
- package/src/http/workflows.ts +5 -10
- package/src/integrations/chat-sdk/commands.ts +3 -1
- package/src/jira/sync.ts +1 -1
- package/src/linear/sync.ts +5 -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/claude-adapter.ts +5 -0
- package/src/providers/claude-sdk-session.ts +5 -0
- package/src/providers/runtime-dependencies.ts +1 -1
- package/src/scheduler/deferred-task-waits.ts +74 -13
- package/src/scripts-runtime/swarm-sdk.ts +8 -1
- package/src/scripts-runtime/types/stdlib.d.ts +8 -1
- package/src/scripts-runtime/types/swarm-extension.d.ts +19 -2
- package/src/scripts-runtime/types/swarm-sdk.d.ts +8 -1
- package/src/slack/actions.ts +1 -1
- package/src/slack/render-v2.ts +148 -7
- package/src/tests/api-drain-worker-e2e.test.ts +0 -2
- package/src/tests/approval-auto-cancellation-migration.test.ts +8 -19
- package/src/tests/approval-card-resolution.test.ts +2 -17
- package/src/tests/approval-requests-notifications.test.ts +41 -27
- package/src/tests/approval-requests.test.ts +137 -369
- package/src/tests/apps-sync-engine.test.ts +5 -3
- package/src/tests/apps-table-filters-migration.test.ts +44 -25
- package/src/tests/bitbucket-handlers.test.ts +2 -0
- package/src/tests/chat-sdk-commands.test.ts +1 -0
- package/src/tests/claude-adapter.test.ts +35 -0
- package/src/tests/codex-adapter.test.ts +3 -92
- package/src/tests/codex-gpt6-release.test.ts +0 -9
- package/src/tests/codex-oauth-credential-info.test.ts +35 -18
- package/src/tests/codex-oauth.test.ts +0 -6
- package/src/tests/codex-pool.test.ts +5 -214
- package/src/tests/codex-rate-limit-parse.test.ts +0 -7
- package/src/tests/codex-swarm-events.test.ts +11 -54
- package/src/tests/db-client-busy-retry.test.ts +49 -16
- package/src/tests/defer-task.test.ts +1 -0
- package/src/tests/e2e-shards.test.ts +9 -9
- package/src/tests/enabled-tools.test.ts +0 -2
- package/src/tests/fixtures/base-prompt-baseline.json +6 -6
- package/src/tests/github-app-worker-auth-helper.test.ts +147 -1
- package/src/tests/gitlab-handlers.test.ts +2 -0
- package/src/tests/heartbeat-jev-gate.test.ts +9 -241
- package/src/tests/heartbeat-reroute-decision.test.ts +2 -0
- package/src/tests/heartbeat-supersede-resume.test.ts +2 -0
- package/src/tests/heartbeat.test.ts +1 -0
- package/src/tests/key-usage-selection.test.ts +302 -0
- package/src/tests/memory-e2e.test.ts +34 -103
- package/src/tests/memory-key-paths.test.ts +5 -0
- package/src/tests/memory-rater-llm.test.ts +33 -149
- package/src/tests/memory-store.test.ts +24 -125
- package/src/tests/memory.test.ts +31 -100
- package/src/tests/merge-gate-detect-changes.test.ts +108 -2
- package/src/tests/otel-service-name.test.ts +0 -9
- package/src/tests/otel-session-cost-metrics.test.ts +1 -38
- package/src/tests/pool-session-logs.test.ts +8 -42
- package/src/tests/pre-push-affected-tests.test.ts +106 -0
- package/src/tests/prompt-template-session.test.ts +3 -0
- package/src/tests/runner-api-drain.test.ts +2 -17
- package/src/tests/runner-terminal-window-report.test.ts +132 -0
- package/src/tests/runtime-supervisor-failures.test.ts +1 -0
- package/src/tests/sandboxed-process.test.ts +26 -21
- package/src/tests/schedule-http-triage-tools.test.ts +12 -9
- package/src/tests/scheduled-tasks.test.ts +14 -51
- package/src/tests/script-executor-conformance.test.ts +4 -48
- package/src/tests/script-executor-quickjs-pool.test.ts +9 -7
- package/src/tests/script-native-startup.test.ts +21 -25
- package/src/tests/secret-rules.test.ts +4 -2
- package/src/tests/session-logs.test.ts +1 -260
- package/src/tests/slack-render-v2.test.ts +5 -148
- package/src/tests/task-cascade-fail.test.ts +1 -0
- package/src/tests/task-supersede-resume.test.ts +1 -0
- package/src/tests/test-proc.ts +5 -2
- package/src/tests/window-stream-reporter.test.ts +122 -0
- package/src/tests/workflow-agent-task-retry.test.ts +1 -3
- package/src/tests/workflow-cascade-cancel.test.ts +1 -0
- package/src/tests/workflow-retry-v2.test.ts +34 -43
- package/src/tests/workflow-retry-validation.test.ts +8 -48
- package/src/tests/worktree-reaper.test.ts +2 -2
- package/src/tools/cancel-task.ts +2 -2
- package/src/tools/defer-task.ts +7 -2
- package/src/tools/get-task-details.ts +8 -4
- package/src/tools/get-tasks.ts +13 -2
- package/src/tools/manage-user.ts +9 -0
- package/src/tools/store-progress.ts +5 -3
- package/src/types.ts +93 -0
- package/src/utils/constants.ts +12 -0
- package/src/utils/credentials.ts +42 -5
- package/src/utils/error-tracker.ts +6 -0
- package/src/utils/key-usage.ts +114 -0
- package/src/utils/sandboxed-process.ts +1 -0
- package/src/workflows/resume.ts +5 -2
- package/templates/skills/apps/SKILL.md +2 -0
- package/templates/skills/apps/content.md +2 -0
- package/templates/skills/boards-and-sheets/content.md +4 -2
- package/templates/skills/pages/content.md +7 -0
- package/templates/skills/swarm-docs/content.md +1 -0
- package/templates/skills/swarm-scripts/SKILL.md +1 -0
- package/templates/skills/swarm-scripts/content.md +1 -0
- package/dist/acp-adapter-mr4temec.js +0 -17
- package/dist/fx-adapter-4sjrbdne.js +0 -20
- package/dist/handlers-ef3k11hb.js +0 -41
- package/dist/index-e6bq0exk.js +0 -42
- package/dist/index-hf2k1vge.js +0 -39
- package/dist/index-taxmejj3.js +0 -44
- package/dist/lead-5vt6f174.js +0 -83
- package/dist/thread-buffer-686pa1p1.js +0 -42
- package/dist/worker-4vp616ms.js +0 -83
- package/src/tests/apps-table-selection-migration.test.ts +0 -95
- package/src/tests/extensions-example-heartbeat-remediate.test.ts +0 -69
- package/src/tests/extensions-example-rewrite-and-suppress.test.ts +0 -70
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
requireFxRoute,
|
|
4
4
|
fxSessionExists2,
|
|
5
5
|
fxTargetProfile2
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-0qt3epg4.js";
|
|
7
7
|
import {
|
|
8
8
|
ACPAdapter2
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-887vhew6.js";
|
|
10
10
|
import {
|
|
11
11
|
getKnownContextWindowSize,
|
|
12
12
|
init_context_window
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
getWorkflowVersions2,
|
|
47
47
|
getMcpServerById2,
|
|
48
48
|
init_db4
|
|
49
|
-
} from "./cli-
|
|
49
|
+
} from "./cli-zzq96q57.js";
|
|
50
50
|
import {
|
|
51
51
|
McpHttpClient,
|
|
52
52
|
init_http_client
|
|
@@ -61,17 +61,17 @@ import {
|
|
|
61
61
|
oauthAppRowToProviderConfig,
|
|
62
62
|
ensureAuthorizationTokenOrThrow,
|
|
63
63
|
init_ensure_token
|
|
64
|
-
} from "./cli-
|
|
64
|
+
} from "./cli-5web09sb.js";
|
|
65
65
|
import {
|
|
66
66
|
AGENT_FS_API_KEY_CONFIG,
|
|
67
67
|
init_script_fs,
|
|
68
68
|
resolveAgentFsIdentity,
|
|
69
69
|
init_agent_fs_identity
|
|
70
|
-
} from "./cli-
|
|
70
|
+
} from "./cli-zxa1vmx7.js";
|
|
71
71
|
import {
|
|
72
72
|
validateDefinition,
|
|
73
73
|
init_definition2
|
|
74
|
-
} from "./cli-
|
|
74
|
+
} from "./cli-cp163xga.js";
|
|
75
75
|
import {
|
|
76
76
|
getApiKey,
|
|
77
77
|
init_api_key
|
|
@@ -83,20 +83,20 @@ import {
|
|
|
83
83
|
refreshMcpToken,
|
|
84
84
|
computeExpiresAt,
|
|
85
85
|
init_mcp_wrapper
|
|
86
|
-
} from "./cli-
|
|
86
|
+
} from "./cli-b9ygp1kz.js";
|
|
87
87
|
import {
|
|
88
88
|
mintUserScriptRunToken,
|
|
89
89
|
revokeUserScriptRunToken,
|
|
90
90
|
mintScriptRunToken,
|
|
91
91
|
revokeSessionToken,
|
|
92
92
|
init_users
|
|
93
|
-
} from "./cli-
|
|
93
|
+
} from "./cli-avax5mp9.js";
|
|
94
94
|
import {
|
|
95
95
|
defaultAssetKey,
|
|
96
96
|
init_key,
|
|
97
97
|
AppIconSchema,
|
|
98
98
|
init_types5
|
|
99
|
-
} from "./cli-
|
|
99
|
+
} from "./cli-7r9tvk8v.js";
|
|
100
100
|
import {
|
|
101
101
|
init_zod
|
|
102
102
|
} from "./cli-96234j5w.js";
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
import {
|
|
118
118
|
getMcpBaseUrl,
|
|
119
119
|
init_constants3
|
|
120
|
-
} from "./cli-
|
|
120
|
+
} from "./cli-grbngev5.js";
|
|
121
121
|
import {
|
|
122
122
|
isEnvFlagEnabled,
|
|
123
123
|
init_env_flag
|
|
@@ -8806,6 +8806,7 @@ function buildSandboxedCommandCore(innerCommand, limits, profile, environment, r
|
|
|
8806
8806
|
}
|
|
8807
8807
|
return [
|
|
8808
8808
|
useBashShell ? "bash" : "sh",
|
|
8809
|
+
...useBashShell ? ["--noprofile", "--norc", "-p"] : [],
|
|
8809
8810
|
"-c",
|
|
8810
8811
|
`${ulimits}; exec ${dropPrivileges}env -i ${envAssignments} ${quotedInner}`
|
|
8811
8812
|
];
|
|
@@ -187771,7 +187772,7 @@ export interface SwarmSdk {
|
|
|
187771
187772
|
// --- memory ---
|
|
187772
187773
|
memory_search(args: { query: string; intent: string; scope?: "all" | "agent" | "swarm"; limit?: number; source?: string; keyPrefix?: string }): Promise<unknown>;
|
|
187773
187774
|
memory_get(args: { memoryId?: string; id?: string; intent: string }): Promise<unknown>;
|
|
187774
|
-
memory_rate(args: { id
|
|
187775
|
+
memory_rate(args: { id?: string; memoryId?: string; useful: boolean; note?: string; taskId?: string; referencesSource?: string }): Promise<unknown>;
|
|
187775
187776
|
// --- tasks ---
|
|
187776
187777
|
task_list(args?: Record<string, unknown>): Promise<unknown>;
|
|
187777
187778
|
task_get(args: { taskId: string }): Promise<unknown>;
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
init_src,
|
|
78
78
|
selectCredential,
|
|
79
79
|
init_credentials2
|
|
80
|
-
} from "./cli-
|
|
80
|
+
} from "./cli-x2adbg4j.js";
|
|
81
81
|
import {
|
|
82
82
|
__export,
|
|
83
83
|
__esm
|
|
@@ -6551,7 +6551,7 @@ var init_bun_oauth = __esm(() => {
|
|
|
6551
6551
|
});
|
|
6552
6552
|
|
|
6553
6553
|
// node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.js
|
|
6554
|
-
var anthropicMessagesApi = () => lazyApi(() => import("./anthropic-messages-
|
|
6554
|
+
var anthropicMessagesApi = () => lazyApi(() => import("./anthropic-messages-vdd1zmha.js"));
|
|
6555
6555
|
var init_anthropic_messages_lazy = __esm(() => {
|
|
6556
6556
|
init_lazy();
|
|
6557
6557
|
});
|
|
@@ -39,18 +39,18 @@ import {
|
|
|
39
39
|
getLatestStepForNode2,
|
|
40
40
|
getCurrentStepForNode2,
|
|
41
41
|
init_db4
|
|
42
|
-
} from "./cli-
|
|
42
|
+
} from "./cli-zzq96q57.js";
|
|
43
43
|
import {
|
|
44
44
|
ConfigQuestionSettingsSchema,
|
|
45
45
|
normalizeApprovalQuestions,
|
|
46
46
|
init_approval_config_question,
|
|
47
47
|
dispatchApprovalNotifications2,
|
|
48
48
|
init_approval_notifications
|
|
49
|
-
} from "./cli-
|
|
49
|
+
} from "./cli-evy3egte.js";
|
|
50
50
|
import {
|
|
51
51
|
resolveCredential,
|
|
52
52
|
init_credentials
|
|
53
|
-
} from "./cli-
|
|
53
|
+
} from "./cli-cmbb2t8a.js";
|
|
54
54
|
import {
|
|
55
55
|
isSlackConfigured,
|
|
56
56
|
init_config5
|
|
@@ -61,11 +61,11 @@ import {
|
|
|
61
61
|
import {
|
|
62
62
|
selectCredential,
|
|
63
63
|
init_credentials2
|
|
64
|
-
} from "./cli-
|
|
64
|
+
} from "./cli-x2adbg4j.js";
|
|
65
65
|
import {
|
|
66
66
|
deepInterpolate,
|
|
67
67
|
init_template2
|
|
68
|
-
} from "./cli-
|
|
68
|
+
} from "./cli-nrt048ys.js";
|
|
69
69
|
import {
|
|
70
70
|
DEFAULT_OPENROUTER_BASE_URL,
|
|
71
71
|
getOpenRouterBaseUrl,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
import {
|
|
95
95
|
getAppUrl,
|
|
96
96
|
init_constants3
|
|
97
|
-
} from "./cli-
|
|
97
|
+
} from "./cli-grbngev5.js";
|
|
98
98
|
import {
|
|
99
99
|
isEnvFlagEnabled,
|
|
100
100
|
init_env_flag
|
|
@@ -120,7 +120,7 @@ async function notifyAutomationPreflightFailure(preflight) {
|
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
122
|
try {
|
|
123
|
-
const { getSlackApp } = await import("./app-
|
|
123
|
+
const { getSlackApp } = await import("./app-zfa9dwjw.js");
|
|
124
124
|
const app = getSlackApp();
|
|
125
125
|
if (!app) {
|
|
126
126
|
console.warn("[Automation Preflight] Slack not available, cannot send notification");
|
|
@@ -3954,7 +3954,7 @@ async function runClaimedStep(def, runId, ctx, node, registry, existingStep, ste
|
|
|
3954
3954
|
}
|
|
3955
3955
|
const waiting = await checkpointStepWaiting(runId, stepId, ctx);
|
|
3956
3956
|
if (waiting && result.waitFor === "workflow.child.finished") {
|
|
3957
|
-
const { resumeFromChildRun } = await import("./resume-
|
|
3957
|
+
const { resumeFromChildRun } = await import("./resume-0drnmpja.js");
|
|
3958
3958
|
await resumeFromChildRun(stepId, registry);
|
|
3959
3959
|
}
|
|
3960
3960
|
return { outcome: waiting ? "waiting" : "completed", successors: [] };
|
|
@@ -4475,7 +4475,7 @@ async function runForeachDrive(runId, parentNodeId, registry) {
|
|
|
4475
4475
|
if (drive.successors.length > 0) {
|
|
4476
4476
|
await walkGraph(workflow.definition, runId, ctx, drive.successors, registry, workflow.id, getSecretInputKeys(workflow.input), { successorDebt: debt });
|
|
4477
4477
|
} else {
|
|
4478
|
-
const { finalizeOrWait } = await import("./resume-
|
|
4478
|
+
const { finalizeOrWait } = await import("./resume-0drnmpja.js");
|
|
4479
4479
|
await finalizeOrWait(runId);
|
|
4480
4480
|
}
|
|
4481
4481
|
return drive;
|
|
@@ -4619,7 +4619,7 @@ async function startChild(input) {
|
|
|
4619
4619
|
const parked = await getDbClient2().get("UPDATE workflow_run_steps SET status = 'waiting' WHERE id = ? AND status = 'running' RETURNING id", [child.id]);
|
|
4620
4620
|
if (parked && result.waitFor === "workflow.child.finished") {
|
|
4621
4621
|
ownedChildren.delete(child.id);
|
|
4622
|
-
const { resumeFromChildRun } = await import("./resume-
|
|
4622
|
+
const { resumeFromChildRun } = await import("./resume-0drnmpja.js");
|
|
4623
4623
|
await resumeFromChildRun(child.id, registry);
|
|
4624
4624
|
}
|
|
4625
4625
|
return null;
|
|
@@ -148,7 +148,7 @@ import {
|
|
|
148
148
|
Instantiate,
|
|
149
149
|
Evaluate2,
|
|
150
150
|
Priority
|
|
151
|
-
} from "./cli-
|
|
151
|
+
} from "./cli-9n6g14vs.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-cmbb2t8a.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-xhad0n8m.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-71y1gsmg.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-6afts2bn.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-d2tcmqte.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-3vw6dd4g.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-a0pphy71.js").then((module) => module.playEasterEgg3d(tui, screen, egg), () => {});
|
|
99418
99418
|
return true;
|
|
99419
99419
|
}
|
|
99420
99420
|
function playPiLogo3d(tui, column, row) {
|
|
@@ -10,22 +10,23 @@ import {
|
|
|
10
10
|
checkDeepSeekApiKey,
|
|
11
11
|
checkOpenAICompatibleProvider,
|
|
12
12
|
writeSkillsToFilesystem
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-jdq3jmny.js";
|
|
14
14
|
import {
|
|
15
15
|
renderSteeringDelivery
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-94mxerrp.js";
|
|
17
17
|
import {
|
|
18
18
|
effectiveReasoningEffort
|
|
19
19
|
} from "./cli-ywy8yz6t.js";
|
|
20
20
|
import {
|
|
21
21
|
validateProviderDependencies
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-1jq2em7b.js";
|
|
23
23
|
import {
|
|
24
24
|
isSkillLoaderCall,
|
|
25
25
|
skillFromToolArgs,
|
|
26
26
|
createSkillInvokeTracker
|
|
27
27
|
} from "./cli-77cd6gy8.js";
|
|
28
28
|
import {
|
|
29
|
+
RATE_LIMIT_WINDOWS_EVENT,
|
|
29
30
|
MAX_RATE_LIMIT_RESET_MS,
|
|
30
31
|
MAX_SPEND_CAP_HOLD_MS,
|
|
31
32
|
isRateLimitMessage,
|
|
@@ -33,7 +34,7 @@ import {
|
|
|
33
34
|
CODEX_CREDITS_EXHAUSTED_COOLDOWN_MS,
|
|
34
35
|
resolveCodexCreditsExhaustedCooldownMs,
|
|
35
36
|
parseRateLimitResetTime
|
|
36
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-sejvnjvw.js";
|
|
37
38
|
import {
|
|
38
39
|
ACP_TARGET_IDS,
|
|
39
40
|
isAcpTarget
|
|
@@ -41,35 +42,35 @@ import {
|
|
|
41
42
|
import {
|
|
42
43
|
checkAmpCredentials2,
|
|
43
44
|
liveTestAmpCredentials2
|
|
44
|
-
} from "./cli-
|
|
45
|
+
} from "./cli-q1h041y8.js";
|
|
45
46
|
import {
|
|
46
47
|
checkClaudeCredentials2
|
|
47
|
-
} from "./cli-
|
|
48
|
+
} from "./cli-z3x7h79n.js";
|
|
48
49
|
import {
|
|
49
50
|
checkClaudeManagedCredentials2
|
|
50
|
-
} from "./cli-
|
|
51
|
+
} from "./cli-t0n9svkb.js";
|
|
51
52
|
import {
|
|
52
53
|
codexUserHome,
|
|
53
54
|
checkCodexCredentials2
|
|
54
|
-
} from "./cli-
|
|
55
|
+
} from "./cli-8pd1t17c.js";
|
|
55
56
|
import {
|
|
56
57
|
checkCursorCredentials2
|
|
57
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-tvyt8w6n.js";
|
|
58
59
|
import {
|
|
59
60
|
checkDevinCredentials2
|
|
60
61
|
} from "./cli-94gx6ze9.js";
|
|
61
62
|
import {
|
|
62
63
|
checkDshCredentials2
|
|
63
|
-
} from "./cli-
|
|
64
|
+
} from "./cli-ks06cd0n.js";
|
|
64
65
|
import {
|
|
65
66
|
checkOpencodeCredentials2
|
|
66
|
-
} from "./cli-
|
|
67
|
+
} from "./cli-f7b9nyvk.js";
|
|
67
68
|
import {
|
|
68
69
|
checkFxCredentials2
|
|
69
|
-
} from "./cli-
|
|
70
|
+
} from "./cli-bvamr9g0.js";
|
|
70
71
|
import {
|
|
71
72
|
checkGrokCredentials2
|
|
72
|
-
} from "./cli-
|
|
73
|
+
} from "./cli-2wzkvfgm.js";
|
|
73
74
|
import {
|
|
74
75
|
CODEX_OAUTH_POOL_SLOTS_ENV,
|
|
75
76
|
isCodexOAuthConfigKey,
|
|
@@ -83,7 +84,7 @@ import {
|
|
|
83
84
|
import {
|
|
84
85
|
orgIdentityStatus,
|
|
85
86
|
init_org_identity
|
|
86
|
-
} from "./cli-
|
|
87
|
+
} from "./cli-z40t85ms.js";
|
|
87
88
|
import {
|
|
88
89
|
isAzureDevOpsUrl,
|
|
89
90
|
canonicalAzureDevOpsRepoUrl,
|
|
@@ -91,7 +92,7 @@ import {
|
|
|
91
92
|
init_azure_devops,
|
|
92
93
|
resolveScriptsOnlyMode,
|
|
93
94
|
init_scripts_only_mode
|
|
94
|
-
} from "./cli-
|
|
95
|
+
} from "./cli-wzecestt.js";
|
|
95
96
|
import {
|
|
96
97
|
terminateRegisteredProcessGroups,
|
|
97
98
|
init_process_group
|
|
@@ -99,7 +100,7 @@ import {
|
|
|
99
100
|
import {
|
|
100
101
|
validateJsonSchema,
|
|
101
102
|
init_json_schema_validator
|
|
102
|
-
} from "./cli-
|
|
103
|
+
} from "./cli-cp163xga.js";
|
|
103
104
|
import {
|
|
104
105
|
authJsonToCredentialSelection,
|
|
105
106
|
credentialsToAuthJson,
|
|
@@ -122,7 +123,7 @@ import {
|
|
|
122
123
|
initialize,
|
|
123
124
|
ensure,
|
|
124
125
|
init_business_use
|
|
125
|
-
} from "./cli-
|
|
126
|
+
} from "./cli-zbbtp02a.js";
|
|
126
127
|
import {
|
|
127
128
|
sourceOfKey,
|
|
128
129
|
init_source_key,
|
|
@@ -144,7 +145,7 @@ import {
|
|
|
144
145
|
init_vcs_repo_match,
|
|
145
146
|
resumedTaskModelSelection,
|
|
146
147
|
init_model_pin
|
|
147
|
-
} from "./cli-
|
|
148
|
+
} from "./cli-zzq96q57.js";
|
|
148
149
|
import {
|
|
149
150
|
isCodexAuthFailureReason,
|
|
150
151
|
init_codex_auth_failure
|
|
@@ -181,20 +182,20 @@ import {
|
|
|
181
182
|
resolveClaudeMdPath,
|
|
182
183
|
syncProfileFilesToServer,
|
|
183
184
|
init_profile_sync
|
|
184
|
-
} from "./cli-
|
|
185
|
+
} from "./cli-19d6v8er.js";
|
|
185
186
|
import {
|
|
186
187
|
isSteeringEnabled2,
|
|
187
188
|
init_steering_enabled
|
|
188
189
|
} from "./cli-4sydckyj.js";
|
|
189
190
|
import {
|
|
190
|
-
validateRoute,
|
|
191
|
-
deriveDefaultRoute,
|
|
192
|
-
init_src,
|
|
193
191
|
modelFamilyOf,
|
|
194
192
|
windowForModelFamily,
|
|
195
193
|
parseModelLimitMessage,
|
|
196
194
|
parseCreditsRequiredMessage,
|
|
197
195
|
init_model_rate_limit_windows,
|
|
196
|
+
validateRoute,
|
|
197
|
+
deriveDefaultRoute,
|
|
198
|
+
init_src,
|
|
198
199
|
CREDENTIAL_POOL_VARS,
|
|
199
200
|
normalizeProviderKeyAliases,
|
|
200
201
|
ModelWindowExhaustedError,
|
|
@@ -204,14 +205,14 @@ import {
|
|
|
204
205
|
CLAUDE_CREDENTIALS_HINT,
|
|
205
206
|
resolveCredentialPools,
|
|
206
207
|
init_credentials2
|
|
207
|
-
} from "./cli-
|
|
208
|
+
} from "./cli-x2adbg4j.js";
|
|
208
209
|
import {
|
|
209
210
|
interpolate,
|
|
210
211
|
init_template2,
|
|
211
212
|
configureHttpResolver,
|
|
212
213
|
resolveTemplateAsync,
|
|
213
214
|
init_resolver
|
|
214
|
-
} from "./cli-
|
|
215
|
+
} from "./cli-nrt048ys.js";
|
|
215
216
|
import {
|
|
216
217
|
isGroupKey,
|
|
217
218
|
init_key,
|
|
@@ -221,7 +222,7 @@ import {
|
|
|
221
222
|
ProviderNameSchema,
|
|
222
223
|
WorkerNudgeSchema,
|
|
223
224
|
init_types5
|
|
224
|
-
} from "./cli-
|
|
225
|
+
} from "./cli-7r9tvk8v.js";
|
|
225
226
|
import {
|
|
226
227
|
runtimeHarnessSections,
|
|
227
228
|
refreshRuntimeModelCatalog,
|
|
@@ -230,7 +231,7 @@ import {
|
|
|
230
231
|
import {
|
|
231
232
|
getMcpBaseUrl,
|
|
232
233
|
init_constants3
|
|
233
|
-
} from "./cli-
|
|
234
|
+
} from "./cli-grbngev5.js";
|
|
234
235
|
import {
|
|
235
236
|
isEnvFlagEnabled,
|
|
236
237
|
init_env_flag
|
|
@@ -293,19 +294,19 @@ init_storage();
|
|
|
293
294
|
async function createProviderAdapter(provider) {
|
|
294
295
|
switch (provider) {
|
|
295
296
|
case "claude": {
|
|
296
|
-
const { ClaudeAdapter } = await import("./claude-adapter-
|
|
297
|
+
const { ClaudeAdapter } = await import("./claude-adapter-0rjmbhjk.js");
|
|
297
298
|
return new ClaudeAdapter;
|
|
298
299
|
}
|
|
299
300
|
case "pi": {
|
|
300
|
-
const { PiMonoAdapter } = await import("./pi-mono-adapter-
|
|
301
|
+
const { PiMonoAdapter } = await import("./pi-mono-adapter-wh6yndtm.js");
|
|
301
302
|
return new PiMonoAdapter;
|
|
302
303
|
}
|
|
303
304
|
case "codex": {
|
|
304
|
-
const { CodexAdapter } = await import("./codex-adapter-
|
|
305
|
+
const { CodexAdapter } = await import("./codex-adapter-bn7eaxk5.js");
|
|
305
306
|
return new CodexAdapter;
|
|
306
307
|
}
|
|
307
308
|
case "claude-managed": {
|
|
308
|
-
const { ClaudeManagedAdapter } = await import("./claude-managed-adapter-
|
|
309
|
+
const { ClaudeManagedAdapter } = await import("./claude-managed-adapter-6k032agg.js");
|
|
309
310
|
return new ClaudeManagedAdapter;
|
|
310
311
|
}
|
|
311
312
|
case "devin": {
|
|
@@ -313,31 +314,31 @@ async function createProviderAdapter(provider) {
|
|
|
313
314
|
return new DevinAdapter;
|
|
314
315
|
}
|
|
315
316
|
case "opencode": {
|
|
316
|
-
const { OpencodeAdapter } = await import("./opencode-adapter-
|
|
317
|
+
const { OpencodeAdapter } = await import("./opencode-adapter-z98127cz.js");
|
|
317
318
|
return new OpencodeAdapter;
|
|
318
319
|
}
|
|
319
320
|
case "dsh": {
|
|
320
|
-
const { DshAdapter } = await import("./dsh-adapter-
|
|
321
|
+
const { DshAdapter } = await import("./dsh-adapter-43ygwqn7.js");
|
|
321
322
|
return new DshAdapter;
|
|
322
323
|
}
|
|
323
324
|
case "amp": {
|
|
324
|
-
const { AmpAdapter } = await import("./amp-adapter-
|
|
325
|
+
const { AmpAdapter } = await import("./amp-adapter-8x6zp8w4.js");
|
|
325
326
|
return new AmpAdapter;
|
|
326
327
|
}
|
|
327
328
|
case "cursor": {
|
|
328
|
-
const { CursorAdapter } = await import("./cursor-adapter-
|
|
329
|
+
const { CursorAdapter } = await import("./cursor-adapter-d6knjmwa.js");
|
|
329
330
|
return new CursorAdapter;
|
|
330
331
|
}
|
|
331
332
|
case "grok": {
|
|
332
|
-
const { GrokAdapter } = await import("./grok-adapter-
|
|
333
|
+
const { GrokAdapter } = await import("./grok-adapter-ayddnbsc.js");
|
|
333
334
|
return new GrokAdapter;
|
|
334
335
|
}
|
|
335
336
|
case "fx": {
|
|
336
|
-
const { FxAdapter } = await import("./fx-adapter-
|
|
337
|
+
const { FxAdapter } = await import("./fx-adapter-cr2hq17y.js");
|
|
337
338
|
return new FxAdapter;
|
|
338
339
|
}
|
|
339
340
|
case "acp": {
|
|
340
|
-
const { ACPAdapter } = await import("./acp-adapter-
|
|
341
|
+
const { ACPAdapter } = await import("./acp-adapter-tbt61zkm.js");
|
|
341
342
|
return new ACPAdapter;
|
|
342
343
|
}
|
|
343
344
|
default:
|
|
@@ -1302,6 +1303,59 @@ async function reportKeyRateLimitWindows(apiUrl, apiKey, keyType, keySuffix, key
|
|
|
1302
1303
|
console.log(`[credentials] Reported rate-limit windows for key ...${keySuffix}`);
|
|
1303
1304
|
}
|
|
1304
1305
|
}
|
|
1306
|
+
var TELEMETRY_TERMINAL_STATUSES = new Set(["completed", "failed"]);
|
|
1307
|
+
function reportTerminalSessionWindows(input) {
|
|
1308
|
+
const { credentialInfo, rateLimitWindows } = input;
|
|
1309
|
+
if (!credentialInfo || !TELEMETRY_TERMINAL_STATUSES.has(input.serverTerminalStatus) || !rateLimitWindows || Object.keys(rateLimitWindows).length === 0) {
|
|
1310
|
+
return Promise.resolve();
|
|
1311
|
+
}
|
|
1312
|
+
return reportKeyRateLimitWindows(input.apiUrl, input.apiKey, credentialInfo.keyType, credentialInfo.keySuffix, credentialInfo.keyIndex, rateLimitWindows).catch((err) => {
|
|
1313
|
+
console.warn(`[credential] Failed to report rate-limit windows: ${err instanceof Error ? err.message : String(err)}`);
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
function createWindowStreamReporter(opts) {
|
|
1317
|
+
const minDelta = (opts.minDeltaPoints ?? 5) / 100;
|
|
1318
|
+
const minIntervalMs = opts.minIntervalMs ?? 60000;
|
|
1319
|
+
const now = opts.now ?? Date.now;
|
|
1320
|
+
let lastSentAt;
|
|
1321
|
+
let lastSent = {};
|
|
1322
|
+
const due = (windows, at) => {
|
|
1323
|
+
if (lastSentAt === undefined || at - lastSentAt >= minIntervalMs)
|
|
1324
|
+
return true;
|
|
1325
|
+
return Object.entries(windows).some(([key, window]) => {
|
|
1326
|
+
if (!(key in lastSent))
|
|
1327
|
+
return true;
|
|
1328
|
+
const before = lastSent[key];
|
|
1329
|
+
const after = window.utilization;
|
|
1330
|
+
if (before === undefined || after === undefined)
|
|
1331
|
+
return before !== after;
|
|
1332
|
+
return Math.abs(after - before) >= minDelta - 0.000000001;
|
|
1333
|
+
});
|
|
1334
|
+
};
|
|
1335
|
+
return (windows) => {
|
|
1336
|
+
if (Object.keys(windows).length === 0)
|
|
1337
|
+
return;
|
|
1338
|
+
const at = now();
|
|
1339
|
+
if (!due(windows, at))
|
|
1340
|
+
return;
|
|
1341
|
+
const previous = { sentAt: lastSentAt, sent: lastSent };
|
|
1342
|
+
lastSentAt = at;
|
|
1343
|
+
lastSent = Object.fromEntries(Object.entries(windows).map(([k, w]) => [k, w.utilization]));
|
|
1344
|
+
let report;
|
|
1345
|
+
try {
|
|
1346
|
+
report = opts.post(windows);
|
|
1347
|
+
} catch (err) {
|
|
1348
|
+
report = Promise.reject(err);
|
|
1349
|
+
}
|
|
1350
|
+
report.catch((err) => {
|
|
1351
|
+
if (lastSentAt === at) {
|
|
1352
|
+
lastSentAt = previous.sentAt;
|
|
1353
|
+
lastSent = previous.sent;
|
|
1354
|
+
}
|
|
1355
|
+
console.warn(`[credential] Failed to stream rate-limit windows: ${err instanceof Error ? err.message : String(err)}`);
|
|
1356
|
+
});
|
|
1357
|
+
};
|
|
1358
|
+
}
|
|
1305
1359
|
async function reportCredentialOutcomeThenFinish(input, finish) {
|
|
1306
1360
|
const { apiUrl, apiKey, credentialInfo, result, failureReason, model } = input;
|
|
1307
1361
|
if (credentialInfo) {
|
|
@@ -1389,7 +1443,7 @@ var CREDENTIAL_PROVIDER_CHECKERS = {
|
|
|
1389
1443
|
devin: (env) => checkDevinCredentials2(env),
|
|
1390
1444
|
opencode: (env, opts) => checkOpencodeCredentials2(env, opts),
|
|
1391
1445
|
pi: async (env, opts) => {
|
|
1392
|
-
const { checkPiMonoCredentials, listPiOpencodeGoModelIds } = await import("./pi-mono-adapter-
|
|
1446
|
+
const { checkPiMonoCredentials, listPiOpencodeGoModelIds } = await import("./pi-mono-adapter-wh6yndtm.js");
|
|
1393
1447
|
return {
|
|
1394
1448
|
...await checkPiMonoCredentials(env, opts),
|
|
1395
1449
|
opencodeGoModels: listPiOpencodeGoModelIds()
|
|
@@ -1668,7 +1722,7 @@ async function validateProviderCredentials(provider, env = process.env, presence
|
|
|
1668
1722
|
latency_ms: Date.now() - startedAt
|
|
1669
1723
|
};
|
|
1670
1724
|
}
|
|
1671
|
-
const { liveTestCursorKey } = await import("./cursor-adapter-
|
|
1725
|
+
const { liveTestCursorKey } = await import("./cursor-adapter-d6knjmwa.js");
|
|
1672
1726
|
return checkEachKey("CURSOR_API_KEY", apiKey, async (member) => {
|
|
1673
1727
|
const start = Date.now();
|
|
1674
1728
|
const result = await liveTestCursorKey(member);
|
|
@@ -5132,6 +5186,9 @@ function providerEventAttributes(event) {
|
|
|
5132
5186
|
"agentswarm.context.total_tokens": event.contextTotalTokens
|
|
5133
5187
|
};
|
|
5134
5188
|
case "custom":
|
|
5189
|
+
if (event.name === RATE_LIMIT_WINDOWS_EVENT) {
|
|
5190
|
+
return { "agentswarm.provider.event_name": event.name };
|
|
5191
|
+
}
|
|
5135
5192
|
return {
|
|
5136
5193
|
"agentswarm.provider.event_name": event.name,
|
|
5137
5194
|
"agentswarm.provider.event_data_preview": telemetryPreview(event.data)
|
|
@@ -5438,9 +5495,17 @@ async function spawnProviderProcess(adapter, opts, logDir) {
|
|
|
5438
5495
|
}).catch(() => {});
|
|
5439
5496
|
}
|
|
5440
5497
|
}
|
|
5498
|
+
const streamWindows = credentialInfo && opts.apiUrl ? createWindowStreamReporter({
|
|
5499
|
+
post: (windows) => reportKeyRateLimitWindows(opts.apiUrl, opts.apiKey, credentialInfo.keyType, credentialInfo.keySuffix, credentialInfo.keyIndex, windows, false)
|
|
5500
|
+
}) : undefined;
|
|
5441
5501
|
session.onEvent((event) => withSpanContext2(sessionSpan, () => {
|
|
5442
5502
|
sessionSpan.addEvent(`provider.${event.type}`, providerEventAttributes(event));
|
|
5443
5503
|
switch (event.type) {
|
|
5504
|
+
case "custom":
|
|
5505
|
+
if (event.name === RATE_LIMIT_WINDOWS_EVENT && streamWindows) {
|
|
5506
|
+
streamWindows(event.data);
|
|
5507
|
+
}
|
|
5508
|
+
break;
|
|
5444
5509
|
case "session_init":
|
|
5445
5510
|
providerSessionId = event.sessionId;
|
|
5446
5511
|
pendingHarnessVariant = event.harnessVariant;
|
|
@@ -6045,6 +6110,15 @@ async function checkCompletedProcesses(state, role, apiConfig, cancelledSignaled
|
|
|
6045
6110
|
vcsCheckTimestamps.delete(taskId);
|
|
6046
6111
|
cancelledSignaled?.delete(taskId);
|
|
6047
6112
|
if (serverTerminalStatus) {
|
|
6113
|
+
if (apiConfig) {
|
|
6114
|
+
reportTerminalSessionWindows({
|
|
6115
|
+
apiUrl: apiConfig.apiUrl,
|
|
6116
|
+
apiKey: apiConfig.apiKey,
|
|
6117
|
+
credentialInfo,
|
|
6118
|
+
serverTerminalStatus,
|
|
6119
|
+
rateLimitWindows: result.rateLimitWindows
|
|
6120
|
+
});
|
|
6121
|
+
}
|
|
6048
6122
|
console.log(`[${role}] Task ${taskId.slice(0, 8)} was already ${serverTerminalStatus} server-side — slot released, server result kept`);
|
|
6049
6123
|
return;
|
|
6050
6124
|
}
|