linkshell-cli 0.10.75 → 0.10.77

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.
Files changed (67) hide show
  1. package/dist/cli/src/commands/desktop.d.ts +77 -72
  2. package/dist/cli/tsconfig.tsbuildinfo +1 -1
  3. package/dist/host/src/acp-settings.js +1 -1
  4. package/dist/host/src/acp-settings.js.map +1 -1
  5. package/dist/host/src/computer-preview.d.ts +1 -9
  6. package/dist/host/src/drivers/acp/driver.d.ts +3 -0
  7. package/dist/host/src/drivers/acp/driver.js +10 -3
  8. package/dist/host/src/drivers/acp/driver.js.map +1 -1
  9. package/dist/host/src/drivers/acp/questions.js +2 -2
  10. package/dist/host/src/drivers/acp/questions.js.map +1 -1
  11. package/dist/host/src/drivers/claude/driver.d.ts +10 -0
  12. package/dist/host/src/drivers/claude/driver.js +65 -6
  13. package/dist/host/src/drivers/claude/driver.js.map +1 -1
  14. package/dist/host/src/drivers/claude/holders.d.ts +2 -0
  15. package/dist/host/src/drivers/claude/holders.js +5 -1
  16. package/dist/host/src/drivers/claude/holders.js.map +1 -1
  17. package/dist/host/src/drivers/claude/tasks.d.ts +2 -2
  18. package/dist/host/src/drivers/claude/transcript.d.ts +399 -344
  19. package/dist/host/src/drivers/claude/transcript.js +83 -11
  20. package/dist/host/src/drivers/claude/transcript.js.map +1 -1
  21. package/dist/host/src/fs.d.ts +9 -9
  22. package/dist/host/src/hub.d.ts +87 -82
  23. package/dist/host/src/hub.js +2 -2
  24. package/dist/host/src/hub.js.map +1 -1
  25. package/dist/host/src/input.d.ts +43 -89
  26. package/dist/host/src/input.js +1 -1
  27. package/dist/host/src/input.js.map +1 -1
  28. package/dist/host/src/screen-session.d.ts +3 -17
  29. package/dist/host/src/screen-session.js +2 -2
  30. package/dist/host/src/screen-session.js.map +1 -1
  31. package/dist/host/src/store.d.ts +11 -5
  32. package/dist/host/src/store.js +51 -19
  33. package/dist/host/src/store.js.map +1 -1
  34. package/dist/host/src/terminals.d.ts +9 -9
  35. package/dist/wire/src/acp.d.ts +68 -430
  36. package/dist/wire/src/acp.js +5 -5
  37. package/dist/wire/src/acp.js.map +1 -1
  38. package/dist/wire/src/async-questions.d.ts +2 -10
  39. package/dist/wire/src/computer-preview.d.ts +1 -15
  40. package/dist/wire/src/computer-preview.js +1 -1
  41. package/dist/wire/src/computer-preview.js.map +1 -1
  42. package/dist/wire/src/content.d.ts +205 -370
  43. package/dist/wire/src/content.js +4 -4
  44. package/dist/wire/src/content.js.map +1 -1
  45. package/dist/wire/src/editor.d.ts +48 -592
  46. package/dist/wire/src/envelopes.js +13 -1
  47. package/dist/wire/src/envelopes.js.map +1 -1
  48. package/dist/wire/src/goal.d.ts +15 -48
  49. package/dist/wire/src/live-activity.d.ts +83 -212
  50. package/dist/wire/src/live-activity.js +1 -1
  51. package/dist/wire/src/live-activity.js.map +1 -1
  52. package/dist/wire/src/model.d.ts +450 -2305
  53. package/dist/wire/src/relay.d.ts +41 -267
  54. package/dist/wire/src/relay.js +1 -1
  55. package/dist/wire/src/relay.js.map +1 -1
  56. package/dist/wire/src/rpc-mcp.d.ts +21 -136
  57. package/dist/wire/src/rpc-mcp.js +1 -1
  58. package/dist/wire/src/rpc-mcp.js.map +1 -1
  59. package/dist/wire/src/rpc.d.ts +6689 -31361
  60. package/dist/wire/src/rpc.js +5 -5
  61. package/dist/wire/src/rpc.js.map +1 -1
  62. package/dist/wire/src/side.d.ts +13 -61
  63. package/dist/wire/src/updates.d.ts +1728 -6848
  64. package/dist/wire/src/usage.d.ts +17 -195
  65. package/dist/wire/src/watch.d.ts +223 -1141
  66. package/dist/wire/src/workflow.d.ts +46 -139
  67. 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?: import("zod").objectOutputType<{
59
- 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>;
60
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
61
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
62
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
68
- 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>;
69
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
70
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
71
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
79
- 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>;
80
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
81
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
82
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
97
- 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>;
98
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
99
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
100
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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
113
  kind?: "file" | "skill" | "agent" | undefined;
107
- annotations?: import("zod").objectOutputType<{
108
- 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>;
109
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
110
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
111
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
114
+ annotations?: {
115
+ [x: string]: unknown;
116
+ audience?: ("user" | "assistant")[] | undefined;
117
+ priority?: number | undefined;
118
+ lastModified?: string | undefined;
119
+ } | undefined;
112
120
  _meta?: Record<string, unknown> | undefined;
113
- mimeType?: string | undefined;
114
121
  title?: string | undefined;
115
122
  description?: string | undefined;
123
+ mimeType?: string | undefined;
116
124
  size?: number | 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?: import("zod").objectOutputType<{
127
- 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>;
128
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
129
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
130
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
136
- 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>;
137
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
138
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
139
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
147
- 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>;
148
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
149
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
150
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
165
- 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>;
166
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
167
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
168
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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
186
  kind?: "file" | "skill" | "agent" | undefined;
175
- annotations?: import("zod").objectOutputType<{
176
- 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>;
177
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
178
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
179
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
187
+ annotations?: {
188
+ [x: string]: unknown;
189
+ audience?: ("user" | "assistant")[] | undefined;
190
+ priority?: number | undefined;
191
+ lastModified?: string | undefined;
192
+ } | undefined;
180
193
  _meta?: Record<string, unknown> | undefined;
181
- mimeType?: string | undefined;
182
194
  title?: string | undefined;
183
195
  description?: string | undefined;
196
+ mimeType?: string | undefined;
184
197
  size?: number | 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?: import("zod").objectOutputType<{
193
- 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>;
194
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
195
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
196
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
202
- 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>;
203
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
204
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
205
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
213
- 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>;
214
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
215
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
216
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
231
- 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>;
232
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
233
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
234
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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
258
  kind?: "file" | "skill" | "agent" | undefined;
241
- annotations?: import("zod").objectOutputType<{
242
- 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>;
243
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
244
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
245
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
259
+ annotations?: {
260
+ [x: string]: unknown;
261
+ audience?: ("user" | "assistant")[] | undefined;
262
+ priority?: number | undefined;
263
+ lastModified?: string | undefined;
264
+ } | undefined;
246
265
  _meta?: Record<string, unknown> | undefined;
247
- mimeType?: string | undefined;
248
266
  title?: string | undefined;
249
267
  description?: string | undefined;
268
+ mimeType?: string | undefined;
250
269
  size?: number | 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?: import("zod").objectOutputType<{
260
- 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>;
261
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
262
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
263
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
269
- 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>;
270
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
271
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
272
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
280
- 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>;
281
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
282
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
283
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
298
- 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>;
299
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
300
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
301
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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
330
  kind?: "file" | "skill" | "agent" | undefined;
308
- annotations?: import("zod").objectOutputType<{
309
- 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>;
310
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
311
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
312
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
331
+ annotations?: {
332
+ [x: string]: unknown;
333
+ audience?: ("user" | "assistant")[] | undefined;
334
+ priority?: number | undefined;
335
+ lastModified?: string | undefined;
336
+ } | undefined;
313
337
  _meta?: Record<string, unknown> | undefined;
314
- mimeType?: string | undefined;
315
338
  title?: string | undefined;
316
339
  description?: string | undefined;
340
+ mimeType?: string | undefined;
317
341
  size?: number | undefined;
318
342
  };
319
- sessionUpdate: "agent_thought_chunk";
320
- messageId: string;
321
343
  parentToolCallId?: string | undefined;
322
344
  } | {
345
+ sessionUpdate: "tool_call";
346
+ toolCallId: string;
347
+ title: string;
323
348
  kind: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode";
324
349
  status: "pending" | "in_progress" | "completed" | "failed";
325
- title: string;
326
- toolCallId: string;
327
- sessionUpdate: "tool_call";
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?: import("zod").objectOutputType<{
335
- 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>;
336
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
337
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
338
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
344
- 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>;
345
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
346
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
347
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
355
- 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>;
356
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
357
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
358
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
373
- 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>;
374
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
375
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
376
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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
411
  kind?: "file" | "skill" | "agent" | undefined;
383
- annotations?: import("zod").objectOutputType<{
384
- 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>;
385
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
386
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
387
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
412
+ annotations?: {
413
+ [x: string]: unknown;
414
+ audience?: ("user" | "assistant")[] | undefined;
415
+ priority?: number | undefined;
416
+ lastModified?: string | undefined;
417
+ } | undefined;
388
418
  _meta?: Record<string, unknown> | undefined;
389
- mimeType?: string | undefined;
390
419
  title?: string | undefined;
391
420
  description?: string | undefined;
421
+ mimeType?: string | undefined;
392
422
  size?: number | 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
- diff: string;
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
- state: "unknown" | "paused" | "pending" | "completed" | "failed" | "running" | "stopped";
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";
488
- kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
514
+ toolCallId: string;
515
+ parentToolCallId?: string | undefined;
489
516
  status?: "pending" | "in_progress" | "completed" | "failed" | undefined;
490
- name?: string | undefined;
491
517
  title?: string | 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
- kind?: "file" | "skill" | "agent" | undefined;
546
- annotations?: import("zod").objectOutputType<{
547
- 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>;
548
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
549
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
550
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
551
- _meta?: Record<string, unknown> | undefined;
552
- mimeType?: string | undefined;
553
- title?: string | undefined;
554
- description?: string | undefined;
555
- size?: number | 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;
518
+ name?: string | undefined;
519
+ kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | 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
- state: "unknown" | "paused" | "pending" | "completed" | "failed" | "running" | "stopped";
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?: "unknown" | "end_turn" | "cancelled" | "error" | "max_tokens" | "max_turn_requests" | "refusal" | undefined;
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: {
757
- kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
758
- name: string;
759
792
  optionId: string;
793
+ name: string;
794
+ kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
760
795
  }[];
761
- title: string;
762
- sessionUpdate: "ls_permission";
763
- requestId: string;
796
+ childSessionId?: string | undefined;
764
797
  toolCallId?: string | undefined;
798
+ detail?: string | undefined;
765
799
  tool?: {
766
- kind?: "search" | "delete" | "other" | "read" | "edit" | "move" | "execute" | "think" | "fetch" | "switch_mode" | undefined;
767
800
  title?: string | undefined;
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?: import("zod").objectOutputType<{
774
- 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>;
775
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
776
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
777
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
783
- 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>;
784
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
785
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
786
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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?: import("zod").objectOutputType<{
794
- 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>;
795
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
796
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
797
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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,68 +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?: import("zod").objectOutputType<{
812
- 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>;
813
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
814
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
815
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
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
860
  kind?: "file" | "skill" | "agent" | undefined;
822
- annotations?: import("zod").objectOutputType<{
823
- 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>;
824
- priority: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>, number | undefined, number | null | undefined>;
825
- lastModified: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>, string | undefined, string | null | undefined>;
826
- }, import("zod").ZodTypeAny, "passthrough"> | undefined;
861
+ annotations?: {
862
+ [x: string]: unknown;
863
+ audience?: ("user" | "assistant")[] | undefined;
864
+ priority?: number | undefined;
865
+ lastModified?: string | undefined;
866
+ } | undefined;
827
867
  _meta?: Record<string, unknown> | undefined;
828
- mimeType?: string | undefined;
829
868
  title?: string | undefined;
830
869
  description?: string | undefined;
870
+ mimeType?: string | undefined;
831
871
  size?: number | 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
- diff: string;
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
- detail?: string | undefined;
893
+ url?: {
894
+ url: string;
895
+ elicitationId: string;
896
+ } | undefined;
855
897
  questions?: {
856
- kind: "text" | "choice" | "choices";
857
- text: string;
858
898
  id: string;
859
- options?: {
860
- value: string;
861
- label: string;
862
- description?: string | undefined;
863
- }[] | undefined;
864
- other?: boolean | undefined;
899
+ text: string;
900
+ kind: "text" | "choice" | "choices";
865
901
  constraints?: {
866
- type: "string" | "number" | "boolean" | "integer" | "array";
902
+ type: "string" | "number" | "boolean" | "array" | "integer";
867
903
  minimum?: number | undefined;
868
904
  maximum?: number | undefined;
869
905
  minLength?: number | undefined;
@@ -875,21 +911,22 @@ export declare const transcriptTimes: WeakMap<{
875
911
  } | undefined;
876
912
  defaults?: string[] | undefined;
877
913
  header?: string | undefined;
914
+ options?: {
915
+ value: string;
916
+ label: string;
917
+ description?: string | undefined;
918
+ }[] | undefined;
919
+ other?: boolean | undefined;
878
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: {
943
+ id: string;
905
944
  kind: "shell" | "monitor";
906
945
  title: string;
907
- id: 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.