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