@anthropic-ai/claude-agent-sdk 0.3.190 → 0.3.193
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.mjs +73 -73
- package/browser-sdk.d.ts +5 -0
- package/browser-sdk.js +38 -38
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk-tools.d.ts +14 -2
- package/sdk.d.ts +42 -23
- package/sdk.mjs +44 -43
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-06-
|
|
2
|
+
"version": "2.1.193",
|
|
3
|
+
"commit": "a1938d2a07a2e4fecbef4eeac813221929e97d22",
|
|
4
|
+
"buildDate": "2026-06-25T18:25:46Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "f7513a30385ad9019c237226fd6ec46508b3062ebefca8aedbe397d111a818ff",
|
|
9
|
+
"size": 222248240
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "cba5c3bdca8ab5f8e7590406702d418f6114d9b39f48f16876680e881abf1ee8",
|
|
14
|
+
"size": 230317808
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "39454ce62e795eeb4871a81f6453cda96e926e2db9a4dd41d0ec1b60b0153448",
|
|
19
|
+
"size": 237419248
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "c9f04d929f18bd9a101f3897f27de4e1e0f15ebe8400d4aaf02983d73dd66b1d",
|
|
24
|
+
"size": 240556856
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "658bbae05441c2d3792f9870a5001a1dfa7a62956abffc151aed7cae0adf9f7d",
|
|
29
|
+
"size": 230667448
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "b37861314ace243d8425ebce503c657c5d9f76af361f9bd8ca3bd34b2e71474a",
|
|
34
|
+
"size": 235258240
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "ffea22269bf66ce778ce845ea0c15cb5b21d39be82601a065c3eca6f7368da3e",
|
|
39
|
+
"size": 231359136
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "0bea15edaf5791220c646f9066bda84397a73053d88f225c7622c7a2ab45ff59",
|
|
44
|
+
"size": 225839264
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
package/manifest.zst.json
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-06-
|
|
2
|
+
"version": "2.1.193",
|
|
3
|
+
"commit": "a1938d2a07a2e4fecbef4eeac813221929e97d22",
|
|
4
|
+
"buildDate": "2026-06-25T18:27:30Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "4a2ec55b60034283b5fa69f428e8f988ba34900df492570efa9d0b95ea8b2371",
|
|
9
|
+
"size": 46939034,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "b22dd015e35d7be690ab9bdb9881729f1193f7895cfe26537987b40d92abfef1",
|
|
12
|
+
"size": 46942638
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "03786846ce6be30dd8eacb4258802742d16ec380826b2f200c818a0dc24f974a",
|
|
18
|
+
"size": 49963257,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "b65bc8bf45d0778e4bfd30fb3f4ad9ba9fe04467ee42b032fd11a1bda0bbb5ef",
|
|
21
|
+
"size": 49966826
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "78e004c0239710b557cc94c16b3bfd68901890ee615f065269940ec45344b230",
|
|
27
|
+
"size": 54766727
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "f19d7c97b3f7a6042db6bd7c161f2cd79c9a989c561babc2aa9aba607d60b6c4",
|
|
32
|
+
"size": 56010978
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "439690d551c0d5208f621fabb5bbf7692d28917c97c75fe2422c108d7f567cfd",
|
|
37
|
+
"size": 53446704
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "3ad75f2b78602007b48e78b8e44fbd93cc3a08f7426874f4848a93d03f117f6d",
|
|
42
|
+
"size": 54812412
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "cd30d76348ef9d0af52d4b15bc72abc9d73e31ca8da5d3650cbb18cfdd767cd2",
|
|
47
|
+
"size": 56154427
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "3ab354ba3f088c1629fcb34beb2c71b99a27ea951a471d22567213136b8ae541",
|
|
52
|
+
"size": 54174949
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anthropic-ai/claude-agent-sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.193",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"zod": "^4.0.0"
|
|
58
58
|
},
|
|
59
59
|
"optionalDependencies": {
|
|
60
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.
|
|
61
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.
|
|
62
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.
|
|
63
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.
|
|
64
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.
|
|
66
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.
|
|
67
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.
|
|
60
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.193",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.193",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.193",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.193",
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.193",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.193",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.193",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.193"
|
|
68
68
|
},
|
|
69
69
|
"files": [
|
|
70
70
|
"sdk.mjs",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"manifest.json",
|
|
81
81
|
"manifest.zst.json"
|
|
82
82
|
],
|
|
83
|
-
"claudeCodeVersion": "2.1.
|
|
83
|
+
"claudeCodeVersion": "2.1.193"
|
|
84
84
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -2520,7 +2520,7 @@ export interface ArtifactInput {
|
|
|
2520
2520
|
*/
|
|
2521
2521
|
favicon: string;
|
|
2522
2522
|
/**
|
|
2523
|
-
* Short human-readable name for this version (e.g. "fixed-background"). Shown in the version picker
|
|
2523
|
+
* Short human-readable name for this version, max 60 chars (e.g. "fixed-background"). Shown in the version picker. Not a description — keep it to a few words.
|
|
2524
2524
|
*/
|
|
2525
2525
|
label?: string;
|
|
2526
2526
|
/**
|
|
@@ -2776,7 +2776,7 @@ export interface GlobOutput {
|
|
|
2776
2776
|
*/
|
|
2777
2777
|
durationMs: number;
|
|
2778
2778
|
/**
|
|
2779
|
-
*
|
|
2779
|
+
* Number of file paths returned (after any truncation)
|
|
2780
2780
|
*/
|
|
2781
2781
|
numFiles: number;
|
|
2782
2782
|
/**
|
|
@@ -2787,6 +2787,14 @@ export interface GlobOutput {
|
|
|
2787
2787
|
* Whether results were truncated (limited to 100 files)
|
|
2788
2788
|
*/
|
|
2789
2789
|
truncated: boolean;
|
|
2790
|
+
/**
|
|
2791
|
+
* Total number of matching files before truncation. A lower bound when countIsComplete is false. Absent on results persisted by CLI versions predating this field.
|
|
2792
|
+
*/
|
|
2793
|
+
totalMatches?: number;
|
|
2794
|
+
/**
|
|
2795
|
+
* Whether totalMatches is the exact total (true) or a floor because the underlying search truncated its own output (false). Absent on results persisted by CLI versions predating this field.
|
|
2796
|
+
*/
|
|
2797
|
+
countIsComplete?: boolean;
|
|
2790
2798
|
}
|
|
2791
2799
|
export interface GrepOutput {
|
|
2792
2800
|
mode?: "content" | "files_with_matches" | "count";
|
|
@@ -2821,6 +2829,10 @@ export interface NotebookEditOutput {
|
|
|
2821
2829
|
* The new source code that was written to the cell
|
|
2822
2830
|
*/
|
|
2823
2831
|
new_source: string;
|
|
2832
|
+
/**
|
|
2833
|
+
* The previous cell source (replace/delete only). Enables cell-relative diff rendering without re-reading the notebook.
|
|
2834
|
+
*/
|
|
2835
|
+
old_source?: string;
|
|
2824
2836
|
/**
|
|
2825
2837
|
* The ID of the cell that was edited
|
|
2826
2838
|
*/
|
package/sdk.d.ts
CHANGED
|
@@ -366,6 +366,7 @@ declare namespace coreTypes {
|
|
|
366
366
|
SDKMessage,
|
|
367
367
|
SDKMirrorErrorMessage,
|
|
368
368
|
SDKModelRefusalFallbackMessage,
|
|
369
|
+
SDKModelRefusalNoFallbackMessage,
|
|
369
370
|
SDKNotificationMessage,
|
|
370
371
|
SDKPartialAssistantMessage,
|
|
371
372
|
SDKPermissionDenial,
|
|
@@ -916,6 +917,17 @@ export declare type ListSessionsOptions = {
|
|
|
916
917
|
* Only applies when reading from the local filesystem.
|
|
917
918
|
*/
|
|
918
919
|
includeWorktrees?: boolean;
|
|
920
|
+
/**
|
|
921
|
+
* Include programmatic/headless sessions (SDK entrypoints `sdk-cli`,
|
|
922
|
+
* `sdk-ts`, `sdk-py`) and daemon/daemon-worker sessions. Defaults to
|
|
923
|
+
* `true` for backward compatibility — SDK consumers enumerating their
|
|
924
|
+
* own sessions see them. IDE session pickers pass `false` for parity
|
|
925
|
+
* with terminal `/resume`.
|
|
926
|
+
*
|
|
927
|
+
* Only applies when reading from the local filesystem; ignored when
|
|
928
|
+
* `sessionStore` is provided.
|
|
929
|
+
*/
|
|
930
|
+
includeProgrammatic?: boolean;
|
|
919
931
|
/**
|
|
920
932
|
* When provided, list sessions from this store instead of the local
|
|
921
933
|
* filesystem. Requires `store.listSessions` to be defined.
|
|
@@ -2570,25 +2582,6 @@ export declare type RewindFilesResult = {
|
|
|
2570
2582
|
|
|
2571
2583
|
export declare type SandboxCredentialsConfig = NonNullable<z.infer<ReturnType<typeof SandboxCredentialsConfigSchema>>>;
|
|
2572
2584
|
|
|
2573
|
-
/**
|
|
2574
|
-
* Credentials configuration schema for sandbox.
|
|
2575
|
-
*
|
|
2576
|
-
* Declares credential sources (files/directories and environment variables)
|
|
2577
|
-
* to protect. Every entry carries `mode: 'deny'`: file paths are denied for
|
|
2578
|
-
* reads inside the sandbox, environment variables are unset in sandboxed
|
|
2579
|
-
* commands.
|
|
2580
|
-
*
|
|
2581
|
-
* Only explicitly declared sources are affected — sandbox-runtime ships no
|
|
2582
|
-
* built-in credential deny list, so entries here are the complete set of
|
|
2583
|
-
* credential restrictions applied to sandboxed commands.
|
|
2584
|
-
*
|
|
2585
|
-
* Mode is `deny`-only — no `mask`. Claude Code hands this config to
|
|
2586
|
-
* sandbox-runtime programmatically, bypassing sandbox-runtime's own Zod
|
|
2587
|
-
* validation, and on that path unsupported modes are silently ignored rather
|
|
2588
|
-
* than rejected. This schema must be the gate that rejects modes
|
|
2589
|
-
* sandbox-runtime can't enforce yet; widen the mode (e.g. `mask`) only once
|
|
2590
|
-
* a sandbox-runtime version that enforces it ships.
|
|
2591
|
-
*/
|
|
2592
2585
|
declare const SandboxCredentialsConfigSchema: () => z.ZodOptional<z.ZodObject<{
|
|
2593
2586
|
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2594
2587
|
path: z.ZodString;
|
|
@@ -3704,7 +3697,7 @@ export declare type SDKMemoryRecallMessage = {
|
|
|
3704
3697
|
session_id: string;
|
|
3705
3698
|
};
|
|
3706
3699
|
|
|
3707
|
-
export declare type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKStatusMessage | SDKAPIRetryMessage | SDKModelRefusalFallbackMessage | SDKLocalCommandOutputMessage | SDKHookStartedMessage | SDKHookProgressMessage | SDKHookResponseMessage | SDKPluginInstallMessage | SDKToolProgressMessage | SDKAuthStatusMessage | SDKTaskNotificationMessage | SDKTaskStartedMessage | SDKTaskUpdatedMessage | SDKTaskProgressMessage | SDKThinkingTokensMessage | SDKSessionStateChangedMessage | SDKWorkerShuttingDownMessage | SDKCommandsChangedMessage | SDKNotificationMessage | SDKFilesPersistedEvent | SDKToolUseSummaryMessage | SDKMemoryRecallMessage | SDKRateLimitEvent | SDKElicitationCompleteMessage | SDKPermissionDeniedMessage | SDKPromptSuggestionMessage | SDKMirrorErrorMessage | SDKInformationalMessage;
|
|
3700
|
+
export declare type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKStatusMessage | SDKAPIRetryMessage | SDKModelRefusalFallbackMessage | SDKModelRefusalNoFallbackMessage | SDKLocalCommandOutputMessage | SDKHookStartedMessage | SDKHookProgressMessage | SDKHookResponseMessage | SDKPluginInstallMessage | SDKToolProgressMessage | SDKAuthStatusMessage | SDKTaskNotificationMessage | SDKTaskStartedMessage | SDKTaskUpdatedMessage | SDKTaskProgressMessage | SDKThinkingTokensMessage | SDKSessionStateChangedMessage | SDKWorkerShuttingDownMessage | SDKCommandsChangedMessage | SDKNotificationMessage | SDKFilesPersistedEvent | SDKToolUseSummaryMessage | SDKMemoryRecallMessage | SDKRateLimitEvent | SDKElicitationCompleteMessage | SDKPermissionDeniedMessage | SDKPromptSuggestionMessage | SDKMirrorErrorMessage | SDKInformationalMessage;
|
|
3708
3701
|
|
|
3709
3702
|
/**
|
|
3710
3703
|
* Provenance of a user-role message (peer session, team lead, channel). Absent or `human` means keyboard input from the user.
|
|
@@ -3770,6 +3763,26 @@ export declare type SDKModelRefusalFallbackMessage = {
|
|
|
3770
3763
|
* Wire uuids of the messages this fallback retracted — the refused partial as the consumer received it (one uuid per normalized SDK message; multi-block messages carry per-block derived uuids) plus any tombstoned tool_results. Emitted AFTER the retraction, so this is a resolution-time eviction signal: remove these messages from transcript state on receipt. Eviction is idempotent — unknown or already-removed uuids are a no-op. Absent when emitted by an older CLI.
|
|
3771
3764
|
*/
|
|
3772
3765
|
retracted_message_uuids?: string[];
|
|
3766
|
+
/**
|
|
3767
|
+
* UUID of the user message the refused request was for — the rewind target and composer prefill for edit-and-retry. This is the message's own uuid as delivered on the replay ack (not a per-block normalized uuid). null when the refused turn was not human-authored (e.g. a background task notification or auto-continuation — nothing to edit-and-retry) or otherwise cannot be identified; absent from older CLIs.
|
|
3768
|
+
*/
|
|
3769
|
+
refused_user_message_uuid?: string | null;
|
|
3770
|
+
content: string;
|
|
3771
|
+
uuid: UUID;
|
|
3772
|
+
session_id: string;
|
|
3773
|
+
};
|
|
3774
|
+
|
|
3775
|
+
/**
|
|
3776
|
+
* Emitted when the model ends the stream with stop_reason "refusal" and no fallback model is configured, so the turn ends as an error. The structured counterpart to detecting stop_reason "refusal" on the assistant error frame. Not emitted when a fallback existed but was declined or gate-failed (model_refusal_fallback covers the retry case). Absent from older CLIs.
|
|
3777
|
+
*/
|
|
3778
|
+
export declare type SDKModelRefusalNoFallbackMessage = {
|
|
3779
|
+
type: 'system';
|
|
3780
|
+
subtype: 'model_refusal_no_fallback';
|
|
3781
|
+
original_model: string;
|
|
3782
|
+
request_id: string | null;
|
|
3783
|
+
api_refusal_category?: string | null;
|
|
3784
|
+
api_refusal_explanation?: string | null;
|
|
3785
|
+
refused_user_message_uuid?: string | null;
|
|
3773
3786
|
content: string;
|
|
3774
3787
|
uuid: UUID;
|
|
3775
3788
|
session_id: string;
|
|
@@ -5180,7 +5193,7 @@ export declare interface Settings {
|
|
|
5180
5193
|
} | {
|
|
5181
5194
|
source: 'hostPattern';
|
|
5182
5195
|
/**
|
|
5183
|
-
* Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against
|
|
5196
|
+
* Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against github.com. For git sources (SSH or HTTPS), extracts the hostname from the URL. Use in strictKnownMarketplaces to allow all marketplaces from a specific host (e.g., "^github\.mycompany\.com$").
|
|
5184
5197
|
*/
|
|
5185
5198
|
hostPattern: string;
|
|
5186
5199
|
} | {
|
|
@@ -5380,7 +5393,7 @@ export declare interface Settings {
|
|
|
5380
5393
|
} | {
|
|
5381
5394
|
source: 'hostPattern';
|
|
5382
5395
|
/**
|
|
5383
|
-
* Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against
|
|
5396
|
+
* Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against github.com. For git sources (SSH or HTTPS), extracts the hostname from the URL. Use in strictKnownMarketplaces to allow all marketplaces from a specific host (e.g., "^github\.mycompany\.com$").
|
|
5384
5397
|
*/
|
|
5385
5398
|
hostPattern: string;
|
|
5386
5399
|
} | {
|
|
@@ -5570,7 +5583,7 @@ export declare interface Settings {
|
|
|
5570
5583
|
} | {
|
|
5571
5584
|
source: 'hostPattern';
|
|
5572
5585
|
/**
|
|
5573
|
-
* Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against
|
|
5586
|
+
* Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against github.com. For git sources (SSH or HTTPS), extracts the hostname from the URL. Use in strictKnownMarketplaces to allow all marketplaces from a specific host (e.g., "^github\.mycompany\.com$").
|
|
5574
5587
|
*/
|
|
5575
5588
|
hostPattern: string;
|
|
5576
5589
|
} | {
|
|
@@ -5678,6 +5691,10 @@ export declare interface Settings {
|
|
|
5678
5691
|
url?: string;
|
|
5679
5692
|
};
|
|
5680
5693
|
})[];
|
|
5694
|
+
/**
|
|
5695
|
+
* When true (and set in managed settings), rejects the --plugin-dir, --plugin-url, --agents, and non-sdk --mcp-config CLI flags at startup. Closes the CLI-flag bypass of strictKnownMarketplaces. Pair with allowedMcpServers for per-server MCP control; this setting does not gate other MCP entry points (SDK setMcpServers, claude mcp add, .mcp.json). Also blocks surfaces that spawn the CLI with these flags internally (see settings documentation). Only honored from managed settings; ignored in user/project/local settings.
|
|
5696
|
+
*/
|
|
5697
|
+
disableSideloadFlags?: boolean;
|
|
5681
5698
|
/**
|
|
5682
5699
|
* Marketplace names whose plugins may surface as contextual install suggestions (relevance-based tips). No marketplace-declared suggestions surface without this allowlist; the built-in first-party frontend-design tip is unaffected. Only honored when set in managed settings (policy scope); the key is ignored in user, project, and local settings. A name only takes effect when the marketplace is registered on the machine AND its registered source is also declared in managed settings, either as the extraKnownMarketplaces entry for that name or as an entry of strictKnownMarketplaces. A marketplace registered from a different source under an allowlisted name is ignored. The official marketplace is exempt from the source requirement: allowlisting its name alone suffices, since that name can only register from the official Anthropic source.
|
|
5683
5700
|
*/
|
|
@@ -5937,6 +5954,8 @@ export declare interface Settings {
|
|
|
5937
5954
|
options?: {
|
|
5938
5955
|
[k: string]: string | number | boolean | string[];
|
|
5939
5956
|
};
|
|
5957
|
+
} | {
|
|
5958
|
+
[k: string]: unknown;
|
|
5940
5959
|
};
|
|
5941
5960
|
};
|
|
5942
5961
|
/**
|