@anthropic-ai/claude-code 2.1.232 → 2.1.234
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/package.json +9 -9
- package/sdk-tools.d.ts +68 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anthropic-ai/claude-code",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.234",
|
|
4
4
|
"bin": {
|
|
5
5
|
"claude": "bin/claude.exe"
|
|
6
6
|
},
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {},
|
|
23
23
|
"optionalDependencies": {
|
|
24
|
-
"@anthropic-ai/claude-code-darwin-arm64": "2.1.
|
|
25
|
-
"@anthropic-ai/claude-code-darwin-x64": "2.1.
|
|
26
|
-
"@anthropic-ai/claude-code-linux-x64": "2.1.
|
|
27
|
-
"@anthropic-ai/claude-code-linux-arm64": "2.1.
|
|
28
|
-
"@anthropic-ai/claude-code-linux-x64-musl": "2.1.
|
|
29
|
-
"@anthropic-ai/claude-code-linux-arm64-musl": "2.1.
|
|
30
|
-
"@anthropic-ai/claude-code-win32-x64": "2.1.
|
|
31
|
-
"@anthropic-ai/claude-code-win32-arm64": "2.1.
|
|
24
|
+
"@anthropic-ai/claude-code-darwin-arm64": "2.1.234",
|
|
25
|
+
"@anthropic-ai/claude-code-darwin-x64": "2.1.234",
|
|
26
|
+
"@anthropic-ai/claude-code-linux-x64": "2.1.234",
|
|
27
|
+
"@anthropic-ai/claude-code-linux-arm64": "2.1.234",
|
|
28
|
+
"@anthropic-ai/claude-code-linux-x64-musl": "2.1.234",
|
|
29
|
+
"@anthropic-ai/claude-code-linux-arm64-musl": "2.1.234",
|
|
30
|
+
"@anthropic-ai/claude-code-win32-x64": "2.1.234",
|
|
31
|
+
"@anthropic-ai/claude-code-win32-arm64": "2.1.234"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"bin/claude.exe",
|
package/sdk-tools.d.ts
CHANGED
|
@@ -424,6 +424,54 @@ export type ArtifactOutput =
|
|
|
424
424
|
}[];
|
|
425
425
|
truncated?: boolean;
|
|
426
426
|
scope?: "shared" | "all";
|
|
427
|
+
}
|
|
428
|
+
| {
|
|
429
|
+
asset_upload: {
|
|
430
|
+
id: string;
|
|
431
|
+
url: string;
|
|
432
|
+
size_bytes: number;
|
|
433
|
+
content_type: string;
|
|
434
|
+
sha256?: string;
|
|
435
|
+
file_name: string;
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
| {
|
|
439
|
+
asset_list: {
|
|
440
|
+
url: string;
|
|
441
|
+
/**
|
|
442
|
+
* @maxItems 1000
|
|
443
|
+
*/
|
|
444
|
+
assets: {
|
|
445
|
+
id: string;
|
|
446
|
+
url: string;
|
|
447
|
+
content_type: string;
|
|
448
|
+
size_bytes: number;
|
|
449
|
+
sha256?: string;
|
|
450
|
+
created_at: string;
|
|
451
|
+
}[];
|
|
452
|
+
usage: {
|
|
453
|
+
files: number;
|
|
454
|
+
bytes: number;
|
|
455
|
+
max_files: number;
|
|
456
|
+
max_bytes: number;
|
|
457
|
+
};
|
|
458
|
+
next?: string;
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
| {
|
|
462
|
+
asset_read: {
|
|
463
|
+
id: string;
|
|
464
|
+
path: string;
|
|
465
|
+
size_bytes: number;
|
|
466
|
+
content_type: string;
|
|
467
|
+
sha256: string;
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
| {
|
|
471
|
+
asset_delete: {
|
|
472
|
+
id: string;
|
|
473
|
+
deleted: boolean;
|
|
474
|
+
};
|
|
427
475
|
};
|
|
428
476
|
export type ProjectsOutput =
|
|
429
477
|
| {
|
|
@@ -2878,11 +2926,11 @@ export interface ProposeGoalInput {
|
|
|
2878
2926
|
}
|
|
2879
2927
|
export interface ArtifactInput {
|
|
2880
2928
|
/**
|
|
2881
|
-
* Omit (or 'publish') to publish file_path. 'list' enumerates artifacts — the user's own by default, see `scope`; only `limit` and `scope` may accompany it.
|
|
2929
|
+
* Omit (or 'publish') to publish file_path. 'list' enumerates artifacts — the user's own by default, see `scope`; only `limit` and `scope` may accompany it. 'upload_asset' adds one local media, PDF, or font file to an existing artifact — pass `url` and `file_path`. 'list_assets' lists the files in an artifact's asset store (pass `url`; `after` continues a listing), 'read_asset' saves one of them to a local file named by its id (pass `url` and `asset_id`, optionally `out_dir`), and 'delete_asset' permanently removes one (pass `url` and `asset_id`). See **Artifact assets** above.
|
|
2882
2930
|
*/
|
|
2883
|
-
action?: "publish" | "list";
|
|
2931
|
+
action?: "publish" | "list" | "upload_asset" | "list_assets" | "read_asset" | "delete_asset";
|
|
2884
2932
|
/**
|
|
2885
|
-
* Path to an .html or .md file to render. Required to publish (the default action). Use a short, distinctive basename — it is the last-resort title when the HTML has no <title> and no `title` parameter is given.
|
|
2933
|
+
* Path to an .html or .md file to render. Required to publish (the default action). Use a short, distinctive basename — it is the last-resort title when the HTML has no <title> and no `title` parameter is given. For 'upload_asset', the local image, video, PDF, or font file to upload.
|
|
2886
2934
|
*/
|
|
2887
2935
|
file_path?: string;
|
|
2888
2936
|
/**
|
|
@@ -2917,6 +2965,18 @@ export interface ArtifactInput {
|
|
|
2917
2965
|
* Last-resort overwrite that DISCARDS another session's published version. On a 409 conflict the normal fix is to re-read the artifact, merge your edits on top of the newer content, and publish again — not force. Pass force:true only when the user explicitly wants to replace the other session's version. The tracked baseVersion is still sent; with force:true the server treats it as informational and overwrites. Omit (or false) so a concurrent write 409s instead of being silently clobbered.
|
|
2918
2966
|
*/
|
|
2919
2967
|
force?: boolean;
|
|
2968
|
+
/**
|
|
2969
|
+
* read_asset and delete_asset: the asset's id (32 hex characters), from a list_assets or upload_asset result.
|
|
2970
|
+
*/
|
|
2971
|
+
asset_id?: string;
|
|
2972
|
+
/**
|
|
2973
|
+
* read_asset only: directory to save the file into (default: the working directory). The file is named by the asset id plus the extension for its type.
|
|
2974
|
+
*/
|
|
2975
|
+
out_dir?: string;
|
|
2976
|
+
/**
|
|
2977
|
+
* list_assets only: the `next` value from a previous list_assets result, to continue that listing.
|
|
2978
|
+
*/
|
|
2979
|
+
after?: string;
|
|
2920
2980
|
}
|
|
2921
2981
|
export interface PushNotificationInput {
|
|
2922
2982
|
/**
|
|
@@ -3043,6 +3103,7 @@ export interface BashOutput {
|
|
|
3043
3103
|
| "merged"
|
|
3044
3104
|
| "commented"
|
|
3045
3105
|
| "closed"
|
|
3106
|
+
| "reopened"
|
|
3046
3107
|
| "ready"
|
|
3047
3108
|
| "draft"
|
|
3048
3109
|
| "auto-merge-enabled"
|
|
@@ -3803,6 +3864,10 @@ export interface REPLOutput {
|
|
|
3803
3864
|
* Error message if execution failed
|
|
3804
3865
|
*/
|
|
3805
3866
|
error?: string;
|
|
3867
|
+
/**
|
|
3868
|
+
* True on an async-dispatch receipt or refusal: the script was handed to the async dispatcher (queued — outcome arrives later as a poll event — or refused at the queue cap), so this Output carries no execution output and resume replay must skip the block
|
|
3869
|
+
*/
|
|
3870
|
+
asyncDispatched?: boolean;
|
|
3806
3871
|
/**
|
|
3807
3872
|
* Names of tools registered during this execution
|
|
3808
3873
|
*/
|