@linkshell/gateway 0.2.46 → 0.2.48

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 (39) hide show
  1. package/dist/gateway/src/agent-permission-http.d.ts +18 -9
  2. package/dist/gateway/src/agent-permission-http.js +18 -10
  3. package/dist/gateway/src/agent-permission-http.js.map +1 -1
  4. package/dist/gateway/src/embedded.js +119 -55
  5. package/dist/gateway/src/embedded.js.map +1 -1
  6. package/dist/gateway/src/index.js +158 -91
  7. package/dist/gateway/src/index.js.map +1 -1
  8. package/dist/gateway/src/pairings.d.ts +3 -3
  9. package/dist/gateway/src/pairings.js +4 -5
  10. package/dist/gateway/src/pairings.js.map +1 -1
  11. package/dist/gateway/src/relay.d.ts +1 -1
  12. package/dist/gateway/src/relay.js +25 -18
  13. package/dist/gateway/src/relay.js.map +1 -1
  14. package/dist/gateway/src/sessions.d.ts +35 -28
  15. package/dist/gateway/src/sessions.js +165 -145
  16. package/dist/gateway/src/sessions.js.map +1 -1
  17. package/dist/gateway/src/state-store.d.ts +9 -6
  18. package/dist/gateway/src/state-store.js +26 -19
  19. package/dist/gateway/src/state-store.js.map +1 -1
  20. package/dist/gateway/src/tokens.d.ts +27 -7
  21. package/dist/gateway/src/tokens.js +86 -60
  22. package/dist/gateway/src/tokens.js.map +1 -1
  23. package/dist/gateway/src/tunnel.d.ts +11 -10
  24. package/dist/gateway/src/tunnel.js +46 -35
  25. package/dist/gateway/src/tunnel.js.map +1 -1
  26. package/dist/gateway/tsconfig.tsbuildinfo +1 -1
  27. package/dist/shared-protocol/src/index.d.ts +662 -494
  28. package/dist/shared-protocol/src/index.js +52 -15
  29. package/dist/shared-protocol/src/index.js.map +1 -1
  30. package/package.json +2 -2
  31. package/src/agent-permission-http.ts +18 -10
  32. package/src/embedded.ts +122 -54
  33. package/src/index.ts +162 -91
  34. package/src/pairings.ts +6 -7
  35. package/src/relay.ts +28 -20
  36. package/src/sessions.ts +179 -150
  37. package/src/state-store.ts +41 -25
  38. package/src/tokens.ts +109 -63
  39. package/src/tunnel.ts +57 -39
@@ -1,17 +1,18 @@
1
1
  import { z } from "zod";
2
- export declare const PROTOCOL_VERSION = 1;
2
+ export declare const PROTOCOL_VERSION = 2;
3
3
  export declare const deviceRoleSchema: z.ZodEnum<["host", "client"]>;
4
4
  export type DeviceRole = z.infer<typeof deviceRoleSchema>;
5
5
  export declare const sessionStateSchema: z.ZodEnum<["pending_pairing", "connecting", "active", "reconnecting", "idle", "terminated"]>;
6
6
  export type SessionState = z.infer<typeof sessionStateSchema>;
7
7
  export declare const terminalProviderSchema: z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>;
8
8
  export type TerminalProvider = z.infer<typeof terminalProviderSchema>;
9
- export declare const errorCodeSchema: z.ZodEnum<["session_not_found", "pairing_expired", "pairing_not_found", "control_conflict", "session_terminated", "ack_out_of_range", "invalid_message", "unauthorized"]>;
9
+ export declare const errorCodeSchema: z.ZodEnum<["device_not_found", "session_not_found", "pairing_expired", "pairing_not_found", "control_conflict", "device_terminated", "session_terminated", "ack_out_of_range", "invalid_message", "unauthorized"]>;
10
10
  export type ErrorCode = z.infer<typeof errorCodeSchema>;
11
11
  export declare const envelopeSchema: z.ZodObject<{
12
12
  id: z.ZodString;
13
13
  type: z.ZodString;
14
- sessionId: z.ZodString;
14
+ hostDeviceId: z.ZodString;
15
+ sessionId: z.ZodOptional<z.ZodString>;
15
16
  terminalId: z.ZodOptional<z.ZodString>;
16
17
  deviceId: z.ZodOptional<z.ZodString>;
17
18
  timestamp: z.ZodString;
@@ -21,9 +22,10 @@ export declare const envelopeSchema: z.ZodObject<{
21
22
  payload: z.ZodUnknown;
22
23
  }, "strip", z.ZodTypeAny, {
23
24
  type: string;
24
- sessionId: string;
25
+ hostDeviceId: string;
25
26
  timestamp: string;
26
27
  id: string;
28
+ sessionId?: string | undefined;
27
29
  terminalId?: string | undefined;
28
30
  ack?: number | undefined;
29
31
  seq?: number | undefined;
@@ -32,9 +34,10 @@ export declare const envelopeSchema: z.ZodObject<{
32
34
  payload?: unknown;
33
35
  }, {
34
36
  type: string;
35
- sessionId: string;
37
+ hostDeviceId: string;
36
38
  timestamp: string;
37
39
  id: string;
40
+ sessionId?: string | undefined;
38
41
  terminalId?: string | undefined;
39
42
  ack?: number | undefined;
40
43
  seq?: number | undefined;
@@ -42,7 +45,9 @@ export declare const envelopeSchema: z.ZodObject<{
42
45
  traceId?: string | undefined;
43
46
  payload?: unknown;
44
47
  }>;
45
- export type Envelope = z.infer<typeof envelopeSchema>;
48
+ export type Envelope = z.infer<typeof envelopeSchema> & {
49
+ sessionId: string;
50
+ };
46
51
  export declare const terminalOutputPayloadSchema: z.ZodObject<{
47
52
  stream: z.ZodEnum<["stdout", "stderr"]>;
48
53
  data: z.ZodString;
@@ -82,33 +87,30 @@ export declare const terminalResizePayloadSchema: z.ZodObject<{
82
87
  export declare const sessionConnectPayloadSchema: z.ZodObject<{
83
88
  role: z.ZodEnum<["host", "client"]>;
84
89
  clientName: z.ZodString;
85
- provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
86
90
  protocolVersion: z.ZodOptional<z.ZodNumber>;
87
91
  machineId: z.ZodOptional<z.ZodString>;
88
92
  hostname: z.ZodOptional<z.ZodString>;
89
93
  platform: z.ZodOptional<z.ZodString>;
90
94
  cwd: z.ZodOptional<z.ZodString>;
91
- projectName: z.ZodOptional<z.ZodString>;
95
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
92
96
  }, "strip", z.ZodTypeAny, {
93
97
  role: "host" | "client";
94
98
  clientName: string;
95
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
96
99
  protocolVersion?: number | undefined;
97
100
  machineId?: string | undefined;
98
101
  hostname?: string | undefined;
99
102
  platform?: string | undefined;
100
103
  cwd?: string | undefined;
101
- projectName?: string | undefined;
104
+ capabilities?: string[] | undefined;
102
105
  }, {
103
106
  role: "host" | "client";
104
107
  clientName: string;
105
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
106
108
  protocolVersion?: number | undefined;
107
109
  machineId?: string | undefined;
108
110
  hostname?: string | undefined;
109
111
  platform?: string | undefined;
110
112
  cwd?: string | undefined;
111
- projectName?: string | undefined;
113
+ capabilities?: string[] | undefined;
112
114
  }>;
113
115
  export declare const terminalExitPayloadSchema: z.ZodObject<{
114
116
  exitCode: z.ZodNullable<z.ZodNumber>;
@@ -149,14 +151,14 @@ export declare const sessionHeartbeatPayloadSchema: z.ZodObject<{
149
151
  }>;
150
152
  export declare const pairingCreatedPayloadSchema: z.ZodObject<{
151
153
  pairingCode: z.ZodString;
152
- sessionId: z.ZodString;
154
+ hostDeviceId: z.ZodString;
153
155
  expiresAt: z.ZodString;
154
156
  }, "strip", z.ZodTypeAny, {
155
- sessionId: string;
157
+ hostDeviceId: string;
156
158
  pairingCode: string;
157
159
  expiresAt: string;
158
160
  }, {
159
- sessionId: string;
161
+ hostDeviceId: string;
160
162
  pairingCode: string;
161
163
  expiresAt: string;
162
164
  }>;
@@ -168,11 +170,11 @@ export declare const sessionClaimPayloadSchema: z.ZodObject<{
168
170
  pairingCode: string;
169
171
  }>;
170
172
  export declare const sessionClaimedPayloadSchema: z.ZodObject<{
171
- sessionId: z.ZodString;
173
+ hostDeviceId: z.ZodString;
172
174
  }, "strip", z.ZodTypeAny, {
173
- sessionId: string;
175
+ hostDeviceId: string;
174
176
  }, {
175
- sessionId: string;
177
+ hostDeviceId: string;
176
178
  }>;
177
179
  export declare const controlClaimPayloadSchema: z.ZodObject<{
178
180
  deviceId: z.ZodString;
@@ -192,11 +194,11 @@ export declare const controlRejectPayloadSchema: z.ZodObject<{
192
194
  deviceId: z.ZodString;
193
195
  reason: z.ZodString;
194
196
  }, "strip", z.ZodTypeAny, {
195
- deviceId: string;
196
197
  reason: string;
197
- }, {
198
198
  deviceId: string;
199
+ }, {
199
200
  reason: string;
201
+ deviceId: string;
200
202
  }>;
201
203
  export declare const controlReleasePayloadSchema: z.ZodObject<{
202
204
  deviceId: z.ZodString;
@@ -290,86 +292,72 @@ export declare const screenIcePayloadSchema: z.ZodObject<{
290
292
  sdpMLineIndex?: number | null | undefined;
291
293
  }>;
292
294
  export declare const terminalSpawnPayloadSchema: z.ZodObject<{
293
- cwd: z.ZodString;
294
- provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
295
+ cwd: z.ZodOptional<z.ZodString>;
295
296
  }, "strip", z.ZodTypeAny, {
296
- cwd: string;
297
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
297
+ cwd?: string | undefined;
298
298
  }, {
299
- cwd: string;
300
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
299
+ cwd?: string | undefined;
301
300
  }>;
302
301
  export declare const terminalInfoSchema: z.ZodObject<{
303
302
  terminalId: z.ZodString;
304
303
  cwd: z.ZodString;
305
- projectName: z.ZodString;
306
- provider: z.ZodString;
307
304
  status: z.ZodEnum<["running", "exited"]>;
305
+ shell: z.ZodOptional<z.ZodString>;
308
306
  }, "strip", z.ZodTypeAny, {
309
307
  status: "running" | "exited";
310
308
  terminalId: string;
311
- provider: string;
312
309
  cwd: string;
313
- projectName: string;
310
+ shell?: string | undefined;
314
311
  }, {
315
312
  status: "running" | "exited";
316
313
  terminalId: string;
317
- provider: string;
318
314
  cwd: string;
319
- projectName: string;
315
+ shell?: string | undefined;
320
316
  }>;
321
317
  export declare const terminalListPayloadSchema: z.ZodObject<{
322
318
  terminals: z.ZodArray<z.ZodObject<{
323
319
  terminalId: z.ZodString;
324
320
  cwd: z.ZodString;
325
- projectName: z.ZodString;
326
- provider: z.ZodString;
327
321
  status: z.ZodEnum<["running", "exited"]>;
322
+ shell: z.ZodOptional<z.ZodString>;
328
323
  }, "strip", z.ZodTypeAny, {
329
324
  status: "running" | "exited";
330
325
  terminalId: string;
331
- provider: string;
332
326
  cwd: string;
333
- projectName: string;
327
+ shell?: string | undefined;
334
328
  }, {
335
329
  status: "running" | "exited";
336
330
  terminalId: string;
337
- provider: string;
338
331
  cwd: string;
339
- projectName: string;
332
+ shell?: string | undefined;
340
333
  }>, "many">;
341
334
  }, "strip", z.ZodTypeAny, {
342
335
  terminals: {
343
336
  status: "running" | "exited";
344
337
  terminalId: string;
345
- provider: string;
346
338
  cwd: string;
347
- projectName: string;
339
+ shell?: string | undefined;
348
340
  }[];
349
341
  }, {
350
342
  terminals: {
351
343
  status: "running" | "exited";
352
344
  terminalId: string;
353
- provider: string;
354
345
  cwd: string;
355
- projectName: string;
346
+ shell?: string | undefined;
356
347
  }[];
357
348
  }>;
358
349
  export declare const terminalSpawnedPayloadSchema: z.ZodObject<{
359
350
  terminalId: z.ZodString;
360
351
  cwd: z.ZodString;
361
- projectName: z.ZodString;
362
- provider: z.ZodOptional<z.ZodString>;
352
+ shell: z.ZodOptional<z.ZodString>;
363
353
  }, "strip", z.ZodTypeAny, {
364
354
  terminalId: string;
365
355
  cwd: string;
366
- projectName: string;
367
- provider?: string | undefined;
356
+ shell?: string | undefined;
368
357
  }, {
369
358
  terminalId: string;
370
359
  cwd: string;
371
- projectName: string;
372
- provider?: string | undefined;
360
+ shell?: string | undefined;
373
361
  }>;
374
362
  export declare const terminalKillPayloadSchema: z.ZodObject<{
375
363
  terminalId: z.ZodString;
@@ -387,23 +375,35 @@ export declare const terminalMkdirPayloadSchema: z.ZodObject<{
387
375
  }>;
388
376
  export declare const terminalBrowsePayloadSchema: z.ZodObject<{
389
377
  path: z.ZodString;
378
+ includeFiles: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
379
+ requestId: z.ZodOptional<z.ZodString>;
390
380
  }, "strip", z.ZodTypeAny, {
391
381
  path: string;
382
+ includeFiles: boolean;
383
+ requestId?: string | undefined;
392
384
  }, {
393
385
  path: string;
386
+ requestId?: string | undefined;
387
+ includeFiles?: boolean | undefined;
394
388
  }>;
395
389
  export declare const terminalBrowseEntrySchema: z.ZodObject<{
396
390
  name: z.ZodString;
397
391
  path: z.ZodString;
398
392
  isDirectory: z.ZodBoolean;
393
+ size: z.ZodOptional<z.ZodNumber>;
394
+ modifiedAt: z.ZodOptional<z.ZodString>;
399
395
  }, "strip", z.ZodTypeAny, {
400
396
  path: string;
401
397
  name: string;
402
398
  isDirectory: boolean;
399
+ size?: number | undefined;
400
+ modifiedAt?: string | undefined;
403
401
  }, {
404
402
  path: string;
405
403
  name: string;
406
404
  isDirectory: boolean;
405
+ size?: number | undefined;
406
+ modifiedAt?: string | undefined;
407
407
  }>;
408
408
  export declare const terminalBrowseResultPayloadSchema: z.ZodObject<{
409
409
  path: z.ZodString;
@@ -411,23 +411,33 @@ export declare const terminalBrowseResultPayloadSchema: z.ZodObject<{
411
411
  name: z.ZodString;
412
412
  path: z.ZodString;
413
413
  isDirectory: z.ZodBoolean;
414
+ size: z.ZodOptional<z.ZodNumber>;
415
+ modifiedAt: z.ZodOptional<z.ZodString>;
414
416
  }, "strip", z.ZodTypeAny, {
415
417
  path: string;
416
418
  name: string;
417
419
  isDirectory: boolean;
420
+ size?: number | undefined;
421
+ modifiedAt?: string | undefined;
418
422
  }, {
419
423
  path: string;
420
424
  name: string;
421
425
  isDirectory: boolean;
426
+ size?: number | undefined;
427
+ modifiedAt?: string | undefined;
422
428
  }>, "many">;
423
429
  error: z.ZodOptional<z.ZodString>;
430
+ requestId: z.ZodOptional<z.ZodString>;
424
431
  }, "strip", z.ZodTypeAny, {
425
432
  path: string;
426
433
  entries: {
427
434
  path: string;
428
435
  name: string;
429
436
  isDirectory: boolean;
437
+ size?: number | undefined;
438
+ modifiedAt?: string | undefined;
430
439
  }[];
440
+ requestId?: string | undefined;
431
441
  error?: string | undefined;
432
442
  }, {
433
443
  path: string;
@@ -435,8 +445,49 @@ export declare const terminalBrowseResultPayloadSchema: z.ZodObject<{
435
445
  path: string;
436
446
  name: string;
437
447
  isDirectory: boolean;
448
+ size?: number | undefined;
449
+ modifiedAt?: string | undefined;
438
450
  }[];
451
+ requestId?: string | undefined;
452
+ error?: string | undefined;
453
+ }>;
454
+ export declare const terminalFileReadPayloadSchema: z.ZodObject<{
455
+ path: z.ZodString;
456
+ maxBytes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
457
+ requestId: z.ZodOptional<z.ZodString>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ path: string;
460
+ maxBytes: number;
461
+ requestId?: string | undefined;
462
+ }, {
463
+ path: string;
464
+ requestId?: string | undefined;
465
+ maxBytes?: number | undefined;
466
+ }>;
467
+ export declare const terminalFileReadResultPayloadSchema: z.ZodObject<{
468
+ path: z.ZodString;
469
+ content: z.ZodDefault<z.ZodString>;
470
+ encoding: z.ZodDefault<z.ZodLiteral<"utf8">>;
471
+ size: z.ZodOptional<z.ZodNumber>;
472
+ truncated: z.ZodDefault<z.ZodBoolean>;
473
+ error: z.ZodOptional<z.ZodString>;
474
+ requestId: z.ZodOptional<z.ZodString>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ path: string;
477
+ encoding: "utf8";
478
+ content: string;
479
+ truncated: boolean;
480
+ requestId?: string | undefined;
481
+ error?: string | undefined;
482
+ size?: number | undefined;
483
+ }, {
484
+ path: string;
485
+ requestId?: string | undefined;
486
+ encoding?: "utf8" | undefined;
439
487
  error?: string | undefined;
488
+ size?: number | undefined;
489
+ content?: string | undefined;
490
+ truncated?: boolean | undefined;
440
491
  }>;
441
492
  export declare const terminalStatusPayloadSchema: z.ZodObject<{
442
493
  phase: z.ZodEnum<["thinking", "tool_use", "outputting", "waiting", "idle", "error"]>;
@@ -691,14 +742,14 @@ export declare const agentMessageSchema: z.ZodObject<{
691
742
  isStreaming: z.ZodOptional<z.ZodBoolean>;
692
743
  }, "strip", z.ZodTypeAny, {
693
744
  role: "user" | "assistant" | "system";
694
- id: string;
695
745
  content: string;
746
+ id: string;
696
747
  createdAt: number;
697
748
  isStreaming?: boolean | undefined;
698
749
  }, {
699
750
  role: "user" | "assistant" | "system";
700
- id: string;
701
751
  content: string;
752
+ id: string;
702
753
  createdAt: number;
703
754
  isStreaming?: boolean | undefined;
704
755
  }>;
@@ -793,7 +844,7 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
793
844
  title: string;
794
845
  argsMode: "none" | "optional" | "required" | "raw";
795
846
  executionKind: "prompt" | "native" | "local_ui";
796
- provider?: "custom" | "claude" | "codex" | undefined;
847
+ provider?: "custom" | "codex" | "claude" | undefined;
797
848
  description?: string | undefined;
798
849
  category?: string | undefined;
799
850
  requiresIdle?: boolean | undefined;
@@ -803,8 +854,8 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
803
854
  name: string;
804
855
  id: string;
805
856
  title: string;
806
- provider?: "custom" | "claude" | "codex" | undefined;
807
857
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
858
+ provider?: "custom" | "codex" | "claude" | undefined;
808
859
  description?: string | undefined;
809
860
  category?: string | undefined;
810
861
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -868,7 +919,7 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
868
919
  title: string;
869
920
  argsMode: "none" | "optional" | "required" | "raw";
870
921
  executionKind: "prompt" | "native" | "local_ui";
871
- provider?: "custom" | "claude" | "codex" | undefined;
922
+ provider?: "custom" | "codex" | "claude" | undefined;
872
923
  description?: string | undefined;
873
924
  category?: string | undefined;
874
925
  requiresIdle?: boolean | undefined;
@@ -878,8 +929,8 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
878
929
  name: string;
879
930
  id: string;
880
931
  title: string;
881
- provider?: "custom" | "claude" | "codex" | undefined;
882
932
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
933
+ provider?: "custom" | "codex" | "claude" | undefined;
883
934
  description?: string | undefined;
884
935
  category?: string | undefined;
885
936
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -905,7 +956,7 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
905
956
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
906
957
  }, "strip", z.ZodTypeAny, {
907
958
  enabled: boolean;
908
- id: "custom" | "claude" | "codex";
959
+ id: "custom" | "codex" | "claude";
909
960
  label: string;
910
961
  reason?: string | undefined;
911
962
  supportsImages?: boolean | undefined;
@@ -926,7 +977,7 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
926
977
  title: string;
927
978
  argsMode: "none" | "optional" | "required" | "raw";
928
979
  executionKind: "prompt" | "native" | "local_ui";
929
- provider?: "custom" | "claude" | "codex" | undefined;
980
+ provider?: "custom" | "codex" | "claude" | undefined;
930
981
  description?: string | undefined;
931
982
  category?: string | undefined;
932
983
  requiresIdle?: boolean | undefined;
@@ -942,7 +993,7 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
942
993
  features?: Record<string, boolean> | undefined;
943
994
  }, {
944
995
  enabled: boolean;
945
- id: "custom" | "claude" | "codex";
996
+ id: "custom" | "codex" | "claude";
946
997
  label: string;
947
998
  reason?: string | undefined;
948
999
  supportsImages?: boolean | undefined;
@@ -960,8 +1011,8 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
960
1011
  name: string;
961
1012
  id: string;
962
1013
  title: string;
963
- provider?: "custom" | "claude" | "codex" | undefined;
964
1014
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1015
+ provider?: "custom" | "codex" | "claude" | undefined;
965
1016
  description?: string | undefined;
966
1017
  category?: string | undefined;
967
1018
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -1024,7 +1075,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1024
1075
  title: string;
1025
1076
  argsMode: "none" | "optional" | "required" | "raw";
1026
1077
  executionKind: "prompt" | "native" | "local_ui";
1027
- provider?: "custom" | "claude" | "codex" | undefined;
1078
+ provider?: "custom" | "codex" | "claude" | undefined;
1028
1079
  description?: string | undefined;
1029
1080
  category?: string | undefined;
1030
1081
  requiresIdle?: boolean | undefined;
@@ -1034,8 +1085,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1034
1085
  name: string;
1035
1086
  id: string;
1036
1087
  title: string;
1037
- provider?: "custom" | "claude" | "codex" | undefined;
1038
1088
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1089
+ provider?: "custom" | "codex" | "claude" | undefined;
1039
1090
  description?: string | undefined;
1040
1091
  category?: string | undefined;
1041
1092
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -1061,7 +1112,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1061
1112
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1062
1113
  }, "strip", z.ZodTypeAny, {
1063
1114
  enabled: boolean;
1064
- id: "custom" | "claude" | "codex";
1115
+ id: "custom" | "codex" | "claude";
1065
1116
  label: string;
1066
1117
  reason?: string | undefined;
1067
1118
  supportsImages?: boolean | undefined;
@@ -1082,7 +1133,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1082
1133
  title: string;
1083
1134
  argsMode: "none" | "optional" | "required" | "raw";
1084
1135
  executionKind: "prompt" | "native" | "local_ui";
1085
- provider?: "custom" | "claude" | "codex" | undefined;
1136
+ provider?: "custom" | "codex" | "claude" | undefined;
1086
1137
  description?: string | undefined;
1087
1138
  category?: string | undefined;
1088
1139
  requiresIdle?: boolean | undefined;
@@ -1098,7 +1149,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1098
1149
  features?: Record<string, boolean> | undefined;
1099
1150
  }, {
1100
1151
  enabled: boolean;
1101
- id: "custom" | "claude" | "codex";
1152
+ id: "custom" | "codex" | "claude";
1102
1153
  label: string;
1103
1154
  reason?: string | undefined;
1104
1155
  supportsImages?: boolean | undefined;
@@ -1116,8 +1167,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1116
1167
  name: string;
1117
1168
  id: string;
1118
1169
  title: string;
1119
- provider?: "custom" | "claude" | "codex" | undefined;
1120
1170
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1171
+ provider?: "custom" | "codex" | "claude" | undefined;
1121
1172
  description?: string | undefined;
1122
1173
  category?: string | undefined;
1123
1174
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -1152,13 +1203,13 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1152
1203
  supportsSessionList: boolean;
1153
1204
  supportsSessionLoad: boolean;
1154
1205
  supportsAudio: boolean;
1155
- provider?: "custom" | "claude" | "codex" | undefined;
1156
1206
  protocolVersion?: number | undefined;
1157
1207
  machineId?: string | undefined;
1158
1208
  error?: string | undefined;
1209
+ provider?: "custom" | "codex" | "claude" | undefined;
1159
1210
  providers?: {
1160
1211
  enabled: boolean;
1161
- id: "custom" | "claude" | "codex";
1212
+ id: "custom" | "codex" | "claude";
1162
1213
  label: string;
1163
1214
  reason?: string | undefined;
1164
1215
  supportsImages?: boolean | undefined;
@@ -1179,7 +1230,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1179
1230
  title: string;
1180
1231
  argsMode: "none" | "optional" | "required" | "raw";
1181
1232
  executionKind: "prompt" | "native" | "local_ui";
1182
- provider?: "custom" | "claude" | "codex" | undefined;
1233
+ provider?: "custom" | "codex" | "claude" | undefined;
1183
1234
  description?: string | undefined;
1184
1235
  category?: string | undefined;
1185
1236
  requiresIdle?: boolean | undefined;
@@ -1196,17 +1247,17 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1196
1247
  }[] | undefined;
1197
1248
  }, {
1198
1249
  enabled: boolean;
1199
- provider?: "custom" | "claude" | "codex" | undefined;
1200
1250
  protocolVersion?: number | undefined;
1201
1251
  machineId?: string | undefined;
1202
1252
  error?: string | undefined;
1253
+ provider?: "custom" | "codex" | "claude" | undefined;
1203
1254
  supportsImages?: boolean | undefined;
1204
1255
  supportsPermission?: boolean | undefined;
1205
1256
  supportsPlan?: boolean | undefined;
1206
1257
  supportsCancel?: boolean | undefined;
1207
1258
  providers?: {
1208
1259
  enabled: boolean;
1209
- id: "custom" | "claude" | "codex";
1260
+ id: "custom" | "codex" | "claude";
1210
1261
  label: string;
1211
1262
  reason?: string | undefined;
1212
1263
  supportsImages?: boolean | undefined;
@@ -1224,8 +1275,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1224
1275
  name: string;
1225
1276
  id: string;
1226
1277
  title: string;
1227
- provider?: "custom" | "claude" | "codex" | undefined;
1228
1278
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1279
+ provider?: "custom" | "codex" | "claude" | undefined;
1229
1280
  description?: string | undefined;
1230
1281
  category?: string | undefined;
1231
1282
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -1252,12 +1303,12 @@ export declare const agentSessionNewPayloadSchema: z.ZodObject<{
1252
1303
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
1253
1304
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1254
1305
  }, "strip", z.ZodTypeAny, {
1255
- provider?: "custom" | "claude" | "codex" | undefined;
1256
1306
  cwd?: string | undefined;
1307
+ provider?: "custom" | "codex" | "claude" | undefined;
1257
1308
  mcpServers?: Record<string, unknown> | undefined;
1258
1309
  }, {
1259
- provider?: "custom" | "claude" | "codex" | undefined;
1260
1310
  cwd?: string | undefined;
1311
+ provider?: "custom" | "codex" | "claude" | undefined;
1261
1312
  mcpServers?: Record<string, unknown> | undefined;
1262
1313
  }>;
1263
1314
  export declare const agentSessionLoadPayloadSchema: z.ZodObject<{
@@ -1336,14 +1387,14 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1336
1387
  isStreaming: z.ZodOptional<z.ZodBoolean>;
1337
1388
  }, "strip", z.ZodTypeAny, {
1338
1389
  role: "user" | "assistant" | "system";
1339
- id: string;
1340
1390
  content: string;
1391
+ id: string;
1341
1392
  createdAt: number;
1342
1393
  isStreaming?: boolean | undefined;
1343
1394
  }, {
1344
1395
  role: "user" | "assistant" | "system";
1345
- id: string;
1346
1396
  content: string;
1397
+ id: string;
1347
1398
  createdAt: number;
1348
1399
  isStreaming?: boolean | undefined;
1349
1400
  }>>;
@@ -1389,8 +1440,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1389
1440
  kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
1390
1441
  message?: {
1391
1442
  role: "user" | "assistant" | "system";
1392
- id: string;
1393
1443
  content: string;
1444
+ id: string;
1394
1445
  createdAt: number;
1395
1446
  isStreaming?: boolean | undefined;
1396
1447
  } | undefined;
@@ -1415,8 +1466,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1415
1466
  kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
1416
1467
  message?: {
1417
1468
  role: "user" | "assistant" | "system";
1418
- id: string;
1419
1469
  content: string;
1470
+ id: string;
1420
1471
  createdAt: number;
1421
1472
  isStreaming?: boolean | undefined;
1422
1473
  } | undefined;
@@ -1545,7 +1596,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1545
1596
  title: string;
1546
1597
  argsMode: "none" | "optional" | "required" | "raw";
1547
1598
  executionKind: "prompt" | "native" | "local_ui";
1548
- provider?: "custom" | "claude" | "codex" | undefined;
1599
+ provider?: "custom" | "codex" | "claude" | undefined;
1549
1600
  description?: string | undefined;
1550
1601
  category?: string | undefined;
1551
1602
  requiresIdle?: boolean | undefined;
@@ -1555,8 +1606,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1555
1606
  name: string;
1556
1607
  id: string;
1557
1608
  title: string;
1558
- provider?: "custom" | "claude" | "codex" | undefined;
1559
1609
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1610
+ provider?: "custom" | "codex" | "claude" | undefined;
1560
1611
  description?: string | undefined;
1561
1612
  category?: string | undefined;
1562
1613
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -1582,7 +1633,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1582
1633
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1583
1634
  }, "strip", z.ZodTypeAny, {
1584
1635
  enabled: boolean;
1585
- id: "custom" | "claude" | "codex";
1636
+ id: "custom" | "codex" | "claude";
1586
1637
  label: string;
1587
1638
  reason?: string | undefined;
1588
1639
  supportsImages?: boolean | undefined;
@@ -1603,7 +1654,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1603
1654
  title: string;
1604
1655
  argsMode: "none" | "optional" | "required" | "raw";
1605
1656
  executionKind: "prompt" | "native" | "local_ui";
1606
- provider?: "custom" | "claude" | "codex" | undefined;
1657
+ provider?: "custom" | "codex" | "claude" | undefined;
1607
1658
  description?: string | undefined;
1608
1659
  category?: string | undefined;
1609
1660
  requiresIdle?: boolean | undefined;
@@ -1619,7 +1670,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1619
1670
  features?: Record<string, boolean> | undefined;
1620
1671
  }, {
1621
1672
  enabled: boolean;
1622
- id: "custom" | "claude" | "codex";
1673
+ id: "custom" | "codex" | "claude";
1623
1674
  label: string;
1624
1675
  reason?: string | undefined;
1625
1676
  supportsImages?: boolean | undefined;
@@ -1637,8 +1688,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1637
1688
  name: string;
1638
1689
  id: string;
1639
1690
  title: string;
1640
- provider?: "custom" | "claude" | "codex" | undefined;
1641
1691
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1692
+ provider?: "custom" | "codex" | "claude" | undefined;
1642
1693
  description?: string | undefined;
1643
1694
  category?: string | undefined;
1644
1695
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -1673,13 +1724,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1673
1724
  supportsSessionList: boolean;
1674
1725
  supportsSessionLoad: boolean;
1675
1726
  supportsAudio: boolean;
1676
- provider?: "custom" | "claude" | "codex" | undefined;
1677
1727
  protocolVersion?: number | undefined;
1678
1728
  machineId?: string | undefined;
1679
1729
  error?: string | undefined;
1730
+ provider?: "custom" | "codex" | "claude" | undefined;
1680
1731
  providers?: {
1681
1732
  enabled: boolean;
1682
- id: "custom" | "claude" | "codex";
1733
+ id: "custom" | "codex" | "claude";
1683
1734
  label: string;
1684
1735
  reason?: string | undefined;
1685
1736
  supportsImages?: boolean | undefined;
@@ -1700,7 +1751,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1700
1751
  title: string;
1701
1752
  argsMode: "none" | "optional" | "required" | "raw";
1702
1753
  executionKind: "prompt" | "native" | "local_ui";
1703
- provider?: "custom" | "claude" | "codex" | undefined;
1754
+ provider?: "custom" | "codex" | "claude" | undefined;
1704
1755
  description?: string | undefined;
1705
1756
  category?: string | undefined;
1706
1757
  requiresIdle?: boolean | undefined;
@@ -1717,17 +1768,17 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1717
1768
  }[] | undefined;
1718
1769
  }, {
1719
1770
  enabled: boolean;
1720
- provider?: "custom" | "claude" | "codex" | undefined;
1721
1771
  protocolVersion?: number | undefined;
1722
1772
  machineId?: string | undefined;
1723
1773
  error?: string | undefined;
1774
+ provider?: "custom" | "codex" | "claude" | undefined;
1724
1775
  supportsImages?: boolean | undefined;
1725
1776
  supportsPermission?: boolean | undefined;
1726
1777
  supportsPlan?: boolean | undefined;
1727
1778
  supportsCancel?: boolean | undefined;
1728
1779
  providers?: {
1729
1780
  enabled: boolean;
1730
- id: "custom" | "claude" | "codex";
1781
+ id: "custom" | "codex" | "claude";
1731
1782
  label: string;
1732
1783
  reason?: string | undefined;
1733
1784
  supportsImages?: boolean | undefined;
@@ -1745,8 +1796,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1745
1796
  name: string;
1746
1797
  id: string;
1747
1798
  title: string;
1748
- provider?: "custom" | "claude" | "codex" | undefined;
1749
1799
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1800
+ provider?: "custom" | "codex" | "claude" | undefined;
1750
1801
  description?: string | undefined;
1751
1802
  category?: string | undefined;
1752
1803
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -1775,14 +1826,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1775
1826
  isStreaming: z.ZodOptional<z.ZodBoolean>;
1776
1827
  }, "strip", z.ZodTypeAny, {
1777
1828
  role: "user" | "assistant" | "system";
1778
- id: string;
1779
1829
  content: string;
1830
+ id: string;
1780
1831
  createdAt: number;
1781
1832
  isStreaming?: boolean | undefined;
1782
1833
  }, {
1783
1834
  role: "user" | "assistant" | "system";
1784
- id: string;
1785
1835
  content: string;
1836
+ id: string;
1786
1837
  createdAt: number;
1787
1838
  isStreaming?: boolean | undefined;
1788
1839
  }>, "many">>;
@@ -1853,8 +1904,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1853
1904
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
1854
1905
  messages: {
1855
1906
  role: "user" | "assistant" | "system";
1856
- id: string;
1857
1907
  content: string;
1908
+ id: string;
1858
1909
  createdAt: number;
1859
1910
  isStreaming?: boolean | undefined;
1860
1911
  }[];
@@ -1878,7 +1929,6 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1878
1929
  context?: string | undefined;
1879
1930
  }[];
1880
1931
  agentSessionId?: string | undefined;
1881
- error?: string | undefined;
1882
1932
  capabilities?: {
1883
1933
  enabled: boolean;
1884
1934
  supportsImages: boolean;
@@ -1888,13 +1938,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1888
1938
  supportsSessionList: boolean;
1889
1939
  supportsSessionLoad: boolean;
1890
1940
  supportsAudio: boolean;
1891
- provider?: "custom" | "claude" | "codex" | undefined;
1892
1941
  protocolVersion?: number | undefined;
1893
1942
  machineId?: string | undefined;
1894
1943
  error?: string | undefined;
1944
+ provider?: "custom" | "codex" | "claude" | undefined;
1895
1945
  providers?: {
1896
1946
  enabled: boolean;
1897
- id: "custom" | "claude" | "codex";
1947
+ id: "custom" | "codex" | "claude";
1898
1948
  label: string;
1899
1949
  reason?: string | undefined;
1900
1950
  supportsImages?: boolean | undefined;
@@ -1915,7 +1965,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1915
1965
  title: string;
1916
1966
  argsMode: "none" | "optional" | "required" | "raw";
1917
1967
  executionKind: "prompt" | "native" | "local_ui";
1918
- provider?: "custom" | "claude" | "codex" | undefined;
1968
+ provider?: "custom" | "codex" | "claude" | undefined;
1919
1969
  description?: string | undefined;
1920
1970
  category?: string | undefined;
1921
1971
  requiresIdle?: boolean | undefined;
@@ -1931,23 +1981,23 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1931
1981
  features?: Record<string, boolean> | undefined;
1932
1982
  }[] | undefined;
1933
1983
  } | undefined;
1984
+ error?: string | undefined;
1934
1985
  }, {
1935
1986
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
1936
1987
  agentSessionId?: string | undefined;
1937
- error?: string | undefined;
1938
1988
  capabilities?: {
1939
1989
  enabled: boolean;
1940
- provider?: "custom" | "claude" | "codex" | undefined;
1941
1990
  protocolVersion?: number | undefined;
1942
1991
  machineId?: string | undefined;
1943
1992
  error?: string | undefined;
1993
+ provider?: "custom" | "codex" | "claude" | undefined;
1944
1994
  supportsImages?: boolean | undefined;
1945
1995
  supportsPermission?: boolean | undefined;
1946
1996
  supportsPlan?: boolean | undefined;
1947
1997
  supportsCancel?: boolean | undefined;
1948
1998
  providers?: {
1949
1999
  enabled: boolean;
1950
- id: "custom" | "claude" | "codex";
2000
+ id: "custom" | "codex" | "claude";
1951
2001
  label: string;
1952
2002
  reason?: string | undefined;
1953
2003
  supportsImages?: boolean | undefined;
@@ -1965,8 +2015,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1965
2015
  name: string;
1966
2016
  id: string;
1967
2017
  title: string;
1968
- provider?: "custom" | "claude" | "codex" | undefined;
1969
2018
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
2019
+ provider?: "custom" | "codex" | "claude" | undefined;
1970
2020
  description?: string | undefined;
1971
2021
  category?: string | undefined;
1972
2022
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -1987,10 +2037,11 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1987
2037
  supportsSessionLoad?: boolean | undefined;
1988
2038
  supportsAudio?: boolean | undefined;
1989
2039
  } | undefined;
2040
+ error?: string | undefined;
1990
2041
  messages?: {
1991
2042
  role: "user" | "assistant" | "system";
1992
- id: string;
1993
2043
  content: string;
2044
+ id: string;
1994
2045
  createdAt: number;
1995
2046
  isStreaming?: boolean | undefined;
1996
2047
  }[] | undefined;
@@ -2680,6 +2731,12 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2680
2731
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
2681
2732
  role?: "user" | "assistant" | "system" | undefined;
2682
2733
  error?: string | undefined;
2734
+ content?: {
2735
+ type: "text" | "image";
2736
+ data?: string | undefined;
2737
+ text?: string | undefined;
2738
+ mimeType?: string | undefined;
2739
+ }[] | undefined;
2683
2740
  text?: string | undefined;
2684
2741
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
2685
2742
  plan?: {
@@ -2687,12 +2744,6 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2687
2744
  id: string;
2688
2745
  text: string;
2689
2746
  }[] | undefined;
2690
- content?: {
2691
- type: "text" | "image";
2692
- data?: string | undefined;
2693
- text?: string | undefined;
2694
- mimeType?: string | undefined;
2695
- }[] | undefined;
2696
2747
  isStreaming?: boolean | undefined;
2697
2748
  toolCall?: {
2698
2749
  status: "running" | "pending" | "completed" | "failed";
@@ -2780,6 +2831,12 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2780
2831
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
2781
2832
  role?: "user" | "assistant" | "system" | undefined;
2782
2833
  error?: string | undefined;
2834
+ content?: {
2835
+ type: "text" | "image";
2836
+ data?: string | undefined;
2837
+ text?: string | undefined;
2838
+ mimeType?: string | undefined;
2839
+ }[] | undefined;
2783
2840
  text?: string | undefined;
2784
2841
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
2785
2842
  plan?: {
@@ -2787,12 +2844,6 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2787
2844
  id: string;
2788
2845
  text: string;
2789
2846
  }[] | undefined;
2790
- content?: {
2791
- type: "text" | "image";
2792
- data?: string | undefined;
2793
- text?: string | undefined;
2794
- mimeType?: string | undefined;
2795
- }[] | undefined;
2796
2847
  isStreaming?: boolean | undefined;
2797
2848
  toolCall?: {
2798
2849
  name: string;
@@ -2890,8 +2941,8 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
2890
2941
  createdAt: z.ZodNumber;
2891
2942
  }, "strip", z.ZodTypeAny, {
2892
2943
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
2893
- provider: "custom" | "claude" | "codex";
2894
2944
  cwd: string;
2945
+ provider: "custom" | "codex" | "claude";
2895
2946
  id: string;
2896
2947
  createdAt: number;
2897
2948
  archived: boolean;
@@ -2910,7 +2961,7 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
2910
2961
  lastActivityAt: number;
2911
2962
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
2912
2963
  agentSessionId?: string | undefined;
2913
- provider?: "custom" | "claude" | "codex" | undefined;
2964
+ provider?: "custom" | "codex" | "claude" | undefined;
2914
2965
  title?: string | undefined;
2915
2966
  model?: string | undefined;
2916
2967
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -2966,7 +3017,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2966
3017
  title: string;
2967
3018
  argsMode: "none" | "optional" | "required" | "raw";
2968
3019
  executionKind: "prompt" | "native" | "local_ui";
2969
- provider?: "custom" | "claude" | "codex" | undefined;
3020
+ provider?: "custom" | "codex" | "claude" | undefined;
2970
3021
  description?: string | undefined;
2971
3022
  category?: string | undefined;
2972
3023
  requiresIdle?: boolean | undefined;
@@ -2976,8 +3027,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2976
3027
  name: string;
2977
3028
  id: string;
2978
3029
  title: string;
2979
- provider?: "custom" | "claude" | "codex" | undefined;
2980
3030
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
3031
+ provider?: "custom" | "codex" | "claude" | undefined;
2981
3032
  description?: string | undefined;
2982
3033
  category?: string | undefined;
2983
3034
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -3003,7 +3054,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3003
3054
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
3004
3055
  }, "strip", z.ZodTypeAny, {
3005
3056
  enabled: boolean;
3006
- id: "custom" | "claude" | "codex";
3057
+ id: "custom" | "codex" | "claude";
3007
3058
  label: string;
3008
3059
  reason?: string | undefined;
3009
3060
  supportsImages?: boolean | undefined;
@@ -3024,7 +3075,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3024
3075
  title: string;
3025
3076
  argsMode: "none" | "optional" | "required" | "raw";
3026
3077
  executionKind: "prompt" | "native" | "local_ui";
3027
- provider?: "custom" | "claude" | "codex" | undefined;
3078
+ provider?: "custom" | "codex" | "claude" | undefined;
3028
3079
  description?: string | undefined;
3029
3080
  category?: string | undefined;
3030
3081
  requiresIdle?: boolean | undefined;
@@ -3040,7 +3091,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3040
3091
  features?: Record<string, boolean> | undefined;
3041
3092
  }, {
3042
3093
  enabled: boolean;
3043
- id: "custom" | "claude" | "codex";
3094
+ id: "custom" | "codex" | "claude";
3044
3095
  label: string;
3045
3096
  reason?: string | undefined;
3046
3097
  supportsImages?: boolean | undefined;
@@ -3058,8 +3109,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3058
3109
  name: string;
3059
3110
  id: string;
3060
3111
  title: string;
3061
- provider?: "custom" | "claude" | "codex" | undefined;
3062
3112
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
3113
+ provider?: "custom" | "codex" | "claude" | undefined;
3063
3114
  description?: string | undefined;
3064
3115
  category?: string | undefined;
3065
3116
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -3097,13 +3148,13 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3097
3148
  supportsSessionLoad: boolean;
3098
3149
  supportsAudio: boolean;
3099
3150
  workspaceProtocolVersion: number;
3100
- provider?: "custom" | "claude" | "codex" | undefined;
3101
3151
  protocolVersion?: number | undefined;
3102
3152
  machineId?: string | undefined;
3103
3153
  error?: string | undefined;
3154
+ provider?: "custom" | "codex" | "claude" | undefined;
3104
3155
  providers?: {
3105
3156
  enabled: boolean;
3106
- id: "custom" | "claude" | "codex";
3157
+ id: "custom" | "codex" | "claude";
3107
3158
  label: string;
3108
3159
  reason?: string | undefined;
3109
3160
  supportsImages?: boolean | undefined;
@@ -3124,7 +3175,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3124
3175
  title: string;
3125
3176
  argsMode: "none" | "optional" | "required" | "raw";
3126
3177
  executionKind: "prompt" | "native" | "local_ui";
3127
- provider?: "custom" | "claude" | "codex" | undefined;
3178
+ provider?: "custom" | "codex" | "claude" | undefined;
3128
3179
  description?: string | undefined;
3129
3180
  category?: string | undefined;
3130
3181
  requiresIdle?: boolean | undefined;
@@ -3141,17 +3192,17 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3141
3192
  }[] | undefined;
3142
3193
  }, {
3143
3194
  enabled: boolean;
3144
- provider?: "custom" | "claude" | "codex" | undefined;
3145
3195
  protocolVersion?: number | undefined;
3146
3196
  machineId?: string | undefined;
3147
3197
  error?: string | undefined;
3198
+ provider?: "custom" | "codex" | "claude" | undefined;
3148
3199
  supportsImages?: boolean | undefined;
3149
3200
  supportsPermission?: boolean | undefined;
3150
3201
  supportsPlan?: boolean | undefined;
3151
3202
  supportsCancel?: boolean | undefined;
3152
3203
  providers?: {
3153
3204
  enabled: boolean;
3154
- id: "custom" | "claude" | "codex";
3205
+ id: "custom" | "codex" | "claude";
3155
3206
  label: string;
3156
3207
  reason?: string | undefined;
3157
3208
  supportsImages?: boolean | undefined;
@@ -3169,8 +3220,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3169
3220
  name: string;
3170
3221
  id: string;
3171
3222
  title: string;
3172
- provider?: "custom" | "claude" | "codex" | undefined;
3173
3223
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
3224
+ provider?: "custom" | "codex" | "claude" | undefined;
3174
3225
  description?: string | undefined;
3175
3226
  category?: string | undefined;
3176
3227
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -3205,8 +3256,8 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
3205
3256
  }, "strip", z.ZodTypeAny, {
3206
3257
  conversationId?: string | undefined;
3207
3258
  agentSessionId?: string | undefined;
3208
- provider?: "custom" | "claude" | "codex" | undefined;
3209
3259
  cwd?: string | undefined;
3260
+ provider?: "custom" | "codex" | "claude" | undefined;
3210
3261
  title?: string | undefined;
3211
3262
  model?: string | undefined;
3212
3263
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -3215,8 +3266,8 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
3215
3266
  }, {
3216
3267
  conversationId?: string | undefined;
3217
3268
  agentSessionId?: string | undefined;
3218
- provider?: "custom" | "claude" | "codex" | undefined;
3219
3269
  cwd?: string | undefined;
3270
+ provider?: "custom" | "codex" | "claude" | undefined;
3220
3271
  title?: string | undefined;
3221
3272
  model?: string | undefined;
3222
3273
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -3241,8 +3292,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3241
3292
  createdAt: z.ZodNumber;
3242
3293
  }, "strip", z.ZodTypeAny, {
3243
3294
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
3244
- provider: "custom" | "claude" | "codex";
3245
3295
  cwd: string;
3296
+ provider: "custom" | "codex" | "claude";
3246
3297
  id: string;
3247
3298
  createdAt: number;
3248
3299
  archived: boolean;
@@ -3261,7 +3312,7 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3261
3312
  lastActivityAt: number;
3262
3313
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3263
3314
  agentSessionId?: string | undefined;
3264
- provider?: "custom" | "claude" | "codex" | undefined;
3315
+ provider?: "custom" | "codex" | "claude" | undefined;
3265
3316
  title?: string | undefined;
3266
3317
  model?: string | undefined;
3267
3318
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -3604,6 +3655,12 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3604
3655
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3605
3656
  role?: "user" | "assistant" | "system" | undefined;
3606
3657
  error?: string | undefined;
3658
+ content?: {
3659
+ type: "text" | "image";
3660
+ data?: string | undefined;
3661
+ text?: string | undefined;
3662
+ mimeType?: string | undefined;
3663
+ }[] | undefined;
3607
3664
  text?: string | undefined;
3608
3665
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3609
3666
  plan?: {
@@ -3611,12 +3668,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3611
3668
  id: string;
3612
3669
  text: string;
3613
3670
  }[] | undefined;
3614
- content?: {
3615
- type: "text" | "image";
3616
- data?: string | undefined;
3617
- text?: string | undefined;
3618
- mimeType?: string | undefined;
3619
- }[] | undefined;
3620
3671
  isStreaming?: boolean | undefined;
3621
3672
  toolCall?: {
3622
3673
  status: "running" | "pending" | "completed" | "failed";
@@ -3704,6 +3755,12 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3704
3755
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3705
3756
  role?: "user" | "assistant" | "system" | undefined;
3706
3757
  error?: string | undefined;
3758
+ content?: {
3759
+ type: "text" | "image";
3760
+ data?: string | undefined;
3761
+ text?: string | undefined;
3762
+ mimeType?: string | undefined;
3763
+ }[] | undefined;
3707
3764
  text?: string | undefined;
3708
3765
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3709
3766
  plan?: {
@@ -3711,12 +3768,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3711
3768
  id: string;
3712
3769
  text: string;
3713
3770
  }[] | undefined;
3714
- content?: {
3715
- type: "text" | "image";
3716
- data?: string | undefined;
3717
- text?: string | undefined;
3718
- mimeType?: string | undefined;
3719
- }[] | undefined;
3720
3771
  isStreaming?: boolean | undefined;
3721
3772
  toolCall?: {
3722
3773
  name: string;
@@ -3800,8 +3851,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3800
3851
  }, "strip", z.ZodTypeAny, {
3801
3852
  conversation: {
3802
3853
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
3803
- provider: "custom" | "claude" | "codex";
3804
3854
  cwd: string;
3855
+ provider: "custom" | "codex" | "claude";
3805
3856
  id: string;
3806
3857
  createdAt: number;
3807
3858
  archived: boolean;
@@ -3822,6 +3873,12 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3822
3873
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3823
3874
  role?: "user" | "assistant" | "system" | undefined;
3824
3875
  error?: string | undefined;
3876
+ content?: {
3877
+ type: "text" | "image";
3878
+ data?: string | undefined;
3879
+ text?: string | undefined;
3880
+ mimeType?: string | undefined;
3881
+ }[] | undefined;
3825
3882
  text?: string | undefined;
3826
3883
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3827
3884
  plan?: {
@@ -3829,12 +3886,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3829
3886
  id: string;
3830
3887
  text: string;
3831
3888
  }[] | undefined;
3832
- content?: {
3833
- type: "text" | "image";
3834
- data?: string | undefined;
3835
- text?: string | undefined;
3836
- mimeType?: string | undefined;
3837
- }[] | undefined;
3838
3889
  isStreaming?: boolean | undefined;
3839
3890
  toolCall?: {
3840
3891
  status: "running" | "pending" | "completed" | "failed";
@@ -3923,7 +3974,7 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3923
3974
  lastActivityAt: number;
3924
3975
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3925
3976
  agentSessionId?: string | undefined;
3926
- provider?: "custom" | "claude" | "codex" | undefined;
3977
+ provider?: "custom" | "codex" | "claude" | undefined;
3927
3978
  title?: string | undefined;
3928
3979
  model?: string | undefined;
3929
3980
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -3940,6 +3991,12 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3940
3991
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3941
3992
  role?: "user" | "assistant" | "system" | undefined;
3942
3993
  error?: string | undefined;
3994
+ content?: {
3995
+ type: "text" | "image";
3996
+ data?: string | undefined;
3997
+ text?: string | undefined;
3998
+ mimeType?: string | undefined;
3999
+ }[] | undefined;
3943
4000
  text?: string | undefined;
3944
4001
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3945
4002
  plan?: {
@@ -3947,12 +4004,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3947
4004
  id: string;
3948
4005
  text: string;
3949
4006
  }[] | undefined;
3950
- content?: {
3951
- type: "text" | "image";
3952
- data?: string | undefined;
3953
- text?: string | undefined;
3954
- mimeType?: string | undefined;
3955
- }[] | undefined;
3956
4007
  isStreaming?: boolean | undefined;
3957
4008
  toolCall?: {
3958
4009
  name: string;
@@ -4059,8 +4110,8 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4059
4110
  createdAt: z.ZodNumber;
4060
4111
  }, "strip", z.ZodTypeAny, {
4061
4112
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4062
- provider: "custom" | "claude" | "codex";
4063
4113
  cwd: string;
4114
+ provider: "custom" | "codex" | "claude";
4064
4115
  id: string;
4065
4116
  createdAt: number;
4066
4117
  archived: boolean;
@@ -4079,7 +4130,7 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4079
4130
  lastActivityAt: number;
4080
4131
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4081
4132
  agentSessionId?: string | undefined;
4082
- provider?: "custom" | "claude" | "codex" | undefined;
4133
+ provider?: "custom" | "codex" | "claude" | undefined;
4083
4134
  title?: string | undefined;
4084
4135
  model?: string | undefined;
4085
4136
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -4091,8 +4142,8 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4091
4142
  }, "strip", z.ZodTypeAny, {
4092
4143
  conversations: {
4093
4144
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4094
- provider: "custom" | "claude" | "codex";
4095
4145
  cwd: string;
4146
+ provider: "custom" | "codex" | "claude";
4096
4147
  id: string;
4097
4148
  createdAt: number;
4098
4149
  archived: boolean;
@@ -4113,7 +4164,7 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4113
4164
  lastActivityAt: number;
4114
4165
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4115
4166
  agentSessionId?: string | undefined;
4116
- provider?: "custom" | "claude" | "codex" | undefined;
4167
+ provider?: "custom" | "codex" | "claude" | undefined;
4117
4168
  title?: string | undefined;
4118
4169
  model?: string | undefined;
4119
4170
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -4253,8 +4304,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4253
4304
  createdAt: z.ZodNumber;
4254
4305
  }, "strip", z.ZodTypeAny, {
4255
4306
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4256
- provider: "custom" | "claude" | "codex";
4257
4307
  cwd: string;
4308
+ provider: "custom" | "codex" | "claude";
4258
4309
  id: string;
4259
4310
  createdAt: number;
4260
4311
  archived: boolean;
@@ -4273,7 +4324,7 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4273
4324
  lastActivityAt: number;
4274
4325
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4275
4326
  agentSessionId?: string | undefined;
4276
- provider?: "custom" | "claude" | "codex" | undefined;
4327
+ provider?: "custom" | "codex" | "claude" | undefined;
4277
4328
  title?: string | undefined;
4278
4329
  model?: string | undefined;
4279
4330
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -4617,6 +4668,12 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4617
4668
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4618
4669
  role?: "user" | "assistant" | "system" | undefined;
4619
4670
  error?: string | undefined;
4671
+ content?: {
4672
+ type: "text" | "image";
4673
+ data?: string | undefined;
4674
+ text?: string | undefined;
4675
+ mimeType?: string | undefined;
4676
+ }[] | undefined;
4620
4677
  text?: string | undefined;
4621
4678
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4622
4679
  plan?: {
@@ -4624,12 +4681,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4624
4681
  id: string;
4625
4682
  text: string;
4626
4683
  }[] | undefined;
4627
- content?: {
4628
- type: "text" | "image";
4629
- data?: string | undefined;
4630
- text?: string | undefined;
4631
- mimeType?: string | undefined;
4632
- }[] | undefined;
4633
4684
  isStreaming?: boolean | undefined;
4634
4685
  toolCall?: {
4635
4686
  status: "running" | "pending" | "completed" | "failed";
@@ -4717,6 +4768,12 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4717
4768
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4718
4769
  role?: "user" | "assistant" | "system" | undefined;
4719
4770
  error?: string | undefined;
4771
+ content?: {
4772
+ type: "text" | "image";
4773
+ data?: string | undefined;
4774
+ text?: string | undefined;
4775
+ mimeType?: string | undefined;
4776
+ }[] | undefined;
4720
4777
  text?: string | undefined;
4721
4778
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4722
4779
  plan?: {
@@ -4724,12 +4781,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4724
4781
  id: string;
4725
4782
  text: string;
4726
4783
  }[] | undefined;
4727
- content?: {
4728
- type: "text" | "image";
4729
- data?: string | undefined;
4730
- text?: string | undefined;
4731
- mimeType?: string | undefined;
4732
- }[] | undefined;
4733
4784
  isStreaming?: boolean | undefined;
4734
4785
  toolCall?: {
4735
4786
  name: string;
@@ -4814,8 +4865,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4814
4865
  }, "strip", z.ZodTypeAny, {
4815
4866
  conversations: {
4816
4867
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4817
- provider: "custom" | "claude" | "codex";
4818
4868
  cwd: string;
4869
+ provider: "custom" | "codex" | "claude";
4819
4870
  id: string;
4820
4871
  createdAt: number;
4821
4872
  archived: boolean;
@@ -4836,6 +4887,12 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4836
4887
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4837
4888
  role?: "user" | "assistant" | "system" | undefined;
4838
4889
  error?: string | undefined;
4890
+ content?: {
4891
+ type: "text" | "image";
4892
+ data?: string | undefined;
4893
+ text?: string | undefined;
4894
+ mimeType?: string | undefined;
4895
+ }[] | undefined;
4839
4896
  text?: string | undefined;
4840
4897
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4841
4898
  plan?: {
@@ -4843,12 +4900,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4843
4900
  id: string;
4844
4901
  text: string;
4845
4902
  }[] | undefined;
4846
- content?: {
4847
- type: "text" | "image";
4848
- data?: string | undefined;
4849
- text?: string | undefined;
4850
- mimeType?: string | undefined;
4851
- }[] | undefined;
4852
4903
  isStreaming?: boolean | undefined;
4853
4904
  toolCall?: {
4854
4905
  status: "running" | "pending" | "completed" | "failed";
@@ -4940,7 +4991,7 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4940
4991
  lastActivityAt: number;
4941
4992
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4942
4993
  agentSessionId?: string | undefined;
4943
- provider?: "custom" | "claude" | "codex" | undefined;
4994
+ provider?: "custom" | "codex" | "claude" | undefined;
4944
4995
  title?: string | undefined;
4945
4996
  model?: string | undefined;
4946
4997
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -4958,6 +5009,12 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4958
5009
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4959
5010
  role?: "user" | "assistant" | "system" | undefined;
4960
5011
  error?: string | undefined;
5012
+ content?: {
5013
+ type: "text" | "image";
5014
+ data?: string | undefined;
5015
+ text?: string | undefined;
5016
+ mimeType?: string | undefined;
5017
+ }[] | undefined;
4961
5018
  text?: string | undefined;
4962
5019
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4963
5020
  plan?: {
@@ -4965,12 +5022,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4965
5022
  id: string;
4966
5023
  text: string;
4967
5024
  }[] | undefined;
4968
- content?: {
4969
- type: "text" | "image";
4970
- data?: string | undefined;
4971
- text?: string | undefined;
4972
- mimeType?: string | undefined;
4973
- }[] | undefined;
4974
5025
  isStreaming?: boolean | undefined;
4975
5026
  toolCall?: {
4976
5027
  name: string;
@@ -5071,8 +5122,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5071
5122
  createdAt: z.ZodNumber;
5072
5123
  }, "strip", z.ZodTypeAny, {
5073
5124
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
5074
- provider: "custom" | "claude" | "codex";
5075
5125
  cwd: string;
5126
+ provider: "custom" | "codex" | "claude";
5076
5127
  id: string;
5077
5128
  createdAt: number;
5078
5129
  archived: boolean;
@@ -5091,7 +5142,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5091
5142
  lastActivityAt: number;
5092
5143
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5093
5144
  agentSessionId?: string | undefined;
5094
- provider?: "custom" | "claude" | "codex" | undefined;
5145
+ provider?: "custom" | "codex" | "claude" | undefined;
5095
5146
  title?: string | undefined;
5096
5147
  model?: string | undefined;
5097
5148
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -5434,6 +5485,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5434
5485
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5435
5486
  role?: "user" | "assistant" | "system" | undefined;
5436
5487
  error?: string | undefined;
5488
+ content?: {
5489
+ type: "text" | "image";
5490
+ data?: string | undefined;
5491
+ text?: string | undefined;
5492
+ mimeType?: string | undefined;
5493
+ }[] | undefined;
5437
5494
  text?: string | undefined;
5438
5495
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5439
5496
  plan?: {
@@ -5441,12 +5498,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5441
5498
  id: string;
5442
5499
  text: string;
5443
5500
  }[] | undefined;
5444
- content?: {
5445
- type: "text" | "image";
5446
- data?: string | undefined;
5447
- text?: string | undefined;
5448
- mimeType?: string | undefined;
5449
- }[] | undefined;
5450
5501
  isStreaming?: boolean | undefined;
5451
5502
  toolCall?: {
5452
5503
  status: "running" | "pending" | "completed" | "failed";
@@ -5534,6 +5585,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5534
5585
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5535
5586
  role?: "user" | "assistant" | "system" | undefined;
5536
5587
  error?: string | undefined;
5588
+ content?: {
5589
+ type: "text" | "image";
5590
+ data?: string | undefined;
5591
+ text?: string | undefined;
5592
+ mimeType?: string | undefined;
5593
+ }[] | undefined;
5537
5594
  text?: string | undefined;
5538
5595
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5539
5596
  plan?: {
@@ -5541,12 +5598,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5541
5598
  id: string;
5542
5599
  text: string;
5543
5600
  }[] | undefined;
5544
- content?: {
5545
- type: "text" | "image";
5546
- data?: string | undefined;
5547
- text?: string | undefined;
5548
- mimeType?: string | undefined;
5549
- }[] | undefined;
5550
5601
  isStreaming?: boolean | undefined;
5551
5602
  toolCall?: {
5552
5603
  name: string;
@@ -5954,6 +6005,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5954
6005
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5955
6006
  role?: "user" | "assistant" | "system" | undefined;
5956
6007
  error?: string | undefined;
6008
+ content?: {
6009
+ type: "text" | "image";
6010
+ data?: string | undefined;
6011
+ text?: string | undefined;
6012
+ mimeType?: string | undefined;
6013
+ }[] | undefined;
5957
6014
  text?: string | undefined;
5958
6015
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5959
6016
  plan?: {
@@ -5961,12 +6018,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5961
6018
  id: string;
5962
6019
  text: string;
5963
6020
  }[] | undefined;
5964
- content?: {
5965
- type: "text" | "image";
5966
- data?: string | undefined;
5967
- text?: string | undefined;
5968
- mimeType?: string | undefined;
5969
- }[] | undefined;
5970
6021
  isStreaming?: boolean | undefined;
5971
6022
  toolCall?: {
5972
6023
  status: "running" | "pending" | "completed" | "failed";
@@ -6050,6 +6101,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6050
6101
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6051
6102
  role?: "user" | "assistant" | "system" | undefined;
6052
6103
  error?: string | undefined;
6104
+ content?: {
6105
+ type: "text" | "image";
6106
+ data?: string | undefined;
6107
+ text?: string | undefined;
6108
+ mimeType?: string | undefined;
6109
+ }[] | undefined;
6053
6110
  text?: string | undefined;
6054
6111
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6055
6112
  plan?: {
@@ -6057,12 +6114,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6057
6114
  id: string;
6058
6115
  text: string;
6059
6116
  }[] | undefined;
6060
- content?: {
6061
- type: "text" | "image";
6062
- data?: string | undefined;
6063
- text?: string | undefined;
6064
- mimeType?: string | undefined;
6065
- }[] | undefined;
6066
6117
  isStreaming?: boolean | undefined;
6067
6118
  toolCall?: {
6068
6119
  name: string;
@@ -6146,8 +6197,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6146
6197
  conversationId: string;
6147
6198
  conversation?: {
6148
6199
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
6149
- provider: "custom" | "claude" | "codex";
6150
6200
  cwd: string;
6201
+ provider: "custom" | "codex" | "claude";
6151
6202
  id: string;
6152
6203
  createdAt: number;
6153
6204
  archived: boolean;
@@ -6168,6 +6219,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6168
6219
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6169
6220
  role?: "user" | "assistant" | "system" | undefined;
6170
6221
  error?: string | undefined;
6222
+ content?: {
6223
+ type: "text" | "image";
6224
+ data?: string | undefined;
6225
+ text?: string | undefined;
6226
+ mimeType?: string | undefined;
6227
+ }[] | undefined;
6171
6228
  text?: string | undefined;
6172
6229
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6173
6230
  plan?: {
@@ -6175,12 +6232,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6175
6232
  id: string;
6176
6233
  text: string;
6177
6234
  }[] | undefined;
6178
- content?: {
6179
- type: "text" | "image";
6180
- data?: string | undefined;
6181
- text?: string | undefined;
6182
- mimeType?: string | undefined;
6183
- }[] | undefined;
6184
6235
  isStreaming?: boolean | undefined;
6185
6236
  toolCall?: {
6186
6237
  status: "running" | "pending" | "completed" | "failed";
@@ -6266,19 +6317,19 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6266
6317
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6267
6318
  role?: "user" | "assistant" | "system" | undefined;
6268
6319
  error?: string | undefined;
6269
- text?: string | undefined;
6270
- kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6271
- plan?: {
6272
- status: "pending" | "completed" | "in_progress";
6273
- id: string;
6274
- text: string;
6275
- }[] | undefined;
6276
6320
  content?: {
6277
6321
  type: "text" | "image";
6278
6322
  data?: string | undefined;
6279
6323
  text?: string | undefined;
6280
6324
  mimeType?: string | undefined;
6281
6325
  }[] | undefined;
6326
+ text?: string | undefined;
6327
+ kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6328
+ plan?: {
6329
+ status: "pending" | "completed" | "in_progress";
6330
+ id: string;
6331
+ text: string;
6332
+ }[] | undefined;
6282
6333
  isStreaming?: boolean | undefined;
6283
6334
  toolCall?: {
6284
6335
  status: "running" | "pending" | "completed" | "failed";
@@ -6367,7 +6418,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6367
6418
  lastActivityAt: number;
6368
6419
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6369
6420
  agentSessionId?: string | undefined;
6370
- provider?: "custom" | "claude" | "codex" | undefined;
6421
+ provider?: "custom" | "codex" | "claude" | undefined;
6371
6422
  title?: string | undefined;
6372
6423
  model?: string | undefined;
6373
6424
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -6384,6 +6435,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6384
6435
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6385
6436
  role?: "user" | "assistant" | "system" | undefined;
6386
6437
  error?: string | undefined;
6438
+ content?: {
6439
+ type: "text" | "image";
6440
+ data?: string | undefined;
6441
+ text?: string | undefined;
6442
+ mimeType?: string | undefined;
6443
+ }[] | undefined;
6387
6444
  text?: string | undefined;
6388
6445
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6389
6446
  plan?: {
@@ -6391,12 +6448,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6391
6448
  id: string;
6392
6449
  text: string;
6393
6450
  }[] | undefined;
6394
- content?: {
6395
- type: "text" | "image";
6396
- data?: string | undefined;
6397
- text?: string | undefined;
6398
- mimeType?: string | undefined;
6399
- }[] | undefined;
6400
6451
  isStreaming?: boolean | undefined;
6401
6452
  toolCall?: {
6402
6453
  name: string;
@@ -6482,6 +6533,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6482
6533
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6483
6534
  role?: "user" | "assistant" | "system" | undefined;
6484
6535
  error?: string | undefined;
6536
+ content?: {
6537
+ type: "text" | "image";
6538
+ data?: string | undefined;
6539
+ text?: string | undefined;
6540
+ mimeType?: string | undefined;
6541
+ }[] | undefined;
6485
6542
  text?: string | undefined;
6486
6543
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6487
6544
  plan?: {
@@ -6489,12 +6546,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6489
6546
  id: string;
6490
6547
  text: string;
6491
6548
  }[] | undefined;
6492
- content?: {
6493
- type: "text" | "image";
6494
- data?: string | undefined;
6495
- text?: string | undefined;
6496
- mimeType?: string | undefined;
6497
- }[] | undefined;
6498
6549
  isStreaming?: boolean | undefined;
6499
6550
  toolCall?: {
6500
6551
  name: string;
@@ -6929,6 +6980,12 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6929
6980
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6930
6981
  role?: "user" | "assistant" | "system" | undefined;
6931
6982
  error?: string | undefined;
6983
+ content?: {
6984
+ type: "text" | "image";
6985
+ data?: string | undefined;
6986
+ text?: string | undefined;
6987
+ mimeType?: string | undefined;
6988
+ }[] | undefined;
6932
6989
  text?: string | undefined;
6933
6990
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6934
6991
  plan?: {
@@ -6936,12 +6993,6 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6936
6993
  id: string;
6937
6994
  text: string;
6938
6995
  }[] | undefined;
6939
- content?: {
6940
- type: "text" | "image";
6941
- data?: string | undefined;
6942
- text?: string | undefined;
6943
- mimeType?: string | undefined;
6944
- }[] | undefined;
6945
6996
  isStreaming?: boolean | undefined;
6946
6997
  toolCall?: {
6947
6998
  status: "running" | "pending" | "completed" | "failed";
@@ -7029,6 +7080,12 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7029
7080
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7030
7081
  role?: "user" | "assistant" | "system" | undefined;
7031
7082
  error?: string | undefined;
7083
+ content?: {
7084
+ type: "text" | "image";
7085
+ data?: string | undefined;
7086
+ text?: string | undefined;
7087
+ mimeType?: string | undefined;
7088
+ }[] | undefined;
7032
7089
  text?: string | undefined;
7033
7090
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7034
7091
  plan?: {
@@ -7036,12 +7093,6 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7036
7093
  id: string;
7037
7094
  text: string;
7038
7095
  }[] | undefined;
7039
- content?: {
7040
- type: "text" | "image";
7041
- data?: string | undefined;
7042
- text?: string | undefined;
7043
- mimeType?: string | undefined;
7044
- }[] | undefined;
7045
7096
  isStreaming?: boolean | undefined;
7046
7097
  toolCall?: {
7047
7098
  name: string;
@@ -7141,6 +7192,12 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7141
7192
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7142
7193
  role?: "user" | "assistant" | "system" | undefined;
7143
7194
  error?: string | undefined;
7195
+ content?: {
7196
+ type: "text" | "image";
7197
+ data?: string | undefined;
7198
+ text?: string | undefined;
7199
+ mimeType?: string | undefined;
7200
+ }[] | undefined;
7144
7201
  text?: string | undefined;
7145
7202
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7146
7203
  plan?: {
@@ -7148,12 +7205,6 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7148
7205
  id: string;
7149
7206
  text: string;
7150
7207
  }[] | undefined;
7151
- content?: {
7152
- type: "text" | "image";
7153
- data?: string | undefined;
7154
- text?: string | undefined;
7155
- mimeType?: string | undefined;
7156
- }[] | undefined;
7157
7208
  isStreaming?: boolean | undefined;
7158
7209
  toolCall?: {
7159
7210
  status: "running" | "pending" | "completed" | "failed";
@@ -7253,6 +7304,12 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7253
7304
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7254
7305
  role?: "user" | "assistant" | "system" | undefined;
7255
7306
  error?: string | undefined;
7307
+ content?: {
7308
+ type: "text" | "image";
7309
+ data?: string | undefined;
7310
+ text?: string | undefined;
7311
+ mimeType?: string | undefined;
7312
+ }[] | undefined;
7256
7313
  text?: string | undefined;
7257
7314
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7258
7315
  plan?: {
@@ -7260,12 +7317,6 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7260
7317
  id: string;
7261
7318
  text: string;
7262
7319
  }[] | undefined;
7263
- content?: {
7264
- type: "text" | "image";
7265
- data?: string | undefined;
7266
- text?: string | undefined;
7267
- mimeType?: string | undefined;
7268
- }[] | undefined;
7269
7320
  isStreaming?: boolean | undefined;
7270
7321
  toolCall?: {
7271
7322
  name: string;
@@ -7348,36 +7399,106 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7348
7399
  } | undefined;
7349
7400
  }>;
7350
7401
  export declare const protocolMessageSchemas: {
7402
+ readonly "device.connect": z.ZodObject<{
7403
+ role: z.ZodEnum<["host", "client"]>;
7404
+ clientName: z.ZodString;
7405
+ protocolVersion: z.ZodOptional<z.ZodNumber>;
7406
+ machineId: z.ZodOptional<z.ZodString>;
7407
+ hostname: z.ZodOptional<z.ZodString>;
7408
+ platform: z.ZodOptional<z.ZodString>;
7409
+ cwd: z.ZodOptional<z.ZodString>;
7410
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7411
+ }, "strip", z.ZodTypeAny, {
7412
+ role: "host" | "client";
7413
+ clientName: string;
7414
+ protocolVersion?: number | undefined;
7415
+ machineId?: string | undefined;
7416
+ hostname?: string | undefined;
7417
+ platform?: string | undefined;
7418
+ cwd?: string | undefined;
7419
+ capabilities?: string[] | undefined;
7420
+ }, {
7421
+ role: "host" | "client";
7422
+ clientName: string;
7423
+ protocolVersion?: number | undefined;
7424
+ machineId?: string | undefined;
7425
+ hostname?: string | undefined;
7426
+ platform?: string | undefined;
7427
+ cwd?: string | undefined;
7428
+ capabilities?: string[] | undefined;
7429
+ }>;
7430
+ readonly "device.ack": z.ZodObject<{
7431
+ seq: z.ZodNumber;
7432
+ }, "strip", z.ZodTypeAny, {
7433
+ seq: number;
7434
+ }, {
7435
+ seq: number;
7436
+ }>;
7437
+ readonly "device.resume": z.ZodObject<{
7438
+ lastAckedSeq: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7439
+ lastAckedSeqByTerminal: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>>;
7440
+ machineId: z.ZodOptional<z.ZodString>;
7441
+ }, "strip", z.ZodTypeAny, {
7442
+ lastAckedSeq: number;
7443
+ lastAckedSeqByTerminal: Record<string, number>;
7444
+ machineId?: string | undefined;
7445
+ }, {
7446
+ machineId?: string | undefined;
7447
+ lastAckedSeq?: number | undefined;
7448
+ lastAckedSeqByTerminal?: Record<string, number> | undefined;
7449
+ }>;
7450
+ readonly "device.heartbeat": z.ZodObject<{
7451
+ ts: z.ZodNumber;
7452
+ }, "strip", z.ZodTypeAny, {
7453
+ ts: number;
7454
+ }, {
7455
+ ts: number;
7456
+ }>;
7457
+ readonly "device.error": z.ZodObject<{
7458
+ code: z.ZodString;
7459
+ message: z.ZodString;
7460
+ }, "strip", z.ZodTypeAny, {
7461
+ code: string;
7462
+ message: string;
7463
+ }, {
7464
+ code: string;
7465
+ message: string;
7466
+ }>;
7467
+ readonly "device.host_disconnected": z.ZodObject<{
7468
+ reason: z.ZodOptional<z.ZodString>;
7469
+ }, "strip", z.ZodTypeAny, {
7470
+ reason?: string | undefined;
7471
+ }, {
7472
+ reason?: string | undefined;
7473
+ }>;
7474
+ readonly "device.host_reconnected": z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
7351
7475
  readonly "session.connect": z.ZodObject<{
7352
7476
  role: z.ZodEnum<["host", "client"]>;
7353
7477
  clientName: z.ZodString;
7354
- provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
7355
7478
  protocolVersion: z.ZodOptional<z.ZodNumber>;
7356
7479
  machineId: z.ZodOptional<z.ZodString>;
7357
7480
  hostname: z.ZodOptional<z.ZodString>;
7358
7481
  platform: z.ZodOptional<z.ZodString>;
7359
7482
  cwd: z.ZodOptional<z.ZodString>;
7360
- projectName: z.ZodOptional<z.ZodString>;
7483
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7361
7484
  }, "strip", z.ZodTypeAny, {
7362
7485
  role: "host" | "client";
7363
7486
  clientName: string;
7364
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
7365
7487
  protocolVersion?: number | undefined;
7366
7488
  machineId?: string | undefined;
7367
7489
  hostname?: string | undefined;
7368
7490
  platform?: string | undefined;
7369
7491
  cwd?: string | undefined;
7370
- projectName?: string | undefined;
7492
+ capabilities?: string[] | undefined;
7371
7493
  }, {
7372
7494
  role: "host" | "client";
7373
7495
  clientName: string;
7374
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
7375
7496
  protocolVersion?: number | undefined;
7376
7497
  machineId?: string | undefined;
7377
7498
  hostname?: string | undefined;
7378
7499
  platform?: string | undefined;
7379
7500
  cwd?: string | undefined;
7380
- projectName?: string | undefined;
7501
+ capabilities?: string[] | undefined;
7381
7502
  }>;
7382
7503
  readonly "session.ack": z.ZodObject<{
7383
7504
  seq: z.ZodNumber;
@@ -7464,14 +7585,14 @@ export declare const protocolMessageSchemas: {
7464
7585
  }>;
7465
7586
  readonly "pairing.created": z.ZodObject<{
7466
7587
  pairingCode: z.ZodString;
7467
- sessionId: z.ZodString;
7588
+ hostDeviceId: z.ZodString;
7468
7589
  expiresAt: z.ZodString;
7469
7590
  }, "strip", z.ZodTypeAny, {
7470
- sessionId: string;
7591
+ hostDeviceId: string;
7471
7592
  pairingCode: string;
7472
7593
  expiresAt: string;
7473
7594
  }, {
7474
- sessionId: string;
7595
+ hostDeviceId: string;
7475
7596
  pairingCode: string;
7476
7597
  expiresAt: string;
7477
7598
  }>;
@@ -7483,11 +7604,11 @@ export declare const protocolMessageSchemas: {
7483
7604
  pairingCode: string;
7484
7605
  }>;
7485
7606
  readonly "pairing.claimed": z.ZodObject<{
7486
- sessionId: z.ZodString;
7607
+ hostDeviceId: z.ZodString;
7487
7608
  }, "strip", z.ZodTypeAny, {
7488
- sessionId: string;
7609
+ hostDeviceId: string;
7489
7610
  }, {
7490
- sessionId: string;
7611
+ hostDeviceId: string;
7491
7612
  }>;
7492
7613
  readonly "control.claim": z.ZodObject<{
7493
7614
  deviceId: z.ZodString;
@@ -7507,11 +7628,11 @@ export declare const protocolMessageSchemas: {
7507
7628
  deviceId: z.ZodString;
7508
7629
  reason: z.ZodString;
7509
7630
  }, "strip", z.ZodTypeAny, {
7510
- deviceId: string;
7511
7631
  reason: string;
7512
- }, {
7513
7632
  deviceId: string;
7633
+ }, {
7514
7634
  reason: string;
7635
+ deviceId: string;
7515
7636
  }>;
7516
7637
  readonly "control.release": z.ZodObject<{
7517
7638
  deviceId: z.ZodString;
@@ -7615,74 +7736,69 @@ export declare const protocolMessageSchemas: {
7615
7736
  filename: string;
7616
7737
  }>;
7617
7738
  readonly "terminal.spawn": z.ZodObject<{
7618
- cwd: z.ZodString;
7619
- provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
7739
+ cwd: z.ZodOptional<z.ZodString>;
7620
7740
  }, "strip", z.ZodTypeAny, {
7621
- cwd: string;
7622
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
7741
+ cwd?: string | undefined;
7623
7742
  }, {
7624
- cwd: string;
7625
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
7743
+ cwd?: string | undefined;
7626
7744
  }>;
7627
7745
  readonly "terminal.spawned": z.ZodObject<{
7628
7746
  terminalId: z.ZodString;
7629
7747
  cwd: z.ZodString;
7630
- projectName: z.ZodString;
7631
- provider: z.ZodOptional<z.ZodString>;
7748
+ shell: z.ZodOptional<z.ZodString>;
7632
7749
  }, "strip", z.ZodTypeAny, {
7633
7750
  terminalId: string;
7634
7751
  cwd: string;
7635
- projectName: string;
7636
- provider?: string | undefined;
7752
+ shell?: string | undefined;
7637
7753
  }, {
7638
7754
  terminalId: string;
7639
7755
  cwd: string;
7640
- projectName: string;
7641
- provider?: string | undefined;
7756
+ shell?: string | undefined;
7642
7757
  }>;
7643
7758
  readonly "terminal.list": z.ZodObject<{
7644
7759
  terminals: z.ZodArray<z.ZodObject<{
7645
7760
  terminalId: z.ZodString;
7646
7761
  cwd: z.ZodString;
7647
- projectName: z.ZodString;
7648
- provider: z.ZodString;
7649
7762
  status: z.ZodEnum<["running", "exited"]>;
7763
+ shell: z.ZodOptional<z.ZodString>;
7650
7764
  }, "strip", z.ZodTypeAny, {
7651
7765
  status: "running" | "exited";
7652
7766
  terminalId: string;
7653
- provider: string;
7654
7767
  cwd: string;
7655
- projectName: string;
7768
+ shell?: string | undefined;
7656
7769
  }, {
7657
7770
  status: "running" | "exited";
7658
7771
  terminalId: string;
7659
- provider: string;
7660
7772
  cwd: string;
7661
- projectName: string;
7773
+ shell?: string | undefined;
7662
7774
  }>, "many">;
7663
7775
  }, "strip", z.ZodTypeAny, {
7664
7776
  terminals: {
7665
7777
  status: "running" | "exited";
7666
7778
  terminalId: string;
7667
- provider: string;
7668
7779
  cwd: string;
7669
- projectName: string;
7780
+ shell?: string | undefined;
7670
7781
  }[];
7671
7782
  }, {
7672
7783
  terminals: {
7673
7784
  status: "running" | "exited";
7674
7785
  terminalId: string;
7675
- provider: string;
7676
7786
  cwd: string;
7677
- projectName: string;
7787
+ shell?: string | undefined;
7678
7788
  }[];
7679
7789
  }>;
7680
7790
  readonly "terminal.browse": z.ZodObject<{
7681
7791
  path: z.ZodString;
7792
+ includeFiles: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7793
+ requestId: z.ZodOptional<z.ZodString>;
7682
7794
  }, "strip", z.ZodTypeAny, {
7683
7795
  path: string;
7796
+ includeFiles: boolean;
7797
+ requestId?: string | undefined;
7684
7798
  }, {
7685
7799
  path: string;
7800
+ requestId?: string | undefined;
7801
+ includeFiles?: boolean | undefined;
7686
7802
  }>;
7687
7803
  readonly "terminal.browse.result": z.ZodObject<{
7688
7804
  path: z.ZodString;
@@ -7690,23 +7806,33 @@ export declare const protocolMessageSchemas: {
7690
7806
  name: z.ZodString;
7691
7807
  path: z.ZodString;
7692
7808
  isDirectory: z.ZodBoolean;
7809
+ size: z.ZodOptional<z.ZodNumber>;
7810
+ modifiedAt: z.ZodOptional<z.ZodString>;
7693
7811
  }, "strip", z.ZodTypeAny, {
7694
7812
  path: string;
7695
7813
  name: string;
7696
7814
  isDirectory: boolean;
7815
+ size?: number | undefined;
7816
+ modifiedAt?: string | undefined;
7697
7817
  }, {
7698
7818
  path: string;
7699
7819
  name: string;
7700
7820
  isDirectory: boolean;
7821
+ size?: number | undefined;
7822
+ modifiedAt?: string | undefined;
7701
7823
  }>, "many">;
7702
7824
  error: z.ZodOptional<z.ZodString>;
7825
+ requestId: z.ZodOptional<z.ZodString>;
7703
7826
  }, "strip", z.ZodTypeAny, {
7704
7827
  path: string;
7705
7828
  entries: {
7706
7829
  path: string;
7707
7830
  name: string;
7708
7831
  isDirectory: boolean;
7832
+ size?: number | undefined;
7833
+ modifiedAt?: string | undefined;
7709
7834
  }[];
7835
+ requestId?: string | undefined;
7710
7836
  error?: string | undefined;
7711
7837
  }, {
7712
7838
  path: string;
@@ -7714,9 +7840,50 @@ export declare const protocolMessageSchemas: {
7714
7840
  path: string;
7715
7841
  name: string;
7716
7842
  isDirectory: boolean;
7843
+ size?: number | undefined;
7844
+ modifiedAt?: string | undefined;
7717
7845
  }[];
7846
+ requestId?: string | undefined;
7718
7847
  error?: string | undefined;
7719
7848
  }>;
7849
+ readonly "terminal.file.read": z.ZodObject<{
7850
+ path: z.ZodString;
7851
+ maxBytes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7852
+ requestId: z.ZodOptional<z.ZodString>;
7853
+ }, "strip", z.ZodTypeAny, {
7854
+ path: string;
7855
+ maxBytes: number;
7856
+ requestId?: string | undefined;
7857
+ }, {
7858
+ path: string;
7859
+ requestId?: string | undefined;
7860
+ maxBytes?: number | undefined;
7861
+ }>;
7862
+ readonly "terminal.file.read.result": z.ZodObject<{
7863
+ path: z.ZodString;
7864
+ content: z.ZodDefault<z.ZodString>;
7865
+ encoding: z.ZodDefault<z.ZodLiteral<"utf8">>;
7866
+ size: z.ZodOptional<z.ZodNumber>;
7867
+ truncated: z.ZodDefault<z.ZodBoolean>;
7868
+ error: z.ZodOptional<z.ZodString>;
7869
+ requestId: z.ZodOptional<z.ZodString>;
7870
+ }, "strip", z.ZodTypeAny, {
7871
+ path: string;
7872
+ encoding: "utf8";
7873
+ content: string;
7874
+ truncated: boolean;
7875
+ requestId?: string | undefined;
7876
+ error?: string | undefined;
7877
+ size?: number | undefined;
7878
+ }, {
7879
+ path: string;
7880
+ requestId?: string | undefined;
7881
+ encoding?: "utf8" | undefined;
7882
+ error?: string | undefined;
7883
+ size?: number | undefined;
7884
+ content?: string | undefined;
7885
+ truncated?: boolean | undefined;
7886
+ }>;
7720
7887
  readonly "terminal.kill": z.ZodObject<{
7721
7888
  terminalId: z.ZodString;
7722
7889
  }, "strip", z.ZodTypeAny, {
@@ -7983,7 +8150,7 @@ export declare const protocolMessageSchemas: {
7983
8150
  title: string;
7984
8151
  argsMode: "none" | "optional" | "required" | "raw";
7985
8152
  executionKind: "prompt" | "native" | "local_ui";
7986
- provider?: "custom" | "claude" | "codex" | undefined;
8153
+ provider?: "custom" | "codex" | "claude" | undefined;
7987
8154
  description?: string | undefined;
7988
8155
  category?: string | undefined;
7989
8156
  requiresIdle?: boolean | undefined;
@@ -7993,8 +8160,8 @@ export declare const protocolMessageSchemas: {
7993
8160
  name: string;
7994
8161
  id: string;
7995
8162
  title: string;
7996
- provider?: "custom" | "claude" | "codex" | undefined;
7997
8163
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8164
+ provider?: "custom" | "codex" | "claude" | undefined;
7998
8165
  description?: string | undefined;
7999
8166
  category?: string | undefined;
8000
8167
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -8020,7 +8187,7 @@ export declare const protocolMessageSchemas: {
8020
8187
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
8021
8188
  }, "strip", z.ZodTypeAny, {
8022
8189
  enabled: boolean;
8023
- id: "custom" | "claude" | "codex";
8190
+ id: "custom" | "codex" | "claude";
8024
8191
  label: string;
8025
8192
  reason?: string | undefined;
8026
8193
  supportsImages?: boolean | undefined;
@@ -8041,7 +8208,7 @@ export declare const protocolMessageSchemas: {
8041
8208
  title: string;
8042
8209
  argsMode: "none" | "optional" | "required" | "raw";
8043
8210
  executionKind: "prompt" | "native" | "local_ui";
8044
- provider?: "custom" | "claude" | "codex" | undefined;
8211
+ provider?: "custom" | "codex" | "claude" | undefined;
8045
8212
  description?: string | undefined;
8046
8213
  category?: string | undefined;
8047
8214
  requiresIdle?: boolean | undefined;
@@ -8057,7 +8224,7 @@ export declare const protocolMessageSchemas: {
8057
8224
  features?: Record<string, boolean> | undefined;
8058
8225
  }, {
8059
8226
  enabled: boolean;
8060
- id: "custom" | "claude" | "codex";
8227
+ id: "custom" | "codex" | "claude";
8061
8228
  label: string;
8062
8229
  reason?: string | undefined;
8063
8230
  supportsImages?: boolean | undefined;
@@ -8075,8 +8242,8 @@ export declare const protocolMessageSchemas: {
8075
8242
  name: string;
8076
8243
  id: string;
8077
8244
  title: string;
8078
- provider?: "custom" | "claude" | "codex" | undefined;
8079
8245
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8246
+ provider?: "custom" | "codex" | "claude" | undefined;
8080
8247
  description?: string | undefined;
8081
8248
  category?: string | undefined;
8082
8249
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -8111,13 +8278,13 @@ export declare const protocolMessageSchemas: {
8111
8278
  supportsSessionList: boolean;
8112
8279
  supportsSessionLoad: boolean;
8113
8280
  supportsAudio: boolean;
8114
- provider?: "custom" | "claude" | "codex" | undefined;
8115
8281
  protocolVersion?: number | undefined;
8116
8282
  machineId?: string | undefined;
8117
8283
  error?: string | undefined;
8284
+ provider?: "custom" | "codex" | "claude" | undefined;
8118
8285
  providers?: {
8119
8286
  enabled: boolean;
8120
- id: "custom" | "claude" | "codex";
8287
+ id: "custom" | "codex" | "claude";
8121
8288
  label: string;
8122
8289
  reason?: string | undefined;
8123
8290
  supportsImages?: boolean | undefined;
@@ -8138,7 +8305,7 @@ export declare const protocolMessageSchemas: {
8138
8305
  title: string;
8139
8306
  argsMode: "none" | "optional" | "required" | "raw";
8140
8307
  executionKind: "prompt" | "native" | "local_ui";
8141
- provider?: "custom" | "claude" | "codex" | undefined;
8308
+ provider?: "custom" | "codex" | "claude" | undefined;
8142
8309
  description?: string | undefined;
8143
8310
  category?: string | undefined;
8144
8311
  requiresIdle?: boolean | undefined;
@@ -8155,17 +8322,17 @@ export declare const protocolMessageSchemas: {
8155
8322
  }[] | undefined;
8156
8323
  }, {
8157
8324
  enabled: boolean;
8158
- provider?: "custom" | "claude" | "codex" | undefined;
8159
8325
  protocolVersion?: number | undefined;
8160
8326
  machineId?: string | undefined;
8161
8327
  error?: string | undefined;
8328
+ provider?: "custom" | "codex" | "claude" | undefined;
8162
8329
  supportsImages?: boolean | undefined;
8163
8330
  supportsPermission?: boolean | undefined;
8164
8331
  supportsPlan?: boolean | undefined;
8165
8332
  supportsCancel?: boolean | undefined;
8166
8333
  providers?: {
8167
8334
  enabled: boolean;
8168
- id: "custom" | "claude" | "codex";
8335
+ id: "custom" | "codex" | "claude";
8169
8336
  label: string;
8170
8337
  reason?: string | undefined;
8171
8338
  supportsImages?: boolean | undefined;
@@ -8183,8 +8350,8 @@ export declare const protocolMessageSchemas: {
8183
8350
  name: string;
8184
8351
  id: string;
8185
8352
  title: string;
8186
- provider?: "custom" | "claude" | "codex" | undefined;
8187
8353
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8354
+ provider?: "custom" | "codex" | "claude" | undefined;
8188
8355
  description?: string | undefined;
8189
8356
  category?: string | undefined;
8190
8357
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -8210,12 +8377,12 @@ export declare const protocolMessageSchemas: {
8210
8377
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
8211
8378
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8212
8379
  }, "strip", z.ZodTypeAny, {
8213
- provider?: "custom" | "claude" | "codex" | undefined;
8214
8380
  cwd?: string | undefined;
8381
+ provider?: "custom" | "codex" | "claude" | undefined;
8215
8382
  mcpServers?: Record<string, unknown> | undefined;
8216
8383
  }, {
8217
- provider?: "custom" | "claude" | "codex" | undefined;
8218
8384
  cwd?: string | undefined;
8385
+ provider?: "custom" | "codex" | "claude" | undefined;
8219
8386
  mcpServers?: Record<string, unknown> | undefined;
8220
8387
  }>;
8221
8388
  readonly "agent.session.load": z.ZodObject<{
@@ -8294,14 +8461,14 @@ export declare const protocolMessageSchemas: {
8294
8461
  isStreaming: z.ZodOptional<z.ZodBoolean>;
8295
8462
  }, "strip", z.ZodTypeAny, {
8296
8463
  role: "user" | "assistant" | "system";
8297
- id: string;
8298
8464
  content: string;
8465
+ id: string;
8299
8466
  createdAt: number;
8300
8467
  isStreaming?: boolean | undefined;
8301
8468
  }, {
8302
8469
  role: "user" | "assistant" | "system";
8303
- id: string;
8304
8470
  content: string;
8471
+ id: string;
8305
8472
  createdAt: number;
8306
8473
  isStreaming?: boolean | undefined;
8307
8474
  }>>;
@@ -8347,8 +8514,8 @@ export declare const protocolMessageSchemas: {
8347
8514
  kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
8348
8515
  message?: {
8349
8516
  role: "user" | "assistant" | "system";
8350
- id: string;
8351
8517
  content: string;
8518
+ id: string;
8352
8519
  createdAt: number;
8353
8520
  isStreaming?: boolean | undefined;
8354
8521
  } | undefined;
@@ -8373,8 +8540,8 @@ export declare const protocolMessageSchemas: {
8373
8540
  kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
8374
8541
  message?: {
8375
8542
  role: "user" | "assistant" | "system";
8376
- id: string;
8377
8543
  content: string;
8544
+ id: string;
8378
8545
  createdAt: number;
8379
8546
  isStreaming?: boolean | undefined;
8380
8547
  } | undefined;
@@ -8503,7 +8670,7 @@ export declare const protocolMessageSchemas: {
8503
8670
  title: string;
8504
8671
  argsMode: "none" | "optional" | "required" | "raw";
8505
8672
  executionKind: "prompt" | "native" | "local_ui";
8506
- provider?: "custom" | "claude" | "codex" | undefined;
8673
+ provider?: "custom" | "codex" | "claude" | undefined;
8507
8674
  description?: string | undefined;
8508
8675
  category?: string | undefined;
8509
8676
  requiresIdle?: boolean | undefined;
@@ -8513,8 +8680,8 @@ export declare const protocolMessageSchemas: {
8513
8680
  name: string;
8514
8681
  id: string;
8515
8682
  title: string;
8516
- provider?: "custom" | "claude" | "codex" | undefined;
8517
8683
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8684
+ provider?: "custom" | "codex" | "claude" | undefined;
8518
8685
  description?: string | undefined;
8519
8686
  category?: string | undefined;
8520
8687
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -8540,7 +8707,7 @@ export declare const protocolMessageSchemas: {
8540
8707
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
8541
8708
  }, "strip", z.ZodTypeAny, {
8542
8709
  enabled: boolean;
8543
- id: "custom" | "claude" | "codex";
8710
+ id: "custom" | "codex" | "claude";
8544
8711
  label: string;
8545
8712
  reason?: string | undefined;
8546
8713
  supportsImages?: boolean | undefined;
@@ -8561,7 +8728,7 @@ export declare const protocolMessageSchemas: {
8561
8728
  title: string;
8562
8729
  argsMode: "none" | "optional" | "required" | "raw";
8563
8730
  executionKind: "prompt" | "native" | "local_ui";
8564
- provider?: "custom" | "claude" | "codex" | undefined;
8731
+ provider?: "custom" | "codex" | "claude" | undefined;
8565
8732
  description?: string | undefined;
8566
8733
  category?: string | undefined;
8567
8734
  requiresIdle?: boolean | undefined;
@@ -8577,7 +8744,7 @@ export declare const protocolMessageSchemas: {
8577
8744
  features?: Record<string, boolean> | undefined;
8578
8745
  }, {
8579
8746
  enabled: boolean;
8580
- id: "custom" | "claude" | "codex";
8747
+ id: "custom" | "codex" | "claude";
8581
8748
  label: string;
8582
8749
  reason?: string | undefined;
8583
8750
  supportsImages?: boolean | undefined;
@@ -8595,8 +8762,8 @@ export declare const protocolMessageSchemas: {
8595
8762
  name: string;
8596
8763
  id: string;
8597
8764
  title: string;
8598
- provider?: "custom" | "claude" | "codex" | undefined;
8599
8765
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8766
+ provider?: "custom" | "codex" | "claude" | undefined;
8600
8767
  description?: string | undefined;
8601
8768
  category?: string | undefined;
8602
8769
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -8631,13 +8798,13 @@ export declare const protocolMessageSchemas: {
8631
8798
  supportsSessionList: boolean;
8632
8799
  supportsSessionLoad: boolean;
8633
8800
  supportsAudio: boolean;
8634
- provider?: "custom" | "claude" | "codex" | undefined;
8635
8801
  protocolVersion?: number | undefined;
8636
8802
  machineId?: string | undefined;
8637
8803
  error?: string | undefined;
8804
+ provider?: "custom" | "codex" | "claude" | undefined;
8638
8805
  providers?: {
8639
8806
  enabled: boolean;
8640
- id: "custom" | "claude" | "codex";
8807
+ id: "custom" | "codex" | "claude";
8641
8808
  label: string;
8642
8809
  reason?: string | undefined;
8643
8810
  supportsImages?: boolean | undefined;
@@ -8658,7 +8825,7 @@ export declare const protocolMessageSchemas: {
8658
8825
  title: string;
8659
8826
  argsMode: "none" | "optional" | "required" | "raw";
8660
8827
  executionKind: "prompt" | "native" | "local_ui";
8661
- provider?: "custom" | "claude" | "codex" | undefined;
8828
+ provider?: "custom" | "codex" | "claude" | undefined;
8662
8829
  description?: string | undefined;
8663
8830
  category?: string | undefined;
8664
8831
  requiresIdle?: boolean | undefined;
@@ -8675,17 +8842,17 @@ export declare const protocolMessageSchemas: {
8675
8842
  }[] | undefined;
8676
8843
  }, {
8677
8844
  enabled: boolean;
8678
- provider?: "custom" | "claude" | "codex" | undefined;
8679
8845
  protocolVersion?: number | undefined;
8680
8846
  machineId?: string | undefined;
8681
8847
  error?: string | undefined;
8848
+ provider?: "custom" | "codex" | "claude" | undefined;
8682
8849
  supportsImages?: boolean | undefined;
8683
8850
  supportsPermission?: boolean | undefined;
8684
8851
  supportsPlan?: boolean | undefined;
8685
8852
  supportsCancel?: boolean | undefined;
8686
8853
  providers?: {
8687
8854
  enabled: boolean;
8688
- id: "custom" | "claude" | "codex";
8855
+ id: "custom" | "codex" | "claude";
8689
8856
  label: string;
8690
8857
  reason?: string | undefined;
8691
8858
  supportsImages?: boolean | undefined;
@@ -8703,8 +8870,8 @@ export declare const protocolMessageSchemas: {
8703
8870
  name: string;
8704
8871
  id: string;
8705
8872
  title: string;
8706
- provider?: "custom" | "claude" | "codex" | undefined;
8707
8873
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8874
+ provider?: "custom" | "codex" | "claude" | undefined;
8708
8875
  description?: string | undefined;
8709
8876
  category?: string | undefined;
8710
8877
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -8733,14 +8900,14 @@ export declare const protocolMessageSchemas: {
8733
8900
  isStreaming: z.ZodOptional<z.ZodBoolean>;
8734
8901
  }, "strip", z.ZodTypeAny, {
8735
8902
  role: "user" | "assistant" | "system";
8736
- id: string;
8737
8903
  content: string;
8904
+ id: string;
8738
8905
  createdAt: number;
8739
8906
  isStreaming?: boolean | undefined;
8740
8907
  }, {
8741
8908
  role: "user" | "assistant" | "system";
8742
- id: string;
8743
8909
  content: string;
8910
+ id: string;
8744
8911
  createdAt: number;
8745
8912
  isStreaming?: boolean | undefined;
8746
8913
  }>, "many">>;
@@ -8811,8 +8978,8 @@ export declare const protocolMessageSchemas: {
8811
8978
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
8812
8979
  messages: {
8813
8980
  role: "user" | "assistant" | "system";
8814
- id: string;
8815
8981
  content: string;
8982
+ id: string;
8816
8983
  createdAt: number;
8817
8984
  isStreaming?: boolean | undefined;
8818
8985
  }[];
@@ -8836,7 +9003,6 @@ export declare const protocolMessageSchemas: {
8836
9003
  context?: string | undefined;
8837
9004
  }[];
8838
9005
  agentSessionId?: string | undefined;
8839
- error?: string | undefined;
8840
9006
  capabilities?: {
8841
9007
  enabled: boolean;
8842
9008
  supportsImages: boolean;
@@ -8846,13 +9012,13 @@ export declare const protocolMessageSchemas: {
8846
9012
  supportsSessionList: boolean;
8847
9013
  supportsSessionLoad: boolean;
8848
9014
  supportsAudio: boolean;
8849
- provider?: "custom" | "claude" | "codex" | undefined;
8850
9015
  protocolVersion?: number | undefined;
8851
9016
  machineId?: string | undefined;
8852
9017
  error?: string | undefined;
9018
+ provider?: "custom" | "codex" | "claude" | undefined;
8853
9019
  providers?: {
8854
9020
  enabled: boolean;
8855
- id: "custom" | "claude" | "codex";
9021
+ id: "custom" | "codex" | "claude";
8856
9022
  label: string;
8857
9023
  reason?: string | undefined;
8858
9024
  supportsImages?: boolean | undefined;
@@ -8873,7 +9039,7 @@ export declare const protocolMessageSchemas: {
8873
9039
  title: string;
8874
9040
  argsMode: "none" | "optional" | "required" | "raw";
8875
9041
  executionKind: "prompt" | "native" | "local_ui";
8876
- provider?: "custom" | "claude" | "codex" | undefined;
9042
+ provider?: "custom" | "codex" | "claude" | undefined;
8877
9043
  description?: string | undefined;
8878
9044
  category?: string | undefined;
8879
9045
  requiresIdle?: boolean | undefined;
@@ -8889,23 +9055,23 @@ export declare const protocolMessageSchemas: {
8889
9055
  features?: Record<string, boolean> | undefined;
8890
9056
  }[] | undefined;
8891
9057
  } | undefined;
9058
+ error?: string | undefined;
8892
9059
  }, {
8893
9060
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
8894
9061
  agentSessionId?: string | undefined;
8895
- error?: string | undefined;
8896
9062
  capabilities?: {
8897
9063
  enabled: boolean;
8898
- provider?: "custom" | "claude" | "codex" | undefined;
8899
9064
  protocolVersion?: number | undefined;
8900
9065
  machineId?: string | undefined;
8901
9066
  error?: string | undefined;
9067
+ provider?: "custom" | "codex" | "claude" | undefined;
8902
9068
  supportsImages?: boolean | undefined;
8903
9069
  supportsPermission?: boolean | undefined;
8904
9070
  supportsPlan?: boolean | undefined;
8905
9071
  supportsCancel?: boolean | undefined;
8906
9072
  providers?: {
8907
9073
  enabled: boolean;
8908
- id: "custom" | "claude" | "codex";
9074
+ id: "custom" | "codex" | "claude";
8909
9075
  label: string;
8910
9076
  reason?: string | undefined;
8911
9077
  supportsImages?: boolean | undefined;
@@ -8923,8 +9089,8 @@ export declare const protocolMessageSchemas: {
8923
9089
  name: string;
8924
9090
  id: string;
8925
9091
  title: string;
8926
- provider?: "custom" | "claude" | "codex" | undefined;
8927
9092
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
9093
+ provider?: "custom" | "codex" | "claude" | undefined;
8928
9094
  description?: string | undefined;
8929
9095
  category?: string | undefined;
8930
9096
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -8945,10 +9111,11 @@ export declare const protocolMessageSchemas: {
8945
9111
  supportsSessionLoad?: boolean | undefined;
8946
9112
  supportsAudio?: boolean | undefined;
8947
9113
  } | undefined;
9114
+ error?: string | undefined;
8948
9115
  messages?: {
8949
9116
  role: "user" | "assistant" | "system";
8950
- id: string;
8951
9117
  content: string;
9118
+ id: string;
8952
9119
  createdAt: number;
8953
9120
  isStreaming?: boolean | undefined;
8954
9121
  }[] | undefined;
@@ -9019,7 +9186,7 @@ export declare const protocolMessageSchemas: {
9019
9186
  title: string;
9020
9187
  argsMode: "none" | "optional" | "required" | "raw";
9021
9188
  executionKind: "prompt" | "native" | "local_ui";
9022
- provider?: "custom" | "claude" | "codex" | undefined;
9189
+ provider?: "custom" | "codex" | "claude" | undefined;
9023
9190
  description?: string | undefined;
9024
9191
  category?: string | undefined;
9025
9192
  requiresIdle?: boolean | undefined;
@@ -9029,8 +9196,8 @@ export declare const protocolMessageSchemas: {
9029
9196
  name: string;
9030
9197
  id: string;
9031
9198
  title: string;
9032
- provider?: "custom" | "claude" | "codex" | undefined;
9033
9199
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
9200
+ provider?: "custom" | "codex" | "claude" | undefined;
9034
9201
  description?: string | undefined;
9035
9202
  category?: string | undefined;
9036
9203
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -9056,7 +9223,7 @@ export declare const protocolMessageSchemas: {
9056
9223
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
9057
9224
  }, "strip", z.ZodTypeAny, {
9058
9225
  enabled: boolean;
9059
- id: "custom" | "claude" | "codex";
9226
+ id: "custom" | "codex" | "claude";
9060
9227
  label: string;
9061
9228
  reason?: string | undefined;
9062
9229
  supportsImages?: boolean | undefined;
@@ -9077,7 +9244,7 @@ export declare const protocolMessageSchemas: {
9077
9244
  title: string;
9078
9245
  argsMode: "none" | "optional" | "required" | "raw";
9079
9246
  executionKind: "prompt" | "native" | "local_ui";
9080
- provider?: "custom" | "claude" | "codex" | undefined;
9247
+ provider?: "custom" | "codex" | "claude" | undefined;
9081
9248
  description?: string | undefined;
9082
9249
  category?: string | undefined;
9083
9250
  requiresIdle?: boolean | undefined;
@@ -9093,7 +9260,7 @@ export declare const protocolMessageSchemas: {
9093
9260
  features?: Record<string, boolean> | undefined;
9094
9261
  }, {
9095
9262
  enabled: boolean;
9096
- id: "custom" | "claude" | "codex";
9263
+ id: "custom" | "codex" | "claude";
9097
9264
  label: string;
9098
9265
  reason?: string | undefined;
9099
9266
  supportsImages?: boolean | undefined;
@@ -9111,8 +9278,8 @@ export declare const protocolMessageSchemas: {
9111
9278
  name: string;
9112
9279
  id: string;
9113
9280
  title: string;
9114
- provider?: "custom" | "claude" | "codex" | undefined;
9115
9281
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
9282
+ provider?: "custom" | "codex" | "claude" | undefined;
9116
9283
  description?: string | undefined;
9117
9284
  category?: string | undefined;
9118
9285
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -9150,13 +9317,13 @@ export declare const protocolMessageSchemas: {
9150
9317
  supportsSessionLoad: boolean;
9151
9318
  supportsAudio: boolean;
9152
9319
  workspaceProtocolVersion: number;
9153
- provider?: "custom" | "claude" | "codex" | undefined;
9154
9320
  protocolVersion?: number | undefined;
9155
9321
  machineId?: string | undefined;
9156
9322
  error?: string | undefined;
9323
+ provider?: "custom" | "codex" | "claude" | undefined;
9157
9324
  providers?: {
9158
9325
  enabled: boolean;
9159
- id: "custom" | "claude" | "codex";
9326
+ id: "custom" | "codex" | "claude";
9160
9327
  label: string;
9161
9328
  reason?: string | undefined;
9162
9329
  supportsImages?: boolean | undefined;
@@ -9177,7 +9344,7 @@ export declare const protocolMessageSchemas: {
9177
9344
  title: string;
9178
9345
  argsMode: "none" | "optional" | "required" | "raw";
9179
9346
  executionKind: "prompt" | "native" | "local_ui";
9180
- provider?: "custom" | "claude" | "codex" | undefined;
9347
+ provider?: "custom" | "codex" | "claude" | undefined;
9181
9348
  description?: string | undefined;
9182
9349
  category?: string | undefined;
9183
9350
  requiresIdle?: boolean | undefined;
@@ -9194,17 +9361,17 @@ export declare const protocolMessageSchemas: {
9194
9361
  }[] | undefined;
9195
9362
  }, {
9196
9363
  enabled: boolean;
9197
- provider?: "custom" | "claude" | "codex" | undefined;
9198
9364
  protocolVersion?: number | undefined;
9199
9365
  machineId?: string | undefined;
9200
9366
  error?: string | undefined;
9367
+ provider?: "custom" | "codex" | "claude" | undefined;
9201
9368
  supportsImages?: boolean | undefined;
9202
9369
  supportsPermission?: boolean | undefined;
9203
9370
  supportsPlan?: boolean | undefined;
9204
9371
  supportsCancel?: boolean | undefined;
9205
9372
  providers?: {
9206
9373
  enabled: boolean;
9207
- id: "custom" | "claude" | "codex";
9374
+ id: "custom" | "codex" | "claude";
9208
9375
  label: string;
9209
9376
  reason?: string | undefined;
9210
9377
  supportsImages?: boolean | undefined;
@@ -9222,8 +9389,8 @@ export declare const protocolMessageSchemas: {
9222
9389
  name: string;
9223
9390
  id: string;
9224
9391
  title: string;
9225
- provider?: "custom" | "claude" | "codex" | undefined;
9226
9392
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
9393
+ provider?: "custom" | "codex" | "claude" | undefined;
9227
9394
  description?: string | undefined;
9228
9395
  category?: string | undefined;
9229
9396
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -9258,8 +9425,8 @@ export declare const protocolMessageSchemas: {
9258
9425
  }, "strip", z.ZodTypeAny, {
9259
9426
  conversationId?: string | undefined;
9260
9427
  agentSessionId?: string | undefined;
9261
- provider?: "custom" | "claude" | "codex" | undefined;
9262
9428
  cwd?: string | undefined;
9429
+ provider?: "custom" | "codex" | "claude" | undefined;
9263
9430
  title?: string | undefined;
9264
9431
  model?: string | undefined;
9265
9432
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -9268,8 +9435,8 @@ export declare const protocolMessageSchemas: {
9268
9435
  }, {
9269
9436
  conversationId?: string | undefined;
9270
9437
  agentSessionId?: string | undefined;
9271
- provider?: "custom" | "claude" | "codex" | undefined;
9272
9438
  cwd?: string | undefined;
9439
+ provider?: "custom" | "codex" | "claude" | undefined;
9273
9440
  title?: string | undefined;
9274
9441
  model?: string | undefined;
9275
9442
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -9294,8 +9461,8 @@ export declare const protocolMessageSchemas: {
9294
9461
  createdAt: z.ZodNumber;
9295
9462
  }, "strip", z.ZodTypeAny, {
9296
9463
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
9297
- provider: "custom" | "claude" | "codex";
9298
9464
  cwd: string;
9465
+ provider: "custom" | "codex" | "claude";
9299
9466
  id: string;
9300
9467
  createdAt: number;
9301
9468
  archived: boolean;
@@ -9314,7 +9481,7 @@ export declare const protocolMessageSchemas: {
9314
9481
  lastActivityAt: number;
9315
9482
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9316
9483
  agentSessionId?: string | undefined;
9317
- provider?: "custom" | "claude" | "codex" | undefined;
9484
+ provider?: "custom" | "codex" | "claude" | undefined;
9318
9485
  title?: string | undefined;
9319
9486
  model?: string | undefined;
9320
9487
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -9657,6 +9824,12 @@ export declare const protocolMessageSchemas: {
9657
9824
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9658
9825
  role?: "user" | "assistant" | "system" | undefined;
9659
9826
  error?: string | undefined;
9827
+ content?: {
9828
+ type: "text" | "image";
9829
+ data?: string | undefined;
9830
+ text?: string | undefined;
9831
+ mimeType?: string | undefined;
9832
+ }[] | undefined;
9660
9833
  text?: string | undefined;
9661
9834
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9662
9835
  plan?: {
@@ -9664,12 +9837,6 @@ export declare const protocolMessageSchemas: {
9664
9837
  id: string;
9665
9838
  text: string;
9666
9839
  }[] | undefined;
9667
- content?: {
9668
- type: "text" | "image";
9669
- data?: string | undefined;
9670
- text?: string | undefined;
9671
- mimeType?: string | undefined;
9672
- }[] | undefined;
9673
9840
  isStreaming?: boolean | undefined;
9674
9841
  toolCall?: {
9675
9842
  status: "running" | "pending" | "completed" | "failed";
@@ -9757,6 +9924,12 @@ export declare const protocolMessageSchemas: {
9757
9924
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9758
9925
  role?: "user" | "assistant" | "system" | undefined;
9759
9926
  error?: string | undefined;
9927
+ content?: {
9928
+ type: "text" | "image";
9929
+ data?: string | undefined;
9930
+ text?: string | undefined;
9931
+ mimeType?: string | undefined;
9932
+ }[] | undefined;
9760
9933
  text?: string | undefined;
9761
9934
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9762
9935
  plan?: {
@@ -9764,12 +9937,6 @@ export declare const protocolMessageSchemas: {
9764
9937
  id: string;
9765
9938
  text: string;
9766
9939
  }[] | undefined;
9767
- content?: {
9768
- type: "text" | "image";
9769
- data?: string | undefined;
9770
- text?: string | undefined;
9771
- mimeType?: string | undefined;
9772
- }[] | undefined;
9773
9940
  isStreaming?: boolean | undefined;
9774
9941
  toolCall?: {
9775
9942
  name: string;
@@ -9853,8 +10020,8 @@ export declare const protocolMessageSchemas: {
9853
10020
  }, "strip", z.ZodTypeAny, {
9854
10021
  conversation: {
9855
10022
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
9856
- provider: "custom" | "claude" | "codex";
9857
10023
  cwd: string;
10024
+ provider: "custom" | "codex" | "claude";
9858
10025
  id: string;
9859
10026
  createdAt: number;
9860
10027
  archived: boolean;
@@ -9875,6 +10042,12 @@ export declare const protocolMessageSchemas: {
9875
10042
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9876
10043
  role?: "user" | "assistant" | "system" | undefined;
9877
10044
  error?: string | undefined;
10045
+ content?: {
10046
+ type: "text" | "image";
10047
+ data?: string | undefined;
10048
+ text?: string | undefined;
10049
+ mimeType?: string | undefined;
10050
+ }[] | undefined;
9878
10051
  text?: string | undefined;
9879
10052
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9880
10053
  plan?: {
@@ -9882,12 +10055,6 @@ export declare const protocolMessageSchemas: {
9882
10055
  id: string;
9883
10056
  text: string;
9884
10057
  }[] | undefined;
9885
- content?: {
9886
- type: "text" | "image";
9887
- data?: string | undefined;
9888
- text?: string | undefined;
9889
- mimeType?: string | undefined;
9890
- }[] | undefined;
9891
10058
  isStreaming?: boolean | undefined;
9892
10059
  toolCall?: {
9893
10060
  status: "running" | "pending" | "completed" | "failed";
@@ -9976,7 +10143,7 @@ export declare const protocolMessageSchemas: {
9976
10143
  lastActivityAt: number;
9977
10144
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9978
10145
  agentSessionId?: string | undefined;
9979
- provider?: "custom" | "claude" | "codex" | undefined;
10146
+ provider?: "custom" | "codex" | "claude" | undefined;
9980
10147
  title?: string | undefined;
9981
10148
  model?: string | undefined;
9982
10149
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -9993,6 +10160,12 @@ export declare const protocolMessageSchemas: {
9993
10160
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9994
10161
  role?: "user" | "assistant" | "system" | undefined;
9995
10162
  error?: string | undefined;
10163
+ content?: {
10164
+ type: "text" | "image";
10165
+ data?: string | undefined;
10166
+ text?: string | undefined;
10167
+ mimeType?: string | undefined;
10168
+ }[] | undefined;
9996
10169
  text?: string | undefined;
9997
10170
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9998
10171
  plan?: {
@@ -10000,12 +10173,6 @@ export declare const protocolMessageSchemas: {
10000
10173
  id: string;
10001
10174
  text: string;
10002
10175
  }[] | undefined;
10003
- content?: {
10004
- type: "text" | "image";
10005
- data?: string | undefined;
10006
- text?: string | undefined;
10007
- mimeType?: string | undefined;
10008
- }[] | undefined;
10009
10176
  isStreaming?: boolean | undefined;
10010
10177
  toolCall?: {
10011
10178
  name: string;
@@ -10112,8 +10279,8 @@ export declare const protocolMessageSchemas: {
10112
10279
  createdAt: z.ZodNumber;
10113
10280
  }, "strip", z.ZodTypeAny, {
10114
10281
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
10115
- provider: "custom" | "claude" | "codex";
10116
10282
  cwd: string;
10283
+ provider: "custom" | "codex" | "claude";
10117
10284
  id: string;
10118
10285
  createdAt: number;
10119
10286
  archived: boolean;
@@ -10132,7 +10299,7 @@ export declare const protocolMessageSchemas: {
10132
10299
  lastActivityAt: number;
10133
10300
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10134
10301
  agentSessionId?: string | undefined;
10135
- provider?: "custom" | "claude" | "codex" | undefined;
10302
+ provider?: "custom" | "codex" | "claude" | undefined;
10136
10303
  title?: string | undefined;
10137
10304
  model?: string | undefined;
10138
10305
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -10144,8 +10311,8 @@ export declare const protocolMessageSchemas: {
10144
10311
  }, "strip", z.ZodTypeAny, {
10145
10312
  conversations: {
10146
10313
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
10147
- provider: "custom" | "claude" | "codex";
10148
10314
  cwd: string;
10315
+ provider: "custom" | "codex" | "claude";
10149
10316
  id: string;
10150
10317
  createdAt: number;
10151
10318
  archived: boolean;
@@ -10166,7 +10333,7 @@ export declare const protocolMessageSchemas: {
10166
10333
  lastActivityAt: number;
10167
10334
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10168
10335
  agentSessionId?: string | undefined;
10169
- provider?: "custom" | "claude" | "codex" | undefined;
10336
+ provider?: "custom" | "codex" | "claude" | undefined;
10170
10337
  title?: string | undefined;
10171
10338
  model?: string | undefined;
10172
10339
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -10622,6 +10789,12 @@ export declare const protocolMessageSchemas: {
10622
10789
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10623
10790
  role?: "user" | "assistant" | "system" | undefined;
10624
10791
  error?: string | undefined;
10792
+ content?: {
10793
+ type: "text" | "image";
10794
+ data?: string | undefined;
10795
+ text?: string | undefined;
10796
+ mimeType?: string | undefined;
10797
+ }[] | undefined;
10625
10798
  text?: string | undefined;
10626
10799
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10627
10800
  plan?: {
@@ -10629,12 +10802,6 @@ export declare const protocolMessageSchemas: {
10629
10802
  id: string;
10630
10803
  text: string;
10631
10804
  }[] | undefined;
10632
- content?: {
10633
- type: "text" | "image";
10634
- data?: string | undefined;
10635
- text?: string | undefined;
10636
- mimeType?: string | undefined;
10637
- }[] | undefined;
10638
10805
  isStreaming?: boolean | undefined;
10639
10806
  toolCall?: {
10640
10807
  status: "running" | "pending" | "completed" | "failed";
@@ -10722,6 +10889,12 @@ export declare const protocolMessageSchemas: {
10722
10889
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10723
10890
  role?: "user" | "assistant" | "system" | undefined;
10724
10891
  error?: string | undefined;
10892
+ content?: {
10893
+ type: "text" | "image";
10894
+ data?: string | undefined;
10895
+ text?: string | undefined;
10896
+ mimeType?: string | undefined;
10897
+ }[] | undefined;
10725
10898
  text?: string | undefined;
10726
10899
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10727
10900
  plan?: {
@@ -10729,12 +10902,6 @@ export declare const protocolMessageSchemas: {
10729
10902
  id: string;
10730
10903
  text: string;
10731
10904
  }[] | undefined;
10732
- content?: {
10733
- type: "text" | "image";
10734
- data?: string | undefined;
10735
- text?: string | undefined;
10736
- mimeType?: string | undefined;
10737
- }[] | undefined;
10738
10905
  isStreaming?: boolean | undefined;
10739
10906
  toolCall?: {
10740
10907
  name: string;
@@ -10834,6 +11001,12 @@ export declare const protocolMessageSchemas: {
10834
11001
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10835
11002
  role?: "user" | "assistant" | "system" | undefined;
10836
11003
  error?: string | undefined;
11004
+ content?: {
11005
+ type: "text" | "image";
11006
+ data?: string | undefined;
11007
+ text?: string | undefined;
11008
+ mimeType?: string | undefined;
11009
+ }[] | undefined;
10837
11010
  text?: string | undefined;
10838
11011
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10839
11012
  plan?: {
@@ -10841,12 +11014,6 @@ export declare const protocolMessageSchemas: {
10841
11014
  id: string;
10842
11015
  text: string;
10843
11016
  }[] | undefined;
10844
- content?: {
10845
- type: "text" | "image";
10846
- data?: string | undefined;
10847
- text?: string | undefined;
10848
- mimeType?: string | undefined;
10849
- }[] | undefined;
10850
11017
  isStreaming?: boolean | undefined;
10851
11018
  toolCall?: {
10852
11019
  status: "running" | "pending" | "completed" | "failed";
@@ -10946,6 +11113,12 @@ export declare const protocolMessageSchemas: {
10946
11113
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10947
11114
  role?: "user" | "assistant" | "system" | undefined;
10948
11115
  error?: string | undefined;
11116
+ content?: {
11117
+ type: "text" | "image";
11118
+ data?: string | undefined;
11119
+ text?: string | undefined;
11120
+ mimeType?: string | undefined;
11121
+ }[] | undefined;
10949
11122
  text?: string | undefined;
10950
11123
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10951
11124
  plan?: {
@@ -10953,12 +11126,6 @@ export declare const protocolMessageSchemas: {
10953
11126
  id: string;
10954
11127
  text: string;
10955
11128
  }[] | undefined;
10956
- content?: {
10957
- type: "text" | "image";
10958
- data?: string | undefined;
10959
- text?: string | undefined;
10960
- mimeType?: string | undefined;
10961
- }[] | undefined;
10962
11129
  isStreaming?: boolean | undefined;
10963
11130
  toolCall?: {
10964
11131
  name: string;
@@ -11078,8 +11245,8 @@ export declare const protocolMessageSchemas: {
11078
11245
  createdAt: z.ZodNumber;
11079
11246
  }, "strip", z.ZodTypeAny, {
11080
11247
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
11081
- provider: "custom" | "claude" | "codex";
11082
11248
  cwd: string;
11249
+ provider: "custom" | "codex" | "claude";
11083
11250
  id: string;
11084
11251
  createdAt: number;
11085
11252
  archived: boolean;
@@ -11098,7 +11265,7 @@ export declare const protocolMessageSchemas: {
11098
11265
  lastActivityAt: number;
11099
11266
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11100
11267
  agentSessionId?: string | undefined;
11101
- provider?: "custom" | "claude" | "codex" | undefined;
11268
+ provider?: "custom" | "codex" | "claude" | undefined;
11102
11269
  title?: string | undefined;
11103
11270
  model?: string | undefined;
11104
11271
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -11442,6 +11609,12 @@ export declare const protocolMessageSchemas: {
11442
11609
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11443
11610
  role?: "user" | "assistant" | "system" | undefined;
11444
11611
  error?: string | undefined;
11612
+ content?: {
11613
+ type: "text" | "image";
11614
+ data?: string | undefined;
11615
+ text?: string | undefined;
11616
+ mimeType?: string | undefined;
11617
+ }[] | undefined;
11445
11618
  text?: string | undefined;
11446
11619
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11447
11620
  plan?: {
@@ -11449,12 +11622,6 @@ export declare const protocolMessageSchemas: {
11449
11622
  id: string;
11450
11623
  text: string;
11451
11624
  }[] | undefined;
11452
- content?: {
11453
- type: "text" | "image";
11454
- data?: string | undefined;
11455
- text?: string | undefined;
11456
- mimeType?: string | undefined;
11457
- }[] | undefined;
11458
11625
  isStreaming?: boolean | undefined;
11459
11626
  toolCall?: {
11460
11627
  status: "running" | "pending" | "completed" | "failed";
@@ -11542,6 +11709,12 @@ export declare const protocolMessageSchemas: {
11542
11709
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11543
11710
  role?: "user" | "assistant" | "system" | undefined;
11544
11711
  error?: string | undefined;
11712
+ content?: {
11713
+ type: "text" | "image";
11714
+ data?: string | undefined;
11715
+ text?: string | undefined;
11716
+ mimeType?: string | undefined;
11717
+ }[] | undefined;
11545
11718
  text?: string | undefined;
11546
11719
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11547
11720
  plan?: {
@@ -11549,12 +11722,6 @@ export declare const protocolMessageSchemas: {
11549
11722
  id: string;
11550
11723
  text: string;
11551
11724
  }[] | undefined;
11552
- content?: {
11553
- type: "text" | "image";
11554
- data?: string | undefined;
11555
- text?: string | undefined;
11556
- mimeType?: string | undefined;
11557
- }[] | undefined;
11558
11725
  isStreaming?: boolean | undefined;
11559
11726
  toolCall?: {
11560
11727
  name: string;
@@ -11639,8 +11806,8 @@ export declare const protocolMessageSchemas: {
11639
11806
  }, "strip", z.ZodTypeAny, {
11640
11807
  conversations: {
11641
11808
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
11642
- provider: "custom" | "claude" | "codex";
11643
11809
  cwd: string;
11810
+ provider: "custom" | "codex" | "claude";
11644
11811
  id: string;
11645
11812
  createdAt: number;
11646
11813
  archived: boolean;
@@ -11661,6 +11828,12 @@ export declare const protocolMessageSchemas: {
11661
11828
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11662
11829
  role?: "user" | "assistant" | "system" | undefined;
11663
11830
  error?: string | undefined;
11831
+ content?: {
11832
+ type: "text" | "image";
11833
+ data?: string | undefined;
11834
+ text?: string | undefined;
11835
+ mimeType?: string | undefined;
11836
+ }[] | undefined;
11664
11837
  text?: string | undefined;
11665
11838
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11666
11839
  plan?: {
@@ -11668,12 +11841,6 @@ export declare const protocolMessageSchemas: {
11668
11841
  id: string;
11669
11842
  text: string;
11670
11843
  }[] | undefined;
11671
- content?: {
11672
- type: "text" | "image";
11673
- data?: string | undefined;
11674
- text?: string | undefined;
11675
- mimeType?: string | undefined;
11676
- }[] | undefined;
11677
11844
  isStreaming?: boolean | undefined;
11678
11845
  toolCall?: {
11679
11846
  status: "running" | "pending" | "completed" | "failed";
@@ -11765,7 +11932,7 @@ export declare const protocolMessageSchemas: {
11765
11932
  lastActivityAt: number;
11766
11933
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11767
11934
  agentSessionId?: string | undefined;
11768
- provider?: "custom" | "claude" | "codex" | undefined;
11935
+ provider?: "custom" | "codex" | "claude" | undefined;
11769
11936
  title?: string | undefined;
11770
11937
  model?: string | undefined;
11771
11938
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -11783,6 +11950,12 @@ export declare const protocolMessageSchemas: {
11783
11950
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11784
11951
  role?: "user" | "assistant" | "system" | undefined;
11785
11952
  error?: string | undefined;
11953
+ content?: {
11954
+ type: "text" | "image";
11955
+ data?: string | undefined;
11956
+ text?: string | undefined;
11957
+ mimeType?: string | undefined;
11958
+ }[] | undefined;
11786
11959
  text?: string | undefined;
11787
11960
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11788
11961
  plan?: {
@@ -11790,12 +11963,6 @@ export declare const protocolMessageSchemas: {
11790
11963
  id: string;
11791
11964
  text: string;
11792
11965
  }[] | undefined;
11793
- content?: {
11794
- type: "text" | "image";
11795
- data?: string | undefined;
11796
- text?: string | undefined;
11797
- mimeType?: string | undefined;
11798
- }[] | undefined;
11799
11966
  isStreaming?: boolean | undefined;
11800
11967
  toolCall?: {
11801
11968
  name: string;
@@ -11896,8 +12063,8 @@ export declare const protocolMessageSchemas: {
11896
12063
  createdAt: z.ZodNumber;
11897
12064
  }, "strip", z.ZodTypeAny, {
11898
12065
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
11899
- provider: "custom" | "claude" | "codex";
11900
12066
  cwd: string;
12067
+ provider: "custom" | "codex" | "claude";
11901
12068
  id: string;
11902
12069
  createdAt: number;
11903
12070
  archived: boolean;
@@ -11916,7 +12083,7 @@ export declare const protocolMessageSchemas: {
11916
12083
  lastActivityAt: number;
11917
12084
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11918
12085
  agentSessionId?: string | undefined;
11919
- provider?: "custom" | "claude" | "codex" | undefined;
12086
+ provider?: "custom" | "codex" | "claude" | undefined;
11920
12087
  title?: string | undefined;
11921
12088
  model?: string | undefined;
11922
12089
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -12259,6 +12426,12 @@ export declare const protocolMessageSchemas: {
12259
12426
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12260
12427
  role?: "user" | "assistant" | "system" | undefined;
12261
12428
  error?: string | undefined;
12429
+ content?: {
12430
+ type: "text" | "image";
12431
+ data?: string | undefined;
12432
+ text?: string | undefined;
12433
+ mimeType?: string | undefined;
12434
+ }[] | undefined;
12262
12435
  text?: string | undefined;
12263
12436
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12264
12437
  plan?: {
@@ -12266,12 +12439,6 @@ export declare const protocolMessageSchemas: {
12266
12439
  id: string;
12267
12440
  text: string;
12268
12441
  }[] | undefined;
12269
- content?: {
12270
- type: "text" | "image";
12271
- data?: string | undefined;
12272
- text?: string | undefined;
12273
- mimeType?: string | undefined;
12274
- }[] | undefined;
12275
12442
  isStreaming?: boolean | undefined;
12276
12443
  toolCall?: {
12277
12444
  status: "running" | "pending" | "completed" | "failed";
@@ -12359,6 +12526,12 @@ export declare const protocolMessageSchemas: {
12359
12526
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12360
12527
  role?: "user" | "assistant" | "system" | undefined;
12361
12528
  error?: string | undefined;
12529
+ content?: {
12530
+ type: "text" | "image";
12531
+ data?: string | undefined;
12532
+ text?: string | undefined;
12533
+ mimeType?: string | undefined;
12534
+ }[] | undefined;
12362
12535
  text?: string | undefined;
12363
12536
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12364
12537
  plan?: {
@@ -12366,12 +12539,6 @@ export declare const protocolMessageSchemas: {
12366
12539
  id: string;
12367
12540
  text: string;
12368
12541
  }[] | undefined;
12369
- content?: {
12370
- type: "text" | "image";
12371
- data?: string | undefined;
12372
- text?: string | undefined;
12373
- mimeType?: string | undefined;
12374
- }[] | undefined;
12375
12542
  isStreaming?: boolean | undefined;
12376
12543
  toolCall?: {
12377
12544
  name: string;
@@ -12779,6 +12946,12 @@ export declare const protocolMessageSchemas: {
12779
12946
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12780
12947
  role?: "user" | "assistant" | "system" | undefined;
12781
12948
  error?: string | undefined;
12949
+ content?: {
12950
+ type: "text" | "image";
12951
+ data?: string | undefined;
12952
+ text?: string | undefined;
12953
+ mimeType?: string | undefined;
12954
+ }[] | undefined;
12782
12955
  text?: string | undefined;
12783
12956
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12784
12957
  plan?: {
@@ -12786,12 +12959,6 @@ export declare const protocolMessageSchemas: {
12786
12959
  id: string;
12787
12960
  text: string;
12788
12961
  }[] | undefined;
12789
- content?: {
12790
- type: "text" | "image";
12791
- data?: string | undefined;
12792
- text?: string | undefined;
12793
- mimeType?: string | undefined;
12794
- }[] | undefined;
12795
12962
  isStreaming?: boolean | undefined;
12796
12963
  toolCall?: {
12797
12964
  status: "running" | "pending" | "completed" | "failed";
@@ -12875,6 +13042,12 @@ export declare const protocolMessageSchemas: {
12875
13042
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12876
13043
  role?: "user" | "assistant" | "system" | undefined;
12877
13044
  error?: string | undefined;
13045
+ content?: {
13046
+ type: "text" | "image";
13047
+ data?: string | undefined;
13048
+ text?: string | undefined;
13049
+ mimeType?: string | undefined;
13050
+ }[] | undefined;
12878
13051
  text?: string | undefined;
12879
13052
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12880
13053
  plan?: {
@@ -12882,12 +13055,6 @@ export declare const protocolMessageSchemas: {
12882
13055
  id: string;
12883
13056
  text: string;
12884
13057
  }[] | undefined;
12885
- content?: {
12886
- type: "text" | "image";
12887
- data?: string | undefined;
12888
- text?: string | undefined;
12889
- mimeType?: string | undefined;
12890
- }[] | undefined;
12891
13058
  isStreaming?: boolean | undefined;
12892
13059
  toolCall?: {
12893
13060
  name: string;
@@ -12971,8 +13138,8 @@ export declare const protocolMessageSchemas: {
12971
13138
  conversationId: string;
12972
13139
  conversation?: {
12973
13140
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
12974
- provider: "custom" | "claude" | "codex";
12975
13141
  cwd: string;
13142
+ provider: "custom" | "codex" | "claude";
12976
13143
  id: string;
12977
13144
  createdAt: number;
12978
13145
  archived: boolean;
@@ -12993,6 +13160,12 @@ export declare const protocolMessageSchemas: {
12993
13160
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12994
13161
  role?: "user" | "assistant" | "system" | undefined;
12995
13162
  error?: string | undefined;
13163
+ content?: {
13164
+ type: "text" | "image";
13165
+ data?: string | undefined;
13166
+ text?: string | undefined;
13167
+ mimeType?: string | undefined;
13168
+ }[] | undefined;
12996
13169
  text?: string | undefined;
12997
13170
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12998
13171
  plan?: {
@@ -13000,12 +13173,6 @@ export declare const protocolMessageSchemas: {
13000
13173
  id: string;
13001
13174
  text: string;
13002
13175
  }[] | undefined;
13003
- content?: {
13004
- type: "text" | "image";
13005
- data?: string | undefined;
13006
- text?: string | undefined;
13007
- mimeType?: string | undefined;
13008
- }[] | undefined;
13009
13176
  isStreaming?: boolean | undefined;
13010
13177
  toolCall?: {
13011
13178
  status: "running" | "pending" | "completed" | "failed";
@@ -13091,6 +13258,12 @@ export declare const protocolMessageSchemas: {
13091
13258
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13092
13259
  role?: "user" | "assistant" | "system" | undefined;
13093
13260
  error?: string | undefined;
13261
+ content?: {
13262
+ type: "text" | "image";
13263
+ data?: string | undefined;
13264
+ text?: string | undefined;
13265
+ mimeType?: string | undefined;
13266
+ }[] | undefined;
13094
13267
  text?: string | undefined;
13095
13268
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13096
13269
  plan?: {
@@ -13098,12 +13271,6 @@ export declare const protocolMessageSchemas: {
13098
13271
  id: string;
13099
13272
  text: string;
13100
13273
  }[] | undefined;
13101
- content?: {
13102
- type: "text" | "image";
13103
- data?: string | undefined;
13104
- text?: string | undefined;
13105
- mimeType?: string | undefined;
13106
- }[] | undefined;
13107
13274
  isStreaming?: boolean | undefined;
13108
13275
  toolCall?: {
13109
13276
  status: "running" | "pending" | "completed" | "failed";
@@ -13192,7 +13359,7 @@ export declare const protocolMessageSchemas: {
13192
13359
  lastActivityAt: number;
13193
13360
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13194
13361
  agentSessionId?: string | undefined;
13195
- provider?: "custom" | "claude" | "codex" | undefined;
13362
+ provider?: "custom" | "codex" | "claude" | undefined;
13196
13363
  title?: string | undefined;
13197
13364
  model?: string | undefined;
13198
13365
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -13209,6 +13376,12 @@ export declare const protocolMessageSchemas: {
13209
13376
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13210
13377
  role?: "user" | "assistant" | "system" | undefined;
13211
13378
  error?: string | undefined;
13379
+ content?: {
13380
+ type: "text" | "image";
13381
+ data?: string | undefined;
13382
+ text?: string | undefined;
13383
+ mimeType?: string | undefined;
13384
+ }[] | undefined;
13212
13385
  text?: string | undefined;
13213
13386
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13214
13387
  plan?: {
@@ -13216,12 +13389,6 @@ export declare const protocolMessageSchemas: {
13216
13389
  id: string;
13217
13390
  text: string;
13218
13391
  }[] | undefined;
13219
- content?: {
13220
- type: "text" | "image";
13221
- data?: string | undefined;
13222
- text?: string | undefined;
13223
- mimeType?: string | undefined;
13224
- }[] | undefined;
13225
13392
  isStreaming?: boolean | undefined;
13226
13393
  toolCall?: {
13227
13394
  name: string;
@@ -13307,6 +13474,12 @@ export declare const protocolMessageSchemas: {
13307
13474
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13308
13475
  role?: "user" | "assistant" | "system" | undefined;
13309
13476
  error?: string | undefined;
13477
+ content?: {
13478
+ type: "text" | "image";
13479
+ data?: string | undefined;
13480
+ text?: string | undefined;
13481
+ mimeType?: string | undefined;
13482
+ }[] | undefined;
13310
13483
  text?: string | undefined;
13311
13484
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13312
13485
  plan?: {
@@ -13314,12 +13487,6 @@ export declare const protocolMessageSchemas: {
13314
13487
  id: string;
13315
13488
  text: string;
13316
13489
  }[] | undefined;
13317
- content?: {
13318
- type: "text" | "image";
13319
- data?: string | undefined;
13320
- text?: string | undefined;
13321
- mimeType?: string | undefined;
13322
- }[] | undefined;
13323
13490
  isStreaming?: boolean | undefined;
13324
13491
  toolCall?: {
13325
13492
  name: string;
@@ -13404,7 +13571,8 @@ export declare const protocolMessageSchemas: {
13404
13571
  export type ProtocolMessageType = keyof typeof protocolMessageSchemas;
13405
13572
  export declare function createEnvelope<T>(input: {
13406
13573
  type: ProtocolMessageType;
13407
- sessionId: string;
13574
+ hostDeviceId?: string;
13575
+ sessionId?: string;
13408
13576
  payload: T;
13409
13577
  id?: string;
13410
13578
  seq?: number;