@anthropic-ai/claude-agent-sdk 0.2.73 → 0.2.75
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/cli.js +2317 -2269
- package/manifest.json +18 -18
- package/manifest.zst.json +18 -18
- package/package.json +8 -2
- package/sdk-tools.d.ts +20 -1
- package/sdk.d.ts +93 -12
- package/sdk.mjs +33 -30
package/manifest.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"buildDate": "2026-03-
|
|
2
|
+
"version": "2.1.75",
|
|
3
|
+
"buildDate": "2026-03-13T15:55:01Z",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"darwin-arm64": {
|
|
6
6
|
"binary": "claude",
|
|
7
|
-
"checksum": "
|
|
8
|
-
"size":
|
|
7
|
+
"checksum": "8c541a5e924eda2070eaf1702a48047af671c4dff6a11a5e762076614a082675",
|
|
8
|
+
"size": 190611072
|
|
9
9
|
},
|
|
10
10
|
"darwin-x64": {
|
|
11
11
|
"binary": "claude",
|
|
12
|
-
"checksum": "
|
|
13
|
-
"size":
|
|
12
|
+
"checksum": "82c90b91a0a18f60191f817b9b42304d8b17dbed75795b715c41f4fdfe4c782d",
|
|
13
|
+
"size": 196691328
|
|
14
14
|
},
|
|
15
15
|
"linux-arm64": {
|
|
16
16
|
"binary": "claude",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "ec8f4f7f7bb50611dae70c109a76ee1da6a3ab45511c65f117df215848ecc905",
|
|
18
|
+
"size": 232510985
|
|
19
19
|
},
|
|
20
20
|
"linux-x64": {
|
|
21
21
|
"binary": "claude",
|
|
22
|
-
"checksum": "
|
|
23
|
-
"size":
|
|
22
|
+
"checksum": "328b0a429c05a04f911157d886be5123cf1824a19ba8ca1f9d594c004eac32c9",
|
|
23
|
+
"size": 235274982
|
|
24
24
|
},
|
|
25
25
|
"linux-arm64-musl": {
|
|
26
26
|
"binary": "claude",
|
|
27
|
-
"checksum": "
|
|
28
|
-
"size":
|
|
27
|
+
"checksum": "7a2fac946817aec1565d7d31bc553984dbae65f7024b7af1b621a01bd620a41b",
|
|
28
|
+
"size": 223030073
|
|
29
29
|
},
|
|
30
30
|
"linux-x64-musl": {
|
|
31
31
|
"binary": "claude",
|
|
32
|
-
"checksum": "
|
|
33
|
-
"size":
|
|
32
|
+
"checksum": "ba25f78e7b337dd31479fda1203205b20821c69f439f08759710d74db263cde9",
|
|
33
|
+
"size": 225872470
|
|
34
34
|
},
|
|
35
35
|
"win32-x64": {
|
|
36
36
|
"binary": "claude.exe",
|
|
37
|
-
"checksum": "
|
|
38
|
-
"size":
|
|
37
|
+
"checksum": "f1a4f5eafcb702607bc01acb6e80d60013e3e3e164b24196e29f616aa5b58b68",
|
|
38
|
+
"size": 239061152
|
|
39
39
|
},
|
|
40
40
|
"win32-arm64": {
|
|
41
41
|
"binary": "claude.exe",
|
|
42
|
-
"checksum": "
|
|
43
|
-
"size":
|
|
42
|
+
"checksum": "6ea22ee1275efdf8bdd0ac1e5e73002a21bf4db6e3d238bfdab7b21fe7ba5078",
|
|
43
|
+
"size": 233647776
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
package/manifest.zst.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"buildDate": "2026-03-
|
|
2
|
+
"version": "2.1.75",
|
|
3
|
+
"buildDate": "2026-03-13T15:55:02Z",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"darwin-arm64": {
|
|
6
6
|
"binary": "claude.zst",
|
|
7
|
-
"checksum": "
|
|
8
|
-
"size":
|
|
7
|
+
"checksum": "391ef143a82ceaa6f59d380b6e8ead40dfcf5bc35db5fd5751c760298afdbbde",
|
|
8
|
+
"size": 40566832
|
|
9
9
|
},
|
|
10
10
|
"darwin-x64": {
|
|
11
11
|
"binary": "claude.zst",
|
|
12
|
-
"checksum": "
|
|
13
|
-
"size":
|
|
12
|
+
"checksum": "d6ce3efaae428548b2730c24eec168b0b9b244c15b6a7f4c80289e8ccd550e9c",
|
|
13
|
+
"size": 42978259
|
|
14
14
|
},
|
|
15
15
|
"linux-arm64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "9e2f4fed48dd190806fd1203f5232ae712c15a782133364323e157d889bc8e4e",
|
|
18
|
+
"size": 52459272
|
|
19
19
|
},
|
|
20
20
|
"linux-x64": {
|
|
21
21
|
"binary": "claude.zst",
|
|
22
|
-
"checksum": "
|
|
23
|
-
"size":
|
|
22
|
+
"checksum": "9ca39181bd31367fa9ca92e6cfab7267ab96caf26eb405957f9109f024426b2f",
|
|
23
|
+
"size": 53213745
|
|
24
24
|
},
|
|
25
25
|
"linux-arm64-musl": {
|
|
26
26
|
"binary": "claude.zst",
|
|
27
|
-
"checksum": "
|
|
28
|
-
"size":
|
|
27
|
+
"checksum": "91026e00e6f8af75ee199f27dfb0d4320b386699a7c176afff9fd5ba075e3e03",
|
|
28
|
+
"size": 50426167
|
|
29
29
|
},
|
|
30
30
|
"linux-x64-musl": {
|
|
31
31
|
"binary": "claude.zst",
|
|
32
|
-
"checksum": "
|
|
33
|
-
"size":
|
|
32
|
+
"checksum": "c7298eb29275f048cf64d8dad5afed60062e95a6e224902f89bc553723040ae9",
|
|
33
|
+
"size": 51209611
|
|
34
34
|
},
|
|
35
35
|
"win32-x64": {
|
|
36
36
|
"binary": "claude.exe.zst",
|
|
37
|
-
"checksum": "
|
|
38
|
-
"size":
|
|
37
|
+
"checksum": "741a84b1b9ba083ec36d63e1600b445efe738ca9a12eeba2f8c8e751784718d0",
|
|
38
|
+
"size": 53695392
|
|
39
39
|
},
|
|
40
40
|
"win32-arm64": {
|
|
41
41
|
"binary": "claude.exe.zst",
|
|
42
|
-
"checksum": "
|
|
43
|
-
"size":
|
|
42
|
+
"checksum": "d1ad85da558e2d9e4fb81e284bf462977e97a193e3b61f43d40a1d76cb49d277",
|
|
43
|
+
"size": 51783581
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anthropic-ai/claude-agent-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.75",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
"./embed": {
|
|
12
12
|
"types": "./embed.d.ts",
|
|
13
13
|
"default": "./embed.js"
|
|
14
|
+
},
|
|
15
|
+
"./sdk-tools": {
|
|
16
|
+
"types": "./sdk-tools.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./sdk-tools.js": {
|
|
19
|
+
"types": "./sdk-tools.d.ts"
|
|
14
20
|
}
|
|
15
21
|
},
|
|
16
22
|
"engines": {
|
|
@@ -48,5 +54,5 @@
|
|
|
48
54
|
"@img/sharp-win32-arm64": "^0.34.2",
|
|
49
55
|
"@img/sharp-win32-x64": "^0.34.2"
|
|
50
56
|
},
|
|
51
|
-
"claudeCodeVersion": "2.1.
|
|
57
|
+
"claudeCodeVersion": "2.1.75"
|
|
52
58
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -110,6 +110,17 @@ export type AgentOutput =
|
|
|
110
110
|
* Whether the calling agent has Read/Bash tools to check progress
|
|
111
111
|
*/
|
|
112
112
|
canReadOutputFile?: boolean;
|
|
113
|
+
}
|
|
114
|
+
| {
|
|
115
|
+
status: "queued_to_running";
|
|
116
|
+
/**
|
|
117
|
+
* The ID of the running agent
|
|
118
|
+
*/
|
|
119
|
+
agentId: string;
|
|
120
|
+
/**
|
|
121
|
+
* The prompt that was queued
|
|
122
|
+
*/
|
|
123
|
+
prompt: string;
|
|
113
124
|
};
|
|
114
125
|
export type FileReadOutput =
|
|
115
126
|
| {
|
|
@@ -135,6 +146,10 @@ export type FileReadOutput =
|
|
|
135
146
|
* Total number of lines in the file
|
|
136
147
|
*/
|
|
137
148
|
totalLines: number;
|
|
149
|
+
/**
|
|
150
|
+
* True when output was clipped to the byte cap (partial content)
|
|
151
|
+
*/
|
|
152
|
+
resultWasTruncated?: boolean;
|
|
138
153
|
};
|
|
139
154
|
}
|
|
140
155
|
| {
|
|
@@ -279,7 +294,7 @@ export interface AgentInput {
|
|
|
279
294
|
*/
|
|
280
295
|
run_in_background?: boolean;
|
|
281
296
|
/**
|
|
282
|
-
* Name for the spawned agent
|
|
297
|
+
* Name for the spawned agent. Makes it addressable via SendMessage({to: name}) while running.
|
|
283
298
|
*/
|
|
284
299
|
name?: string;
|
|
285
300
|
/**
|
|
@@ -2262,6 +2277,10 @@ export interface BashOutput {
|
|
|
2262
2277
|
* True if the user manually backgrounded the command with Ctrl+B
|
|
2263
2278
|
*/
|
|
2264
2279
|
backgroundedByUser?: boolean;
|
|
2280
|
+
/**
|
|
2281
|
+
* True if assistant-mode auto-backgrounded a long-running blocking command
|
|
2282
|
+
*/
|
|
2283
|
+
assistantAutoBackgrounded?: boolean;
|
|
2265
2284
|
/**
|
|
2266
2285
|
* Flag to indicate if sandbox mode was overridden
|
|
2267
2286
|
*/
|
package/sdk.d.ts
CHANGED
|
@@ -49,9 +49,9 @@ export declare type AgentDefinition = {
|
|
|
49
49
|
*/
|
|
50
50
|
prompt: string;
|
|
51
51
|
/**
|
|
52
|
-
* Model
|
|
52
|
+
* Model alias (e.g. 'sonnet', 'opus', 'haiku') or full model ID (e.g. 'claude-opus-4-5'). If omitted or 'inherit', uses the main model
|
|
53
53
|
*/
|
|
54
|
-
model?:
|
|
54
|
+
model?: string;
|
|
55
55
|
mcpServers?: AgentMcpServerSpec[];
|
|
56
56
|
/**
|
|
57
57
|
* Experimental: Critical reminder added to system prompt
|
|
@@ -370,6 +370,28 @@ export declare type ExitReason = 'clear' | 'logout' | 'prompt_input_exit' | 'oth
|
|
|
370
370
|
*/
|
|
371
371
|
export declare type FastModeState = 'off' | 'cooldown' | 'on';
|
|
372
372
|
|
|
373
|
+
/**
|
|
374
|
+
* Reads metadata for a single session by ID. Unlike `listSessions`, this only
|
|
375
|
+
* reads the single session file rather than every session in the project.
|
|
376
|
+
* Returns undefined if the session file is not found, is a sidechain session,
|
|
377
|
+
* or has no extractable summary.
|
|
378
|
+
*
|
|
379
|
+
* @param sessionId - UUID of the session
|
|
380
|
+
* @param options - `{ dir?: string }` project path; omit to search all project directories
|
|
381
|
+
*/
|
|
382
|
+
export declare function getSessionInfo(_sessionId: string, _options?: GetSessionInfoOptions): Promise<SDKSessionInfo | undefined>;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Options for getSessionInfo.
|
|
386
|
+
*/
|
|
387
|
+
export declare type GetSessionInfoOptions = {
|
|
388
|
+
/**
|
|
389
|
+
* Project directory path (same semantics as `listSessions({ dir })`).
|
|
390
|
+
* When omitted, all project directories are searched for the session file.
|
|
391
|
+
*/
|
|
392
|
+
dir?: string;
|
|
393
|
+
};
|
|
394
|
+
|
|
373
395
|
/**
|
|
374
396
|
* Reads a session's conversation messages from its JSONL transcript file.
|
|
375
397
|
*
|
|
@@ -447,13 +469,16 @@ export declare type JsonSchemaOutputFormat = {
|
|
|
447
469
|
* and its git worktrees. When omitted, returns sessions across all
|
|
448
470
|
* projects.
|
|
449
471
|
*
|
|
472
|
+
* Use `limit` and `offset` for pagination.
|
|
473
|
+
*
|
|
450
474
|
* @example
|
|
451
475
|
* ```typescript
|
|
452
476
|
* // List sessions for a specific project
|
|
453
477
|
* const sessions = await listSessions({ dir: '/path/to/project' })
|
|
454
478
|
*
|
|
455
|
-
* //
|
|
456
|
-
* const
|
|
479
|
+
* // Paginate
|
|
480
|
+
* const page1 = await listSessions({ limit: 50 })
|
|
481
|
+
* const page2 = await listSessions({ limit: 50, offset: 50 })
|
|
457
482
|
* ```
|
|
458
483
|
*/
|
|
459
484
|
export declare function listSessions(_options?: ListSessionsOptions): Promise<SDKSessionInfo[]>;
|
|
@@ -470,6 +495,11 @@ export declare type ListSessionsOptions = {
|
|
|
470
495
|
dir?: string;
|
|
471
496
|
/** Maximum number of sessions to return. */
|
|
472
497
|
limit?: number;
|
|
498
|
+
/**
|
|
499
|
+
* Number of sessions to skip from the start of the sorted result set.
|
|
500
|
+
* Use with `limit` for pagination. Defaults to 0.
|
|
501
|
+
*/
|
|
502
|
+
offset?: number;
|
|
473
503
|
/**
|
|
474
504
|
* When `dir` is provided and the directory is inside a git repository,
|
|
475
505
|
* include sessions from all git worktree paths. Defaults to `true`.
|
|
@@ -1412,6 +1442,7 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
|
|
|
1412
1442
|
}): Promise<RewindFilesResult>;
|
|
1413
1443
|
|
|
1414
1444
|
|
|
1445
|
+
|
|
1415
1446
|
/**
|
|
1416
1447
|
* Reconnect an MCP server by name.
|
|
1417
1448
|
* Throws on failure.
|
|
@@ -1474,6 +1505,14 @@ export declare function query(_params: {
|
|
|
1474
1505
|
options?: Options;
|
|
1475
1506
|
}): Query;
|
|
1476
1507
|
|
|
1508
|
+
/**
|
|
1509
|
+
* Rename a session. Appends a custom-title entry to the session's JSONL file.
|
|
1510
|
+
* @param sessionId - UUID of the session
|
|
1511
|
+
* @param title - New title
|
|
1512
|
+
* @param options - `{ dir?: string }` project path; omit to search all projects
|
|
1513
|
+
*/
|
|
1514
|
+
export declare function renameSession(_sessionId: string, _title: string, _options?: SessionMutationOptions): Promise<void>;
|
|
1515
|
+
|
|
1477
1516
|
/**
|
|
1478
1517
|
* Result of a rewindFiles operation.
|
|
1479
1518
|
*/
|
|
@@ -1716,7 +1755,7 @@ declare type SDKControlRequest = {
|
|
|
1716
1755
|
request: SDKControlRequestInner;
|
|
1717
1756
|
};
|
|
1718
1757
|
|
|
1719
|
-
declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlMcpStatusRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlMcpSetServersRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlRemoteControlRequest | SDKControlSetProactiveRequest | SDKControlStopTaskRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest;
|
|
1758
|
+
declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlMcpStatusRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlMcpSetServersRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlRemoteControlRequest | SDKControlSetProactiveRequest | SDKControlGenerateSessionTitleRequest | SDKControlStopTaskRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest;
|
|
1720
1759
|
|
|
1721
1760
|
declare type SDKControlResponse = {
|
|
1722
1761
|
type: 'control_response';
|
|
@@ -2011,7 +2050,7 @@ export declare interface SDKSession {
|
|
|
2011
2050
|
}
|
|
2012
2051
|
|
|
2013
2052
|
/**
|
|
2014
|
-
* Session metadata returned by listSessions.
|
|
2053
|
+
* Session metadata returned by listSessions and getSessionInfo.
|
|
2015
2054
|
*/
|
|
2016
2055
|
export declare type SDKSessionInfo = {
|
|
2017
2056
|
/**
|
|
@@ -2027,9 +2066,9 @@ export declare type SDKSessionInfo = {
|
|
|
2027
2066
|
*/
|
|
2028
2067
|
lastModified: number;
|
|
2029
2068
|
/**
|
|
2030
|
-
*
|
|
2069
|
+
* File size in bytes. Only populated for local JSONL storage.
|
|
2031
2070
|
*/
|
|
2032
|
-
fileSize
|
|
2071
|
+
fileSize?: number;
|
|
2033
2072
|
/**
|
|
2034
2073
|
* User-set session title via /rename.
|
|
2035
2074
|
*/
|
|
@@ -2046,6 +2085,14 @@ export declare type SDKSessionInfo = {
|
|
|
2046
2085
|
* Working directory for the session.
|
|
2047
2086
|
*/
|
|
2048
2087
|
cwd?: string;
|
|
2088
|
+
/**
|
|
2089
|
+
* User-set session tag.
|
|
2090
|
+
*/
|
|
2091
|
+
tag?: string;
|
|
2092
|
+
/**
|
|
2093
|
+
* Creation time in milliseconds since epoch, extracted from the first entry's timestamp.
|
|
2094
|
+
*/
|
|
2095
|
+
createdAt?: number;
|
|
2049
2096
|
};
|
|
2050
2097
|
|
|
2051
2098
|
/**
|
|
@@ -2247,6 +2294,18 @@ export declare type SessionMessage = {
|
|
|
2247
2294
|
parent_tool_use_id: null;
|
|
2248
2295
|
};
|
|
2249
2296
|
|
|
2297
|
+
/**
|
|
2298
|
+
* Options shared by session mutation functions (renameSession, tagSession,
|
|
2299
|
+
* deleteSession).
|
|
2300
|
+
*/
|
|
2301
|
+
export declare type SessionMutationOptions = {
|
|
2302
|
+
/**
|
|
2303
|
+
* Project directory path (same semantics as `listSessions({ dir })`).
|
|
2304
|
+
* When omitted, all project directories are searched for the session file.
|
|
2305
|
+
*/
|
|
2306
|
+
dir?: string;
|
|
2307
|
+
};
|
|
2308
|
+
|
|
2250
2309
|
export declare type SessionStartHookInput = BaseHookInput & {
|
|
2251
2310
|
hook_event_name: 'SessionStart';
|
|
2252
2311
|
source: 'startup' | 'resume' | 'clear' | 'compact';
|
|
@@ -2354,10 +2413,6 @@ export declare interface Settings {
|
|
|
2354
2413
|
* Disable the ability to bypass permission prompts
|
|
2355
2414
|
*/
|
|
2356
2415
|
disableBypassPermissionsMode?: 'disable';
|
|
2357
|
-
/**
|
|
2358
|
-
* Disable auto mode
|
|
2359
|
-
*/
|
|
2360
|
-
disableAutoMode?: 'disable';
|
|
2361
2416
|
/**
|
|
2362
2417
|
* Additional directories to include in the permission scope
|
|
2363
2418
|
*/
|
|
@@ -3011,6 +3066,12 @@ export declare interface Settings {
|
|
|
3011
3066
|
[k: string]: string | number | boolean | string[];
|
|
3012
3067
|
};
|
|
3013
3068
|
};
|
|
3069
|
+
/**
|
|
3070
|
+
* Non-sensitive option values from plugin manifest userConfig, keyed by option name. Sensitive values go to secure storage instead.
|
|
3071
|
+
*/
|
|
3072
|
+
options?: {
|
|
3073
|
+
[k: string]: string | number | boolean | string[];
|
|
3074
|
+
};
|
|
3014
3075
|
};
|
|
3015
3076
|
};
|
|
3016
3077
|
/**
|
|
@@ -3042,6 +3103,10 @@ export declare interface Settings {
|
|
|
3042
3103
|
* Enable auto-memory for this project. When false, Claude will not read from or write to the auto-memory directory.
|
|
3043
3104
|
*/
|
|
3044
3105
|
autoMemoryEnabled?: boolean;
|
|
3106
|
+
/**
|
|
3107
|
+
* Custom directory path for auto-memory storage. Supports ~/ prefix for home directory expansion. Ignored if set in projectSettings (checked-in .claude/settings.json) for security. When unset, defaults to ~/.claude/projects/<sanitized-cwd>/memory/.
|
|
3108
|
+
*/
|
|
3109
|
+
autoMemoryDirectory?: string;
|
|
3045
3110
|
/**
|
|
3046
3111
|
* Show thinking summaries in the transcript view (ctrl+o). Default: false.
|
|
3047
3112
|
*/
|
|
@@ -3050,6 +3115,10 @@ export declare interface Settings {
|
|
|
3050
3115
|
* Whether the user has accepted the bypass permissions mode dialog
|
|
3051
3116
|
*/
|
|
3052
3117
|
skipDangerousModePermissionPrompt?: boolean;
|
|
3118
|
+
/**
|
|
3119
|
+
* Disable auto mode
|
|
3120
|
+
*/
|
|
3121
|
+
disableAutoMode?: 'disable';
|
|
3053
3122
|
/**
|
|
3054
3123
|
* SSH connection configurations for remote environments. Typically set in managed settings by enterprise administrators to pre-configure SSH connections for team members.
|
|
3055
3124
|
*/
|
|
@@ -3074,6 +3143,10 @@ export declare interface Settings {
|
|
|
3074
3143
|
* Path to SSH identity file (private key)
|
|
3075
3144
|
*/
|
|
3076
3145
|
sshIdentityFile?: string;
|
|
3146
|
+
/**
|
|
3147
|
+
* Default working directory on the remote host. Supports tilde expansion (e.g. ~/projects). If not specified, defaults to the remote user home directory. Can be overridden by the [dir] positional argument in `claude ssh <config> [dir]`.
|
|
3148
|
+
*/
|
|
3149
|
+
startDirectory?: string;
|
|
3077
3150
|
}[];
|
|
3078
3151
|
/**
|
|
3079
3152
|
* Glob patterns or absolute paths of CLAUDE.md files to exclude from loading. Patterns are matched against absolute file paths using picomatch. Only applies to User, Project, and Local memory types (Managed/policy files cannot be excluded). Examples: "/home/user/monorepo/CLAUDE.md", "** /code/CLAUDE.md", "** /some-dir/.claude/rules/**"
|
|
@@ -3224,6 +3297,14 @@ export declare type SyncHookJSONOutput = {
|
|
|
3224
3297
|
hookSpecificOutput?: PreToolUseHookSpecificOutput | UserPromptSubmitHookSpecificOutput | SessionStartHookSpecificOutput | SetupHookSpecificOutput | SubagentStartHookSpecificOutput | PostToolUseHookSpecificOutput | PostToolUseFailureHookSpecificOutput | NotificationHookSpecificOutput | PermissionRequestHookSpecificOutput | ElicitationHookSpecificOutput | ElicitationResultHookSpecificOutput;
|
|
3225
3298
|
};
|
|
3226
3299
|
|
|
3300
|
+
/**
|
|
3301
|
+
* Tag a session. Pass null to clear the tag.
|
|
3302
|
+
* @param sessionId - UUID of the session
|
|
3303
|
+
* @param tag - Tag string, or null to clear
|
|
3304
|
+
* @param options - `{ dir?: string }` project path; omit to search all projects
|
|
3305
|
+
*/
|
|
3306
|
+
export declare function tagSession(_sessionId: string, _tag: string | null, _options?: SessionMutationOptions): Promise<void>;
|
|
3307
|
+
|
|
3227
3308
|
export declare type TaskCompletedHookInput = BaseHookInput & {
|
|
3228
3309
|
hook_event_name: 'TaskCompleted';
|
|
3229
3310
|
task_id: string;
|