@anthropic-ai/claude-agent-sdk 0.3.304 → 0.3.305

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.
@@ -0,0 +1,26 @@
1
+ // (c) Anthropic PBC. All rights reserved. Use is subject to the Legal Agreements outlined here: https://code.claude.com/docs/en/legal-and-compliance.
2
+
3
+ // Version: 0.3.305
4
+
5
+ // symbol-dispose-prelude: bun build --banner for every SDK bundle; the build
6
+ // scripts grep for this line's tag. Runs before any module body. bun lowers
7
+ // `using` to a helper that keys disposal on the registry symbol when the
8
+ // well-known one is missing, while disposable objects key on the well-known
9
+ // global directly; on engines without a native `Symbol.dispose` (Safari/iOS,
10
+ // Firefox ESR, `node:vm` contexts on Node <=22 such as Jest's `node`
11
+ // environment and vitest's vm pools, and Node before 18.18 / 20.4) the two
12
+ // disagree and every lowered `using` throws. Registering both symbols first
13
+ // makes the keys agree; a no-op where they are native, and a locked-down
14
+ // `Symbol` (SES lockdown) keeps today's behaviour instead of failing to load.
15
+ if (typeof Symbol.dispose !== 'symbol') {
16
+ try {
17
+ Symbol.dispose = Symbol.for('Symbol.dispose')
18
+ } catch {}
19
+ }
20
+ if (typeof Symbol.asyncDispose !== 'symbol') {
21
+ try {
22
+ Symbol.asyncDispose = Symbol.for('Symbol.asyncDispose')
23
+ } catch {}
24
+ }
25
+ import{createHash as r}from"crypto";function nt(e){if(typeof e!=="string"&&!ArrayBuffer.isView(e))throw Object.assign(TypeError("sha256Hex: the data is neither text nor bytes"),{code:"ERR_INVALID_ARG_TYPE"});return r("sha256").update(e).digest("hex")}
26
+ export{nt};