@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
|
@@ -45,15 +45,17 @@ import {
|
|
|
45
45
|
loggerFor,
|
|
46
46
|
defaultLogger,
|
|
47
47
|
debugLogRequestDetails,
|
|
48
|
+
linkAbort,
|
|
48
49
|
isStatus,
|
|
49
50
|
isFatal4xx,
|
|
50
51
|
backoff,
|
|
51
52
|
jitter,
|
|
52
53
|
applyJitter,
|
|
54
|
+
AsyncQueue,
|
|
53
55
|
ToolError,
|
|
54
56
|
checkMemorySyncInterval,
|
|
55
57
|
promiseWithResolvers
|
|
56
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-emdfd8fh.js";
|
|
57
59
|
import {
|
|
58
60
|
require_dist2
|
|
59
61
|
} from "./cli-xf1wn5ns.js";
|
|
@@ -80,7 +82,7 @@ var sleep = (ms, signal) => new Promise((resolve) => {
|
|
|
80
82
|
});
|
|
81
83
|
|
|
82
84
|
// node_modules/@anthropic-ai/sdk/version.mjs
|
|
83
|
-
var VERSION = "1.
|
|
85
|
+
var VERSION = "1.9.0";
|
|
84
86
|
|
|
85
87
|
// node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs
|
|
86
88
|
var isRunningInBrowser = () => {
|
|
@@ -2825,6 +2827,13 @@ var OrganizationTypeNotSupportedError = /* @__PURE__ */ (() => {
|
|
|
2825
2827
|
OrganizationTypeNotSupportedError._errorName = "OrganizationTypeNotSupportedError";
|
|
2826
2828
|
return OrganizationTypeNotSupportedError;
|
|
2827
2829
|
})();
|
|
2830
|
+
var ParentOrganizationRequiredError = /* @__PURE__ */ (() => {
|
|
2831
|
+
|
|
2832
|
+
class ParentOrganizationRequiredError extends BadRequestError {
|
|
2833
|
+
}
|
|
2834
|
+
ParentOrganizationRequiredError._errorName = "ParentOrganizationRequiredError";
|
|
2835
|
+
return ParentOrganizationRequiredError;
|
|
2836
|
+
})();
|
|
2828
2837
|
var RequestBodyEncodingInvalidError = /* @__PURE__ */ (() => {
|
|
2829
2838
|
|
|
2830
2839
|
class RequestBodyEncodingInvalidError extends BadRequestError {
|
|
@@ -3494,19 +3503,6 @@ var uuid4 = function() {
|
|
|
3494
3503
|
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c) => (+c ^ randomByte() & 15 >> +c / 4).toString(16));
|
|
3495
3504
|
};
|
|
3496
3505
|
|
|
3497
|
-
// node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs
|
|
3498
|
-
function linkAbort(external, controller) {
|
|
3499
|
-
if (!external)
|
|
3500
|
-
return () => {};
|
|
3501
|
-
if (external.aborted) {
|
|
3502
|
-
controller.abort();
|
|
3503
|
-
return () => {};
|
|
3504
|
-
}
|
|
3505
|
-
const onAbort = () => controller.abort();
|
|
3506
|
-
external.addEventListener("abort", onAbort);
|
|
3507
|
-
return () => external.removeEventListener("abort", onAbort);
|
|
3508
|
-
}
|
|
3509
|
-
|
|
3510
3506
|
// node_modules/@anthropic-ai/sdk/lib/helper-client.mjs
|
|
3511
3507
|
function copyClientForHelper(client, { authToken, helper }) {
|
|
3512
3508
|
if (!authToken) {
|
|
@@ -3726,67 +3722,6 @@ var fromBase64 = (str) => {
|
|
|
3726
3722
|
// node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs
|
|
3727
3723
|
var import_api7 = __toESM(require_src4(), 1);
|
|
3728
3724
|
|
|
3729
|
-
// node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs
|
|
3730
|
-
var _AsyncQueue_items;
|
|
3731
|
-
var _AsyncQueue_waiters;
|
|
3732
|
-
var _AsyncQueue_closed;
|
|
3733
|
-
var AsyncQueue = /* @__PURE__ */ (() => {
|
|
3734
|
-
|
|
3735
|
-
class AsyncQueue {
|
|
3736
|
-
constructor() {
|
|
3737
|
-
_AsyncQueue_items.set(this, []);
|
|
3738
|
-
_AsyncQueue_waiters.set(this, []);
|
|
3739
|
-
_AsyncQueue_closed.set(this, false);
|
|
3740
|
-
}
|
|
3741
|
-
push(item) {
|
|
3742
|
-
if (__classPrivateFieldGet(this, _AsyncQueue_closed, "f"))
|
|
3743
|
-
return false;
|
|
3744
|
-
const w = __classPrivateFieldGet(this, _AsyncQueue_waiters, "f").shift();
|
|
3745
|
-
if (w)
|
|
3746
|
-
w({ done: false, value: item });
|
|
3747
|
-
else
|
|
3748
|
-
__classPrivateFieldGet(this, _AsyncQueue_items, "f").push(item);
|
|
3749
|
-
return true;
|
|
3750
|
-
}
|
|
3751
|
-
close() {
|
|
3752
|
-
if (__classPrivateFieldGet(this, _AsyncQueue_closed, "f"))
|
|
3753
|
-
return;
|
|
3754
|
-
__classPrivateFieldSet(this, _AsyncQueue_closed, true, "f");
|
|
3755
|
-
while (__classPrivateFieldGet(this, _AsyncQueue_waiters, "f").length > 0) {
|
|
3756
|
-
const w = __classPrivateFieldGet(this, _AsyncQueue_waiters, "f").shift();
|
|
3757
|
-
w({ done: true, value: undefined });
|
|
3758
|
-
}
|
|
3759
|
-
}
|
|
3760
|
-
next(signal) {
|
|
3761
|
-
if (__classPrivateFieldGet(this, _AsyncQueue_items, "f").length > 0) {
|
|
3762
|
-
return Promise.resolve({ done: false, value: __classPrivateFieldGet(this, _AsyncQueue_items, "f").shift() });
|
|
3763
|
-
}
|
|
3764
|
-
if (__classPrivateFieldGet(this, _AsyncQueue_closed, "f") || signal?.aborted) {
|
|
3765
|
-
return Promise.resolve({ done: true, value: undefined });
|
|
3766
|
-
}
|
|
3767
|
-
return new Promise((resolve) => {
|
|
3768
|
-
const waiter = (r) => {
|
|
3769
|
-
signal?.removeEventListener("abort", onAbort);
|
|
3770
|
-
resolve(r);
|
|
3771
|
-
};
|
|
3772
|
-
const onAbort = () => {
|
|
3773
|
-
const idx = __classPrivateFieldGet(this, _AsyncQueue_waiters, "f").indexOf(waiter);
|
|
3774
|
-
if (idx >= 0)
|
|
3775
|
-
__classPrivateFieldGet(this, _AsyncQueue_waiters, "f").splice(idx, 1);
|
|
3776
|
-
resolve({ done: true, value: undefined });
|
|
3777
|
-
};
|
|
3778
|
-
__classPrivateFieldGet(this, _AsyncQueue_waiters, "f").push(waiter);
|
|
3779
|
-
signal?.addEventListener("abort", onAbort, { once: true });
|
|
3780
|
-
});
|
|
3781
|
-
}
|
|
3782
|
-
tryShift() {
|
|
3783
|
-
return __classPrivateFieldGet(this, _AsyncQueue_items, "f").shift();
|
|
3784
|
-
}
|
|
3785
|
-
}
|
|
3786
|
-
_AsyncQueue_items = new WeakMap, _AsyncQueue_waiters = new WeakMap, _AsyncQueue_closed = new WeakMap;
|
|
3787
|
-
return AsyncQueue;
|
|
3788
|
-
})();
|
|
3789
|
-
|
|
3790
3725
|
// node_modules/@anthropic-ai/sdk/lib/internal/toolsets/sanitize.mjs
|
|
3791
3726
|
var LINE_UNSAFE = "\\x00-\\x1f\\x7f-\\x9f\\u061c\\u200e\\u200f\\u2028\\u2029\\u202a-\\u202e\\u2066-\\u2069";
|
|
3792
3727
|
var CONTROL_RE = /* @__PURE__ */ (() => new RegExp(`[${LINE_UNSAFE}]+`, "g"))();
|
|
@@ -4516,7 +4451,7 @@ var EnvironmentWorker = /* @__PURE__ */ (() => {
|
|
|
4516
4451
|
const ctrl = new AbortController;
|
|
4517
4452
|
const detachExternal = linkAbort(externalSignal, ctrl);
|
|
4518
4453
|
const lease = new Lease(ctrl);
|
|
4519
|
-
const agentToolset = await import("./node-
|
|
4454
|
+
const agentToolset = await import("./node-rxte5hc6.js");
|
|
4520
4455
|
let leaseTtlMs;
|
|
4521
4456
|
let runner;
|
|
4522
4457
|
const heartbeatPromise = heartbeatLoop(sessionClient, work, lease, log, this.requestOptions, (ttlMs) => {
|
|
@@ -5444,7 +5379,7 @@ class Batches extends APIResource {
|
|
|
5444
5379
|
...options,
|
|
5445
5380
|
headers: buildHeaders([
|
|
5446
5381
|
{
|
|
5447
|
-
"anthropic-beta":
|
|
5382
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
5448
5383
|
...user_profile_id != null ? { "anthropic-user-profile-id": user_profile_id } : undefined,
|
|
5449
5384
|
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
5450
5385
|
},
|
|
@@ -5464,7 +5399,7 @@ class Batches extends APIResource {
|
|
|
5464
5399
|
...options,
|
|
5465
5400
|
headers: buildHeaders([
|
|
5466
5401
|
{
|
|
5467
|
-
"anthropic-beta":
|
|
5402
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
5468
5403
|
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
5469
5404
|
},
|
|
5470
5405
|
options?.headers
|
|
@@ -5483,7 +5418,7 @@ class Batches extends APIResource {
|
|
|
5483
5418
|
...options,
|
|
5484
5419
|
headers: buildHeaders([
|
|
5485
5420
|
{
|
|
5486
|
-
"anthropic-beta":
|
|
5421
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
5487
5422
|
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
5488
5423
|
},
|
|
5489
5424
|
options?.headers
|
|
@@ -5501,7 +5436,7 @@ class Batches extends APIResource {
|
|
|
5501
5436
|
...options,
|
|
5502
5437
|
headers: buildHeaders([
|
|
5503
5438
|
{
|
|
5504
|
-
"anthropic-beta":
|
|
5439
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
5505
5440
|
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
5506
5441
|
},
|
|
5507
5442
|
options?.headers
|
|
@@ -5519,7 +5454,7 @@ class Batches extends APIResource {
|
|
|
5519
5454
|
...options,
|
|
5520
5455
|
headers: buildHeaders([
|
|
5521
5456
|
{
|
|
5522
|
-
"anthropic-beta":
|
|
5457
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
5523
5458
|
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
5524
5459
|
},
|
|
5525
5460
|
options?.headers
|
|
@@ -5541,8 +5476,8 @@ class Batches extends APIResource {
|
|
|
5541
5476
|
...options,
|
|
5542
5477
|
headers: buildHeaders([
|
|
5543
5478
|
{
|
|
5544
|
-
"anthropic-beta": [...betas ?? [], "message-batches-2024-09-24"].toString(),
|
|
5545
5479
|
Accept: "application/binary",
|
|
5480
|
+
...betas?.toString() != null ? { "anthropic-beta": betas?.toString() } : undefined,
|
|
5546
5481
|
...workspace_id != null ? { "anthropic-workspace-id": workspace_id } : undefined
|
|
5547
5482
|
},
|
|
5548
5483
|
options?.headers
|
|
@@ -5678,15 +5613,15 @@ function assertOneOutputFormat(params) {
|
|
|
5678
5613
|
}
|
|
5679
5614
|
|
|
5680
5615
|
// node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs
|
|
5616
|
+
var LITERALS = ["true", "false", "null"];
|
|
5617
|
+
var isWhitespace = (char) => char === " " || char === "\t" || char === `
|
|
5618
|
+
` || char === "\r";
|
|
5619
|
+
var isTruncatedLiteral = (word, rest) => LITERALS.some((literal) => literal !== word && literal.startsWith(word)) && [...rest].every(isWhitespace);
|
|
5681
5620
|
var tokenize = (input) => {
|
|
5682
5621
|
let current = 0;
|
|
5683
5622
|
let tokens = [];
|
|
5684
5623
|
while (current < input.length) {
|
|
5685
5624
|
let char = input[current];
|
|
5686
|
-
if (char === "\\") {
|
|
5687
|
-
current++;
|
|
5688
|
-
continue;
|
|
5689
|
-
}
|
|
5690
5625
|
if (char === "{") {
|
|
5691
5626
|
tokens.push({
|
|
5692
5627
|
type: "brace",
|
|
@@ -5766,8 +5701,7 @@ var tokenize = (input) => {
|
|
|
5766
5701
|
}
|
|
5767
5702
|
continue;
|
|
5768
5703
|
}
|
|
5769
|
-
|
|
5770
|
-
if (char && WHITESPACE.test(char)) {
|
|
5704
|
+
if (isWhitespace(char)) {
|
|
5771
5705
|
current++;
|
|
5772
5706
|
continue;
|
|
5773
5707
|
}
|
|
@@ -5799,18 +5733,17 @@ var tokenize = (input) => {
|
|
|
5799
5733
|
value += char;
|
|
5800
5734
|
char = input[++current];
|
|
5801
5735
|
}
|
|
5802
|
-
if (value
|
|
5736
|
+
if (LITERALS.includes(value)) {
|
|
5803
5737
|
tokens.push({
|
|
5804
5738
|
type: "name",
|
|
5805
5739
|
value
|
|
5806
5740
|
});
|
|
5807
|
-
} else {
|
|
5808
|
-
|
|
5809
|
-
continue;
|
|
5741
|
+
} else if (!isTruncatedLiteral(value, input.slice(current))) {
|
|
5742
|
+
return null;
|
|
5810
5743
|
}
|
|
5811
5744
|
continue;
|
|
5812
5745
|
}
|
|
5813
|
-
|
|
5746
|
+
return null;
|
|
5814
5747
|
}
|
|
5815
5748
|
return tokens;
|
|
5816
5749
|
};
|
|
@@ -5857,22 +5790,18 @@ var strip = (tokens) => {
|
|
|
5857
5790
|
};
|
|
5858
5791
|
var unstrip = (tokens) => {
|
|
5859
5792
|
let tail = [];
|
|
5860
|
-
|
|
5861
|
-
if (token.type
|
|
5862
|
-
|
|
5863
|
-
tail.push("}");
|
|
5864
|
-
} else {
|
|
5865
|
-
tail.splice(tail.lastIndexOf("}"), 1);
|
|
5866
|
-
}
|
|
5793
|
+
for (const token of tokens) {
|
|
5794
|
+
if (token.type !== "brace" && token.type !== "paren") {
|
|
5795
|
+
continue;
|
|
5867
5796
|
}
|
|
5868
|
-
if (token.
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5797
|
+
if (token.value === "{") {
|
|
5798
|
+
tail.push("}");
|
|
5799
|
+
} else if (token.value === "[") {
|
|
5800
|
+
tail.push("]");
|
|
5801
|
+
} else if (tail.pop() !== token.value) {
|
|
5802
|
+
return null;
|
|
5874
5803
|
}
|
|
5875
|
-
}
|
|
5804
|
+
}
|
|
5876
5805
|
if (tail.length > 0) {
|
|
5877
5806
|
tail.reverse().map((item) => {
|
|
5878
5807
|
if (item === "}") {
|
|
@@ -5890,9 +5819,13 @@ var unstrip = (tokens) => {
|
|
|
5890
5819
|
}
|
|
5891
5820
|
return tokens;
|
|
5892
5821
|
};
|
|
5822
|
+
var isScalar = (token) => token?.type === "string" || token?.type === "number" || token?.type === "name";
|
|
5893
5823
|
var generate = (tokens) => {
|
|
5894
5824
|
let output = "";
|
|
5895
|
-
tokens.map((token) => {
|
|
5825
|
+
tokens.map((token, index) => {
|
|
5826
|
+
if (isScalar(tokens[index - 1]) && isScalar(token)) {
|
|
5827
|
+
output += " ";
|
|
5828
|
+
}
|
|
5896
5829
|
switch (token.type) {
|
|
5897
5830
|
case "string":
|
|
5898
5831
|
output += '"' + token.value + '"';
|
|
@@ -5904,7 +5837,11 @@ var generate = (tokens) => {
|
|
|
5904
5837
|
});
|
|
5905
5838
|
return output;
|
|
5906
5839
|
};
|
|
5907
|
-
var partialParse = (input) =>
|
|
5840
|
+
var partialParse = (input) => {
|
|
5841
|
+
const tokens = tokenize(input);
|
|
5842
|
+
const completed = tokens && unstrip(strip(tokens));
|
|
5843
|
+
return JSON.parse(completed ? generate(completed) : input);
|
|
5844
|
+
};
|
|
5908
5845
|
|
|
5909
5846
|
// node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs
|
|
5910
5847
|
var JSON_BUF_PROPERTY = "__json_buf";
|
|
@@ -7816,6 +7753,22 @@ var Bundles = /* @__PURE__ */ (() => {
|
|
|
7816
7753
|
})
|
|
7817
7754
|
});
|
|
7818
7755
|
}
|
|
7756
|
+
update(bundleID, params, options) {
|
|
7757
|
+
const { betas, ...body } = params;
|
|
7758
|
+
return this._client.post(path`/v1/organizations/claude_tag/bundles/${bundleID}`, {
|
|
7759
|
+
body,
|
|
7760
|
+
...options,
|
|
7761
|
+
headers: buildHeaders([
|
|
7762
|
+
{ "anthropic-beta": [...betas ?? [], "experimental-claude-tag-2026-10-21"].toString() },
|
|
7763
|
+
options?.headers
|
|
7764
|
+
]),
|
|
7765
|
+
__qualifiers: { beta: "true" },
|
|
7766
|
+
__span: startApiCallSpan(this._client, "anthropic.organization.claude_tag.bundles.update", options, {
|
|
7767
|
+
route: "/v1/organizations/claude_tag/bundles/{bundle_id}",
|
|
7768
|
+
attributes: { "anthropic.organization.claude_tag.bundle.id": bundleID }
|
|
7769
|
+
})
|
|
7770
|
+
});
|
|
7771
|
+
}
|
|
7819
7772
|
list(params = {}, options) {
|
|
7820
7773
|
const { betas, ...query } = params ?? {};
|
|
7821
7774
|
return this._client.getAPIList("/v1/organizations/claude_tag/bundles", PageCursor, {
|
|
@@ -7838,7 +7791,21 @@ var Bundles = /* @__PURE__ */ (() => {
|
|
|
7838
7791
|
})();
|
|
7839
7792
|
|
|
7840
7793
|
// node_modules/@anthropic-ai/sdk/resources/beta/organization/claude-tag/claude-tag.mjs
|
|
7794
|
+
var BetaBundleAttachmentNotSupportedError = /* @__PURE__ */ (() => {
|
|
7795
|
+
class BetaBundleAttachmentNotSupportedError extends BadRequestError {
|
|
7796
|
+
}
|
|
7797
|
+
BetaBundleAttachmentNotSupportedError._errorName = "BetaBundleAttachmentNotSupportedError";
|
|
7798
|
+
return BetaBundleAttachmentNotSupportedError;
|
|
7799
|
+
})();
|
|
7800
|
+
var BetaBundleOnCallError = /* @__PURE__ */ (() => {
|
|
7801
|
+
|
|
7802
|
+
class BetaBundleOnCallError extends BadRequestError {
|
|
7803
|
+
}
|
|
7804
|
+
BetaBundleOnCallError._errorName = "BetaBundleOnCallError";
|
|
7805
|
+
return BetaBundleOnCallError;
|
|
7806
|
+
})();
|
|
7841
7807
|
var BetaSlackChannelSetUpSettingsRefusedError = /* @__PURE__ */ (() => {
|
|
7808
|
+
|
|
7842
7809
|
class BetaSlackChannelSetUpSettingsRefusedError extends BadRequestError {
|
|
7843
7810
|
}
|
|
7844
7811
|
BetaSlackChannelSetUpSettingsRefusedError._errorName = "BetaSlackChannelSetUpSettingsRefusedError";
|
|
@@ -7896,6 +7863,8 @@ var ClaudeTag = /* @__PURE__ */ (() => {
|
|
|
7896
7863
|
this.bundles = new Bundles(this._client);
|
|
7897
7864
|
}
|
|
7898
7865
|
}
|
|
7866
|
+
ClaudeTag.BetaBundleAttachmentNotSupportedError = BetaBundleAttachmentNotSupportedError;
|
|
7867
|
+
ClaudeTag.BetaBundleOnCallError = BetaBundleOnCallError;
|
|
7899
7868
|
ClaudeTag.BetaSlackChannelSetUpSettingsRefusedError = BetaSlackChannelSetUpSettingsRefusedError;
|
|
7900
7869
|
ClaudeTag.BetaAPIKeyScopeMissingError = BetaAPIKeyScopeMissingError;
|
|
7901
7870
|
ClaudeTag.BetaClaudeTagWritesNotEnabledError = BetaClaudeTagWritesNotEnabledError;
|
|
@@ -9403,6 +9372,8 @@ var Organization = /* @__PURE__ */ (() => {
|
|
|
9403
9372
|
Organization.TelemetryDestinations = TelemetryDestinations;
|
|
9404
9373
|
Organization.Webhooks = Webhooks2;
|
|
9405
9374
|
Organization.ClaudeTag = ClaudeTag;
|
|
9375
|
+
Organization.BetaBundleAttachmentNotSupportedError = BetaBundleAttachmentNotSupportedError;
|
|
9376
|
+
Organization.BetaBundleOnCallError = BetaBundleOnCallError;
|
|
9406
9377
|
Organization.BetaSlackChannelSetUpSettingsRefusedError = BetaSlackChannelSetUpSettingsRefusedError;
|
|
9407
9378
|
Organization.BetaAPIKeyScopeMissingError = BetaAPIKeyScopeMissingError;
|
|
9408
9379
|
Organization.BetaClaudeTagWritesNotEnabledError = BetaClaudeTagWritesNotEnabledError;
|
|
@@ -14433,6 +14404,13 @@ var OrgMemberLimitExceededError = /* @__PURE__ */ (() => {
|
|
|
14433
14404
|
OrgMemberLimitExceededError._errorName = "OrgMemberLimitExceededError";
|
|
14434
14405
|
return OrgMemberLimitExceededError;
|
|
14435
14406
|
})();
|
|
14407
|
+
var RBACRoleNotFoundError = /* @__PURE__ */ (() => {
|
|
14408
|
+
|
|
14409
|
+
class RBACRoleNotFoundError extends NotFoundError2 {
|
|
14410
|
+
}
|
|
14411
|
+
RBACRoleNotFoundError._errorName = "RBACRoleNotFoundError";
|
|
14412
|
+
return RBACRoleNotFoundError;
|
|
14413
|
+
})();
|
|
14436
14414
|
var ConcurrentMembershipChangeError = /* @__PURE__ */ (() => {
|
|
14437
14415
|
|
|
14438
14416
|
class ConcurrentMembershipChangeError extends ConflictError {
|
|
@@ -14469,6 +14447,7 @@ var Organization2 = /* @__PURE__ */ (() => {
|
|
|
14469
14447
|
}
|
|
14470
14448
|
}
|
|
14471
14449
|
Organization.OrgMemberLimitExceededError = OrgMemberLimitExceededError;
|
|
14450
|
+
Organization.RBACRoleNotFoundError = RBACRoleNotFoundError;
|
|
14472
14451
|
Organization.ConcurrentMembershipChangeError = ConcurrentMembershipChangeError;
|
|
14473
14452
|
Organization.APIKeys = APIKeys2;
|
|
14474
14453
|
Organization.OrgAPIKeyLimitExceededError = OrgAPIKeyLimitExceededError;
|
|
@@ -14760,6 +14739,8 @@ var UserProfiles2 = /* @__PURE__ */ (() => {
|
|
|
14760
14739
|
var ERROR_CODE_CLASSES = /* @__PURE__ */ new Map([
|
|
14761
14740
|
["400 already_member", AlreadyMemberError],
|
|
14762
14741
|
["400 available_tools_limit_exceeded", AvailableToolsLimitExceededError],
|
|
14742
|
+
["400 bundle_attachment_not_supported", BetaBundleAttachmentNotSupportedError],
|
|
14743
|
+
["400 bundle_on_call", BetaBundleOnCallError],
|
|
14763
14744
|
["400 cannot_invite_emails_with_unverified_domains", CannotInviteEmailsWithUnverifiedDomainsError],
|
|
14764
14745
|
["400 cannot_remove_last_member", CannotRemoveLastMemberError],
|
|
14765
14746
|
["400 cannot_sign_out_primary_owner", BetaCannotSignOutPrimaryOwnerError],
|
|
@@ -14791,6 +14772,7 @@ var ERROR_CODE_CLASSES = /* @__PURE__ */ new Map([
|
|
|
14791
14772
|
["400 organization_not_enrolled_in_beta", BetaOrganizationNotEnrolledInBetaError],
|
|
14792
14773
|
["400 organization_on_hold", OrganizationOnHoldError],
|
|
14793
14774
|
["400 organization_type_not_supported", OrganizationTypeNotSupportedError],
|
|
14775
|
+
["400 parent_organization_required", ParentOrganizationRequiredError],
|
|
14794
14776
|
["400 rbac_group_grants_owner_access", RBACGroupGrantsOwnerAccessError],
|
|
14795
14777
|
["400 rbac_group_owner_access_unconfirmed", RBACGroupOwnerAccessUnconfirmedError],
|
|
14796
14778
|
["400 request_body_encoding_invalid", RequestBodyEncodingInvalidError],
|
|
@@ -14823,6 +14805,7 @@ var ERROR_CODE_CLASSES = /* @__PURE__ */ new Map([
|
|
|
14823
14805
|
["403 spend_limits_admin_api_writes_not_enabled", BetaSpendLimitsAdminAPIWritesNotEnabledError],
|
|
14824
14806
|
["404 environment_not_found", BetaEnvironmentNotFoundError],
|
|
14825
14807
|
["404 file_expired", FileExpiredError],
|
|
14808
|
+
["404 rbac_role_not_found", RBACRoleNotFoundError],
|
|
14826
14809
|
["404 slack_channel_set_up_environment_not_found", BetaSlackChannelSetUpEnvironmentNotFoundError],
|
|
14827
14810
|
["404 thread_not_found", ThreadNotFoundError],
|
|
14828
14811
|
["409 concurrent_membership_change", ConcurrentMembershipChangeError],
|
|
@@ -14914,7 +14897,7 @@ function redactSensitive(body) {
|
|
|
14914
14897
|
async function checkCredentialsFileSafety(path, onWarn = (m) => console.warn(`anthropic-sdk: ${m}`)) {
|
|
14915
14898
|
if (typeof process === "undefined" || process.platform === "win32")
|
|
14916
14899
|
return;
|
|
14917
|
-
const { fs } = await import("./node-
|
|
14900
|
+
const { fs } = await import("./node-t0ct2zpw.js");
|
|
14918
14901
|
let resolved = path;
|
|
14919
14902
|
let st;
|
|
14920
14903
|
try {
|
|
@@ -14935,7 +14918,7 @@ async function checkCredentialsFileSafety(path, onWarn = (m) => console.warn(`an
|
|
|
14935
14918
|
}
|
|
14936
14919
|
}
|
|
14937
14920
|
async function writeCredentialsFileAtomic(targetPath, data) {
|
|
14938
|
-
const { fs, path } = await import("./node-
|
|
14921
|
+
const { fs, path } = await import("./node-t0ct2zpw.js");
|
|
14939
14922
|
const dir = path.dirname(targetPath);
|
|
14940
14923
|
await fs.promises.mkdir(dir, { recursive: true, mode: 448 });
|
|
14941
14924
|
const tmpPath = `${targetPath}.${process.pid}.${Math.random().toString(36).slice(2)}.tmp`;
|
|
@@ -15136,7 +15119,7 @@ var loadConfigWithSource = async (profile) => {
|
|
|
15136
15119
|
return null;
|
|
15137
15120
|
}
|
|
15138
15121
|
validateProfileName(profileName);
|
|
15139
|
-
const { fs, path } = await import("./node-
|
|
15122
|
+
const { fs, path } = await import("./node-t0ct2zpw.js");
|
|
15140
15123
|
const configPath = path.join(rootConfigPath, "configs", `${profileName}.json`);
|
|
15141
15124
|
let configRaw;
|
|
15142
15125
|
try {
|
|
@@ -15197,14 +15180,14 @@ var getCredentialsPath = async (config, profile) => {
|
|
|
15197
15180
|
return null;
|
|
15198
15181
|
}
|
|
15199
15182
|
validateProfileName(profileName);
|
|
15200
|
-
const { path } = await import("./node-
|
|
15183
|
+
const { path } = await import("./node-t0ct2zpw.js");
|
|
15201
15184
|
return path.join(rootConfigPath, "credentials", `${profileName}.json`);
|
|
15202
15185
|
};
|
|
15203
15186
|
var getRootConfigPath = async () => {
|
|
15204
15187
|
if (!supportsLocalConfigFiles()) {
|
|
15205
15188
|
return null;
|
|
15206
15189
|
}
|
|
15207
|
-
const { path } = await import("./node-
|
|
15190
|
+
const { path } = await import("./node-t0ct2zpw.js");
|
|
15208
15191
|
const configDir = readEnv("ANTHROPIC_CONFIG_DIR");
|
|
15209
15192
|
if (configDir) {
|
|
15210
15193
|
return configDir;
|
|
@@ -15244,7 +15227,7 @@ var getActiveProfileName = async () => {
|
|
|
15244
15227
|
if (profileName) {
|
|
15245
15228
|
return profileName;
|
|
15246
15229
|
}
|
|
15247
|
-
const { fs, path } = await import("./node-
|
|
15230
|
+
const { fs, path } = await import("./node-t0ct2zpw.js");
|
|
15248
15231
|
const filePath = path.join(rootConfigPath, "active_config");
|
|
15249
15232
|
try {
|
|
15250
15233
|
return (await fs.promises.readFile(filePath, "utf-8")).trim() || "default";
|
|
@@ -15262,7 +15245,7 @@ function identityTokenFromFile(path) {
|
|
|
15262
15245
|
throw new AnthropicError("Identity token file path is empty");
|
|
15263
15246
|
}
|
|
15264
15247
|
return async () => {
|
|
15265
|
-
const { fs } = await import("./node-
|
|
15248
|
+
const { fs } = await import("./node-t0ct2zpw.js");
|
|
15266
15249
|
let content;
|
|
15267
15250
|
try {
|
|
15268
15251
|
content = await fs.promises.readFile(path, "utf-8");
|
|
@@ -15345,7 +15328,7 @@ function oidcFederationProvider(config) {
|
|
|
15345
15328
|
// node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs
|
|
15346
15329
|
function userOAuthProvider(config) {
|
|
15347
15330
|
return async (opts) => {
|
|
15348
|
-
const { fs } = await import("./node-
|
|
15331
|
+
const { fs } = await import("./node-t0ct2zpw.js");
|
|
15349
15332
|
await checkCredentialsFileSafety(config.credentialsPath, config.onSafetyWarning);
|
|
15350
15333
|
let raw;
|
|
15351
15334
|
try {
|
|
@@ -15514,7 +15497,7 @@ function resolveIdentityTokenProvider(auth) {
|
|
|
15514
15497
|
}
|
|
15515
15498
|
function cachedExchangeProvider(exchange, credentialsPath, onCacheWriteError, onSafetyWarning) {
|
|
15516
15499
|
return async (opts) => {
|
|
15517
|
-
const { fs } = await import("./node-
|
|
15500
|
+
const { fs } = await import("./node-t0ct2zpw.js");
|
|
15518
15501
|
await checkCredentialsFileSafety(credentialsPath, onSafetyWarning);
|
|
15519
15502
|
let existing;
|
|
15520
15503
|
try {
|
|
@@ -16513,6 +16496,7 @@ var Anthropic = /* @__PURE__ */ (() => {
|
|
|
16513
16496
|
Anthropic.UserProfileNotFoundError = UserProfileNotFoundError;
|
|
16514
16497
|
Anthropic.Organization = Organization2;
|
|
16515
16498
|
Anthropic.OrgMemberLimitExceededError = OrgMemberLimitExceededError;
|
|
16499
|
+
Anthropic.RBACRoleNotFoundError = RBACRoleNotFoundError;
|
|
16516
16500
|
Anthropic.ConcurrentMembershipChangeError = ConcurrentMembershipChangeError;
|
|
16517
16501
|
Anthropic.Beta = Beta;
|
|
16518
16502
|
Anthropic.BetaOrganizationNotEnrolledInBetaError = BetaOrganizationNotEnrolledInBetaError;
|
|
@@ -16523,6 +16507,7 @@ var Anthropic = /* @__PURE__ */ (() => {
|
|
|
16523
16507
|
Anthropic.CMEKKeyNetworkBlockedError = CMEKKeyNetworkBlockedError;
|
|
16524
16508
|
Anthropic.OrganizationOnHoldError = OrganizationOnHoldError;
|
|
16525
16509
|
Anthropic.OrganizationTypeNotSupportedError = OrganizationTypeNotSupportedError;
|
|
16510
|
+
Anthropic.ParentOrganizationRequiredError = ParentOrganizationRequiredError;
|
|
16526
16511
|
Anthropic.RequestBodyEncodingInvalidError = RequestBodyEncodingInvalidError;
|
|
16527
16512
|
Anthropic.RequestBodyEncodingUnsupportedError = RequestBodyEncodingUnsupportedError;
|
|
16528
16513
|
Anthropic.SandboxEgressRestrictedError = SandboxEgressRestrictedError;
|
|
@@ -70,11 +70,11 @@ import {
|
|
|
70
70
|
getStaleApprovalRequests2,
|
|
71
71
|
upsertKv2,
|
|
72
72
|
init_db4
|
|
73
|
-
} from "./cli-
|
|
73
|
+
} from "./cli-zzq96q57.js";
|
|
74
74
|
import {
|
|
75
75
|
listRuntimePools2,
|
|
76
76
|
init_db2
|
|
77
|
-
} from "./cli-
|
|
77
|
+
} from "./cli-f9xw9pr4.js";
|
|
78
78
|
import {
|
|
79
79
|
runtimeStaleThresholdMinutes,
|
|
80
80
|
countActiveRuntimeInstancesForAgent,
|
|
@@ -84,15 +84,15 @@ import {
|
|
|
84
84
|
init_multi_runtime,
|
|
85
85
|
createApprovalFollowUpTask2,
|
|
86
86
|
init_approval_notifications
|
|
87
|
-
} from "./cli-
|
|
87
|
+
} from "./cli-evy3egte.js";
|
|
88
88
|
import {
|
|
89
89
|
userHoldsOperatorGrantedRole2,
|
|
90
90
|
assertMayActOnOperatorGrantedTarget2,
|
|
91
91
|
init_rbac_roles
|
|
92
|
-
} from "./cli-
|
|
92
|
+
} from "./cli-34fygf87.js";
|
|
93
93
|
import {
|
|
94
94
|
remediateStalledRuntime
|
|
95
|
-
} from "./cli-
|
|
95
|
+
} from "./cli-b42yfn17.js";
|
|
96
96
|
import {
|
|
97
97
|
recoverIncompleteRuns,
|
|
98
98
|
init_recovery,
|
|
@@ -120,13 +120,13 @@ import {
|
|
|
120
120
|
init_worker_follow_up,
|
|
121
121
|
canClaim,
|
|
122
122
|
init_budget_admission
|
|
123
|
-
} from "./cli-
|
|
123
|
+
} from "./cli-wzecestt.js";
|
|
124
124
|
import {
|
|
125
125
|
runScriptWithRunCredential,
|
|
126
126
|
init_run_credential,
|
|
127
127
|
runSavedScriptAsAgent,
|
|
128
128
|
init_run_saved
|
|
129
|
-
} from "./cli-
|
|
129
|
+
} from "./cli-ced4azn1.js";
|
|
130
130
|
import {
|
|
131
131
|
isMultiRuntimeEnabled,
|
|
132
132
|
init_multi_runtime2
|
|
@@ -135,13 +135,13 @@ import {
|
|
|
135
135
|
recordIdentityEvent,
|
|
136
136
|
mintToken,
|
|
137
137
|
init_users
|
|
138
|
-
} from "./cli-
|
|
138
|
+
} from "./cli-avax5mp9.js";
|
|
139
139
|
import {
|
|
140
140
|
registerTemplate,
|
|
141
141
|
init_registry3,
|
|
142
142
|
resolveTemplate,
|
|
143
143
|
init_resolver
|
|
144
|
-
} from "./cli-
|
|
144
|
+
} from "./cli-nrt048ys.js";
|
|
145
145
|
import {
|
|
146
146
|
DEFAULT_OPENROUTER_BASE_URL,
|
|
147
147
|
getOpenRouterBaseUrl,
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
OPEN_TASK_STATUSES,
|
|
153
153
|
SUPERSEDED_WORKFLOW_TASK_REASON,
|
|
154
154
|
init_types5
|
|
155
|
-
} from "./cli-
|
|
155
|
+
} from "./cli-7r9tvk8v.js";
|
|
156
156
|
import {
|
|
157
157
|
isEnvFlagEnabled,
|
|
158
158
|
init_env_flag
|
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
import {
|
|
161
161
|
init_package,
|
|
162
162
|
package_default
|
|
163
|
-
} from "./cli-
|
|
163
|
+
} from "./cli-hd5bm1e1.js";
|
|
164
164
|
import {
|
|
165
165
|
scrubSecrets,
|
|
166
166
|
init_secret_scrubber
|
|
@@ -1068,7 +1068,8 @@ async function remediateCrashedWorkerTask(findings, task, opts, decision) {
|
|
|
1068
1068
|
return false;
|
|
1069
1069
|
if (decision.action === "fail") {
|
|
1070
1070
|
const failed = await failTask2(task.id, decision.reason, {
|
|
1071
|
-
expectedLastUpdatedAt: task.lastUpdatedAt
|
|
1071
|
+
expectedLastUpdatedAt: task.lastUpdatedAt,
|
|
1072
|
+
statusKind: "error"
|
|
1072
1073
|
});
|
|
1073
1074
|
if (failed) {
|
|
1074
1075
|
await opts.onRemediated?.();
|
|
@@ -1093,6 +1094,7 @@ async function remediateCrashedWorkerTask(findings, task, opts, decision) {
|
|
|
1093
1094
|
await beforeHeartbeatSupersedeForTests?.(task);
|
|
1094
1095
|
const superseded = await supersedeTask2(task.id, {
|
|
1095
1096
|
reason: decision.reason,
|
|
1097
|
+
statusKind: "crash_recovery",
|
|
1096
1098
|
resumeTaskId: null,
|
|
1097
1099
|
expectedLastUpdatedAt: task.lastUpdatedAt
|
|
1098
1100
|
});
|
|
@@ -1189,7 +1191,10 @@ async function runRebootSweep2() {
|
|
|
1189
1191
|
}
|
|
1190
1192
|
if (session)
|
|
1191
1193
|
await deleteActiveSession2(task.id);
|
|
1192
|
-
const failed = await failTask2(task.id, reason, {
|
|
1194
|
+
const failed = await failTask2(task.id, reason, {
|
|
1195
|
+
cascadeDependents: false,
|
|
1196
|
+
statusKind: "error"
|
|
1197
|
+
});
|
|
1193
1198
|
if (!failed)
|
|
1194
1199
|
continue;
|
|
1195
1200
|
let retryTaskId = null;
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
deleteKv2,
|
|
20
20
|
listKv2,
|
|
21
21
|
init_db4
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-zzq96q57.js";
|
|
23
23
|
import {
|
|
24
24
|
ackSlackMessage,
|
|
25
25
|
skipSlackMessageReaction,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
init_watcher,
|
|
37
37
|
getSlackApp2,
|
|
38
38
|
init_app4
|
|
39
|
-
} from "./cli-
|
|
39
|
+
} from "./cli-zbbtp02a.js";
|
|
40
40
|
import {
|
|
41
41
|
applyPreTaskCreate,
|
|
42
42
|
init_apply_task_create,
|
|
@@ -55,21 +55,21 @@ import {
|
|
|
55
55
|
init_message_text,
|
|
56
56
|
createAdditiveBuffer,
|
|
57
57
|
init_additive_buffer
|
|
58
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-wzecestt.js";
|
|
59
59
|
import {
|
|
60
60
|
resolveSlackParticipant,
|
|
61
61
|
resolveSlackUserId,
|
|
62
62
|
rewriteSlackMentions,
|
|
63
63
|
init_enrich
|
|
64
|
-
} from "./cli-
|
|
64
|
+
} from "./cli-m8f4379k.js";
|
|
65
65
|
import {
|
|
66
66
|
isSlackThreadLeft,
|
|
67
67
|
init_left_threads
|
|
68
|
-
} from "./cli-
|
|
68
|
+
} from "./cli-r3dxpmyt.js";
|
|
69
69
|
import {
|
|
70
70
|
findUserByExternalId,
|
|
71
71
|
init_users
|
|
72
|
-
} from "./cli-
|
|
72
|
+
} from "./cli-avax5mp9.js";
|
|
73
73
|
import {
|
|
74
74
|
isSteeringEnabled2,
|
|
75
75
|
init_steering_enabled
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
import {
|
|
78
78
|
resolveTemplate,
|
|
79
79
|
init_resolver
|
|
80
|
-
} from "./cli-
|
|
80
|
+
} from "./cli-nrt048ys.js";
|
|
81
81
|
import {
|
|
82
82
|
scrubSecrets,
|
|
83
83
|
init_secret_scrubber
|