@linkshell/host 0.4.70 → 0.4.72
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/dist/host/src/acp-settings.js +1 -1
- package/dist/host/src/acp-settings.js.map +1 -1
- package/dist/host/src/computer-preview.d.ts +1 -9
- package/dist/host/src/drivers/acp/driver.d.ts +3 -0
- package/dist/host/src/drivers/acp/driver.js +10 -3
- package/dist/host/src/drivers/acp/driver.js.map +1 -1
- package/dist/host/src/drivers/acp/questions.js +2 -2
- package/dist/host/src/drivers/acp/questions.js.map +1 -1
- package/dist/host/src/drivers/claude/driver.d.ts +10 -0
- package/dist/host/src/drivers/claude/driver.js +65 -6
- package/dist/host/src/drivers/claude/driver.js.map +1 -1
- package/dist/host/src/drivers/claude/holders.d.ts +2 -0
- package/dist/host/src/drivers/claude/holders.js +5 -1
- package/dist/host/src/drivers/claude/holders.js.map +1 -1
- package/dist/host/src/drivers/claude/tasks.d.ts +3 -3
- package/dist/host/src/drivers/claude/transcript.d.ts +403 -348
- package/dist/host/src/drivers/claude/transcript.js +83 -11
- package/dist/host/src/drivers/claude/transcript.js.map +1 -1
- package/dist/host/src/fs.d.ts +9 -9
- package/dist/host/src/hub.d.ts +85 -80
- package/dist/host/src/hub.js +2 -2
- package/dist/host/src/hub.js.map +1 -1
- package/dist/host/src/input.d.ts +43 -89
- package/dist/host/src/input.js +1 -1
- package/dist/host/src/input.js.map +1 -1
- package/dist/host/src/screen-session.d.ts +3 -17
- package/dist/host/src/screen-session.js +2 -2
- package/dist/host/src/screen-session.js.map +1 -1
- package/dist/host/src/store.d.ts +11 -5
- package/dist/host/src/store.js +51 -19
- package/dist/host/src/store.js.map +1 -1
- package/dist/host/src/terminals.d.ts +9 -9
- package/dist/host/tsconfig.tsbuildinfo +1 -1
- package/dist/wire/src/acp.d.ts +68 -430
- package/dist/wire/src/acp.js +5 -5
- package/dist/wire/src/acp.js.map +1 -1
- package/dist/wire/src/async-questions.d.ts +2 -10
- package/dist/wire/src/computer-preview.d.ts +1 -15
- package/dist/wire/src/computer-preview.js +1 -1
- package/dist/wire/src/computer-preview.js.map +1 -1
- package/dist/wire/src/content.d.ts +207 -372
- package/dist/wire/src/content.js +4 -4
- package/dist/wire/src/content.js.map +1 -1
- package/dist/wire/src/editor.d.ts +48 -592
- package/dist/wire/src/envelopes.js +13 -1
- package/dist/wire/src/envelopes.js.map +1 -1
- package/dist/wire/src/goal.d.ts +15 -48
- package/dist/wire/src/live-activity.d.ts +83 -212
- package/dist/wire/src/live-activity.js +1 -1
- package/dist/wire/src/live-activity.js.map +1 -1
- package/dist/wire/src/model.d.ts +454 -2309
- package/dist/wire/src/relay.d.ts +41 -267
- package/dist/wire/src/relay.js +1 -1
- package/dist/wire/src/relay.js.map +1 -1
- package/dist/wire/src/rpc-mcp.d.ts +21 -136
- package/dist/wire/src/rpc-mcp.js +1 -1
- package/dist/wire/src/rpc-mcp.js.map +1 -1
- package/dist/wire/src/rpc.d.ts +6829 -31501
- package/dist/wire/src/rpc.js +5 -5
- package/dist/wire/src/rpc.js.map +1 -1
- package/dist/wire/src/side.d.ts +13 -61
- package/dist/wire/src/updates.d.ts +1815 -6935
- package/dist/wire/src/usage.d.ts +17 -195
- package/dist/wire/src/watch.d.ts +223 -1141
- package/dist/wire/src/workflow.d.ts +46 -139
- package/package.json +4 -4
|
@@ -17,6 +17,8 @@ export declare class ClaudeTranscriptIndex {
|
|
|
17
17
|
private snapshot?;
|
|
18
18
|
constructor(configDir: string);
|
|
19
19
|
invalidate(): void;
|
|
20
|
+
/** Every transcript: session id → its paths. */
|
|
21
|
+
all(): ReadonlyMap<string, string[]>;
|
|
20
22
|
locate(sessionId: string, cwd?: string): TranscriptLocation;
|
|
21
23
|
private scan;
|
|
22
24
|
}
|
|
@@ -52,34 +54,38 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
52
54
|
sessionUpdate: "ls_message";
|
|
53
55
|
messageId: string;
|
|
54
56
|
role: "user" | "agent" | "thought" | "session";
|
|
57
|
+
parentToolCallId?: string | undefined;
|
|
55
58
|
content?: ({
|
|
56
59
|
type: "text";
|
|
57
60
|
text: string;
|
|
58
|
-
annotations?:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
annotations?: {
|
|
62
|
+
[x: string]: unknown;
|
|
63
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
64
|
+
priority?: number | undefined;
|
|
65
|
+
lastModified?: string | undefined;
|
|
66
|
+
} | undefined;
|
|
63
67
|
_meta?: Record<string, unknown> | undefined;
|
|
64
68
|
} | {
|
|
65
69
|
type: "image";
|
|
66
70
|
mimeType: string;
|
|
67
|
-
annotations?:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
annotations?: {
|
|
72
|
+
[x: string]: unknown;
|
|
73
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
74
|
+
priority?: number | undefined;
|
|
75
|
+
lastModified?: string | undefined;
|
|
76
|
+
} | undefined;
|
|
72
77
|
_meta?: Record<string, unknown> | undefined;
|
|
73
78
|
data?: string | undefined;
|
|
74
79
|
uri?: string | undefined;
|
|
75
80
|
} | {
|
|
76
81
|
type: "audio";
|
|
77
82
|
mimeType: string;
|
|
78
|
-
annotations?:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
annotations?: {
|
|
84
|
+
[x: string]: unknown;
|
|
85
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
86
|
+
priority?: number | undefined;
|
|
87
|
+
lastModified?: string | undefined;
|
|
88
|
+
} | undefined;
|
|
83
89
|
_meta?: Record<string, unknown> | undefined;
|
|
84
90
|
data?: string | undefined;
|
|
85
91
|
uri?: string | undefined;
|
|
@@ -87,67 +93,72 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
87
93
|
type: "resource";
|
|
88
94
|
resource: {
|
|
89
95
|
uri: string;
|
|
90
|
-
text?: string | undefined;
|
|
91
|
-
_meta?: Record<string, unknown> | undefined;
|
|
92
96
|
mimeType?: string | undefined;
|
|
97
|
+
text?: string | undefined;
|
|
93
98
|
blob?: string | undefined;
|
|
94
99
|
assetUri?: string | undefined;
|
|
100
|
+
_meta?: Record<string, unknown> | undefined;
|
|
95
101
|
};
|
|
96
|
-
annotations?:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
102
|
+
annotations?: {
|
|
103
|
+
[x: string]: unknown;
|
|
104
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
105
|
+
priority?: number | undefined;
|
|
106
|
+
lastModified?: string | undefined;
|
|
107
|
+
} | undefined;
|
|
101
108
|
_meta?: Record<string, unknown> | undefined;
|
|
102
109
|
} | {
|
|
103
110
|
type: "resource_link";
|
|
104
111
|
uri: string;
|
|
105
112
|
name: string;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
113
|
+
kind?: "file" | "skill" | "agent" | undefined;
|
|
114
|
+
annotations?: {
|
|
115
|
+
[x: string]: unknown;
|
|
116
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
117
|
+
priority?: number | undefined;
|
|
118
|
+
lastModified?: string | undefined;
|
|
119
|
+
} | undefined;
|
|
111
120
|
_meta?: Record<string, unknown> | undefined;
|
|
112
|
-
mimeType?: string | undefined;
|
|
113
121
|
title?: string | undefined;
|
|
114
122
|
description?: string | undefined;
|
|
123
|
+
mimeType?: string | undefined;
|
|
115
124
|
size?: number | undefined;
|
|
116
|
-
kind?: "file" | "skill" | "agent" | undefined;
|
|
117
125
|
})[] | undefined;
|
|
118
|
-
parentToolCallId?: string | undefined;
|
|
119
126
|
append?: boolean | undefined;
|
|
120
127
|
senderSessionId?: string | undefined;
|
|
121
128
|
recipientSessionId?: string | undefined;
|
|
122
129
|
} | {
|
|
130
|
+
sessionUpdate: "user_message_chunk";
|
|
123
131
|
content: {
|
|
124
132
|
type: "text";
|
|
125
133
|
text: string;
|
|
126
|
-
annotations?:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
134
|
+
annotations?: {
|
|
135
|
+
[x: string]: unknown;
|
|
136
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
137
|
+
priority?: number | undefined;
|
|
138
|
+
lastModified?: string | undefined;
|
|
139
|
+
} | undefined;
|
|
131
140
|
_meta?: Record<string, unknown> | undefined;
|
|
132
141
|
} | {
|
|
133
142
|
type: "image";
|
|
134
143
|
mimeType: string;
|
|
135
|
-
annotations?:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
144
|
+
annotations?: {
|
|
145
|
+
[x: string]: unknown;
|
|
146
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
147
|
+
priority?: number | undefined;
|
|
148
|
+
lastModified?: string | undefined;
|
|
149
|
+
} | undefined;
|
|
140
150
|
_meta?: Record<string, unknown> | undefined;
|
|
141
151
|
data?: string | undefined;
|
|
142
152
|
uri?: string | undefined;
|
|
143
153
|
} | {
|
|
144
154
|
type: "audio";
|
|
145
155
|
mimeType: string;
|
|
146
|
-
annotations?:
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
156
|
+
annotations?: {
|
|
157
|
+
[x: string]: unknown;
|
|
158
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
159
|
+
priority?: number | undefined;
|
|
160
|
+
lastModified?: string | undefined;
|
|
161
|
+
} | undefined;
|
|
151
162
|
_meta?: Record<string, unknown> | undefined;
|
|
152
163
|
data?: string | undefined;
|
|
153
164
|
uri?: string | undefined;
|
|
@@ -155,65 +166,71 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
155
166
|
type: "resource";
|
|
156
167
|
resource: {
|
|
157
168
|
uri: string;
|
|
158
|
-
text?: string | undefined;
|
|
159
|
-
_meta?: Record<string, unknown> | undefined;
|
|
160
169
|
mimeType?: string | undefined;
|
|
170
|
+
text?: string | undefined;
|
|
161
171
|
blob?: string | undefined;
|
|
162
172
|
assetUri?: string | undefined;
|
|
173
|
+
_meta?: Record<string, unknown> | undefined;
|
|
163
174
|
};
|
|
164
|
-
annotations?:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
175
|
+
annotations?: {
|
|
176
|
+
[x: string]: unknown;
|
|
177
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
178
|
+
priority?: number | undefined;
|
|
179
|
+
lastModified?: string | undefined;
|
|
180
|
+
} | undefined;
|
|
169
181
|
_meta?: Record<string, unknown> | undefined;
|
|
170
182
|
} | {
|
|
171
183
|
type: "resource_link";
|
|
172
184
|
uri: string;
|
|
173
185
|
name: string;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
186
|
+
kind?: "file" | "skill" | "agent" | undefined;
|
|
187
|
+
annotations?: {
|
|
188
|
+
[x: string]: unknown;
|
|
189
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
190
|
+
priority?: number | undefined;
|
|
191
|
+
lastModified?: string | undefined;
|
|
192
|
+
} | undefined;
|
|
179
193
|
_meta?: Record<string, unknown> | undefined;
|
|
180
|
-
mimeType?: string | undefined;
|
|
181
194
|
title?: string | undefined;
|
|
182
195
|
description?: string | undefined;
|
|
196
|
+
mimeType?: string | undefined;
|
|
183
197
|
size?: number | undefined;
|
|
184
|
-
kind?: "file" | "skill" | "agent" | undefined;
|
|
185
198
|
};
|
|
186
|
-
sessionUpdate: "user_message_chunk";
|
|
187
199
|
messageId?: string | undefined;
|
|
188
200
|
} | {
|
|
201
|
+
sessionUpdate: "agent_message_chunk";
|
|
202
|
+
messageId: string;
|
|
189
203
|
content: {
|
|
190
204
|
type: "text";
|
|
191
205
|
text: string;
|
|
192
|
-
annotations?:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
206
|
+
annotations?: {
|
|
207
|
+
[x: string]: unknown;
|
|
208
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
209
|
+
priority?: number | undefined;
|
|
210
|
+
lastModified?: string | undefined;
|
|
211
|
+
} | undefined;
|
|
197
212
|
_meta?: Record<string, unknown> | undefined;
|
|
198
213
|
} | {
|
|
199
214
|
type: "image";
|
|
200
215
|
mimeType: string;
|
|
201
|
-
annotations?:
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
216
|
+
annotations?: {
|
|
217
|
+
[x: string]: unknown;
|
|
218
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
219
|
+
priority?: number | undefined;
|
|
220
|
+
lastModified?: string | undefined;
|
|
221
|
+
} | undefined;
|
|
206
222
|
_meta?: Record<string, unknown> | undefined;
|
|
207
223
|
data?: string | undefined;
|
|
208
224
|
uri?: string | undefined;
|
|
209
225
|
} | {
|
|
210
226
|
type: "audio";
|
|
211
227
|
mimeType: string;
|
|
212
|
-
annotations?:
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
228
|
+
annotations?: {
|
|
229
|
+
[x: string]: unknown;
|
|
230
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
231
|
+
priority?: number | undefined;
|
|
232
|
+
lastModified?: string | undefined;
|
|
233
|
+
} | undefined;
|
|
217
234
|
_meta?: Record<string, unknown> | undefined;
|
|
218
235
|
data?: string | undefined;
|
|
219
236
|
uri?: string | undefined;
|
|
@@ -221,66 +238,71 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
221
238
|
type: "resource";
|
|
222
239
|
resource: {
|
|
223
240
|
uri: string;
|
|
224
|
-
text?: string | undefined;
|
|
225
|
-
_meta?: Record<string, unknown> | undefined;
|
|
226
241
|
mimeType?: string | undefined;
|
|
242
|
+
text?: string | undefined;
|
|
227
243
|
blob?: string | undefined;
|
|
228
244
|
assetUri?: string | undefined;
|
|
245
|
+
_meta?: Record<string, unknown> | undefined;
|
|
229
246
|
};
|
|
230
|
-
annotations?:
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
247
|
+
annotations?: {
|
|
248
|
+
[x: string]: unknown;
|
|
249
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
250
|
+
priority?: number | undefined;
|
|
251
|
+
lastModified?: string | undefined;
|
|
252
|
+
} | undefined;
|
|
235
253
|
_meta?: Record<string, unknown> | undefined;
|
|
236
254
|
} | {
|
|
237
255
|
type: "resource_link";
|
|
238
256
|
uri: string;
|
|
239
257
|
name: string;
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
258
|
+
kind?: "file" | "skill" | "agent" | undefined;
|
|
259
|
+
annotations?: {
|
|
260
|
+
[x: string]: unknown;
|
|
261
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
262
|
+
priority?: number | undefined;
|
|
263
|
+
lastModified?: string | undefined;
|
|
264
|
+
} | undefined;
|
|
245
265
|
_meta?: Record<string, unknown> | undefined;
|
|
246
|
-
mimeType?: string | undefined;
|
|
247
266
|
title?: string | undefined;
|
|
248
267
|
description?: string | undefined;
|
|
268
|
+
mimeType?: string | undefined;
|
|
249
269
|
size?: number | undefined;
|
|
250
|
-
kind?: "file" | "skill" | "agent" | undefined;
|
|
251
270
|
};
|
|
252
|
-
sessionUpdate: "agent_message_chunk";
|
|
253
|
-
messageId: string;
|
|
254
271
|
parentToolCallId?: string | undefined;
|
|
255
272
|
} | {
|
|
273
|
+
sessionUpdate: "agent_thought_chunk";
|
|
274
|
+
messageId: string;
|
|
256
275
|
content: {
|
|
257
276
|
type: "text";
|
|
258
277
|
text: string;
|
|
259
|
-
annotations?:
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
278
|
+
annotations?: {
|
|
279
|
+
[x: string]: unknown;
|
|
280
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
281
|
+
priority?: number | undefined;
|
|
282
|
+
lastModified?: string | undefined;
|
|
283
|
+
} | undefined;
|
|
264
284
|
_meta?: Record<string, unknown> | undefined;
|
|
265
285
|
} | {
|
|
266
286
|
type: "image";
|
|
267
287
|
mimeType: string;
|
|
268
|
-
annotations?:
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
288
|
+
annotations?: {
|
|
289
|
+
[x: string]: unknown;
|
|
290
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
291
|
+
priority?: number | undefined;
|
|
292
|
+
lastModified?: string | undefined;
|
|
293
|
+
} | undefined;
|
|
273
294
|
_meta?: Record<string, unknown> | undefined;
|
|
274
295
|
data?: string | undefined;
|
|
275
296
|
uri?: string | undefined;
|
|
276
297
|
} | {
|
|
277
298
|
type: "audio";
|
|
278
299
|
mimeType: string;
|
|
279
|
-
annotations?:
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
300
|
+
annotations?: {
|
|
301
|
+
[x: string]: unknown;
|
|
302
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
303
|
+
priority?: number | undefined;
|
|
304
|
+
lastModified?: string | undefined;
|
|
305
|
+
} | undefined;
|
|
284
306
|
_meta?: Record<string, unknown> | undefined;
|
|
285
307
|
data?: string | undefined;
|
|
286
308
|
uri?: string | undefined;
|
|
@@ -288,74 +310,80 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
288
310
|
type: "resource";
|
|
289
311
|
resource: {
|
|
290
312
|
uri: string;
|
|
291
|
-
text?: string | undefined;
|
|
292
|
-
_meta?: Record<string, unknown> | undefined;
|
|
293
313
|
mimeType?: string | undefined;
|
|
314
|
+
text?: string | undefined;
|
|
294
315
|
blob?: string | undefined;
|
|
295
316
|
assetUri?: string | undefined;
|
|
317
|
+
_meta?: Record<string, unknown> | undefined;
|
|
296
318
|
};
|
|
297
|
-
annotations?:
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
319
|
+
annotations?: {
|
|
320
|
+
[x: string]: unknown;
|
|
321
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
322
|
+
priority?: number | undefined;
|
|
323
|
+
lastModified?: string | undefined;
|
|
324
|
+
} | undefined;
|
|
302
325
|
_meta?: Record<string, unknown> | undefined;
|
|
303
326
|
} | {
|
|
304
327
|
type: "resource_link";
|
|
305
328
|
uri: string;
|
|
306
329
|
name: string;
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
330
|
+
kind?: "file" | "skill" | "agent" | undefined;
|
|
331
|
+
annotations?: {
|
|
332
|
+
[x: string]: unknown;
|
|
333
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
334
|
+
priority?: number | undefined;
|
|
335
|
+
lastModified?: string | undefined;
|
|
336
|
+
} | undefined;
|
|
312
337
|
_meta?: Record<string, unknown> | undefined;
|
|
313
|
-
mimeType?: string | undefined;
|
|
314
338
|
title?: string | undefined;
|
|
315
339
|
description?: string | undefined;
|
|
340
|
+
mimeType?: string | undefined;
|
|
316
341
|
size?: number | undefined;
|
|
317
|
-
kind?: "file" | "skill" | "agent" | undefined;
|
|
318
342
|
};
|
|
319
|
-
sessionUpdate: "agent_thought_chunk";
|
|
320
|
-
messageId: string;
|
|
321
343
|
parentToolCallId?: string | undefined;
|
|
322
344
|
} | {
|
|
323
|
-
|
|
345
|
+
sessionUpdate: "tool_call";
|
|
346
|
+
toolCallId: string;
|
|
324
347
|
title: string;
|
|
325
348
|
kind: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode";
|
|
326
|
-
|
|
327
|
-
|
|
349
|
+
status: "pending" | "in_progress" | "completed" | "failed";
|
|
350
|
+
parentToolCallId?: string | undefined;
|
|
328
351
|
name?: string | undefined;
|
|
352
|
+
rawInput?: unknown;
|
|
353
|
+
rawOutput?: unknown;
|
|
329
354
|
content?: ({
|
|
330
355
|
type: "content";
|
|
331
356
|
content: {
|
|
332
357
|
type: "text";
|
|
333
358
|
text: string;
|
|
334
|
-
annotations?:
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
359
|
+
annotations?: {
|
|
360
|
+
[x: string]: unknown;
|
|
361
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
362
|
+
priority?: number | undefined;
|
|
363
|
+
lastModified?: string | undefined;
|
|
364
|
+
} | undefined;
|
|
339
365
|
_meta?: Record<string, unknown> | undefined;
|
|
340
366
|
} | {
|
|
341
367
|
type: "image";
|
|
342
368
|
mimeType: string;
|
|
343
|
-
annotations?:
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
369
|
+
annotations?: {
|
|
370
|
+
[x: string]: unknown;
|
|
371
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
372
|
+
priority?: number | undefined;
|
|
373
|
+
lastModified?: string | undefined;
|
|
374
|
+
} | undefined;
|
|
348
375
|
_meta?: Record<string, unknown> | undefined;
|
|
349
376
|
data?: string | undefined;
|
|
350
377
|
uri?: string | undefined;
|
|
351
378
|
} | {
|
|
352
379
|
type: "audio";
|
|
353
380
|
mimeType: string;
|
|
354
|
-
annotations?:
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
381
|
+
annotations?: {
|
|
382
|
+
[x: string]: unknown;
|
|
383
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
384
|
+
priority?: number | undefined;
|
|
385
|
+
lastModified?: string | undefined;
|
|
386
|
+
} | undefined;
|
|
359
387
|
_meta?: Record<string, unknown> | undefined;
|
|
360
388
|
data?: string | undefined;
|
|
361
389
|
uri?: string | undefined;
|
|
@@ -363,52 +391,51 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
363
391
|
type: "resource";
|
|
364
392
|
resource: {
|
|
365
393
|
uri: string;
|
|
366
|
-
text?: string | undefined;
|
|
367
|
-
_meta?: Record<string, unknown> | undefined;
|
|
368
394
|
mimeType?: string | undefined;
|
|
395
|
+
text?: string | undefined;
|
|
369
396
|
blob?: string | undefined;
|
|
370
397
|
assetUri?: string | undefined;
|
|
398
|
+
_meta?: Record<string, unknown> | undefined;
|
|
371
399
|
};
|
|
372
|
-
annotations?:
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
400
|
+
annotations?: {
|
|
401
|
+
[x: string]: unknown;
|
|
402
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
403
|
+
priority?: number | undefined;
|
|
404
|
+
lastModified?: string | undefined;
|
|
405
|
+
} | undefined;
|
|
377
406
|
_meta?: Record<string, unknown> | undefined;
|
|
378
407
|
} | {
|
|
379
408
|
type: "resource_link";
|
|
380
409
|
uri: string;
|
|
381
410
|
name: string;
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
411
|
+
kind?: "file" | "skill" | "agent" | undefined;
|
|
412
|
+
annotations?: {
|
|
413
|
+
[x: string]: unknown;
|
|
414
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
415
|
+
priority?: number | undefined;
|
|
416
|
+
lastModified?: string | undefined;
|
|
417
|
+
} | undefined;
|
|
387
418
|
_meta?: Record<string, unknown> | undefined;
|
|
388
|
-
mimeType?: string | undefined;
|
|
389
419
|
title?: string | undefined;
|
|
390
420
|
description?: string | undefined;
|
|
421
|
+
mimeType?: string | undefined;
|
|
391
422
|
size?: number | undefined;
|
|
392
|
-
kind?: "file" | "skill" | "agent" | undefined;
|
|
393
423
|
};
|
|
394
424
|
} | {
|
|
395
|
-
path: string;
|
|
396
425
|
type: "diff";
|
|
426
|
+
path: string;
|
|
397
427
|
newText: string;
|
|
398
428
|
oldText?: string | null | undefined;
|
|
399
429
|
} | {
|
|
400
|
-
path: string;
|
|
401
430
|
type: "patch";
|
|
402
|
-
|
|
431
|
+
path: string;
|
|
403
432
|
change: "add" | "delete" | "update";
|
|
433
|
+
diff: string;
|
|
404
434
|
movePath?: string | undefined;
|
|
405
435
|
} | {
|
|
406
436
|
type: "terminal";
|
|
407
437
|
terminalId: string;
|
|
408
438
|
})[] | undefined;
|
|
409
|
-
parentToolCallId?: string | undefined;
|
|
410
|
-
rawInput?: unknown;
|
|
411
|
-
rawOutput?: unknown;
|
|
412
439
|
locations?: {
|
|
413
440
|
path: string;
|
|
414
441
|
line?: number | undefined;
|
|
@@ -425,32 +452,32 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
425
452
|
} | {
|
|
426
453
|
type: "subagent";
|
|
427
454
|
action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
|
|
428
|
-
name?: string | undefined;
|
|
429
|
-
state?: "unknown" | "paused" | "pending" | "completed" | "failed" | "running" | "stopped" | undefined;
|
|
430
|
-
model?: string | undefined;
|
|
431
455
|
task?: string | undefined;
|
|
432
456
|
agentType?: string | undefined;
|
|
457
|
+
name?: string | undefined;
|
|
433
458
|
nativeSessionId?: string | undefined;
|
|
434
459
|
canCancel?: boolean | undefined;
|
|
460
|
+
model?: string | undefined;
|
|
461
|
+
state?: "paused" | "unknown" | "pending" | "completed" | "failed" | "running" | "stopped" | undefined;
|
|
435
462
|
workflow?: {
|
|
463
|
+
runId?: string | undefined;
|
|
436
464
|
name?: string | undefined;
|
|
437
|
-
completed?: number | undefined;
|
|
438
465
|
state?: "paused" | "completed" | "failed" | "running" | "stopped" | undefined;
|
|
466
|
+
started?: number | undefined;
|
|
467
|
+
completed?: number | undefined;
|
|
439
468
|
tokens?: number | undefined;
|
|
440
469
|
durationMs?: number | undefined;
|
|
441
470
|
startedAt?: number | undefined;
|
|
442
471
|
endedAt?: number | undefined;
|
|
443
|
-
runId?: string | undefined;
|
|
444
|
-
started?: number | undefined;
|
|
445
472
|
phases?: {
|
|
446
|
-
title: string;
|
|
447
473
|
id: string;
|
|
474
|
+
title: string;
|
|
448
475
|
order: number;
|
|
449
476
|
}[] | undefined;
|
|
450
477
|
agents?: {
|
|
451
|
-
title: string;
|
|
452
478
|
id: string;
|
|
453
|
-
|
|
479
|
+
title: string;
|
|
480
|
+
state: "paused" | "unknown" | "pending" | "completed" | "failed" | "running" | "stopped";
|
|
454
481
|
toolCallId?: string | undefined;
|
|
455
482
|
phaseId?: string | undefined;
|
|
456
483
|
model?: string | undefined;
|
|
@@ -483,95 +510,14 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
483
510
|
more?: number | undefined;
|
|
484
511
|
} | undefined;
|
|
485
512
|
} | {
|
|
486
|
-
toolCallId: string;
|
|
487
513
|
sessionUpdate: "tool_call_update";
|
|
514
|
+
toolCallId: string;
|
|
515
|
+
parentToolCallId?: string | undefined;
|
|
488
516
|
status?: "pending" | "in_progress" | "completed" | "failed" | undefined;
|
|
489
|
-
name?: string | undefined;
|
|
490
517
|
title?: string | undefined;
|
|
518
|
+
name?: string | undefined;
|
|
491
519
|
kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
492
|
-
content?: ({
|
|
493
|
-
type: "content";
|
|
494
|
-
content: {
|
|
495
|
-
type: "text";
|
|
496
|
-
text: string;
|
|
497
|
-
annotations?: import("zod").objectOutputType<{
|
|
498
|
-
audience: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
499
|
-
priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
|
|
500
|
-
lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
|
|
501
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
502
|
-
_meta?: Record<string, unknown> | undefined;
|
|
503
|
-
} | {
|
|
504
|
-
type: "image";
|
|
505
|
-
mimeType: string;
|
|
506
|
-
annotations?: import("zod").objectOutputType<{
|
|
507
|
-
audience: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
508
|
-
priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
|
|
509
|
-
lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
|
|
510
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
511
|
-
_meta?: Record<string, unknown> | undefined;
|
|
512
|
-
data?: string | undefined;
|
|
513
|
-
uri?: string | undefined;
|
|
514
|
-
} | {
|
|
515
|
-
type: "audio";
|
|
516
|
-
mimeType: string;
|
|
517
|
-
annotations?: import("zod").objectOutputType<{
|
|
518
|
-
audience: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
519
|
-
priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
|
|
520
|
-
lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
|
|
521
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
522
|
-
_meta?: Record<string, unknown> | undefined;
|
|
523
|
-
data?: string | undefined;
|
|
524
|
-
uri?: string | undefined;
|
|
525
|
-
} | {
|
|
526
|
-
type: "resource";
|
|
527
|
-
resource: {
|
|
528
|
-
uri: string;
|
|
529
|
-
text?: string | undefined;
|
|
530
|
-
_meta?: Record<string, unknown> | undefined;
|
|
531
|
-
mimeType?: string | undefined;
|
|
532
|
-
blob?: string | undefined;
|
|
533
|
-
assetUri?: string | undefined;
|
|
534
|
-
};
|
|
535
|
-
annotations?: import("zod").objectOutputType<{
|
|
536
|
-
audience: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
537
|
-
priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
|
|
538
|
-
lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
|
|
539
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
540
|
-
_meta?: Record<string, unknown> | undefined;
|
|
541
|
-
} | {
|
|
542
|
-
type: "resource_link";
|
|
543
|
-
uri: string;
|
|
544
|
-
name: string;
|
|
545
|
-
annotations?: import("zod").objectOutputType<{
|
|
546
|
-
audience: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["user", "assistant"]>, "many">>>, ("user" | "assistant")[] | undefined, ("user" | "assistant")[] | null | undefined>;
|
|
547
|
-
priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
|
|
548
|
-
lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
|
|
549
|
-
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
550
|
-
_meta?: Record<string, unknown> | undefined;
|
|
551
|
-
mimeType?: string | undefined;
|
|
552
|
-
title?: string | undefined;
|
|
553
|
-
description?: string | undefined;
|
|
554
|
-
size?: number | undefined;
|
|
555
|
-
kind?: "file" | "skill" | "agent" | undefined;
|
|
556
|
-
};
|
|
557
|
-
} | {
|
|
558
|
-
path: string;
|
|
559
|
-
type: "diff";
|
|
560
|
-
newText: string;
|
|
561
|
-
oldText?: string | null | undefined;
|
|
562
|
-
} | {
|
|
563
|
-
path: string;
|
|
564
|
-
type: "patch";
|
|
565
|
-
diff: string;
|
|
566
|
-
change: "add" | "delete" | "update";
|
|
567
|
-
movePath?: string | undefined;
|
|
568
|
-
} | {
|
|
569
|
-
type: "terminal";
|
|
570
|
-
terminalId: string;
|
|
571
|
-
})[] | undefined;
|
|
572
|
-
parentToolCallId?: string | undefined;
|
|
573
520
|
rawInput?: unknown;
|
|
574
|
-
rawOutput?: unknown;
|
|
575
521
|
locations?: {
|
|
576
522
|
path: string;
|
|
577
523
|
line?: number | undefined;
|
|
@@ -588,32 +534,32 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
588
534
|
} | {
|
|
589
535
|
type: "subagent";
|
|
590
536
|
action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
|
|
591
|
-
name?: string | undefined;
|
|
592
|
-
state?: "unknown" | "paused" | "pending" | "completed" | "failed" | "running" | "stopped" | undefined;
|
|
593
|
-
model?: string | undefined;
|
|
594
537
|
task?: string | undefined;
|
|
595
538
|
agentType?: string | undefined;
|
|
539
|
+
name?: string | undefined;
|
|
596
540
|
nativeSessionId?: string | undefined;
|
|
597
541
|
canCancel?: boolean | undefined;
|
|
542
|
+
model?: string | undefined;
|
|
543
|
+
state?: "paused" | "unknown" | "pending" | "completed" | "failed" | "running" | "stopped" | undefined;
|
|
598
544
|
workflow?: {
|
|
545
|
+
runId?: string | undefined;
|
|
599
546
|
name?: string | undefined;
|
|
600
|
-
completed?: number | undefined;
|
|
601
547
|
state?: "paused" | "completed" | "failed" | "running" | "stopped" | undefined;
|
|
548
|
+
started?: number | undefined;
|
|
549
|
+
completed?: number | undefined;
|
|
602
550
|
tokens?: number | undefined;
|
|
603
551
|
durationMs?: number | undefined;
|
|
604
552
|
startedAt?: number | undefined;
|
|
605
553
|
endedAt?: number | undefined;
|
|
606
|
-
runId?: string | undefined;
|
|
607
|
-
started?: number | undefined;
|
|
608
554
|
phases?: {
|
|
609
|
-
title: string;
|
|
610
555
|
id: string;
|
|
556
|
+
title: string;
|
|
611
557
|
order: number;
|
|
612
558
|
}[] | undefined;
|
|
613
559
|
agents?: {
|
|
614
|
-
title: string;
|
|
615
560
|
id: string;
|
|
616
|
-
|
|
561
|
+
title: string;
|
|
562
|
+
state: "paused" | "unknown" | "pending" | "completed" | "failed" | "running" | "stopped";
|
|
617
563
|
toolCallId?: string | undefined;
|
|
618
564
|
phaseId?: string | undefined;
|
|
619
565
|
model?: string | undefined;
|
|
@@ -645,20 +591,106 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
645
591
|
text: string;
|
|
646
592
|
more?: number | undefined;
|
|
647
593
|
} | undefined;
|
|
594
|
+
content?: ({
|
|
595
|
+
type: "content";
|
|
596
|
+
content: {
|
|
597
|
+
type: "text";
|
|
598
|
+
text: string;
|
|
599
|
+
annotations?: {
|
|
600
|
+
[x: string]: unknown;
|
|
601
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
602
|
+
priority?: number | undefined;
|
|
603
|
+
lastModified?: string | undefined;
|
|
604
|
+
} | undefined;
|
|
605
|
+
_meta?: Record<string, unknown> | undefined;
|
|
606
|
+
} | {
|
|
607
|
+
type: "image";
|
|
608
|
+
mimeType: string;
|
|
609
|
+
annotations?: {
|
|
610
|
+
[x: string]: unknown;
|
|
611
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
612
|
+
priority?: number | undefined;
|
|
613
|
+
lastModified?: string | undefined;
|
|
614
|
+
} | undefined;
|
|
615
|
+
_meta?: Record<string, unknown> | undefined;
|
|
616
|
+
data?: string | undefined;
|
|
617
|
+
uri?: string | undefined;
|
|
618
|
+
} | {
|
|
619
|
+
type: "audio";
|
|
620
|
+
mimeType: string;
|
|
621
|
+
annotations?: {
|
|
622
|
+
[x: string]: unknown;
|
|
623
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
624
|
+
priority?: number | undefined;
|
|
625
|
+
lastModified?: string | undefined;
|
|
626
|
+
} | undefined;
|
|
627
|
+
_meta?: Record<string, unknown> | undefined;
|
|
628
|
+
data?: string | undefined;
|
|
629
|
+
uri?: string | undefined;
|
|
630
|
+
} | {
|
|
631
|
+
type: "resource";
|
|
632
|
+
resource: {
|
|
633
|
+
uri: string;
|
|
634
|
+
mimeType?: string | undefined;
|
|
635
|
+
text?: string | undefined;
|
|
636
|
+
blob?: string | undefined;
|
|
637
|
+
assetUri?: string | undefined;
|
|
638
|
+
_meta?: Record<string, unknown> | undefined;
|
|
639
|
+
};
|
|
640
|
+
annotations?: {
|
|
641
|
+
[x: string]: unknown;
|
|
642
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
643
|
+
priority?: number | undefined;
|
|
644
|
+
lastModified?: string | undefined;
|
|
645
|
+
} | undefined;
|
|
646
|
+
_meta?: Record<string, unknown> | undefined;
|
|
647
|
+
} | {
|
|
648
|
+
type: "resource_link";
|
|
649
|
+
uri: string;
|
|
650
|
+
name: string;
|
|
651
|
+
kind?: "file" | "skill" | "agent" | undefined;
|
|
652
|
+
annotations?: {
|
|
653
|
+
[x: string]: unknown;
|
|
654
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
655
|
+
priority?: number | undefined;
|
|
656
|
+
lastModified?: string | undefined;
|
|
657
|
+
} | undefined;
|
|
658
|
+
_meta?: Record<string, unknown> | undefined;
|
|
659
|
+
title?: string | undefined;
|
|
660
|
+
description?: string | undefined;
|
|
661
|
+
mimeType?: string | undefined;
|
|
662
|
+
size?: number | undefined;
|
|
663
|
+
};
|
|
664
|
+
} | {
|
|
665
|
+
type: "diff";
|
|
666
|
+
path: string;
|
|
667
|
+
newText: string;
|
|
668
|
+
oldText?: string | null | undefined;
|
|
669
|
+
} | {
|
|
670
|
+
type: "patch";
|
|
671
|
+
path: string;
|
|
672
|
+
change: "add" | "delete" | "update";
|
|
673
|
+
diff: string;
|
|
674
|
+
movePath?: string | undefined;
|
|
675
|
+
} | {
|
|
676
|
+
type: "terminal";
|
|
677
|
+
terminalId: string;
|
|
678
|
+
})[] | undefined;
|
|
648
679
|
appendOutput?: string | undefined;
|
|
649
680
|
replaceOutput?: string | undefined;
|
|
650
681
|
replaceContent?: boolean | undefined;
|
|
682
|
+
rawOutput?: unknown;
|
|
651
683
|
} | {
|
|
684
|
+
sessionUpdate: "plan";
|
|
652
685
|
entries: {
|
|
653
|
-
status: "pending" | "in_progress" | "completed";
|
|
654
|
-
priority: "high" | "medium" | "low";
|
|
655
686
|
content: string;
|
|
687
|
+
priority: "high" | "medium" | "low";
|
|
688
|
+
status: "pending" | "in_progress" | "completed";
|
|
656
689
|
}[];
|
|
657
|
-
sessionUpdate: "plan";
|
|
658
|
-
path?: string | null | undefined;
|
|
659
|
-
title?: string | undefined;
|
|
660
690
|
planId?: string | undefined;
|
|
691
|
+
title?: string | undefined;
|
|
661
692
|
markdown?: string | null | undefined;
|
|
693
|
+
path?: string | null | undefined;
|
|
662
694
|
removed?: boolean | undefined;
|
|
663
695
|
} | {
|
|
664
696
|
sessionUpdate: "ls_goal";
|
|
@@ -684,18 +716,10 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
684
716
|
} | {
|
|
685
717
|
sessionUpdate: "session_info_update";
|
|
686
718
|
title?: string | null | undefined;
|
|
687
|
-
model?: string | undefined;
|
|
688
719
|
updatedAt?: string | null | undefined;
|
|
720
|
+
model?: string | undefined;
|
|
689
721
|
} | {
|
|
690
722
|
sessionUpdate: "usage_update";
|
|
691
|
-
tokens?: {
|
|
692
|
-
totalTokens: number;
|
|
693
|
-
inputTokens: number;
|
|
694
|
-
outputTokens: number;
|
|
695
|
-
thoughtTokens?: number | null | undefined;
|
|
696
|
-
cachedReadTokens?: number | null | undefined;
|
|
697
|
-
cachedWriteTokens?: number | null | undefined;
|
|
698
|
-
} | undefined;
|
|
699
723
|
accounting?: {
|
|
700
724
|
id: string;
|
|
701
725
|
scope: "session" | "turn";
|
|
@@ -708,12 +732,20 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
708
732
|
amount: number;
|
|
709
733
|
currency: string;
|
|
710
734
|
} | null | undefined;
|
|
735
|
+
tokens?: {
|
|
736
|
+
totalTokens: number;
|
|
737
|
+
inputTokens: number;
|
|
738
|
+
outputTokens: number;
|
|
739
|
+
thoughtTokens?: number | null | undefined;
|
|
740
|
+
cachedReadTokens?: number | null | undefined;
|
|
741
|
+
cachedWriteTokens?: number | null | undefined;
|
|
742
|
+
} | undefined;
|
|
711
743
|
} | {
|
|
712
744
|
sessionUpdate: "ls_async_questions";
|
|
713
745
|
questions: {
|
|
714
|
-
options: string[];
|
|
715
|
-
title: string;
|
|
716
746
|
id: string;
|
|
747
|
+
title: string;
|
|
748
|
+
options: string[];
|
|
717
749
|
}[];
|
|
718
750
|
} | {
|
|
719
751
|
sessionUpdate: "ls_message_done";
|
|
@@ -721,80 +753,86 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
721
753
|
role: "user" | "agent" | "thought";
|
|
722
754
|
parentToolCallId?: string | undefined;
|
|
723
755
|
questions?: {
|
|
724
|
-
options: string[];
|
|
725
|
-
title: string;
|
|
726
756
|
id: string;
|
|
757
|
+
title: string;
|
|
758
|
+
options: string[];
|
|
727
759
|
}[] | undefined;
|
|
728
760
|
} | {
|
|
761
|
+
sessionUpdate: "ls_config";
|
|
729
762
|
options: {
|
|
763
|
+
id: string;
|
|
764
|
+
name: string;
|
|
765
|
+
category: "mode" | "model" | "model_config" | "effort" | "other";
|
|
766
|
+
current: string;
|
|
730
767
|
values: {
|
|
731
768
|
value: string;
|
|
732
769
|
name: string;
|
|
733
770
|
description?: string | undefined;
|
|
734
771
|
group?: string | undefined;
|
|
735
772
|
}[];
|
|
736
|
-
name: string;
|
|
737
|
-
id: string;
|
|
738
|
-
category: "mode" | "model" | "model_config" | "effort" | "other";
|
|
739
|
-
current: string;
|
|
740
|
-
type?: "boolean" | "select" | undefined;
|
|
741
773
|
description?: string | undefined;
|
|
774
|
+
type?: "boolean" | "select" | undefined;
|
|
742
775
|
}[];
|
|
743
|
-
sessionUpdate: "ls_config";
|
|
744
776
|
} | {
|
|
745
|
-
title: string;
|
|
746
777
|
sessionUpdate: "ls_notice";
|
|
747
778
|
level: "info" | "warning";
|
|
779
|
+
title: string;
|
|
748
780
|
detail?: string | undefined;
|
|
749
781
|
} | {
|
|
750
|
-
state: "started" | "ended";
|
|
751
782
|
sessionUpdate: "ls_turn";
|
|
783
|
+
state: "started" | "ended";
|
|
752
784
|
parentToolCallId?: string | undefined;
|
|
753
785
|
turnId?: string | undefined;
|
|
754
|
-
stopReason?: "
|
|
786
|
+
stopReason?: "error" | "unknown" | "end_turn" | "cancelled" | "max_tokens" | "max_turn_requests" | "refusal" | undefined;
|
|
755
787
|
} | {
|
|
788
|
+
sessionUpdate: "ls_permission";
|
|
789
|
+
requestId: string;
|
|
790
|
+
title: string;
|
|
756
791
|
options: {
|
|
792
|
+
optionId: string;
|
|
757
793
|
name: string;
|
|
758
794
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
759
|
-
optionId: string;
|
|
760
795
|
}[];
|
|
761
|
-
|
|
762
|
-
sessionUpdate: "ls_permission";
|
|
763
|
-
requestId: string;
|
|
796
|
+
childSessionId?: string | undefined;
|
|
764
797
|
toolCallId?: string | undefined;
|
|
798
|
+
detail?: string | undefined;
|
|
765
799
|
tool?: {
|
|
766
800
|
title?: string | undefined;
|
|
767
801
|
kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
|
|
802
|
+
rawInput?: unknown;
|
|
768
803
|
content?: ({
|
|
769
804
|
type: "content";
|
|
770
805
|
content: {
|
|
771
806
|
type: "text";
|
|
772
807
|
text: string;
|
|
773
|
-
annotations?:
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
808
|
+
annotations?: {
|
|
809
|
+
[x: string]: unknown;
|
|
810
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
811
|
+
priority?: number | undefined;
|
|
812
|
+
lastModified?: string | undefined;
|
|
813
|
+
} | undefined;
|
|
778
814
|
_meta?: Record<string, unknown> | undefined;
|
|
779
815
|
} | {
|
|
780
816
|
type: "image";
|
|
781
817
|
mimeType: string;
|
|
782
|
-
annotations?:
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
818
|
+
annotations?: {
|
|
819
|
+
[x: string]: unknown;
|
|
820
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
821
|
+
priority?: number | undefined;
|
|
822
|
+
lastModified?: string | undefined;
|
|
823
|
+
} | undefined;
|
|
787
824
|
_meta?: Record<string, unknown> | undefined;
|
|
788
825
|
data?: string | undefined;
|
|
789
826
|
uri?: string | undefined;
|
|
790
827
|
} | {
|
|
791
828
|
type: "audio";
|
|
792
829
|
mimeType: string;
|
|
793
|
-
annotations?:
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
830
|
+
annotations?: {
|
|
831
|
+
[x: string]: unknown;
|
|
832
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
833
|
+
priority?: number | undefined;
|
|
834
|
+
lastModified?: string | undefined;
|
|
835
|
+
} | undefined;
|
|
798
836
|
_meta?: Record<string, unknown> | undefined;
|
|
799
837
|
data?: string | undefined;
|
|
800
838
|
uri?: string | undefined;
|
|
@@ -802,69 +840,66 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
802
840
|
type: "resource";
|
|
803
841
|
resource: {
|
|
804
842
|
uri: string;
|
|
805
|
-
text?: string | undefined;
|
|
806
|
-
_meta?: Record<string, unknown> | undefined;
|
|
807
843
|
mimeType?: string | undefined;
|
|
844
|
+
text?: string | undefined;
|
|
808
845
|
blob?: string | undefined;
|
|
809
846
|
assetUri?: string | undefined;
|
|
847
|
+
_meta?: Record<string, unknown> | undefined;
|
|
810
848
|
};
|
|
811
|
-
annotations?:
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
849
|
+
annotations?: {
|
|
850
|
+
[x: string]: unknown;
|
|
851
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
852
|
+
priority?: number | undefined;
|
|
853
|
+
lastModified?: string | undefined;
|
|
854
|
+
} | undefined;
|
|
816
855
|
_meta?: Record<string, unknown> | undefined;
|
|
817
856
|
} | {
|
|
818
857
|
type: "resource_link";
|
|
819
858
|
uri: string;
|
|
820
859
|
name: string;
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
860
|
+
kind?: "file" | "skill" | "agent" | undefined;
|
|
861
|
+
annotations?: {
|
|
862
|
+
[x: string]: unknown;
|
|
863
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
864
|
+
priority?: number | undefined;
|
|
865
|
+
lastModified?: string | undefined;
|
|
866
|
+
} | undefined;
|
|
826
867
|
_meta?: Record<string, unknown> | undefined;
|
|
827
|
-
mimeType?: string | undefined;
|
|
828
868
|
title?: string | undefined;
|
|
829
869
|
description?: string | undefined;
|
|
870
|
+
mimeType?: string | undefined;
|
|
830
871
|
size?: number | undefined;
|
|
831
|
-
kind?: "file" | "skill" | "agent" | undefined;
|
|
832
872
|
};
|
|
833
873
|
} | {
|
|
834
|
-
path: string;
|
|
835
874
|
type: "diff";
|
|
875
|
+
path: string;
|
|
836
876
|
newText: string;
|
|
837
877
|
oldText?: string | null | undefined;
|
|
838
878
|
} | {
|
|
839
|
-
path: string;
|
|
840
879
|
type: "patch";
|
|
841
|
-
|
|
880
|
+
path: string;
|
|
842
881
|
change: "add" | "delete" | "update";
|
|
882
|
+
diff: string;
|
|
843
883
|
movePath?: string | undefined;
|
|
844
884
|
} | {
|
|
845
885
|
type: "terminal";
|
|
846
886
|
terminalId: string;
|
|
847
887
|
})[] | undefined;
|
|
848
|
-
rawInput?: unknown;
|
|
849
888
|
locations?: {
|
|
850
889
|
path: string;
|
|
851
890
|
line?: number | undefined;
|
|
852
891
|
}[] | undefined;
|
|
853
892
|
} | undefined;
|
|
854
|
-
|
|
893
|
+
url?: {
|
|
894
|
+
url: string;
|
|
895
|
+
elicitationId: string;
|
|
896
|
+
} | undefined;
|
|
855
897
|
questions?: {
|
|
898
|
+
id: string;
|
|
856
899
|
text: string;
|
|
857
900
|
kind: "text" | "choice" | "choices";
|
|
858
|
-
id: string;
|
|
859
|
-
secret?: boolean | undefined;
|
|
860
|
-
options?: {
|
|
861
|
-
value: string;
|
|
862
|
-
label: string;
|
|
863
|
-
description?: string | undefined;
|
|
864
|
-
}[] | undefined;
|
|
865
|
-
other?: boolean | undefined;
|
|
866
901
|
constraints?: {
|
|
867
|
-
type: "string" | "number" | "boolean" | "
|
|
902
|
+
type: "string" | "number" | "boolean" | "array" | "integer";
|
|
868
903
|
minimum?: number | undefined;
|
|
869
904
|
maximum?: number | undefined;
|
|
870
905
|
minLength?: number | undefined;
|
|
@@ -876,20 +911,22 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
876
911
|
} | undefined;
|
|
877
912
|
defaults?: string[] | undefined;
|
|
878
913
|
header?: string | undefined;
|
|
914
|
+
options?: {
|
|
915
|
+
value: string;
|
|
916
|
+
label: string;
|
|
917
|
+
description?: string | undefined;
|
|
918
|
+
}[] | undefined;
|
|
919
|
+
other?: boolean | undefined;
|
|
920
|
+
secret?: boolean | undefined;
|
|
879
921
|
required?: boolean | undefined;
|
|
880
922
|
}[] | undefined;
|
|
881
|
-
childSessionId?: string | undefined;
|
|
882
|
-
url?: {
|
|
883
|
-
url: string;
|
|
884
|
-
elicitationId: string;
|
|
885
|
-
} | undefined;
|
|
886
923
|
} | {
|
|
887
924
|
sessionUpdate: "ls_permission_resolved";
|
|
888
925
|
requestId: string;
|
|
889
926
|
optionId?: string | undefined;
|
|
890
927
|
answers?: {
|
|
891
|
-
values: string[];
|
|
892
928
|
id: string;
|
|
929
|
+
values: string[];
|
|
893
930
|
other?: string | undefined;
|
|
894
931
|
}[] | undefined;
|
|
895
932
|
} | {
|
|
@@ -897,30 +934,30 @@ export declare const transcriptTimes: WeakMap<{
|
|
|
897
934
|
driver: "desktop" | "remote" | "none";
|
|
898
935
|
deviceId?: string | undefined;
|
|
899
936
|
} | {
|
|
900
|
-
state: "unknown" | "running" | "error" | "idle" | "waiting" | "offline";
|
|
901
937
|
sessionUpdate: "ls_status";
|
|
938
|
+
state: "error" | "unknown" | "running" | "idle" | "waiting" | "offline";
|
|
902
939
|
turnActive?: boolean | undefined;
|
|
903
940
|
} | {
|
|
941
|
+
sessionUpdate: "ls_task";
|
|
904
942
|
task: {
|
|
905
|
-
title: string;
|
|
906
|
-
kind: "shell" | "monitor";
|
|
907
943
|
id: string;
|
|
944
|
+
kind: "shell" | "monitor";
|
|
945
|
+
title: string;
|
|
908
946
|
state: "unknown" | "completed" | "failed" | "running" | "stopped";
|
|
909
947
|
startedAt: number;
|
|
910
948
|
toolCallId?: string | undefined;
|
|
911
|
-
endedAt?: number | undefined;
|
|
912
949
|
command?: string | undefined;
|
|
950
|
+
endedAt?: number | undefined;
|
|
913
951
|
summary?: string | undefined;
|
|
914
952
|
exitCode?: number | undefined;
|
|
915
953
|
output?: boolean | undefined;
|
|
916
954
|
canStop?: boolean | undefined;
|
|
917
955
|
lastSeq?: number | undefined;
|
|
918
956
|
};
|
|
919
|
-
sessionUpdate: "ls_task";
|
|
920
957
|
} | {
|
|
958
|
+
sessionUpdate: "ls_error";
|
|
921
959
|
code: string;
|
|
922
960
|
message: string;
|
|
923
|
-
sessionUpdate: "ls_error";
|
|
924
961
|
hint?: string | undefined;
|
|
925
962
|
}, number>;
|
|
926
963
|
/**
|
|
@@ -965,6 +1002,24 @@ export declare function readTranscript(path: string, options?: {
|
|
|
965
1002
|
export declare function turnEndUuid(path: string, itemId: string, turn: number): string | undefined;
|
|
966
1003
|
/** The last `bytes` of a file, as text (the first line may be partial). */
|
|
967
1004
|
export declare function readTail(path: string, bytes: number): string;
|
|
1005
|
+
/** How much of a transcript's start Claude's session list (the Agent SDK) reads for the session's cwd. */
|
|
1006
|
+
export declare const LISTED_HEAD_BYTES: number;
|
|
1007
|
+
/** The first cwd a transcript names, found as the SDK finds it, and the byte just past it. */
|
|
1008
|
+
export declare function firstCwd(path: string, limit?: number): {
|
|
1009
|
+
cwd: string;
|
|
1010
|
+
end: number;
|
|
1011
|
+
} | undefined;
|
|
1012
|
+
/**
|
|
1013
|
+
* Transcripts whose cwd lies past what Claude's session list reads, so the
|
|
1014
|
+
* list can't place their sessions and the adapter leaves them out: a first
|
|
1015
|
+
* prompt with a large picture or paste does it. Remembered per file, since a
|
|
1016
|
+
* transcript only grows and what its start says stays.
|
|
1017
|
+
*/
|
|
1018
|
+
export declare class ClaudeLateCwds {
|
|
1019
|
+
private readonly known;
|
|
1020
|
+
/** The cwd of the transcript at `path`, `size` bytes long, when the list can't find it. */
|
|
1021
|
+
get(path: string, size: number): string | undefined;
|
|
1022
|
+
}
|
|
968
1023
|
/**
|
|
969
1024
|
* Follows a transcript from a byte offset by polling (Claude only appends).
|
|
970
1025
|
* `locate` is retried until the file exists, for sessions with no messages yet.
|