@linkshell/host 0.4.70 → 0.4.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/host/src/acp-settings.js +1 -1
  2. package/dist/host/src/acp-settings.js.map +1 -1
  3. package/dist/host/src/computer-preview.d.ts +1 -9
  4. package/dist/host/src/drivers/acp/driver.d.ts +3 -0
  5. package/dist/host/src/drivers/acp/driver.js +10 -3
  6. package/dist/host/src/drivers/acp/driver.js.map +1 -1
  7. package/dist/host/src/drivers/acp/questions.js +2 -2
  8. package/dist/host/src/drivers/acp/questions.js.map +1 -1
  9. package/dist/host/src/drivers/claude/driver.d.ts +10 -0
  10. package/dist/host/src/drivers/claude/driver.js +65 -6
  11. package/dist/host/src/drivers/claude/driver.js.map +1 -1
  12. package/dist/host/src/drivers/claude/holders.d.ts +2 -0
  13. package/dist/host/src/drivers/claude/holders.js +5 -1
  14. package/dist/host/src/drivers/claude/holders.js.map +1 -1
  15. package/dist/host/src/drivers/claude/tasks.d.ts +3 -3
  16. package/dist/host/src/drivers/claude/transcript.d.ts +403 -348
  17. package/dist/host/src/drivers/claude/transcript.js +83 -11
  18. package/dist/host/src/drivers/claude/transcript.js.map +1 -1
  19. package/dist/host/src/fs.d.ts +9 -9
  20. package/dist/host/src/hub.d.ts +85 -80
  21. package/dist/host/src/hub.js +2 -2
  22. package/dist/host/src/hub.js.map +1 -1
  23. package/dist/host/src/input.d.ts +43 -89
  24. package/dist/host/src/input.js +1 -1
  25. package/dist/host/src/input.js.map +1 -1
  26. package/dist/host/src/screen-session.d.ts +3 -17
  27. package/dist/host/src/screen-session.js +2 -2
  28. package/dist/host/src/screen-session.js.map +1 -1
  29. package/dist/host/src/store.d.ts +11 -5
  30. package/dist/host/src/store.js +51 -19
  31. package/dist/host/src/store.js.map +1 -1
  32. package/dist/host/src/terminals.d.ts +9 -9
  33. package/dist/host/tsconfig.tsbuildinfo +1 -1
  34. package/dist/wire/src/acp.d.ts +68 -430
  35. package/dist/wire/src/acp.js +5 -5
  36. package/dist/wire/src/acp.js.map +1 -1
  37. package/dist/wire/src/async-questions.d.ts +2 -10
  38. package/dist/wire/src/computer-preview.d.ts +1 -15
  39. package/dist/wire/src/computer-preview.js +1 -1
  40. package/dist/wire/src/computer-preview.js.map +1 -1
  41. package/dist/wire/src/content.d.ts +207 -372
  42. package/dist/wire/src/content.js +4 -4
  43. package/dist/wire/src/content.js.map +1 -1
  44. package/dist/wire/src/editor.d.ts +48 -592
  45. package/dist/wire/src/envelopes.js +13 -1
  46. package/dist/wire/src/envelopes.js.map +1 -1
  47. package/dist/wire/src/goal.d.ts +15 -48
  48. package/dist/wire/src/live-activity.d.ts +83 -212
  49. package/dist/wire/src/live-activity.js +1 -1
  50. package/dist/wire/src/live-activity.js.map +1 -1
  51. package/dist/wire/src/model.d.ts +454 -2309
  52. package/dist/wire/src/relay.d.ts +41 -267
  53. package/dist/wire/src/relay.js +1 -1
  54. package/dist/wire/src/relay.js.map +1 -1
  55. package/dist/wire/src/rpc-mcp.d.ts +21 -136
  56. package/dist/wire/src/rpc-mcp.js +1 -1
  57. package/dist/wire/src/rpc-mcp.js.map +1 -1
  58. package/dist/wire/src/rpc.d.ts +6829 -31501
  59. package/dist/wire/src/rpc.js +5 -5
  60. package/dist/wire/src/rpc.js.map +1 -1
  61. package/dist/wire/src/side.d.ts +13 -61
  62. package/dist/wire/src/updates.d.ts +1815 -6935
  63. package/dist/wire/src/usage.d.ts +17 -195
  64. package/dist/wire/src/watch.d.ts +223 -1141
  65. package/dist/wire/src/workflow.d.ts +46 -139
  66. package/package.json +4 -4
@@ -6,142 +6,96 @@ export declare const watchComputerSchema: z.ZodObject<{
6
6
  name: z.ZodString;
7
7
  online: z.ZodBoolean;
8
8
  selected: z.ZodBoolean;
9
- platform: z.ZodOptional<z.ZodEnum<["darwin", "win32", "linux", "unknown"]>>;
10
- }, "strip", z.ZodTypeAny, {
11
- name: string;
12
- online: boolean;
13
- key: string;
14
- selected: boolean;
15
- platform?: "unknown" | "darwin" | "win32" | "linux" | undefined;
16
- }, {
17
- name: string;
18
- online: boolean;
19
- key: string;
20
- selected: boolean;
21
- platform?: "unknown" | "darwin" | "win32" | "linux" | undefined;
22
- }>;
9
+ platform: z.ZodOptional<z.ZodEnum<{
10
+ unknown: "unknown";
11
+ darwin: "darwin";
12
+ win32: "win32";
13
+ linux: "linux";
14
+ }>>;
15
+ }, z.core.$strip>;
23
16
  export type WatchComputer = z.infer<typeof watchComputerSchema>;
24
17
  export declare const watchWorkspaceSchema: z.ZodObject<{
25
18
  path: z.ZodString;
26
19
  name: z.ZodString;
27
- }, "strip", z.ZodTypeAny, {
28
- path: string;
29
- name: string;
30
- }, {
31
- path: string;
32
- name: string;
33
- }>;
20
+ }, z.core.$strip>;
34
21
  export type WatchWorkspace = z.infer<typeof watchWorkspaceSchema>;
35
22
  export declare const watchConfigOptionValueSchema: z.ZodObject<{
36
23
  value: z.ZodString;
37
24
  name: z.ZodString;
38
25
  description: z.ZodOptional<z.ZodString>;
39
- }, "strip", z.ZodTypeAny, {
40
- value: string;
41
- name: string;
42
- description?: string | undefined;
43
- }, {
44
- value: string;
45
- name: string;
46
- description?: string | undefined;
47
- }>;
26
+ }, z.core.$strip>;
48
27
  export type WatchConfigOptionValue = z.infer<typeof watchConfigOptionValueSchema>;
49
28
  export declare const watchConfigOptionSchema: z.ZodObject<{
50
29
  id: z.ZodString;
51
30
  name: z.ZodString;
52
- category: z.ZodDefault<z.ZodEnum<["model", "model_config", "mode", "effort", "other"]>>;
31
+ category: z.ZodDefault<z.ZodEnum<{
32
+ mode: "mode";
33
+ model: "model";
34
+ model_config: "model_config";
35
+ effort: "effort";
36
+ other: "other";
37
+ }>>;
53
38
  current: z.ZodString;
54
39
  currentLabel: z.ZodOptional<z.ZodString>;
55
40
  values: z.ZodArray<z.ZodObject<{
56
41
  value: z.ZodString;
57
42
  name: z.ZodString;
58
43
  description: z.ZodOptional<z.ZodString>;
59
- }, "strip", z.ZodTypeAny, {
60
- value: string;
61
- name: string;
62
- description?: string | undefined;
63
- }, {
64
- value: string;
65
- name: string;
66
- description?: string | undefined;
67
- }>, "many">;
68
- }, "strip", z.ZodTypeAny, {
69
- values: {
70
- value: string;
71
- name: string;
72
- description?: string | undefined;
73
- }[];
74
- name: string;
75
- id: string;
76
- category: "mode" | "model" | "model_config" | "effort" | "other";
77
- current: string;
78
- currentLabel?: string | undefined;
79
- }, {
80
- values: {
81
- value: string;
82
- name: string;
83
- description?: string | undefined;
84
- }[];
85
- name: string;
86
- id: string;
87
- current: string;
88
- category?: "mode" | "model" | "model_config" | "effort" | "other" | undefined;
89
- currentLabel?: string | undefined;
90
- }>;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>;
91
46
  export type WatchConfigOption = z.infer<typeof watchConfigOptionSchema>;
92
47
  export declare const watchActionSchema: z.ZodObject<{
93
48
  id: z.ZodString;
94
49
  label: z.ZodString;
95
- role: z.ZodEnum<["allow", "reject", "always", "stop", "choice"]>;
96
- kind: z.ZodEnum<["permission", "answer", "async-answer"]>;
50
+ role: z.ZodEnum<{
51
+ stop: "stop";
52
+ choice: "choice";
53
+ reject: "reject";
54
+ allow: "allow";
55
+ always: "always";
56
+ }>;
57
+ kind: z.ZodEnum<{
58
+ answer: "answer";
59
+ permission: "permission";
60
+ "async-answer": "async-answer";
61
+ }>;
97
62
  computerKey: z.ZodString;
98
63
  sessionId: z.ZodString;
99
64
  requestId: z.ZodString;
100
65
  optionId: z.ZodString;
101
66
  questionId: z.ZodOptional<z.ZodString>;
102
- }, "strip", z.ZodTypeAny, {
103
- kind: "answer" | "permission" | "async-answer";
104
- id: string;
105
- role: "stop" | "choice" | "reject" | "allow" | "always";
106
- requestId: string;
107
- optionId: string;
108
- label: string;
109
- sessionId: string;
110
- computerKey: string;
111
- questionId?: string | undefined;
112
- }, {
113
- kind: "answer" | "permission" | "async-answer";
114
- id: string;
115
- role: "stop" | "choice" | "reject" | "allow" | "always";
116
- requestId: string;
117
- optionId: string;
118
- label: string;
119
- sessionId: string;
120
- computerKey: string;
121
- questionId?: string | undefined;
122
- }>;
67
+ }, z.core.$strip>;
123
68
  export type WatchAction = LiveActivityAction;
124
69
  export declare const watchPlanProgressSchema: z.ZodObject<{
125
70
  completed: z.ZodNumber;
126
71
  total: z.ZodNumber;
127
72
  currentStep: z.ZodOptional<z.ZodString>;
128
- }, "strip", z.ZodTypeAny, {
129
- completed: number;
130
- total: number;
131
- currentStep?: string | undefined;
132
- }, {
133
- completed: number;
134
- total: number;
135
- currentStep?: string | undefined;
136
- }>;
73
+ }, z.core.$strip>;
137
74
  export type WatchPlanProgress = z.infer<typeof watchPlanProgressSchema>;
138
75
  export declare const watchTimelineItemSchema: z.ZodObject<{
139
76
  id: z.ZodString;
140
- kind: z.ZodEnum<["user", "assistant", "thought", "tool", "diff", "subagent", "image", "plan", "permission", "question", "error"]>;
77
+ kind: z.ZodEnum<{
78
+ error: "error";
79
+ user: "user";
80
+ assistant: "assistant";
81
+ image: "image";
82
+ diff: "diff";
83
+ tool: "tool";
84
+ subagent: "subagent";
85
+ question: "question";
86
+ thought: "thought";
87
+ plan: "plan";
88
+ permission: "permission";
89
+ }>;
141
90
  title: z.ZodOptional<z.ZodString>;
142
91
  text: z.ZodString;
143
92
  detail: z.ZodOptional<z.ZodString>;
144
- status: z.ZodOptional<z.ZodEnum<["running", "completed", "failed", "waiting"]>>;
93
+ status: z.ZodOptional<z.ZodEnum<{
94
+ completed: "completed";
95
+ failed: "failed";
96
+ running: "running";
97
+ waiting: "waiting";
98
+ }>>;
145
99
  filePath: z.ZodOptional<z.ZodString>;
146
100
  diffAdded: z.ZodOptional<z.ZodNumber>;
147
101
  diffRemoved: z.ZodOptional<z.ZodNumber>;
@@ -150,37 +104,7 @@ export declare const watchTimelineItemSchema: z.ZodObject<{
150
104
  subagentModel: z.ZodOptional<z.ZodString>;
151
105
  imageBase64: z.ZodOptional<z.ZodString>;
152
106
  imageMimeType: z.ZodOptional<z.ZodString>;
153
- }, "strip", z.ZodTypeAny, {
154
- text: string;
155
- kind: "user" | "assistant" | "image" | "diff" | "tool" | "subagent" | "question" | "error" | "thought" | "plan" | "permission";
156
- id: string;
157
- status?: "completed" | "failed" | "running" | "waiting" | undefined;
158
- title?: string | undefined;
159
- detail?: string | undefined;
160
- filePath?: string | undefined;
161
- diffAdded?: number | undefined;
162
- diffRemoved?: number | undefined;
163
- subagentType?: string | undefined;
164
- subagentName?: string | undefined;
165
- subagentModel?: string | undefined;
166
- imageBase64?: string | undefined;
167
- imageMimeType?: string | undefined;
168
- }, {
169
- text: string;
170
- kind: "user" | "assistant" | "image" | "diff" | "tool" | "subagent" | "question" | "error" | "thought" | "plan" | "permission";
171
- id: string;
172
- status?: "completed" | "failed" | "running" | "waiting" | undefined;
173
- title?: string | undefined;
174
- detail?: string | undefined;
175
- filePath?: string | undefined;
176
- diffAdded?: number | undefined;
177
- diffRemoved?: number | undefined;
178
- subagentType?: string | undefined;
179
- subagentName?: string | undefined;
180
- subagentModel?: string | undefined;
181
- imageBase64?: string | undefined;
182
- imageMimeType?: string | undefined;
183
- }>;
107
+ }, z.core.$strip>;
184
108
  export type WatchTimelineItem = z.infer<typeof watchTimelineItemSchema>;
185
109
  export declare const watchSessionSchema: z.ZodObject<{
186
110
  id: z.ZodString;
@@ -195,56 +119,34 @@ export declare const watchSessionSchema: z.ZodObject<{
195
119
  subagents: z.ZodOptional<z.ZodObject<{
196
120
  total: z.ZodNumber;
197
121
  running: z.ZodNumber;
198
- }, "strip", z.ZodTypeAny, {
199
- running: number;
200
- total: number;
201
- }, {
202
- running: number;
203
- total: number;
204
- }>>;
122
+ }, z.core.$strip>>;
205
123
  configOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
206
124
  id: z.ZodString;
207
125
  name: z.ZodString;
208
- category: z.ZodDefault<z.ZodEnum<["model", "model_config", "mode", "effort", "other"]>>;
126
+ category: z.ZodDefault<z.ZodEnum<{
127
+ mode: "mode";
128
+ model: "model";
129
+ model_config: "model_config";
130
+ effort: "effort";
131
+ other: "other";
132
+ }>>;
209
133
  current: z.ZodString;
210
134
  currentLabel: z.ZodOptional<z.ZodString>;
211
135
  values: z.ZodArray<z.ZodObject<{
212
136
  value: z.ZodString;
213
137
  name: z.ZodString;
214
138
  description: z.ZodOptional<z.ZodString>;
215
- }, "strip", z.ZodTypeAny, {
216
- value: string;
217
- name: string;
218
- description?: string | undefined;
219
- }, {
220
- value: string;
221
- name: string;
222
- description?: string | undefined;
223
- }>, "many">;
224
- }, "strip", z.ZodTypeAny, {
225
- values: {
226
- value: string;
227
- name: string;
228
- description?: string | undefined;
229
- }[];
230
- name: string;
231
- id: string;
232
- category: "mode" | "model" | "model_config" | "effort" | "other";
233
- current: string;
234
- currentLabel?: string | undefined;
235
- }, {
236
- values: {
237
- value: string;
238
- name: string;
239
- description?: string | undefined;
240
- }[];
241
- name: string;
242
- id: string;
243
- current: string;
244
- category?: "mode" | "model" | "model_config" | "effort" | "other" | undefined;
245
- currentLabel?: string | undefined;
246
- }>, "many">>;
247
- phase: z.ZodEnum<["waiting_for_approval", "waiting_for_input", "failed", "running", "starting", "completed", "stale"]>;
139
+ }, z.core.$strip>>;
140
+ }, z.core.$strip>>>;
141
+ phase: z.ZodEnum<{
142
+ completed: "completed";
143
+ failed: "failed";
144
+ running: "running";
145
+ waiting_for_approval: "waiting_for_approval";
146
+ waiting_for_input: "waiting_for_input";
147
+ starting: "starting";
148
+ stale: "stale";
149
+ }>;
248
150
  updatedAt: z.ZodNumber;
249
151
  pinned: z.ZodOptional<z.ZodBoolean>;
250
152
  promptTitle: z.ZodOptional<z.ZodString>;
@@ -255,55 +157,54 @@ export declare const watchSessionSchema: z.ZodObject<{
255
157
  completed: z.ZodNumber;
256
158
  total: z.ZodNumber;
257
159
  currentStep: z.ZodOptional<z.ZodString>;
258
- }, "strip", z.ZodTypeAny, {
259
- completed: number;
260
- total: number;
261
- currentStep?: string | undefined;
262
- }, {
263
- completed: number;
264
- total: number;
265
- currentStep?: string | undefined;
266
- }>>;
160
+ }, z.core.$strip>>;
267
161
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
268
162
  id: z.ZodString;
269
163
  label: z.ZodString;
270
- role: z.ZodEnum<["allow", "reject", "always", "stop", "choice"]>;
271
- kind: z.ZodEnum<["permission", "answer", "async-answer"]>;
164
+ role: z.ZodEnum<{
165
+ stop: "stop";
166
+ choice: "choice";
167
+ reject: "reject";
168
+ allow: "allow";
169
+ always: "always";
170
+ }>;
171
+ kind: z.ZodEnum<{
172
+ answer: "answer";
173
+ permission: "permission";
174
+ "async-answer": "async-answer";
175
+ }>;
272
176
  computerKey: z.ZodString;
273
177
  sessionId: z.ZodString;
274
178
  requestId: z.ZodString;
275
179
  optionId: z.ZodString;
276
180
  questionId: z.ZodOptional<z.ZodString>;
277
- }, "strip", z.ZodTypeAny, {
278
- kind: "answer" | "permission" | "async-answer";
279
- id: string;
280
- role: "stop" | "choice" | "reject" | "allow" | "always";
281
- requestId: string;
282
- optionId: string;
283
- label: string;
284
- sessionId: string;
285
- computerKey: string;
286
- questionId?: string | undefined;
287
- }, {
288
- kind: "answer" | "permission" | "async-answer";
289
- id: string;
290
- role: "stop" | "choice" | "reject" | "allow" | "always";
291
- requestId: string;
292
- optionId: string;
293
- label: string;
294
- sessionId: string;
295
- computerKey: string;
296
- questionId?: string | undefined;
297
- }>, "many">>;
181
+ }, z.core.$strip>>>;
298
182
  hasMoreActions: z.ZodOptional<z.ZodBoolean>;
299
183
  hasEarlier: z.ZodOptional<z.ZodBoolean>;
300
184
  items: z.ZodOptional<z.ZodArray<z.ZodObject<{
301
185
  id: z.ZodString;
302
- kind: z.ZodEnum<["user", "assistant", "thought", "tool", "diff", "subagent", "image", "plan", "permission", "question", "error"]>;
186
+ kind: z.ZodEnum<{
187
+ error: "error";
188
+ user: "user";
189
+ assistant: "assistant";
190
+ image: "image";
191
+ diff: "diff";
192
+ tool: "tool";
193
+ subagent: "subagent";
194
+ question: "question";
195
+ thought: "thought";
196
+ plan: "plan";
197
+ permission: "permission";
198
+ }>;
303
199
  title: z.ZodOptional<z.ZodString>;
304
200
  text: z.ZodString;
305
201
  detail: z.ZodOptional<z.ZodString>;
306
- status: z.ZodOptional<z.ZodEnum<["running", "completed", "failed", "waiting"]>>;
202
+ status: z.ZodOptional<z.ZodEnum<{
203
+ completed: "completed";
204
+ failed: "failed";
205
+ running: "running";
206
+ waiting: "waiting";
207
+ }>>;
307
208
  filePath: z.ZodOptional<z.ZodString>;
308
209
  diffAdded: z.ZodOptional<z.ZodNumber>;
309
210
  diffRemoved: z.ZodOptional<z.ZodNumber>;
@@ -312,184 +213,16 @@ export declare const watchSessionSchema: z.ZodObject<{
312
213
  subagentModel: z.ZodOptional<z.ZodString>;
313
214
  imageBase64: z.ZodOptional<z.ZodString>;
314
215
  imageMimeType: z.ZodOptional<z.ZodString>;
315
- }, "strip", z.ZodTypeAny, {
316
- text: string;
317
- kind: "user" | "assistant" | "image" | "diff" | "tool" | "subagent" | "question" | "error" | "thought" | "plan" | "permission";
318
- id: string;
319
- status?: "completed" | "failed" | "running" | "waiting" | undefined;
320
- title?: string | undefined;
321
- detail?: string | undefined;
322
- filePath?: string | undefined;
323
- diffAdded?: number | undefined;
324
- diffRemoved?: number | undefined;
325
- subagentType?: string | undefined;
326
- subagentName?: string | undefined;
327
- subagentModel?: string | undefined;
328
- imageBase64?: string | undefined;
329
- imageMimeType?: string | undefined;
330
- }, {
331
- text: string;
332
- kind: "user" | "assistant" | "image" | "diff" | "tool" | "subagent" | "question" | "error" | "thought" | "plan" | "permission";
333
- id: string;
334
- status?: "completed" | "failed" | "running" | "waiting" | undefined;
335
- title?: string | undefined;
336
- detail?: string | undefined;
337
- filePath?: string | undefined;
338
- diffAdded?: number | undefined;
339
- diffRemoved?: number | undefined;
340
- subagentType?: string | undefined;
341
- subagentName?: string | undefined;
342
- subagentModel?: string | undefined;
343
- imageBase64?: string | undefined;
344
- imageMimeType?: string | undefined;
345
- }>, "many">>;
216
+ }, z.core.$strip>>>;
346
217
  canCancel: z.ZodBoolean;
347
218
  canSend: z.ZodBoolean;
348
- handoff: z.ZodEnum<["none", "can_takeover", "can_release"]>;
219
+ handoff: z.ZodEnum<{
220
+ none: "none";
221
+ can_takeover: "can_takeover";
222
+ can_release: "can_release";
223
+ }>;
349
224
  deepLink: z.ZodString;
350
- }, "strip", z.ZodTypeAny, {
351
- title: string;
352
- agent: string;
353
- id: string;
354
- canCancel: boolean;
355
- phase: "completed" | "failed" | "running" | "waiting_for_approval" | "waiting_for_input" | "starting" | "stale";
356
- updatedAt: number;
357
- handoff: "none" | "can_takeover" | "can_release";
358
- subtitle: string;
359
- project: string;
360
- deepLink: string;
361
- canSend: boolean;
362
- mode?: string | undefined;
363
- model?: string | undefined;
364
- goal?: string | undefined;
365
- cwd?: string | undefined;
366
- branch?: string | undefined;
367
- subagents?: {
368
- running: number;
369
- total: number;
370
- } | undefined;
371
- actions?: {
372
- kind: "answer" | "permission" | "async-answer";
373
- id: string;
374
- role: "stop" | "choice" | "reject" | "allow" | "always";
375
- requestId: string;
376
- optionId: string;
377
- label: string;
378
- sessionId: string;
379
- computerKey: string;
380
- questionId?: string | undefined;
381
- }[] | undefined;
382
- hasMoreActions?: boolean | undefined;
383
- configOptions?: {
384
- values: {
385
- value: string;
386
- name: string;
387
- description?: string | undefined;
388
- }[];
389
- name: string;
390
- id: string;
391
- category: "mode" | "model" | "model_config" | "effort" | "other";
392
- current: string;
393
- currentLabel?: string | undefined;
394
- }[] | undefined;
395
- pinned?: boolean | undefined;
396
- promptTitle?: string | undefined;
397
- commandPreview?: string | undefined;
398
- detailPreview?: string | undefined;
399
- planProgress?: {
400
- completed: number;
401
- total: number;
402
- currentStep?: string | undefined;
403
- } | undefined;
404
- hasEarlier?: boolean | undefined;
405
- items?: {
406
- text: string;
407
- kind: "user" | "assistant" | "image" | "diff" | "tool" | "subagent" | "question" | "error" | "thought" | "plan" | "permission";
408
- id: string;
409
- status?: "completed" | "failed" | "running" | "waiting" | undefined;
410
- title?: string | undefined;
411
- detail?: string | undefined;
412
- filePath?: string | undefined;
413
- diffAdded?: number | undefined;
414
- diffRemoved?: number | undefined;
415
- subagentType?: string | undefined;
416
- subagentName?: string | undefined;
417
- subagentModel?: string | undefined;
418
- imageBase64?: string | undefined;
419
- imageMimeType?: string | undefined;
420
- }[] | undefined;
421
- }, {
422
- title: string;
423
- agent: string;
424
- id: string;
425
- canCancel: boolean;
426
- phase: "completed" | "failed" | "running" | "waiting_for_approval" | "waiting_for_input" | "starting" | "stale";
427
- updatedAt: number;
428
- handoff: "none" | "can_takeover" | "can_release";
429
- subtitle: string;
430
- project: string;
431
- deepLink: string;
432
- canSend: boolean;
433
- mode?: string | undefined;
434
- model?: string | undefined;
435
- goal?: string | undefined;
436
- cwd?: string | undefined;
437
- branch?: string | undefined;
438
- subagents?: {
439
- running: number;
440
- total: number;
441
- } | undefined;
442
- actions?: {
443
- kind: "answer" | "permission" | "async-answer";
444
- id: string;
445
- role: "stop" | "choice" | "reject" | "allow" | "always";
446
- requestId: string;
447
- optionId: string;
448
- label: string;
449
- sessionId: string;
450
- computerKey: string;
451
- questionId?: string | undefined;
452
- }[] | undefined;
453
- hasMoreActions?: boolean | undefined;
454
- configOptions?: {
455
- values: {
456
- value: string;
457
- name: string;
458
- description?: string | undefined;
459
- }[];
460
- name: string;
461
- id: string;
462
- current: string;
463
- category?: "mode" | "model" | "model_config" | "effort" | "other" | undefined;
464
- currentLabel?: string | undefined;
465
- }[] | undefined;
466
- pinned?: boolean | undefined;
467
- promptTitle?: string | undefined;
468
- commandPreview?: string | undefined;
469
- detailPreview?: string | undefined;
470
- planProgress?: {
471
- completed: number;
472
- total: number;
473
- currentStep?: string | undefined;
474
- } | undefined;
475
- hasEarlier?: boolean | undefined;
476
- items?: {
477
- text: string;
478
- kind: "user" | "assistant" | "image" | "diff" | "tool" | "subagent" | "question" | "error" | "thought" | "plan" | "permission";
479
- id: string;
480
- status?: "completed" | "failed" | "running" | "waiting" | undefined;
481
- title?: string | undefined;
482
- detail?: string | undefined;
483
- filePath?: string | undefined;
484
- diffAdded?: number | undefined;
485
- diffRemoved?: number | undefined;
486
- subagentType?: string | undefined;
487
- subagentName?: string | undefined;
488
- subagentModel?: string | undefined;
489
- imageBase64?: string | undefined;
490
- imageMimeType?: string | undefined;
491
- }[] | undefined;
492
- }>;
225
+ }, z.core.$strip>;
493
226
  export type WatchSession = z.infer<typeof watchSessionSchema>;
494
227
  export declare const watchTerminalSchema: z.ZodObject<{
495
228
  id: z.ZodString;
@@ -499,35 +232,16 @@ export declare const watchTerminalSchema: z.ZodObject<{
499
232
  cwd: z.ZodOptional<z.ZodString>;
500
233
  command: z.ZodOptional<z.ZodString>;
501
234
  outputPreview: z.ZodOptional<z.ZodString>;
502
- phase: z.ZodEnum<["running", "failed", "completed", "stale"]>;
235
+ phase: z.ZodEnum<{
236
+ completed: "completed";
237
+ failed: "failed";
238
+ running: "running";
239
+ stale: "stale";
240
+ }>;
503
241
  activeAt: z.ZodNumber;
504
242
  exitCode: z.ZodOptional<z.ZodNumber>;
505
243
  deepLink: z.ZodString;
506
- }, "strip", z.ZodTypeAny, {
507
- title: string;
508
- id: string;
509
- phase: "completed" | "failed" | "running" | "stale";
510
- activeAt: number;
511
- subtitle: string;
512
- project: string;
513
- deepLink: string;
514
- command?: string | undefined;
515
- exitCode?: number | undefined;
516
- cwd?: string | undefined;
517
- outputPreview?: string | undefined;
518
- }, {
519
- title: string;
520
- id: string;
521
- phase: "completed" | "failed" | "running" | "stale";
522
- activeAt: number;
523
- subtitle: string;
524
- project: string;
525
- deepLink: string;
526
- command?: string | undefined;
527
- exitCode?: number | undefined;
528
- cwd?: string | undefined;
529
- outputPreview?: string | undefined;
530
- }>;
244
+ }, z.core.$strip>;
531
245
  export type WatchTerminal = z.infer<typeof watchTerminalSchema>;
532
246
  export declare const watchSnapshotSchema: z.ZodObject<{
533
247
  version: z.ZodLiteral<1>;
@@ -535,43 +249,29 @@ export declare const watchSnapshotSchema: z.ZodObject<{
535
249
  computerKey: z.ZodString;
536
250
  computerName: z.ZodString;
537
251
  online: z.ZodBoolean;
538
- /** The session the watch last opened: it keeps the largest share of the byte budget. */
539
252
  focusedSessionId: z.ZodOptional<z.ZodString>;
540
253
  statusLabel: z.ZodString;
541
254
  waitingCount: z.ZodNumber;
542
255
  runningCount: z.ZodNumber;
543
256
  failedCount: z.ZodNumber;
544
257
  completedCount: z.ZodNumber;
545
- availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
258
+ availableAgents: z.ZodOptional<z.ZodArray<z.ZodString>>;
546
259
  workspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
547
260
  path: z.ZodString;
548
261
  name: z.ZodString;
549
- }, "strip", z.ZodTypeAny, {
550
- path: string;
551
- name: string;
552
- }, {
553
- path: string;
554
- name: string;
555
- }>, "many">>;
262
+ }, z.core.$strip>>>;
556
263
  computers: z.ZodArray<z.ZodObject<{
557
264
  key: z.ZodString;
558
265
  name: z.ZodString;
559
266
  online: z.ZodBoolean;
560
267
  selected: z.ZodBoolean;
561
- platform: z.ZodOptional<z.ZodEnum<["darwin", "win32", "linux", "unknown"]>>;
562
- }, "strip", z.ZodTypeAny, {
563
- name: string;
564
- online: boolean;
565
- key: string;
566
- selected: boolean;
567
- platform?: "unknown" | "darwin" | "win32" | "linux" | undefined;
568
- }, {
569
- name: string;
570
- online: boolean;
571
- key: string;
572
- selected: boolean;
573
- platform?: "unknown" | "darwin" | "win32" | "linux" | undefined;
574
- }>, "many">;
268
+ platform: z.ZodOptional<z.ZodEnum<{
269
+ unknown: "unknown";
270
+ darwin: "darwin";
271
+ win32: "win32";
272
+ linux: "linux";
273
+ }>>;
274
+ }, z.core.$strip>>;
575
275
  sessions: z.ZodArray<z.ZodObject<{
576
276
  id: z.ZodString;
577
277
  title: z.ZodString;
@@ -585,56 +285,34 @@ export declare const watchSnapshotSchema: z.ZodObject<{
585
285
  subagents: z.ZodOptional<z.ZodObject<{
586
286
  total: z.ZodNumber;
587
287
  running: z.ZodNumber;
588
- }, "strip", z.ZodTypeAny, {
589
- running: number;
590
- total: number;
591
- }, {
592
- running: number;
593
- total: number;
594
- }>>;
288
+ }, z.core.$strip>>;
595
289
  configOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
596
290
  id: z.ZodString;
597
291
  name: z.ZodString;
598
- category: z.ZodDefault<z.ZodEnum<["model", "model_config", "mode", "effort", "other"]>>;
292
+ category: z.ZodDefault<z.ZodEnum<{
293
+ mode: "mode";
294
+ model: "model";
295
+ model_config: "model_config";
296
+ effort: "effort";
297
+ other: "other";
298
+ }>>;
599
299
  current: z.ZodString;
600
300
  currentLabel: z.ZodOptional<z.ZodString>;
601
301
  values: z.ZodArray<z.ZodObject<{
602
302
  value: z.ZodString;
603
303
  name: z.ZodString;
604
304
  description: z.ZodOptional<z.ZodString>;
605
- }, "strip", z.ZodTypeAny, {
606
- value: string;
607
- name: string;
608
- description?: string | undefined;
609
- }, {
610
- value: string;
611
- name: string;
612
- description?: string | undefined;
613
- }>, "many">;
614
- }, "strip", z.ZodTypeAny, {
615
- values: {
616
- value: string;
617
- name: string;
618
- description?: string | undefined;
619
- }[];
620
- name: string;
621
- id: string;
622
- category: "mode" | "model" | "model_config" | "effort" | "other";
623
- current: string;
624
- currentLabel?: string | undefined;
625
- }, {
626
- values: {
627
- value: string;
628
- name: string;
629
- description?: string | undefined;
630
- }[];
631
- name: string;
632
- id: string;
633
- current: string;
634
- category?: "mode" | "model" | "model_config" | "effort" | "other" | undefined;
635
- currentLabel?: string | undefined;
636
- }>, "many">>;
637
- phase: z.ZodEnum<["waiting_for_approval", "waiting_for_input", "failed", "running", "starting", "completed", "stale"]>;
305
+ }, z.core.$strip>>;
306
+ }, z.core.$strip>>>;
307
+ phase: z.ZodEnum<{
308
+ completed: "completed";
309
+ failed: "failed";
310
+ running: "running";
311
+ waiting_for_approval: "waiting_for_approval";
312
+ waiting_for_input: "waiting_for_input";
313
+ starting: "starting";
314
+ stale: "stale";
315
+ }>;
638
316
  updatedAt: z.ZodNumber;
639
317
  pinned: z.ZodOptional<z.ZodBoolean>;
640
318
  promptTitle: z.ZodOptional<z.ZodString>;
@@ -645,55 +323,54 @@ export declare const watchSnapshotSchema: z.ZodObject<{
645
323
  completed: z.ZodNumber;
646
324
  total: z.ZodNumber;
647
325
  currentStep: z.ZodOptional<z.ZodString>;
648
- }, "strip", z.ZodTypeAny, {
649
- completed: number;
650
- total: number;
651
- currentStep?: string | undefined;
652
- }, {
653
- completed: number;
654
- total: number;
655
- currentStep?: string | undefined;
656
- }>>;
326
+ }, z.core.$strip>>;
657
327
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
658
328
  id: z.ZodString;
659
329
  label: z.ZodString;
660
- role: z.ZodEnum<["allow", "reject", "always", "stop", "choice"]>;
661
- kind: z.ZodEnum<["permission", "answer", "async-answer"]>;
330
+ role: z.ZodEnum<{
331
+ stop: "stop";
332
+ choice: "choice";
333
+ reject: "reject";
334
+ allow: "allow";
335
+ always: "always";
336
+ }>;
337
+ kind: z.ZodEnum<{
338
+ answer: "answer";
339
+ permission: "permission";
340
+ "async-answer": "async-answer";
341
+ }>;
662
342
  computerKey: z.ZodString;
663
343
  sessionId: z.ZodString;
664
344
  requestId: z.ZodString;
665
345
  optionId: z.ZodString;
666
346
  questionId: z.ZodOptional<z.ZodString>;
667
- }, "strip", z.ZodTypeAny, {
668
- kind: "answer" | "permission" | "async-answer";
669
- id: string;
670
- role: "stop" | "choice" | "reject" | "allow" | "always";
671
- requestId: string;
672
- optionId: string;
673
- label: string;
674
- sessionId: string;
675
- computerKey: string;
676
- questionId?: string | undefined;
677
- }, {
678
- kind: "answer" | "permission" | "async-answer";
679
- id: string;
680
- role: "stop" | "choice" | "reject" | "allow" | "always";
681
- requestId: string;
682
- optionId: string;
683
- label: string;
684
- sessionId: string;
685
- computerKey: string;
686
- questionId?: string | undefined;
687
- }>, "many">>;
347
+ }, z.core.$strip>>>;
688
348
  hasMoreActions: z.ZodOptional<z.ZodBoolean>;
689
349
  hasEarlier: z.ZodOptional<z.ZodBoolean>;
690
350
  items: z.ZodOptional<z.ZodArray<z.ZodObject<{
691
351
  id: z.ZodString;
692
- kind: z.ZodEnum<["user", "assistant", "thought", "tool", "diff", "subagent", "image", "plan", "permission", "question", "error"]>;
352
+ kind: z.ZodEnum<{
353
+ error: "error";
354
+ user: "user";
355
+ assistant: "assistant";
356
+ image: "image";
357
+ diff: "diff";
358
+ tool: "tool";
359
+ subagent: "subagent";
360
+ question: "question";
361
+ thought: "thought";
362
+ plan: "plan";
363
+ permission: "permission";
364
+ }>;
693
365
  title: z.ZodOptional<z.ZodString>;
694
366
  text: z.ZodString;
695
367
  detail: z.ZodOptional<z.ZodString>;
696
- status: z.ZodOptional<z.ZodEnum<["running", "completed", "failed", "waiting"]>>;
368
+ status: z.ZodOptional<z.ZodEnum<{
369
+ completed: "completed";
370
+ failed: "failed";
371
+ running: "running";
372
+ waiting: "waiting";
373
+ }>>;
697
374
  filePath: z.ZodOptional<z.ZodString>;
698
375
  diffAdded: z.ZodOptional<z.ZodNumber>;
699
376
  diffRemoved: z.ZodOptional<z.ZodNumber>;
@@ -702,184 +379,16 @@ export declare const watchSnapshotSchema: z.ZodObject<{
702
379
  subagentModel: z.ZodOptional<z.ZodString>;
703
380
  imageBase64: z.ZodOptional<z.ZodString>;
704
381
  imageMimeType: z.ZodOptional<z.ZodString>;
705
- }, "strip", z.ZodTypeAny, {
706
- text: string;
707
- kind: "user" | "assistant" | "image" | "diff" | "tool" | "subagent" | "question" | "error" | "thought" | "plan" | "permission";
708
- id: string;
709
- status?: "completed" | "failed" | "running" | "waiting" | undefined;
710
- title?: string | undefined;
711
- detail?: string | undefined;
712
- filePath?: string | undefined;
713
- diffAdded?: number | undefined;
714
- diffRemoved?: number | undefined;
715
- subagentType?: string | undefined;
716
- subagentName?: string | undefined;
717
- subagentModel?: string | undefined;
718
- imageBase64?: string | undefined;
719
- imageMimeType?: string | undefined;
720
- }, {
721
- text: string;
722
- kind: "user" | "assistant" | "image" | "diff" | "tool" | "subagent" | "question" | "error" | "thought" | "plan" | "permission";
723
- id: string;
724
- status?: "completed" | "failed" | "running" | "waiting" | undefined;
725
- title?: string | undefined;
726
- detail?: string | undefined;
727
- filePath?: string | undefined;
728
- diffAdded?: number | undefined;
729
- diffRemoved?: number | undefined;
730
- subagentType?: string | undefined;
731
- subagentName?: string | undefined;
732
- subagentModel?: string | undefined;
733
- imageBase64?: string | undefined;
734
- imageMimeType?: string | undefined;
735
- }>, "many">>;
382
+ }, z.core.$strip>>>;
736
383
  canCancel: z.ZodBoolean;
737
384
  canSend: z.ZodBoolean;
738
- handoff: z.ZodEnum<["none", "can_takeover", "can_release"]>;
385
+ handoff: z.ZodEnum<{
386
+ none: "none";
387
+ can_takeover: "can_takeover";
388
+ can_release: "can_release";
389
+ }>;
739
390
  deepLink: z.ZodString;
740
- }, "strip", z.ZodTypeAny, {
741
- title: string;
742
- agent: string;
743
- id: string;
744
- canCancel: boolean;
745
- phase: "completed" | "failed" | "running" | "waiting_for_approval" | "waiting_for_input" | "starting" | "stale";
746
- updatedAt: number;
747
- handoff: "none" | "can_takeover" | "can_release";
748
- subtitle: string;
749
- project: string;
750
- deepLink: string;
751
- canSend: boolean;
752
- mode?: string | undefined;
753
- model?: string | undefined;
754
- goal?: string | undefined;
755
- cwd?: string | undefined;
756
- branch?: string | undefined;
757
- subagents?: {
758
- running: number;
759
- total: number;
760
- } | undefined;
761
- actions?: {
762
- kind: "answer" | "permission" | "async-answer";
763
- id: string;
764
- role: "stop" | "choice" | "reject" | "allow" | "always";
765
- requestId: string;
766
- optionId: string;
767
- label: string;
768
- sessionId: string;
769
- computerKey: string;
770
- questionId?: string | undefined;
771
- }[] | undefined;
772
- hasMoreActions?: boolean | undefined;
773
- configOptions?: {
774
- values: {
775
- value: string;
776
- name: string;
777
- description?: string | undefined;
778
- }[];
779
- name: string;
780
- id: string;
781
- category: "mode" | "model" | "model_config" | "effort" | "other";
782
- current: string;
783
- currentLabel?: string | undefined;
784
- }[] | undefined;
785
- pinned?: boolean | undefined;
786
- promptTitle?: string | undefined;
787
- commandPreview?: string | undefined;
788
- detailPreview?: string | undefined;
789
- planProgress?: {
790
- completed: number;
791
- total: number;
792
- currentStep?: string | undefined;
793
- } | undefined;
794
- hasEarlier?: boolean | undefined;
795
- items?: {
796
- text: string;
797
- kind: "user" | "assistant" | "image" | "diff" | "tool" | "subagent" | "question" | "error" | "thought" | "plan" | "permission";
798
- id: string;
799
- status?: "completed" | "failed" | "running" | "waiting" | undefined;
800
- title?: string | undefined;
801
- detail?: string | undefined;
802
- filePath?: string | undefined;
803
- diffAdded?: number | undefined;
804
- diffRemoved?: number | undefined;
805
- subagentType?: string | undefined;
806
- subagentName?: string | undefined;
807
- subagentModel?: string | undefined;
808
- imageBase64?: string | undefined;
809
- imageMimeType?: string | undefined;
810
- }[] | undefined;
811
- }, {
812
- title: string;
813
- agent: string;
814
- id: string;
815
- canCancel: boolean;
816
- phase: "completed" | "failed" | "running" | "waiting_for_approval" | "waiting_for_input" | "starting" | "stale";
817
- updatedAt: number;
818
- handoff: "none" | "can_takeover" | "can_release";
819
- subtitle: string;
820
- project: string;
821
- deepLink: string;
822
- canSend: boolean;
823
- mode?: string | undefined;
824
- model?: string | undefined;
825
- goal?: string | undefined;
826
- cwd?: string | undefined;
827
- branch?: string | undefined;
828
- subagents?: {
829
- running: number;
830
- total: number;
831
- } | undefined;
832
- actions?: {
833
- kind: "answer" | "permission" | "async-answer";
834
- id: string;
835
- role: "stop" | "choice" | "reject" | "allow" | "always";
836
- requestId: string;
837
- optionId: string;
838
- label: string;
839
- sessionId: string;
840
- computerKey: string;
841
- questionId?: string | undefined;
842
- }[] | undefined;
843
- hasMoreActions?: boolean | undefined;
844
- configOptions?: {
845
- values: {
846
- value: string;
847
- name: string;
848
- description?: string | undefined;
849
- }[];
850
- name: string;
851
- id: string;
852
- current: string;
853
- category?: "mode" | "model" | "model_config" | "effort" | "other" | undefined;
854
- currentLabel?: string | undefined;
855
- }[] | undefined;
856
- pinned?: boolean | undefined;
857
- promptTitle?: string | undefined;
858
- commandPreview?: string | undefined;
859
- detailPreview?: string | undefined;
860
- planProgress?: {
861
- completed: number;
862
- total: number;
863
- currentStep?: string | undefined;
864
- } | undefined;
865
- hasEarlier?: boolean | undefined;
866
- items?: {
867
- text: string;
868
- kind: "user" | "assistant" | "image" | "diff" | "tool" | "subagent" | "question" | "error" | "thought" | "plan" | "permission";
869
- id: string;
870
- status?: "completed" | "failed" | "running" | "waiting" | undefined;
871
- title?: string | undefined;
872
- detail?: string | undefined;
873
- filePath?: string | undefined;
874
- diffAdded?: number | undefined;
875
- diffRemoved?: number | undefined;
876
- subagentType?: string | undefined;
877
- subagentName?: string | undefined;
878
- subagentModel?: string | undefined;
879
- imageBase64?: string | undefined;
880
- imageMimeType?: string | undefined;
881
- }[] | undefined;
882
- }>, "many">;
391
+ }, z.core.$strip>>;
883
392
  terminals: z.ZodArray<z.ZodObject<{
884
393
  id: z.ZodString;
885
394
  title: z.ZodString;
@@ -888,254 +397,17 @@ export declare const watchSnapshotSchema: z.ZodObject<{
888
397
  cwd: z.ZodOptional<z.ZodString>;
889
398
  command: z.ZodOptional<z.ZodString>;
890
399
  outputPreview: z.ZodOptional<z.ZodString>;
891
- phase: z.ZodEnum<["running", "failed", "completed", "stale"]>;
400
+ phase: z.ZodEnum<{
401
+ completed: "completed";
402
+ failed: "failed";
403
+ running: "running";
404
+ stale: "stale";
405
+ }>;
892
406
  activeAt: z.ZodNumber;
893
407
  exitCode: z.ZodOptional<z.ZodNumber>;
894
408
  deepLink: z.ZodString;
895
- }, "strip", z.ZodTypeAny, {
896
- title: string;
897
- id: string;
898
- phase: "completed" | "failed" | "running" | "stale";
899
- activeAt: number;
900
- subtitle: string;
901
- project: string;
902
- deepLink: string;
903
- command?: string | undefined;
904
- exitCode?: number | undefined;
905
- cwd?: string | undefined;
906
- outputPreview?: string | undefined;
907
- }, {
908
- title: string;
909
- id: string;
910
- phase: "completed" | "failed" | "running" | "stale";
911
- activeAt: number;
912
- subtitle: string;
913
- project: string;
914
- deepLink: string;
915
- command?: string | undefined;
916
- exitCode?: number | undefined;
917
- cwd?: string | undefined;
918
- outputPreview?: string | undefined;
919
- }>, "many">;
920
- }, "strip", z.ZodTypeAny, {
921
- version: 1;
922
- sessions: {
923
- title: string;
924
- agent: string;
925
- id: string;
926
- canCancel: boolean;
927
- phase: "completed" | "failed" | "running" | "waiting_for_approval" | "waiting_for_input" | "starting" | "stale";
928
- updatedAt: number;
929
- handoff: "none" | "can_takeover" | "can_release";
930
- subtitle: string;
931
- project: string;
932
- deepLink: string;
933
- canSend: boolean;
934
- mode?: string | undefined;
935
- model?: string | undefined;
936
- goal?: string | undefined;
937
- cwd?: string | undefined;
938
- branch?: string | undefined;
939
- subagents?: {
940
- running: number;
941
- total: number;
942
- } | undefined;
943
- actions?: {
944
- kind: "answer" | "permission" | "async-answer";
945
- id: string;
946
- role: "stop" | "choice" | "reject" | "allow" | "always";
947
- requestId: string;
948
- optionId: string;
949
- label: string;
950
- sessionId: string;
951
- computerKey: string;
952
- questionId?: string | undefined;
953
- }[] | undefined;
954
- hasMoreActions?: boolean | undefined;
955
- configOptions?: {
956
- values: {
957
- value: string;
958
- name: string;
959
- description?: string | undefined;
960
- }[];
961
- name: string;
962
- id: string;
963
- category: "mode" | "model" | "model_config" | "effort" | "other";
964
- current: string;
965
- currentLabel?: string | undefined;
966
- }[] | undefined;
967
- pinned?: boolean | undefined;
968
- promptTitle?: string | undefined;
969
- commandPreview?: string | undefined;
970
- detailPreview?: string | undefined;
971
- planProgress?: {
972
- completed: number;
973
- total: number;
974
- currentStep?: string | undefined;
975
- } | undefined;
976
- hasEarlier?: boolean | undefined;
977
- items?: {
978
- text: string;
979
- kind: "user" | "assistant" | "image" | "diff" | "tool" | "subagent" | "question" | "error" | "thought" | "plan" | "permission";
980
- id: string;
981
- status?: "completed" | "failed" | "running" | "waiting" | undefined;
982
- title?: string | undefined;
983
- detail?: string | undefined;
984
- filePath?: string | undefined;
985
- diffAdded?: number | undefined;
986
- diffRemoved?: number | undefined;
987
- subagentType?: string | undefined;
988
- subagentName?: string | undefined;
989
- subagentModel?: string | undefined;
990
- imageBase64?: string | undefined;
991
- imageMimeType?: string | undefined;
992
- }[] | undefined;
993
- }[];
994
- online: boolean;
995
- generatedAt: number;
996
- computerKey: string;
997
- waitingCount: number;
998
- runningCount: number;
999
- failedCount: number;
1000
- computerName: string;
1001
- terminals: {
1002
- title: string;
1003
- id: string;
1004
- phase: "completed" | "failed" | "running" | "stale";
1005
- activeAt: number;
1006
- subtitle: string;
1007
- project: string;
1008
- deepLink: string;
1009
- command?: string | undefined;
1010
- exitCode?: number | undefined;
1011
- cwd?: string | undefined;
1012
- outputPreview?: string | undefined;
1013
- }[];
1014
- statusLabel: string;
1015
- completedCount: number;
1016
- computers: {
1017
- name: string;
1018
- online: boolean;
1019
- key: string;
1020
- selected: boolean;
1021
- platform?: "unknown" | "darwin" | "win32" | "linux" | undefined;
1022
- }[];
1023
- focusedSessionId?: string | undefined;
1024
- availableAgents?: string[] | undefined;
1025
- workspaces?: {
1026
- path: string;
1027
- name: string;
1028
- }[] | undefined;
1029
- }, {
1030
- version: 1;
1031
- sessions: {
1032
- title: string;
1033
- agent: string;
1034
- id: string;
1035
- canCancel: boolean;
1036
- phase: "completed" | "failed" | "running" | "waiting_for_approval" | "waiting_for_input" | "starting" | "stale";
1037
- updatedAt: number;
1038
- handoff: "none" | "can_takeover" | "can_release";
1039
- subtitle: string;
1040
- project: string;
1041
- deepLink: string;
1042
- canSend: boolean;
1043
- mode?: string | undefined;
1044
- model?: string | undefined;
1045
- goal?: string | undefined;
1046
- cwd?: string | undefined;
1047
- branch?: string | undefined;
1048
- subagents?: {
1049
- running: number;
1050
- total: number;
1051
- } | undefined;
1052
- actions?: {
1053
- kind: "answer" | "permission" | "async-answer";
1054
- id: string;
1055
- role: "stop" | "choice" | "reject" | "allow" | "always";
1056
- requestId: string;
1057
- optionId: string;
1058
- label: string;
1059
- sessionId: string;
1060
- computerKey: string;
1061
- questionId?: string | undefined;
1062
- }[] | undefined;
1063
- hasMoreActions?: boolean | undefined;
1064
- configOptions?: {
1065
- values: {
1066
- value: string;
1067
- name: string;
1068
- description?: string | undefined;
1069
- }[];
1070
- name: string;
1071
- id: string;
1072
- current: string;
1073
- category?: "mode" | "model" | "model_config" | "effort" | "other" | undefined;
1074
- currentLabel?: string | undefined;
1075
- }[] | undefined;
1076
- pinned?: boolean | undefined;
1077
- promptTitle?: string | undefined;
1078
- commandPreview?: string | undefined;
1079
- detailPreview?: string | undefined;
1080
- planProgress?: {
1081
- completed: number;
1082
- total: number;
1083
- currentStep?: string | undefined;
1084
- } | undefined;
1085
- hasEarlier?: boolean | undefined;
1086
- items?: {
1087
- text: string;
1088
- kind: "user" | "assistant" | "image" | "diff" | "tool" | "subagent" | "question" | "error" | "thought" | "plan" | "permission";
1089
- id: string;
1090
- status?: "completed" | "failed" | "running" | "waiting" | undefined;
1091
- title?: string | undefined;
1092
- detail?: string | undefined;
1093
- filePath?: string | undefined;
1094
- diffAdded?: number | undefined;
1095
- diffRemoved?: number | undefined;
1096
- subagentType?: string | undefined;
1097
- subagentName?: string | undefined;
1098
- subagentModel?: string | undefined;
1099
- imageBase64?: string | undefined;
1100
- imageMimeType?: string | undefined;
1101
- }[] | undefined;
1102
- }[];
1103
- online: boolean;
1104
- generatedAt: number;
1105
- computerKey: string;
1106
- waitingCount: number;
1107
- runningCount: number;
1108
- failedCount: number;
1109
- computerName: string;
1110
- terminals: {
1111
- title: string;
1112
- id: string;
1113
- phase: "completed" | "failed" | "running" | "stale";
1114
- activeAt: number;
1115
- subtitle: string;
1116
- project: string;
1117
- deepLink: string;
1118
- command?: string | undefined;
1119
- exitCode?: number | undefined;
1120
- cwd?: string | undefined;
1121
- outputPreview?: string | undefined;
1122
- }[];
1123
- statusLabel: string;
1124
- completedCount: number;
1125
- computers: {
1126
- name: string;
1127
- online: boolean;
1128
- key: string;
1129
- selected: boolean;
1130
- platform?: "unknown" | "darwin" | "win32" | "linux" | undefined;
1131
- }[];
1132
- focusedSessionId?: string | undefined;
1133
- availableAgents?: string[] | undefined;
1134
- workspaces?: {
1135
- path: string;
1136
- name: string;
1137
- }[] | undefined;
1138
- }>;
409
+ }, z.core.$strip>>;
410
+ }, z.core.$strip>;
1139
411
  export type WatchSnapshot = z.infer<typeof watchSnapshotSchema>;
1140
412
  export declare const WATCH_PROMPT_MAX = 8000;
1141
413
  /**
@@ -1148,297 +420,107 @@ export declare const WATCH_SESSION_LIMIT = 10;
1148
420
  export declare const WATCH_TERMINAL_LIMIT = 6;
1149
421
  export declare const WATCH_FOCUSED_ITEMS = 40;
1150
422
  export declare const WATCH_MAX_ITEMS = 60;
1151
- export declare const watchCommandSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
423
+ export declare const watchCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1152
424
  id: z.ZodString;
1153
425
  kind: z.ZodLiteral<"action">;
1154
426
  action: z.ZodObject<{
1155
427
  id: z.ZodString;
1156
428
  label: z.ZodString;
1157
- role: z.ZodEnum<["allow", "reject", "always", "stop", "choice"]>;
1158
- kind: z.ZodEnum<["permission", "answer", "async-answer"]>;
429
+ role: z.ZodEnum<{
430
+ stop: "stop";
431
+ choice: "choice";
432
+ reject: "reject";
433
+ allow: "allow";
434
+ always: "always";
435
+ }>;
436
+ kind: z.ZodEnum<{
437
+ answer: "answer";
438
+ permission: "permission";
439
+ "async-answer": "async-answer";
440
+ }>;
1159
441
  computerKey: z.ZodString;
1160
442
  sessionId: z.ZodString;
1161
443
  requestId: z.ZodString;
1162
444
  optionId: z.ZodString;
1163
445
  questionId: z.ZodOptional<z.ZodString>;
1164
- }, "strip", z.ZodTypeAny, {
1165
- kind: "answer" | "permission" | "async-answer";
1166
- id: string;
1167
- role: "stop" | "choice" | "reject" | "allow" | "always";
1168
- requestId: string;
1169
- optionId: string;
1170
- label: string;
1171
- sessionId: string;
1172
- computerKey: string;
1173
- questionId?: string | undefined;
1174
- }, {
1175
- kind: "answer" | "permission" | "async-answer";
1176
- id: string;
1177
- role: "stop" | "choice" | "reject" | "allow" | "always";
1178
- requestId: string;
1179
- optionId: string;
1180
- label: string;
1181
- sessionId: string;
1182
- computerKey: string;
1183
- questionId?: string | undefined;
1184
- }>;
1185
- }, "strip", z.ZodTypeAny, {
1186
- action: {
1187
- kind: "answer" | "permission" | "async-answer";
1188
- id: string;
1189
- role: "stop" | "choice" | "reject" | "allow" | "always";
1190
- requestId: string;
1191
- optionId: string;
1192
- label: string;
1193
- sessionId: string;
1194
- computerKey: string;
1195
- questionId?: string | undefined;
1196
- };
1197
- kind: "action";
1198
- id: string;
1199
- }, {
1200
- action: {
1201
- kind: "answer" | "permission" | "async-answer";
1202
- id: string;
1203
- role: "stop" | "choice" | "reject" | "allow" | "always";
1204
- requestId: string;
1205
- optionId: string;
1206
- label: string;
1207
- sessionId: string;
1208
- computerKey: string;
1209
- questionId?: string | undefined;
1210
- };
1211
- kind: "action";
1212
- id: string;
1213
- }>, z.ZodObject<{
446
+ }, z.core.$strip>;
447
+ }, z.core.$strip>, z.ZodObject<{
1214
448
  id: z.ZodString;
1215
449
  kind: z.ZodLiteral<"prompt">;
1216
450
  computerKey: z.ZodString;
1217
451
  sessionId: z.ZodString;
1218
452
  text: z.ZodString;
1219
453
  now: z.ZodOptional<z.ZodBoolean>;
1220
- }, "strip", z.ZodTypeAny, {
1221
- text: string;
1222
- kind: "prompt";
1223
- id: string;
1224
- sessionId: string;
1225
- computerKey: string;
1226
- now?: boolean | undefined;
1227
- }, {
1228
- text: string;
1229
- kind: "prompt";
1230
- id: string;
1231
- sessionId: string;
1232
- computerKey: string;
1233
- now?: boolean | undefined;
1234
- }>, z.ZodObject<{
454
+ }, z.core.$strip>, z.ZodObject<{
1235
455
  id: z.ZodString;
1236
456
  kind: z.ZodLiteral<"cancel">;
1237
457
  computerKey: z.ZodString;
1238
458
  sessionId: z.ZodString;
1239
- }, "strip", z.ZodTypeAny, {
1240
- kind: "cancel";
1241
- id: string;
1242
- sessionId: string;
1243
- computerKey: string;
1244
- }, {
1245
- kind: "cancel";
1246
- id: string;
1247
- sessionId: string;
1248
- computerKey: string;
1249
- }>, z.ZodObject<{
459
+ }, z.core.$strip>, z.ZodObject<{
1250
460
  id: z.ZodString;
1251
461
  kind: z.ZodLiteral<"takeover">;
1252
462
  computerKey: z.ZodString;
1253
463
  sessionId: z.ZodString;
1254
- }, "strip", z.ZodTypeAny, {
1255
- kind: "takeover";
1256
- id: string;
1257
- sessionId: string;
1258
- computerKey: string;
1259
- }, {
1260
- kind: "takeover";
1261
- id: string;
1262
- sessionId: string;
1263
- computerKey: string;
1264
- }>, z.ZodObject<{
464
+ }, z.core.$strip>, z.ZodObject<{
1265
465
  id: z.ZodString;
1266
466
  kind: z.ZodLiteral<"release">;
1267
467
  computerKey: z.ZodString;
1268
468
  sessionId: z.ZodString;
1269
- }, "strip", z.ZodTypeAny, {
1270
- kind: "release";
1271
- id: string;
1272
- sessionId: string;
1273
- computerKey: string;
1274
- }, {
1275
- kind: "release";
1276
- id: string;
1277
- sessionId: string;
1278
- computerKey: string;
1279
- }>, z.ZodObject<{
469
+ }, z.core.$strip>, z.ZodObject<{
1280
470
  id: z.ZodString;
1281
471
  kind: z.ZodLiteral<"set-config">;
1282
472
  computerKey: z.ZodString;
1283
473
  sessionId: z.ZodString;
1284
474
  optionId: z.ZodString;
1285
475
  value: z.ZodString;
1286
- }, "strip", z.ZodTypeAny, {
1287
- value: string;
1288
- kind: "set-config";
1289
- id: string;
1290
- optionId: string;
1291
- sessionId: string;
1292
- computerKey: string;
1293
- }, {
1294
- value: string;
1295
- kind: "set-config";
1296
- id: string;
1297
- optionId: string;
1298
- sessionId: string;
1299
- computerKey: string;
1300
- }>, z.ZodObject<{
476
+ }, z.core.$strip>, z.ZodObject<{
1301
477
  id: z.ZodString;
1302
478
  kind: z.ZodLiteral<"open-session">;
1303
479
  computerKey: z.ZodString;
1304
480
  sessionId: z.ZodString;
1305
- }, "strip", z.ZodTypeAny, {
1306
- kind: "open-session";
1307
- id: string;
1308
- sessionId: string;
1309
- computerKey: string;
1310
- }, {
1311
- kind: "open-session";
1312
- id: string;
1313
- sessionId: string;
1314
- computerKey: string;
1315
- }>, z.ZodObject<{
481
+ }, z.core.$strip>, z.ZodObject<{
1316
482
  id: z.ZodString;
1317
483
  kind: z.ZodLiteral<"load-earlier">;
1318
484
  computerKey: z.ZodString;
1319
485
  sessionId: z.ZodString;
1320
- }, "strip", z.ZodTypeAny, {
1321
- kind: "load-earlier";
1322
- id: string;
1323
- sessionId: string;
1324
- computerKey: string;
1325
- }, {
1326
- kind: "load-earlier";
1327
- id: string;
1328
- sessionId: string;
1329
- computerKey: string;
1330
- }>, z.ZodObject<{
486
+ }, z.core.$strip>, z.ZodObject<{
1331
487
  id: z.ZodString;
1332
488
  kind: z.ZodLiteral<"create-session">;
1333
489
  computerKey: z.ZodString;
1334
490
  agent: z.ZodString;
1335
491
  cwd: z.ZodString;
1336
492
  prompt: z.ZodOptional<z.ZodString>;
1337
- }, "strip", z.ZodTypeAny, {
1338
- agent: string;
1339
- kind: "create-session";
1340
- id: string;
1341
- cwd: string;
1342
- computerKey: string;
1343
- prompt?: string | undefined;
1344
- }, {
1345
- agent: string;
1346
- kind: "create-session";
1347
- id: string;
1348
- cwd: string;
1349
- computerKey: string;
1350
- prompt?: string | undefined;
1351
- }>, z.ZodObject<{
493
+ }, z.core.$strip>, z.ZodObject<{
1352
494
  id: z.ZodString;
1353
495
  kind: z.ZodLiteral<"create-terminal">;
1354
496
  computerKey: z.ZodString;
1355
497
  cwd: z.ZodOptional<z.ZodString>;
1356
498
  command: z.ZodOptional<z.ZodString>;
1357
- }, "strip", z.ZodTypeAny, {
1358
- kind: "create-terminal";
1359
- id: string;
1360
- computerKey: string;
1361
- command?: string | undefined;
1362
- cwd?: string | undefined;
1363
- }, {
1364
- kind: "create-terminal";
1365
- id: string;
1366
- computerKey: string;
1367
- command?: string | undefined;
1368
- cwd?: string | undefined;
1369
- }>, z.ZodObject<{
499
+ }, z.core.$strip>, z.ZodObject<{
1370
500
  id: z.ZodString;
1371
501
  kind: z.ZodLiteral<"open-terminal">;
1372
502
  computerKey: z.ZodString;
1373
503
  terminalId: z.ZodString;
1374
- }, "strip", z.ZodTypeAny, {
1375
- kind: "open-terminal";
1376
- terminalId: string;
1377
- id: string;
1378
- computerKey: string;
1379
- }, {
1380
- kind: "open-terminal";
1381
- terminalId: string;
1382
- id: string;
1383
- computerKey: string;
1384
- }>, z.ZodObject<{
504
+ }, z.core.$strip>, z.ZodObject<{
1385
505
  id: z.ZodString;
1386
506
  kind: z.ZodLiteral<"terminal-input">;
1387
507
  computerKey: z.ZodString;
1388
508
  terminalId: z.ZodString;
1389
509
  data: z.ZodString;
1390
- }, "strip", z.ZodTypeAny, {
1391
- data: string;
1392
- kind: "terminal-input";
1393
- terminalId: string;
1394
- id: string;
1395
- computerKey: string;
1396
- }, {
1397
- data: string;
1398
- kind: "terminal-input";
1399
- terminalId: string;
1400
- id: string;
1401
- computerKey: string;
1402
- }>, z.ZodObject<{
510
+ }, z.core.$strip>, z.ZodObject<{
1403
511
  id: z.ZodString;
1404
512
  kind: z.ZodLiteral<"close-terminal">;
1405
513
  computerKey: z.ZodString;
1406
514
  terminalId: z.ZodString;
1407
- }, "strip", z.ZodTypeAny, {
1408
- kind: "close-terminal";
1409
- terminalId: string;
1410
- id: string;
1411
- computerKey: string;
1412
- }, {
1413
- kind: "close-terminal";
1414
- terminalId: string;
1415
- id: string;
1416
- computerKey: string;
1417
- }>, z.ZodObject<{
515
+ }, z.core.$strip>, z.ZodObject<{
1418
516
  id: z.ZodString;
1419
517
  kind: z.ZodLiteral<"select-computer">;
1420
518
  computerKey: z.ZodString;
1421
- }, "strip", z.ZodTypeAny, {
1422
- kind: "select-computer";
1423
- id: string;
1424
- computerKey: string;
1425
- }, {
1426
- kind: "select-computer";
1427
- id: string;
1428
- computerKey: string;
1429
- }>, z.ZodObject<{
519
+ }, z.core.$strip>, z.ZodObject<{
1430
520
  id: z.ZodString;
1431
521
  kind: z.ZodLiteral<"refresh">;
1432
522
  computerKey: z.ZodOptional<z.ZodString>;
1433
- }, "strip", z.ZodTypeAny, {
1434
- kind: "refresh";
1435
- id: string;
1436
- computerKey?: string | undefined;
1437
- }, {
1438
- kind: "refresh";
1439
- id: string;
1440
- computerKey?: string | undefined;
1441
- }>]>;
523
+ }, z.core.$strip>], "kind">;
1442
524
  export type WatchCommand = z.infer<typeof watchCommandSchema>;
1443
525
  export interface WatchQuickPrompt {
1444
526
  id: string;