@anthropic-ai/claude-agent-sdk 0.3.318 → 0.3.321
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/bridge.d.ts +9 -2
- package/bridge.mjs +84 -84
- package/browser-sdk.js +63 -63
- package/core-4jkx88px.mjs +34 -0
- package/core-9cm2w1sd.mjs +18 -0
- package/core-hz6x1gbv.mjs +45 -0
- package/core-ke81nxtn.mjs +17 -0
- package/core.mjs +11 -11
- package/manifest.json +22 -22
- package/manifest.zst.json +26 -26
- package/package.json +14 -14
- package/sdk-tools.d.ts +2 -1
- package/sdk.d.ts +61 -14
- package/sdk.mjs +90 -88
- package/core-aydj4gn2.mjs +0 -34
- package/core-dx5t072s.mjs +0 -17
- package/core-gh89n9s3.mjs +0 -43
- package/core-z711jz48.mjs +0 -18
|
@@ -0,0 +1,17 @@
|
|
|
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.321
|
|
4
|
+
|
|
5
|
+
//! symbol-dispose-prelude: defines Symbol.dispose and Symbol.asyncDispose if missing, for this bundle's `using`.
|
|
6
|
+
if (typeof Symbol.dispose !== 'symbol') {
|
|
7
|
+
try {
|
|
8
|
+
Symbol.dispose = Symbol.for('Symbol.dispose')
|
|
9
|
+
} catch {}
|
|
10
|
+
}
|
|
11
|
+
if (typeof Symbol.asyncDispose !== 'symbol') {
|
|
12
|
+
try {
|
|
13
|
+
Symbol.asyncDispose = Symbol.for('Symbol.asyncDispose')
|
|
14
|
+
} catch {}
|
|
15
|
+
}
|
|
16
|
+
import{c,t,Pe,O}from"./core-4jkx88px.mjs";import{lstat as s,rm as n,rmdir as h,unlink as T}from"fs/promises";var a=new Set(["EPERM","EACCES","EBUSY"]),E=50;async function gt(e){for(let o=1;;o++){let i=!0;try{await n(e,{recursive:!0,force:!0})}catch(r){if(t(r)!=="ENOTEMPTY")throw r;i=!1}try{await s(e)}catch(r){if(Pe(r)||i&&process.platform==="win32"&&a.has(t(r)))return;throw r}if(o===3)throw Object.assign(new c(`'${e}' is still on disk after three tries to delete it. A program may be writing to it, such as a running Claude Code session, or you may not have permission to change it. Stop that program or fix the permissions, then delete it yourself.`,"removeTree: still on disk after three tries"),{code:"ENOTEMPTY"});await O(o*E)}}import{createHash as f}from"crypto";function ye(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 f("sha256").update(e).digest("hex")}
|
|
17
|
+
export{gt,ye};
|