@anthropic-ai/claude-agent-sdk 0.2.79 → 0.2.80

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/manifest.json CHANGED
@@ -1,46 +1,46 @@
1
1
  {
2
- "version": "2.1.79",
3
- "buildDate": "2026-03-18T21:38:23Z",
2
+ "version": "2.1.80",
3
+ "buildDate": "2026-03-19T21:05:44Z",
4
4
  "platforms": {
5
5
  "darwin-arm64": {
6
6
  "binary": "claude",
7
- "checksum": "839b876b084f1859b838f452814c94a1c0ba1556b7c0e363e30542d281918664",
8
- "size": 191799920
7
+ "checksum": "dbc25d38f0da28709fe22f248b08f80e73f2e43170dbedeff47bd8b97db8e737",
8
+ "size": 192658544
9
9
  },
10
10
  "darwin-x64": {
11
11
  "binary": "claude",
12
- "checksum": "18ba1806d172c98929c07c4e7f1d0f0b6e06947c62c52385534723218d22d63c",
13
- "size": 197896688
12
+ "checksum": "c34d5fd9f4992c323f028d8570e62d6d174b987712ac8c8b092a641a84bee2ac",
13
+ "size": 198738800
14
14
  },
15
15
  "linux-arm64": {
16
16
  "binary": "claude",
17
- "checksum": "cc2090a519df805819d6e0d8a49584fe7d527cc58c34aad894fbfe7a5df8a5bf",
18
- "size": 233712431
17
+ "checksum": "82897d5ecd55a466a47161b21b417075e8149ca816001ba15796ff05371afdd5",
18
+ "size": 234552045
19
19
  },
20
20
  "linux-x64": {
21
21
  "binary": "claude",
22
- "checksum": "35561c56625d25507f4531ff8e88575df3a5e3574cffacffddcd48d2814d3c49",
23
- "size": 236484458
22
+ "checksum": "49fa3cf7aaab9d54066e85eaa11911b7d25c629a82af323a76b22db2029d4fa2",
23
+ "size": 237323990
24
24
  },
25
25
  "linux-arm64-musl": {
26
26
  "binary": "claude",
27
- "checksum": "ec2277cf39b69fc1cc906956be7aaf23c51ed085205601d0312976dbc789885d",
28
- "size": 224247903
27
+ "checksum": "5a1b81f1d339300b0dcc212da758b3feb1dc17e9cfeb2c0327eb8e659bbea5e8",
28
+ "size": 225087517
29
29
  },
30
30
  "linux-x64-musl": {
31
31
  "binary": "claude",
32
- "checksum": "79f989c0d9b2865e6b1ff9f99b7204fdefb1605a413de2687a81f717a3e69e14",
33
- "size": 227081946
32
+ "checksum": "5e311b22fafa4a0c474b8ba4b75a0b3d65e2e3bfc47c26d2d67db053fb4249f3",
33
+ "size": 227921478
34
34
  },
35
35
  "win32-x64": {
36
36
  "binary": "claude.exe",
37
- "checksum": "ba7692c5d175a642b11d0e454f4f5b1213a8a0c9e1ea755bf1d6b311cdf7d135",
38
- "size": 240995488
37
+ "checksum": "397fd9116ef369411e40e4439b709c41d737c4bf45f7445a9d0687b03f81c6ba",
38
+ "size": 241805984
39
39
  },
40
40
  "win32-arm64": {
41
41
  "binary": "claude.exe",
42
- "checksum": "203de9158651740b64c60b7c056fb9ecf90e53f9b1baa7694010afb780704f81",
43
- "size": 237189792
42
+ "checksum": "d09d3695186bf7f151e060ad11eb53f57699999b3d1a674e5b9247166974cbe5",
43
+ "size": 237999776
44
44
  }
45
45
  }
46
46
  }
package/manifest.zst.json CHANGED
@@ -1,54 +1,54 @@
1
1
  {
2
- "version": "2.1.79",
3
- "buildDate": "2026-03-18T21:38:24Z",
2
+ "version": "2.1.80",
3
+ "buildDate": "2026-03-19T21:05:45Z",
4
4
  "platforms": {
5
5
  "darwin-arm64": {
6
6
  "binary": "claude.zst",
7
- "checksum": "f4d9402c3893680f5f64389738277210b42114e4eaf6e6485d7e6cc687d389eb",
8
- "size": 40782376,
7
+ "checksum": "afdd299abe88c820caaa957960a5973336520f34b67a2c45997ab2cef79a2ae1",
8
+ "size": 40964130,
9
9
  "bundle": {
10
- "checksum": "c1d9b696889c25f4c27775c072261bc1970cdf05cecd17b640855d193f62b44c",
11
- "size": 40781395
10
+ "checksum": "0850e5a8b48bebc454745d322a36e480917dfabf274a3df45ae0b125b31247ff",
11
+ "size": 40956682
12
12
  }
13
13
  },
14
14
  "darwin-x64": {
15
15
  "binary": "claude.zst",
16
- "checksum": "d9b123b61eae3f8e2a06d005ad22b0c69385e85aabb8cf6ffb4ba5486adac4f9",
17
- "size": 43222913,
16
+ "checksum": "4e5e80532f42a5cb1be0dd5102cc6c86612db6c1e41941628bd0e8ec0dbd246a",
17
+ "size": 43401782,
18
18
  "bundle": {
19
- "checksum": "cd3e64ca4a6138858fe11d08179618ae85a3a64e7485d80a762d7454c296b59d",
20
- "size": 43226541
19
+ "checksum": "38164583424f70536d086754ea1269de78077e91ffc177c369c16d883fc49f8a",
20
+ "size": 43410819
21
21
  }
22
22
  },
23
23
  "linux-arm64": {
24
24
  "binary": "claude.zst",
25
- "checksum": "1691ab173dedfbbdc3d47034e2a6729956a81348747eb3c32083a12ee8dc1862",
26
- "size": 52719614
25
+ "checksum": "7917309a717f53c2f3dce049ee26cc1887e12e5b8d1b93e704a1eecda47ffed8",
26
+ "size": 52888800
27
27
  },
28
28
  "linux-x64": {
29
29
  "binary": "claude.zst",
30
- "checksum": "57fd729a9bae43d786287547612d87e3acf38731f2a5837bf94509be0f866879",
31
- "size": 53431477
30
+ "checksum": "c9d70ec722bf97a2bf875c0e4d4e53fa59975a7f8dd510b18ff2c7a28a9fad2f",
31
+ "size": 53610723
32
32
  },
33
33
  "linux-arm64-musl": {
34
34
  "binary": "claude.zst",
35
- "checksum": "0c3c2961c9a8dd397ca269504a464f49a13e8215aa3455c58f0517761a11b28b",
36
- "size": 50648345
35
+ "checksum": "df838e546d92e71e6c22f67069eef00b34d536a0ce15032186db2f9321665141",
36
+ "size": 50821369
37
37
  },
38
38
  "linux-x64-musl": {
39
39
  "binary": "claude.zst",
40
- "checksum": "8894d36a3c40047ee2fececf0abb70a95261b7b01a6a053724de9d7507194322",
41
- "size": 51410245
40
+ "checksum": "27645277d77203ba7218a676b1e5f93add3ea1d7ffb3ef9b7b9adadaedc6445c",
41
+ "size": 51569024
42
42
  },
43
43
  "win32-x64": {
44
44
  "binary": "claude.exe.zst",
45
- "checksum": "faf4b7435841f0731f63159912c6b7192619912c219ed911869ebccd78029796",
46
- "size": 54180135
45
+ "checksum": "f4f8acf0c39318d8c62dd22667aab825a39b85afd9cea996838b963e469cd299",
46
+ "size": 54366075
47
47
  },
48
48
  "win32-arm64": {
49
49
  "binary": "claude.exe.zst",
50
- "checksum": "ced80304ef312f922fe62e582dfd5a5b11c9e61beed338f00657599ee5a9d132",
51
- "size": 52227738
50
+ "checksum": "393a2629e93156ca445b4860f08f097b25c5db279fab8048493214006876dc76",
51
+ "size": 52410550
52
52
  }
53
53
  }
54
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.2.79",
3
+ "version": "0.2.80",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "exports": {
@@ -58,5 +58,5 @@
58
58
  "@img/sharp-win32-arm64": "^0.34.2",
59
59
  "@img/sharp-win32-x64": "^0.34.2"
60
60
  },
61
- "claudeCodeVersion": "2.1.79"
61
+ "claudeCodeVersion": "2.1.80"
62
62
  }
package/sdk.d.ts CHANGED
@@ -2889,6 +2889,116 @@ export declare interface Settings {
2889
2889
  * Regex pattern matched against the .path field of file and directory sources. Use in strictKnownMarketplaces to allow filesystem-based marketplaces alongside hostPattern restrictions for network sources. Use ".*" to allow all filesystem paths, or a narrower pattern (e.g., "^/opt/approved/") to restrict to specific directories.
2890
2890
  */
2891
2891
  pathPattern: string;
2892
+ } | {
2893
+ source: 'settings';
2894
+ /**
2895
+ * Marketplace name. Must match the extraKnownMarketplaces key (enforced); the synthetic manifest is written under this name. Same validation as PluginMarketplaceSchema plus reserved-name rejection — validateOfficialNameSource runs after the disk write, too late to clean up.
2896
+ */
2897
+ name: string;
2898
+ /**
2899
+ * Plugin entries declared inline in settings.json
2900
+ */
2901
+ plugins: {
2902
+ /**
2903
+ * Plugin name as it appears in the target repository
2904
+ */
2905
+ name: string;
2906
+ /**
2907
+ * Where to fetch the plugin from. Must be a remote source — relative paths have no marketplace repository to resolve against.
2908
+ */
2909
+ source: string | {
2910
+ source: 'npm';
2911
+ /**
2912
+ * Package name (or url, or local path, or anything else that can be passed to `npm` as a package)
2913
+ */
2914
+ package: string;
2915
+ /**
2916
+ * Specific version or version range (e.g., ^1.0.0, ~2.1.0)
2917
+ */
2918
+ version?: string;
2919
+ /**
2920
+ * Custom NPM registry URL (defaults to using system default, likely npmjs.org)
2921
+ */
2922
+ registry?: string;
2923
+ } | {
2924
+ source: 'pip';
2925
+ /**
2926
+ * Python package name as it appears on PyPI
2927
+ */
2928
+ package: string;
2929
+ /**
2930
+ * Version specifier (e.g., ==1.0.0, >=2.0.0, <3.0.0)
2931
+ */
2932
+ version?: string;
2933
+ /**
2934
+ * Custom PyPI registry URL (defaults to using system default, likely pypi.org)
2935
+ */
2936
+ registry?: string;
2937
+ } | {
2938
+ source: 'url';
2939
+ /**
2940
+ * Full git repository URL (https:// or git\@)
2941
+ */
2942
+ url: string;
2943
+ /**
2944
+ * Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.
2945
+ */
2946
+ ref?: string;
2947
+ /**
2948
+ * Specific commit SHA to use
2949
+ */
2950
+ sha?: string;
2951
+ } | {
2952
+ source: 'github';
2953
+ /**
2954
+ * GitHub repository in owner/repo format
2955
+ */
2956
+ repo: string;
2957
+ /**
2958
+ * Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.
2959
+ */
2960
+ ref?: string;
2961
+ /**
2962
+ * Specific commit SHA to use
2963
+ */
2964
+ sha?: string;
2965
+ } | {
2966
+ source: 'git-subdir';
2967
+ /**
2968
+ * Git repository: GitHub owner/repo shorthand, https://, or git\@ URL
2969
+ */
2970
+ url: string;
2971
+ /**
2972
+ * Subdirectory within the repo containing the plugin (e.g., "tools/claude-plugin"). Cloned sparsely using partial clone (--filter=tree:0) to minimize bandwidth for monorepos.
2973
+ */
2974
+ path: string;
2975
+ /**
2976
+ * Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.
2977
+ */
2978
+ ref?: string;
2979
+ /**
2980
+ * Specific commit SHA to use
2981
+ */
2982
+ sha?: string;
2983
+ };
2984
+ description?: string;
2985
+ version?: string;
2986
+ strict?: boolean;
2987
+ }[];
2988
+ owner?: {
2989
+ /**
2990
+ * Display name of the plugin author or organization
2991
+ */
2992
+ name: string;
2993
+ /**
2994
+ * Contact email for support or feedback
2995
+ */
2996
+ email?: string;
2997
+ /**
2998
+ * Website, GitHub profile, or organization URL
2999
+ */
3000
+ url?: string;
3001
+ };
2892
3002
  };
2893
3003
  /**
2894
3004
  * Local cache path where marketplace manifest is stored (auto-generated if not provided)
@@ -2981,6 +3091,116 @@ export declare interface Settings {
2981
3091
  * Regex pattern matched against the .path field of file and directory sources. Use in strictKnownMarketplaces to allow filesystem-based marketplaces alongside hostPattern restrictions for network sources. Use ".*" to allow all filesystem paths, or a narrower pattern (e.g., "^/opt/approved/") to restrict to specific directories.
2982
3092
  */
2983
3093
  pathPattern: string;
3094
+ } | {
3095
+ source: 'settings';
3096
+ /**
3097
+ * Marketplace name. Must match the extraKnownMarketplaces key (enforced); the synthetic manifest is written under this name. Same validation as PluginMarketplaceSchema plus reserved-name rejection — validateOfficialNameSource runs after the disk write, too late to clean up.
3098
+ */
3099
+ name: string;
3100
+ /**
3101
+ * Plugin entries declared inline in settings.json
3102
+ */
3103
+ plugins: {
3104
+ /**
3105
+ * Plugin name as it appears in the target repository
3106
+ */
3107
+ name: string;
3108
+ /**
3109
+ * Where to fetch the plugin from. Must be a remote source — relative paths have no marketplace repository to resolve against.
3110
+ */
3111
+ source: string | {
3112
+ source: 'npm';
3113
+ /**
3114
+ * Package name (or url, or local path, or anything else that can be passed to `npm` as a package)
3115
+ */
3116
+ package: string;
3117
+ /**
3118
+ * Specific version or version range (e.g., ^1.0.0, ~2.1.0)
3119
+ */
3120
+ version?: string;
3121
+ /**
3122
+ * Custom NPM registry URL (defaults to using system default, likely npmjs.org)
3123
+ */
3124
+ registry?: string;
3125
+ } | {
3126
+ source: 'pip';
3127
+ /**
3128
+ * Python package name as it appears on PyPI
3129
+ */
3130
+ package: string;
3131
+ /**
3132
+ * Version specifier (e.g., ==1.0.0, >=2.0.0, <3.0.0)
3133
+ */
3134
+ version?: string;
3135
+ /**
3136
+ * Custom PyPI registry URL (defaults to using system default, likely pypi.org)
3137
+ */
3138
+ registry?: string;
3139
+ } | {
3140
+ source: 'url';
3141
+ /**
3142
+ * Full git repository URL (https:// or git\@)
3143
+ */
3144
+ url: string;
3145
+ /**
3146
+ * Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.
3147
+ */
3148
+ ref?: string;
3149
+ /**
3150
+ * Specific commit SHA to use
3151
+ */
3152
+ sha?: string;
3153
+ } | {
3154
+ source: 'github';
3155
+ /**
3156
+ * GitHub repository in owner/repo format
3157
+ */
3158
+ repo: string;
3159
+ /**
3160
+ * Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.
3161
+ */
3162
+ ref?: string;
3163
+ /**
3164
+ * Specific commit SHA to use
3165
+ */
3166
+ sha?: string;
3167
+ } | {
3168
+ source: 'git-subdir';
3169
+ /**
3170
+ * Git repository: GitHub owner/repo shorthand, https://, or git\@ URL
3171
+ */
3172
+ url: string;
3173
+ /**
3174
+ * Subdirectory within the repo containing the plugin (e.g., "tools/claude-plugin"). Cloned sparsely using partial clone (--filter=tree:0) to minimize bandwidth for monorepos.
3175
+ */
3176
+ path: string;
3177
+ /**
3178
+ * Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.
3179
+ */
3180
+ ref?: string;
3181
+ /**
3182
+ * Specific commit SHA to use
3183
+ */
3184
+ sha?: string;
3185
+ };
3186
+ description?: string;
3187
+ version?: string;
3188
+ strict?: boolean;
3189
+ }[];
3190
+ owner?: {
3191
+ /**
3192
+ * Display name of the plugin author or organization
3193
+ */
3194
+ name: string;
3195
+ /**
3196
+ * Contact email for support or feedback
3197
+ */
3198
+ email?: string;
3199
+ /**
3200
+ * Website, GitHub profile, or organization URL
3201
+ */
3202
+ url?: string;
3203
+ };
2984
3204
  })[];
2985
3205
  /**
2986
3206
  * Enterprise blocklist of marketplace sources. When set in managed settings, these exact sources are blocked from being added as marketplaces. The check happens BEFORE downloading, so blocked sources never touch the filesystem.
@@ -3063,6 +3283,116 @@ export declare interface Settings {
3063
3283
  * Regex pattern matched against the .path field of file and directory sources. Use in strictKnownMarketplaces to allow filesystem-based marketplaces alongside hostPattern restrictions for network sources. Use ".*" to allow all filesystem paths, or a narrower pattern (e.g., "^/opt/approved/") to restrict to specific directories.
3064
3284
  */
3065
3285
  pathPattern: string;
3286
+ } | {
3287
+ source: 'settings';
3288
+ /**
3289
+ * Marketplace name. Must match the extraKnownMarketplaces key (enforced); the synthetic manifest is written under this name. Same validation as PluginMarketplaceSchema plus reserved-name rejection — validateOfficialNameSource runs after the disk write, too late to clean up.
3290
+ */
3291
+ name: string;
3292
+ /**
3293
+ * Plugin entries declared inline in settings.json
3294
+ */
3295
+ plugins: {
3296
+ /**
3297
+ * Plugin name as it appears in the target repository
3298
+ */
3299
+ name: string;
3300
+ /**
3301
+ * Where to fetch the plugin from. Must be a remote source — relative paths have no marketplace repository to resolve against.
3302
+ */
3303
+ source: string | {
3304
+ source: 'npm';
3305
+ /**
3306
+ * Package name (or url, or local path, or anything else that can be passed to `npm` as a package)
3307
+ */
3308
+ package: string;
3309
+ /**
3310
+ * Specific version or version range (e.g., ^1.0.0, ~2.1.0)
3311
+ */
3312
+ version?: string;
3313
+ /**
3314
+ * Custom NPM registry URL (defaults to using system default, likely npmjs.org)
3315
+ */
3316
+ registry?: string;
3317
+ } | {
3318
+ source: 'pip';
3319
+ /**
3320
+ * Python package name as it appears on PyPI
3321
+ */
3322
+ package: string;
3323
+ /**
3324
+ * Version specifier (e.g., ==1.0.0, >=2.0.0, <3.0.0)
3325
+ */
3326
+ version?: string;
3327
+ /**
3328
+ * Custom PyPI registry URL (defaults to using system default, likely pypi.org)
3329
+ */
3330
+ registry?: string;
3331
+ } | {
3332
+ source: 'url';
3333
+ /**
3334
+ * Full git repository URL (https:// or git\@)
3335
+ */
3336
+ url: string;
3337
+ /**
3338
+ * Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.
3339
+ */
3340
+ ref?: string;
3341
+ /**
3342
+ * Specific commit SHA to use
3343
+ */
3344
+ sha?: string;
3345
+ } | {
3346
+ source: 'github';
3347
+ /**
3348
+ * GitHub repository in owner/repo format
3349
+ */
3350
+ repo: string;
3351
+ /**
3352
+ * Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.
3353
+ */
3354
+ ref?: string;
3355
+ /**
3356
+ * Specific commit SHA to use
3357
+ */
3358
+ sha?: string;
3359
+ } | {
3360
+ source: 'git-subdir';
3361
+ /**
3362
+ * Git repository: GitHub owner/repo shorthand, https://, or git\@ URL
3363
+ */
3364
+ url: string;
3365
+ /**
3366
+ * Subdirectory within the repo containing the plugin (e.g., "tools/claude-plugin"). Cloned sparsely using partial clone (--filter=tree:0) to minimize bandwidth for monorepos.
3367
+ */
3368
+ path: string;
3369
+ /**
3370
+ * Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.
3371
+ */
3372
+ ref?: string;
3373
+ /**
3374
+ * Specific commit SHA to use
3375
+ */
3376
+ sha?: string;
3377
+ };
3378
+ description?: string;
3379
+ version?: string;
3380
+ strict?: boolean;
3381
+ }[];
3382
+ owner?: {
3383
+ /**
3384
+ * Display name of the plugin author or organization
3385
+ */
3386
+ name: string;
3387
+ /**
3388
+ * Contact email for support or feedback
3389
+ */
3390
+ email?: string;
3391
+ /**
3392
+ * Website, GitHub profile, or organization URL
3393
+ */
3394
+ url?: string;
3395
+ };
3066
3396
  })[];
3067
3397
  /**
3068
3398
  * Force a specific login method: "claudeai" for Claude Pro/Max, "console" for Console billing