@anthropic-ai/claude-agent-sdk 0.3.324 → 0.3.326
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/README.md +1 -1
- package/bridge.mjs +96 -96
- package/browser-sdk.d.ts +7 -0
- package/browser-sdk.js +73 -71
- package/core-2h2qc9qv.mjs +18 -0
- package/core-9sxfsmzx.mjs +18 -0
- package/{core-qe0dk8na.mjs → core-ba5rrckm.mjs} +2 -2
- package/core-dnsvg8nc.mjs +53 -0
- package/{core-hjrk2537.mjs → core-h6r54bwv.mjs} +2 -2
- package/core-k67vj6j9.mjs +20 -0
- package/core-qbjntcdf.mjs +18 -0
- package/core-qj4dtgyt.mjs +17 -0
- package/core-rn7tc54w.mjs +17 -0
- package/core-sstebd83.mjs +18 -0
- package/core-td7rt8zt.mjs +17 -0
- package/{core-mjr5v0tc.mjs → core-tf03rfab.mjs} +3 -3
- package/core-x4kwpwv9.mjs +16 -0
- package/core-y6bhrwmk.mjs +47 -0
- package/{core-nbx2rjdx.mjs → core-ya1m7gzj.mjs} +3 -3
- package/core.d.ts +1 -0
- package/core.mjs +11 -11
- package/manifest.json +22 -22
- package/manifest.zst.json +26 -26
- package/package.json +25 -21
- package/sdk-tools.d.ts +7 -6
- package/sdk.d.ts +175 -123
- package/sdk.mjs +88 -85
- package/core-4tdxk2rb.mjs +0 -16
- package/core-7sc5aw3j.mjs +0 -17
- package/core-de9edyhn.mjs +0 -19
- package/core-dtdat34e.mjs +0 -45
- package/core-qkncpzfw.mjs +0 -42
- package/core-s4as5f4b.mjs +0 -18
- package/core-ttsjec9g.mjs +0 -17
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
|
|
3
|
-
// Version: 0.3.
|
|
3
|
+
// Version: 0.3.326
|
|
4
4
|
|
|
5
5
|
//! symbol-dispose-prelude: defines Symbol.dispose and Symbol.asyncDispose if missing, for this bundle's `using`.
|
|
6
6
|
if (typeof Symbol.dispose !== 'symbol') {
|
|
@@ -13,6 +13,6 @@ if (typeof Symbol.asyncDispose !== 'symbol') {
|
|
|
13
13
|
Symbol.asyncDispose = Symbol.for('Symbol.asyncDispose')
|
|
14
14
|
} catch {}
|
|
15
15
|
}
|
|
16
|
-
import{_}from"./core-
|
|
16
|
+
import{_}from"./core-dnsvg8nc.mjs";import{fn}from"./core-td7rt8zt.mjs";import{execFile as f}from"child_process";import{promisify as m}from"util";import{existsSync as n,lstatSync as s,readdirSync as l,statSync as a}from"fs";import{isAbsolute as c,join as p}from"path";function i(r,e){if(process.platform!=="darwin"||Boolean(e.DEVELOPER_DIR))return!1;try{return(r.includes("/")?r:(e.PATH??"").split(":").filter((t)=>c(t)).map((t)=>p(t,r)).find((t)=>n(t)))==="/usr/bin/git"&&a("/Library/Developer/CommandLineTools",{throwIfNoEntry:!1})===void 0&&s("/var/db/xcode_select_link",{throwIfNoEntry:!1})===void 0&&!l("/Applications").some((t)=>/^Xcode.*\.app$/i.test(t))}catch{return!1}}var d=m(f);async function it(r){let e=fn("git");if(e===null||i(e,process.env))return[];try{let{stdout:o}=await d(e,["-c","core.hooksPath=/dev/null","-c","core.fsmonitor=","worktree","list","--porcelain"],{cwd:r,timeout:5000,windowsHide:!0});if(!o)return[];return o.split(`
|
|
17
17
|
`).filter((t)=>t.startsWith("worktree ")).map((t)=>_(t.slice(9)))}catch{return[]}}
|
|
18
|
-
export{
|
|
18
|
+
export{it};
|