linkshell-cli 0.2.123 → 0.2.125

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.
@@ -4,6 +4,8 @@ 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
+ export declare const terminalProviderSchema: z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>;
8
+ export type TerminalProvider = z.infer<typeof terminalProviderSchema>;
7
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"]>;
8
10
  export type ErrorCode = z.infer<typeof errorCodeSchema>;
9
11
  export declare const envelopeSchema: z.ZodObject<{
@@ -80,7 +82,7 @@ export declare const terminalResizePayloadSchema: z.ZodObject<{
80
82
  export declare const sessionConnectPayloadSchema: z.ZodObject<{
81
83
  role: z.ZodEnum<["host", "client"]>;
82
84
  clientName: z.ZodString;
83
- provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "custom"]>>;
85
+ provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
84
86
  protocolVersion: z.ZodOptional<z.ZodNumber>;
85
87
  machineId: z.ZodOptional<z.ZodString>;
86
88
  hostname: z.ZodOptional<z.ZodString>;
@@ -88,23 +90,23 @@ export declare const sessionConnectPayloadSchema: z.ZodObject<{
88
90
  cwd: z.ZodOptional<z.ZodString>;
89
91
  projectName: z.ZodOptional<z.ZodString>;
90
92
  }, "strip", z.ZodTypeAny, {
91
- role: "host" | "client";
92
93
  clientName: string;
94
+ role: "host" | "client";
95
+ provider?: "claude" | "codex" | "gemini" | "copilot" | "custom" | undefined;
96
+ hostname?: string | undefined;
93
97
  cwd?: string | undefined;
94
- provider?: "claude" | "codex" | "custom" | undefined;
95
98
  protocolVersion?: number | undefined;
96
99
  machineId?: string | undefined;
97
- hostname?: string | undefined;
98
100
  platform?: string | undefined;
99
101
  projectName?: string | undefined;
100
102
  }, {
101
- role: "host" | "client";
102
103
  clientName: string;
104
+ role: "host" | "client";
105
+ provider?: "claude" | "codex" | "gemini" | "copilot" | "custom" | undefined;
106
+ hostname?: string | undefined;
103
107
  cwd?: string | undefined;
104
- provider?: "claude" | "codex" | "custom" | undefined;
105
108
  protocolVersion?: number | undefined;
106
109
  machineId?: string | undefined;
107
- hostname?: string | undefined;
108
110
  platform?: string | undefined;
109
111
  projectName?: string | undefined;
110
112
  }>;
@@ -289,13 +291,13 @@ export declare const screenIcePayloadSchema: z.ZodObject<{
289
291
  }>;
290
292
  export declare const terminalSpawnPayloadSchema: z.ZodObject<{
291
293
  cwd: z.ZodString;
292
- provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "custom"]>>;
294
+ provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
293
295
  }, "strip", z.ZodTypeAny, {
294
296
  cwd: string;
295
- provider?: "claude" | "codex" | "custom" | undefined;
297
+ provider?: "claude" | "codex" | "gemini" | "copilot" | "custom" | undefined;
296
298
  }, {
297
299
  cwd: string;
298
- provider?: "claude" | "codex" | "custom" | undefined;
300
+ provider?: "claude" | "codex" | "gemini" | "copilot" | "custom" | undefined;
299
301
  }>;
300
302
  export declare const terminalInfoSchema: z.ZodObject<{
301
303
  terminalId: z.ZodString;
@@ -304,16 +306,16 @@ export declare const terminalInfoSchema: z.ZodObject<{
304
306
  provider: z.ZodString;
305
307
  status: z.ZodEnum<["running", "exited"]>;
306
308
  }, "strip", z.ZodTypeAny, {
309
+ provider: string;
307
310
  status: "running" | "exited";
308
311
  cwd: string;
309
312
  terminalId: string;
310
- provider: string;
311
313
  projectName: string;
312
314
  }, {
315
+ provider: string;
313
316
  status: "running" | "exited";
314
317
  cwd: string;
315
318
  terminalId: string;
316
- provider: string;
317
319
  projectName: string;
318
320
  }>;
319
321
  export declare const terminalListPayloadSchema: z.ZodObject<{
@@ -324,32 +326,32 @@ export declare const terminalListPayloadSchema: z.ZodObject<{
324
326
  provider: z.ZodString;
325
327
  status: z.ZodEnum<["running", "exited"]>;
326
328
  }, "strip", z.ZodTypeAny, {
329
+ provider: string;
327
330
  status: "running" | "exited";
328
331
  cwd: string;
329
332
  terminalId: string;
330
- provider: string;
331
333
  projectName: string;
332
334
  }, {
335
+ provider: string;
333
336
  status: "running" | "exited";
334
337
  cwd: string;
335
338
  terminalId: string;
336
- provider: string;
337
339
  projectName: string;
338
340
  }>, "many">;
339
341
  }, "strip", z.ZodTypeAny, {
340
342
  terminals: {
343
+ provider: string;
341
344
  status: "running" | "exited";
342
345
  cwd: string;
343
346
  terminalId: string;
344
- provider: string;
345
347
  projectName: string;
346
348
  }[];
347
349
  }, {
348
350
  terminals: {
351
+ provider: string;
349
352
  status: "running" | "exited";
350
353
  cwd: string;
351
354
  terminalId: string;
352
- provider: string;
353
355
  projectName: string;
354
356
  }[];
355
357
  }>;
@@ -385,23 +387,35 @@ export declare const terminalMkdirPayloadSchema: z.ZodObject<{
385
387
  }>;
386
388
  export declare const terminalBrowsePayloadSchema: z.ZodObject<{
387
389
  path: z.ZodString;
390
+ includeFiles: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
391
+ requestId: z.ZodOptional<z.ZodString>;
388
392
  }, "strip", z.ZodTypeAny, {
389
393
  path: string;
394
+ includeFiles: boolean;
395
+ requestId?: string | undefined;
390
396
  }, {
391
397
  path: string;
398
+ includeFiles?: boolean | undefined;
399
+ requestId?: string | undefined;
392
400
  }>;
393
401
  export declare const terminalBrowseEntrySchema: z.ZodObject<{
394
402
  name: z.ZodString;
395
403
  path: z.ZodString;
396
404
  isDirectory: z.ZodBoolean;
405
+ size: z.ZodOptional<z.ZodNumber>;
406
+ modifiedAt: z.ZodOptional<z.ZodString>;
397
407
  }, "strip", z.ZodTypeAny, {
398
408
  name: string;
399
409
  path: string;
400
410
  isDirectory: boolean;
411
+ size?: number | undefined;
412
+ modifiedAt?: string | undefined;
401
413
  }, {
402
414
  name: string;
403
415
  path: string;
404
416
  isDirectory: boolean;
417
+ size?: number | undefined;
418
+ modifiedAt?: string | undefined;
405
419
  }>;
406
420
  export declare const terminalBrowseResultPayloadSchema: z.ZodObject<{
407
421
  path: z.ZodString;
@@ -409,32 +423,83 @@ export declare const terminalBrowseResultPayloadSchema: z.ZodObject<{
409
423
  name: z.ZodString;
410
424
  path: z.ZodString;
411
425
  isDirectory: z.ZodBoolean;
426
+ size: z.ZodOptional<z.ZodNumber>;
427
+ modifiedAt: z.ZodOptional<z.ZodString>;
412
428
  }, "strip", z.ZodTypeAny, {
413
429
  name: string;
414
430
  path: string;
415
431
  isDirectory: boolean;
432
+ size?: number | undefined;
433
+ modifiedAt?: string | undefined;
416
434
  }, {
417
435
  name: string;
418
436
  path: string;
419
437
  isDirectory: boolean;
438
+ size?: number | undefined;
439
+ modifiedAt?: string | undefined;
420
440
  }>, "many">;
421
441
  error: z.ZodOptional<z.ZodString>;
442
+ requestId: z.ZodOptional<z.ZodString>;
422
443
  }, "strip", z.ZodTypeAny, {
423
444
  entries: {
424
445
  name: string;
425
446
  path: string;
426
447
  isDirectory: boolean;
448
+ size?: number | undefined;
449
+ modifiedAt?: string | undefined;
427
450
  }[];
428
451
  path: string;
429
452
  error?: string | undefined;
453
+ requestId?: string | undefined;
430
454
  }, {
431
455
  entries: {
432
456
  name: string;
433
457
  path: string;
434
458
  isDirectory: boolean;
459
+ size?: number | undefined;
460
+ modifiedAt?: string | undefined;
435
461
  }[];
436
462
  path: string;
437
463
  error?: string | undefined;
464
+ requestId?: string | undefined;
465
+ }>;
466
+ export declare const terminalFileReadPayloadSchema: z.ZodObject<{
467
+ path: z.ZodString;
468
+ maxBytes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
469
+ requestId: z.ZodOptional<z.ZodString>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ path: string;
472
+ maxBytes: number;
473
+ requestId?: string | undefined;
474
+ }, {
475
+ path: string;
476
+ requestId?: string | undefined;
477
+ maxBytes?: number | undefined;
478
+ }>;
479
+ export declare const terminalFileReadResultPayloadSchema: z.ZodObject<{
480
+ path: z.ZodString;
481
+ content: z.ZodDefault<z.ZodString>;
482
+ encoding: z.ZodDefault<z.ZodLiteral<"utf8">>;
483
+ size: z.ZodOptional<z.ZodNumber>;
484
+ truncated: z.ZodDefault<z.ZodBoolean>;
485
+ error: z.ZodOptional<z.ZodString>;
486
+ requestId: z.ZodOptional<z.ZodString>;
487
+ }, "strip", z.ZodTypeAny, {
488
+ path: string;
489
+ encoding: "utf8";
490
+ content: string;
491
+ truncated: boolean;
492
+ error?: string | undefined;
493
+ requestId?: string | undefined;
494
+ size?: number | undefined;
495
+ }, {
496
+ path: string;
497
+ error?: string | undefined;
498
+ encoding?: "utf8" | undefined;
499
+ requestId?: string | undefined;
500
+ size?: number | undefined;
501
+ content?: string | undefined;
502
+ truncated?: boolean | undefined;
438
503
  }>;
439
504
  export declare const terminalStatusPayloadSchema: z.ZodObject<{
440
505
  phase: z.ZodEnum<["thinking", "tool_use", "outputting", "waiting", "idle", "error"]>;
@@ -453,14 +518,14 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
453
518
  toolName: string;
454
519
  toolInput: string;
455
520
  timestamp: number;
456
- permissionRequest: string;
457
521
  requestId: string;
522
+ permissionRequest: string;
458
523
  }, {
459
524
  toolName: string;
460
525
  toolInput: string;
461
526
  timestamp: number;
462
- permissionRequest: string;
463
527
  requestId: string;
528
+ permissionRequest: string;
464
529
  }>>;
465
530
  permissionResolution: z.ZodOptional<z.ZodObject<{
466
531
  requestId: z.ZodString;
@@ -492,8 +557,8 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
492
557
  toolName: string;
493
558
  toolInput: string;
494
559
  timestamp: number;
495
- permissionRequest: string;
496
560
  requestId: string;
561
+ permissionRequest: string;
497
562
  } | undefined;
498
563
  permissionResolution?: {
499
564
  requestId: string;
@@ -514,8 +579,8 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
514
579
  toolName: string;
515
580
  toolInput: string;
516
581
  timestamp: number;
517
- permissionRequest: string;
518
582
  requestId: string;
583
+ permissionRequest: string;
519
584
  } | undefined;
520
585
  permissionResolution?: {
521
586
  requestId: string;
@@ -708,18 +773,18 @@ export declare const agentToolCallSchema: z.ZodObject<{
708
773
  createdAt: z.ZodOptional<z.ZodNumber>;
709
774
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
710
775
  }, "strip", z.ZodTypeAny, {
776
+ name: string;
711
777
  status: "running" | "pending" | "completed" | "failed";
712
778
  id: string;
713
- name: string;
714
779
  input?: string | undefined;
715
780
  output?: string | undefined;
716
781
  createdAt?: number | undefined;
717
782
  }, {
718
- id: string;
719
783
  name: string;
720
- status?: "running" | "pending" | "completed" | "failed" | undefined;
784
+ id: string;
721
785
  input?: string | undefined;
722
786
  output?: string | undefined;
787
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
723
788
  createdAt?: number | undefined;
724
789
  }>;
725
790
  export declare const agentPermissionSchema: z.ZodObject<{
@@ -785,25 +850,25 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
785
850
  disabledReason: z.ZodOptional<z.ZodString>;
786
851
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
787
852
  }, "strip", z.ZodTypeAny, {
853
+ name: string;
788
854
  title: string;
789
855
  id: string;
790
- name: string;
791
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
856
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
792
857
  argsMode: "none" | "optional" | "required" | "raw";
793
858
  executionKind: "prompt" | "native" | "local_ui";
794
- description?: string | undefined;
795
859
  provider?: "claude" | "codex" | "custom" | undefined;
860
+ description?: string | undefined;
796
861
  category?: string | undefined;
797
862
  requiresIdle?: boolean | undefined;
798
863
  destructive?: boolean | undefined;
799
864
  disabledReason?: string | undefined;
800
865
  }, {
866
+ name: string;
801
867
  title: string;
802
868
  id: string;
803
- name: string;
804
- description?: string | undefined;
805
869
  provider?: "claude" | "codex" | "custom" | undefined;
806
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
870
+ description?: string | undefined;
871
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
807
872
  category?: string | undefined;
808
873
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
809
874
  requiresIdle?: boolean | undefined;
@@ -860,25 +925,25 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
860
925
  disabledReason: z.ZodOptional<z.ZodString>;
861
926
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
862
927
  }, "strip", z.ZodTypeAny, {
928
+ name: string;
863
929
  title: string;
864
930
  id: string;
865
- name: string;
866
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
931
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
867
932
  argsMode: "none" | "optional" | "required" | "raw";
868
933
  executionKind: "prompt" | "native" | "local_ui";
869
- description?: string | undefined;
870
934
  provider?: "claude" | "codex" | "custom" | undefined;
935
+ description?: string | undefined;
871
936
  category?: string | undefined;
872
937
  requiresIdle?: boolean | undefined;
873
938
  destructive?: boolean | undefined;
874
939
  disabledReason?: string | undefined;
875
940
  }, {
941
+ name: string;
876
942
  title: string;
877
943
  id: string;
878
- name: string;
879
- description?: string | undefined;
880
944
  provider?: "claude" | "codex" | "custom" | undefined;
881
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
945
+ description?: string | undefined;
946
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
882
947
  category?: string | undefined;
883
948
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
884
949
  requiresIdle?: boolean | undefined;
@@ -918,14 +983,14 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
918
983
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
919
984
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
920
985
  commands?: {
986
+ name: string;
921
987
  title: string;
922
988
  id: string;
923
- name: string;
924
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
989
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
925
990
  argsMode: "none" | "optional" | "required" | "raw";
926
991
  executionKind: "prompt" | "native" | "local_ui";
927
- description?: string | undefined;
928
992
  provider?: "claude" | "codex" | "custom" | undefined;
993
+ description?: string | undefined;
929
994
  category?: string | undefined;
930
995
  requiresIdle?: boolean | undefined;
931
996
  destructive?: boolean | undefined;
@@ -955,12 +1020,12 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
955
1020
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
956
1021
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
957
1022
  commands?: {
1023
+ name: string;
958
1024
  title: string;
959
1025
  id: string;
960
- name: string;
961
- description?: string | undefined;
962
1026
  provider?: "claude" | "codex" | "custom" | undefined;
963
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
1027
+ description?: string | undefined;
1028
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
964
1029
  category?: string | undefined;
965
1030
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
966
1031
  requiresIdle?: boolean | undefined;
@@ -1016,25 +1081,25 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1016
1081
  disabledReason: z.ZodOptional<z.ZodString>;
1017
1082
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
1018
1083
  }, "strip", z.ZodTypeAny, {
1084
+ name: string;
1019
1085
  title: string;
1020
1086
  id: string;
1021
- name: string;
1022
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
1087
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
1023
1088
  argsMode: "none" | "optional" | "required" | "raw";
1024
1089
  executionKind: "prompt" | "native" | "local_ui";
1025
- description?: string | undefined;
1026
1090
  provider?: "claude" | "codex" | "custom" | undefined;
1091
+ description?: string | undefined;
1027
1092
  category?: string | undefined;
1028
1093
  requiresIdle?: boolean | undefined;
1029
1094
  destructive?: boolean | undefined;
1030
1095
  disabledReason?: string | undefined;
1031
1096
  }, {
1097
+ name: string;
1032
1098
  title: string;
1033
1099
  id: string;
1034
- name: string;
1035
- description?: string | undefined;
1036
1100
  provider?: "claude" | "codex" | "custom" | undefined;
1037
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
1101
+ description?: string | undefined;
1102
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
1038
1103
  category?: string | undefined;
1039
1104
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
1040
1105
  requiresIdle?: boolean | undefined;
@@ -1074,14 +1139,14 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1074
1139
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1075
1140
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1076
1141
  commands?: {
1142
+ name: string;
1077
1143
  title: string;
1078
1144
  id: string;
1079
- name: string;
1080
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
1145
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
1081
1146
  argsMode: "none" | "optional" | "required" | "raw";
1082
1147
  executionKind: "prompt" | "native" | "local_ui";
1083
- description?: string | undefined;
1084
1148
  provider?: "claude" | "codex" | "custom" | undefined;
1149
+ description?: string | undefined;
1085
1150
  category?: string | undefined;
1086
1151
  requiresIdle?: boolean | undefined;
1087
1152
  destructive?: boolean | undefined;
@@ -1111,12 +1176,12 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1111
1176
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1112
1177
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1113
1178
  commands?: {
1179
+ name: string;
1114
1180
  title: string;
1115
1181
  id: string;
1116
- name: string;
1117
- description?: string | undefined;
1118
1182
  provider?: "claude" | "codex" | "custom" | undefined;
1119
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
1183
+ description?: string | undefined;
1184
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
1120
1185
  category?: string | undefined;
1121
1186
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
1122
1187
  requiresIdle?: boolean | undefined;
@@ -1150,8 +1215,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1150
1215
  supportsSessionList: boolean;
1151
1216
  supportsSessionLoad: boolean;
1152
1217
  supportsAudio: boolean;
1153
- error?: string | undefined;
1154
1218
  provider?: "claude" | "codex" | "custom" | undefined;
1219
+ error?: string | undefined;
1155
1220
  protocolVersion?: number | undefined;
1156
1221
  machineId?: string | undefined;
1157
1222
  providers?: {
@@ -1171,14 +1236,14 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1171
1236
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1172
1237
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1173
1238
  commands?: {
1239
+ name: string;
1174
1240
  title: string;
1175
1241
  id: string;
1176
- name: string;
1177
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
1242
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
1178
1243
  argsMode: "none" | "optional" | "required" | "raw";
1179
1244
  executionKind: "prompt" | "native" | "local_ui";
1180
- description?: string | undefined;
1181
1245
  provider?: "claude" | "codex" | "custom" | undefined;
1246
+ description?: string | undefined;
1182
1247
  category?: string | undefined;
1183
1248
  requiresIdle?: boolean | undefined;
1184
1249
  destructive?: boolean | undefined;
@@ -1194,8 +1259,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1194
1259
  }[] | undefined;
1195
1260
  }, {
1196
1261
  enabled: boolean;
1197
- error?: string | undefined;
1198
1262
  provider?: "claude" | "codex" | "custom" | undefined;
1263
+ error?: string | undefined;
1199
1264
  protocolVersion?: number | undefined;
1200
1265
  machineId?: string | undefined;
1201
1266
  supportsImages?: boolean | undefined;
@@ -1219,12 +1284,12 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1219
1284
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1220
1285
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1221
1286
  commands?: {
1287
+ name: string;
1222
1288
  title: string;
1223
1289
  id: string;
1224
- name: string;
1225
- description?: string | undefined;
1226
1290
  provider?: "claude" | "codex" | "custom" | undefined;
1227
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
1291
+ description?: string | undefined;
1292
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
1228
1293
  category?: string | undefined;
1229
1294
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
1230
1295
  requiresIdle?: boolean | undefined;
@@ -1250,12 +1315,12 @@ export declare const agentSessionNewPayloadSchema: z.ZodObject<{
1250
1315
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
1251
1316
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1252
1317
  }, "strip", z.ZodTypeAny, {
1253
- cwd?: string | undefined;
1254
1318
  provider?: "claude" | "codex" | "custom" | undefined;
1319
+ cwd?: string | undefined;
1255
1320
  mcpServers?: Record<string, unknown> | undefined;
1256
1321
  }, {
1257
- cwd?: string | undefined;
1258
1322
  provider?: "claude" | "codex" | "custom" | undefined;
1323
+ cwd?: string | undefined;
1259
1324
  mcpServers?: Record<string, unknown> | undefined;
1260
1325
  }>;
1261
1326
  export declare const agentSessionLoadPayloadSchema: z.ZodObject<{
@@ -1354,18 +1419,18 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1354
1419
  createdAt: z.ZodOptional<z.ZodNumber>;
1355
1420
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
1356
1421
  }, "strip", z.ZodTypeAny, {
1422
+ name: string;
1357
1423
  status: "running" | "pending" | "completed" | "failed";
1358
1424
  id: string;
1359
- name: string;
1360
1425
  input?: string | undefined;
1361
1426
  output?: string | undefined;
1362
1427
  createdAt?: number | undefined;
1363
1428
  }, {
1364
- id: string;
1365
1429
  name: string;
1366
- status?: "running" | "pending" | "completed" | "failed" | undefined;
1430
+ id: string;
1367
1431
  input?: string | undefined;
1368
1432
  output?: string | undefined;
1433
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
1369
1434
  createdAt?: number | undefined;
1370
1435
  }>>;
1371
1436
  plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1402,9 +1467,9 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1402
1467
  agentSessionId?: string | undefined;
1403
1468
  delta?: string | undefined;
1404
1469
  toolCall?: {
1470
+ name: string;
1405
1471
  status: "running" | "pending" | "completed" | "failed";
1406
1472
  id: string;
1407
- name: string;
1408
1473
  input?: string | undefined;
1409
1474
  output?: string | undefined;
1410
1475
  createdAt?: number | undefined;
@@ -1428,11 +1493,11 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1428
1493
  agentSessionId?: string | undefined;
1429
1494
  delta?: string | undefined;
1430
1495
  toolCall?: {
1431
- id: string;
1432
1496
  name: string;
1433
- status?: "running" | "pending" | "completed" | "failed" | undefined;
1497
+ id: string;
1434
1498
  input?: string | undefined;
1435
1499
  output?: string | undefined;
1500
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
1436
1501
  createdAt?: number | undefined;
1437
1502
  } | undefined;
1438
1503
  }>;
@@ -1537,25 +1602,25 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1537
1602
  disabledReason: z.ZodOptional<z.ZodString>;
1538
1603
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
1539
1604
  }, "strip", z.ZodTypeAny, {
1605
+ name: string;
1540
1606
  title: string;
1541
1607
  id: string;
1542
- name: string;
1543
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
1608
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
1544
1609
  argsMode: "none" | "optional" | "required" | "raw";
1545
1610
  executionKind: "prompt" | "native" | "local_ui";
1546
- description?: string | undefined;
1547
1611
  provider?: "claude" | "codex" | "custom" | undefined;
1612
+ description?: string | undefined;
1548
1613
  category?: string | undefined;
1549
1614
  requiresIdle?: boolean | undefined;
1550
1615
  destructive?: boolean | undefined;
1551
1616
  disabledReason?: string | undefined;
1552
1617
  }, {
1618
+ name: string;
1553
1619
  title: string;
1554
1620
  id: string;
1555
- name: string;
1556
- description?: string | undefined;
1557
1621
  provider?: "claude" | "codex" | "custom" | undefined;
1558
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
1622
+ description?: string | undefined;
1623
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
1559
1624
  category?: string | undefined;
1560
1625
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
1561
1626
  requiresIdle?: boolean | undefined;
@@ -1595,14 +1660,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1595
1660
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1596
1661
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1597
1662
  commands?: {
1663
+ name: string;
1598
1664
  title: string;
1599
1665
  id: string;
1600
- name: string;
1601
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
1666
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
1602
1667
  argsMode: "none" | "optional" | "required" | "raw";
1603
1668
  executionKind: "prompt" | "native" | "local_ui";
1604
- description?: string | undefined;
1605
1669
  provider?: "claude" | "codex" | "custom" | undefined;
1670
+ description?: string | undefined;
1606
1671
  category?: string | undefined;
1607
1672
  requiresIdle?: boolean | undefined;
1608
1673
  destructive?: boolean | undefined;
@@ -1632,12 +1697,12 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1632
1697
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1633
1698
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1634
1699
  commands?: {
1700
+ name: string;
1635
1701
  title: string;
1636
1702
  id: string;
1637
- name: string;
1638
- description?: string | undefined;
1639
1703
  provider?: "claude" | "codex" | "custom" | undefined;
1640
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
1704
+ description?: string | undefined;
1705
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
1641
1706
  category?: string | undefined;
1642
1707
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
1643
1708
  requiresIdle?: boolean | undefined;
@@ -1671,8 +1736,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1671
1736
  supportsSessionList: boolean;
1672
1737
  supportsSessionLoad: boolean;
1673
1738
  supportsAudio: boolean;
1674
- error?: string | undefined;
1675
1739
  provider?: "claude" | "codex" | "custom" | undefined;
1740
+ error?: string | undefined;
1676
1741
  protocolVersion?: number | undefined;
1677
1742
  machineId?: string | undefined;
1678
1743
  providers?: {
@@ -1692,14 +1757,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1692
1757
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1693
1758
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1694
1759
  commands?: {
1760
+ name: string;
1695
1761
  title: string;
1696
1762
  id: string;
1697
- name: string;
1698
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
1763
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
1699
1764
  argsMode: "none" | "optional" | "required" | "raw";
1700
1765
  executionKind: "prompt" | "native" | "local_ui";
1701
- description?: string | undefined;
1702
1766
  provider?: "claude" | "codex" | "custom" | undefined;
1767
+ description?: string | undefined;
1703
1768
  category?: string | undefined;
1704
1769
  requiresIdle?: boolean | undefined;
1705
1770
  destructive?: boolean | undefined;
@@ -1715,8 +1780,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1715
1780
  }[] | undefined;
1716
1781
  }, {
1717
1782
  enabled: boolean;
1718
- error?: string | undefined;
1719
1783
  provider?: "claude" | "codex" | "custom" | undefined;
1784
+ error?: string | undefined;
1720
1785
  protocolVersion?: number | undefined;
1721
1786
  machineId?: string | undefined;
1722
1787
  supportsImages?: boolean | undefined;
@@ -1740,12 +1805,12 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1740
1805
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1741
1806
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1742
1807
  commands?: {
1808
+ name: string;
1743
1809
  title: string;
1744
1810
  id: string;
1745
- name: string;
1746
- description?: string | undefined;
1747
1811
  provider?: "claude" | "codex" | "custom" | undefined;
1748
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
1812
+ description?: string | undefined;
1813
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
1749
1814
  category?: string | undefined;
1750
1815
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
1751
1816
  requiresIdle?: boolean | undefined;
@@ -1792,18 +1857,18 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1792
1857
  createdAt: z.ZodOptional<z.ZodNumber>;
1793
1858
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
1794
1859
  }, "strip", z.ZodTypeAny, {
1860
+ name: string;
1795
1861
  status: "running" | "pending" | "completed" | "failed";
1796
1862
  id: string;
1797
- name: string;
1798
1863
  input?: string | undefined;
1799
1864
  output?: string | undefined;
1800
1865
  createdAt?: number | undefined;
1801
1866
  }, {
1802
- id: string;
1803
1867
  name: string;
1804
- status?: "running" | "pending" | "completed" | "failed" | undefined;
1868
+ id: string;
1805
1869
  input?: string | undefined;
1806
1870
  output?: string | undefined;
1871
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
1807
1872
  createdAt?: number | undefined;
1808
1873
  }>, "many">>;
1809
1874
  pendingPermissions: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1857,9 +1922,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1857
1922
  isStreaming?: boolean | undefined;
1858
1923
  }[];
1859
1924
  toolCalls: {
1925
+ name: string;
1860
1926
  status: "running" | "pending" | "completed" | "failed";
1861
1927
  id: string;
1862
- name: string;
1863
1928
  input?: string | undefined;
1864
1929
  output?: string | undefined;
1865
1930
  createdAt?: number | undefined;
@@ -1886,8 +1951,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1886
1951
  supportsSessionList: boolean;
1887
1952
  supportsSessionLoad: boolean;
1888
1953
  supportsAudio: boolean;
1889
- error?: string | undefined;
1890
1954
  provider?: "claude" | "codex" | "custom" | undefined;
1955
+ error?: string | undefined;
1891
1956
  protocolVersion?: number | undefined;
1892
1957
  machineId?: string | undefined;
1893
1958
  providers?: {
@@ -1907,14 +1972,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1907
1972
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1908
1973
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1909
1974
  commands?: {
1975
+ name: string;
1910
1976
  title: string;
1911
1977
  id: string;
1912
- name: string;
1913
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
1978
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
1914
1979
  argsMode: "none" | "optional" | "required" | "raw";
1915
1980
  executionKind: "prompt" | "native" | "local_ui";
1916
- description?: string | undefined;
1917
1981
  provider?: "claude" | "codex" | "custom" | undefined;
1982
+ description?: string | undefined;
1918
1983
  category?: string | undefined;
1919
1984
  requiresIdle?: boolean | undefined;
1920
1985
  destructive?: boolean | undefined;
@@ -1935,8 +2000,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1935
2000
  agentSessionId?: string | undefined;
1936
2001
  capabilities?: {
1937
2002
  enabled: boolean;
1938
- error?: string | undefined;
1939
2003
  provider?: "claude" | "codex" | "custom" | undefined;
2004
+ error?: string | undefined;
1940
2005
  protocolVersion?: number | undefined;
1941
2006
  machineId?: string | undefined;
1942
2007
  supportsImages?: boolean | undefined;
@@ -1960,12 +2025,12 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1960
2025
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1961
2026
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1962
2027
  commands?: {
2028
+ name: string;
1963
2029
  title: string;
1964
2030
  id: string;
1965
- name: string;
1966
- description?: string | undefined;
1967
2031
  provider?: "claude" | "codex" | "custom" | undefined;
1968
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
2032
+ description?: string | undefined;
2033
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
1969
2034
  category?: string | undefined;
1970
2035
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
1971
2036
  requiresIdle?: boolean | undefined;
@@ -1993,11 +2058,11 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1993
2058
  isStreaming?: boolean | undefined;
1994
2059
  }[] | undefined;
1995
2060
  toolCalls?: {
1996
- id: string;
1997
2061
  name: string;
1998
- status?: "running" | "pending" | "completed" | "failed" | undefined;
2062
+ id: string;
1999
2063
  input?: string | undefined;
2000
2064
  output?: string | undefined;
2065
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
2001
2066
  createdAt?: number | undefined;
2002
2067
  }[] | undefined;
2003
2068
  pendingPermissions?: {
@@ -2081,15 +2146,15 @@ export declare const agentV2CommandExecutionSchema: z.ZodObject<{
2081
2146
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2082
2147
  status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
2083
2148
  }, "strip", z.ZodTypeAny, {
2084
- status?: "running" | "pending" | "completed" | "failed" | undefined;
2085
- output?: string | undefined;
2086
2149
  command?: string | undefined;
2150
+ output?: string | undefined;
2151
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
2087
2152
  cwd?: string | undefined;
2088
2153
  exitCode?: number | null | undefined;
2089
2154
  }, {
2090
- status?: "running" | "pending" | "completed" | "failed" | undefined;
2091
- output?: string | undefined;
2092
2155
  command?: string | undefined;
2156
+ output?: string | undefined;
2157
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
2093
2158
  cwd?: string | undefined;
2094
2159
  exitCode?: number | null | undefined;
2095
2160
  }>;
@@ -2377,18 +2442,18 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2377
2442
  createdAt: z.ZodOptional<z.ZodNumber>;
2378
2443
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
2379
2444
  }, "strip", z.ZodTypeAny, {
2445
+ name: string;
2380
2446
  status: "running" | "pending" | "completed" | "failed";
2381
2447
  id: string;
2382
- name: string;
2383
2448
  input?: string | undefined;
2384
2449
  output?: string | undefined;
2385
2450
  createdAt?: number | undefined;
2386
2451
  }, {
2387
- id: string;
2388
2452
  name: string;
2389
- status?: "running" | "pending" | "completed" | "failed" | undefined;
2453
+ id: string;
2390
2454
  input?: string | undefined;
2391
2455
  output?: string | undefined;
2456
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
2392
2457
  createdAt?: number | undefined;
2393
2458
  }>>;
2394
2459
  commandExecution: z.ZodOptional<z.ZodObject<{
@@ -2398,15 +2463,15 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2398
2463
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2399
2464
  status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
2400
2465
  }, "strip", z.ZodTypeAny, {
2401
- status?: "running" | "pending" | "completed" | "failed" | undefined;
2402
- output?: string | undefined;
2403
2466
  command?: string | undefined;
2467
+ output?: string | undefined;
2468
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
2404
2469
  cwd?: string | undefined;
2405
2470
  exitCode?: number | null | undefined;
2406
2471
  }, {
2407
- status?: "running" | "pending" | "completed" | "failed" | undefined;
2408
- output?: string | undefined;
2409
2472
  command?: string | undefined;
2473
+ output?: string | undefined;
2474
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
2410
2475
  cwd?: string | undefined;
2411
2476
  exitCode?: number | null | undefined;
2412
2477
  }>>;
@@ -2685,9 +2750,9 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2685
2750
  text?: string | undefined;
2686
2751
  itemId?: string | undefined;
2687
2752
  commandExecution?: {
2688
- status?: "running" | "pending" | "completed" | "failed" | undefined;
2689
- output?: string | undefined;
2690
2753
  command?: string | undefined;
2754
+ output?: string | undefined;
2755
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
2691
2756
  cwd?: string | undefined;
2692
2757
  exitCode?: number | null | undefined;
2693
2758
  } | undefined;
@@ -2704,18 +2769,18 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2704
2769
  changeSetId?: string | undefined;
2705
2770
  } | undefined;
2706
2771
  role?: "user" | "assistant" | "system" | undefined;
2707
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
2708
2772
  content?: {
2709
2773
  type: "text" | "image";
2710
2774
  text?: string | undefined;
2711
2775
  data?: string | undefined;
2712
2776
  mimeType?: string | undefined;
2713
2777
  }[] | undefined;
2778
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
2714
2779
  isStreaming?: boolean | undefined;
2715
2780
  toolCall?: {
2781
+ name: string;
2716
2782
  status: "running" | "pending" | "completed" | "failed";
2717
2783
  id: string;
2718
- name: string;
2719
2784
  input?: string | undefined;
2720
2785
  output?: string | undefined;
2721
2786
  createdAt?: number | undefined;
@@ -2785,9 +2850,9 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2785
2850
  text?: string | undefined;
2786
2851
  itemId?: string | undefined;
2787
2852
  commandExecution?: {
2788
- status?: "running" | "pending" | "completed" | "failed" | undefined;
2789
- output?: string | undefined;
2790
2853
  command?: string | undefined;
2854
+ output?: string | undefined;
2855
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
2791
2856
  cwd?: string | undefined;
2792
2857
  exitCode?: number | null | undefined;
2793
2858
  } | undefined;
@@ -2804,20 +2869,20 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2804
2869
  changeSetId?: string | undefined;
2805
2870
  } | undefined;
2806
2871
  role?: "user" | "assistant" | "system" | undefined;
2807
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
2808
2872
  content?: {
2809
2873
  type: "text" | "image";
2810
2874
  text?: string | undefined;
2811
2875
  data?: string | undefined;
2812
2876
  mimeType?: string | undefined;
2813
2877
  }[] | undefined;
2878
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
2814
2879
  isStreaming?: boolean | undefined;
2815
2880
  toolCall?: {
2816
- id: string;
2817
2881
  name: string;
2818
- status?: "running" | "pending" | "completed" | "failed" | undefined;
2882
+ id: string;
2819
2883
  input?: string | undefined;
2820
2884
  output?: string | undefined;
2885
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
2821
2886
  createdAt?: number | undefined;
2822
2887
  } | undefined;
2823
2888
  permission?: {
@@ -2887,10 +2952,10 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
2887
2952
  lastActivityAt: z.ZodNumber;
2888
2953
  createdAt: z.ZodNumber;
2889
2954
  }, "strip", z.ZodTypeAny, {
2955
+ provider: "claude" | "codex" | "custom";
2890
2956
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
2891
2957
  id: string;
2892
2958
  cwd: string;
2893
- provider: "claude" | "codex" | "custom";
2894
2959
  createdAt: number;
2895
2960
  archived: boolean;
2896
2961
  lastActivityAt: number;
@@ -2906,9 +2971,9 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
2906
2971
  cwd: string;
2907
2972
  createdAt: number;
2908
2973
  lastActivityAt: number;
2974
+ provider?: "claude" | "codex" | "custom" | undefined;
2909
2975
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
2910
2976
  title?: string | undefined;
2911
- provider?: "claude" | "codex" | "custom" | undefined;
2912
2977
  agentSessionId?: string | undefined;
2913
2978
  model?: string | undefined;
2914
2979
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -2958,25 +3023,25 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2958
3023
  disabledReason: z.ZodOptional<z.ZodString>;
2959
3024
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
2960
3025
  }, "strip", z.ZodTypeAny, {
3026
+ name: string;
2961
3027
  title: string;
2962
3028
  id: string;
2963
- name: string;
2964
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
3029
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
2965
3030
  argsMode: "none" | "optional" | "required" | "raw";
2966
3031
  executionKind: "prompt" | "native" | "local_ui";
2967
- description?: string | undefined;
2968
3032
  provider?: "claude" | "codex" | "custom" | undefined;
3033
+ description?: string | undefined;
2969
3034
  category?: string | undefined;
2970
3035
  requiresIdle?: boolean | undefined;
2971
3036
  destructive?: boolean | undefined;
2972
3037
  disabledReason?: string | undefined;
2973
3038
  }, {
3039
+ name: string;
2974
3040
  title: string;
2975
3041
  id: string;
2976
- name: string;
2977
- description?: string | undefined;
2978
3042
  provider?: "claude" | "codex" | "custom" | undefined;
2979
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
3043
+ description?: string | undefined;
3044
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
2980
3045
  category?: string | undefined;
2981
3046
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
2982
3047
  requiresIdle?: boolean | undefined;
@@ -3016,14 +3081,14 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3016
3081
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3017
3082
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3018
3083
  commands?: {
3084
+ name: string;
3019
3085
  title: string;
3020
3086
  id: string;
3021
- name: string;
3022
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
3087
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
3023
3088
  argsMode: "none" | "optional" | "required" | "raw";
3024
3089
  executionKind: "prompt" | "native" | "local_ui";
3025
- description?: string | undefined;
3026
3090
  provider?: "claude" | "codex" | "custom" | undefined;
3091
+ description?: string | undefined;
3027
3092
  category?: string | undefined;
3028
3093
  requiresIdle?: boolean | undefined;
3029
3094
  destructive?: boolean | undefined;
@@ -3053,12 +3118,12 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3053
3118
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3054
3119
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3055
3120
  commands?: {
3121
+ name: string;
3056
3122
  title: string;
3057
3123
  id: string;
3058
- name: string;
3059
- description?: string | undefined;
3060
3124
  provider?: "claude" | "codex" | "custom" | undefined;
3061
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
3125
+ description?: string | undefined;
3126
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
3062
3127
  category?: string | undefined;
3063
3128
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
3064
3129
  requiresIdle?: boolean | undefined;
@@ -3095,8 +3160,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3095
3160
  supportsSessionLoad: boolean;
3096
3161
  supportsAudio: boolean;
3097
3162
  workspaceProtocolVersion: number;
3098
- error?: string | undefined;
3099
3163
  provider?: "claude" | "codex" | "custom" | undefined;
3164
+ error?: string | undefined;
3100
3165
  protocolVersion?: number | undefined;
3101
3166
  machineId?: string | undefined;
3102
3167
  providers?: {
@@ -3116,14 +3181,14 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3116
3181
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3117
3182
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3118
3183
  commands?: {
3184
+ name: string;
3119
3185
  title: string;
3120
3186
  id: string;
3121
- name: string;
3122
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
3187
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
3123
3188
  argsMode: "none" | "optional" | "required" | "raw";
3124
3189
  executionKind: "prompt" | "native" | "local_ui";
3125
- description?: string | undefined;
3126
3190
  provider?: "claude" | "codex" | "custom" | undefined;
3191
+ description?: string | undefined;
3127
3192
  category?: string | undefined;
3128
3193
  requiresIdle?: boolean | undefined;
3129
3194
  destructive?: boolean | undefined;
@@ -3139,8 +3204,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3139
3204
  }[] | undefined;
3140
3205
  }, {
3141
3206
  enabled: boolean;
3142
- error?: string | undefined;
3143
3207
  provider?: "claude" | "codex" | "custom" | undefined;
3208
+ error?: string | undefined;
3144
3209
  protocolVersion?: number | undefined;
3145
3210
  machineId?: string | undefined;
3146
3211
  supportsImages?: boolean | undefined;
@@ -3164,12 +3229,12 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3164
3229
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3165
3230
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3166
3231
  commands?: {
3232
+ name: string;
3167
3233
  title: string;
3168
3234
  id: string;
3169
- name: string;
3170
- description?: string | undefined;
3171
3235
  provider?: "claude" | "codex" | "custom" | undefined;
3172
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
3236
+ description?: string | undefined;
3237
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
3173
3238
  category?: string | undefined;
3174
3239
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
3175
3240
  requiresIdle?: boolean | undefined;
@@ -3201,9 +3266,9 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
3201
3266
  collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
3202
3267
  title: z.ZodOptional<z.ZodString>;
3203
3268
  }, "strip", z.ZodTypeAny, {
3269
+ provider?: "claude" | "codex" | "custom" | undefined;
3204
3270
  title?: string | undefined;
3205
3271
  cwd?: string | undefined;
3206
- provider?: "claude" | "codex" | "custom" | undefined;
3207
3272
  agentSessionId?: string | undefined;
3208
3273
  model?: string | undefined;
3209
3274
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -3211,9 +3276,9 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
3211
3276
  conversationId?: string | undefined;
3212
3277
  collaborationMode?: "default" | "plan" | undefined;
3213
3278
  }, {
3279
+ provider?: "claude" | "codex" | "custom" | undefined;
3214
3280
  title?: string | undefined;
3215
3281
  cwd?: string | undefined;
3216
- provider?: "claude" | "codex" | "custom" | undefined;
3217
3282
  agentSessionId?: string | undefined;
3218
3283
  model?: string | undefined;
3219
3284
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -3238,10 +3303,10 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3238
3303
  lastActivityAt: z.ZodNumber;
3239
3304
  createdAt: z.ZodNumber;
3240
3305
  }, "strip", z.ZodTypeAny, {
3306
+ provider: "claude" | "codex" | "custom";
3241
3307
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
3242
3308
  id: string;
3243
3309
  cwd: string;
3244
- provider: "claude" | "codex" | "custom";
3245
3310
  createdAt: number;
3246
3311
  archived: boolean;
3247
3312
  lastActivityAt: number;
@@ -3257,9 +3322,9 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3257
3322
  cwd: string;
3258
3323
  createdAt: number;
3259
3324
  lastActivityAt: number;
3325
+ provider?: "claude" | "codex" | "custom" | undefined;
3260
3326
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
3261
3327
  title?: string | undefined;
3262
- provider?: "claude" | "codex" | "custom" | undefined;
3263
3328
  agentSessionId?: string | undefined;
3264
3329
  model?: string | undefined;
3265
3330
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -3301,18 +3366,18 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3301
3366
  createdAt: z.ZodOptional<z.ZodNumber>;
3302
3367
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
3303
3368
  }, "strip", z.ZodTypeAny, {
3369
+ name: string;
3304
3370
  status: "running" | "pending" | "completed" | "failed";
3305
3371
  id: string;
3306
- name: string;
3307
3372
  input?: string | undefined;
3308
3373
  output?: string | undefined;
3309
3374
  createdAt?: number | undefined;
3310
3375
  }, {
3311
- id: string;
3312
3376
  name: string;
3313
- status?: "running" | "pending" | "completed" | "failed" | undefined;
3377
+ id: string;
3314
3378
  input?: string | undefined;
3315
3379
  output?: string | undefined;
3380
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
3316
3381
  createdAt?: number | undefined;
3317
3382
  }>>;
3318
3383
  commandExecution: z.ZodOptional<z.ZodObject<{
@@ -3322,15 +3387,15 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3322
3387
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3323
3388
  status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
3324
3389
  }, "strip", z.ZodTypeAny, {
3325
- status?: "running" | "pending" | "completed" | "failed" | undefined;
3326
- output?: string | undefined;
3327
3390
  command?: string | undefined;
3391
+ output?: string | undefined;
3392
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
3328
3393
  cwd?: string | undefined;
3329
3394
  exitCode?: number | null | undefined;
3330
3395
  }, {
3331
- status?: "running" | "pending" | "completed" | "failed" | undefined;
3332
- output?: string | undefined;
3333
3396
  command?: string | undefined;
3397
+ output?: string | undefined;
3398
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
3334
3399
  cwd?: string | undefined;
3335
3400
  exitCode?: number | null | undefined;
3336
3401
  }>>;
@@ -3609,9 +3674,9 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3609
3674
  text?: string | undefined;
3610
3675
  itemId?: string | undefined;
3611
3676
  commandExecution?: {
3612
- status?: "running" | "pending" | "completed" | "failed" | undefined;
3613
- output?: string | undefined;
3614
3677
  command?: string | undefined;
3678
+ output?: string | undefined;
3679
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
3615
3680
  cwd?: string | undefined;
3616
3681
  exitCode?: number | null | undefined;
3617
3682
  } | undefined;
@@ -3628,18 +3693,18 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3628
3693
  changeSetId?: string | undefined;
3629
3694
  } | undefined;
3630
3695
  role?: "user" | "assistant" | "system" | undefined;
3631
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3632
3696
  content?: {
3633
3697
  type: "text" | "image";
3634
3698
  text?: string | undefined;
3635
3699
  data?: string | undefined;
3636
3700
  mimeType?: string | undefined;
3637
3701
  }[] | undefined;
3702
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3638
3703
  isStreaming?: boolean | undefined;
3639
3704
  toolCall?: {
3705
+ name: string;
3640
3706
  status: "running" | "pending" | "completed" | "failed";
3641
3707
  id: string;
3642
- name: string;
3643
3708
  input?: string | undefined;
3644
3709
  output?: string | undefined;
3645
3710
  createdAt?: number | undefined;
@@ -3709,9 +3774,9 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3709
3774
  text?: string | undefined;
3710
3775
  itemId?: string | undefined;
3711
3776
  commandExecution?: {
3712
- status?: "running" | "pending" | "completed" | "failed" | undefined;
3713
- output?: string | undefined;
3714
3777
  command?: string | undefined;
3778
+ output?: string | undefined;
3779
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
3715
3780
  cwd?: string | undefined;
3716
3781
  exitCode?: number | null | undefined;
3717
3782
  } | undefined;
@@ -3728,20 +3793,20 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3728
3793
  changeSetId?: string | undefined;
3729
3794
  } | undefined;
3730
3795
  role?: "user" | "assistant" | "system" | undefined;
3731
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3732
3796
  content?: {
3733
3797
  type: "text" | "image";
3734
3798
  text?: string | undefined;
3735
3799
  data?: string | undefined;
3736
3800
  mimeType?: string | undefined;
3737
3801
  }[] | undefined;
3802
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3738
3803
  isStreaming?: boolean | undefined;
3739
3804
  toolCall?: {
3740
- id: string;
3741
3805
  name: string;
3742
- status?: "running" | "pending" | "completed" | "failed" | undefined;
3806
+ id: string;
3743
3807
  input?: string | undefined;
3744
3808
  output?: string | undefined;
3809
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
3745
3810
  createdAt?: number | undefined;
3746
3811
  } | undefined;
3747
3812
  permission?: {
@@ -3797,10 +3862,10 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3797
3862
  }>, "many">>;
3798
3863
  }, "strip", z.ZodTypeAny, {
3799
3864
  conversation: {
3865
+ provider: "claude" | "codex" | "custom";
3800
3866
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
3801
3867
  id: string;
3802
3868
  cwd: string;
3803
- provider: "claude" | "codex" | "custom";
3804
3869
  createdAt: number;
3805
3870
  archived: boolean;
3806
3871
  lastActivityAt: number;
@@ -3827,9 +3892,9 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3827
3892
  text?: string | undefined;
3828
3893
  itemId?: string | undefined;
3829
3894
  commandExecution?: {
3830
- status?: "running" | "pending" | "completed" | "failed" | undefined;
3831
- output?: string | undefined;
3832
3895
  command?: string | undefined;
3896
+ output?: string | undefined;
3897
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
3833
3898
  cwd?: string | undefined;
3834
3899
  exitCode?: number | null | undefined;
3835
3900
  } | undefined;
@@ -3846,18 +3911,18 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3846
3911
  changeSetId?: string | undefined;
3847
3912
  } | undefined;
3848
3913
  role?: "user" | "assistant" | "system" | undefined;
3849
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3850
3914
  content?: {
3851
3915
  type: "text" | "image";
3852
3916
  text?: string | undefined;
3853
3917
  data?: string | undefined;
3854
3918
  mimeType?: string | undefined;
3855
3919
  }[] | undefined;
3920
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3856
3921
  isStreaming?: boolean | undefined;
3857
3922
  toolCall?: {
3923
+ name: string;
3858
3924
  status: "running" | "pending" | "completed" | "failed";
3859
3925
  id: string;
3860
- name: string;
3861
3926
  input?: string | undefined;
3862
3927
  output?: string | undefined;
3863
3928
  createdAt?: number | undefined;
@@ -3919,9 +3984,9 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3919
3984
  cwd: string;
3920
3985
  createdAt: number;
3921
3986
  lastActivityAt: number;
3987
+ provider?: "claude" | "codex" | "custom" | undefined;
3922
3988
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
3923
3989
  title?: string | undefined;
3924
- provider?: "claude" | "codex" | "custom" | undefined;
3925
3990
  agentSessionId?: string | undefined;
3926
3991
  model?: string | undefined;
3927
3992
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -3945,9 +4010,9 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3945
4010
  text?: string | undefined;
3946
4011
  itemId?: string | undefined;
3947
4012
  commandExecution?: {
3948
- status?: "running" | "pending" | "completed" | "failed" | undefined;
3949
- output?: string | undefined;
3950
4013
  command?: string | undefined;
4014
+ output?: string | undefined;
4015
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
3951
4016
  cwd?: string | undefined;
3952
4017
  exitCode?: number | null | undefined;
3953
4018
  } | undefined;
@@ -3964,20 +4029,20 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3964
4029
  changeSetId?: string | undefined;
3965
4030
  } | undefined;
3966
4031
  role?: "user" | "assistant" | "system" | undefined;
3967
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3968
4032
  content?: {
3969
4033
  type: "text" | "image";
3970
4034
  text?: string | undefined;
3971
4035
  data?: string | undefined;
3972
4036
  mimeType?: string | undefined;
3973
4037
  }[] | undefined;
4038
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3974
4039
  isStreaming?: boolean | undefined;
3975
4040
  toolCall?: {
3976
- id: string;
3977
4041
  name: string;
3978
- status?: "running" | "pending" | "completed" | "failed" | undefined;
4042
+ id: string;
3979
4043
  input?: string | undefined;
3980
4044
  output?: string | undefined;
4045
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
3981
4046
  createdAt?: number | undefined;
3982
4047
  } | undefined;
3983
4048
  permission?: {
@@ -4056,10 +4121,10 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4056
4121
  lastActivityAt: z.ZodNumber;
4057
4122
  createdAt: z.ZodNumber;
4058
4123
  }, "strip", z.ZodTypeAny, {
4124
+ provider: "claude" | "codex" | "custom";
4059
4125
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
4060
4126
  id: string;
4061
4127
  cwd: string;
4062
- provider: "claude" | "codex" | "custom";
4063
4128
  createdAt: number;
4064
4129
  archived: boolean;
4065
4130
  lastActivityAt: number;
@@ -4075,9 +4140,9 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4075
4140
  cwd: string;
4076
4141
  createdAt: number;
4077
4142
  lastActivityAt: number;
4143
+ provider?: "claude" | "codex" | "custom" | undefined;
4078
4144
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
4079
4145
  title?: string | undefined;
4080
- provider?: "claude" | "codex" | "custom" | undefined;
4081
4146
  agentSessionId?: string | undefined;
4082
4147
  model?: string | undefined;
4083
4148
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -4088,10 +4153,10 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4088
4153
  }>, "many">;
4089
4154
  }, "strip", z.ZodTypeAny, {
4090
4155
  conversations: {
4156
+ provider: "claude" | "codex" | "custom";
4091
4157
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
4092
4158
  id: string;
4093
4159
  cwd: string;
4094
- provider: "claude" | "codex" | "custom";
4095
4160
  createdAt: number;
4096
4161
  archived: boolean;
4097
4162
  lastActivityAt: number;
@@ -4109,9 +4174,9 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4109
4174
  cwd: string;
4110
4175
  createdAt: number;
4111
4176
  lastActivityAt: number;
4177
+ provider?: "claude" | "codex" | "custom" | undefined;
4112
4178
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
4113
4179
  title?: string | undefined;
4114
- provider?: "claude" | "codex" | "custom" | undefined;
4115
4180
  agentSessionId?: string | undefined;
4116
4181
  model?: string | undefined;
4117
4182
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -4250,10 +4315,10 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4250
4315
  lastActivityAt: z.ZodNumber;
4251
4316
  createdAt: z.ZodNumber;
4252
4317
  }, "strip", z.ZodTypeAny, {
4318
+ provider: "claude" | "codex" | "custom";
4253
4319
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
4254
4320
  id: string;
4255
4321
  cwd: string;
4256
- provider: "claude" | "codex" | "custom";
4257
4322
  createdAt: number;
4258
4323
  archived: boolean;
4259
4324
  lastActivityAt: number;
@@ -4269,9 +4334,9 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4269
4334
  cwd: string;
4270
4335
  createdAt: number;
4271
4336
  lastActivityAt: number;
4337
+ provider?: "claude" | "codex" | "custom" | undefined;
4272
4338
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
4273
4339
  title?: string | undefined;
4274
- provider?: "claude" | "codex" | "custom" | undefined;
4275
4340
  agentSessionId?: string | undefined;
4276
4341
  model?: string | undefined;
4277
4342
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -4314,18 +4379,18 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4314
4379
  createdAt: z.ZodOptional<z.ZodNumber>;
4315
4380
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
4316
4381
  }, "strip", z.ZodTypeAny, {
4382
+ name: string;
4317
4383
  status: "running" | "pending" | "completed" | "failed";
4318
4384
  id: string;
4319
- name: string;
4320
4385
  input?: string | undefined;
4321
4386
  output?: string | undefined;
4322
4387
  createdAt?: number | undefined;
4323
4388
  }, {
4324
- id: string;
4325
4389
  name: string;
4326
- status?: "running" | "pending" | "completed" | "failed" | undefined;
4390
+ id: string;
4327
4391
  input?: string | undefined;
4328
4392
  output?: string | undefined;
4393
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
4329
4394
  createdAt?: number | undefined;
4330
4395
  }>>;
4331
4396
  commandExecution: z.ZodOptional<z.ZodObject<{
@@ -4335,15 +4400,15 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4335
4400
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4336
4401
  status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
4337
4402
  }, "strip", z.ZodTypeAny, {
4338
- status?: "running" | "pending" | "completed" | "failed" | undefined;
4339
- output?: string | undefined;
4340
4403
  command?: string | undefined;
4404
+ output?: string | undefined;
4405
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
4341
4406
  cwd?: string | undefined;
4342
4407
  exitCode?: number | null | undefined;
4343
4408
  }, {
4344
- status?: "running" | "pending" | "completed" | "failed" | undefined;
4345
- output?: string | undefined;
4346
4409
  command?: string | undefined;
4410
+ output?: string | undefined;
4411
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
4347
4412
  cwd?: string | undefined;
4348
4413
  exitCode?: number | null | undefined;
4349
4414
  }>>;
@@ -4622,9 +4687,9 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4622
4687
  text?: string | undefined;
4623
4688
  itemId?: string | undefined;
4624
4689
  commandExecution?: {
4625
- status?: "running" | "pending" | "completed" | "failed" | undefined;
4626
- output?: string | undefined;
4627
4690
  command?: string | undefined;
4691
+ output?: string | undefined;
4692
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
4628
4693
  cwd?: string | undefined;
4629
4694
  exitCode?: number | null | undefined;
4630
4695
  } | undefined;
@@ -4641,18 +4706,18 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4641
4706
  changeSetId?: string | undefined;
4642
4707
  } | undefined;
4643
4708
  role?: "user" | "assistant" | "system" | undefined;
4644
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4645
4709
  content?: {
4646
4710
  type: "text" | "image";
4647
4711
  text?: string | undefined;
4648
4712
  data?: string | undefined;
4649
4713
  mimeType?: string | undefined;
4650
4714
  }[] | undefined;
4715
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4651
4716
  isStreaming?: boolean | undefined;
4652
4717
  toolCall?: {
4718
+ name: string;
4653
4719
  status: "running" | "pending" | "completed" | "failed";
4654
4720
  id: string;
4655
- name: string;
4656
4721
  input?: string | undefined;
4657
4722
  output?: string | undefined;
4658
4723
  createdAt?: number | undefined;
@@ -4722,9 +4787,9 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4722
4787
  text?: string | undefined;
4723
4788
  itemId?: string | undefined;
4724
4789
  commandExecution?: {
4725
- status?: "running" | "pending" | "completed" | "failed" | undefined;
4726
- output?: string | undefined;
4727
4790
  command?: string | undefined;
4791
+ output?: string | undefined;
4792
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
4728
4793
  cwd?: string | undefined;
4729
4794
  exitCode?: number | null | undefined;
4730
4795
  } | undefined;
@@ -4741,20 +4806,20 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4741
4806
  changeSetId?: string | undefined;
4742
4807
  } | undefined;
4743
4808
  role?: "user" | "assistant" | "system" | undefined;
4744
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4745
4809
  content?: {
4746
4810
  type: "text" | "image";
4747
4811
  text?: string | undefined;
4748
4812
  data?: string | undefined;
4749
4813
  mimeType?: string | undefined;
4750
4814
  }[] | undefined;
4815
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4751
4816
  isStreaming?: boolean | undefined;
4752
4817
  toolCall?: {
4753
- id: string;
4754
4818
  name: string;
4755
- status?: "running" | "pending" | "completed" | "failed" | undefined;
4819
+ id: string;
4756
4820
  input?: string | undefined;
4757
4821
  output?: string | undefined;
4822
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
4758
4823
  createdAt?: number | undefined;
4759
4824
  } | undefined;
4760
4825
  permission?: {
@@ -4811,10 +4876,10 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4811
4876
  machineId: z.ZodOptional<z.ZodString>;
4812
4877
  }, "strip", z.ZodTypeAny, {
4813
4878
  conversations: {
4879
+ provider: "claude" | "codex" | "custom";
4814
4880
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
4815
4881
  id: string;
4816
4882
  cwd: string;
4817
- provider: "claude" | "codex" | "custom";
4818
4883
  createdAt: number;
4819
4884
  archived: boolean;
4820
4885
  lastActivityAt: number;
@@ -4841,9 +4906,9 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4841
4906
  text?: string | undefined;
4842
4907
  itemId?: string | undefined;
4843
4908
  commandExecution?: {
4844
- status?: "running" | "pending" | "completed" | "failed" | undefined;
4845
- output?: string | undefined;
4846
4909
  command?: string | undefined;
4910
+ output?: string | undefined;
4911
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
4847
4912
  cwd?: string | undefined;
4848
4913
  exitCode?: number | null | undefined;
4849
4914
  } | undefined;
@@ -4860,18 +4925,18 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4860
4925
  changeSetId?: string | undefined;
4861
4926
  } | undefined;
4862
4927
  role?: "user" | "assistant" | "system" | undefined;
4863
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4864
4928
  content?: {
4865
4929
  type: "text" | "image";
4866
4930
  text?: string | undefined;
4867
4931
  data?: string | undefined;
4868
4932
  mimeType?: string | undefined;
4869
4933
  }[] | undefined;
4934
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4870
4935
  isStreaming?: boolean | undefined;
4871
4936
  toolCall?: {
4937
+ name: string;
4872
4938
  status: "running" | "pending" | "completed" | "failed";
4873
4939
  id: string;
4874
- name: string;
4875
4940
  input?: string | undefined;
4876
4941
  output?: string | undefined;
4877
4942
  createdAt?: number | undefined;
@@ -4936,9 +5001,9 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4936
5001
  cwd: string;
4937
5002
  createdAt: number;
4938
5003
  lastActivityAt: number;
5004
+ provider?: "claude" | "codex" | "custom" | undefined;
4939
5005
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
4940
5006
  title?: string | undefined;
4941
- provider?: "claude" | "codex" | "custom" | undefined;
4942
5007
  agentSessionId?: string | undefined;
4943
5008
  model?: string | undefined;
4944
5009
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -4963,9 +5028,9 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4963
5028
  text?: string | undefined;
4964
5029
  itemId?: string | undefined;
4965
5030
  commandExecution?: {
4966
- status?: "running" | "pending" | "completed" | "failed" | undefined;
4967
- output?: string | undefined;
4968
5031
  command?: string | undefined;
5032
+ output?: string | undefined;
5033
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
4969
5034
  cwd?: string | undefined;
4970
5035
  exitCode?: number | null | undefined;
4971
5036
  } | undefined;
@@ -4982,20 +5047,20 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4982
5047
  changeSetId?: string | undefined;
4983
5048
  } | undefined;
4984
5049
  role?: "user" | "assistant" | "system" | undefined;
4985
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4986
5050
  content?: {
4987
5051
  type: "text" | "image";
4988
5052
  text?: string | undefined;
4989
5053
  data?: string | undefined;
4990
5054
  mimeType?: string | undefined;
4991
5055
  }[] | undefined;
5056
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4992
5057
  isStreaming?: boolean | undefined;
4993
5058
  toolCall?: {
4994
- id: string;
4995
5059
  name: string;
4996
- status?: "running" | "pending" | "completed" | "failed" | undefined;
5060
+ id: string;
4997
5061
  input?: string | undefined;
4998
5062
  output?: string | undefined;
5063
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
4999
5064
  createdAt?: number | undefined;
5000
5065
  } | undefined;
5001
5066
  permission?: {
@@ -5068,10 +5133,10 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5068
5133
  lastActivityAt: z.ZodNumber;
5069
5134
  createdAt: z.ZodNumber;
5070
5135
  }, "strip", z.ZodTypeAny, {
5136
+ provider: "claude" | "codex" | "custom";
5071
5137
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
5072
5138
  id: string;
5073
5139
  cwd: string;
5074
- provider: "claude" | "codex" | "custom";
5075
5140
  createdAt: number;
5076
5141
  archived: boolean;
5077
5142
  lastActivityAt: number;
@@ -5087,9 +5152,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5087
5152
  cwd: string;
5088
5153
  createdAt: number;
5089
5154
  lastActivityAt: number;
5155
+ provider?: "claude" | "codex" | "custom" | undefined;
5090
5156
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
5091
5157
  title?: string | undefined;
5092
- provider?: "claude" | "codex" | "custom" | undefined;
5093
5158
  agentSessionId?: string | undefined;
5094
5159
  model?: string | undefined;
5095
5160
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -5131,18 +5196,18 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5131
5196
  createdAt: z.ZodOptional<z.ZodNumber>;
5132
5197
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
5133
5198
  }, "strip", z.ZodTypeAny, {
5199
+ name: string;
5134
5200
  status: "running" | "pending" | "completed" | "failed";
5135
5201
  id: string;
5136
- name: string;
5137
5202
  input?: string | undefined;
5138
5203
  output?: string | undefined;
5139
5204
  createdAt?: number | undefined;
5140
5205
  }, {
5141
- id: string;
5142
5206
  name: string;
5143
- status?: "running" | "pending" | "completed" | "failed" | undefined;
5207
+ id: string;
5144
5208
  input?: string | undefined;
5145
5209
  output?: string | undefined;
5210
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5146
5211
  createdAt?: number | undefined;
5147
5212
  }>>;
5148
5213
  commandExecution: z.ZodOptional<z.ZodObject<{
@@ -5152,15 +5217,15 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5152
5217
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5153
5218
  status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
5154
5219
  }, "strip", z.ZodTypeAny, {
5155
- status?: "running" | "pending" | "completed" | "failed" | undefined;
5156
- output?: string | undefined;
5157
5220
  command?: string | undefined;
5221
+ output?: string | undefined;
5222
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5158
5223
  cwd?: string | undefined;
5159
5224
  exitCode?: number | null | undefined;
5160
5225
  }, {
5161
- status?: "running" | "pending" | "completed" | "failed" | undefined;
5162
- output?: string | undefined;
5163
5226
  command?: string | undefined;
5227
+ output?: string | undefined;
5228
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5164
5229
  cwd?: string | undefined;
5165
5230
  exitCode?: number | null | undefined;
5166
5231
  }>>;
@@ -5439,9 +5504,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5439
5504
  text?: string | undefined;
5440
5505
  itemId?: string | undefined;
5441
5506
  commandExecution?: {
5442
- status?: "running" | "pending" | "completed" | "failed" | undefined;
5443
- output?: string | undefined;
5444
5507
  command?: string | undefined;
5508
+ output?: string | undefined;
5509
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5445
5510
  cwd?: string | undefined;
5446
5511
  exitCode?: number | null | undefined;
5447
5512
  } | undefined;
@@ -5458,18 +5523,18 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5458
5523
  changeSetId?: string | undefined;
5459
5524
  } | undefined;
5460
5525
  role?: "user" | "assistant" | "system" | undefined;
5461
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5462
5526
  content?: {
5463
5527
  type: "text" | "image";
5464
5528
  text?: string | undefined;
5465
5529
  data?: string | undefined;
5466
5530
  mimeType?: string | undefined;
5467
5531
  }[] | undefined;
5532
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5468
5533
  isStreaming?: boolean | undefined;
5469
5534
  toolCall?: {
5535
+ name: string;
5470
5536
  status: "running" | "pending" | "completed" | "failed";
5471
5537
  id: string;
5472
- name: string;
5473
5538
  input?: string | undefined;
5474
5539
  output?: string | undefined;
5475
5540
  createdAt?: number | undefined;
@@ -5539,9 +5604,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5539
5604
  text?: string | undefined;
5540
5605
  itemId?: string | undefined;
5541
5606
  commandExecution?: {
5542
- status?: "running" | "pending" | "completed" | "failed" | undefined;
5543
- output?: string | undefined;
5544
5607
  command?: string | undefined;
5608
+ output?: string | undefined;
5609
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5545
5610
  cwd?: string | undefined;
5546
5611
  exitCode?: number | null | undefined;
5547
5612
  } | undefined;
@@ -5558,20 +5623,20 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5558
5623
  changeSetId?: string | undefined;
5559
5624
  } | undefined;
5560
5625
  role?: "user" | "assistant" | "system" | undefined;
5561
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5562
5626
  content?: {
5563
5627
  type: "text" | "image";
5564
5628
  text?: string | undefined;
5565
5629
  data?: string | undefined;
5566
5630
  mimeType?: string | undefined;
5567
5631
  }[] | undefined;
5632
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5568
5633
  isStreaming?: boolean | undefined;
5569
5634
  toolCall?: {
5570
- id: string;
5571
5635
  name: string;
5572
- status?: "running" | "pending" | "completed" | "failed" | undefined;
5636
+ id: string;
5573
5637
  input?: string | undefined;
5574
5638
  output?: string | undefined;
5639
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5575
5640
  createdAt?: number | undefined;
5576
5641
  } | undefined;
5577
5642
  permission?: {
@@ -5656,18 +5721,18 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5656
5721
  createdAt: z.ZodOptional<z.ZodNumber>;
5657
5722
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
5658
5723
  }, "strip", z.ZodTypeAny, {
5724
+ name: string;
5659
5725
  status: "running" | "pending" | "completed" | "failed";
5660
5726
  id: string;
5661
- name: string;
5662
5727
  input?: string | undefined;
5663
5728
  output?: string | undefined;
5664
5729
  createdAt?: number | undefined;
5665
5730
  }, {
5666
- id: string;
5667
5731
  name: string;
5668
- status?: "running" | "pending" | "completed" | "failed" | undefined;
5732
+ id: string;
5669
5733
  input?: string | undefined;
5670
5734
  output?: string | undefined;
5735
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5671
5736
  createdAt?: number | undefined;
5672
5737
  }>>;
5673
5738
  commandExecution: z.ZodOptional<z.ZodObject<{
@@ -5677,15 +5742,15 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5677
5742
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5678
5743
  status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
5679
5744
  }, "strip", z.ZodTypeAny, {
5680
- status?: "running" | "pending" | "completed" | "failed" | undefined;
5681
- output?: string | undefined;
5682
5745
  command?: string | undefined;
5746
+ output?: string | undefined;
5747
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5683
5748
  cwd?: string | undefined;
5684
5749
  exitCode?: number | null | undefined;
5685
5750
  }, {
5686
- status?: "running" | "pending" | "completed" | "failed" | undefined;
5687
- output?: string | undefined;
5688
5751
  command?: string | undefined;
5752
+ output?: string | undefined;
5753
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5689
5754
  cwd?: string | undefined;
5690
5755
  exitCode?: number | null | undefined;
5691
5756
  }>>;
@@ -5958,9 +6023,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5958
6023
  }[] | undefined;
5959
6024
  text?: string | undefined;
5960
6025
  commandExecution?: {
5961
- status?: "running" | "pending" | "completed" | "failed" | undefined;
5962
- output?: string | undefined;
5963
6026
  command?: string | undefined;
6027
+ output?: string | undefined;
6028
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5964
6029
  cwd?: string | undefined;
5965
6030
  exitCode?: number | null | undefined;
5966
6031
  } | undefined;
@@ -5977,18 +6042,18 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5977
6042
  changeSetId?: string | undefined;
5978
6043
  } | undefined;
5979
6044
  role?: "user" | "assistant" | "system" | undefined;
5980
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5981
6045
  content?: {
5982
6046
  type: "text" | "image";
5983
6047
  text?: string | undefined;
5984
6048
  data?: string | undefined;
5985
6049
  mimeType?: string | undefined;
5986
6050
  }[] | undefined;
6051
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5987
6052
  isStreaming?: boolean | undefined;
5988
6053
  toolCall?: {
6054
+ name: string;
5989
6055
  status: "running" | "pending" | "completed" | "failed";
5990
6056
  id: string;
5991
- name: string;
5992
6057
  input?: string | undefined;
5993
6058
  output?: string | undefined;
5994
6059
  createdAt?: number | undefined;
@@ -6054,9 +6119,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6054
6119
  }[] | undefined;
6055
6120
  text?: string | undefined;
6056
6121
  commandExecution?: {
6057
- status?: "running" | "pending" | "completed" | "failed" | undefined;
6058
- output?: string | undefined;
6059
6122
  command?: string | undefined;
6123
+ output?: string | undefined;
6124
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
6060
6125
  cwd?: string | undefined;
6061
6126
  exitCode?: number | null | undefined;
6062
6127
  } | undefined;
@@ -6073,20 +6138,20 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6073
6138
  changeSetId?: string | undefined;
6074
6139
  } | undefined;
6075
6140
  role?: "user" | "assistant" | "system" | undefined;
6076
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6077
6141
  content?: {
6078
6142
  type: "text" | "image";
6079
6143
  text?: string | undefined;
6080
6144
  data?: string | undefined;
6081
6145
  mimeType?: string | undefined;
6082
6146
  }[] | undefined;
6147
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6083
6148
  isStreaming?: boolean | undefined;
6084
6149
  toolCall?: {
6085
- id: string;
6086
6150
  name: string;
6087
- status?: "running" | "pending" | "completed" | "failed" | undefined;
6151
+ id: string;
6088
6152
  input?: string | undefined;
6089
6153
  output?: string | undefined;
6154
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
6090
6155
  createdAt?: number | undefined;
6091
6156
  } | undefined;
6092
6157
  permission?: {
@@ -6157,9 +6222,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6157
6222
  text?: string | undefined;
6158
6223
  itemId?: string | undefined;
6159
6224
  commandExecution?: {
6160
- status?: "running" | "pending" | "completed" | "failed" | undefined;
6161
- output?: string | undefined;
6162
6225
  command?: string | undefined;
6226
+ output?: string | undefined;
6227
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
6163
6228
  cwd?: string | undefined;
6164
6229
  exitCode?: number | null | undefined;
6165
6230
  } | undefined;
@@ -6176,18 +6241,18 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6176
6241
  changeSetId?: string | undefined;
6177
6242
  } | undefined;
6178
6243
  role?: "user" | "assistant" | "system" | undefined;
6179
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6180
6244
  content?: {
6181
6245
  type: "text" | "image";
6182
6246
  text?: string | undefined;
6183
6247
  data?: string | undefined;
6184
6248
  mimeType?: string | undefined;
6185
6249
  }[] | undefined;
6250
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6186
6251
  isStreaming?: boolean | undefined;
6187
6252
  toolCall?: {
6253
+ name: string;
6188
6254
  status: "running" | "pending" | "completed" | "failed";
6189
6255
  id: string;
6190
- name: string;
6191
6256
  input?: string | undefined;
6192
6257
  output?: string | undefined;
6193
6258
  createdAt?: number | undefined;
@@ -6254,9 +6319,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6254
6319
  }[] | undefined;
6255
6320
  text?: string | undefined;
6256
6321
  commandExecution?: {
6257
- status?: "running" | "pending" | "completed" | "failed" | undefined;
6258
- output?: string | undefined;
6259
6322
  command?: string | undefined;
6323
+ output?: string | undefined;
6324
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
6260
6325
  cwd?: string | undefined;
6261
6326
  exitCode?: number | null | undefined;
6262
6327
  } | undefined;
@@ -6273,18 +6338,18 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6273
6338
  changeSetId?: string | undefined;
6274
6339
  } | undefined;
6275
6340
  role?: "user" | "assistant" | "system" | undefined;
6276
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6277
6341
  content?: {
6278
6342
  type: "text" | "image";
6279
6343
  text?: string | undefined;
6280
6344
  data?: string | undefined;
6281
6345
  mimeType?: string | undefined;
6282
6346
  }[] | undefined;
6347
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6283
6348
  isStreaming?: boolean | undefined;
6284
6349
  toolCall?: {
6350
+ name: string;
6285
6351
  status: "running" | "pending" | "completed" | "failed";
6286
6352
  id: string;
6287
- name: string;
6288
6353
  input?: string | undefined;
6289
6354
  output?: string | undefined;
6290
6355
  createdAt?: number | undefined;
@@ -6341,10 +6406,10 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6341
6406
  textDelta?: string | undefined;
6342
6407
  } | undefined;
6343
6408
  conversation?: {
6409
+ provider: "claude" | "codex" | "custom";
6344
6410
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
6345
6411
  id: string;
6346
6412
  cwd: string;
6347
- provider: "claude" | "codex" | "custom";
6348
6413
  createdAt: number;
6349
6414
  archived: boolean;
6350
6415
  lastActivityAt: number;
@@ -6373,9 +6438,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6373
6438
  text?: string | undefined;
6374
6439
  itemId?: string | undefined;
6375
6440
  commandExecution?: {
6376
- status?: "running" | "pending" | "completed" | "failed" | undefined;
6377
- output?: string | undefined;
6378
6441
  command?: string | undefined;
6442
+ output?: string | undefined;
6443
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
6379
6444
  cwd?: string | undefined;
6380
6445
  exitCode?: number | null | undefined;
6381
6446
  } | undefined;
@@ -6392,20 +6457,20 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6392
6457
  changeSetId?: string | undefined;
6393
6458
  } | undefined;
6394
6459
  role?: "user" | "assistant" | "system" | undefined;
6395
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6396
6460
  content?: {
6397
6461
  type: "text" | "image";
6398
6462
  text?: string | undefined;
6399
6463
  data?: string | undefined;
6400
6464
  mimeType?: string | undefined;
6401
6465
  }[] | undefined;
6466
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6402
6467
  isStreaming?: boolean | undefined;
6403
6468
  toolCall?: {
6404
- id: string;
6405
6469
  name: string;
6406
- status?: "running" | "pending" | "completed" | "failed" | undefined;
6470
+ id: string;
6407
6471
  input?: string | undefined;
6408
6472
  output?: string | undefined;
6473
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
6409
6474
  createdAt?: number | undefined;
6410
6475
  } | undefined;
6411
6476
  permission?: {
@@ -6470,9 +6535,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6470
6535
  }[] | undefined;
6471
6536
  text?: string | undefined;
6472
6537
  commandExecution?: {
6473
- status?: "running" | "pending" | "completed" | "failed" | undefined;
6474
- output?: string | undefined;
6475
6538
  command?: string | undefined;
6539
+ output?: string | undefined;
6540
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
6476
6541
  cwd?: string | undefined;
6477
6542
  exitCode?: number | null | undefined;
6478
6543
  } | undefined;
@@ -6489,20 +6554,20 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6489
6554
  changeSetId?: string | undefined;
6490
6555
  } | undefined;
6491
6556
  role?: "user" | "assistant" | "system" | undefined;
6492
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6493
6557
  content?: {
6494
6558
  type: "text" | "image";
6495
6559
  text?: string | undefined;
6496
6560
  data?: string | undefined;
6497
6561
  mimeType?: string | undefined;
6498
6562
  }[] | undefined;
6563
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6499
6564
  isStreaming?: boolean | undefined;
6500
6565
  toolCall?: {
6501
- id: string;
6502
6566
  name: string;
6503
- status?: "running" | "pending" | "completed" | "failed" | undefined;
6567
+ id: string;
6504
6568
  input?: string | undefined;
6505
6569
  output?: string | undefined;
6570
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
6506
6571
  createdAt?: number | undefined;
6507
6572
  } | undefined;
6508
6573
  permission?: {
@@ -6561,9 +6626,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6561
6626
  cwd: string;
6562
6627
  createdAt: number;
6563
6628
  lastActivityAt: number;
6629
+ provider?: "claude" | "codex" | "custom" | undefined;
6564
6630
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
6565
6631
  title?: string | undefined;
6566
- provider?: "claude" | "codex" | "custom" | undefined;
6567
6632
  agentSessionId?: string | undefined;
6568
6633
  model?: string | undefined;
6569
6634
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -6626,18 +6691,18 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6626
6691
  createdAt: z.ZodOptional<z.ZodNumber>;
6627
6692
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
6628
6693
  }, "strip", z.ZodTypeAny, {
6694
+ name: string;
6629
6695
  status: "running" | "pending" | "completed" | "failed";
6630
6696
  id: string;
6631
- name: string;
6632
6697
  input?: string | undefined;
6633
6698
  output?: string | undefined;
6634
6699
  createdAt?: number | undefined;
6635
6700
  }, {
6636
- id: string;
6637
6701
  name: string;
6638
- status?: "running" | "pending" | "completed" | "failed" | undefined;
6702
+ id: string;
6639
6703
  input?: string | undefined;
6640
6704
  output?: string | undefined;
6705
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
6641
6706
  createdAt?: number | undefined;
6642
6707
  }>>;
6643
6708
  commandExecution: z.ZodOptional<z.ZodObject<{
@@ -6647,15 +6712,15 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6647
6712
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6648
6713
  status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
6649
6714
  }, "strip", z.ZodTypeAny, {
6650
- status?: "running" | "pending" | "completed" | "failed" | undefined;
6651
- output?: string | undefined;
6652
6715
  command?: string | undefined;
6716
+ output?: string | undefined;
6717
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
6653
6718
  cwd?: string | undefined;
6654
6719
  exitCode?: number | null | undefined;
6655
6720
  }, {
6656
- status?: "running" | "pending" | "completed" | "failed" | undefined;
6657
- output?: string | undefined;
6658
6721
  command?: string | undefined;
6722
+ output?: string | undefined;
6723
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
6659
6724
  cwd?: string | undefined;
6660
6725
  exitCode?: number | null | undefined;
6661
6726
  }>>;
@@ -6934,9 +6999,9 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6934
6999
  text?: string | undefined;
6935
7000
  itemId?: string | undefined;
6936
7001
  commandExecution?: {
6937
- status?: "running" | "pending" | "completed" | "failed" | undefined;
6938
- output?: string | undefined;
6939
7002
  command?: string | undefined;
7003
+ output?: string | undefined;
7004
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
6940
7005
  cwd?: string | undefined;
6941
7006
  exitCode?: number | null | undefined;
6942
7007
  } | undefined;
@@ -6953,18 +7018,18 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6953
7018
  changeSetId?: string | undefined;
6954
7019
  } | undefined;
6955
7020
  role?: "user" | "assistant" | "system" | undefined;
6956
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6957
7021
  content?: {
6958
7022
  type: "text" | "image";
6959
7023
  text?: string | undefined;
6960
7024
  data?: string | undefined;
6961
7025
  mimeType?: string | undefined;
6962
7026
  }[] | undefined;
7027
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6963
7028
  isStreaming?: boolean | undefined;
6964
7029
  toolCall?: {
7030
+ name: string;
6965
7031
  status: "running" | "pending" | "completed" | "failed";
6966
7032
  id: string;
6967
- name: string;
6968
7033
  input?: string | undefined;
6969
7034
  output?: string | undefined;
6970
7035
  createdAt?: number | undefined;
@@ -7034,9 +7099,9 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7034
7099
  text?: string | undefined;
7035
7100
  itemId?: string | undefined;
7036
7101
  commandExecution?: {
7037
- status?: "running" | "pending" | "completed" | "failed" | undefined;
7038
- output?: string | undefined;
7039
7102
  command?: string | undefined;
7103
+ output?: string | undefined;
7104
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
7040
7105
  cwd?: string | undefined;
7041
7106
  exitCode?: number | null | undefined;
7042
7107
  } | undefined;
@@ -7053,20 +7118,20 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7053
7118
  changeSetId?: string | undefined;
7054
7119
  } | undefined;
7055
7120
  role?: "user" | "assistant" | "system" | undefined;
7056
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7057
7121
  content?: {
7058
7122
  type: "text" | "image";
7059
7123
  text?: string | undefined;
7060
7124
  data?: string | undefined;
7061
7125
  mimeType?: string | undefined;
7062
7126
  }[] | undefined;
7127
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7063
7128
  isStreaming?: boolean | undefined;
7064
7129
  toolCall?: {
7065
- id: string;
7066
7130
  name: string;
7067
- status?: "running" | "pending" | "completed" | "failed" | undefined;
7131
+ id: string;
7068
7132
  input?: string | undefined;
7069
7133
  output?: string | undefined;
7134
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
7070
7135
  createdAt?: number | undefined;
7071
7136
  } | undefined;
7072
7137
  permission?: {
@@ -7143,9 +7208,9 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7143
7208
  text?: string | undefined;
7144
7209
  itemId?: string | undefined;
7145
7210
  commandExecution?: {
7146
- status?: "running" | "pending" | "completed" | "failed" | undefined;
7147
- output?: string | undefined;
7148
7211
  command?: string | undefined;
7212
+ output?: string | undefined;
7213
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
7149
7214
  cwd?: string | undefined;
7150
7215
  exitCode?: number | null | undefined;
7151
7216
  } | undefined;
@@ -7162,18 +7227,18 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7162
7227
  changeSetId?: string | undefined;
7163
7228
  } | undefined;
7164
7229
  role?: "user" | "assistant" | "system" | undefined;
7165
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7166
7230
  content?: {
7167
7231
  type: "text" | "image";
7168
7232
  text?: string | undefined;
7169
7233
  data?: string | undefined;
7170
7234
  mimeType?: string | undefined;
7171
7235
  }[] | undefined;
7236
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7172
7237
  isStreaming?: boolean | undefined;
7173
7238
  toolCall?: {
7239
+ name: string;
7174
7240
  status: "running" | "pending" | "completed" | "failed";
7175
7241
  id: string;
7176
- name: string;
7177
7242
  input?: string | undefined;
7178
7243
  output?: string | undefined;
7179
7244
  createdAt?: number | undefined;
@@ -7250,9 +7315,9 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7250
7315
  text?: string | undefined;
7251
7316
  itemId?: string | undefined;
7252
7317
  commandExecution?: {
7253
- status?: "running" | "pending" | "completed" | "failed" | undefined;
7254
- output?: string | undefined;
7255
7318
  command?: string | undefined;
7319
+ output?: string | undefined;
7320
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
7256
7321
  cwd?: string | undefined;
7257
7322
  exitCode?: number | null | undefined;
7258
7323
  } | undefined;
@@ -7269,20 +7334,20 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7269
7334
  changeSetId?: string | undefined;
7270
7335
  } | undefined;
7271
7336
  role?: "user" | "assistant" | "system" | undefined;
7272
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7273
7337
  content?: {
7274
7338
  type: "text" | "image";
7275
7339
  text?: string | undefined;
7276
7340
  data?: string | undefined;
7277
7341
  mimeType?: string | undefined;
7278
7342
  }[] | undefined;
7343
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7279
7344
  isStreaming?: boolean | undefined;
7280
7345
  toolCall?: {
7281
- id: string;
7282
7346
  name: string;
7283
- status?: "running" | "pending" | "completed" | "failed" | undefined;
7347
+ id: string;
7284
7348
  input?: string | undefined;
7285
7349
  output?: string | undefined;
7350
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
7286
7351
  createdAt?: number | undefined;
7287
7352
  } | undefined;
7288
7353
  permission?: {
@@ -7349,7 +7414,7 @@ export declare const protocolMessageSchemas: {
7349
7414
  readonly "session.connect": z.ZodObject<{
7350
7415
  role: z.ZodEnum<["host", "client"]>;
7351
7416
  clientName: z.ZodString;
7352
- provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "custom"]>>;
7417
+ provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
7353
7418
  protocolVersion: z.ZodOptional<z.ZodNumber>;
7354
7419
  machineId: z.ZodOptional<z.ZodString>;
7355
7420
  hostname: z.ZodOptional<z.ZodString>;
@@ -7357,23 +7422,23 @@ export declare const protocolMessageSchemas: {
7357
7422
  cwd: z.ZodOptional<z.ZodString>;
7358
7423
  projectName: z.ZodOptional<z.ZodString>;
7359
7424
  }, "strip", z.ZodTypeAny, {
7360
- role: "host" | "client";
7361
7425
  clientName: string;
7426
+ role: "host" | "client";
7427
+ provider?: "claude" | "codex" | "gemini" | "copilot" | "custom" | undefined;
7428
+ hostname?: string | undefined;
7362
7429
  cwd?: string | undefined;
7363
- provider?: "claude" | "codex" | "custom" | undefined;
7364
7430
  protocolVersion?: number | undefined;
7365
7431
  machineId?: string | undefined;
7366
- hostname?: string | undefined;
7367
7432
  platform?: string | undefined;
7368
7433
  projectName?: string | undefined;
7369
7434
  }, {
7370
- role: "host" | "client";
7371
7435
  clientName: string;
7436
+ role: "host" | "client";
7437
+ provider?: "claude" | "codex" | "gemini" | "copilot" | "custom" | undefined;
7438
+ hostname?: string | undefined;
7372
7439
  cwd?: string | undefined;
7373
- provider?: "claude" | "codex" | "custom" | undefined;
7374
7440
  protocolVersion?: number | undefined;
7375
7441
  machineId?: string | undefined;
7376
- hostname?: string | undefined;
7377
7442
  platform?: string | undefined;
7378
7443
  projectName?: string | undefined;
7379
7444
  }>;
@@ -7614,13 +7679,13 @@ export declare const protocolMessageSchemas: {
7614
7679
  }>;
7615
7680
  readonly "terminal.spawn": z.ZodObject<{
7616
7681
  cwd: z.ZodString;
7617
- provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "custom"]>>;
7682
+ provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
7618
7683
  }, "strip", z.ZodTypeAny, {
7619
7684
  cwd: string;
7620
- provider?: "claude" | "codex" | "custom" | undefined;
7685
+ provider?: "claude" | "codex" | "gemini" | "copilot" | "custom" | undefined;
7621
7686
  }, {
7622
7687
  cwd: string;
7623
- provider?: "claude" | "codex" | "custom" | undefined;
7688
+ provider?: "claude" | "codex" | "gemini" | "copilot" | "custom" | undefined;
7624
7689
  }>;
7625
7690
  readonly "terminal.spawned": z.ZodObject<{
7626
7691
  terminalId: z.ZodString;
@@ -7646,41 +7711,47 @@ export declare const protocolMessageSchemas: {
7646
7711
  provider: z.ZodString;
7647
7712
  status: z.ZodEnum<["running", "exited"]>;
7648
7713
  }, "strip", z.ZodTypeAny, {
7714
+ provider: string;
7649
7715
  status: "running" | "exited";
7650
7716
  cwd: string;
7651
7717
  terminalId: string;
7652
- provider: string;
7653
7718
  projectName: string;
7654
7719
  }, {
7720
+ provider: string;
7655
7721
  status: "running" | "exited";
7656
7722
  cwd: string;
7657
7723
  terminalId: string;
7658
- provider: string;
7659
7724
  projectName: string;
7660
7725
  }>, "many">;
7661
7726
  }, "strip", z.ZodTypeAny, {
7662
7727
  terminals: {
7728
+ provider: string;
7663
7729
  status: "running" | "exited";
7664
7730
  cwd: string;
7665
7731
  terminalId: string;
7666
- provider: string;
7667
7732
  projectName: string;
7668
7733
  }[];
7669
7734
  }, {
7670
7735
  terminals: {
7736
+ provider: string;
7671
7737
  status: "running" | "exited";
7672
7738
  cwd: string;
7673
7739
  terminalId: string;
7674
- provider: string;
7675
7740
  projectName: string;
7676
7741
  }[];
7677
7742
  }>;
7678
7743
  readonly "terminal.browse": z.ZodObject<{
7679
7744
  path: z.ZodString;
7745
+ includeFiles: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7746
+ requestId: z.ZodOptional<z.ZodString>;
7680
7747
  }, "strip", z.ZodTypeAny, {
7681
7748
  path: string;
7749
+ includeFiles: boolean;
7750
+ requestId?: string | undefined;
7682
7751
  }, {
7683
7752
  path: string;
7753
+ includeFiles?: boolean | undefined;
7754
+ requestId?: string | undefined;
7684
7755
  }>;
7685
7756
  readonly "terminal.browse.result": z.ZodObject<{
7686
7757
  path: z.ZodString;
@@ -7688,32 +7759,83 @@ export declare const protocolMessageSchemas: {
7688
7759
  name: z.ZodString;
7689
7760
  path: z.ZodString;
7690
7761
  isDirectory: z.ZodBoolean;
7762
+ size: z.ZodOptional<z.ZodNumber>;
7763
+ modifiedAt: z.ZodOptional<z.ZodString>;
7691
7764
  }, "strip", z.ZodTypeAny, {
7692
7765
  name: string;
7693
7766
  path: string;
7694
7767
  isDirectory: boolean;
7768
+ size?: number | undefined;
7769
+ modifiedAt?: string | undefined;
7695
7770
  }, {
7696
7771
  name: string;
7697
7772
  path: string;
7698
7773
  isDirectory: boolean;
7774
+ size?: number | undefined;
7775
+ modifiedAt?: string | undefined;
7699
7776
  }>, "many">;
7700
7777
  error: z.ZodOptional<z.ZodString>;
7778
+ requestId: z.ZodOptional<z.ZodString>;
7701
7779
  }, "strip", z.ZodTypeAny, {
7702
7780
  entries: {
7703
7781
  name: string;
7704
7782
  path: string;
7705
7783
  isDirectory: boolean;
7784
+ size?: number | undefined;
7785
+ modifiedAt?: string | undefined;
7706
7786
  }[];
7707
7787
  path: string;
7708
7788
  error?: string | undefined;
7789
+ requestId?: string | undefined;
7709
7790
  }, {
7710
7791
  entries: {
7711
7792
  name: string;
7712
7793
  path: string;
7713
7794
  isDirectory: boolean;
7795
+ size?: number | undefined;
7796
+ modifiedAt?: string | undefined;
7714
7797
  }[];
7715
7798
  path: string;
7716
7799
  error?: string | undefined;
7800
+ requestId?: string | undefined;
7801
+ }>;
7802
+ readonly "terminal.file.read": z.ZodObject<{
7803
+ path: z.ZodString;
7804
+ maxBytes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7805
+ requestId: z.ZodOptional<z.ZodString>;
7806
+ }, "strip", z.ZodTypeAny, {
7807
+ path: string;
7808
+ maxBytes: number;
7809
+ requestId?: string | undefined;
7810
+ }, {
7811
+ path: string;
7812
+ requestId?: string | undefined;
7813
+ maxBytes?: number | undefined;
7814
+ }>;
7815
+ readonly "terminal.file.read.result": z.ZodObject<{
7816
+ path: z.ZodString;
7817
+ content: z.ZodDefault<z.ZodString>;
7818
+ encoding: z.ZodDefault<z.ZodLiteral<"utf8">>;
7819
+ size: z.ZodOptional<z.ZodNumber>;
7820
+ truncated: z.ZodDefault<z.ZodBoolean>;
7821
+ error: z.ZodOptional<z.ZodString>;
7822
+ requestId: z.ZodOptional<z.ZodString>;
7823
+ }, "strip", z.ZodTypeAny, {
7824
+ path: string;
7825
+ encoding: "utf8";
7826
+ content: string;
7827
+ truncated: boolean;
7828
+ error?: string | undefined;
7829
+ requestId?: string | undefined;
7830
+ size?: number | undefined;
7831
+ }, {
7832
+ path: string;
7833
+ error?: string | undefined;
7834
+ encoding?: "utf8" | undefined;
7835
+ requestId?: string | undefined;
7836
+ size?: number | undefined;
7837
+ content?: string | undefined;
7838
+ truncated?: boolean | undefined;
7717
7839
  }>;
7718
7840
  readonly "terminal.kill": z.ZodObject<{
7719
7841
  terminalId: z.ZodString;
@@ -7746,14 +7868,14 @@ export declare const protocolMessageSchemas: {
7746
7868
  toolName: string;
7747
7869
  toolInput: string;
7748
7870
  timestamp: number;
7749
- permissionRequest: string;
7750
7871
  requestId: string;
7872
+ permissionRequest: string;
7751
7873
  }, {
7752
7874
  toolName: string;
7753
7875
  toolInput: string;
7754
7876
  timestamp: number;
7755
- permissionRequest: string;
7756
7877
  requestId: string;
7878
+ permissionRequest: string;
7757
7879
  }>>;
7758
7880
  permissionResolution: z.ZodOptional<z.ZodObject<{
7759
7881
  requestId: z.ZodString;
@@ -7785,8 +7907,8 @@ export declare const protocolMessageSchemas: {
7785
7907
  toolName: string;
7786
7908
  toolInput: string;
7787
7909
  timestamp: number;
7788
- permissionRequest: string;
7789
7910
  requestId: string;
7911
+ permissionRequest: string;
7790
7912
  } | undefined;
7791
7913
  permissionResolution?: {
7792
7914
  requestId: string;
@@ -7807,8 +7929,8 @@ export declare const protocolMessageSchemas: {
7807
7929
  toolName: string;
7808
7930
  toolInput: string;
7809
7931
  timestamp: number;
7810
- permissionRequest: string;
7811
7932
  requestId: string;
7933
+ permissionRequest: string;
7812
7934
  } | undefined;
7813
7935
  permissionResolution?: {
7814
7936
  requestId: string;
@@ -7975,25 +8097,25 @@ export declare const protocolMessageSchemas: {
7975
8097
  disabledReason: z.ZodOptional<z.ZodString>;
7976
8098
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
7977
8099
  }, "strip", z.ZodTypeAny, {
8100
+ name: string;
7978
8101
  title: string;
7979
8102
  id: string;
7980
- name: string;
7981
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
8103
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
7982
8104
  argsMode: "none" | "optional" | "required" | "raw";
7983
8105
  executionKind: "prompt" | "native" | "local_ui";
7984
- description?: string | undefined;
7985
8106
  provider?: "claude" | "codex" | "custom" | undefined;
8107
+ description?: string | undefined;
7986
8108
  category?: string | undefined;
7987
8109
  requiresIdle?: boolean | undefined;
7988
8110
  destructive?: boolean | undefined;
7989
8111
  disabledReason?: string | undefined;
7990
8112
  }, {
8113
+ name: string;
7991
8114
  title: string;
7992
8115
  id: string;
7993
- name: string;
7994
- description?: string | undefined;
7995
8116
  provider?: "claude" | "codex" | "custom" | undefined;
7996
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
8117
+ description?: string | undefined;
8118
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
7997
8119
  category?: string | undefined;
7998
8120
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
7999
8121
  requiresIdle?: boolean | undefined;
@@ -8033,14 +8155,14 @@ export declare const protocolMessageSchemas: {
8033
8155
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8034
8156
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8035
8157
  commands?: {
8158
+ name: string;
8036
8159
  title: string;
8037
8160
  id: string;
8038
- name: string;
8039
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
8161
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
8040
8162
  argsMode: "none" | "optional" | "required" | "raw";
8041
8163
  executionKind: "prompt" | "native" | "local_ui";
8042
- description?: string | undefined;
8043
8164
  provider?: "claude" | "codex" | "custom" | undefined;
8165
+ description?: string | undefined;
8044
8166
  category?: string | undefined;
8045
8167
  requiresIdle?: boolean | undefined;
8046
8168
  destructive?: boolean | undefined;
@@ -8070,12 +8192,12 @@ export declare const protocolMessageSchemas: {
8070
8192
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8071
8193
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8072
8194
  commands?: {
8195
+ name: string;
8073
8196
  title: string;
8074
8197
  id: string;
8075
- name: string;
8076
- description?: string | undefined;
8077
8198
  provider?: "claude" | "codex" | "custom" | undefined;
8078
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
8199
+ description?: string | undefined;
8200
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
8079
8201
  category?: string | undefined;
8080
8202
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
8081
8203
  requiresIdle?: boolean | undefined;
@@ -8109,8 +8231,8 @@ export declare const protocolMessageSchemas: {
8109
8231
  supportsSessionList: boolean;
8110
8232
  supportsSessionLoad: boolean;
8111
8233
  supportsAudio: boolean;
8112
- error?: string | undefined;
8113
8234
  provider?: "claude" | "codex" | "custom" | undefined;
8235
+ error?: string | undefined;
8114
8236
  protocolVersion?: number | undefined;
8115
8237
  machineId?: string | undefined;
8116
8238
  providers?: {
@@ -8130,14 +8252,14 @@ export declare const protocolMessageSchemas: {
8130
8252
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8131
8253
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8132
8254
  commands?: {
8255
+ name: string;
8133
8256
  title: string;
8134
8257
  id: string;
8135
- name: string;
8136
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
8258
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
8137
8259
  argsMode: "none" | "optional" | "required" | "raw";
8138
8260
  executionKind: "prompt" | "native" | "local_ui";
8139
- description?: string | undefined;
8140
8261
  provider?: "claude" | "codex" | "custom" | undefined;
8262
+ description?: string | undefined;
8141
8263
  category?: string | undefined;
8142
8264
  requiresIdle?: boolean | undefined;
8143
8265
  destructive?: boolean | undefined;
@@ -8153,8 +8275,8 @@ export declare const protocolMessageSchemas: {
8153
8275
  }[] | undefined;
8154
8276
  }, {
8155
8277
  enabled: boolean;
8156
- error?: string | undefined;
8157
8278
  provider?: "claude" | "codex" | "custom" | undefined;
8279
+ error?: string | undefined;
8158
8280
  protocolVersion?: number | undefined;
8159
8281
  machineId?: string | undefined;
8160
8282
  supportsImages?: boolean | undefined;
@@ -8178,12 +8300,12 @@ export declare const protocolMessageSchemas: {
8178
8300
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8179
8301
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8180
8302
  commands?: {
8303
+ name: string;
8181
8304
  title: string;
8182
8305
  id: string;
8183
- name: string;
8184
- description?: string | undefined;
8185
8306
  provider?: "claude" | "codex" | "custom" | undefined;
8186
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
8307
+ description?: string | undefined;
8308
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
8187
8309
  category?: string | undefined;
8188
8310
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
8189
8311
  requiresIdle?: boolean | undefined;
@@ -8208,12 +8330,12 @@ export declare const protocolMessageSchemas: {
8208
8330
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
8209
8331
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8210
8332
  }, "strip", z.ZodTypeAny, {
8211
- cwd?: string | undefined;
8212
8333
  provider?: "claude" | "codex" | "custom" | undefined;
8334
+ cwd?: string | undefined;
8213
8335
  mcpServers?: Record<string, unknown> | undefined;
8214
8336
  }, {
8215
- cwd?: string | undefined;
8216
8337
  provider?: "claude" | "codex" | "custom" | undefined;
8338
+ cwd?: string | undefined;
8217
8339
  mcpServers?: Record<string, unknown> | undefined;
8218
8340
  }>;
8219
8341
  readonly "agent.session.load": z.ZodObject<{
@@ -8312,18 +8434,18 @@ export declare const protocolMessageSchemas: {
8312
8434
  createdAt: z.ZodOptional<z.ZodNumber>;
8313
8435
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
8314
8436
  }, "strip", z.ZodTypeAny, {
8437
+ name: string;
8315
8438
  status: "running" | "pending" | "completed" | "failed";
8316
8439
  id: string;
8317
- name: string;
8318
8440
  input?: string | undefined;
8319
8441
  output?: string | undefined;
8320
8442
  createdAt?: number | undefined;
8321
8443
  }, {
8322
- id: string;
8323
8444
  name: string;
8324
- status?: "running" | "pending" | "completed" | "failed" | undefined;
8445
+ id: string;
8325
8446
  input?: string | undefined;
8326
8447
  output?: string | undefined;
8448
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
8327
8449
  createdAt?: number | undefined;
8328
8450
  }>>;
8329
8451
  plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -8360,9 +8482,9 @@ export declare const protocolMessageSchemas: {
8360
8482
  agentSessionId?: string | undefined;
8361
8483
  delta?: string | undefined;
8362
8484
  toolCall?: {
8485
+ name: string;
8363
8486
  status: "running" | "pending" | "completed" | "failed";
8364
8487
  id: string;
8365
- name: string;
8366
8488
  input?: string | undefined;
8367
8489
  output?: string | undefined;
8368
8490
  createdAt?: number | undefined;
@@ -8386,11 +8508,11 @@ export declare const protocolMessageSchemas: {
8386
8508
  agentSessionId?: string | undefined;
8387
8509
  delta?: string | undefined;
8388
8510
  toolCall?: {
8389
- id: string;
8390
8511
  name: string;
8391
- status?: "running" | "pending" | "completed" | "failed" | undefined;
8512
+ id: string;
8392
8513
  input?: string | undefined;
8393
8514
  output?: string | undefined;
8515
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
8394
8516
  createdAt?: number | undefined;
8395
8517
  } | undefined;
8396
8518
  }>;
@@ -8495,25 +8617,25 @@ export declare const protocolMessageSchemas: {
8495
8617
  disabledReason: z.ZodOptional<z.ZodString>;
8496
8618
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
8497
8619
  }, "strip", z.ZodTypeAny, {
8620
+ name: string;
8498
8621
  title: string;
8499
8622
  id: string;
8500
- name: string;
8501
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
8623
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
8502
8624
  argsMode: "none" | "optional" | "required" | "raw";
8503
8625
  executionKind: "prompt" | "native" | "local_ui";
8504
- description?: string | undefined;
8505
8626
  provider?: "claude" | "codex" | "custom" | undefined;
8627
+ description?: string | undefined;
8506
8628
  category?: string | undefined;
8507
8629
  requiresIdle?: boolean | undefined;
8508
8630
  destructive?: boolean | undefined;
8509
8631
  disabledReason?: string | undefined;
8510
8632
  }, {
8633
+ name: string;
8511
8634
  title: string;
8512
8635
  id: string;
8513
- name: string;
8514
- description?: string | undefined;
8515
8636
  provider?: "claude" | "codex" | "custom" | undefined;
8516
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
8637
+ description?: string | undefined;
8638
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
8517
8639
  category?: string | undefined;
8518
8640
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
8519
8641
  requiresIdle?: boolean | undefined;
@@ -8553,14 +8675,14 @@ export declare const protocolMessageSchemas: {
8553
8675
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8554
8676
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8555
8677
  commands?: {
8678
+ name: string;
8556
8679
  title: string;
8557
8680
  id: string;
8558
- name: string;
8559
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
8681
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
8560
8682
  argsMode: "none" | "optional" | "required" | "raw";
8561
8683
  executionKind: "prompt" | "native" | "local_ui";
8562
- description?: string | undefined;
8563
8684
  provider?: "claude" | "codex" | "custom" | undefined;
8685
+ description?: string | undefined;
8564
8686
  category?: string | undefined;
8565
8687
  requiresIdle?: boolean | undefined;
8566
8688
  destructive?: boolean | undefined;
@@ -8590,12 +8712,12 @@ export declare const protocolMessageSchemas: {
8590
8712
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8591
8713
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8592
8714
  commands?: {
8715
+ name: string;
8593
8716
  title: string;
8594
8717
  id: string;
8595
- name: string;
8596
- description?: string | undefined;
8597
8718
  provider?: "claude" | "codex" | "custom" | undefined;
8598
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
8719
+ description?: string | undefined;
8720
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
8599
8721
  category?: string | undefined;
8600
8722
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
8601
8723
  requiresIdle?: boolean | undefined;
@@ -8629,8 +8751,8 @@ export declare const protocolMessageSchemas: {
8629
8751
  supportsSessionList: boolean;
8630
8752
  supportsSessionLoad: boolean;
8631
8753
  supportsAudio: boolean;
8632
- error?: string | undefined;
8633
8754
  provider?: "claude" | "codex" | "custom" | undefined;
8755
+ error?: string | undefined;
8634
8756
  protocolVersion?: number | undefined;
8635
8757
  machineId?: string | undefined;
8636
8758
  providers?: {
@@ -8650,14 +8772,14 @@ export declare const protocolMessageSchemas: {
8650
8772
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8651
8773
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8652
8774
  commands?: {
8775
+ name: string;
8653
8776
  title: string;
8654
8777
  id: string;
8655
- name: string;
8656
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
8778
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
8657
8779
  argsMode: "none" | "optional" | "required" | "raw";
8658
8780
  executionKind: "prompt" | "native" | "local_ui";
8659
- description?: string | undefined;
8660
8781
  provider?: "claude" | "codex" | "custom" | undefined;
8782
+ description?: string | undefined;
8661
8783
  category?: string | undefined;
8662
8784
  requiresIdle?: boolean | undefined;
8663
8785
  destructive?: boolean | undefined;
@@ -8673,8 +8795,8 @@ export declare const protocolMessageSchemas: {
8673
8795
  }[] | undefined;
8674
8796
  }, {
8675
8797
  enabled: boolean;
8676
- error?: string | undefined;
8677
8798
  provider?: "claude" | "codex" | "custom" | undefined;
8799
+ error?: string | undefined;
8678
8800
  protocolVersion?: number | undefined;
8679
8801
  machineId?: string | undefined;
8680
8802
  supportsImages?: boolean | undefined;
@@ -8698,12 +8820,12 @@ export declare const protocolMessageSchemas: {
8698
8820
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8699
8821
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8700
8822
  commands?: {
8823
+ name: string;
8701
8824
  title: string;
8702
8825
  id: string;
8703
- name: string;
8704
- description?: string | undefined;
8705
8826
  provider?: "claude" | "codex" | "custom" | undefined;
8706
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
8827
+ description?: string | undefined;
8828
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
8707
8829
  category?: string | undefined;
8708
8830
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
8709
8831
  requiresIdle?: boolean | undefined;
@@ -8750,18 +8872,18 @@ export declare const protocolMessageSchemas: {
8750
8872
  createdAt: z.ZodOptional<z.ZodNumber>;
8751
8873
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
8752
8874
  }, "strip", z.ZodTypeAny, {
8875
+ name: string;
8753
8876
  status: "running" | "pending" | "completed" | "failed";
8754
8877
  id: string;
8755
- name: string;
8756
8878
  input?: string | undefined;
8757
8879
  output?: string | undefined;
8758
8880
  createdAt?: number | undefined;
8759
8881
  }, {
8760
- id: string;
8761
8882
  name: string;
8762
- status?: "running" | "pending" | "completed" | "failed" | undefined;
8883
+ id: string;
8763
8884
  input?: string | undefined;
8764
8885
  output?: string | undefined;
8886
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
8765
8887
  createdAt?: number | undefined;
8766
8888
  }>, "many">>;
8767
8889
  pendingPermissions: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -8815,9 +8937,9 @@ export declare const protocolMessageSchemas: {
8815
8937
  isStreaming?: boolean | undefined;
8816
8938
  }[];
8817
8939
  toolCalls: {
8940
+ name: string;
8818
8941
  status: "running" | "pending" | "completed" | "failed";
8819
8942
  id: string;
8820
- name: string;
8821
8943
  input?: string | undefined;
8822
8944
  output?: string | undefined;
8823
8945
  createdAt?: number | undefined;
@@ -8844,8 +8966,8 @@ export declare const protocolMessageSchemas: {
8844
8966
  supportsSessionList: boolean;
8845
8967
  supportsSessionLoad: boolean;
8846
8968
  supportsAudio: boolean;
8847
- error?: string | undefined;
8848
8969
  provider?: "claude" | "codex" | "custom" | undefined;
8970
+ error?: string | undefined;
8849
8971
  protocolVersion?: number | undefined;
8850
8972
  machineId?: string | undefined;
8851
8973
  providers?: {
@@ -8865,14 +8987,14 @@ export declare const protocolMessageSchemas: {
8865
8987
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8866
8988
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8867
8989
  commands?: {
8990
+ name: string;
8868
8991
  title: string;
8869
8992
  id: string;
8870
- name: string;
8871
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
8993
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
8872
8994
  argsMode: "none" | "optional" | "required" | "raw";
8873
8995
  executionKind: "prompt" | "native" | "local_ui";
8874
- description?: string | undefined;
8875
8996
  provider?: "claude" | "codex" | "custom" | undefined;
8997
+ description?: string | undefined;
8876
8998
  category?: string | undefined;
8877
8999
  requiresIdle?: boolean | undefined;
8878
9000
  destructive?: boolean | undefined;
@@ -8893,8 +9015,8 @@ export declare const protocolMessageSchemas: {
8893
9015
  agentSessionId?: string | undefined;
8894
9016
  capabilities?: {
8895
9017
  enabled: boolean;
8896
- error?: string | undefined;
8897
9018
  provider?: "claude" | "codex" | "custom" | undefined;
9019
+ error?: string | undefined;
8898
9020
  protocolVersion?: number | undefined;
8899
9021
  machineId?: string | undefined;
8900
9022
  supportsImages?: boolean | undefined;
@@ -8918,12 +9040,12 @@ export declare const protocolMessageSchemas: {
8918
9040
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8919
9041
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8920
9042
  commands?: {
9043
+ name: string;
8921
9044
  title: string;
8922
9045
  id: string;
8923
- name: string;
8924
- description?: string | undefined;
8925
9046
  provider?: "claude" | "codex" | "custom" | undefined;
8926
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
9047
+ description?: string | undefined;
9048
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
8927
9049
  category?: string | undefined;
8928
9050
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
8929
9051
  requiresIdle?: boolean | undefined;
@@ -8951,11 +9073,11 @@ export declare const protocolMessageSchemas: {
8951
9073
  isStreaming?: boolean | undefined;
8952
9074
  }[] | undefined;
8953
9075
  toolCalls?: {
8954
- id: string;
8955
9076
  name: string;
8956
- status?: "running" | "pending" | "completed" | "failed" | undefined;
9077
+ id: string;
8957
9078
  input?: string | undefined;
8958
9079
  output?: string | undefined;
9080
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
8959
9081
  createdAt?: number | undefined;
8960
9082
  }[] | undefined;
8961
9083
  pendingPermissions?: {
@@ -9011,25 +9133,25 @@ export declare const protocolMessageSchemas: {
9011
9133
  disabledReason: z.ZodOptional<z.ZodString>;
9012
9134
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
9013
9135
  }, "strip", z.ZodTypeAny, {
9136
+ name: string;
9014
9137
  title: string;
9015
9138
  id: string;
9016
- name: string;
9017
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
9139
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
9018
9140
  argsMode: "none" | "optional" | "required" | "raw";
9019
9141
  executionKind: "prompt" | "native" | "local_ui";
9020
- description?: string | undefined;
9021
9142
  provider?: "claude" | "codex" | "custom" | undefined;
9143
+ description?: string | undefined;
9022
9144
  category?: string | undefined;
9023
9145
  requiresIdle?: boolean | undefined;
9024
9146
  destructive?: boolean | undefined;
9025
9147
  disabledReason?: string | undefined;
9026
9148
  }, {
9149
+ name: string;
9027
9150
  title: string;
9028
9151
  id: string;
9029
- name: string;
9030
- description?: string | undefined;
9031
9152
  provider?: "claude" | "codex" | "custom" | undefined;
9032
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
9153
+ description?: string | undefined;
9154
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
9033
9155
  category?: string | undefined;
9034
9156
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
9035
9157
  requiresIdle?: boolean | undefined;
@@ -9069,14 +9191,14 @@ export declare const protocolMessageSchemas: {
9069
9191
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9070
9192
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9071
9193
  commands?: {
9194
+ name: string;
9072
9195
  title: string;
9073
9196
  id: string;
9074
- name: string;
9075
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
9197
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
9076
9198
  argsMode: "none" | "optional" | "required" | "raw";
9077
9199
  executionKind: "prompt" | "native" | "local_ui";
9078
- description?: string | undefined;
9079
9200
  provider?: "claude" | "codex" | "custom" | undefined;
9201
+ description?: string | undefined;
9080
9202
  category?: string | undefined;
9081
9203
  requiresIdle?: boolean | undefined;
9082
9204
  destructive?: boolean | undefined;
@@ -9106,12 +9228,12 @@ export declare const protocolMessageSchemas: {
9106
9228
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9107
9229
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9108
9230
  commands?: {
9231
+ name: string;
9109
9232
  title: string;
9110
9233
  id: string;
9111
- name: string;
9112
- description?: string | undefined;
9113
9234
  provider?: "claude" | "codex" | "custom" | undefined;
9114
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
9235
+ description?: string | undefined;
9236
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
9115
9237
  category?: string | undefined;
9116
9238
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
9117
9239
  requiresIdle?: boolean | undefined;
@@ -9148,8 +9270,8 @@ export declare const protocolMessageSchemas: {
9148
9270
  supportsSessionLoad: boolean;
9149
9271
  supportsAudio: boolean;
9150
9272
  workspaceProtocolVersion: number;
9151
- error?: string | undefined;
9152
9273
  provider?: "claude" | "codex" | "custom" | undefined;
9274
+ error?: string | undefined;
9153
9275
  protocolVersion?: number | undefined;
9154
9276
  machineId?: string | undefined;
9155
9277
  providers?: {
@@ -9169,14 +9291,14 @@ export declare const protocolMessageSchemas: {
9169
9291
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9170
9292
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9171
9293
  commands?: {
9294
+ name: string;
9172
9295
  title: string;
9173
9296
  id: string;
9174
- name: string;
9175
- source: "linkshell" | "custom" | "user" | "built_in" | "project";
9297
+ source: "custom" | "linkshell" | "user" | "built_in" | "project";
9176
9298
  argsMode: "none" | "optional" | "required" | "raw";
9177
9299
  executionKind: "prompt" | "native" | "local_ui";
9178
- description?: string | undefined;
9179
9300
  provider?: "claude" | "codex" | "custom" | undefined;
9301
+ description?: string | undefined;
9180
9302
  category?: string | undefined;
9181
9303
  requiresIdle?: boolean | undefined;
9182
9304
  destructive?: boolean | undefined;
@@ -9192,8 +9314,8 @@ export declare const protocolMessageSchemas: {
9192
9314
  }[] | undefined;
9193
9315
  }, {
9194
9316
  enabled: boolean;
9195
- error?: string | undefined;
9196
9317
  provider?: "claude" | "codex" | "custom" | undefined;
9318
+ error?: string | undefined;
9197
9319
  protocolVersion?: number | undefined;
9198
9320
  machineId?: string | undefined;
9199
9321
  supportsImages?: boolean | undefined;
@@ -9217,12 +9339,12 @@ export declare const protocolMessageSchemas: {
9217
9339
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9218
9340
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9219
9341
  commands?: {
9342
+ name: string;
9220
9343
  title: string;
9221
9344
  id: string;
9222
- name: string;
9223
- description?: string | undefined;
9224
9345
  provider?: "claude" | "codex" | "custom" | undefined;
9225
- source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
9346
+ description?: string | undefined;
9347
+ source?: "custom" | "linkshell" | "user" | "built_in" | "project" | undefined;
9226
9348
  category?: string | undefined;
9227
9349
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
9228
9350
  requiresIdle?: boolean | undefined;
@@ -9254,9 +9376,9 @@ export declare const protocolMessageSchemas: {
9254
9376
  collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
9255
9377
  title: z.ZodOptional<z.ZodString>;
9256
9378
  }, "strip", z.ZodTypeAny, {
9379
+ provider?: "claude" | "codex" | "custom" | undefined;
9257
9380
  title?: string | undefined;
9258
9381
  cwd?: string | undefined;
9259
- provider?: "claude" | "codex" | "custom" | undefined;
9260
9382
  agentSessionId?: string | undefined;
9261
9383
  model?: string | undefined;
9262
9384
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -9264,9 +9386,9 @@ export declare const protocolMessageSchemas: {
9264
9386
  conversationId?: string | undefined;
9265
9387
  collaborationMode?: "default" | "plan" | undefined;
9266
9388
  }, {
9389
+ provider?: "claude" | "codex" | "custom" | undefined;
9267
9390
  title?: string | undefined;
9268
9391
  cwd?: string | undefined;
9269
- provider?: "claude" | "codex" | "custom" | undefined;
9270
9392
  agentSessionId?: string | undefined;
9271
9393
  model?: string | undefined;
9272
9394
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -9291,10 +9413,10 @@ export declare const protocolMessageSchemas: {
9291
9413
  lastActivityAt: z.ZodNumber;
9292
9414
  createdAt: z.ZodNumber;
9293
9415
  }, "strip", z.ZodTypeAny, {
9416
+ provider: "claude" | "codex" | "custom";
9294
9417
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
9295
9418
  id: string;
9296
9419
  cwd: string;
9297
- provider: "claude" | "codex" | "custom";
9298
9420
  createdAt: number;
9299
9421
  archived: boolean;
9300
9422
  lastActivityAt: number;
@@ -9310,9 +9432,9 @@ export declare const protocolMessageSchemas: {
9310
9432
  cwd: string;
9311
9433
  createdAt: number;
9312
9434
  lastActivityAt: number;
9435
+ provider?: "claude" | "codex" | "custom" | undefined;
9313
9436
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
9314
9437
  title?: string | undefined;
9315
- provider?: "claude" | "codex" | "custom" | undefined;
9316
9438
  agentSessionId?: string | undefined;
9317
9439
  model?: string | undefined;
9318
9440
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -9354,18 +9476,18 @@ export declare const protocolMessageSchemas: {
9354
9476
  createdAt: z.ZodOptional<z.ZodNumber>;
9355
9477
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
9356
9478
  }, "strip", z.ZodTypeAny, {
9479
+ name: string;
9357
9480
  status: "running" | "pending" | "completed" | "failed";
9358
9481
  id: string;
9359
- name: string;
9360
9482
  input?: string | undefined;
9361
9483
  output?: string | undefined;
9362
9484
  createdAt?: number | undefined;
9363
9485
  }, {
9364
- id: string;
9365
9486
  name: string;
9366
- status?: "running" | "pending" | "completed" | "failed" | undefined;
9487
+ id: string;
9367
9488
  input?: string | undefined;
9368
9489
  output?: string | undefined;
9490
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
9369
9491
  createdAt?: number | undefined;
9370
9492
  }>>;
9371
9493
  commandExecution: z.ZodOptional<z.ZodObject<{
@@ -9375,15 +9497,15 @@ export declare const protocolMessageSchemas: {
9375
9497
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9376
9498
  status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
9377
9499
  }, "strip", z.ZodTypeAny, {
9378
- status?: "running" | "pending" | "completed" | "failed" | undefined;
9379
- output?: string | undefined;
9380
9500
  command?: string | undefined;
9501
+ output?: string | undefined;
9502
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
9381
9503
  cwd?: string | undefined;
9382
9504
  exitCode?: number | null | undefined;
9383
9505
  }, {
9384
- status?: "running" | "pending" | "completed" | "failed" | undefined;
9385
- output?: string | undefined;
9386
9506
  command?: string | undefined;
9507
+ output?: string | undefined;
9508
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
9387
9509
  cwd?: string | undefined;
9388
9510
  exitCode?: number | null | undefined;
9389
9511
  }>>;
@@ -9662,9 +9784,9 @@ export declare const protocolMessageSchemas: {
9662
9784
  text?: string | undefined;
9663
9785
  itemId?: string | undefined;
9664
9786
  commandExecution?: {
9665
- status?: "running" | "pending" | "completed" | "failed" | undefined;
9666
- output?: string | undefined;
9667
9787
  command?: string | undefined;
9788
+ output?: string | undefined;
9789
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
9668
9790
  cwd?: string | undefined;
9669
9791
  exitCode?: number | null | undefined;
9670
9792
  } | undefined;
@@ -9681,18 +9803,18 @@ export declare const protocolMessageSchemas: {
9681
9803
  changeSetId?: string | undefined;
9682
9804
  } | undefined;
9683
9805
  role?: "user" | "assistant" | "system" | undefined;
9684
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9685
9806
  content?: {
9686
9807
  type: "text" | "image";
9687
9808
  text?: string | undefined;
9688
9809
  data?: string | undefined;
9689
9810
  mimeType?: string | undefined;
9690
9811
  }[] | undefined;
9812
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9691
9813
  isStreaming?: boolean | undefined;
9692
9814
  toolCall?: {
9815
+ name: string;
9693
9816
  status: "running" | "pending" | "completed" | "failed";
9694
9817
  id: string;
9695
- name: string;
9696
9818
  input?: string | undefined;
9697
9819
  output?: string | undefined;
9698
9820
  createdAt?: number | undefined;
@@ -9762,9 +9884,9 @@ export declare const protocolMessageSchemas: {
9762
9884
  text?: string | undefined;
9763
9885
  itemId?: string | undefined;
9764
9886
  commandExecution?: {
9765
- status?: "running" | "pending" | "completed" | "failed" | undefined;
9766
- output?: string | undefined;
9767
9887
  command?: string | undefined;
9888
+ output?: string | undefined;
9889
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
9768
9890
  cwd?: string | undefined;
9769
9891
  exitCode?: number | null | undefined;
9770
9892
  } | undefined;
@@ -9781,20 +9903,20 @@ export declare const protocolMessageSchemas: {
9781
9903
  changeSetId?: string | undefined;
9782
9904
  } | undefined;
9783
9905
  role?: "user" | "assistant" | "system" | undefined;
9784
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9785
9906
  content?: {
9786
9907
  type: "text" | "image";
9787
9908
  text?: string | undefined;
9788
9909
  data?: string | undefined;
9789
9910
  mimeType?: string | undefined;
9790
9911
  }[] | undefined;
9912
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9791
9913
  isStreaming?: boolean | undefined;
9792
9914
  toolCall?: {
9793
- id: string;
9794
9915
  name: string;
9795
- status?: "running" | "pending" | "completed" | "failed" | undefined;
9916
+ id: string;
9796
9917
  input?: string | undefined;
9797
9918
  output?: string | undefined;
9919
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
9798
9920
  createdAt?: number | undefined;
9799
9921
  } | undefined;
9800
9922
  permission?: {
@@ -9850,10 +9972,10 @@ export declare const protocolMessageSchemas: {
9850
9972
  }>, "many">>;
9851
9973
  }, "strip", z.ZodTypeAny, {
9852
9974
  conversation: {
9975
+ provider: "claude" | "codex" | "custom";
9853
9976
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
9854
9977
  id: string;
9855
9978
  cwd: string;
9856
- provider: "claude" | "codex" | "custom";
9857
9979
  createdAt: number;
9858
9980
  archived: boolean;
9859
9981
  lastActivityAt: number;
@@ -9880,9 +10002,9 @@ export declare const protocolMessageSchemas: {
9880
10002
  text?: string | undefined;
9881
10003
  itemId?: string | undefined;
9882
10004
  commandExecution?: {
9883
- status?: "running" | "pending" | "completed" | "failed" | undefined;
9884
- output?: string | undefined;
9885
10005
  command?: string | undefined;
10006
+ output?: string | undefined;
10007
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
9886
10008
  cwd?: string | undefined;
9887
10009
  exitCode?: number | null | undefined;
9888
10010
  } | undefined;
@@ -9899,18 +10021,18 @@ export declare const protocolMessageSchemas: {
9899
10021
  changeSetId?: string | undefined;
9900
10022
  } | undefined;
9901
10023
  role?: "user" | "assistant" | "system" | undefined;
9902
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9903
10024
  content?: {
9904
10025
  type: "text" | "image";
9905
10026
  text?: string | undefined;
9906
10027
  data?: string | undefined;
9907
10028
  mimeType?: string | undefined;
9908
10029
  }[] | undefined;
10030
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9909
10031
  isStreaming?: boolean | undefined;
9910
10032
  toolCall?: {
10033
+ name: string;
9911
10034
  status: "running" | "pending" | "completed" | "failed";
9912
10035
  id: string;
9913
- name: string;
9914
10036
  input?: string | undefined;
9915
10037
  output?: string | undefined;
9916
10038
  createdAt?: number | undefined;
@@ -9972,9 +10094,9 @@ export declare const protocolMessageSchemas: {
9972
10094
  cwd: string;
9973
10095
  createdAt: number;
9974
10096
  lastActivityAt: number;
10097
+ provider?: "claude" | "codex" | "custom" | undefined;
9975
10098
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
9976
10099
  title?: string | undefined;
9977
- provider?: "claude" | "codex" | "custom" | undefined;
9978
10100
  agentSessionId?: string | undefined;
9979
10101
  model?: string | undefined;
9980
10102
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -9998,9 +10120,9 @@ export declare const protocolMessageSchemas: {
9998
10120
  text?: string | undefined;
9999
10121
  itemId?: string | undefined;
10000
10122
  commandExecution?: {
10001
- status?: "running" | "pending" | "completed" | "failed" | undefined;
10002
- output?: string | undefined;
10003
10123
  command?: string | undefined;
10124
+ output?: string | undefined;
10125
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10004
10126
  cwd?: string | undefined;
10005
10127
  exitCode?: number | null | undefined;
10006
10128
  } | undefined;
@@ -10017,20 +10139,20 @@ export declare const protocolMessageSchemas: {
10017
10139
  changeSetId?: string | undefined;
10018
10140
  } | undefined;
10019
10141
  role?: "user" | "assistant" | "system" | undefined;
10020
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10021
10142
  content?: {
10022
10143
  type: "text" | "image";
10023
10144
  text?: string | undefined;
10024
10145
  data?: string | undefined;
10025
10146
  mimeType?: string | undefined;
10026
10147
  }[] | undefined;
10148
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10027
10149
  isStreaming?: boolean | undefined;
10028
10150
  toolCall?: {
10029
- id: string;
10030
10151
  name: string;
10031
- status?: "running" | "pending" | "completed" | "failed" | undefined;
10152
+ id: string;
10032
10153
  input?: string | undefined;
10033
10154
  output?: string | undefined;
10155
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10034
10156
  createdAt?: number | undefined;
10035
10157
  } | undefined;
10036
10158
  permission?: {
@@ -10109,10 +10231,10 @@ export declare const protocolMessageSchemas: {
10109
10231
  lastActivityAt: z.ZodNumber;
10110
10232
  createdAt: z.ZodNumber;
10111
10233
  }, "strip", z.ZodTypeAny, {
10234
+ provider: "claude" | "codex" | "custom";
10112
10235
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
10113
10236
  id: string;
10114
10237
  cwd: string;
10115
- provider: "claude" | "codex" | "custom";
10116
10238
  createdAt: number;
10117
10239
  archived: boolean;
10118
10240
  lastActivityAt: number;
@@ -10128,9 +10250,9 @@ export declare const protocolMessageSchemas: {
10128
10250
  cwd: string;
10129
10251
  createdAt: number;
10130
10252
  lastActivityAt: number;
10253
+ provider?: "claude" | "codex" | "custom" | undefined;
10131
10254
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
10132
10255
  title?: string | undefined;
10133
- provider?: "claude" | "codex" | "custom" | undefined;
10134
10256
  agentSessionId?: string | undefined;
10135
10257
  model?: string | undefined;
10136
10258
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -10141,10 +10263,10 @@ export declare const protocolMessageSchemas: {
10141
10263
  }>, "many">;
10142
10264
  }, "strip", z.ZodTypeAny, {
10143
10265
  conversations: {
10266
+ provider: "claude" | "codex" | "custom";
10144
10267
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
10145
10268
  id: string;
10146
10269
  cwd: string;
10147
- provider: "claude" | "codex" | "custom";
10148
10270
  createdAt: number;
10149
10271
  archived: boolean;
10150
10272
  lastActivityAt: number;
@@ -10162,9 +10284,9 @@ export declare const protocolMessageSchemas: {
10162
10284
  cwd: string;
10163
10285
  createdAt: number;
10164
10286
  lastActivityAt: number;
10287
+ provider?: "claude" | "codex" | "custom" | undefined;
10165
10288
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
10166
10289
  title?: string | undefined;
10167
- provider?: "claude" | "codex" | "custom" | undefined;
10168
10290
  agentSessionId?: string | undefined;
10169
10291
  model?: string | undefined;
10170
10292
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -10319,18 +10441,18 @@ export declare const protocolMessageSchemas: {
10319
10441
  createdAt: z.ZodOptional<z.ZodNumber>;
10320
10442
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
10321
10443
  }, "strip", z.ZodTypeAny, {
10444
+ name: string;
10322
10445
  status: "running" | "pending" | "completed" | "failed";
10323
10446
  id: string;
10324
- name: string;
10325
10447
  input?: string | undefined;
10326
10448
  output?: string | undefined;
10327
10449
  createdAt?: number | undefined;
10328
10450
  }, {
10329
- id: string;
10330
10451
  name: string;
10331
- status?: "running" | "pending" | "completed" | "failed" | undefined;
10452
+ id: string;
10332
10453
  input?: string | undefined;
10333
10454
  output?: string | undefined;
10455
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10334
10456
  createdAt?: number | undefined;
10335
10457
  }>>;
10336
10458
  commandExecution: z.ZodOptional<z.ZodObject<{
@@ -10340,15 +10462,15 @@ export declare const protocolMessageSchemas: {
10340
10462
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10341
10463
  status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
10342
10464
  }, "strip", z.ZodTypeAny, {
10343
- status?: "running" | "pending" | "completed" | "failed" | undefined;
10344
- output?: string | undefined;
10345
10465
  command?: string | undefined;
10466
+ output?: string | undefined;
10467
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10346
10468
  cwd?: string | undefined;
10347
10469
  exitCode?: number | null | undefined;
10348
10470
  }, {
10349
- status?: "running" | "pending" | "completed" | "failed" | undefined;
10350
- output?: string | undefined;
10351
10471
  command?: string | undefined;
10472
+ output?: string | undefined;
10473
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10352
10474
  cwd?: string | undefined;
10353
10475
  exitCode?: number | null | undefined;
10354
10476
  }>>;
@@ -10627,9 +10749,9 @@ export declare const protocolMessageSchemas: {
10627
10749
  text?: string | undefined;
10628
10750
  itemId?: string | undefined;
10629
10751
  commandExecution?: {
10630
- status?: "running" | "pending" | "completed" | "failed" | undefined;
10631
- output?: string | undefined;
10632
10752
  command?: string | undefined;
10753
+ output?: string | undefined;
10754
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10633
10755
  cwd?: string | undefined;
10634
10756
  exitCode?: number | null | undefined;
10635
10757
  } | undefined;
@@ -10646,18 +10768,18 @@ export declare const protocolMessageSchemas: {
10646
10768
  changeSetId?: string | undefined;
10647
10769
  } | undefined;
10648
10770
  role?: "user" | "assistant" | "system" | undefined;
10649
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10650
10771
  content?: {
10651
10772
  type: "text" | "image";
10652
10773
  text?: string | undefined;
10653
10774
  data?: string | undefined;
10654
10775
  mimeType?: string | undefined;
10655
10776
  }[] | undefined;
10777
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10656
10778
  isStreaming?: boolean | undefined;
10657
10779
  toolCall?: {
10780
+ name: string;
10658
10781
  status: "running" | "pending" | "completed" | "failed";
10659
10782
  id: string;
10660
- name: string;
10661
10783
  input?: string | undefined;
10662
10784
  output?: string | undefined;
10663
10785
  createdAt?: number | undefined;
@@ -10727,9 +10849,9 @@ export declare const protocolMessageSchemas: {
10727
10849
  text?: string | undefined;
10728
10850
  itemId?: string | undefined;
10729
10851
  commandExecution?: {
10730
- status?: "running" | "pending" | "completed" | "failed" | undefined;
10731
- output?: string | undefined;
10732
10852
  command?: string | undefined;
10853
+ output?: string | undefined;
10854
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10733
10855
  cwd?: string | undefined;
10734
10856
  exitCode?: number | null | undefined;
10735
10857
  } | undefined;
@@ -10746,20 +10868,20 @@ export declare const protocolMessageSchemas: {
10746
10868
  changeSetId?: string | undefined;
10747
10869
  } | undefined;
10748
10870
  role?: "user" | "assistant" | "system" | undefined;
10749
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10750
10871
  content?: {
10751
10872
  type: "text" | "image";
10752
10873
  text?: string | undefined;
10753
10874
  data?: string | undefined;
10754
10875
  mimeType?: string | undefined;
10755
10876
  }[] | undefined;
10877
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10756
10878
  isStreaming?: boolean | undefined;
10757
10879
  toolCall?: {
10758
- id: string;
10759
10880
  name: string;
10760
- status?: "running" | "pending" | "completed" | "failed" | undefined;
10881
+ id: string;
10761
10882
  input?: string | undefined;
10762
10883
  output?: string | undefined;
10884
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10763
10885
  createdAt?: number | undefined;
10764
10886
  } | undefined;
10765
10887
  permission?: {
@@ -10836,9 +10958,9 @@ export declare const protocolMessageSchemas: {
10836
10958
  text?: string | undefined;
10837
10959
  itemId?: string | undefined;
10838
10960
  commandExecution?: {
10839
- status?: "running" | "pending" | "completed" | "failed" | undefined;
10840
- output?: string | undefined;
10841
10961
  command?: string | undefined;
10962
+ output?: string | undefined;
10963
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10842
10964
  cwd?: string | undefined;
10843
10965
  exitCode?: number | null | undefined;
10844
10966
  } | undefined;
@@ -10855,18 +10977,18 @@ export declare const protocolMessageSchemas: {
10855
10977
  changeSetId?: string | undefined;
10856
10978
  } | undefined;
10857
10979
  role?: "user" | "assistant" | "system" | undefined;
10858
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10859
10980
  content?: {
10860
10981
  type: "text" | "image";
10861
10982
  text?: string | undefined;
10862
10983
  data?: string | undefined;
10863
10984
  mimeType?: string | undefined;
10864
10985
  }[] | undefined;
10986
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10865
10987
  isStreaming?: boolean | undefined;
10866
10988
  toolCall?: {
10989
+ name: string;
10867
10990
  status: "running" | "pending" | "completed" | "failed";
10868
10991
  id: string;
10869
- name: string;
10870
10992
  input?: string | undefined;
10871
10993
  output?: string | undefined;
10872
10994
  createdAt?: number | undefined;
@@ -10943,9 +11065,9 @@ export declare const protocolMessageSchemas: {
10943
11065
  text?: string | undefined;
10944
11066
  itemId?: string | undefined;
10945
11067
  commandExecution?: {
10946
- status?: "running" | "pending" | "completed" | "failed" | undefined;
10947
- output?: string | undefined;
10948
11068
  command?: string | undefined;
11069
+ output?: string | undefined;
11070
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10949
11071
  cwd?: string | undefined;
10950
11072
  exitCode?: number | null | undefined;
10951
11073
  } | undefined;
@@ -10962,20 +11084,20 @@ export declare const protocolMessageSchemas: {
10962
11084
  changeSetId?: string | undefined;
10963
11085
  } | undefined;
10964
11086
  role?: "user" | "assistant" | "system" | undefined;
10965
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10966
11087
  content?: {
10967
11088
  type: "text" | "image";
10968
11089
  text?: string | undefined;
10969
11090
  data?: string | undefined;
10970
11091
  mimeType?: string | undefined;
10971
11092
  }[] | undefined;
11093
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10972
11094
  isStreaming?: boolean | undefined;
10973
11095
  toolCall?: {
10974
- id: string;
10975
11096
  name: string;
10976
- status?: "running" | "pending" | "completed" | "failed" | undefined;
11097
+ id: string;
10977
11098
  input?: string | undefined;
10978
11099
  output?: string | undefined;
11100
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10979
11101
  createdAt?: number | undefined;
10980
11102
  } | undefined;
10981
11103
  permission?: {
@@ -11075,10 +11197,10 @@ export declare const protocolMessageSchemas: {
11075
11197
  lastActivityAt: z.ZodNumber;
11076
11198
  createdAt: z.ZodNumber;
11077
11199
  }, "strip", z.ZodTypeAny, {
11200
+ provider: "claude" | "codex" | "custom";
11078
11201
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
11079
11202
  id: string;
11080
11203
  cwd: string;
11081
- provider: "claude" | "codex" | "custom";
11082
11204
  createdAt: number;
11083
11205
  archived: boolean;
11084
11206
  lastActivityAt: number;
@@ -11094,9 +11216,9 @@ export declare const protocolMessageSchemas: {
11094
11216
  cwd: string;
11095
11217
  createdAt: number;
11096
11218
  lastActivityAt: number;
11219
+ provider?: "claude" | "codex" | "custom" | undefined;
11097
11220
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
11098
11221
  title?: string | undefined;
11099
- provider?: "claude" | "codex" | "custom" | undefined;
11100
11222
  agentSessionId?: string | undefined;
11101
11223
  model?: string | undefined;
11102
11224
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -11139,18 +11261,18 @@ export declare const protocolMessageSchemas: {
11139
11261
  createdAt: z.ZodOptional<z.ZodNumber>;
11140
11262
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
11141
11263
  }, "strip", z.ZodTypeAny, {
11264
+ name: string;
11142
11265
  status: "running" | "pending" | "completed" | "failed";
11143
11266
  id: string;
11144
- name: string;
11145
11267
  input?: string | undefined;
11146
11268
  output?: string | undefined;
11147
11269
  createdAt?: number | undefined;
11148
11270
  }, {
11149
- id: string;
11150
11271
  name: string;
11151
- status?: "running" | "pending" | "completed" | "failed" | undefined;
11272
+ id: string;
11152
11273
  input?: string | undefined;
11153
11274
  output?: string | undefined;
11275
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
11154
11276
  createdAt?: number | undefined;
11155
11277
  }>>;
11156
11278
  commandExecution: z.ZodOptional<z.ZodObject<{
@@ -11160,15 +11282,15 @@ export declare const protocolMessageSchemas: {
11160
11282
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11161
11283
  status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
11162
11284
  }, "strip", z.ZodTypeAny, {
11163
- status?: "running" | "pending" | "completed" | "failed" | undefined;
11164
- output?: string | undefined;
11165
11285
  command?: string | undefined;
11286
+ output?: string | undefined;
11287
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
11166
11288
  cwd?: string | undefined;
11167
11289
  exitCode?: number | null | undefined;
11168
11290
  }, {
11169
- status?: "running" | "pending" | "completed" | "failed" | undefined;
11170
- output?: string | undefined;
11171
11291
  command?: string | undefined;
11292
+ output?: string | undefined;
11293
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
11172
11294
  cwd?: string | undefined;
11173
11295
  exitCode?: number | null | undefined;
11174
11296
  }>>;
@@ -11447,9 +11569,9 @@ export declare const protocolMessageSchemas: {
11447
11569
  text?: string | undefined;
11448
11570
  itemId?: string | undefined;
11449
11571
  commandExecution?: {
11450
- status?: "running" | "pending" | "completed" | "failed" | undefined;
11451
- output?: string | undefined;
11452
11572
  command?: string | undefined;
11573
+ output?: string | undefined;
11574
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
11453
11575
  cwd?: string | undefined;
11454
11576
  exitCode?: number | null | undefined;
11455
11577
  } | undefined;
@@ -11466,18 +11588,18 @@ export declare const protocolMessageSchemas: {
11466
11588
  changeSetId?: string | undefined;
11467
11589
  } | undefined;
11468
11590
  role?: "user" | "assistant" | "system" | undefined;
11469
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11470
11591
  content?: {
11471
11592
  type: "text" | "image";
11472
11593
  text?: string | undefined;
11473
11594
  data?: string | undefined;
11474
11595
  mimeType?: string | undefined;
11475
11596
  }[] | undefined;
11597
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11476
11598
  isStreaming?: boolean | undefined;
11477
11599
  toolCall?: {
11600
+ name: string;
11478
11601
  status: "running" | "pending" | "completed" | "failed";
11479
11602
  id: string;
11480
- name: string;
11481
11603
  input?: string | undefined;
11482
11604
  output?: string | undefined;
11483
11605
  createdAt?: number | undefined;
@@ -11547,9 +11669,9 @@ export declare const protocolMessageSchemas: {
11547
11669
  text?: string | undefined;
11548
11670
  itemId?: string | undefined;
11549
11671
  commandExecution?: {
11550
- status?: "running" | "pending" | "completed" | "failed" | undefined;
11551
- output?: string | undefined;
11552
11672
  command?: string | undefined;
11673
+ output?: string | undefined;
11674
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
11553
11675
  cwd?: string | undefined;
11554
11676
  exitCode?: number | null | undefined;
11555
11677
  } | undefined;
@@ -11566,20 +11688,20 @@ export declare const protocolMessageSchemas: {
11566
11688
  changeSetId?: string | undefined;
11567
11689
  } | undefined;
11568
11690
  role?: "user" | "assistant" | "system" | undefined;
11569
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11570
11691
  content?: {
11571
11692
  type: "text" | "image";
11572
11693
  text?: string | undefined;
11573
11694
  data?: string | undefined;
11574
11695
  mimeType?: string | undefined;
11575
11696
  }[] | undefined;
11697
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11576
11698
  isStreaming?: boolean | undefined;
11577
11699
  toolCall?: {
11578
- id: string;
11579
11700
  name: string;
11580
- status?: "running" | "pending" | "completed" | "failed" | undefined;
11701
+ id: string;
11581
11702
  input?: string | undefined;
11582
11703
  output?: string | undefined;
11704
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
11583
11705
  createdAt?: number | undefined;
11584
11706
  } | undefined;
11585
11707
  permission?: {
@@ -11636,10 +11758,10 @@ export declare const protocolMessageSchemas: {
11636
11758
  machineId: z.ZodOptional<z.ZodString>;
11637
11759
  }, "strip", z.ZodTypeAny, {
11638
11760
  conversations: {
11761
+ provider: "claude" | "codex" | "custom";
11639
11762
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
11640
11763
  id: string;
11641
11764
  cwd: string;
11642
- provider: "claude" | "codex" | "custom";
11643
11765
  createdAt: number;
11644
11766
  archived: boolean;
11645
11767
  lastActivityAt: number;
@@ -11666,9 +11788,9 @@ export declare const protocolMessageSchemas: {
11666
11788
  text?: string | undefined;
11667
11789
  itemId?: string | undefined;
11668
11790
  commandExecution?: {
11669
- status?: "running" | "pending" | "completed" | "failed" | undefined;
11670
- output?: string | undefined;
11671
11791
  command?: string | undefined;
11792
+ output?: string | undefined;
11793
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
11672
11794
  cwd?: string | undefined;
11673
11795
  exitCode?: number | null | undefined;
11674
11796
  } | undefined;
@@ -11685,18 +11807,18 @@ export declare const protocolMessageSchemas: {
11685
11807
  changeSetId?: string | undefined;
11686
11808
  } | undefined;
11687
11809
  role?: "user" | "assistant" | "system" | undefined;
11688
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11689
11810
  content?: {
11690
11811
  type: "text" | "image";
11691
11812
  text?: string | undefined;
11692
11813
  data?: string | undefined;
11693
11814
  mimeType?: string | undefined;
11694
11815
  }[] | undefined;
11816
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11695
11817
  isStreaming?: boolean | undefined;
11696
11818
  toolCall?: {
11819
+ name: string;
11697
11820
  status: "running" | "pending" | "completed" | "failed";
11698
11821
  id: string;
11699
- name: string;
11700
11822
  input?: string | undefined;
11701
11823
  output?: string | undefined;
11702
11824
  createdAt?: number | undefined;
@@ -11761,9 +11883,9 @@ export declare const protocolMessageSchemas: {
11761
11883
  cwd: string;
11762
11884
  createdAt: number;
11763
11885
  lastActivityAt: number;
11886
+ provider?: "claude" | "codex" | "custom" | undefined;
11764
11887
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
11765
11888
  title?: string | undefined;
11766
- provider?: "claude" | "codex" | "custom" | undefined;
11767
11889
  agentSessionId?: string | undefined;
11768
11890
  model?: string | undefined;
11769
11891
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -11788,9 +11910,9 @@ export declare const protocolMessageSchemas: {
11788
11910
  text?: string | undefined;
11789
11911
  itemId?: string | undefined;
11790
11912
  commandExecution?: {
11791
- status?: "running" | "pending" | "completed" | "failed" | undefined;
11792
- output?: string | undefined;
11793
11913
  command?: string | undefined;
11914
+ output?: string | undefined;
11915
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
11794
11916
  cwd?: string | undefined;
11795
11917
  exitCode?: number | null | undefined;
11796
11918
  } | undefined;
@@ -11807,20 +11929,20 @@ export declare const protocolMessageSchemas: {
11807
11929
  changeSetId?: string | undefined;
11808
11930
  } | undefined;
11809
11931
  role?: "user" | "assistant" | "system" | undefined;
11810
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11811
11932
  content?: {
11812
11933
  type: "text" | "image";
11813
11934
  text?: string | undefined;
11814
11935
  data?: string | undefined;
11815
11936
  mimeType?: string | undefined;
11816
11937
  }[] | undefined;
11938
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11817
11939
  isStreaming?: boolean | undefined;
11818
11940
  toolCall?: {
11819
- id: string;
11820
11941
  name: string;
11821
- status?: "running" | "pending" | "completed" | "failed" | undefined;
11942
+ id: string;
11822
11943
  input?: string | undefined;
11823
11944
  output?: string | undefined;
11945
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
11824
11946
  createdAt?: number | undefined;
11825
11947
  } | undefined;
11826
11948
  permission?: {
@@ -11893,10 +12015,10 @@ export declare const protocolMessageSchemas: {
11893
12015
  lastActivityAt: z.ZodNumber;
11894
12016
  createdAt: z.ZodNumber;
11895
12017
  }, "strip", z.ZodTypeAny, {
12018
+ provider: "claude" | "codex" | "custom";
11896
12019
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
11897
12020
  id: string;
11898
12021
  cwd: string;
11899
- provider: "claude" | "codex" | "custom";
11900
12022
  createdAt: number;
11901
12023
  archived: boolean;
11902
12024
  lastActivityAt: number;
@@ -11912,9 +12034,9 @@ export declare const protocolMessageSchemas: {
11912
12034
  cwd: string;
11913
12035
  createdAt: number;
11914
12036
  lastActivityAt: number;
12037
+ provider?: "claude" | "codex" | "custom" | undefined;
11915
12038
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
11916
12039
  title?: string | undefined;
11917
- provider?: "claude" | "codex" | "custom" | undefined;
11918
12040
  agentSessionId?: string | undefined;
11919
12041
  model?: string | undefined;
11920
12042
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -11956,18 +12078,18 @@ export declare const protocolMessageSchemas: {
11956
12078
  createdAt: z.ZodOptional<z.ZodNumber>;
11957
12079
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
11958
12080
  }, "strip", z.ZodTypeAny, {
12081
+ name: string;
11959
12082
  status: "running" | "pending" | "completed" | "failed";
11960
12083
  id: string;
11961
- name: string;
11962
12084
  input?: string | undefined;
11963
12085
  output?: string | undefined;
11964
12086
  createdAt?: number | undefined;
11965
12087
  }, {
11966
- id: string;
11967
12088
  name: string;
11968
- status?: "running" | "pending" | "completed" | "failed" | undefined;
12089
+ id: string;
11969
12090
  input?: string | undefined;
11970
12091
  output?: string | undefined;
12092
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
11971
12093
  createdAt?: number | undefined;
11972
12094
  }>>;
11973
12095
  commandExecution: z.ZodOptional<z.ZodObject<{
@@ -11977,15 +12099,15 @@ export declare const protocolMessageSchemas: {
11977
12099
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11978
12100
  status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
11979
12101
  }, "strip", z.ZodTypeAny, {
11980
- status?: "running" | "pending" | "completed" | "failed" | undefined;
11981
- output?: string | undefined;
11982
12102
  command?: string | undefined;
12103
+ output?: string | undefined;
12104
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
11983
12105
  cwd?: string | undefined;
11984
12106
  exitCode?: number | null | undefined;
11985
12107
  }, {
11986
- status?: "running" | "pending" | "completed" | "failed" | undefined;
11987
- output?: string | undefined;
11988
12108
  command?: string | undefined;
12109
+ output?: string | undefined;
12110
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
11989
12111
  cwd?: string | undefined;
11990
12112
  exitCode?: number | null | undefined;
11991
12113
  }>>;
@@ -12264,9 +12386,9 @@ export declare const protocolMessageSchemas: {
12264
12386
  text?: string | undefined;
12265
12387
  itemId?: string | undefined;
12266
12388
  commandExecution?: {
12267
- status?: "running" | "pending" | "completed" | "failed" | undefined;
12268
- output?: string | undefined;
12269
12389
  command?: string | undefined;
12390
+ output?: string | undefined;
12391
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
12270
12392
  cwd?: string | undefined;
12271
12393
  exitCode?: number | null | undefined;
12272
12394
  } | undefined;
@@ -12283,18 +12405,18 @@ export declare const protocolMessageSchemas: {
12283
12405
  changeSetId?: string | undefined;
12284
12406
  } | undefined;
12285
12407
  role?: "user" | "assistant" | "system" | undefined;
12286
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12287
12408
  content?: {
12288
12409
  type: "text" | "image";
12289
12410
  text?: string | undefined;
12290
12411
  data?: string | undefined;
12291
12412
  mimeType?: string | undefined;
12292
12413
  }[] | undefined;
12414
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12293
12415
  isStreaming?: boolean | undefined;
12294
12416
  toolCall?: {
12417
+ name: string;
12295
12418
  status: "running" | "pending" | "completed" | "failed";
12296
12419
  id: string;
12297
- name: string;
12298
12420
  input?: string | undefined;
12299
12421
  output?: string | undefined;
12300
12422
  createdAt?: number | undefined;
@@ -12364,9 +12486,9 @@ export declare const protocolMessageSchemas: {
12364
12486
  text?: string | undefined;
12365
12487
  itemId?: string | undefined;
12366
12488
  commandExecution?: {
12367
- status?: "running" | "pending" | "completed" | "failed" | undefined;
12368
- output?: string | undefined;
12369
12489
  command?: string | undefined;
12490
+ output?: string | undefined;
12491
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
12370
12492
  cwd?: string | undefined;
12371
12493
  exitCode?: number | null | undefined;
12372
12494
  } | undefined;
@@ -12383,20 +12505,20 @@ export declare const protocolMessageSchemas: {
12383
12505
  changeSetId?: string | undefined;
12384
12506
  } | undefined;
12385
12507
  role?: "user" | "assistant" | "system" | undefined;
12386
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12387
12508
  content?: {
12388
12509
  type: "text" | "image";
12389
12510
  text?: string | undefined;
12390
12511
  data?: string | undefined;
12391
12512
  mimeType?: string | undefined;
12392
12513
  }[] | undefined;
12514
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12393
12515
  isStreaming?: boolean | undefined;
12394
12516
  toolCall?: {
12395
- id: string;
12396
12517
  name: string;
12397
- status?: "running" | "pending" | "completed" | "failed" | undefined;
12518
+ id: string;
12398
12519
  input?: string | undefined;
12399
12520
  output?: string | undefined;
12521
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
12400
12522
  createdAt?: number | undefined;
12401
12523
  } | undefined;
12402
12524
  permission?: {
@@ -12481,18 +12603,18 @@ export declare const protocolMessageSchemas: {
12481
12603
  createdAt: z.ZodOptional<z.ZodNumber>;
12482
12604
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
12483
12605
  }, "strip", z.ZodTypeAny, {
12606
+ name: string;
12484
12607
  status: "running" | "pending" | "completed" | "failed";
12485
12608
  id: string;
12486
- name: string;
12487
12609
  input?: string | undefined;
12488
12610
  output?: string | undefined;
12489
12611
  createdAt?: number | undefined;
12490
12612
  }, {
12491
- id: string;
12492
12613
  name: string;
12493
- status?: "running" | "pending" | "completed" | "failed" | undefined;
12614
+ id: string;
12494
12615
  input?: string | undefined;
12495
12616
  output?: string | undefined;
12617
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
12496
12618
  createdAt?: number | undefined;
12497
12619
  }>>;
12498
12620
  commandExecution: z.ZodOptional<z.ZodObject<{
@@ -12502,15 +12624,15 @@ export declare const protocolMessageSchemas: {
12502
12624
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12503
12625
  status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
12504
12626
  }, "strip", z.ZodTypeAny, {
12505
- status?: "running" | "pending" | "completed" | "failed" | undefined;
12506
- output?: string | undefined;
12507
12627
  command?: string | undefined;
12628
+ output?: string | undefined;
12629
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
12508
12630
  cwd?: string | undefined;
12509
12631
  exitCode?: number | null | undefined;
12510
12632
  }, {
12511
- status?: "running" | "pending" | "completed" | "failed" | undefined;
12512
- output?: string | undefined;
12513
12633
  command?: string | undefined;
12634
+ output?: string | undefined;
12635
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
12514
12636
  cwd?: string | undefined;
12515
12637
  exitCode?: number | null | undefined;
12516
12638
  }>>;
@@ -12783,9 +12905,9 @@ export declare const protocolMessageSchemas: {
12783
12905
  }[] | undefined;
12784
12906
  text?: string | undefined;
12785
12907
  commandExecution?: {
12786
- status?: "running" | "pending" | "completed" | "failed" | undefined;
12787
- output?: string | undefined;
12788
12908
  command?: string | undefined;
12909
+ output?: string | undefined;
12910
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
12789
12911
  cwd?: string | undefined;
12790
12912
  exitCode?: number | null | undefined;
12791
12913
  } | undefined;
@@ -12802,18 +12924,18 @@ export declare const protocolMessageSchemas: {
12802
12924
  changeSetId?: string | undefined;
12803
12925
  } | undefined;
12804
12926
  role?: "user" | "assistant" | "system" | undefined;
12805
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12806
12927
  content?: {
12807
12928
  type: "text" | "image";
12808
12929
  text?: string | undefined;
12809
12930
  data?: string | undefined;
12810
12931
  mimeType?: string | undefined;
12811
12932
  }[] | undefined;
12933
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12812
12934
  isStreaming?: boolean | undefined;
12813
12935
  toolCall?: {
12936
+ name: string;
12814
12937
  status: "running" | "pending" | "completed" | "failed";
12815
12938
  id: string;
12816
- name: string;
12817
12939
  input?: string | undefined;
12818
12940
  output?: string | undefined;
12819
12941
  createdAt?: number | undefined;
@@ -12879,9 +13001,9 @@ export declare const protocolMessageSchemas: {
12879
13001
  }[] | undefined;
12880
13002
  text?: string | undefined;
12881
13003
  commandExecution?: {
12882
- status?: "running" | "pending" | "completed" | "failed" | undefined;
12883
- output?: string | undefined;
12884
13004
  command?: string | undefined;
13005
+ output?: string | undefined;
13006
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
12885
13007
  cwd?: string | undefined;
12886
13008
  exitCode?: number | null | undefined;
12887
13009
  } | undefined;
@@ -12898,20 +13020,20 @@ export declare const protocolMessageSchemas: {
12898
13020
  changeSetId?: string | undefined;
12899
13021
  } | undefined;
12900
13022
  role?: "user" | "assistant" | "system" | undefined;
12901
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12902
13023
  content?: {
12903
13024
  type: "text" | "image";
12904
13025
  text?: string | undefined;
12905
13026
  data?: string | undefined;
12906
13027
  mimeType?: string | undefined;
12907
13028
  }[] | undefined;
13029
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12908
13030
  isStreaming?: boolean | undefined;
12909
13031
  toolCall?: {
12910
- id: string;
12911
13032
  name: string;
12912
- status?: "running" | "pending" | "completed" | "failed" | undefined;
13033
+ id: string;
12913
13034
  input?: string | undefined;
12914
13035
  output?: string | undefined;
13036
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
12915
13037
  createdAt?: number | undefined;
12916
13038
  } | undefined;
12917
13039
  permission?: {
@@ -12982,9 +13104,9 @@ export declare const protocolMessageSchemas: {
12982
13104
  text?: string | undefined;
12983
13105
  itemId?: string | undefined;
12984
13106
  commandExecution?: {
12985
- status?: "running" | "pending" | "completed" | "failed" | undefined;
12986
- output?: string | undefined;
12987
13107
  command?: string | undefined;
13108
+ output?: string | undefined;
13109
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
12988
13110
  cwd?: string | undefined;
12989
13111
  exitCode?: number | null | undefined;
12990
13112
  } | undefined;
@@ -13001,18 +13123,18 @@ export declare const protocolMessageSchemas: {
13001
13123
  changeSetId?: string | undefined;
13002
13124
  } | undefined;
13003
13125
  role?: "user" | "assistant" | "system" | undefined;
13004
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13005
13126
  content?: {
13006
13127
  type: "text" | "image";
13007
13128
  text?: string | undefined;
13008
13129
  data?: string | undefined;
13009
13130
  mimeType?: string | undefined;
13010
13131
  }[] | undefined;
13132
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13011
13133
  isStreaming?: boolean | undefined;
13012
13134
  toolCall?: {
13135
+ name: string;
13013
13136
  status: "running" | "pending" | "completed" | "failed";
13014
13137
  id: string;
13015
- name: string;
13016
13138
  input?: string | undefined;
13017
13139
  output?: string | undefined;
13018
13140
  createdAt?: number | undefined;
@@ -13079,9 +13201,9 @@ export declare const protocolMessageSchemas: {
13079
13201
  }[] | undefined;
13080
13202
  text?: string | undefined;
13081
13203
  commandExecution?: {
13082
- status?: "running" | "pending" | "completed" | "failed" | undefined;
13083
- output?: string | undefined;
13084
13204
  command?: string | undefined;
13205
+ output?: string | undefined;
13206
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
13085
13207
  cwd?: string | undefined;
13086
13208
  exitCode?: number | null | undefined;
13087
13209
  } | undefined;
@@ -13098,18 +13220,18 @@ export declare const protocolMessageSchemas: {
13098
13220
  changeSetId?: string | undefined;
13099
13221
  } | undefined;
13100
13222
  role?: "user" | "assistant" | "system" | undefined;
13101
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13102
13223
  content?: {
13103
13224
  type: "text" | "image";
13104
13225
  text?: string | undefined;
13105
13226
  data?: string | undefined;
13106
13227
  mimeType?: string | undefined;
13107
13228
  }[] | undefined;
13229
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13108
13230
  isStreaming?: boolean | undefined;
13109
13231
  toolCall?: {
13232
+ name: string;
13110
13233
  status: "running" | "pending" | "completed" | "failed";
13111
13234
  id: string;
13112
- name: string;
13113
13235
  input?: string | undefined;
13114
13236
  output?: string | undefined;
13115
13237
  createdAt?: number | undefined;
@@ -13166,10 +13288,10 @@ export declare const protocolMessageSchemas: {
13166
13288
  textDelta?: string | undefined;
13167
13289
  } | undefined;
13168
13290
  conversation?: {
13291
+ provider: "claude" | "codex" | "custom";
13169
13292
  status: "error" | "unavailable" | "idle" | "running" | "waiting_permission";
13170
13293
  id: string;
13171
13294
  cwd: string;
13172
- provider: "claude" | "codex" | "custom";
13173
13295
  createdAt: number;
13174
13296
  archived: boolean;
13175
13297
  lastActivityAt: number;
@@ -13198,9 +13320,9 @@ export declare const protocolMessageSchemas: {
13198
13320
  text?: string | undefined;
13199
13321
  itemId?: string | undefined;
13200
13322
  commandExecution?: {
13201
- status?: "running" | "pending" | "completed" | "failed" | undefined;
13202
- output?: string | undefined;
13203
13323
  command?: string | undefined;
13324
+ output?: string | undefined;
13325
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
13204
13326
  cwd?: string | undefined;
13205
13327
  exitCode?: number | null | undefined;
13206
13328
  } | undefined;
@@ -13217,20 +13339,20 @@ export declare const protocolMessageSchemas: {
13217
13339
  changeSetId?: string | undefined;
13218
13340
  } | undefined;
13219
13341
  role?: "user" | "assistant" | "system" | undefined;
13220
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13221
13342
  content?: {
13222
13343
  type: "text" | "image";
13223
13344
  text?: string | undefined;
13224
13345
  data?: string | undefined;
13225
13346
  mimeType?: string | undefined;
13226
13347
  }[] | undefined;
13348
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13227
13349
  isStreaming?: boolean | undefined;
13228
13350
  toolCall?: {
13229
- id: string;
13230
13351
  name: string;
13231
- status?: "running" | "pending" | "completed" | "failed" | undefined;
13352
+ id: string;
13232
13353
  input?: string | undefined;
13233
13354
  output?: string | undefined;
13355
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
13234
13356
  createdAt?: number | undefined;
13235
13357
  } | undefined;
13236
13358
  permission?: {
@@ -13295,9 +13417,9 @@ export declare const protocolMessageSchemas: {
13295
13417
  }[] | undefined;
13296
13418
  text?: string | undefined;
13297
13419
  commandExecution?: {
13298
- status?: "running" | "pending" | "completed" | "failed" | undefined;
13299
- output?: string | undefined;
13300
13420
  command?: string | undefined;
13421
+ output?: string | undefined;
13422
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
13301
13423
  cwd?: string | undefined;
13302
13424
  exitCode?: number | null | undefined;
13303
13425
  } | undefined;
@@ -13314,20 +13436,20 @@ export declare const protocolMessageSchemas: {
13314
13436
  changeSetId?: string | undefined;
13315
13437
  } | undefined;
13316
13438
  role?: "user" | "assistant" | "system" | undefined;
13317
- kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13318
13439
  content?: {
13319
13440
  type: "text" | "image";
13320
13441
  text?: string | undefined;
13321
13442
  data?: string | undefined;
13322
13443
  mimeType?: string | undefined;
13323
13444
  }[] | undefined;
13445
+ kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13324
13446
  isStreaming?: boolean | undefined;
13325
13447
  toolCall?: {
13326
- id: string;
13327
13448
  name: string;
13328
- status?: "running" | "pending" | "completed" | "failed" | undefined;
13449
+ id: string;
13329
13450
  input?: string | undefined;
13330
13451
  output?: string | undefined;
13452
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
13331
13453
  createdAt?: number | undefined;
13332
13454
  } | undefined;
13333
13455
  permission?: {
@@ -13386,9 +13508,9 @@ export declare const protocolMessageSchemas: {
13386
13508
  cwd: string;
13387
13509
  createdAt: number;
13388
13510
  lastActivityAt: number;
13511
+ provider?: "claude" | "codex" | "custom" | undefined;
13389
13512
  status?: "error" | "unavailable" | "idle" | "running" | "waiting_permission" | undefined;
13390
13513
  title?: string | undefined;
13391
- provider?: "claude" | "codex" | "custom" | undefined;
13392
13514
  agentSessionId?: string | undefined;
13393
13515
  model?: string | undefined;
13394
13516
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;