@anthropic-ai/claude-code 2.1.238 → 2.1.239
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 +102 -5
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.239",
|
|
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.239",
|
|
25
|
+
"@anthropic-ai/claude-code-darwin-x64": "2.1.239",
|
|
26
|
+
"@anthropic-ai/claude-code-linux-x64": "2.1.239",
|
|
27
|
+
"@anthropic-ai/claude-code-linux-arm64": "2.1.239",
|
|
28
|
+
"@anthropic-ai/claude-code-linux-x64-musl": "2.1.239",
|
|
29
|
+
"@anthropic-ai/claude-code-linux-arm64-musl": "2.1.239",
|
|
30
|
+
"@anthropic-ai/claude-code-win32-x64": "2.1.239",
|
|
31
|
+
"@anthropic-ai/claude-code-win32-arm64": "2.1.239"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"bin/claude.exe",
|
package/sdk-tools.d.ts
CHANGED
|
@@ -426,6 +426,88 @@ export type ArtifactOutput =
|
|
|
426
426
|
truncated?: boolean;
|
|
427
427
|
scope?: "shared" | "all";
|
|
428
428
|
}
|
|
429
|
+
| {
|
|
430
|
+
read: {
|
|
431
|
+
url: string;
|
|
432
|
+
bytes: number;
|
|
433
|
+
code: number;
|
|
434
|
+
codeText: string;
|
|
435
|
+
result: string;
|
|
436
|
+
durationMs: number;
|
|
437
|
+
};
|
|
438
|
+
artifactRead?: {
|
|
439
|
+
slug: string;
|
|
440
|
+
ver?: string;
|
|
441
|
+
seeded?: false;
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
| {
|
|
445
|
+
watch: {
|
|
446
|
+
url: string;
|
|
447
|
+
watching: boolean;
|
|
448
|
+
outcome: string;
|
|
449
|
+
reason?: string;
|
|
450
|
+
durable_skip_reason?: string;
|
|
451
|
+
task_id?: string;
|
|
452
|
+
since?: number;
|
|
453
|
+
token_expires_at?: number;
|
|
454
|
+
rail?: string;
|
|
455
|
+
trigger_id?: string;
|
|
456
|
+
durable_since?: string;
|
|
457
|
+
status?: number;
|
|
458
|
+
note?: string;
|
|
459
|
+
events?: string[];
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
| {
|
|
463
|
+
unwatch: {
|
|
464
|
+
url: string;
|
|
465
|
+
was_watching: boolean;
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
| {
|
|
469
|
+
watches: (
|
|
470
|
+
| {
|
|
471
|
+
url: string;
|
|
472
|
+
task_id: string;
|
|
473
|
+
since: number;
|
|
474
|
+
explicit: boolean;
|
|
475
|
+
connected: boolean;
|
|
476
|
+
connecting?: boolean;
|
|
477
|
+
token_expires_at: number;
|
|
478
|
+
armed_via?: string;
|
|
479
|
+
}
|
|
480
|
+
| {
|
|
481
|
+
url: string;
|
|
482
|
+
rail: "durable_wake";
|
|
483
|
+
trigger_id: string;
|
|
484
|
+
since: string;
|
|
485
|
+
events?: string[];
|
|
486
|
+
restored?: boolean;
|
|
487
|
+
}
|
|
488
|
+
| {
|
|
489
|
+
url: string;
|
|
490
|
+
rail: "live_stopped";
|
|
491
|
+
since?: number;
|
|
492
|
+
explicit?: boolean;
|
|
493
|
+
armed_via?: string;
|
|
494
|
+
stop_kind: string;
|
|
495
|
+
}
|
|
496
|
+
)[];
|
|
497
|
+
filter_url?: string;
|
|
498
|
+
arms?: {
|
|
499
|
+
url: string;
|
|
500
|
+
rail?: string;
|
|
501
|
+
state: string;
|
|
502
|
+
reconnect?: boolean;
|
|
503
|
+
failures?: number;
|
|
504
|
+
max_failures?: number;
|
|
505
|
+
next_in_s?: number;
|
|
506
|
+
last_failure?: string;
|
|
507
|
+
reason?: string;
|
|
508
|
+
at?: number;
|
|
509
|
+
}[];
|
|
510
|
+
}
|
|
429
511
|
| {
|
|
430
512
|
asset_upload: {
|
|
431
513
|
id: string;
|
|
@@ -2927,11 +3009,21 @@ export interface ProposeGoalInput {
|
|
|
2927
3009
|
}
|
|
2928
3010
|
export interface ArtifactInput {
|
|
2929
3011
|
/**
|
|
2930
|
-
* 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.
|
|
3012
|
+
* 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. 'read' returns the content of the published artifact at `url` (raw HTML for the user's own; an isolated summary, steered by the optional `prompt`, for one shared with them, though a page published in this session's own Slack channel can come back in full as untrusted content) — see **To read an existing artifact's content**. 'watch', 'unwatch', and 'status' manage live-update subscriptions that notify a session when an artifact is republished elsewhere, and those aren't available in this session: 'watch' only reports that — no republish notification reaches this session — and 'status' lists this session's artifact watches (pass `url` to check one). '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.
|
|
2931
3013
|
*/
|
|
2932
|
-
action?:
|
|
3014
|
+
action?:
|
|
3015
|
+
| "publish"
|
|
3016
|
+
| "list"
|
|
3017
|
+
| "read"
|
|
3018
|
+
| "watch"
|
|
3019
|
+
| "unwatch"
|
|
3020
|
+
| "status"
|
|
3021
|
+
| "upload_asset"
|
|
3022
|
+
| "list_assets"
|
|
3023
|
+
| "read_asset"
|
|
3024
|
+
| "delete_asset";
|
|
2933
3025
|
/**
|
|
2934
|
-
* Path to
|
|
3026
|
+
* Path to the .html 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.
|
|
2935
3027
|
*/
|
|
2936
3028
|
file_path?: string;
|
|
2937
3029
|
/**
|
|
@@ -2959,11 +3051,15 @@ export interface ArtifactInput {
|
|
|
2959
3051
|
*/
|
|
2960
3052
|
label?: string;
|
|
2961
3053
|
/**
|
|
2962
|
-
* Existing artifact URL to update in place. Pass whenever the user wants to update an artifact this conversation did not publish — "update my artifact", "keep the same link", a pasted artifact URL — and find the URL with action: "list" or ask the user for the link if you don't have it; without this, the publish creates a separate artifact instead of updating the existing one. Omit for new artifacts and same-conversation redeploys. Must be an artifact the user owns.
|
|
3054
|
+
* Existing artifact URL to update in place. Pass whenever the user wants to update an artifact this conversation did not publish — "update my artifact", "keep the same link", a pasted artifact URL — and find the URL with action: "list" or ask the user for the link if you don't have it; without this, the publish creates a separate artifact instead of updating the existing one. Omit for new artifacts and same-conversation redeploys. Must be an artifact the user owns. For 'read' and the other url-addressed actions: the artifact to act on.
|
|
2963
3055
|
*/
|
|
2964
3056
|
url?: string;
|
|
2965
3057
|
/**
|
|
2966
|
-
*
|
|
3058
|
+
* read only: what to extract from an artifact shared with the user — its content reaches you as an isolated summary answering this. Ignored for artifacts the user owns and for a page published in this session's own Slack channel (raw content is returned); optional.
|
|
3059
|
+
*/
|
|
3060
|
+
prompt?: string;
|
|
3061
|
+
/**
|
|
3062
|
+
* Last-resort overwrite that DISCARDS the newer published version — another session's publish, or someone's save from a page that can publish new versions of itself. On a conflict the fix is to merge your changes onto the newer content (handed to you in the rejection, or re-read) and publish again — not force. Pass force:true only when the user has explicitly said to discard that specific version; never to get past a conflict on your own judgment. The tracked baseVersion is still sent; with force:true the server treats it as informational and overwrites, unless it refuses force over a version saved from inside the page. Omit (or false) so a concurrent write conflicts instead of being silently clobbered.
|
|
2967
3063
|
*/
|
|
2968
3064
|
force?: boolean;
|
|
2969
3065
|
/**
|
|
@@ -3479,6 +3575,7 @@ export interface WebFetchOutput {
|
|
|
3479
3575
|
artifactRead?: {
|
|
3480
3576
|
slug: string;
|
|
3481
3577
|
ver?: string;
|
|
3578
|
+
seeded?: false;
|
|
3482
3579
|
};
|
|
3483
3580
|
}
|
|
3484
3581
|
export interface WebSearchOutput {
|