@desplega.ai/agent-swarm 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acp-adapter-ma1js5n7.js → acp-adapter-8dn5tq56.js} +6 -6
- package/dist/{actions-1vhmtvg9.js → actions-3r6gw7dy.js} +18 -18
- package/dist/{amp-adapter-sxqqvmdk.js → amp-adapter-wjtq413p.js} +3 -3
- package/dist/{anthropic-messages-txs190dd.js → anthropic-messages-n4cby1rz.js} +4 -4
- package/dist/{app-mwx1d5a9.js → app-d53yhykk.js} +3 -3
- package/dist/{assistant-yx1p6g82.js → assistant-ksrawj3k.js} +20 -20
- package/dist/{boot-reembed-7h78vmvv.js → boot-reembed-fxfw17m2.js} +10 -3
- package/dist/{boot-reembed-5h37a2c2.js → boot-reembed-k5y5xbj0.js} +15 -8
- package/dist/{boot-scrub-sweep-8mawd4gw.js → boot-scrub-sweep-se41j9fd.js} +3 -3
- package/dist/{boot-seeds-ca84dhnn.js → boot-seeds-r3kwwv8b.js} +4 -4
- package/dist/{claude-adapter-wqt4hfkq.js → claude-adapter-ahmyf231.js} +7 -7
- package/dist/{claude-managed-adapter-6fjqtr2z.js → claude-managed-adapter-5knamegc.js} +3 -3
- package/dist/{claude-managed-setup-rqv98sea.js → claude-managed-setup-mdc7dy6b.js} +2 -2
- package/dist/{claude-sdk-session-f29f3b2x.js → claude-sdk-session-n5wen9zk.js} +8728 -8599
- package/dist/{cli-m5e802r7.js → cli-0dqtv2jg.js} +2 -2
- package/dist/{cli-e1595bgx.js → cli-0tww7dnz.js} +2 -2
- package/dist/{cli-2y7v133v.js → cli-0w4e4v58.js} +7 -7
- package/dist/{cli-d20qvpr2.js → cli-2sjm3t4r.js} +1 -1
- package/dist/{cli-gf2850q7.js → cli-3cywb44q.js} +18 -1
- package/dist/{cli-8wkb09q5.js → cli-3k9jej0c.js} +2 -2
- package/dist/{cli-twctnkng.js → cli-3v2cyqb8.js} +3 -3
- package/dist/{cli-he9gbdx0.js → cli-5qt9vzmq.js} +39 -20
- package/dist/{cli-a6ds2epe.js → cli-5rp1w4cr.js} +1 -1
- package/dist/{cli-6srv653c.js → cli-6vwjsetx.js} +4 -4
- package/dist/{cli-1hhbzkbb.js → cli-6w2yrrc0.js} +8 -8
- package/dist/{cli-f12mr20z.js → cli-75tdydgv.js} +1 -1
- package/dist/{cli-j3y0x2n4.js → cli-8feswf2v.js} +43 -33
- package/dist/{cli-07q03xm2.js → cli-8wd3mbyj.js} +1 -1
- package/dist/{cli-ymjpkxgn.js → cli-9csfthbw.js} +8 -6
- package/dist/{cli-f1e0ptjj.js → cli-b41p764a.js} +21 -2
- package/dist/{cli-kv7sbc2c.js → cli-c1t533hh.js} +3 -3
- package/dist/{cli-54sj64fc.js → cli-c28jxpcv.js} +1 -1
- package/dist/{cli-8mbc9za9.js → cli-cb50g9cd.js} +1 -1
- package/dist/{cli-c668vvcf.js → cli-d8gaphtr.js} +1 -1
- package/dist/{cli-86ehn4s5.js → cli-dgtfysne.js} +2 -2
- package/dist/{cli-sjctjr48.js → cli-dscnhn18.js} +1 -1
- package/dist/{cli-j0ppywdr.js → cli-dv11pgpv.js} +12 -12
- package/dist/{cli-1m9x8dr5.js → cli-ekptgk2m.js} +5 -5
- package/dist/{cli-9gsm2rzp.js → cli-f3mzy662.js} +17 -17
- package/dist/{cli-s0mgx214.js → cli-fk7k8s9x.js} +2 -2
- package/dist/{cli-vbhgkw9h.js → cli-h3e7bhvn.js} +3 -3
- package/dist/{cli-yd2nreqw.js → cli-hkxqdmnb.js} +2 -2
- package/dist/{cli-8wmj18cz.js → cli-hpkvgdad.js} +7 -4
- package/dist/{cli-wqr7cea4.js → cli-hq2v4rr5.js} +37 -9
- package/dist/{cli-sgqm2582.js → cli-k1zb7raw.js} +5 -5
- package/dist/{cli-4rvr7zfx.js → cli-k4awgvzm.js} +5 -0
- package/dist/{cli-ay40dnj3.js → cli-k7d3hvya.js} +2 -2
- package/dist/{cli-j9bpmykh.js → cli-kbtdftbw.js} +5 -5
- package/dist/{cli-x37r7qwf.js → cli-kj69b9tw.js} +25 -5
- package/dist/{cli-gsfk58nw.js → cli-kk9jy4nm.js} +1 -1
- package/dist/{cli-39aet655.js → cli-m52t4cta.js} +1 -1
- package/dist/{cli-h5jeg46p.js → cli-mdadewqp.js} +5 -5
- package/dist/{cli-a89zdqz9.js → cli-nf6k60sn.js} +1 -1
- package/dist/{cli-v6shg7na.js → cli-nzdf09js.js} +1 -1
- package/dist/{cli-rr7zx19j.js → cli-prcyzecg.js} +12 -12
- package/dist/{cli-6a9qfa8b.js → cli-pzafyqtk.js} +118 -48
- package/dist/{cli-48gxjmcz.js → cli-qvaa1gjp.js} +87 -24
- package/dist/{cli-qj442fws.js → cli-rg4b2g6j.js} +1 -1
- package/dist/{cli-aypd09nf.js → cli-rm66vqdz.js} +1 -1
- package/dist/{cli-9pshx6rd.js → cli-s504c3w7.js} +1 -1
- package/dist/{cli-ptfq202x.js → cli-swkx9jm2.js} +3 -3
- package/dist/{cli-m30k9777.js → cli-thsaq4pd.js} +16 -16
- package/dist/{cli-60sty27p.js → cli-twjnyvs8.js} +2 -2
- package/dist/{cli-rd5m70gj.js → cli-typdpe8g.js} +4 -4
- package/dist/{cli-yxbsmx56.js → cli-vg8pwmsd.js} +6 -6
- package/dist/{cli-s09j9vp5.js → cli-vhpckzvp.js} +1 -1
- package/dist/{cli-dv97kdzv.js → cli-wdxgsdz5.js} +2 -2
- package/dist/{cli-7a6p4e65.js → cli-wtjg6je3.js} +1 -1
- package/dist/{cli-b3yzyc57.js → cli-x3cngb1h.js} +44 -12
- package/dist/{cli-6mgdba42.js → cli-xbz6mcg4.js} +2 -2
- package/dist/{cli-2pvzmas1.js → cli-y4tdxsqb.js} +3 -3
- package/dist/{cli-f4dbh7a5.js → cli-yqrsp3ny.js} +7 -7
- package/dist/cli.js +27 -19
- package/dist/{codex-adapter-zk59x2zh.js → codex-adapter-7wepzq15.js} +5 -5
- package/dist/{codex-hook-xyjhvxwd.js → codex-hook-pbdh4xhx.js} +2 -2
- package/dist/{codex-session-runner-kh6s4j3n.js → codex-session-runner-02sb49e4.js} +5 -5
- package/dist/{commands-68et1qv2.js → commands-3rcspxct.js} +2 -2
- package/dist/{controller-fyrbnzg4.js → controller-8ar4avd6.js} +3 -3
- package/dist/{controllers-connect-nep9h2xv.js → controllers-connect-ajvh9h0v.js} +19 -19
- package/dist/{cursor-adapter-yss3pg7t.js → cursor-adapter-gd0sa7bh.js} +1 -1
- package/dist/{db-28gjyvxj.js → db-dv9j7ts5.js} +2 -2
- package/dist/{db-8ftwvzba.js → db-z26vgdvj.js} +3 -3
- package/dist/{dispatcher-hayexmkr.js → dispatcher-8m0htjq8.js} +17 -17
- package/dist/{dsh-adapter-46wawff9.js → dsh-adapter-y8gyk130.js} +1 -1
- package/dist/{e2b-fn3zacvt.js → e2b-74vg9b7e.js} +1 -1
- package/dist/{e2b-222hsajc.js → e2b-jyay8wzn.js} +1 -1
- package/dist/{easter-egg-3d-8d1e0h4m.js → easter-egg-3d-28f880xx.js} +1 -1
- package/dist/{execute-cjrfxfnm.js → execute-9seb79vh.js} +1 -1
- package/dist/{external-channel-xbmxcg09.js → external-channel-smz7jyth.js} +2 -2
- package/dist/{getMachineId-bsd-brn0xym3.js → getMachineId-bsd-whfre6gr.js} +3 -3
- package/dist/{getMachineId-darwin-t339sfxm.js → getMachineId-darwin-5zjynb19.js} +3 -3
- package/dist/{getMachineId-linux-5eq95d8b.js → getMachineId-linux-8mksrrsq.js} +3 -3
- package/dist/{getMachineId-unsupported-qavrtc7j.js → getMachineId-unsupported-fxtqsdt2.js} +3 -3
- package/dist/{getMachineId-win-q7fe1wx7.js → getMachineId-win-nzfmz857.js} +3 -3
- package/dist/{grok-adapter-ag4wks2a.js → grok-adapter-z0nnvtbn.js} +7 -7
- package/dist/handlers-pspryh6g.js +41 -0
- package/dist/{heartbeat-psfvcgwp.js → heartbeat-f928aqyp.js} +20 -20
- package/dist/{hook-cyq4mryn.js → hook-d7c605r4.js} +7 -7
- package/dist/{hook-8pz04697.js → hook-q9hv5xf9.js} +5 -5
- package/dist/{http-haj1nd6k.js → http-q6j4k989.js} +934 -180
- package/dist/{index-z5h22pes.js → index-5nb266jr.js} +17 -17
- package/dist/{index-ysd45kgc.js → index-8fxt5eah.js} +10 -10
- package/dist/{index-zgvqzjsw.js → index-cekzwhez.js} +5 -5
- package/dist/{index-zyq8ct52.js → index-ch0c1xff.js} +17 -17
- package/dist/{index-syvhnvtw.js → index-ebnjhxh1.js} +1 -1
- package/dist/{index-y1ajx04a.js → index-ed8dy8rn.js} +20 -20
- package/dist/{index-jwt2bj6f.js → index-ejqdkkqx.js} +11 -10
- package/dist/{index-dr94zbnh.js → index-farm1zsn.js} +32661 -29443
- package/dist/{index-q52f47pe.js → index-yn1yxg85.js} +1 -1
- package/dist/{keepalive-xdvsamvj.js → keepalive-zzc3hks1.js} +3 -3
- package/dist/{lead-hqg57kdp.js → lead-c0pjcaw4.js} +36 -36
- package/dist/{maintenance-4y2xzh3a.js → maintenance-kqsxzpzx.js} +1 -1
- package/dist/{oauth-refresh-sweep-jd4r7zbs.js → oauth-refresh-sweep-7qt0g55z.js} +2 -2
- package/dist/{onboard-18447q9q.js → onboard-k7x13fqg.js} +118 -5
- package/dist/{opencode-adapter-26b2frdf.js → opencode-adapter-tqvrtter.js} +5 -5
- package/dist/{otel-impl-f9tgr8yw.js → otel-impl-sqkf6k3b.js} +97 -97
- package/dist/{pi-mono-adapter-qn6qbga1.js → pi-mono-adapter-m2qnafxm.js} +63 -9
- package/dist/{pricing-refresh-dw2tgb53.js → pricing-refresh-wkpwhgvs.js} +3 -3
- package/dist/{rbac-roles-s4nwj2m3.js → rbac-roles-dpn0c0wj.js} +7 -4
- package/dist/{rbac-roles-aygm2760.js → rbac-roles-wk7xd6a6.js} +2 -2
- package/dist/{render-v2-yfvdfr0x.js → render-v2-ex2m4g2k.js} +3 -3
- package/dist/{resume-1bmvjbf3.js → resume-725g9b0b.js} +7 -7
- package/dist/{runtime-f7tpzedy.js → runtime-kajas15g.js} +1 -1
- package/dist/{session-access-r5garej6.js → session-access-0j2ezjje.js} +8 -4
- package/dist/{session-source-backfill-424wzv0r.js → session-source-backfill-62202awe.js} +2 -2
- package/dist/{setup-8tygvxkq.js → setup-9sj11ax6.js} +1 -1
- package/dist/{virtual-modules-xsw323b3.js → virtual-modules-c6fcq6zr.js} +2 -2
- package/dist/{work-objects-ggnghpgf.js → work-objects-0y07495y.js} +20 -20
- package/dist/{worker-sqjd1nqf.js → worker-d4q9sqbc.js} +36 -36
- package/openapi.json +1070 -9
- package/package.json +3 -3
- package/src/be/connector-codes.ts +65 -22
- package/src/be/memory/boot-reembed.ts +4 -1
- package/src/be/memory/constants.ts +6 -0
- package/src/be/memory/embedding-recovery.ts +48 -0
- package/src/be/memory/index-content.ts +5 -2
- package/src/be/memory/providers/openai-embedding.ts +65 -14
- package/src/be/memory/task-learning.ts +110 -8
- package/src/be/memory/types.ts +13 -2
- package/src/be/migrations/246_connector_code_kind.sql +11 -0
- package/src/be/onboarding.ts +125 -15
- package/src/be/rbac-roles.ts +4 -1
- package/src/be/scripts/embeddings.ts +2 -2
- package/src/be/seed/agent-fs-provision.ts +75 -14
- package/src/be/swarm-config-guard.ts +3 -0
- package/src/cli.tsx +9 -0
- package/src/comb/config.ts +6 -1
- package/src/commands/onboard/agent-fs-version.ts +5 -0
- package/src/commands/onboard/compose-generator.ts +112 -1
- package/src/commands/onboard/env-generator.ts +9 -0
- package/src/commands/onboard/tei-image.ts +12 -0
- package/src/commands/onboard/types.ts +7 -0
- package/src/commands/onboard.tsx +11 -1
- package/src/commands/runner.ts +14 -1
- package/src/http/agentfs-proxy.ts +369 -0
- package/src/http/all-routes.ts +1 -0
- package/src/http/codex-oauth-device.ts +8 -1
- package/src/http/fs.ts +64 -10
- package/src/http/inbox-state.ts +27 -1
- package/src/http/index.ts +4 -1
- package/src/http/memory.ts +7 -4
- package/src/http/onboarding.ts +139 -11
- package/src/http/session-access.ts +24 -0
- package/src/http/sessions.ts +10 -6
- package/src/http/tasks.ts +85 -11
- package/src/http/telemetry-ui.ts +1 -1
- package/src/http/user-roles.ts +4 -1
- package/src/http/users.ts +272 -3
- package/src/http/utils.ts +22 -3
- package/src/prompts/base-prompt.ts +24 -9
- package/src/prompts/session-templates.ts +26 -2
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/codex-adapter.ts +6 -1
- package/src/providers/cursor-adapter.ts +1 -1
- package/src/providers/pi-mono-adapter.ts +58 -3
- package/src/rbac/legacy-policy.ts +1 -0
- package/src/rbac/permissions.ts +4 -0
- package/src/tests/agent-fs-provision-seeder.test.ts +261 -92
- package/src/tests/agentfs-proxy.test.ts +1106 -0
- package/src/tests/base-prompt.test.ts +69 -2
- package/src/tests/codex-adapter.test.ts +46 -8
- package/src/tests/codex-oauth-device.test.ts +12 -1
- package/src/tests/comb-config-guard.test.ts +20 -0
- package/src/tests/comb-links.test.ts +79 -1
- package/src/tests/comb-status.test.ts +44 -0
- package/src/tests/docs-index-footprint.test.js +3 -3
- package/src/tests/fixtures/onboard/baseline-states.ts +68 -0
- package/src/tests/fixtures/onboard/content.compose.yml.txt +190 -0
- package/src/tests/fixtures/onboard/content.env.txt +29 -0
- package/src/tests/fixtures/onboard/dev.compose.yml.txt +155 -0
- package/src/tests/fixtures/onboard/dev.env.txt +28 -0
- package/src/tests/fixtures/onboard/full-all.compose.yml.txt +582 -0
- package/src/tests/fixtures/onboard/full-all.env.txt +59 -0
- package/src/tests/fixtures/onboard/full.compose.yml.txt +435 -0
- package/src/tests/fixtures/onboard/full.env.txt +36 -0
- package/src/tests/fixtures/onboard/research.compose.yml.txt +155 -0
- package/src/tests/fixtures/onboard/research.env.txt +28 -0
- package/src/tests/fixtures/onboard/solo.compose.yml.txt +85 -0
- package/src/tests/fixtures/onboard/solo.env.txt +26 -0
- package/src/tests/http-log-scrubbing.test.ts +34 -1
- package/src/tests/http-task-write-ownership.test.ts +5 -1
- package/src/tests/invites-http.test.ts +464 -0
- package/src/tests/memory-embedding-input-cap.test.ts +122 -1
- package/src/tests/memory-embedding-recovery.test.ts +137 -0
- package/src/tests/onboard-compose.test.ts +142 -0
- package/src/tests/onboard-env.test.ts +24 -0
- package/src/tests/onboard-non-interactive.test.ts +29 -0
- package/src/tests/onboard-tei-image.test.ts +36 -0
- package/src/tests/onboarding.test.ts +451 -4
- package/src/tests/openai-embedding-provider.test.ts +105 -2
- package/src/tests/pi-mono-session-cost-on-abort.test.ts +270 -0
- package/src/tests/preload-env.test.ts +4 -0
- package/src/tests/preload.ts +4 -0
- package/src/tests/prompt-template-session.test.ts +19 -3
- package/src/tests/rbac-admission-e2e.test.ts +22 -6
- package/src/tests/rbac-admission.test.ts +342 -4
- package/src/tests/rbac-engine.test.ts +1 -0
- package/src/tests/rbac-roles.test.ts +9 -1
- package/src/tests/send-task-requester-gate.test.ts +64 -3
- package/src/tests/sessions-move.test.ts +39 -1
- package/src/tests/store-progress-learning.test.ts +95 -2
- package/src/tests/whoami-route.test.ts +41 -0
- package/src/tools/inject-learning.ts +1 -1
- package/src/tools/memory-edit.ts +1 -1
- package/src/tools/memory-search.ts +1 -1
- package/src/tools/store-progress.ts +5 -1
- package/src/tools/utils.ts +12 -1
- package/src/utils/constants.ts +39 -0
- package/src/utils/task-attachment-links.ts +15 -3
- package/templates/skills/swarm-docs/content.md +1 -1
- package/dist/handlers-tzmevqb5.js +0 -41
- package/dist/{azure-openai-responses-9kfwhmn7.js → azure-openai-responses-43asa23s.js} +0 -0
- package/dist/{node-vxx896fa.js → node-t28cc56b.js} +0 -0
- package/dist/{openai-codex-responses-79s8xnbh.js → openai-codex-responses-jhr3sjtm.js} +3 -3
- package/dist/{openai-completions-tdbyts0x.js → openai-completions-gs6yn37k.js} +3 -3
- /package/dist/{openai-responses-dm3t5vqp.js → openai-responses-jqm9vwwk.js} +0 -0
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
applyOpenRouterBaseUrlOverride2,
|
|
16
16
|
buildOpenAICompatibleProviderBlock2
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-dgtfysne.js";
|
|
18
18
|
import {
|
|
19
19
|
fetchInstalledMcpServers
|
|
20
20
|
} from "./cli-bst1vp7e.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
import {
|
|
45
45
|
init_package,
|
|
46
46
|
package_default
|
|
47
|
-
} from "./cli-
|
|
47
|
+
} from "./cli-swkx9jm2.js";
|
|
48
48
|
import {
|
|
49
49
|
scrubSecrets,
|
|
50
50
|
init_secret_scrubber
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./cli-
|
|
2
|
+
require_src2
|
|
3
|
+
} from "./cli-wdxgsdz5.js";
|
|
4
4
|
import {
|
|
5
5
|
__toESM
|
|
6
6
|
} from "./cli-242037k3.js";
|
|
7
7
|
|
|
8
8
|
// src/providers/otel-env.ts
|
|
9
|
-
var import_api = __toESM(
|
|
9
|
+
var import_api = __toESM(require_src2(), 1);
|
|
10
10
|
function isTruthy(value) {
|
|
11
11
|
const v = (value ?? "").toLowerCase();
|
|
12
12
|
return v === "1" || v === "true" || v === "yes" || v === "on";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Anthropic
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-prcyzecg.js";
|
|
4
4
|
import {
|
|
5
5
|
contextBoundNoteThreshold,
|
|
6
6
|
createContextBoundNote
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-dscnhn18.js";
|
|
8
8
|
import {
|
|
9
9
|
checkToolLoop
|
|
10
10
|
} from "./cli-0726awxw.js";
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
invalidateTelemetryUserRole,
|
|
5
5
|
init_telemetry_identity,
|
|
6
6
|
init_db3
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-qvaa1gjp.js";
|
|
8
8
|
import {
|
|
9
9
|
PermissionVerbSchema,
|
|
10
10
|
init_rbac
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-k4awgvzm.js";
|
|
12
12
|
import {
|
|
13
13
|
init_env_flag
|
|
14
14
|
} from "./cli-cebvbc9t.js";
|
|
@@ -276,7 +276,10 @@ var init_rbac_roles = __esm(() => {
|
|
|
276
276
|
"task.fs.mutate",
|
|
277
277
|
"favorite.write.own",
|
|
278
278
|
"session.share",
|
|
279
|
-
"session.presence"
|
|
279
|
+
"session.presence",
|
|
280
|
+
"task.steer.own",
|
|
281
|
+
"comb.presence",
|
|
282
|
+
"fs.join.own"
|
|
280
283
|
]
|
|
281
284
|
},
|
|
282
285
|
{
|
|
@@ -285,7 +288,7 @@ var init_rbac_roles = __esm(() => {
|
|
|
285
288
|
description: "Read-only: no task, approval or script writes.",
|
|
286
289
|
isBuiltin: true,
|
|
287
290
|
grantsAll: false,
|
|
288
|
-
verbs: ["favorite.write.own", "session.presence"]
|
|
291
|
+
verbs: ["favorite.write.own", "session.presence", "comb.presence", "fs.join.own"]
|
|
289
292
|
}
|
|
290
293
|
];
|
|
291
294
|
PRIMARY_ROLE_NAMES2 = ["admin", "requester", "viewer"];
|
|
@@ -9,21 +9,21 @@ import {
|
|
|
9
9
|
init_active_sessions,
|
|
10
10
|
getSteeringMessageById2,
|
|
11
11
|
init_db3
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-qvaa1gjp.js";
|
|
13
13
|
import {
|
|
14
14
|
getUserGrant2,
|
|
15
15
|
init_rbac_roles
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-hpkvgdad.js";
|
|
17
17
|
import {
|
|
18
18
|
findUserById,
|
|
19
19
|
findUserByExternalId,
|
|
20
20
|
init_users
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-nf6k60sn.js";
|
|
22
22
|
import {
|
|
23
23
|
isRbacEnabled,
|
|
24
24
|
can,
|
|
25
25
|
init_rbac
|
|
26
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-k4awgvzm.js";
|
|
27
27
|
import {
|
|
28
28
|
init_zod
|
|
29
29
|
} from "./cli-4chz1hye.js";
|
|
@@ -203,19 +203,33 @@ function wireHttpSpanLifecycle(res, span, getStatusCode, startTime) {
|
|
|
203
203
|
span.end();
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
|
+
function redactShareTokenInPath(pathname) {
|
|
207
|
+
const segments = pathname.split("/");
|
|
208
|
+
if (segments[1] === "invite" && segments[2]) {
|
|
209
|
+
segments[2] = "[REDACTED]";
|
|
210
|
+
return segments.join("/");
|
|
211
|
+
}
|
|
212
|
+
const at = segments[1] === "agentfs" ? 2 : 1;
|
|
213
|
+
if ((segments[at] === "share" || segments[at] === "site") && segments[at + 1]) {
|
|
214
|
+
segments[at + 1] = "[REDACTED]";
|
|
215
|
+
return segments.join("/");
|
|
216
|
+
}
|
|
217
|
+
return pathname;
|
|
218
|
+
}
|
|
206
219
|
function safeRequestUrlForLog(rawUrl) {
|
|
207
220
|
if (!rawUrl)
|
|
208
221
|
return "";
|
|
209
222
|
try {
|
|
210
223
|
const url = new URL(rawUrl, "http://localhost");
|
|
224
|
+
const pathname = redactShareTokenInPath(url.pathname);
|
|
211
225
|
const params = Array.from(url.searchParams.keys());
|
|
212
226
|
if (params.length === 0)
|
|
213
|
-
return
|
|
227
|
+
return pathname;
|
|
214
228
|
const redactedQuery = params.map((key) => `${key}=[REDACTED]`).join("&");
|
|
215
|
-
return `${
|
|
229
|
+
return `${pathname}?${redactedQuery}`;
|
|
216
230
|
} catch {
|
|
217
231
|
const pathOnly = rawUrl.split("?")[0] || rawUrl;
|
|
218
|
-
return scrubSecrets(pathOnly);
|
|
232
|
+
return scrubSecrets(redactShareTokenInPath(pathOnly));
|
|
219
233
|
}
|
|
220
234
|
}
|
|
221
235
|
async function agentWithCapacity(agent) {
|
|
@@ -503,7 +517,7 @@ function route(def) {
|
|
|
503
517
|
try {
|
|
504
518
|
const rawBody = def.body ? await parseBody(req, def.maxBodyBytes) : undefined;
|
|
505
519
|
if (def.session && "bodyTaskIds" in def.session) {
|
|
506
|
-
const { bodySessionDenial } = await import("./session-access-
|
|
520
|
+
const { bodySessionDenial } = await import("./session-access-0j2ezjje.js");
|
|
507
521
|
const denial = await bodySessionDenial(req, def.session.bodyTaskIds(rawBody));
|
|
508
522
|
if (denial) {
|
|
509
523
|
jsonError(res, denial, 403);
|
|
@@ -775,6 +789,20 @@ async function hasSessionWrite2(req, myAgentId, taskId) {
|
|
|
775
789
|
const access = await sessionAccessFor2(await resolveSessionActor2(req, myAgentId), taskId);
|
|
776
790
|
return hasSessionAccess(access, "write");
|
|
777
791
|
}
|
|
792
|
+
var NOT_YOUR_TASK_DENIED2 = "You can only change tasks you requested, or sessions shared with you to edit.";
|
|
793
|
+
async function deniesNonOwnerTaskWrite2(req, task) {
|
|
794
|
+
const auth = getRequestAuth(req);
|
|
795
|
+
if (auth?.kind !== "user" || !isRbacEnabled())
|
|
796
|
+
return false;
|
|
797
|
+
if (task.requestedByUserId === auth.userId)
|
|
798
|
+
return false;
|
|
799
|
+
if ((await getUserGrant2(auth.userId)).grantsAll)
|
|
800
|
+
return false;
|
|
801
|
+
const root = await getSessionRoot(task.id);
|
|
802
|
+
if (!root?.requestedByUserId)
|
|
803
|
+
return true;
|
|
804
|
+
return !hasSessionAccess(await sessionAccessForRoot(auth.userId, root), "write");
|
|
805
|
+
}
|
|
778
806
|
async function denyParentAttach2(req, res, myAgentId, parentTask, principal) {
|
|
779
807
|
const attach = can({
|
|
780
808
|
principal,
|
|
@@ -873,4 +901,4 @@ async function userAgentIdentityDenial2(req, def, pathSegments) {
|
|
|
873
901
|
return USER_AGENT_HEADER_DENIED;
|
|
874
902
|
}
|
|
875
903
|
|
|
876
|
-
export { duplicateGuardedQueryKey, warnIfCorsAllowsAnyOrigin, isOriginAllowedForCredentials, allowedCredentialRedirect, setCorsHeaders, parseQueryParams, getPathSegments, wireHttpSpanLifecycle, safeRequestUrlForLog, agentWithCapacity, RequestBodyTooLargeError, parseBody, BODY_TOO_LARGE, enforceContentLengthCap, json, jsonError, writeUnhandledError, triggerSchemaErrorResponse, deriveApiBaseUrl, httpServerSemconvAttributes, hasSessionAccess, getSessionRoot, sessionAccessForRoot, listActiveSessionShares, toSessionSharesState, setSessionShares, resolveTaskAuditUserId, resolveHttpAuditUserId, dashboardUserIdHeader, resolveHttpFavoriteOwner, resolveSessionActor2, sessionAccessFor2, SESSION_READ_DENIED2, canReadSession2, readableByFor2, SESSION_WRITE_DENIED2, hasSessionWrite2, denyParentAttach2, pathSessionDenial2, bodySessionDenial2, userAgentIdentityDenial2, runtimeInstanceHeader, bodyTask, bodyListTask, routeRegistry, isPublicRoute, findRoute, describeRequestRoute, route };
|
|
904
|
+
export { duplicateGuardedQueryKey, warnIfCorsAllowsAnyOrigin, isOriginAllowedForCredentials, allowedCredentialRedirect, setCorsHeaders, parseQueryParams, getPathSegments, wireHttpSpanLifecycle, redactShareTokenInPath, safeRequestUrlForLog, agentWithCapacity, RequestBodyTooLargeError, parseBody, BODY_TOO_LARGE, enforceContentLengthCap, json, jsonError, writeUnhandledError, triggerSchemaErrorResponse, deriveApiBaseUrl, httpServerSemconvAttributes, hasSessionAccess, getSessionRoot, sessionAccessForRoot, listActiveSessionShares, toSessionSharesState, setSessionShares, resolveTaskAuditUserId, resolveHttpAuditUserId, dashboardUserIdHeader, resolveHttpFavoriteOwner, resolveSessionActor2, sessionAccessFor2, SESSION_READ_DENIED2, canReadSession2, readableByFor2, SESSION_WRITE_DENIED2, hasSessionWrite2, NOT_YOUR_TASK_DENIED2, deniesNonOwnerTaskWrite2, denyParentAttach2, pathSessionDenial2, bodySessionDenial2, userAgentIdentityDenial2, runtimeInstanceHeader, bodyTask, bodyListTask, routeRegistry, isPublicRoute, findRoute, describeRequestRoute, route };
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
init_steering,
|
|
11
11
|
createLogEntry2,
|
|
12
12
|
init_db3
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-qvaa1gjp.js";
|
|
14
14
|
import {
|
|
15
15
|
ackSlackMessage,
|
|
16
16
|
buildBufferFlushBlocks,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
ensureSlackThreadTree2,
|
|
21
21
|
registerTreeMessage,
|
|
22
22
|
getSlackApp2
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-thsaq4pd.js";
|
|
24
24
|
import {
|
|
25
25
|
createAdditiveBuffer,
|
|
26
26
|
TaskCreationBlockedError,
|
|
@@ -30,15 +30,15 @@ import {
|
|
|
30
30
|
createSlackTaskWithFiles,
|
|
31
31
|
notifySlackFileFailures,
|
|
32
32
|
extractSlackMessageText
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-pzafyqtk.js";
|
|
34
34
|
import {
|
|
35
35
|
resolveSlackUserId,
|
|
36
36
|
rewriteSlackMentions
|
|
37
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-y4tdxsqb.js";
|
|
38
38
|
import {
|
|
39
39
|
findUserByExternalId,
|
|
40
40
|
init_users
|
|
41
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-nf6k60sn.js";
|
|
42
42
|
import {
|
|
43
43
|
isSteeringEnabled2,
|
|
44
44
|
init_steering_enabled
|
|
@@ -306,6 +306,7 @@ var init_legacy_policy = __esm(() => {
|
|
|
306
306
|
"mcp-oauth.authorize.any": anyAuthenticated,
|
|
307
307
|
"kv.write.any": leadOrOwnNamespace,
|
|
308
308
|
"comb.presence": operatorOrUser,
|
|
309
|
+
"fs.join.own": anyAuthenticated,
|
|
309
310
|
"page.delete.any": leadOrResourceOwner,
|
|
310
311
|
"app.manage": anyAuthenticated,
|
|
311
312
|
"app.use": anyAuthenticated,
|
|
@@ -640,6 +641,10 @@ var init_permissions = __esm(() => {
|
|
|
640
641
|
description: "Use dashboard presence rooms for Comb drives.",
|
|
641
642
|
namespace: "comb"
|
|
642
643
|
},
|
|
644
|
+
"fs.join.own": {
|
|
645
|
+
description: "Join the swarm's shared agent-fs drive with your own account email.",
|
|
646
|
+
namespace: "fs"
|
|
647
|
+
},
|
|
643
648
|
"page.delete.any": {
|
|
644
649
|
description: "Delete a page the caller does not own.",
|
|
645
650
|
namespace: "page"
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
loadMcpConfig,
|
|
10
10
|
addMcpServerConfig,
|
|
11
11
|
removeMcpServerConfig
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-0w4e4v58.js";
|
|
13
13
|
import {
|
|
14
14
|
McpOAuthCredentialStore2,
|
|
15
15
|
McpSignInCancelledError2,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
McpServerLog2,
|
|
18
18
|
createDefaultTransport2,
|
|
19
19
|
McpServerConnection2
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-0dqtv2jg.js";
|
|
21
21
|
|
|
22
22
|
// node_modules/@earendil-works/pi-coding-agent/dist/extensions/mcp/cli.js
|
|
23
23
|
import { existsSync } from "node:fs";
|
|
@@ -40,14 +40,14 @@ import {
|
|
|
40
40
|
getResolvedConfig2,
|
|
41
41
|
getMcpServerById2,
|
|
42
42
|
init_db3
|
|
43
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-qvaa1gjp.js";
|
|
44
44
|
import {
|
|
45
45
|
generateRandomCodeVerifier,
|
|
46
46
|
generateRandomState,
|
|
47
47
|
calculatePKCECodeChallenge,
|
|
48
48
|
oauthAppRowToProviderConfig,
|
|
49
49
|
ensureAuthorizationTokenOrThrow
|
|
50
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-rm66vqdz.js";
|
|
51
51
|
import {
|
|
52
52
|
detachedProcessGroup,
|
|
53
53
|
registerProcessGroup,
|
|
@@ -60,11 +60,11 @@ import {
|
|
|
60
60
|
mintScriptRunToken,
|
|
61
61
|
revokeSessionToken,
|
|
62
62
|
init_users
|
|
63
|
-
} from "./cli-
|
|
63
|
+
} from "./cli-nf6k60sn.js";
|
|
64
64
|
import {
|
|
65
65
|
defaultAssetKey,
|
|
66
66
|
init_key
|
|
67
|
-
} from "./cli-
|
|
67
|
+
} from "./cli-s504c3w7.js";
|
|
68
68
|
import {
|
|
69
69
|
init_zod
|
|
70
70
|
} from "./cli-4chz1hye.js";
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
import {
|
|
90
90
|
getMcpBaseUrl,
|
|
91
91
|
init_constants2
|
|
92
|
-
} from "./cli-
|
|
92
|
+
} from "./cli-3cywb44q.js";
|
|
93
93
|
import {
|
|
94
94
|
isEnvFlagEnabled,
|
|
95
95
|
init_env_flag
|
|
@@ -8,19 +8,21 @@ import {
|
|
|
8
8
|
} from "./cli-qeaq3j6t.js";
|
|
9
9
|
import {
|
|
10
10
|
init_templates3
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-nzdf09js.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveTemplateAsync,
|
|
14
14
|
init_resolver,
|
|
15
15
|
init_session_templates
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-b41p764a.js";
|
|
17
17
|
import {
|
|
18
18
|
MAX_PROFILE_FILE_LENGTH,
|
|
19
19
|
getAppUrl,
|
|
20
|
+
resolveAgentFsLinkBase,
|
|
21
|
+
agentFsFileRoute,
|
|
20
22
|
buildAgentFsLiveUrl,
|
|
21
23
|
buildCombFileUrl,
|
|
22
24
|
init_constants2
|
|
23
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-3cywb44q.js";
|
|
24
26
|
import {
|
|
25
27
|
scrubSecrets,
|
|
26
28
|
init_secret_scrubber
|
|
@@ -256,6 +258,18 @@ var init_defaults = () => {};
|
|
|
256
258
|
function claudeMdSourcePath(provider) {
|
|
257
259
|
return provider === "claude" ? "~/.claude/CLAUDE.md" : "/workspace/CLAUDE.md";
|
|
258
260
|
}
|
|
261
|
+
function toolDiscoveryEvent(provider, hasToolSearch) {
|
|
262
|
+
switch (provider) {
|
|
263
|
+
case "amp":
|
|
264
|
+
return "system.agent.tool_discovery.amp";
|
|
265
|
+
case "codex":
|
|
266
|
+
return "system.agent.tool_discovery.codex";
|
|
267
|
+
case "opencode":
|
|
268
|
+
return "system.agent.tool_discovery.opencode";
|
|
269
|
+
default:
|
|
270
|
+
return hasToolSearch ? "system.agent.tool_discovery.search" : "system.agent.tool_discovery.direct";
|
|
271
|
+
}
|
|
272
|
+
}
|
|
259
273
|
function areSlackPromptToolsEnabled(env = process.env, serverCapabilities) {
|
|
260
274
|
const config = getSlackConfiguration(env);
|
|
261
275
|
if (config.disabled || !config.mode)
|
|
@@ -498,7 +512,7 @@ ${scriptsOnlyResult.text}`;
|
|
|
498
512
|
const serverHasCapability = (cap, whenUnknown) => args.serverCapabilities ? args.serverCapabilities.includes(cap) : whenUnknown;
|
|
499
513
|
if (hasMcp && serverHasCapability("pages", true)) {
|
|
500
514
|
const agentFsConfigured = hasLocalEnv && Boolean(process.env.AGENT_FS_API_URL);
|
|
501
|
-
const outputsResult = await resolveTemplateAsync(agentFsConfigured ? "system.agent.outputs" : "system.agent.outputs.no_agent_fs", {});
|
|
515
|
+
const outputsResult = await resolveTemplateAsync(agentFsConfigured ? "system.agent.outputs" : "system.agent.outputs.no_agent_fs", { fileLinkBase: resolveAgentFsLinkBase("prompt") ?? `\${AGENT_FS_LIVE_URL}` });
|
|
502
516
|
prompt += outputsResult.text;
|
|
503
517
|
}
|
|
504
518
|
const slackPromptToolsEnabled = areSlackPromptToolsEnabled(process.env, args.serverCapabilities);
|
|
@@ -511,7 +525,7 @@ ${scriptsOnlyResult.text}`;
|
|
|
511
525
|
prompt += steeringResult.text;
|
|
512
526
|
}
|
|
513
527
|
if (hasMcp) {
|
|
514
|
-
const discoveryEvent = provider
|
|
528
|
+
const discoveryEvent = toolDiscoveryEvent(provider, hasToolSearch);
|
|
515
529
|
const discoveryResult = await resolveTemplateAsync(discoveryEvent, {});
|
|
516
530
|
const toolsResult = await resolveTemplateAsync("system.agent.tools_skills", renderToolsAndSkillsVars({
|
|
517
531
|
skillsSummary: args.skillsSummary,
|
|
@@ -554,6 +568,7 @@ ${scriptsOnlyResult.text}`;
|
|
|
554
568
|
};
|
|
555
569
|
var init_base_prompt = __esm(() => {
|
|
556
570
|
init_config();
|
|
571
|
+
init_constants2();
|
|
557
572
|
init_steering_enabled();
|
|
558
573
|
init_defaults();
|
|
559
574
|
init_resolver();
|
|
@@ -679,6 +694,11 @@ function taskAttachmentDisplayUrl(attachment, opts = {}) {
|
|
|
679
694
|
}
|
|
680
695
|
if (attachment.providerId === "agent-fs" || attachment.kind === "agent-fs") {
|
|
681
696
|
const file = { path: attachment.path, orgId: attachment.orgId, driveId: attachment.driveId };
|
|
697
|
+
const linkBase = opts.comb === false ? null : resolveAgentFsLinkBase("attachment");
|
|
698
|
+
if (linkBase !== null) {
|
|
699
|
+
const route = agentFsFileRoute(file);
|
|
700
|
+
return route ? `${linkBase}/file/~/${route}` : `agent-fs:${attachment.path ?? ""}`;
|
|
701
|
+
}
|
|
682
702
|
const combUrl = opts.comb === false ? null : buildCombFileUrl(file);
|
|
683
703
|
return combUrl ?? buildAgentFsLiveUrl(file) ?? `agent-fs:${attachment.path ?? ""}`;
|
|
684
704
|
}
|
|
@@ -17,7 +17,7 @@ async function createRuntimeProvider(kind, target = {}) {
|
|
|
17
17
|
return new DockerRuntimeProvider;
|
|
18
18
|
}
|
|
19
19
|
case "e2b": {
|
|
20
|
-
const { E2BRuntimeProvider } = await import("./e2b-
|
|
20
|
+
const { E2BRuntimeProvider } = await import("./e2b-74vg9b7e.js");
|
|
21
21
|
return new E2BRuntimeProvider(target);
|
|
22
22
|
}
|
|
23
23
|
case "k8s":
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_MODEL_TIER_MAP,
|
|
17
17
|
init_types
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-s504c3w7.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveTemplateFromCode,
|
|
21
21
|
resolveTemplateAsync,
|
|
22
22
|
init_resolver,
|
|
23
23
|
init_session_templates
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-b41p764a.js";
|
|
25
25
|
import {
|
|
26
26
|
parseEnvFlag,
|
|
27
27
|
init_env_flag
|
|
@@ -54,7 +54,7 @@ function checkCursorCredentials2(env) {
|
|
|
54
54
|
return env.CURSOR_API_KEY?.trim() ? { ready: true, missing: [], satisfiedBy: "env" } : { ready: false, missing: ["CURSOR_API_KEY"], hint: "Set CURSOR_API_KEY for cursor." };
|
|
55
55
|
}
|
|
56
56
|
async function liveTestCursorKey2(apiKey) {
|
|
57
|
-
const { Cursor } = await import("./index-
|
|
57
|
+
const { Cursor } = await import("./index-farm1zsn.js");
|
|
58
58
|
try {
|
|
59
59
|
await Cursor.me({ apiKey });
|
|
60
60
|
return { ok: true };
|
|
@@ -74,7 +74,7 @@ async function listCursorModels(apiKey) {
|
|
|
74
74
|
if (modelListCache?.key === apiKey && Date.now() - modelListCache.at < MODEL_LIST_TTL_MS) {
|
|
75
75
|
return modelListCache.models;
|
|
76
76
|
}
|
|
77
|
-
const { Cursor } = await import("./index-
|
|
77
|
+
const { Cursor } = await import("./index-farm1zsn.js");
|
|
78
78
|
const models = await Cursor.models.list({ apiKey });
|
|
79
79
|
modelListCache = { key: apiKey, at: Date.now(), models };
|
|
80
80
|
return models;
|
|
@@ -448,7 +448,7 @@ class CursorAdapter2 {
|
|
|
448
448
|
if (!apiKey)
|
|
449
449
|
throw new Error("cursor requires CURSOR_API_KEY");
|
|
450
450
|
registerVolatileSecret(apiKey, "CURSOR_API_KEY");
|
|
451
|
-
const { Agent, JsonlLocalAgentStore } = await import("./index-
|
|
451
|
+
const { Agent, JsonlLocalAgentStore } = await import("./index-farm1zsn.js");
|
|
452
452
|
const modelId = config.model || DEFAULT_MODEL_TIER_MAP.cursor.regular;
|
|
453
453
|
const effort = applyReasoningEffort("cursor", modelId, config.reasoningEffort);
|
|
454
454
|
const requested = effort.kind === "cursor-effort" ? effort.reasoningEffort : undefined;
|
|
@@ -45,12 +45,12 @@ import {
|
|
|
45
45
|
checkMemorySyncInterval,
|
|
46
46
|
promiseWithResolvers
|
|
47
47
|
} from "./cli-6rg2jn2y.js";
|
|
48
|
-
import {
|
|
49
|
-
require_src
|
|
50
|
-
} from "./cli-dv97kdzv.js";
|
|
51
48
|
import {
|
|
52
49
|
require_dist3
|
|
53
50
|
} from "./cli-k28wkapa.js";
|
|
51
|
+
import {
|
|
52
|
+
require_src2
|
|
53
|
+
} from "./cli-wdxgsdz5.js";
|
|
54
54
|
import {
|
|
55
55
|
__toESM
|
|
56
56
|
} from "./cli-242037k3.js";
|
|
@@ -319,7 +319,7 @@ var FallbackEncoder = ({ headers, body }) => {
|
|
|
319
319
|
};
|
|
320
320
|
|
|
321
321
|
// node_modules/@anthropic-ai/sdk/internal/tracing.mjs
|
|
322
|
-
var import_api = __toESM(
|
|
322
|
+
var import_api = __toESM(require_src2(), 1);
|
|
323
323
|
|
|
324
324
|
// node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs
|
|
325
325
|
var _LineDecoder_buffer;
|
|
@@ -1293,7 +1293,7 @@ function stringifyQuery(query) {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
|
|
1295
1295
|
// node_modules/@anthropic-ai/sdk/client.mjs
|
|
1296
|
-
var import_api9 = __toESM(
|
|
1296
|
+
var import_api9 = __toESM(require_src2(), 1);
|
|
1297
1297
|
|
|
1298
1298
|
// node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs
|
|
1299
1299
|
var GRANT_TYPE_JWT_BEARER = "urn:ietf:params:oauth:grant-type:jwt-bearer";
|
|
@@ -1990,7 +1990,7 @@ function recordSessionsCreateResponse(client, call, session) {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
}
|
|
1992
1992
|
// node_modules/@anthropic-ai/sdk/internal/trace-headers.mjs
|
|
1993
|
-
var import_api2 = __toESM(
|
|
1993
|
+
var import_api2 = __toESM(require_src2(), 1);
|
|
1994
1994
|
function traceHeaderNames() {
|
|
1995
1995
|
const names = new Set(["traceparent", "tracestate", "baggage"]);
|
|
1996
1996
|
try {
|
|
@@ -2025,7 +2025,7 @@ function withoutTraceHeaders(middleware) {
|
|
|
2025
2025
|
};
|
|
2026
2026
|
}
|
|
2027
2027
|
// node_modules/@anthropic-ai/sdk/lib/internal/tracing/streaming.mjs
|
|
2028
|
-
var import_api3 = __toESM(
|
|
2028
|
+
var import_api3 = __toESM(require_src2(), 1);
|
|
2029
2029
|
function recordStreamedMessageContent(client, call, body, message) {
|
|
2030
2030
|
if (!call.span.isRecording() || client.openTelemetry.traces.contentMode !== "content") {
|
|
2031
2031
|
return;
|
|
@@ -2140,7 +2140,7 @@ function endMessagesCreateSpanWhenStreamEnds(client, span, stream, props) {
|
|
|
2140
2140
|
});
|
|
2141
2141
|
}
|
|
2142
2142
|
// node_modules/@anthropic-ai/sdk/lib/internal/tracing/environments.mjs
|
|
2143
|
-
var import_api4 = __toESM(
|
|
2143
|
+
var import_api4 = __toESM(require_src2(), 1);
|
|
2144
2144
|
function startEnvironmentWorkSpan(client, work, parentContext) {
|
|
2145
2145
|
return client._tracer?.startSpan("anthropic.environment.work", {
|
|
2146
2146
|
kind: import_api4.SpanKind.INTERNAL,
|
|
@@ -2183,7 +2183,7 @@ async function withEnvironmentWorkSpan(client, span, signal, handle) {
|
|
|
2183
2183
|
guardTracing(client, () => endEnvironmentWorkSpan(span, signal));
|
|
2184
2184
|
}
|
|
2185
2185
|
// node_modules/@anthropic-ai/sdk/lib/internal/tracing/tools.mjs
|
|
2186
|
-
var import_api5 = __toESM(
|
|
2186
|
+
var import_api5 = __toESM(require_src2(), 1);
|
|
2187
2187
|
|
|
2188
2188
|
// node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.mjs
|
|
2189
2189
|
var STAINLESS_HELPER_HEADER = "x-stainless-helper";
|
|
@@ -5183,7 +5183,7 @@ var Agents = /* @__PURE__ */ (() => {
|
|
|
5183
5183
|
})();
|
|
5184
5184
|
|
|
5185
5185
|
// node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs
|
|
5186
|
-
var import_api6 = __toESM(
|
|
5186
|
+
var import_api6 = __toESM(require_src2(), 1);
|
|
5187
5187
|
|
|
5188
5188
|
// node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs
|
|
5189
5189
|
function linkAbort(external, controller) {
|
|
@@ -5398,7 +5398,7 @@ function defaultWorkerId() {
|
|
|
5398
5398
|
}
|
|
5399
5399
|
|
|
5400
5400
|
// node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs
|
|
5401
|
-
var import_api7 = __toESM(
|
|
5401
|
+
var import_api7 = __toESM(require_src2(), 1);
|
|
5402
5402
|
|
|
5403
5403
|
// node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs
|
|
5404
5404
|
var _AsyncQueue_items;
|
|
@@ -7895,7 +7895,7 @@ var BetaMessageStream = /* @__PURE__ */ (() => {
|
|
|
7895
7895
|
})();
|
|
7896
7896
|
|
|
7897
7897
|
// node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs
|
|
7898
|
-
var import_api8 = __toESM(
|
|
7898
|
+
var import_api8 = __toESM(require_src2(), 1);
|
|
7899
7899
|
|
|
7900
7900
|
// node_modules/@anthropic-ai/sdk/lib/internal/toolsets/family.mjs
|
|
7901
7901
|
var TOOLSET_TYPE_TO_FAMILY = {
|