@linkshell/gateway 0.4.29 → 0.4.30

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.
@@ -28,26 +28,26 @@ export declare const envelopeSchema: z.ZodObject<{
28
28
  ack: z.ZodOptional<z.ZodNumber>;
29
29
  payload: z.ZodUnknown;
30
30
  }, "strip", z.ZodTypeAny, {
31
- sessionId: string;
32
31
  type: string;
33
- id: string;
32
+ sessionId: string;
34
33
  timestamp: string;
34
+ id: string;
35
35
  terminalId?: string | undefined;
36
+ ack?: number | undefined;
37
+ seq?: number | undefined;
36
38
  deviceId?: string | undefined;
37
39
  traceId?: string | undefined;
38
- seq?: number | undefined;
39
- ack?: number | undefined;
40
40
  payload?: unknown;
41
41
  }, {
42
- sessionId: string;
43
42
  type: string;
44
- id: string;
43
+ sessionId: string;
45
44
  timestamp: string;
45
+ id: string;
46
46
  terminalId?: string | undefined;
47
+ ack?: number | undefined;
48
+ seq?: number | undefined;
47
49
  deviceId?: string | undefined;
48
50
  traceId?: string | undefined;
49
- seq?: number | undefined;
50
- ack?: number | undefined;
51
51
  payload?: unknown;
52
52
  }>;
53
53
  export type Envelope = z.infer<typeof envelopeSchema>;
@@ -267,8 +267,8 @@ export declare const screenStatusPayloadSchema: z.ZodObject<{
267
267
  error?: string | undefined;
268
268
  }, {
269
269
  active: boolean;
270
- error?: string | undefined;
271
270
  mode?: "webrtc" | "fallback" | "off" | undefined;
271
+ error?: string | undefined;
272
272
  }>;
273
273
  export declare const screenOfferPayloadSchema: z.ZodObject<{
274
274
  sdp: z.ZodString;
@@ -460,8 +460,8 @@ export declare const terminalBrowseResultPayloadSchema: z.ZodObject<{
460
460
  size?: number | undefined;
461
461
  modifiedAt?: string | undefined;
462
462
  }[];
463
- error?: string | undefined;
464
463
  requestId?: string | undefined;
464
+ error?: string | undefined;
465
465
  }, {
466
466
  path: string;
467
467
  entries: {
@@ -471,8 +471,8 @@ export declare const terminalBrowseResultPayloadSchema: z.ZodObject<{
471
471
  size?: number | undefined;
472
472
  modifiedAt?: string | undefined;
473
473
  }[];
474
- error?: string | undefined;
475
474
  requestId?: string | undefined;
475
+ error?: string | undefined;
476
476
  }>;
477
477
  export declare const terminalFileReadPayloadSchema: z.ZodObject<{
478
478
  path: z.ZodString;
@@ -500,20 +500,21 @@ export declare const terminalFileReadResultPayloadSchema: z.ZodObject<{
500
500
  encoding: "utf8";
501
501
  content: string;
502
502
  truncated: boolean;
503
- error?: string | undefined;
504
503
  requestId?: string | undefined;
504
+ error?: string | undefined;
505
505
  size?: number | undefined;
506
506
  }, {
507
507
  path: string;
508
- error?: string | undefined;
509
508
  requestId?: string | undefined;
510
509
  encoding?: "utf8" | undefined;
510
+ error?: string | undefined;
511
511
  size?: number | undefined;
512
512
  content?: string | undefined;
513
513
  truncated?: boolean | undefined;
514
514
  }>;
515
515
  export declare const terminalStatusPayloadSchema: z.ZodObject<{
516
516
  phase: z.ZodEnum<["thinking", "tool_use", "outputting", "waiting", "idle", "error"]>;
517
+ provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
517
518
  seq: z.ZodOptional<z.ZodNumber>;
518
519
  toolName: z.ZodOptional<z.ZodString>;
519
520
  toolInput: z.ZodOptional<z.ZodString>;
@@ -527,16 +528,16 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
527
528
  timestamp: z.ZodNumber;
528
529
  }, "strip", z.ZodTypeAny, {
529
530
  requestId: string;
530
- timestamp: number;
531
531
  toolName: string;
532
532
  toolInput: string;
533
533
  permissionRequest: string;
534
+ timestamp: number;
534
535
  }, {
535
536
  requestId: string;
536
- timestamp: number;
537
537
  toolName: string;
538
538
  toolInput: string;
539
539
  permissionRequest: string;
540
+ timestamp: number;
540
541
  }>>;
541
542
  permissionResolution: z.ZodOptional<z.ZodObject<{
542
543
  requestId: z.ZodString;
@@ -558,18 +559,19 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
558
559
  machineId: z.ZodOptional<z.ZodString>;
559
560
  }, "strip", z.ZodTypeAny, {
560
561
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
561
- seq?: number | undefined;
562
+ provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
562
563
  machineId?: string | undefined;
564
+ seq?: number | undefined;
563
565
  toolName?: string | undefined;
564
566
  toolInput?: string | undefined;
565
567
  permissionRequest?: string | undefined;
566
568
  summary?: string | undefined;
567
569
  topPermission?: {
568
570
  requestId: string;
569
- timestamp: number;
570
571
  toolName: string;
571
572
  toolInput: string;
572
573
  permissionRequest: string;
574
+ timestamp: number;
573
575
  } | undefined;
574
576
  permissionResolution?: {
575
577
  requestId: string;
@@ -580,18 +582,19 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
580
582
  pendingPermissionCount?: number | undefined;
581
583
  }, {
582
584
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
583
- seq?: number | undefined;
585
+ provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
584
586
  machineId?: string | undefined;
587
+ seq?: number | undefined;
585
588
  toolName?: string | undefined;
586
589
  toolInput?: string | undefined;
587
590
  permissionRequest?: string | undefined;
588
591
  summary?: string | undefined;
589
592
  topPermission?: {
590
593
  requestId: string;
591
- timestamp: number;
592
594
  toolName: string;
593
595
  toolInput: string;
594
596
  permissionRequest: string;
597
+ timestamp: number;
595
598
  } | undefined;
596
599
  permissionResolution?: {
597
600
  requestId: string;
@@ -661,19 +664,19 @@ export declare const tunnelRequestPayloadSchema: z.ZodObject<{
661
664
  body: z.ZodNullable<z.ZodString>;
662
665
  port: z.ZodNumber;
663
666
  }, "strip", z.ZodTypeAny, {
664
- headers: Record<string, string>;
665
667
  requestId: string;
666
- port: number;
668
+ body: string | null;
667
669
  method: string;
668
670
  url: string;
669
- body: string | null;
670
- }, {
671
671
  headers: Record<string, string>;
672
- requestId: string;
673
672
  port: number;
673
+ }, {
674
+ requestId: string;
675
+ body: string | null;
674
676
  method: string;
675
677
  url: string;
676
- body: string | null;
678
+ headers: Record<string, string>;
679
+ port: number;
677
680
  }>;
678
681
  export declare const tunnelResponsePayloadSchema: z.ZodObject<{
679
682
  requestId: z.ZodString;
@@ -682,16 +685,16 @@ export declare const tunnelResponsePayloadSchema: z.ZodObject<{
682
685
  body: z.ZodString;
683
686
  isFinal: z.ZodBoolean;
684
687
  }, "strip", z.ZodTypeAny, {
685
- headers: Record<string, string>;
686
688
  requestId: string;
687
- isFinal: boolean;
688
689
  body: string;
690
+ isFinal: boolean;
691
+ headers: Record<string, string>;
689
692
  statusCode: number;
690
693
  }, {
691
- headers: Record<string, string>;
692
694
  requestId: string;
693
- isFinal: boolean;
694
695
  body: string;
696
+ isFinal: boolean;
697
+ headers: Record<string, string>;
695
698
  statusCode: number;
696
699
  }>;
697
700
  export declare const tunnelWsDataPayloadSchema: z.ZodObject<{
@@ -764,15 +767,15 @@ export declare const agentMessageSchema: z.ZodObject<{
764
767
  createdAt: z.ZodNumber;
765
768
  isStreaming: z.ZodOptional<z.ZodBoolean>;
766
769
  }, "strip", z.ZodTypeAny, {
767
- id: string;
768
770
  role: "user" | "assistant" | "system";
769
771
  content: string;
772
+ id: string;
770
773
  createdAt: number;
771
774
  isStreaming?: boolean | undefined;
772
775
  }, {
773
- id: string;
774
776
  role: "user" | "assistant" | "system";
775
777
  content: string;
778
+ id: string;
776
779
  createdAt: number;
777
780
  isStreaming?: boolean | undefined;
778
781
  }>;
@@ -785,14 +788,14 @@ export declare const agentToolCallSchema: z.ZodObject<{
785
788
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
786
789
  }, "strip", z.ZodTypeAny, {
787
790
  status: "running" | "pending" | "completed" | "failed";
788
- id: string;
789
791
  name: string;
792
+ id: string;
790
793
  createdAt?: number | undefined;
791
794
  input?: string | undefined;
792
795
  output?: string | undefined;
793
796
  }, {
794
- id: string;
795
797
  name: string;
798
+ id: string;
796
799
  status?: "running" | "pending" | "completed" | "failed" | undefined;
797
800
  createdAt?: number | undefined;
798
801
  input?: string | undefined;
@@ -861,9 +864,9 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
861
864
  disabledReason: z.ZodOptional<z.ZodString>;
862
865
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
863
866
  }, "strip", z.ZodTypeAny, {
864
- id: string;
865
867
  name: string;
866
868
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
869
+ id: string;
867
870
  title: string;
868
871
  argsMode: "none" | "optional" | "required" | "raw";
869
872
  executionKind: "prompt" | "native" | "local_ui";
@@ -874,8 +877,8 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
874
877
  destructive?: boolean | undefined;
875
878
  disabledReason?: string | undefined;
876
879
  }, {
877
- id: string;
878
880
  name: string;
881
+ id: string;
879
882
  title: string;
880
883
  provider?: "custom" | "claude" | "codex" | undefined;
881
884
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -936,9 +939,9 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
936
939
  disabledReason: z.ZodOptional<z.ZodString>;
937
940
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
938
941
  }, "strip", z.ZodTypeAny, {
939
- id: string;
940
942
  name: string;
941
943
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
944
+ id: string;
942
945
  title: string;
943
946
  argsMode: "none" | "optional" | "required" | "raw";
944
947
  executionKind: "prompt" | "native" | "local_ui";
@@ -949,8 +952,8 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
949
952
  destructive?: boolean | undefined;
950
953
  disabledReason?: string | undefined;
951
954
  }, {
952
- id: string;
953
955
  name: string;
956
+ id: string;
954
957
  title: string;
955
958
  provider?: "custom" | "claude" | "codex" | undefined;
956
959
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -978,8 +981,8 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
978
981
  currentMode: z.ZodOptional<z.ZodString>;
979
982
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
980
983
  }, "strip", z.ZodTypeAny, {
981
- id: "custom" | "claude" | "codex";
982
984
  enabled: boolean;
985
+ id: "custom" | "claude" | "codex";
983
986
  label: string;
984
987
  reason?: string | undefined;
985
988
  supportsImages?: boolean | undefined;
@@ -994,9 +997,9 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
994
997
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
995
998
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
996
999
  commands?: {
997
- id: string;
998
1000
  name: string;
999
1001
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1002
+ id: string;
1000
1003
  title: string;
1001
1004
  argsMode: "none" | "optional" | "required" | "raw";
1002
1005
  executionKind: "prompt" | "native" | "local_ui";
@@ -1015,8 +1018,8 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
1015
1018
  currentMode?: string | undefined;
1016
1019
  features?: Record<string, boolean> | undefined;
1017
1020
  }, {
1018
- id: "custom" | "claude" | "codex";
1019
1021
  enabled: boolean;
1022
+ id: "custom" | "claude" | "codex";
1020
1023
  label: string;
1021
1024
  reason?: string | undefined;
1022
1025
  supportsImages?: boolean | undefined;
@@ -1031,8 +1034,8 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
1031
1034
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1032
1035
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1033
1036
  commands?: {
1034
- id: string;
1035
1037
  name: string;
1038
+ id: string;
1036
1039
  title: string;
1037
1040
  provider?: "custom" | "claude" | "codex" | undefined;
1038
1041
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -1092,9 +1095,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1092
1095
  disabledReason: z.ZodOptional<z.ZodString>;
1093
1096
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
1094
1097
  }, "strip", z.ZodTypeAny, {
1095
- id: string;
1096
1098
  name: string;
1097
1099
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1100
+ id: string;
1098
1101
  title: string;
1099
1102
  argsMode: "none" | "optional" | "required" | "raw";
1100
1103
  executionKind: "prompt" | "native" | "local_ui";
@@ -1105,8 +1108,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1105
1108
  destructive?: boolean | undefined;
1106
1109
  disabledReason?: string | undefined;
1107
1110
  }, {
1108
- id: string;
1109
1111
  name: string;
1112
+ id: string;
1110
1113
  title: string;
1111
1114
  provider?: "custom" | "claude" | "codex" | undefined;
1112
1115
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -1134,8 +1137,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1134
1137
  currentMode: z.ZodOptional<z.ZodString>;
1135
1138
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1136
1139
  }, "strip", z.ZodTypeAny, {
1137
- id: "custom" | "claude" | "codex";
1138
1140
  enabled: boolean;
1141
+ id: "custom" | "claude" | "codex";
1139
1142
  label: string;
1140
1143
  reason?: string | undefined;
1141
1144
  supportsImages?: boolean | undefined;
@@ -1150,9 +1153,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1150
1153
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1151
1154
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1152
1155
  commands?: {
1153
- id: string;
1154
1156
  name: string;
1155
1157
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1158
+ id: string;
1156
1159
  title: string;
1157
1160
  argsMode: "none" | "optional" | "required" | "raw";
1158
1161
  executionKind: "prompt" | "native" | "local_ui";
@@ -1171,8 +1174,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1171
1174
  currentMode?: string | undefined;
1172
1175
  features?: Record<string, boolean> | undefined;
1173
1176
  }, {
1174
- id: "custom" | "claude" | "codex";
1175
1177
  enabled: boolean;
1178
+ id: "custom" | "claude" | "codex";
1176
1179
  label: string;
1177
1180
  reason?: string | undefined;
1178
1181
  supportsImages?: boolean | undefined;
@@ -1187,8 +1190,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1187
1190
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1188
1191
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1189
1192
  commands?: {
1190
- id: string;
1191
1193
  name: string;
1194
+ id: string;
1192
1195
  title: string;
1193
1196
  provider?: "custom" | "claude" | "codex" | undefined;
1194
1197
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -1226,13 +1229,13 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1226
1229
  supportsSessionList: boolean;
1227
1230
  supportsSessionLoad: boolean;
1228
1231
  supportsAudio: boolean;
1229
- error?: string | undefined;
1230
1232
  provider?: "custom" | "claude" | "codex" | undefined;
1231
1233
  protocolVersion?: number | undefined;
1232
1234
  machineId?: string | undefined;
1235
+ error?: string | undefined;
1233
1236
  providers?: {
1234
- id: "custom" | "claude" | "codex";
1235
1237
  enabled: boolean;
1238
+ id: "custom" | "claude" | "codex";
1236
1239
  label: string;
1237
1240
  reason?: string | undefined;
1238
1241
  supportsImages?: boolean | undefined;
@@ -1247,9 +1250,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1247
1250
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1248
1251
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1249
1252
  commands?: {
1250
- id: string;
1251
1253
  name: string;
1252
1254
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1255
+ id: string;
1253
1256
  title: string;
1254
1257
  argsMode: "none" | "optional" | "required" | "raw";
1255
1258
  executionKind: "prompt" | "native" | "local_ui";
@@ -1270,17 +1273,17 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1270
1273
  }[] | undefined;
1271
1274
  }, {
1272
1275
  enabled: boolean;
1273
- error?: string | undefined;
1274
1276
  provider?: "custom" | "claude" | "codex" | undefined;
1275
1277
  protocolVersion?: number | undefined;
1276
1278
  machineId?: string | undefined;
1279
+ error?: string | undefined;
1277
1280
  supportsImages?: boolean | undefined;
1278
1281
  supportsPermission?: boolean | undefined;
1279
1282
  supportsPlan?: boolean | undefined;
1280
1283
  supportsCancel?: boolean | undefined;
1281
1284
  providers?: {
1282
- id: "custom" | "claude" | "codex";
1283
1285
  enabled: boolean;
1286
+ id: "custom" | "claude" | "codex";
1284
1287
  label: string;
1285
1288
  reason?: string | undefined;
1286
1289
  supportsImages?: boolean | undefined;
@@ -1295,8 +1298,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1295
1298
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1296
1299
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1297
1300
  commands?: {
1298
- id: string;
1299
1301
  name: string;
1302
+ id: string;
1300
1303
  title: string;
1301
1304
  provider?: "custom" | "claude" | "codex" | undefined;
1302
1305
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -1409,15 +1412,15 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1409
1412
  createdAt: z.ZodNumber;
1410
1413
  isStreaming: z.ZodOptional<z.ZodBoolean>;
1411
1414
  }, "strip", z.ZodTypeAny, {
1412
- id: string;
1413
1415
  role: "user" | "assistant" | "system";
1414
1416
  content: string;
1417
+ id: string;
1415
1418
  createdAt: number;
1416
1419
  isStreaming?: boolean | undefined;
1417
1420
  }, {
1418
- id: string;
1419
1421
  role: "user" | "assistant" | "system";
1420
1422
  content: string;
1423
+ id: string;
1421
1424
  createdAt: number;
1422
1425
  isStreaming?: boolean | undefined;
1423
1426
  }>>;
@@ -1431,14 +1434,14 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1431
1434
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
1432
1435
  }, "strip", z.ZodTypeAny, {
1433
1436
  status: "running" | "pending" | "completed" | "failed";
1434
- id: string;
1435
1437
  name: string;
1438
+ id: string;
1436
1439
  createdAt?: number | undefined;
1437
1440
  input?: string | undefined;
1438
1441
  output?: string | undefined;
1439
1442
  }, {
1440
- id: string;
1441
1443
  name: string;
1444
+ id: string;
1442
1445
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1443
1446
  createdAt?: number | undefined;
1444
1447
  input?: string | undefined;
@@ -1460,17 +1463,17 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1460
1463
  status: z.ZodOptional<z.ZodEnum<["idle", "running", "waiting_permission", "error"]>>;
1461
1464
  error: z.ZodOptional<z.ZodString>;
1462
1465
  }, "strip", z.ZodTypeAny, {
1463
- kind: "error" | "message" | "status" | "message_delta" | "tool_call" | "tool_result" | "plan";
1464
- error?: string | undefined;
1466
+ kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
1465
1467
  message?: {
1466
- id: string;
1467
1468
  role: "user" | "assistant" | "system";
1468
1469
  content: string;
1470
+ id: string;
1469
1471
  createdAt: number;
1470
1472
  isStreaming?: boolean | undefined;
1471
1473
  } | undefined;
1472
1474
  status?: "error" | "running" | "idle" | "waiting_permission" | undefined;
1473
1475
  agentSessionId?: string | undefined;
1476
+ error?: string | undefined;
1474
1477
  plan?: {
1475
1478
  status: "pending" | "completed" | "in_progress";
1476
1479
  id: string;
@@ -1479,24 +1482,24 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1479
1482
  delta?: string | undefined;
1480
1483
  toolCall?: {
1481
1484
  status: "running" | "pending" | "completed" | "failed";
1482
- id: string;
1483
1485
  name: string;
1486
+ id: string;
1484
1487
  createdAt?: number | undefined;
1485
1488
  input?: string | undefined;
1486
1489
  output?: string | undefined;
1487
1490
  } | undefined;
1488
1491
  }, {
1489
- kind: "error" | "message" | "status" | "message_delta" | "tool_call" | "tool_result" | "plan";
1490
- error?: string | undefined;
1492
+ kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
1491
1493
  message?: {
1492
- id: string;
1493
1494
  role: "user" | "assistant" | "system";
1494
1495
  content: string;
1496
+ id: string;
1495
1497
  createdAt: number;
1496
1498
  isStreaming?: boolean | undefined;
1497
1499
  } | undefined;
1498
1500
  status?: "error" | "running" | "idle" | "waiting_permission" | undefined;
1499
1501
  agentSessionId?: string | undefined;
1502
+ error?: string | undefined;
1500
1503
  plan?: {
1501
1504
  status: "pending" | "completed" | "in_progress";
1502
1505
  id: string;
@@ -1504,8 +1507,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1504
1507
  }[] | undefined;
1505
1508
  delta?: string | undefined;
1506
1509
  toolCall?: {
1507
- id: string;
1508
1510
  name: string;
1511
+ id: string;
1509
1512
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1510
1513
  createdAt?: number | undefined;
1511
1514
  input?: string | undefined;
@@ -1613,9 +1616,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1613
1616
  disabledReason: z.ZodOptional<z.ZodString>;
1614
1617
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
1615
1618
  }, "strip", z.ZodTypeAny, {
1616
- id: string;
1617
1619
  name: string;
1618
1620
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1621
+ id: string;
1619
1622
  title: string;
1620
1623
  argsMode: "none" | "optional" | "required" | "raw";
1621
1624
  executionKind: "prompt" | "native" | "local_ui";
@@ -1626,8 +1629,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1626
1629
  destructive?: boolean | undefined;
1627
1630
  disabledReason?: string | undefined;
1628
1631
  }, {
1629
- id: string;
1630
1632
  name: string;
1633
+ id: string;
1631
1634
  title: string;
1632
1635
  provider?: "custom" | "claude" | "codex" | undefined;
1633
1636
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -1655,8 +1658,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1655
1658
  currentMode: z.ZodOptional<z.ZodString>;
1656
1659
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1657
1660
  }, "strip", z.ZodTypeAny, {
1658
- id: "custom" | "claude" | "codex";
1659
1661
  enabled: boolean;
1662
+ id: "custom" | "claude" | "codex";
1660
1663
  label: string;
1661
1664
  reason?: string | undefined;
1662
1665
  supportsImages?: boolean | undefined;
@@ -1671,9 +1674,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1671
1674
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1672
1675
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1673
1676
  commands?: {
1674
- id: string;
1675
1677
  name: string;
1676
1678
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1679
+ id: string;
1677
1680
  title: string;
1678
1681
  argsMode: "none" | "optional" | "required" | "raw";
1679
1682
  executionKind: "prompt" | "native" | "local_ui";
@@ -1692,8 +1695,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1692
1695
  currentMode?: string | undefined;
1693
1696
  features?: Record<string, boolean> | undefined;
1694
1697
  }, {
1695
- id: "custom" | "claude" | "codex";
1696
1698
  enabled: boolean;
1699
+ id: "custom" | "claude" | "codex";
1697
1700
  label: string;
1698
1701
  reason?: string | undefined;
1699
1702
  supportsImages?: boolean | undefined;
@@ -1708,8 +1711,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1708
1711
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1709
1712
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1710
1713
  commands?: {
1711
- id: string;
1712
1714
  name: string;
1715
+ id: string;
1713
1716
  title: string;
1714
1717
  provider?: "custom" | "claude" | "codex" | undefined;
1715
1718
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -1747,13 +1750,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1747
1750
  supportsSessionList: boolean;
1748
1751
  supportsSessionLoad: boolean;
1749
1752
  supportsAudio: boolean;
1750
- error?: string | undefined;
1751
1753
  provider?: "custom" | "claude" | "codex" | undefined;
1752
1754
  protocolVersion?: number | undefined;
1753
1755
  machineId?: string | undefined;
1756
+ error?: string | undefined;
1754
1757
  providers?: {
1755
- id: "custom" | "claude" | "codex";
1756
1758
  enabled: boolean;
1759
+ id: "custom" | "claude" | "codex";
1757
1760
  label: string;
1758
1761
  reason?: string | undefined;
1759
1762
  supportsImages?: boolean | undefined;
@@ -1768,9 +1771,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1768
1771
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1769
1772
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1770
1773
  commands?: {
1771
- id: string;
1772
1774
  name: string;
1773
1775
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1776
+ id: string;
1774
1777
  title: string;
1775
1778
  argsMode: "none" | "optional" | "required" | "raw";
1776
1779
  executionKind: "prompt" | "native" | "local_ui";
@@ -1791,17 +1794,17 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1791
1794
  }[] | undefined;
1792
1795
  }, {
1793
1796
  enabled: boolean;
1794
- error?: string | undefined;
1795
1797
  provider?: "custom" | "claude" | "codex" | undefined;
1796
1798
  protocolVersion?: number | undefined;
1797
1799
  machineId?: string | undefined;
1800
+ error?: string | undefined;
1798
1801
  supportsImages?: boolean | undefined;
1799
1802
  supportsPermission?: boolean | undefined;
1800
1803
  supportsPlan?: boolean | undefined;
1801
1804
  supportsCancel?: boolean | undefined;
1802
1805
  providers?: {
1803
- id: "custom" | "claude" | "codex";
1804
1806
  enabled: boolean;
1807
+ id: "custom" | "claude" | "codex";
1805
1808
  label: string;
1806
1809
  reason?: string | undefined;
1807
1810
  supportsImages?: boolean | undefined;
@@ -1816,8 +1819,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1816
1819
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1817
1820
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1818
1821
  commands?: {
1819
- id: string;
1820
1822
  name: string;
1823
+ id: string;
1821
1824
  title: string;
1822
1825
  provider?: "custom" | "claude" | "codex" | undefined;
1823
1826
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -1848,15 +1851,15 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1848
1851
  createdAt: z.ZodNumber;
1849
1852
  isStreaming: z.ZodOptional<z.ZodBoolean>;
1850
1853
  }, "strip", z.ZodTypeAny, {
1851
- id: string;
1852
1854
  role: "user" | "assistant" | "system";
1853
1855
  content: string;
1856
+ id: string;
1854
1857
  createdAt: number;
1855
1858
  isStreaming?: boolean | undefined;
1856
1859
  }, {
1857
- id: string;
1858
1860
  role: "user" | "assistant" | "system";
1859
1861
  content: string;
1862
+ id: string;
1860
1863
  createdAt: number;
1861
1864
  isStreaming?: boolean | undefined;
1862
1865
  }>, "many">>;
@@ -1869,14 +1872,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1869
1872
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
1870
1873
  }, "strip", z.ZodTypeAny, {
1871
1874
  status: "running" | "pending" | "completed" | "failed";
1872
- id: string;
1873
1875
  name: string;
1876
+ id: string;
1874
1877
  createdAt?: number | undefined;
1875
1878
  input?: string | undefined;
1876
1879
  output?: string | undefined;
1877
1880
  }, {
1878
- id: string;
1879
1881
  name: string;
1882
+ id: string;
1880
1883
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1881
1884
  createdAt?: number | undefined;
1882
1885
  input?: string | undefined;
@@ -1926,16 +1929,16 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1926
1929
  }, "strip", z.ZodTypeAny, {
1927
1930
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
1928
1931
  messages: {
1929
- id: string;
1930
1932
  role: "user" | "assistant" | "system";
1931
1933
  content: string;
1934
+ id: string;
1932
1935
  createdAt: number;
1933
1936
  isStreaming?: boolean | undefined;
1934
1937
  }[];
1935
1938
  toolCalls: {
1936
1939
  status: "running" | "pending" | "completed" | "failed";
1937
- id: string;
1938
1940
  name: string;
1941
+ id: string;
1939
1942
  createdAt?: number | undefined;
1940
1943
  input?: string | undefined;
1941
1944
  output?: string | undefined;
@@ -1951,8 +1954,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1951
1954
  toolInput?: string | undefined;
1952
1955
  context?: string | undefined;
1953
1956
  }[];
1954
- error?: string | undefined;
1955
1957
  agentSessionId?: string | undefined;
1958
+ error?: string | undefined;
1956
1959
  capabilities?: {
1957
1960
  enabled: boolean;
1958
1961
  supportsImages: boolean;
@@ -1962,13 +1965,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1962
1965
  supportsSessionList: boolean;
1963
1966
  supportsSessionLoad: boolean;
1964
1967
  supportsAudio: boolean;
1965
- error?: string | undefined;
1966
1968
  provider?: "custom" | "claude" | "codex" | undefined;
1967
1969
  protocolVersion?: number | undefined;
1968
1970
  machineId?: string | undefined;
1971
+ error?: string | undefined;
1969
1972
  providers?: {
1970
- id: "custom" | "claude" | "codex";
1971
1973
  enabled: boolean;
1974
+ id: "custom" | "claude" | "codex";
1972
1975
  label: string;
1973
1976
  reason?: string | undefined;
1974
1977
  supportsImages?: boolean | undefined;
@@ -1983,9 +1986,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1983
1986
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1984
1987
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1985
1988
  commands?: {
1986
- id: string;
1987
1989
  name: string;
1988
1990
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1991
+ id: string;
1989
1992
  title: string;
1990
1993
  argsMode: "none" | "optional" | "required" | "raw";
1991
1994
  executionKind: "prompt" | "native" | "local_ui";
@@ -2006,22 +2009,22 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
2006
2009
  }[] | undefined;
2007
2010
  } | undefined;
2008
2011
  }, {
2009
- error?: string | undefined;
2010
2012
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
2011
2013
  agentSessionId?: string | undefined;
2014
+ error?: string | undefined;
2012
2015
  capabilities?: {
2013
2016
  enabled: boolean;
2014
- error?: string | undefined;
2015
2017
  provider?: "custom" | "claude" | "codex" | undefined;
2016
2018
  protocolVersion?: number | undefined;
2017
2019
  machineId?: string | undefined;
2020
+ error?: string | undefined;
2018
2021
  supportsImages?: boolean | undefined;
2019
2022
  supportsPermission?: boolean | undefined;
2020
2023
  supportsPlan?: boolean | undefined;
2021
2024
  supportsCancel?: boolean | undefined;
2022
2025
  providers?: {
2023
- id: "custom" | "claude" | "codex";
2024
2026
  enabled: boolean;
2027
+ id: "custom" | "claude" | "codex";
2025
2028
  label: string;
2026
2029
  reason?: string | undefined;
2027
2030
  supportsImages?: boolean | undefined;
@@ -2036,8 +2039,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
2036
2039
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
2037
2040
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
2038
2041
  commands?: {
2039
- id: string;
2040
2042
  name: string;
2043
+ id: string;
2041
2044
  title: string;
2042
2045
  provider?: "custom" | "claude" | "codex" | undefined;
2043
2046
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -2062,15 +2065,15 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
2062
2065
  supportsAudio?: boolean | undefined;
2063
2066
  } | undefined;
2064
2067
  messages?: {
2065
- id: string;
2066
2068
  role: "user" | "assistant" | "system";
2067
2069
  content: string;
2070
+ id: string;
2068
2071
  createdAt: number;
2069
2072
  isStreaming?: boolean | undefined;
2070
2073
  }[] | undefined;
2071
2074
  toolCalls?: {
2072
- id: string;
2073
2075
  name: string;
2076
+ id: string;
2074
2077
  status?: "running" | "pending" | "completed" | "failed" | undefined;
2075
2078
  createdAt?: number | undefined;
2076
2079
  input?: string | undefined;
@@ -2454,14 +2457,14 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2454
2457
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
2455
2458
  }, "strip", z.ZodTypeAny, {
2456
2459
  status: "running" | "pending" | "completed" | "failed";
2457
- id: string;
2458
2460
  name: string;
2461
+ id: string;
2459
2462
  createdAt?: number | undefined;
2460
2463
  input?: string | undefined;
2461
2464
  output?: string | undefined;
2462
2465
  }, {
2463
- id: string;
2464
2466
  name: string;
2467
+ id: string;
2465
2468
  status?: "running" | "pending" | "completed" | "failed" | undefined;
2466
2469
  createdAt?: number | undefined;
2467
2470
  input?: string | undefined;
@@ -2747,13 +2750,13 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2747
2750
  updatedAt: z.ZodOptional<z.ZodNumber>;
2748
2751
  isStreaming: z.ZodOptional<z.ZodBoolean>;
2749
2752
  }, "strip", z.ZodTypeAny, {
2750
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
2753
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
2751
2754
  conversationId: string;
2752
2755
  id: string;
2753
2756
  createdAt: number;
2754
- error?: string | undefined;
2755
2757
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
2756
2758
  role?: "user" | "assistant" | "system" | undefined;
2759
+ error?: string | undefined;
2757
2760
  content?: {
2758
2761
  type: "text" | "image";
2759
2762
  data?: string | undefined;
@@ -2770,8 +2773,8 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2770
2773
  isStreaming?: boolean | undefined;
2771
2774
  toolCall?: {
2772
2775
  status: "running" | "pending" | "completed" | "failed";
2773
- id: string;
2774
2776
  name: string;
2777
+ id: string;
2775
2778
  createdAt?: number | undefined;
2776
2779
  input?: string | undefined;
2777
2780
  output?: string | undefined;
@@ -2847,13 +2850,13 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2847
2850
  metadata?: Record<string, unknown> | undefined;
2848
2851
  updatedAt?: number | undefined;
2849
2852
  }, {
2850
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
2853
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
2851
2854
  conversationId: string;
2852
2855
  id: string;
2853
2856
  createdAt: number;
2854
- error?: string | undefined;
2855
2857
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
2856
2858
  role?: "user" | "assistant" | "system" | undefined;
2859
+ error?: string | undefined;
2857
2860
  content?: {
2858
2861
  type: "text" | "image";
2859
2862
  data?: string | undefined;
@@ -2869,8 +2872,8 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2869
2872
  }[] | undefined;
2870
2873
  isStreaming?: boolean | undefined;
2871
2874
  toolCall?: {
2872
- id: string;
2873
2875
  name: string;
2876
+ id: string;
2874
2877
  status?: "running" | "pending" | "completed" | "failed" | undefined;
2875
2878
  createdAt?: number | undefined;
2876
2879
  input?: string | undefined;
@@ -2964,9 +2967,9 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
2964
2967
  createdAt: z.ZodNumber;
2965
2968
  }, "strip", z.ZodTypeAny, {
2966
2969
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
2967
- id: string;
2968
2970
  provider: "custom" | "claude" | "codex";
2969
2971
  cwd: string;
2972
+ id: string;
2970
2973
  createdAt: number;
2971
2974
  archived: boolean;
2972
2975
  lastActivityAt: number;
@@ -2975,11 +2978,11 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
2975
2978
  model?: string | undefined;
2976
2979
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
2977
2980
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
2978
- collaborationMode?: "default" | "plan" | undefined;
2981
+ collaborationMode?: "plan" | "default" | undefined;
2979
2982
  lastMessagePreview?: string | undefined;
2980
2983
  }, {
2981
- id: string;
2982
2984
  cwd: string;
2985
+ id: string;
2983
2986
  createdAt: number;
2984
2987
  lastActivityAt: number;
2985
2988
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -2989,7 +2992,7 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
2989
2992
  model?: string | undefined;
2990
2993
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
2991
2994
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
2992
- collaborationMode?: "default" | "plan" | undefined;
2995
+ collaborationMode?: "plan" | "default" | undefined;
2993
2996
  archived?: boolean | undefined;
2994
2997
  lastMessagePreview?: string | undefined;
2995
2998
  }>;
@@ -3034,9 +3037,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3034
3037
  disabledReason: z.ZodOptional<z.ZodString>;
3035
3038
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
3036
3039
  }, "strip", z.ZodTypeAny, {
3037
- id: string;
3038
3040
  name: string;
3039
3041
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
3042
+ id: string;
3040
3043
  title: string;
3041
3044
  argsMode: "none" | "optional" | "required" | "raw";
3042
3045
  executionKind: "prompt" | "native" | "local_ui";
@@ -3047,8 +3050,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3047
3050
  destructive?: boolean | undefined;
3048
3051
  disabledReason?: string | undefined;
3049
3052
  }, {
3050
- id: string;
3051
3053
  name: string;
3054
+ id: string;
3052
3055
  title: string;
3053
3056
  provider?: "custom" | "claude" | "codex" | undefined;
3054
3057
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -3076,8 +3079,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3076
3079
  currentMode: z.ZodOptional<z.ZodString>;
3077
3080
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
3078
3081
  }, "strip", z.ZodTypeAny, {
3079
- id: "custom" | "claude" | "codex";
3080
3082
  enabled: boolean;
3083
+ id: "custom" | "claude" | "codex";
3081
3084
  label: string;
3082
3085
  reason?: string | undefined;
3083
3086
  supportsImages?: boolean | undefined;
@@ -3092,9 +3095,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3092
3095
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3093
3096
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3094
3097
  commands?: {
3095
- id: string;
3096
3098
  name: string;
3097
3099
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
3100
+ id: string;
3098
3101
  title: string;
3099
3102
  argsMode: "none" | "optional" | "required" | "raw";
3100
3103
  executionKind: "prompt" | "native" | "local_ui";
@@ -3113,8 +3116,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3113
3116
  currentMode?: string | undefined;
3114
3117
  features?: Record<string, boolean> | undefined;
3115
3118
  }, {
3116
- id: "custom" | "claude" | "codex";
3117
3119
  enabled: boolean;
3120
+ id: "custom" | "claude" | "codex";
3118
3121
  label: string;
3119
3122
  reason?: string | undefined;
3120
3123
  supportsImages?: boolean | undefined;
@@ -3129,8 +3132,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3129
3132
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3130
3133
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3131
3134
  commands?: {
3132
- id: string;
3133
3135
  name: string;
3136
+ id: string;
3134
3137
  title: string;
3135
3138
  provider?: "custom" | "claude" | "codex" | undefined;
3136
3139
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -3171,13 +3174,13 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3171
3174
  supportsSessionLoad: boolean;
3172
3175
  supportsAudio: boolean;
3173
3176
  workspaceProtocolVersion: number;
3174
- error?: string | undefined;
3175
3177
  provider?: "custom" | "claude" | "codex" | undefined;
3176
3178
  protocolVersion?: number | undefined;
3177
3179
  machineId?: string | undefined;
3180
+ error?: string | undefined;
3178
3181
  providers?: {
3179
- id: "custom" | "claude" | "codex";
3180
3182
  enabled: boolean;
3183
+ id: "custom" | "claude" | "codex";
3181
3184
  label: string;
3182
3185
  reason?: string | undefined;
3183
3186
  supportsImages?: boolean | undefined;
@@ -3192,9 +3195,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3192
3195
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3193
3196
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3194
3197
  commands?: {
3195
- id: string;
3196
3198
  name: string;
3197
3199
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
3200
+ id: string;
3198
3201
  title: string;
3199
3202
  argsMode: "none" | "optional" | "required" | "raw";
3200
3203
  executionKind: "prompt" | "native" | "local_ui";
@@ -3215,17 +3218,17 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3215
3218
  }[] | undefined;
3216
3219
  }, {
3217
3220
  enabled: boolean;
3218
- error?: string | undefined;
3219
3221
  provider?: "custom" | "claude" | "codex" | undefined;
3220
3222
  protocolVersion?: number | undefined;
3221
3223
  machineId?: string | undefined;
3224
+ error?: string | undefined;
3222
3225
  supportsImages?: boolean | undefined;
3223
3226
  supportsPermission?: boolean | undefined;
3224
3227
  supportsPlan?: boolean | undefined;
3225
3228
  supportsCancel?: boolean | undefined;
3226
3229
  providers?: {
3227
- id: "custom" | "claude" | "codex";
3228
3230
  enabled: boolean;
3231
+ id: "custom" | "claude" | "codex";
3229
3232
  label: string;
3230
3233
  reason?: string | undefined;
3231
3234
  supportsImages?: boolean | undefined;
@@ -3240,8 +3243,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3240
3243
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3241
3244
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3242
3245
  commands?: {
3243
- id: string;
3244
3246
  name: string;
3247
+ id: string;
3245
3248
  title: string;
3246
3249
  provider?: "custom" | "claude" | "codex" | undefined;
3247
3250
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -3285,7 +3288,7 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
3285
3288
  model?: string | undefined;
3286
3289
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3287
3290
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3288
- collaborationMode?: "default" | "plan" | undefined;
3291
+ collaborationMode?: "plan" | "default" | undefined;
3289
3292
  }, {
3290
3293
  conversationId?: string | undefined;
3291
3294
  agentSessionId?: string | undefined;
@@ -3295,7 +3298,7 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
3295
3298
  model?: string | undefined;
3296
3299
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3297
3300
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3298
- collaborationMode?: "default" | "plan" | undefined;
3301
+ collaborationMode?: "plan" | "default" | undefined;
3299
3302
  }>;
3300
3303
  export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3301
3304
  conversation: z.ZodObject<{
@@ -3315,9 +3318,9 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3315
3318
  createdAt: z.ZodNumber;
3316
3319
  }, "strip", z.ZodTypeAny, {
3317
3320
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
3318
- id: string;
3319
3321
  provider: "custom" | "claude" | "codex";
3320
3322
  cwd: string;
3323
+ id: string;
3321
3324
  createdAt: number;
3322
3325
  archived: boolean;
3323
3326
  lastActivityAt: number;
@@ -3326,11 +3329,11 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3326
3329
  model?: string | undefined;
3327
3330
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3328
3331
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3329
- collaborationMode?: "default" | "plan" | undefined;
3332
+ collaborationMode?: "plan" | "default" | undefined;
3330
3333
  lastMessagePreview?: string | undefined;
3331
3334
  }, {
3332
- id: string;
3333
3335
  cwd: string;
3336
+ id: string;
3334
3337
  createdAt: number;
3335
3338
  lastActivityAt: number;
3336
3339
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -3340,7 +3343,7 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3340
3343
  model?: string | undefined;
3341
3344
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3342
3345
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3343
- collaborationMode?: "default" | "plan" | undefined;
3346
+ collaborationMode?: "plan" | "default" | undefined;
3344
3347
  archived?: boolean | undefined;
3345
3348
  lastMessagePreview?: string | undefined;
3346
3349
  }>;
@@ -3378,14 +3381,14 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3378
3381
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
3379
3382
  }, "strip", z.ZodTypeAny, {
3380
3383
  status: "running" | "pending" | "completed" | "failed";
3381
- id: string;
3382
3384
  name: string;
3385
+ id: string;
3383
3386
  createdAt?: number | undefined;
3384
3387
  input?: string | undefined;
3385
3388
  output?: string | undefined;
3386
3389
  }, {
3387
- id: string;
3388
3390
  name: string;
3391
+ id: string;
3389
3392
  status?: "running" | "pending" | "completed" | "failed" | undefined;
3390
3393
  createdAt?: number | undefined;
3391
3394
  input?: string | undefined;
@@ -3671,13 +3674,13 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3671
3674
  updatedAt: z.ZodOptional<z.ZodNumber>;
3672
3675
  isStreaming: z.ZodOptional<z.ZodBoolean>;
3673
3676
  }, "strip", z.ZodTypeAny, {
3674
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
3677
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
3675
3678
  conversationId: string;
3676
3679
  id: string;
3677
3680
  createdAt: number;
3678
- error?: string | undefined;
3679
3681
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3680
3682
  role?: "user" | "assistant" | "system" | undefined;
3683
+ error?: string | undefined;
3681
3684
  content?: {
3682
3685
  type: "text" | "image";
3683
3686
  data?: string | undefined;
@@ -3694,8 +3697,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3694
3697
  isStreaming?: boolean | undefined;
3695
3698
  toolCall?: {
3696
3699
  status: "running" | "pending" | "completed" | "failed";
3697
- id: string;
3698
3700
  name: string;
3701
+ id: string;
3699
3702
  createdAt?: number | undefined;
3700
3703
  input?: string | undefined;
3701
3704
  output?: string | undefined;
@@ -3771,13 +3774,13 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3771
3774
  metadata?: Record<string, unknown> | undefined;
3772
3775
  updatedAt?: number | undefined;
3773
3776
  }, {
3774
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
3777
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
3775
3778
  conversationId: string;
3776
3779
  id: string;
3777
3780
  createdAt: number;
3778
- error?: string | undefined;
3779
3781
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3780
3782
  role?: "user" | "assistant" | "system" | undefined;
3783
+ error?: string | undefined;
3781
3784
  content?: {
3782
3785
  type: "text" | "image";
3783
3786
  data?: string | undefined;
@@ -3793,8 +3796,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3793
3796
  }[] | undefined;
3794
3797
  isStreaming?: boolean | undefined;
3795
3798
  toolCall?: {
3796
- id: string;
3797
3799
  name: string;
3800
+ id: string;
3798
3801
  status?: "running" | "pending" | "completed" | "failed" | undefined;
3799
3802
  createdAt?: number | undefined;
3800
3803
  input?: string | undefined;
@@ -3875,9 +3878,9 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3875
3878
  }, "strip", z.ZodTypeAny, {
3876
3879
  conversation: {
3877
3880
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
3878
- id: string;
3879
3881
  provider: "custom" | "claude" | "codex";
3880
3882
  cwd: string;
3883
+ id: string;
3881
3884
  createdAt: number;
3882
3885
  archived: boolean;
3883
3886
  lastActivityAt: number;
@@ -3886,17 +3889,17 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3886
3889
  model?: string | undefined;
3887
3890
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3888
3891
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3889
- collaborationMode?: "default" | "plan" | undefined;
3892
+ collaborationMode?: "plan" | "default" | undefined;
3890
3893
  lastMessagePreview?: string | undefined;
3891
3894
  };
3892
3895
  snapshot: {
3893
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
3896
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
3894
3897
  conversationId: string;
3895
3898
  id: string;
3896
3899
  createdAt: number;
3897
- error?: string | undefined;
3898
3900
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3899
3901
  role?: "user" | "assistant" | "system" | undefined;
3902
+ error?: string | undefined;
3900
3903
  content?: {
3901
3904
  type: "text" | "image";
3902
3905
  data?: string | undefined;
@@ -3913,8 +3916,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3913
3916
  isStreaming?: boolean | undefined;
3914
3917
  toolCall?: {
3915
3918
  status: "running" | "pending" | "completed" | "failed";
3916
- id: string;
3917
3919
  name: string;
3920
+ id: string;
3918
3921
  createdAt?: number | undefined;
3919
3922
  input?: string | undefined;
3920
3923
  output?: string | undefined;
@@ -3993,8 +3996,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3993
3996
  requestedConversationId?: string | undefined;
3994
3997
  }, {
3995
3998
  conversation: {
3996
- id: string;
3997
3999
  cwd: string;
4000
+ id: string;
3998
4001
  createdAt: number;
3999
4002
  lastActivityAt: number;
4000
4003
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -4004,18 +4007,18 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
4004
4007
  model?: string | undefined;
4005
4008
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4006
4009
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4007
- collaborationMode?: "default" | "plan" | undefined;
4010
+ collaborationMode?: "plan" | "default" | undefined;
4008
4011
  archived?: boolean | undefined;
4009
4012
  lastMessagePreview?: string | undefined;
4010
4013
  };
4011
4014
  snapshot?: {
4012
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
4015
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
4013
4016
  conversationId: string;
4014
4017
  id: string;
4015
4018
  createdAt: number;
4016
- error?: string | undefined;
4017
4019
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4018
4020
  role?: "user" | "assistant" | "system" | undefined;
4021
+ error?: string | undefined;
4019
4022
  content?: {
4020
4023
  type: "text" | "image";
4021
4024
  data?: string | undefined;
@@ -4031,8 +4034,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
4031
4034
  }[] | undefined;
4032
4035
  isStreaming?: boolean | undefined;
4033
4036
  toolCall?: {
4034
- id: string;
4035
4037
  name: string;
4038
+ id: string;
4036
4039
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4037
4040
  createdAt?: number | undefined;
4038
4041
  input?: string | undefined;
@@ -4136,9 +4139,9 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4136
4139
  createdAt: z.ZodNumber;
4137
4140
  }, "strip", z.ZodTypeAny, {
4138
4141
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4139
- id: string;
4140
4142
  provider: "custom" | "claude" | "codex";
4141
4143
  cwd: string;
4144
+ id: string;
4142
4145
  createdAt: number;
4143
4146
  archived: boolean;
4144
4147
  lastActivityAt: number;
@@ -4147,11 +4150,11 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4147
4150
  model?: string | undefined;
4148
4151
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4149
4152
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4150
- collaborationMode?: "default" | "plan" | undefined;
4153
+ collaborationMode?: "plan" | "default" | undefined;
4151
4154
  lastMessagePreview?: string | undefined;
4152
4155
  }, {
4153
- id: string;
4154
4156
  cwd: string;
4157
+ id: string;
4155
4158
  createdAt: number;
4156
4159
  lastActivityAt: number;
4157
4160
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -4161,16 +4164,16 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4161
4164
  model?: string | undefined;
4162
4165
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4163
4166
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4164
- collaborationMode?: "default" | "plan" | undefined;
4167
+ collaborationMode?: "plan" | "default" | undefined;
4165
4168
  archived?: boolean | undefined;
4166
4169
  lastMessagePreview?: string | undefined;
4167
4170
  }>, "many">;
4168
4171
  }, "strip", z.ZodTypeAny, {
4169
4172
  conversations: {
4170
4173
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4171
- id: string;
4172
4174
  provider: "custom" | "claude" | "codex";
4173
4175
  cwd: string;
4176
+ id: string;
4174
4177
  createdAt: number;
4175
4178
  archived: boolean;
4176
4179
  lastActivityAt: number;
@@ -4179,13 +4182,13 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4179
4182
  model?: string | undefined;
4180
4183
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4181
4184
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4182
- collaborationMode?: "default" | "plan" | undefined;
4185
+ collaborationMode?: "plan" | "default" | undefined;
4183
4186
  lastMessagePreview?: string | undefined;
4184
4187
  }[];
4185
4188
  }, {
4186
4189
  conversations: {
4187
- id: string;
4188
4190
  cwd: string;
4191
+ id: string;
4189
4192
  createdAt: number;
4190
4193
  lastActivityAt: number;
4191
4194
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -4195,7 +4198,7 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4195
4198
  model?: string | undefined;
4196
4199
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4197
4200
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4198
- collaborationMode?: "default" | "plan" | undefined;
4201
+ collaborationMode?: "plan" | "default" | undefined;
4199
4202
  archived?: boolean | undefined;
4200
4203
  lastMessagePreview?: string | undefined;
4201
4204
  }[];
@@ -4238,7 +4241,7 @@ export declare const agentV2PromptPayloadSchema: z.ZodObject<{
4238
4241
  model?: string | undefined;
4239
4242
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4240
4243
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4241
- collaborationMode?: "default" | "plan" | undefined;
4244
+ collaborationMode?: "plan" | "default" | undefined;
4242
4245
  targetTurnId?: string | undefined;
4243
4246
  }, {
4244
4247
  conversationId: string;
@@ -4252,7 +4255,7 @@ export declare const agentV2PromptPayloadSchema: z.ZodObject<{
4252
4255
  model?: string | undefined;
4253
4256
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4254
4257
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4255
- collaborationMode?: "default" | "plan" | undefined;
4258
+ collaborationMode?: "plan" | "default" | undefined;
4256
4259
  delivery?: "auto" | "new_turn" | "steer" | undefined;
4257
4260
  targetTurnId?: string | undefined;
4258
4261
  }>;
@@ -4336,9 +4339,9 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4336
4339
  createdAt: z.ZodNumber;
4337
4340
  }, "strip", z.ZodTypeAny, {
4338
4341
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4339
- id: string;
4340
4342
  provider: "custom" | "claude" | "codex";
4341
4343
  cwd: string;
4344
+ id: string;
4342
4345
  createdAt: number;
4343
4346
  archived: boolean;
4344
4347
  lastActivityAt: number;
@@ -4347,11 +4350,11 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4347
4350
  model?: string | undefined;
4348
4351
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4349
4352
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4350
- collaborationMode?: "default" | "plan" | undefined;
4353
+ collaborationMode?: "plan" | "default" | undefined;
4351
4354
  lastMessagePreview?: string | undefined;
4352
4355
  }, {
4353
- id: string;
4354
4356
  cwd: string;
4357
+ id: string;
4355
4358
  createdAt: number;
4356
4359
  lastActivityAt: number;
4357
4360
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -4361,7 +4364,7 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4361
4364
  model?: string | undefined;
4362
4365
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4363
4366
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4364
- collaborationMode?: "default" | "plan" | undefined;
4367
+ collaborationMode?: "plan" | "default" | undefined;
4365
4368
  archived?: boolean | undefined;
4366
4369
  lastMessagePreview?: string | undefined;
4367
4370
  }>, "many">>;
@@ -4400,14 +4403,14 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4400
4403
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
4401
4404
  }, "strip", z.ZodTypeAny, {
4402
4405
  status: "running" | "pending" | "completed" | "failed";
4403
- id: string;
4404
4406
  name: string;
4407
+ id: string;
4405
4408
  createdAt?: number | undefined;
4406
4409
  input?: string | undefined;
4407
4410
  output?: string | undefined;
4408
4411
  }, {
4409
- id: string;
4410
4412
  name: string;
4413
+ id: string;
4411
4414
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4412
4415
  createdAt?: number | undefined;
4413
4416
  input?: string | undefined;
@@ -4693,13 +4696,13 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4693
4696
  updatedAt: z.ZodOptional<z.ZodNumber>;
4694
4697
  isStreaming: z.ZodOptional<z.ZodBoolean>;
4695
4698
  }, "strip", z.ZodTypeAny, {
4696
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
4699
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
4697
4700
  conversationId: string;
4698
4701
  id: string;
4699
4702
  createdAt: number;
4700
- error?: string | undefined;
4701
4703
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4702
4704
  role?: "user" | "assistant" | "system" | undefined;
4705
+ error?: string | undefined;
4703
4706
  content?: {
4704
4707
  type: "text" | "image";
4705
4708
  data?: string | undefined;
@@ -4716,8 +4719,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4716
4719
  isStreaming?: boolean | undefined;
4717
4720
  toolCall?: {
4718
4721
  status: "running" | "pending" | "completed" | "failed";
4719
- id: string;
4720
4722
  name: string;
4723
+ id: string;
4721
4724
  createdAt?: number | undefined;
4722
4725
  input?: string | undefined;
4723
4726
  output?: string | undefined;
@@ -4793,13 +4796,13 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4793
4796
  metadata?: Record<string, unknown> | undefined;
4794
4797
  updatedAt?: number | undefined;
4795
4798
  }, {
4796
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
4799
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
4797
4800
  conversationId: string;
4798
4801
  id: string;
4799
4802
  createdAt: number;
4800
- error?: string | undefined;
4801
4803
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4802
4804
  role?: "user" | "assistant" | "system" | undefined;
4805
+ error?: string | undefined;
4803
4806
  content?: {
4804
4807
  type: "text" | "image";
4805
4808
  data?: string | undefined;
@@ -4815,8 +4818,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4815
4818
  }[] | undefined;
4816
4819
  isStreaming?: boolean | undefined;
4817
4820
  toolCall?: {
4818
- id: string;
4819
4821
  name: string;
4822
+ id: string;
4820
4823
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4821
4824
  createdAt?: number | undefined;
4822
4825
  input?: string | undefined;
@@ -4897,9 +4900,9 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4897
4900
  }, "strip", z.ZodTypeAny, {
4898
4901
  conversations: {
4899
4902
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4900
- id: string;
4901
4903
  provider: "custom" | "claude" | "codex";
4902
4904
  cwd: string;
4905
+ id: string;
4903
4906
  createdAt: number;
4904
4907
  archived: boolean;
4905
4908
  lastActivityAt: number;
@@ -4908,17 +4911,17 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4908
4911
  model?: string | undefined;
4909
4912
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4910
4913
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4911
- collaborationMode?: "default" | "plan" | undefined;
4914
+ collaborationMode?: "plan" | "default" | undefined;
4912
4915
  lastMessagePreview?: string | undefined;
4913
4916
  }[];
4914
4917
  items: {
4915
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
4918
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
4916
4919
  conversationId: string;
4917
4920
  id: string;
4918
4921
  createdAt: number;
4919
- error?: string | undefined;
4920
4922
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4921
4923
  role?: "user" | "assistant" | "system" | undefined;
4924
+ error?: string | undefined;
4922
4925
  content?: {
4923
4926
  type: "text" | "image";
4924
4927
  data?: string | undefined;
@@ -4935,8 +4938,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4935
4938
  isStreaming?: boolean | undefined;
4936
4939
  toolCall?: {
4937
4940
  status: "running" | "pending" | "completed" | "failed";
4938
- id: string;
4939
4941
  name: string;
4942
+ id: string;
4940
4943
  createdAt?: number | undefined;
4941
4944
  input?: string | undefined;
4942
4945
  output?: string | undefined;
@@ -5017,8 +5020,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
5017
5020
  }, {
5018
5021
  machineId?: string | undefined;
5019
5022
  conversations?: {
5020
- id: string;
5021
5023
  cwd: string;
5024
+ id: string;
5022
5025
  createdAt: number;
5023
5026
  lastActivityAt: number;
5024
5027
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -5028,19 +5031,19 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
5028
5031
  model?: string | undefined;
5029
5032
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
5030
5033
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
5031
- collaborationMode?: "default" | "plan" | undefined;
5034
+ collaborationMode?: "plan" | "default" | undefined;
5032
5035
  archived?: boolean | undefined;
5033
5036
  lastMessagePreview?: string | undefined;
5034
5037
  }[] | undefined;
5035
5038
  activeConversationId?: string | undefined;
5036
5039
  items?: {
5037
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
5040
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
5038
5041
  conversationId: string;
5039
5042
  id: string;
5040
5043
  createdAt: number;
5041
- error?: string | undefined;
5042
5044
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5043
5045
  role?: "user" | "assistant" | "system" | undefined;
5046
+ error?: string | undefined;
5044
5047
  content?: {
5045
5048
  type: "text" | "image";
5046
5049
  data?: string | undefined;
@@ -5056,8 +5059,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
5056
5059
  }[] | undefined;
5057
5060
  isStreaming?: boolean | undefined;
5058
5061
  toolCall?: {
5059
- id: string;
5060
5062
  name: string;
5063
+ id: string;
5061
5064
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5062
5065
  createdAt?: number | undefined;
5063
5066
  input?: string | undefined;
@@ -5154,9 +5157,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5154
5157
  createdAt: z.ZodNumber;
5155
5158
  }, "strip", z.ZodTypeAny, {
5156
5159
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
5157
- id: string;
5158
5160
  provider: "custom" | "claude" | "codex";
5159
5161
  cwd: string;
5162
+ id: string;
5160
5163
  createdAt: number;
5161
5164
  archived: boolean;
5162
5165
  lastActivityAt: number;
@@ -5165,11 +5168,11 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5165
5168
  model?: string | undefined;
5166
5169
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
5167
5170
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
5168
- collaborationMode?: "default" | "plan" | undefined;
5171
+ collaborationMode?: "plan" | "default" | undefined;
5169
5172
  lastMessagePreview?: string | undefined;
5170
5173
  }, {
5171
- id: string;
5172
5174
  cwd: string;
5175
+ id: string;
5173
5176
  createdAt: number;
5174
5177
  lastActivityAt: number;
5175
5178
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -5179,7 +5182,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5179
5182
  model?: string | undefined;
5180
5183
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
5181
5184
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
5182
- collaborationMode?: "default" | "plan" | undefined;
5185
+ collaborationMode?: "plan" | "default" | undefined;
5183
5186
  archived?: boolean | undefined;
5184
5187
  lastMessagePreview?: string | undefined;
5185
5188
  }>>;
@@ -5217,14 +5220,14 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5217
5220
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
5218
5221
  }, "strip", z.ZodTypeAny, {
5219
5222
  status: "running" | "pending" | "completed" | "failed";
5220
- id: string;
5221
5223
  name: string;
5224
+ id: string;
5222
5225
  createdAt?: number | undefined;
5223
5226
  input?: string | undefined;
5224
5227
  output?: string | undefined;
5225
5228
  }, {
5226
- id: string;
5227
5229
  name: string;
5230
+ id: string;
5228
5231
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5229
5232
  createdAt?: number | undefined;
5230
5233
  input?: string | undefined;
@@ -5510,13 +5513,13 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5510
5513
  updatedAt: z.ZodOptional<z.ZodNumber>;
5511
5514
  isStreaming: z.ZodOptional<z.ZodBoolean>;
5512
5515
  }, "strip", z.ZodTypeAny, {
5513
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
5516
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
5514
5517
  conversationId: string;
5515
5518
  id: string;
5516
5519
  createdAt: number;
5517
- error?: string | undefined;
5518
5520
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5519
5521
  role?: "user" | "assistant" | "system" | undefined;
5522
+ error?: string | undefined;
5520
5523
  content?: {
5521
5524
  type: "text" | "image";
5522
5525
  data?: string | undefined;
@@ -5533,8 +5536,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5533
5536
  isStreaming?: boolean | undefined;
5534
5537
  toolCall?: {
5535
5538
  status: "running" | "pending" | "completed" | "failed";
5536
- id: string;
5537
5539
  name: string;
5540
+ id: string;
5538
5541
  createdAt?: number | undefined;
5539
5542
  input?: string | undefined;
5540
5543
  output?: string | undefined;
@@ -5610,13 +5613,13 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5610
5613
  metadata?: Record<string, unknown> | undefined;
5611
5614
  updatedAt?: number | undefined;
5612
5615
  }, {
5613
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
5616
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
5614
5617
  conversationId: string;
5615
5618
  id: string;
5616
5619
  createdAt: number;
5617
- error?: string | undefined;
5618
5620
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5619
5621
  role?: "user" | "assistant" | "system" | undefined;
5622
+ error?: string | undefined;
5620
5623
  content?: {
5621
5624
  type: "text" | "image";
5622
5625
  data?: string | undefined;
@@ -5632,8 +5635,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5632
5635
  }[] | undefined;
5633
5636
  isStreaming?: boolean | undefined;
5634
5637
  toolCall?: {
5635
- id: string;
5636
5638
  name: string;
5639
+ id: string;
5637
5640
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5638
5641
  createdAt?: number | undefined;
5639
5642
  input?: string | undefined;
@@ -5742,14 +5745,14 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5742
5745
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
5743
5746
  }, "strip", z.ZodTypeAny, {
5744
5747
  status: "running" | "pending" | "completed" | "failed";
5745
- id: string;
5746
5748
  name: string;
5749
+ id: string;
5747
5750
  createdAt?: number | undefined;
5748
5751
  input?: string | undefined;
5749
5752
  output?: string | undefined;
5750
5753
  }, {
5751
- id: string;
5752
5754
  name: string;
5755
+ id: string;
5753
5756
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5754
5757
  createdAt?: number | undefined;
5755
5758
  input?: string | undefined;
@@ -6034,9 +6037,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6034
6037
  isStreaming: z.ZodOptional<z.ZodBoolean>;
6035
6038
  }, "strip", z.ZodTypeAny, {
6036
6039
  itemId: string;
6037
- error?: string | undefined;
6038
6040
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6039
6041
  role?: "user" | "assistant" | "system" | undefined;
6042
+ error?: string | undefined;
6040
6043
  content?: {
6041
6044
  type: "text" | "image";
6042
6045
  data?: string | undefined;
@@ -6053,8 +6056,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6053
6056
  isStreaming?: boolean | undefined;
6054
6057
  toolCall?: {
6055
6058
  status: "running" | "pending" | "completed" | "failed";
6056
- id: string;
6057
6059
  name: string;
6060
+ id: string;
6058
6061
  createdAt?: number | undefined;
6059
6062
  input?: string | undefined;
6060
6063
  output?: string | undefined;
@@ -6130,9 +6133,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6130
6133
  textDelta?: string | undefined;
6131
6134
  }, {
6132
6135
  itemId: string;
6133
- error?: string | undefined;
6134
6136
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6135
6137
  role?: "user" | "assistant" | "system" | undefined;
6138
+ error?: string | undefined;
6136
6139
  content?: {
6137
6140
  type: "text" | "image";
6138
6141
  data?: string | undefined;
@@ -6148,8 +6151,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6148
6151
  }[] | undefined;
6149
6152
  isStreaming?: boolean | undefined;
6150
6153
  toolCall?: {
6151
- id: string;
6152
6154
  name: string;
6155
+ id: string;
6153
6156
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6154
6157
  createdAt?: number | undefined;
6155
6158
  input?: string | undefined;
@@ -6229,9 +6232,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6229
6232
  conversationId: string;
6230
6233
  conversation?: {
6231
6234
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
6232
- id: string;
6233
6235
  provider: "custom" | "claude" | "codex";
6234
6236
  cwd: string;
6237
+ id: string;
6235
6238
  createdAt: number;
6236
6239
  archived: boolean;
6237
6240
  lastActivityAt: number;
@@ -6240,17 +6243,17 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6240
6243
  model?: string | undefined;
6241
6244
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
6242
6245
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
6243
- collaborationMode?: "default" | "plan" | undefined;
6246
+ collaborationMode?: "plan" | "default" | undefined;
6244
6247
  lastMessagePreview?: string | undefined;
6245
6248
  } | undefined;
6246
6249
  item?: {
6247
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
6250
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
6248
6251
  conversationId: string;
6249
6252
  id: string;
6250
6253
  createdAt: number;
6251
- error?: string | undefined;
6252
6254
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6253
6255
  role?: "user" | "assistant" | "system" | undefined;
6256
+ error?: string | undefined;
6254
6257
  content?: {
6255
6258
  type: "text" | "image";
6256
6259
  data?: string | undefined;
@@ -6267,8 +6270,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6267
6270
  isStreaming?: boolean | undefined;
6268
6271
  toolCall?: {
6269
6272
  status: "running" | "pending" | "completed" | "failed";
6270
- id: string;
6271
6273
  name: string;
6274
+ id: string;
6272
6275
  createdAt?: number | undefined;
6273
6276
  input?: string | undefined;
6274
6277
  output?: string | undefined;
@@ -6346,9 +6349,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6346
6349
  } | undefined;
6347
6350
  patch?: {
6348
6351
  itemId: string;
6349
- error?: string | undefined;
6350
6352
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6351
6353
  role?: "user" | "assistant" | "system" | undefined;
6354
+ error?: string | undefined;
6352
6355
  content?: {
6353
6356
  type: "text" | "image";
6354
6357
  data?: string | undefined;
@@ -6365,8 +6368,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6365
6368
  isStreaming?: boolean | undefined;
6366
6369
  toolCall?: {
6367
6370
  status: "running" | "pending" | "completed" | "failed";
6368
- id: string;
6369
6371
  name: string;
6372
+ id: string;
6370
6373
  createdAt?: number | undefined;
6371
6374
  input?: string | undefined;
6372
6375
  output?: string | undefined;
@@ -6444,8 +6447,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6444
6447
  }, {
6445
6448
  conversationId: string;
6446
6449
  conversation?: {
6447
- id: string;
6448
6450
  cwd: string;
6451
+ id: string;
6449
6452
  createdAt: number;
6450
6453
  lastActivityAt: number;
6451
6454
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -6455,18 +6458,18 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6455
6458
  model?: string | undefined;
6456
6459
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
6457
6460
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
6458
- collaborationMode?: "default" | "plan" | undefined;
6461
+ collaborationMode?: "plan" | "default" | undefined;
6459
6462
  archived?: boolean | undefined;
6460
6463
  lastMessagePreview?: string | undefined;
6461
6464
  } | undefined;
6462
6465
  item?: {
6463
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
6466
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
6464
6467
  conversationId: string;
6465
6468
  id: string;
6466
6469
  createdAt: number;
6467
- error?: string | undefined;
6468
6470
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6469
6471
  role?: "user" | "assistant" | "system" | undefined;
6472
+ error?: string | undefined;
6470
6473
  content?: {
6471
6474
  type: "text" | "image";
6472
6475
  data?: string | undefined;
@@ -6482,8 +6485,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6482
6485
  }[] | undefined;
6483
6486
  isStreaming?: boolean | undefined;
6484
6487
  toolCall?: {
6485
- id: string;
6486
6488
  name: string;
6489
+ id: string;
6487
6490
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6488
6491
  createdAt?: number | undefined;
6489
6492
  input?: string | undefined;
@@ -6562,9 +6565,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6562
6565
  } | undefined;
6563
6566
  patch?: {
6564
6567
  itemId: string;
6565
- error?: string | undefined;
6566
6568
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6567
6569
  role?: "user" | "assistant" | "system" | undefined;
6570
+ error?: string | undefined;
6568
6571
  content?: {
6569
6572
  type: "text" | "image";
6570
6573
  data?: string | undefined;
@@ -6580,8 +6583,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6580
6583
  }[] | undefined;
6581
6584
  isStreaming?: boolean | undefined;
6582
6585
  toolCall?: {
6583
- id: string;
6584
6586
  name: string;
6587
+ id: string;
6585
6588
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6586
6589
  createdAt?: number | undefined;
6587
6590
  input?: string | undefined;
@@ -6712,14 +6715,14 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6712
6715
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
6713
6716
  }, "strip", z.ZodTypeAny, {
6714
6717
  status: "running" | "pending" | "completed" | "failed";
6715
- id: string;
6716
6718
  name: string;
6719
+ id: string;
6717
6720
  createdAt?: number | undefined;
6718
6721
  input?: string | undefined;
6719
6722
  output?: string | undefined;
6720
6723
  }, {
6721
- id: string;
6722
6724
  name: string;
6725
+ id: string;
6723
6726
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6724
6727
  createdAt?: number | undefined;
6725
6728
  input?: string | undefined;
@@ -7005,13 +7008,13 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7005
7008
  updatedAt: z.ZodOptional<z.ZodNumber>;
7006
7009
  isStreaming: z.ZodOptional<z.ZodBoolean>;
7007
7010
  }, "strip", z.ZodTypeAny, {
7008
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
7011
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7009
7012
  conversationId: string;
7010
7013
  id: string;
7011
7014
  createdAt: number;
7012
- error?: string | undefined;
7013
7015
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7014
7016
  role?: "user" | "assistant" | "system" | undefined;
7017
+ error?: string | undefined;
7015
7018
  content?: {
7016
7019
  type: "text" | "image";
7017
7020
  data?: string | undefined;
@@ -7028,8 +7031,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7028
7031
  isStreaming?: boolean | undefined;
7029
7032
  toolCall?: {
7030
7033
  status: "running" | "pending" | "completed" | "failed";
7031
- id: string;
7032
7034
  name: string;
7035
+ id: string;
7033
7036
  createdAt?: number | undefined;
7034
7037
  input?: string | undefined;
7035
7038
  output?: string | undefined;
@@ -7105,13 +7108,13 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7105
7108
  metadata?: Record<string, unknown> | undefined;
7106
7109
  updatedAt?: number | undefined;
7107
7110
  }, {
7108
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
7111
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7109
7112
  conversationId: string;
7110
7113
  id: string;
7111
7114
  createdAt: number;
7112
- error?: string | undefined;
7113
7115
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7114
7116
  role?: "user" | "assistant" | "system" | undefined;
7117
+ error?: string | undefined;
7115
7118
  content?: {
7116
7119
  type: "text" | "image";
7117
7120
  data?: string | undefined;
@@ -7127,8 +7130,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7127
7130
  }[] | undefined;
7128
7131
  isStreaming?: boolean | undefined;
7129
7132
  toolCall?: {
7130
- id: string;
7131
7133
  name: string;
7134
+ id: string;
7132
7135
  status?: "running" | "pending" | "completed" | "failed" | undefined;
7133
7136
  createdAt?: number | undefined;
7134
7137
  input?: string | undefined;
@@ -7217,13 +7220,13 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7217
7220
  toolInput?: string | undefined;
7218
7221
  context?: string | undefined;
7219
7222
  item?: {
7220
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
7223
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7221
7224
  conversationId: string;
7222
7225
  id: string;
7223
7226
  createdAt: number;
7224
- error?: string | undefined;
7225
7227
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7226
7228
  role?: "user" | "assistant" | "system" | undefined;
7229
+ error?: string | undefined;
7227
7230
  content?: {
7228
7231
  type: "text" | "image";
7229
7232
  data?: string | undefined;
@@ -7240,8 +7243,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7240
7243
  isStreaming?: boolean | undefined;
7241
7244
  toolCall?: {
7242
7245
  status: "running" | "pending" | "completed" | "failed";
7243
- id: string;
7244
7246
  name: string;
7247
+ id: string;
7245
7248
  createdAt?: number | undefined;
7246
7249
  input?: string | undefined;
7247
7250
  output?: string | undefined;
@@ -7329,13 +7332,13 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7329
7332
  toolInput?: string | undefined;
7330
7333
  context?: string | undefined;
7331
7334
  item?: {
7332
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
7335
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7333
7336
  conversationId: string;
7334
7337
  id: string;
7335
7338
  createdAt: number;
7336
- error?: string | undefined;
7337
7339
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7338
7340
  role?: "user" | "assistant" | "system" | undefined;
7341
+ error?: string | undefined;
7339
7342
  content?: {
7340
7343
  type: "text" | "image";
7341
7344
  data?: string | undefined;
@@ -7351,8 +7354,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7351
7354
  }[] | undefined;
7352
7355
  isStreaming?: boolean | undefined;
7353
7356
  toolCall?: {
7354
- id: string;
7355
7357
  name: string;
7358
+ id: string;
7356
7359
  status?: "running" | "pending" | "completed" | "failed" | undefined;
7357
7360
  createdAt?: number | undefined;
7358
7361
  input?: string | undefined;
@@ -7438,13 +7441,13 @@ export declare const agentV2NoticePayloadSchema: z.ZodObject<{
7438
7441
  durationMs: z.ZodOptional<z.ZodNumber>;
7439
7442
  }, "strip", z.ZodTypeAny, {
7440
7443
  title: string;
7441
- kind: "info" | "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "warning";
7444
+ kind: "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "info" | "warning";
7442
7445
  conversationId?: string | undefined;
7443
7446
  detail?: string | undefined;
7444
7447
  durationMs?: number | undefined;
7445
7448
  }, {
7446
7449
  title: string;
7447
- kind: "info" | "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "warning";
7450
+ kind: "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "info" | "warning";
7448
7451
  conversationId?: string | undefined;
7449
7452
  detail?: string | undefined;
7450
7453
  durationMs?: number | undefined;
@@ -7498,14 +7501,14 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
7498
7501
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
7499
7502
  }, "strip", z.ZodTypeAny, {
7500
7503
  status: "running" | "pending" | "completed" | "failed";
7501
- id: string;
7502
7504
  name: string;
7505
+ id: string;
7503
7506
  createdAt?: number | undefined;
7504
7507
  input?: string | undefined;
7505
7508
  output?: string | undefined;
7506
7509
  }, {
7507
- id: string;
7508
7510
  name: string;
7511
+ id: string;
7509
7512
  status?: "running" | "pending" | "completed" | "failed" | undefined;
7510
7513
  createdAt?: number | undefined;
7511
7514
  input?: string | undefined;
@@ -7791,13 +7794,13 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
7791
7794
  updatedAt: z.ZodOptional<z.ZodNumber>;
7792
7795
  isStreaming: z.ZodOptional<z.ZodBoolean>;
7793
7796
  }, "strip", z.ZodTypeAny, {
7794
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
7797
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7795
7798
  conversationId: string;
7796
7799
  id: string;
7797
7800
  createdAt: number;
7798
- error?: string | undefined;
7799
7801
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7800
7802
  role?: "user" | "assistant" | "system" | undefined;
7803
+ error?: string | undefined;
7801
7804
  content?: {
7802
7805
  type: "text" | "image";
7803
7806
  data?: string | undefined;
@@ -7814,8 +7817,8 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
7814
7817
  isStreaming?: boolean | undefined;
7815
7818
  toolCall?: {
7816
7819
  status: "running" | "pending" | "completed" | "failed";
7817
- id: string;
7818
7820
  name: string;
7821
+ id: string;
7819
7822
  createdAt?: number | undefined;
7820
7823
  input?: string | undefined;
7821
7824
  output?: string | undefined;
@@ -7891,13 +7894,13 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
7891
7894
  metadata?: Record<string, unknown> | undefined;
7892
7895
  updatedAt?: number | undefined;
7893
7896
  }, {
7894
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
7897
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7895
7898
  conversationId: string;
7896
7899
  id: string;
7897
7900
  createdAt: number;
7898
- error?: string | undefined;
7899
7901
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7900
7902
  role?: "user" | "assistant" | "system" | undefined;
7903
+ error?: string | undefined;
7901
7904
  content?: {
7902
7905
  type: "text" | "image";
7903
7906
  data?: string | undefined;
@@ -7913,8 +7916,8 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
7913
7916
  }[] | undefined;
7914
7917
  isStreaming?: boolean | undefined;
7915
7918
  toolCall?: {
7916
- id: string;
7917
7919
  name: string;
7920
+ id: string;
7918
7921
  status?: "running" | "pending" | "completed" | "failed" | undefined;
7919
7922
  createdAt?: number | undefined;
7920
7923
  input?: string | undefined;
@@ -7996,13 +7999,13 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
7996
7999
  }, "strip", z.ZodTypeAny, {
7997
8000
  conversationId: string;
7998
8001
  items: {
7999
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
8002
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
8000
8003
  conversationId: string;
8001
8004
  id: string;
8002
8005
  createdAt: number;
8003
- error?: string | undefined;
8004
8006
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
8005
8007
  role?: "user" | "assistant" | "system" | undefined;
8008
+ error?: string | undefined;
8006
8009
  content?: {
8007
8010
  type: "text" | "image";
8008
8011
  data?: string | undefined;
@@ -8019,8 +8022,8 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
8019
8022
  isStreaming?: boolean | undefined;
8020
8023
  toolCall?: {
8021
8024
  status: "running" | "pending" | "completed" | "failed";
8022
- id: string;
8023
8025
  name: string;
8026
+ id: string;
8024
8027
  createdAt?: number | undefined;
8025
8028
  input?: string | undefined;
8026
8029
  output?: string | undefined;
@@ -8101,13 +8104,13 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
8101
8104
  }, {
8102
8105
  conversationId: string;
8103
8106
  items?: {
8104
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
8107
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
8105
8108
  conversationId: string;
8106
8109
  id: string;
8107
8110
  createdAt: number;
8108
- error?: string | undefined;
8109
8111
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
8110
8112
  role?: "user" | "assistant" | "system" | undefined;
8113
+ error?: string | undefined;
8111
8114
  content?: {
8112
8115
  type: "text" | "image";
8113
8116
  data?: string | undefined;
@@ -8123,8 +8126,8 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
8123
8126
  }[] | undefined;
8124
8127
  isStreaming?: boolean | undefined;
8125
8128
  toolCall?: {
8126
- id: string;
8127
8129
  name: string;
8130
+ id: string;
8128
8131
  status?: "running" | "pending" | "completed" | "failed" | undefined;
8129
8132
  createdAt?: number | undefined;
8130
8133
  input?: string | undefined;
@@ -8458,8 +8461,8 @@ export declare const protocolMessageSchemas: {
8458
8461
  error?: string | undefined;
8459
8462
  }, {
8460
8463
  active: boolean;
8461
- error?: string | undefined;
8462
8464
  mode?: "webrtc" | "fallback" | "off" | undefined;
8465
+ error?: string | undefined;
8463
8466
  }>;
8464
8467
  readonly "screen.offer": z.ZodObject<{
8465
8468
  sdp: z.ZodString;
@@ -8609,8 +8612,8 @@ export declare const protocolMessageSchemas: {
8609
8612
  size?: number | undefined;
8610
8613
  modifiedAt?: string | undefined;
8611
8614
  }[];
8612
- error?: string | undefined;
8613
8615
  requestId?: string | undefined;
8616
+ error?: string | undefined;
8614
8617
  }, {
8615
8618
  path: string;
8616
8619
  entries: {
@@ -8620,8 +8623,8 @@ export declare const protocolMessageSchemas: {
8620
8623
  size?: number | undefined;
8621
8624
  modifiedAt?: string | undefined;
8622
8625
  }[];
8623
- error?: string | undefined;
8624
8626
  requestId?: string | undefined;
8627
+ error?: string | undefined;
8625
8628
  }>;
8626
8629
  readonly "terminal.file.read": z.ZodObject<{
8627
8630
  path: z.ZodString;
@@ -8649,14 +8652,14 @@ export declare const protocolMessageSchemas: {
8649
8652
  encoding: "utf8";
8650
8653
  content: string;
8651
8654
  truncated: boolean;
8652
- error?: string | undefined;
8653
8655
  requestId?: string | undefined;
8656
+ error?: string | undefined;
8654
8657
  size?: number | undefined;
8655
8658
  }, {
8656
8659
  path: string;
8657
- error?: string | undefined;
8658
8660
  requestId?: string | undefined;
8659
8661
  encoding?: "utf8" | undefined;
8662
+ error?: string | undefined;
8660
8663
  size?: number | undefined;
8661
8664
  content?: string | undefined;
8662
8665
  truncated?: boolean | undefined;
@@ -8677,6 +8680,7 @@ export declare const protocolMessageSchemas: {
8677
8680
  }>;
8678
8681
  readonly "terminal.status": z.ZodObject<{
8679
8682
  phase: z.ZodEnum<["thinking", "tool_use", "outputting", "waiting", "idle", "error"]>;
8683
+ provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
8680
8684
  seq: z.ZodOptional<z.ZodNumber>;
8681
8685
  toolName: z.ZodOptional<z.ZodString>;
8682
8686
  toolInput: z.ZodOptional<z.ZodString>;
@@ -8690,16 +8694,16 @@ export declare const protocolMessageSchemas: {
8690
8694
  timestamp: z.ZodNumber;
8691
8695
  }, "strip", z.ZodTypeAny, {
8692
8696
  requestId: string;
8693
- timestamp: number;
8694
8697
  toolName: string;
8695
8698
  toolInput: string;
8696
8699
  permissionRequest: string;
8700
+ timestamp: number;
8697
8701
  }, {
8698
8702
  requestId: string;
8699
- timestamp: number;
8700
8703
  toolName: string;
8701
8704
  toolInput: string;
8702
8705
  permissionRequest: string;
8706
+ timestamp: number;
8703
8707
  }>>;
8704
8708
  permissionResolution: z.ZodOptional<z.ZodObject<{
8705
8709
  requestId: z.ZodString;
@@ -8721,18 +8725,19 @@ export declare const protocolMessageSchemas: {
8721
8725
  machineId: z.ZodOptional<z.ZodString>;
8722
8726
  }, "strip", z.ZodTypeAny, {
8723
8727
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
8724
- seq?: number | undefined;
8728
+ provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
8725
8729
  machineId?: string | undefined;
8730
+ seq?: number | undefined;
8726
8731
  toolName?: string | undefined;
8727
8732
  toolInput?: string | undefined;
8728
8733
  permissionRequest?: string | undefined;
8729
8734
  summary?: string | undefined;
8730
8735
  topPermission?: {
8731
8736
  requestId: string;
8732
- timestamp: number;
8733
8737
  toolName: string;
8734
8738
  toolInput: string;
8735
8739
  permissionRequest: string;
8740
+ timestamp: number;
8736
8741
  } | undefined;
8737
8742
  permissionResolution?: {
8738
8743
  requestId: string;
@@ -8743,18 +8748,19 @@ export declare const protocolMessageSchemas: {
8743
8748
  pendingPermissionCount?: number | undefined;
8744
8749
  }, {
8745
8750
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
8746
- seq?: number | undefined;
8751
+ provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
8747
8752
  machineId?: string | undefined;
8753
+ seq?: number | undefined;
8748
8754
  toolName?: string | undefined;
8749
8755
  toolInput?: string | undefined;
8750
8756
  permissionRequest?: string | undefined;
8751
8757
  summary?: string | undefined;
8752
8758
  topPermission?: {
8753
8759
  requestId: string;
8754
- timestamp: number;
8755
8760
  toolName: string;
8756
8761
  toolInput: string;
8757
8762
  permissionRequest: string;
8763
+ timestamp: number;
8758
8764
  } | undefined;
8759
8765
  permissionResolution?: {
8760
8766
  requestId: string;
@@ -8804,19 +8810,19 @@ export declare const protocolMessageSchemas: {
8804
8810
  body: z.ZodNullable<z.ZodString>;
8805
8811
  port: z.ZodNumber;
8806
8812
  }, "strip", z.ZodTypeAny, {
8807
- headers: Record<string, string>;
8808
8813
  requestId: string;
8809
- port: number;
8814
+ body: string | null;
8810
8815
  method: string;
8811
8816
  url: string;
8812
- body: string | null;
8813
- }, {
8814
8817
  headers: Record<string, string>;
8815
- requestId: string;
8816
8818
  port: number;
8819
+ }, {
8820
+ requestId: string;
8821
+ body: string | null;
8817
8822
  method: string;
8818
8823
  url: string;
8819
- body: string | null;
8824
+ headers: Record<string, string>;
8825
+ port: number;
8820
8826
  }>;
8821
8827
  readonly "tunnel.response": z.ZodObject<{
8822
8828
  requestId: z.ZodString;
@@ -8825,16 +8831,16 @@ export declare const protocolMessageSchemas: {
8825
8831
  body: z.ZodString;
8826
8832
  isFinal: z.ZodBoolean;
8827
8833
  }, "strip", z.ZodTypeAny, {
8828
- headers: Record<string, string>;
8829
8834
  requestId: string;
8830
- isFinal: boolean;
8831
8835
  body: string;
8836
+ isFinal: boolean;
8837
+ headers: Record<string, string>;
8832
8838
  statusCode: number;
8833
8839
  }, {
8834
- headers: Record<string, string>;
8835
8840
  requestId: string;
8836
- isFinal: boolean;
8837
8841
  body: string;
8842
+ isFinal: boolean;
8843
+ headers: Record<string, string>;
8838
8844
  statusCode: number;
8839
8845
  }>;
8840
8846
  readonly "tunnel.ws.data": z.ZodObject<{
@@ -8921,9 +8927,9 @@ export declare const protocolMessageSchemas: {
8921
8927
  disabledReason: z.ZodOptional<z.ZodString>;
8922
8928
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
8923
8929
  }, "strip", z.ZodTypeAny, {
8924
- id: string;
8925
8930
  name: string;
8926
8931
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
8932
+ id: string;
8927
8933
  title: string;
8928
8934
  argsMode: "none" | "optional" | "required" | "raw";
8929
8935
  executionKind: "prompt" | "native" | "local_ui";
@@ -8934,8 +8940,8 @@ export declare const protocolMessageSchemas: {
8934
8940
  destructive?: boolean | undefined;
8935
8941
  disabledReason?: string | undefined;
8936
8942
  }, {
8937
- id: string;
8938
8943
  name: string;
8944
+ id: string;
8939
8945
  title: string;
8940
8946
  provider?: "custom" | "claude" | "codex" | undefined;
8941
8947
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -8963,8 +8969,8 @@ export declare const protocolMessageSchemas: {
8963
8969
  currentMode: z.ZodOptional<z.ZodString>;
8964
8970
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
8965
8971
  }, "strip", z.ZodTypeAny, {
8966
- id: "custom" | "claude" | "codex";
8967
8972
  enabled: boolean;
8973
+ id: "custom" | "claude" | "codex";
8968
8974
  label: string;
8969
8975
  reason?: string | undefined;
8970
8976
  supportsImages?: boolean | undefined;
@@ -8979,9 +8985,9 @@ export declare const protocolMessageSchemas: {
8979
8985
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8980
8986
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8981
8987
  commands?: {
8982
- id: string;
8983
8988
  name: string;
8984
8989
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
8990
+ id: string;
8985
8991
  title: string;
8986
8992
  argsMode: "none" | "optional" | "required" | "raw";
8987
8993
  executionKind: "prompt" | "native" | "local_ui";
@@ -9000,8 +9006,8 @@ export declare const protocolMessageSchemas: {
9000
9006
  currentMode?: string | undefined;
9001
9007
  features?: Record<string, boolean> | undefined;
9002
9008
  }, {
9003
- id: "custom" | "claude" | "codex";
9004
9009
  enabled: boolean;
9010
+ id: "custom" | "claude" | "codex";
9005
9011
  label: string;
9006
9012
  reason?: string | undefined;
9007
9013
  supportsImages?: boolean | undefined;
@@ -9016,8 +9022,8 @@ export declare const protocolMessageSchemas: {
9016
9022
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9017
9023
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9018
9024
  commands?: {
9019
- id: string;
9020
9025
  name: string;
9026
+ id: string;
9021
9027
  title: string;
9022
9028
  provider?: "custom" | "claude" | "codex" | undefined;
9023
9029
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -9055,13 +9061,13 @@ export declare const protocolMessageSchemas: {
9055
9061
  supportsSessionList: boolean;
9056
9062
  supportsSessionLoad: boolean;
9057
9063
  supportsAudio: boolean;
9058
- error?: string | undefined;
9059
9064
  provider?: "custom" | "claude" | "codex" | undefined;
9060
9065
  protocolVersion?: number | undefined;
9061
9066
  machineId?: string | undefined;
9067
+ error?: string | undefined;
9062
9068
  providers?: {
9063
- id: "custom" | "claude" | "codex";
9064
9069
  enabled: boolean;
9070
+ id: "custom" | "claude" | "codex";
9065
9071
  label: string;
9066
9072
  reason?: string | undefined;
9067
9073
  supportsImages?: boolean | undefined;
@@ -9076,9 +9082,9 @@ export declare const protocolMessageSchemas: {
9076
9082
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9077
9083
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9078
9084
  commands?: {
9079
- id: string;
9080
9085
  name: string;
9081
9086
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
9087
+ id: string;
9082
9088
  title: string;
9083
9089
  argsMode: "none" | "optional" | "required" | "raw";
9084
9090
  executionKind: "prompt" | "native" | "local_ui";
@@ -9099,17 +9105,17 @@ export declare const protocolMessageSchemas: {
9099
9105
  }[] | undefined;
9100
9106
  }, {
9101
9107
  enabled: boolean;
9102
- error?: string | undefined;
9103
9108
  provider?: "custom" | "claude" | "codex" | undefined;
9104
9109
  protocolVersion?: number | undefined;
9105
9110
  machineId?: string | undefined;
9111
+ error?: string | undefined;
9106
9112
  supportsImages?: boolean | undefined;
9107
9113
  supportsPermission?: boolean | undefined;
9108
9114
  supportsPlan?: boolean | undefined;
9109
9115
  supportsCancel?: boolean | undefined;
9110
9116
  providers?: {
9111
- id: "custom" | "claude" | "codex";
9112
9117
  enabled: boolean;
9118
+ id: "custom" | "claude" | "codex";
9113
9119
  label: string;
9114
9120
  reason?: string | undefined;
9115
9121
  supportsImages?: boolean | undefined;
@@ -9124,8 +9130,8 @@ export declare const protocolMessageSchemas: {
9124
9130
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9125
9131
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9126
9132
  commands?: {
9127
- id: string;
9128
9133
  name: string;
9134
+ id: string;
9129
9135
  title: string;
9130
9136
  provider?: "custom" | "claude" | "codex" | undefined;
9131
9137
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -9237,15 +9243,15 @@ export declare const protocolMessageSchemas: {
9237
9243
  createdAt: z.ZodNumber;
9238
9244
  isStreaming: z.ZodOptional<z.ZodBoolean>;
9239
9245
  }, "strip", z.ZodTypeAny, {
9240
- id: string;
9241
9246
  role: "user" | "assistant" | "system";
9242
9247
  content: string;
9248
+ id: string;
9243
9249
  createdAt: number;
9244
9250
  isStreaming?: boolean | undefined;
9245
9251
  }, {
9246
- id: string;
9247
9252
  role: "user" | "assistant" | "system";
9248
9253
  content: string;
9254
+ id: string;
9249
9255
  createdAt: number;
9250
9256
  isStreaming?: boolean | undefined;
9251
9257
  }>>;
@@ -9259,14 +9265,14 @@ export declare const protocolMessageSchemas: {
9259
9265
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
9260
9266
  }, "strip", z.ZodTypeAny, {
9261
9267
  status: "running" | "pending" | "completed" | "failed";
9262
- id: string;
9263
9268
  name: string;
9269
+ id: string;
9264
9270
  createdAt?: number | undefined;
9265
9271
  input?: string | undefined;
9266
9272
  output?: string | undefined;
9267
9273
  }, {
9268
- id: string;
9269
9274
  name: string;
9275
+ id: string;
9270
9276
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9271
9277
  createdAt?: number | undefined;
9272
9278
  input?: string | undefined;
@@ -9288,17 +9294,17 @@ export declare const protocolMessageSchemas: {
9288
9294
  status: z.ZodOptional<z.ZodEnum<["idle", "running", "waiting_permission", "error"]>>;
9289
9295
  error: z.ZodOptional<z.ZodString>;
9290
9296
  }, "strip", z.ZodTypeAny, {
9291
- kind: "error" | "message" | "status" | "message_delta" | "tool_call" | "tool_result" | "plan";
9292
- error?: string | undefined;
9297
+ kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
9293
9298
  message?: {
9294
- id: string;
9295
9299
  role: "user" | "assistant" | "system";
9296
9300
  content: string;
9301
+ id: string;
9297
9302
  createdAt: number;
9298
9303
  isStreaming?: boolean | undefined;
9299
9304
  } | undefined;
9300
9305
  status?: "error" | "running" | "idle" | "waiting_permission" | undefined;
9301
9306
  agentSessionId?: string | undefined;
9307
+ error?: string | undefined;
9302
9308
  plan?: {
9303
9309
  status: "pending" | "completed" | "in_progress";
9304
9310
  id: string;
@@ -9307,24 +9313,24 @@ export declare const protocolMessageSchemas: {
9307
9313
  delta?: string | undefined;
9308
9314
  toolCall?: {
9309
9315
  status: "running" | "pending" | "completed" | "failed";
9310
- id: string;
9311
9316
  name: string;
9317
+ id: string;
9312
9318
  createdAt?: number | undefined;
9313
9319
  input?: string | undefined;
9314
9320
  output?: string | undefined;
9315
9321
  } | undefined;
9316
9322
  }, {
9317
- kind: "error" | "message" | "status" | "message_delta" | "tool_call" | "tool_result" | "plan";
9318
- error?: string | undefined;
9323
+ kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
9319
9324
  message?: {
9320
- id: string;
9321
9325
  role: "user" | "assistant" | "system";
9322
9326
  content: string;
9327
+ id: string;
9323
9328
  createdAt: number;
9324
9329
  isStreaming?: boolean | undefined;
9325
9330
  } | undefined;
9326
9331
  status?: "error" | "running" | "idle" | "waiting_permission" | undefined;
9327
9332
  agentSessionId?: string | undefined;
9333
+ error?: string | undefined;
9328
9334
  plan?: {
9329
9335
  status: "pending" | "completed" | "in_progress";
9330
9336
  id: string;
@@ -9332,8 +9338,8 @@ export declare const protocolMessageSchemas: {
9332
9338
  }[] | undefined;
9333
9339
  delta?: string | undefined;
9334
9340
  toolCall?: {
9335
- id: string;
9336
9341
  name: string;
9342
+ id: string;
9337
9343
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9338
9344
  createdAt?: number | undefined;
9339
9345
  input?: string | undefined;
@@ -9441,9 +9447,9 @@ export declare const protocolMessageSchemas: {
9441
9447
  disabledReason: z.ZodOptional<z.ZodString>;
9442
9448
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
9443
9449
  }, "strip", z.ZodTypeAny, {
9444
- id: string;
9445
9450
  name: string;
9446
9451
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
9452
+ id: string;
9447
9453
  title: string;
9448
9454
  argsMode: "none" | "optional" | "required" | "raw";
9449
9455
  executionKind: "prompt" | "native" | "local_ui";
@@ -9454,8 +9460,8 @@ export declare const protocolMessageSchemas: {
9454
9460
  destructive?: boolean | undefined;
9455
9461
  disabledReason?: string | undefined;
9456
9462
  }, {
9457
- id: string;
9458
9463
  name: string;
9464
+ id: string;
9459
9465
  title: string;
9460
9466
  provider?: "custom" | "claude" | "codex" | undefined;
9461
9467
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -9483,8 +9489,8 @@ export declare const protocolMessageSchemas: {
9483
9489
  currentMode: z.ZodOptional<z.ZodString>;
9484
9490
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
9485
9491
  }, "strip", z.ZodTypeAny, {
9486
- id: "custom" | "claude" | "codex";
9487
9492
  enabled: boolean;
9493
+ id: "custom" | "claude" | "codex";
9488
9494
  label: string;
9489
9495
  reason?: string | undefined;
9490
9496
  supportsImages?: boolean | undefined;
@@ -9499,9 +9505,9 @@ export declare const protocolMessageSchemas: {
9499
9505
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9500
9506
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9501
9507
  commands?: {
9502
- id: string;
9503
9508
  name: string;
9504
9509
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
9510
+ id: string;
9505
9511
  title: string;
9506
9512
  argsMode: "none" | "optional" | "required" | "raw";
9507
9513
  executionKind: "prompt" | "native" | "local_ui";
@@ -9520,8 +9526,8 @@ export declare const protocolMessageSchemas: {
9520
9526
  currentMode?: string | undefined;
9521
9527
  features?: Record<string, boolean> | undefined;
9522
9528
  }, {
9523
- id: "custom" | "claude" | "codex";
9524
9529
  enabled: boolean;
9530
+ id: "custom" | "claude" | "codex";
9525
9531
  label: string;
9526
9532
  reason?: string | undefined;
9527
9533
  supportsImages?: boolean | undefined;
@@ -9536,8 +9542,8 @@ export declare const protocolMessageSchemas: {
9536
9542
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9537
9543
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9538
9544
  commands?: {
9539
- id: string;
9540
9545
  name: string;
9546
+ id: string;
9541
9547
  title: string;
9542
9548
  provider?: "custom" | "claude" | "codex" | undefined;
9543
9549
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -9575,13 +9581,13 @@ export declare const protocolMessageSchemas: {
9575
9581
  supportsSessionList: boolean;
9576
9582
  supportsSessionLoad: boolean;
9577
9583
  supportsAudio: boolean;
9578
- error?: string | undefined;
9579
9584
  provider?: "custom" | "claude" | "codex" | undefined;
9580
9585
  protocolVersion?: number | undefined;
9581
9586
  machineId?: string | undefined;
9587
+ error?: string | undefined;
9582
9588
  providers?: {
9583
- id: "custom" | "claude" | "codex";
9584
9589
  enabled: boolean;
9590
+ id: "custom" | "claude" | "codex";
9585
9591
  label: string;
9586
9592
  reason?: string | undefined;
9587
9593
  supportsImages?: boolean | undefined;
@@ -9596,9 +9602,9 @@ export declare const protocolMessageSchemas: {
9596
9602
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9597
9603
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9598
9604
  commands?: {
9599
- id: string;
9600
9605
  name: string;
9601
9606
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
9607
+ id: string;
9602
9608
  title: string;
9603
9609
  argsMode: "none" | "optional" | "required" | "raw";
9604
9610
  executionKind: "prompt" | "native" | "local_ui";
@@ -9619,17 +9625,17 @@ export declare const protocolMessageSchemas: {
9619
9625
  }[] | undefined;
9620
9626
  }, {
9621
9627
  enabled: boolean;
9622
- error?: string | undefined;
9623
9628
  provider?: "custom" | "claude" | "codex" | undefined;
9624
9629
  protocolVersion?: number | undefined;
9625
9630
  machineId?: string | undefined;
9631
+ error?: string | undefined;
9626
9632
  supportsImages?: boolean | undefined;
9627
9633
  supportsPermission?: boolean | undefined;
9628
9634
  supportsPlan?: boolean | undefined;
9629
9635
  supportsCancel?: boolean | undefined;
9630
9636
  providers?: {
9631
- id: "custom" | "claude" | "codex";
9632
9637
  enabled: boolean;
9638
+ id: "custom" | "claude" | "codex";
9633
9639
  label: string;
9634
9640
  reason?: string | undefined;
9635
9641
  supportsImages?: boolean | undefined;
@@ -9644,8 +9650,8 @@ export declare const protocolMessageSchemas: {
9644
9650
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9645
9651
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9646
9652
  commands?: {
9647
- id: string;
9648
9653
  name: string;
9654
+ id: string;
9649
9655
  title: string;
9650
9656
  provider?: "custom" | "claude" | "codex" | undefined;
9651
9657
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -9676,15 +9682,15 @@ export declare const protocolMessageSchemas: {
9676
9682
  createdAt: z.ZodNumber;
9677
9683
  isStreaming: z.ZodOptional<z.ZodBoolean>;
9678
9684
  }, "strip", z.ZodTypeAny, {
9679
- id: string;
9680
9685
  role: "user" | "assistant" | "system";
9681
9686
  content: string;
9687
+ id: string;
9682
9688
  createdAt: number;
9683
9689
  isStreaming?: boolean | undefined;
9684
9690
  }, {
9685
- id: string;
9686
9691
  role: "user" | "assistant" | "system";
9687
9692
  content: string;
9693
+ id: string;
9688
9694
  createdAt: number;
9689
9695
  isStreaming?: boolean | undefined;
9690
9696
  }>, "many">>;
@@ -9697,14 +9703,14 @@ export declare const protocolMessageSchemas: {
9697
9703
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
9698
9704
  }, "strip", z.ZodTypeAny, {
9699
9705
  status: "running" | "pending" | "completed" | "failed";
9700
- id: string;
9701
9706
  name: string;
9707
+ id: string;
9702
9708
  createdAt?: number | undefined;
9703
9709
  input?: string | undefined;
9704
9710
  output?: string | undefined;
9705
9711
  }, {
9706
- id: string;
9707
9712
  name: string;
9713
+ id: string;
9708
9714
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9709
9715
  createdAt?: number | undefined;
9710
9716
  input?: string | undefined;
@@ -9754,16 +9760,16 @@ export declare const protocolMessageSchemas: {
9754
9760
  }, "strip", z.ZodTypeAny, {
9755
9761
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
9756
9762
  messages: {
9757
- id: string;
9758
9763
  role: "user" | "assistant" | "system";
9759
9764
  content: string;
9765
+ id: string;
9760
9766
  createdAt: number;
9761
9767
  isStreaming?: boolean | undefined;
9762
9768
  }[];
9763
9769
  toolCalls: {
9764
9770
  status: "running" | "pending" | "completed" | "failed";
9765
- id: string;
9766
9771
  name: string;
9772
+ id: string;
9767
9773
  createdAt?: number | undefined;
9768
9774
  input?: string | undefined;
9769
9775
  output?: string | undefined;
@@ -9779,8 +9785,8 @@ export declare const protocolMessageSchemas: {
9779
9785
  toolInput?: string | undefined;
9780
9786
  context?: string | undefined;
9781
9787
  }[];
9782
- error?: string | undefined;
9783
9788
  agentSessionId?: string | undefined;
9789
+ error?: string | undefined;
9784
9790
  capabilities?: {
9785
9791
  enabled: boolean;
9786
9792
  supportsImages: boolean;
@@ -9790,13 +9796,13 @@ export declare const protocolMessageSchemas: {
9790
9796
  supportsSessionList: boolean;
9791
9797
  supportsSessionLoad: boolean;
9792
9798
  supportsAudio: boolean;
9793
- error?: string | undefined;
9794
9799
  provider?: "custom" | "claude" | "codex" | undefined;
9795
9800
  protocolVersion?: number | undefined;
9796
9801
  machineId?: string | undefined;
9802
+ error?: string | undefined;
9797
9803
  providers?: {
9798
- id: "custom" | "claude" | "codex";
9799
9804
  enabled: boolean;
9805
+ id: "custom" | "claude" | "codex";
9800
9806
  label: string;
9801
9807
  reason?: string | undefined;
9802
9808
  supportsImages?: boolean | undefined;
@@ -9811,9 +9817,9 @@ export declare const protocolMessageSchemas: {
9811
9817
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9812
9818
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9813
9819
  commands?: {
9814
- id: string;
9815
9820
  name: string;
9816
9821
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
9822
+ id: string;
9817
9823
  title: string;
9818
9824
  argsMode: "none" | "optional" | "required" | "raw";
9819
9825
  executionKind: "prompt" | "native" | "local_ui";
@@ -9834,22 +9840,22 @@ export declare const protocolMessageSchemas: {
9834
9840
  }[] | undefined;
9835
9841
  } | undefined;
9836
9842
  }, {
9837
- error?: string | undefined;
9838
9843
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9839
9844
  agentSessionId?: string | undefined;
9845
+ error?: string | undefined;
9840
9846
  capabilities?: {
9841
9847
  enabled: boolean;
9842
- error?: string | undefined;
9843
9848
  provider?: "custom" | "claude" | "codex" | undefined;
9844
9849
  protocolVersion?: number | undefined;
9845
9850
  machineId?: string | undefined;
9851
+ error?: string | undefined;
9846
9852
  supportsImages?: boolean | undefined;
9847
9853
  supportsPermission?: boolean | undefined;
9848
9854
  supportsPlan?: boolean | undefined;
9849
9855
  supportsCancel?: boolean | undefined;
9850
9856
  providers?: {
9851
- id: "custom" | "claude" | "codex";
9852
9857
  enabled: boolean;
9858
+ id: "custom" | "claude" | "codex";
9853
9859
  label: string;
9854
9860
  reason?: string | undefined;
9855
9861
  supportsImages?: boolean | undefined;
@@ -9864,8 +9870,8 @@ export declare const protocolMessageSchemas: {
9864
9870
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9865
9871
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9866
9872
  commands?: {
9867
- id: string;
9868
9873
  name: string;
9874
+ id: string;
9869
9875
  title: string;
9870
9876
  provider?: "custom" | "claude" | "codex" | undefined;
9871
9877
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -9890,15 +9896,15 @@ export declare const protocolMessageSchemas: {
9890
9896
  supportsAudio?: boolean | undefined;
9891
9897
  } | undefined;
9892
9898
  messages?: {
9893
- id: string;
9894
9899
  role: "user" | "assistant" | "system";
9895
9900
  content: string;
9901
+ id: string;
9896
9902
  createdAt: number;
9897
9903
  isStreaming?: boolean | undefined;
9898
9904
  }[] | undefined;
9899
9905
  toolCalls?: {
9900
- id: string;
9901
9906
  name: string;
9907
+ id: string;
9902
9908
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9903
9909
  createdAt?: number | undefined;
9904
9910
  input?: string | undefined;
@@ -9957,9 +9963,9 @@ export declare const protocolMessageSchemas: {
9957
9963
  disabledReason: z.ZodOptional<z.ZodString>;
9958
9964
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
9959
9965
  }, "strip", z.ZodTypeAny, {
9960
- id: string;
9961
9966
  name: string;
9962
9967
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
9968
+ id: string;
9963
9969
  title: string;
9964
9970
  argsMode: "none" | "optional" | "required" | "raw";
9965
9971
  executionKind: "prompt" | "native" | "local_ui";
@@ -9970,8 +9976,8 @@ export declare const protocolMessageSchemas: {
9970
9976
  destructive?: boolean | undefined;
9971
9977
  disabledReason?: string | undefined;
9972
9978
  }, {
9973
- id: string;
9974
9979
  name: string;
9980
+ id: string;
9975
9981
  title: string;
9976
9982
  provider?: "custom" | "claude" | "codex" | undefined;
9977
9983
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -9999,8 +10005,8 @@ export declare const protocolMessageSchemas: {
9999
10005
  currentMode: z.ZodOptional<z.ZodString>;
10000
10006
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
10001
10007
  }, "strip", z.ZodTypeAny, {
10002
- id: "custom" | "claude" | "codex";
10003
10008
  enabled: boolean;
10009
+ id: "custom" | "claude" | "codex";
10004
10010
  label: string;
10005
10011
  reason?: string | undefined;
10006
10012
  supportsImages?: boolean | undefined;
@@ -10015,9 +10021,9 @@ export declare const protocolMessageSchemas: {
10015
10021
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
10016
10022
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
10017
10023
  commands?: {
10018
- id: string;
10019
10024
  name: string;
10020
10025
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
10026
+ id: string;
10021
10027
  title: string;
10022
10028
  argsMode: "none" | "optional" | "required" | "raw";
10023
10029
  executionKind: "prompt" | "native" | "local_ui";
@@ -10036,8 +10042,8 @@ export declare const protocolMessageSchemas: {
10036
10042
  currentMode?: string | undefined;
10037
10043
  features?: Record<string, boolean> | undefined;
10038
10044
  }, {
10039
- id: "custom" | "claude" | "codex";
10040
10045
  enabled: boolean;
10046
+ id: "custom" | "claude" | "codex";
10041
10047
  label: string;
10042
10048
  reason?: string | undefined;
10043
10049
  supportsImages?: boolean | undefined;
@@ -10052,8 +10058,8 @@ export declare const protocolMessageSchemas: {
10052
10058
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
10053
10059
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
10054
10060
  commands?: {
10055
- id: string;
10056
10061
  name: string;
10062
+ id: string;
10057
10063
  title: string;
10058
10064
  provider?: "custom" | "claude" | "codex" | undefined;
10059
10065
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -10094,13 +10100,13 @@ export declare const protocolMessageSchemas: {
10094
10100
  supportsSessionLoad: boolean;
10095
10101
  supportsAudio: boolean;
10096
10102
  workspaceProtocolVersion: number;
10097
- error?: string | undefined;
10098
10103
  provider?: "custom" | "claude" | "codex" | undefined;
10099
10104
  protocolVersion?: number | undefined;
10100
10105
  machineId?: string | undefined;
10106
+ error?: string | undefined;
10101
10107
  providers?: {
10102
- id: "custom" | "claude" | "codex";
10103
10108
  enabled: boolean;
10109
+ id: "custom" | "claude" | "codex";
10104
10110
  label: string;
10105
10111
  reason?: string | undefined;
10106
10112
  supportsImages?: boolean | undefined;
@@ -10115,9 +10121,9 @@ export declare const protocolMessageSchemas: {
10115
10121
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
10116
10122
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
10117
10123
  commands?: {
10118
- id: string;
10119
10124
  name: string;
10120
10125
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
10126
+ id: string;
10121
10127
  title: string;
10122
10128
  argsMode: "none" | "optional" | "required" | "raw";
10123
10129
  executionKind: "prompt" | "native" | "local_ui";
@@ -10138,17 +10144,17 @@ export declare const protocolMessageSchemas: {
10138
10144
  }[] | undefined;
10139
10145
  }, {
10140
10146
  enabled: boolean;
10141
- error?: string | undefined;
10142
10147
  provider?: "custom" | "claude" | "codex" | undefined;
10143
10148
  protocolVersion?: number | undefined;
10144
10149
  machineId?: string | undefined;
10150
+ error?: string | undefined;
10145
10151
  supportsImages?: boolean | undefined;
10146
10152
  supportsPermission?: boolean | undefined;
10147
10153
  supportsPlan?: boolean | undefined;
10148
10154
  supportsCancel?: boolean | undefined;
10149
10155
  providers?: {
10150
- id: "custom" | "claude" | "codex";
10151
10156
  enabled: boolean;
10157
+ id: "custom" | "claude" | "codex";
10152
10158
  label: string;
10153
10159
  reason?: string | undefined;
10154
10160
  supportsImages?: boolean | undefined;
@@ -10163,8 +10169,8 @@ export declare const protocolMessageSchemas: {
10163
10169
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
10164
10170
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
10165
10171
  commands?: {
10166
- id: string;
10167
10172
  name: string;
10173
+ id: string;
10168
10174
  title: string;
10169
10175
  provider?: "custom" | "claude" | "codex" | undefined;
10170
10176
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -10208,7 +10214,7 @@ export declare const protocolMessageSchemas: {
10208
10214
  model?: string | undefined;
10209
10215
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10210
10216
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10211
- collaborationMode?: "default" | "plan" | undefined;
10217
+ collaborationMode?: "plan" | "default" | undefined;
10212
10218
  }, {
10213
10219
  conversationId?: string | undefined;
10214
10220
  agentSessionId?: string | undefined;
@@ -10218,7 +10224,7 @@ export declare const protocolMessageSchemas: {
10218
10224
  model?: string | undefined;
10219
10225
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10220
10226
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10221
- collaborationMode?: "default" | "plan" | undefined;
10227
+ collaborationMode?: "plan" | "default" | undefined;
10222
10228
  }>;
10223
10229
  readonly "agent.v2.conversation.opened": z.ZodObject<{
10224
10230
  conversation: z.ZodObject<{
@@ -10238,9 +10244,9 @@ export declare const protocolMessageSchemas: {
10238
10244
  createdAt: z.ZodNumber;
10239
10245
  }, "strip", z.ZodTypeAny, {
10240
10246
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
10241
- id: string;
10242
10247
  provider: "custom" | "claude" | "codex";
10243
10248
  cwd: string;
10249
+ id: string;
10244
10250
  createdAt: number;
10245
10251
  archived: boolean;
10246
10252
  lastActivityAt: number;
@@ -10249,11 +10255,11 @@ export declare const protocolMessageSchemas: {
10249
10255
  model?: string | undefined;
10250
10256
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10251
10257
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10252
- collaborationMode?: "default" | "plan" | undefined;
10258
+ collaborationMode?: "plan" | "default" | undefined;
10253
10259
  lastMessagePreview?: string | undefined;
10254
10260
  }, {
10255
- id: string;
10256
10261
  cwd: string;
10262
+ id: string;
10257
10263
  createdAt: number;
10258
10264
  lastActivityAt: number;
10259
10265
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -10263,7 +10269,7 @@ export declare const protocolMessageSchemas: {
10263
10269
  model?: string | undefined;
10264
10270
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10265
10271
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10266
- collaborationMode?: "default" | "plan" | undefined;
10272
+ collaborationMode?: "plan" | "default" | undefined;
10267
10273
  archived?: boolean | undefined;
10268
10274
  lastMessagePreview?: string | undefined;
10269
10275
  }>;
@@ -10301,14 +10307,14 @@ export declare const protocolMessageSchemas: {
10301
10307
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
10302
10308
  }, "strip", z.ZodTypeAny, {
10303
10309
  status: "running" | "pending" | "completed" | "failed";
10304
- id: string;
10305
10310
  name: string;
10311
+ id: string;
10306
10312
  createdAt?: number | undefined;
10307
10313
  input?: string | undefined;
10308
10314
  output?: string | undefined;
10309
10315
  }, {
10310
- id: string;
10311
10316
  name: string;
10317
+ id: string;
10312
10318
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10313
10319
  createdAt?: number | undefined;
10314
10320
  input?: string | undefined;
@@ -10594,13 +10600,13 @@ export declare const protocolMessageSchemas: {
10594
10600
  updatedAt: z.ZodOptional<z.ZodNumber>;
10595
10601
  isStreaming: z.ZodOptional<z.ZodBoolean>;
10596
10602
  }, "strip", z.ZodTypeAny, {
10597
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
10603
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
10598
10604
  conversationId: string;
10599
10605
  id: string;
10600
10606
  createdAt: number;
10601
- error?: string | undefined;
10602
10607
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10603
10608
  role?: "user" | "assistant" | "system" | undefined;
10609
+ error?: string | undefined;
10604
10610
  content?: {
10605
10611
  type: "text" | "image";
10606
10612
  data?: string | undefined;
@@ -10617,8 +10623,8 @@ export declare const protocolMessageSchemas: {
10617
10623
  isStreaming?: boolean | undefined;
10618
10624
  toolCall?: {
10619
10625
  status: "running" | "pending" | "completed" | "failed";
10620
- id: string;
10621
10626
  name: string;
10627
+ id: string;
10622
10628
  createdAt?: number | undefined;
10623
10629
  input?: string | undefined;
10624
10630
  output?: string | undefined;
@@ -10694,13 +10700,13 @@ export declare const protocolMessageSchemas: {
10694
10700
  metadata?: Record<string, unknown> | undefined;
10695
10701
  updatedAt?: number | undefined;
10696
10702
  }, {
10697
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
10703
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
10698
10704
  conversationId: string;
10699
10705
  id: string;
10700
10706
  createdAt: number;
10701
- error?: string | undefined;
10702
10707
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10703
10708
  role?: "user" | "assistant" | "system" | undefined;
10709
+ error?: string | undefined;
10704
10710
  content?: {
10705
10711
  type: "text" | "image";
10706
10712
  data?: string | undefined;
@@ -10716,8 +10722,8 @@ export declare const protocolMessageSchemas: {
10716
10722
  }[] | undefined;
10717
10723
  isStreaming?: boolean | undefined;
10718
10724
  toolCall?: {
10719
- id: string;
10720
10725
  name: string;
10726
+ id: string;
10721
10727
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10722
10728
  createdAt?: number | undefined;
10723
10729
  input?: string | undefined;
@@ -10798,9 +10804,9 @@ export declare const protocolMessageSchemas: {
10798
10804
  }, "strip", z.ZodTypeAny, {
10799
10805
  conversation: {
10800
10806
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
10801
- id: string;
10802
10807
  provider: "custom" | "claude" | "codex";
10803
10808
  cwd: string;
10809
+ id: string;
10804
10810
  createdAt: number;
10805
10811
  archived: boolean;
10806
10812
  lastActivityAt: number;
@@ -10809,17 +10815,17 @@ export declare const protocolMessageSchemas: {
10809
10815
  model?: string | undefined;
10810
10816
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10811
10817
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10812
- collaborationMode?: "default" | "plan" | undefined;
10818
+ collaborationMode?: "plan" | "default" | undefined;
10813
10819
  lastMessagePreview?: string | undefined;
10814
10820
  };
10815
10821
  snapshot: {
10816
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
10822
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
10817
10823
  conversationId: string;
10818
10824
  id: string;
10819
10825
  createdAt: number;
10820
- error?: string | undefined;
10821
10826
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10822
10827
  role?: "user" | "assistant" | "system" | undefined;
10828
+ error?: string | undefined;
10823
10829
  content?: {
10824
10830
  type: "text" | "image";
10825
10831
  data?: string | undefined;
@@ -10836,8 +10842,8 @@ export declare const protocolMessageSchemas: {
10836
10842
  isStreaming?: boolean | undefined;
10837
10843
  toolCall?: {
10838
10844
  status: "running" | "pending" | "completed" | "failed";
10839
- id: string;
10840
10845
  name: string;
10846
+ id: string;
10841
10847
  createdAt?: number | undefined;
10842
10848
  input?: string | undefined;
10843
10849
  output?: string | undefined;
@@ -10916,8 +10922,8 @@ export declare const protocolMessageSchemas: {
10916
10922
  requestedConversationId?: string | undefined;
10917
10923
  }, {
10918
10924
  conversation: {
10919
- id: string;
10920
10925
  cwd: string;
10926
+ id: string;
10921
10927
  createdAt: number;
10922
10928
  lastActivityAt: number;
10923
10929
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -10927,18 +10933,18 @@ export declare const protocolMessageSchemas: {
10927
10933
  model?: string | undefined;
10928
10934
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10929
10935
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10930
- collaborationMode?: "default" | "plan" | undefined;
10936
+ collaborationMode?: "plan" | "default" | undefined;
10931
10937
  archived?: boolean | undefined;
10932
10938
  lastMessagePreview?: string | undefined;
10933
10939
  };
10934
10940
  snapshot?: {
10935
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
10941
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
10936
10942
  conversationId: string;
10937
10943
  id: string;
10938
10944
  createdAt: number;
10939
- error?: string | undefined;
10940
10945
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10941
10946
  role?: "user" | "assistant" | "system" | undefined;
10947
+ error?: string | undefined;
10942
10948
  content?: {
10943
10949
  type: "text" | "image";
10944
10950
  data?: string | undefined;
@@ -10954,8 +10960,8 @@ export declare const protocolMessageSchemas: {
10954
10960
  }[] | undefined;
10955
10961
  isStreaming?: boolean | undefined;
10956
10962
  toolCall?: {
10957
- id: string;
10958
10963
  name: string;
10964
+ id: string;
10959
10965
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10960
10966
  createdAt?: number | undefined;
10961
10967
  input?: string | undefined;
@@ -11059,9 +11065,9 @@ export declare const protocolMessageSchemas: {
11059
11065
  createdAt: z.ZodNumber;
11060
11066
  }, "strip", z.ZodTypeAny, {
11061
11067
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
11062
- id: string;
11063
11068
  provider: "custom" | "claude" | "codex";
11064
11069
  cwd: string;
11070
+ id: string;
11065
11071
  createdAt: number;
11066
11072
  archived: boolean;
11067
11073
  lastActivityAt: number;
@@ -11070,11 +11076,11 @@ export declare const protocolMessageSchemas: {
11070
11076
  model?: string | undefined;
11071
11077
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11072
11078
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11073
- collaborationMode?: "default" | "plan" | undefined;
11079
+ collaborationMode?: "plan" | "default" | undefined;
11074
11080
  lastMessagePreview?: string | undefined;
11075
11081
  }, {
11076
- id: string;
11077
11082
  cwd: string;
11083
+ id: string;
11078
11084
  createdAt: number;
11079
11085
  lastActivityAt: number;
11080
11086
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -11084,16 +11090,16 @@ export declare const protocolMessageSchemas: {
11084
11090
  model?: string | undefined;
11085
11091
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11086
11092
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11087
- collaborationMode?: "default" | "plan" | undefined;
11093
+ collaborationMode?: "plan" | "default" | undefined;
11088
11094
  archived?: boolean | undefined;
11089
11095
  lastMessagePreview?: string | undefined;
11090
11096
  }>, "many">;
11091
11097
  }, "strip", z.ZodTypeAny, {
11092
11098
  conversations: {
11093
11099
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
11094
- id: string;
11095
11100
  provider: "custom" | "claude" | "codex";
11096
11101
  cwd: string;
11102
+ id: string;
11097
11103
  createdAt: number;
11098
11104
  archived: boolean;
11099
11105
  lastActivityAt: number;
@@ -11102,13 +11108,13 @@ export declare const protocolMessageSchemas: {
11102
11108
  model?: string | undefined;
11103
11109
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11104
11110
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11105
- collaborationMode?: "default" | "plan" | undefined;
11111
+ collaborationMode?: "plan" | "default" | undefined;
11106
11112
  lastMessagePreview?: string | undefined;
11107
11113
  }[];
11108
11114
  }, {
11109
11115
  conversations: {
11110
- id: string;
11111
11116
  cwd: string;
11117
+ id: string;
11112
11118
  createdAt: number;
11113
11119
  lastActivityAt: number;
11114
11120
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -11118,7 +11124,7 @@ export declare const protocolMessageSchemas: {
11118
11124
  model?: string | undefined;
11119
11125
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11120
11126
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11121
- collaborationMode?: "default" | "plan" | undefined;
11127
+ collaborationMode?: "plan" | "default" | undefined;
11122
11128
  archived?: boolean | undefined;
11123
11129
  lastMessagePreview?: string | undefined;
11124
11130
  }[];
@@ -11188,7 +11194,7 @@ export declare const protocolMessageSchemas: {
11188
11194
  model?: string | undefined;
11189
11195
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11190
11196
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11191
- collaborationMode?: "default" | "plan" | undefined;
11197
+ collaborationMode?: "plan" | "default" | undefined;
11192
11198
  targetTurnId?: string | undefined;
11193
11199
  }, {
11194
11200
  conversationId: string;
@@ -11202,7 +11208,7 @@ export declare const protocolMessageSchemas: {
11202
11208
  model?: string | undefined;
11203
11209
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11204
11210
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11205
- collaborationMode?: "default" | "plan" | undefined;
11211
+ collaborationMode?: "plan" | "default" | undefined;
11206
11212
  delivery?: "auto" | "new_turn" | "steer" | undefined;
11207
11213
  targetTurnId?: string | undefined;
11208
11214
  }>;
@@ -11302,14 +11308,14 @@ export declare const protocolMessageSchemas: {
11302
11308
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
11303
11309
  }, "strip", z.ZodTypeAny, {
11304
11310
  status: "running" | "pending" | "completed" | "failed";
11305
- id: string;
11306
11311
  name: string;
11312
+ id: string;
11307
11313
  createdAt?: number | undefined;
11308
11314
  input?: string | undefined;
11309
11315
  output?: string | undefined;
11310
11316
  }, {
11311
- id: string;
11312
11317
  name: string;
11318
+ id: string;
11313
11319
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11314
11320
  createdAt?: number | undefined;
11315
11321
  input?: string | undefined;
@@ -11595,13 +11601,13 @@ export declare const protocolMessageSchemas: {
11595
11601
  updatedAt: z.ZodOptional<z.ZodNumber>;
11596
11602
  isStreaming: z.ZodOptional<z.ZodBoolean>;
11597
11603
  }, "strip", z.ZodTypeAny, {
11598
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
11604
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
11599
11605
  conversationId: string;
11600
11606
  id: string;
11601
11607
  createdAt: number;
11602
- error?: string | undefined;
11603
11608
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11604
11609
  role?: "user" | "assistant" | "system" | undefined;
11610
+ error?: string | undefined;
11605
11611
  content?: {
11606
11612
  type: "text" | "image";
11607
11613
  data?: string | undefined;
@@ -11618,8 +11624,8 @@ export declare const protocolMessageSchemas: {
11618
11624
  isStreaming?: boolean | undefined;
11619
11625
  toolCall?: {
11620
11626
  status: "running" | "pending" | "completed" | "failed";
11621
- id: string;
11622
11627
  name: string;
11628
+ id: string;
11623
11629
  createdAt?: number | undefined;
11624
11630
  input?: string | undefined;
11625
11631
  output?: string | undefined;
@@ -11695,13 +11701,13 @@ export declare const protocolMessageSchemas: {
11695
11701
  metadata?: Record<string, unknown> | undefined;
11696
11702
  updatedAt?: number | undefined;
11697
11703
  }, {
11698
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
11704
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
11699
11705
  conversationId: string;
11700
11706
  id: string;
11701
11707
  createdAt: number;
11702
- error?: string | undefined;
11703
11708
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11704
11709
  role?: "user" | "assistant" | "system" | undefined;
11710
+ error?: string | undefined;
11705
11711
  content?: {
11706
11712
  type: "text" | "image";
11707
11713
  data?: string | undefined;
@@ -11717,8 +11723,8 @@ export declare const protocolMessageSchemas: {
11717
11723
  }[] | undefined;
11718
11724
  isStreaming?: boolean | undefined;
11719
11725
  toolCall?: {
11720
- id: string;
11721
11726
  name: string;
11727
+ id: string;
11722
11728
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11723
11729
  createdAt?: number | undefined;
11724
11730
  input?: string | undefined;
@@ -11807,13 +11813,13 @@ export declare const protocolMessageSchemas: {
11807
11813
  toolInput?: string | undefined;
11808
11814
  context?: string | undefined;
11809
11815
  item?: {
11810
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
11816
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
11811
11817
  conversationId: string;
11812
11818
  id: string;
11813
11819
  createdAt: number;
11814
- error?: string | undefined;
11815
11820
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11816
11821
  role?: "user" | "assistant" | "system" | undefined;
11822
+ error?: string | undefined;
11817
11823
  content?: {
11818
11824
  type: "text" | "image";
11819
11825
  data?: string | undefined;
@@ -11830,8 +11836,8 @@ export declare const protocolMessageSchemas: {
11830
11836
  isStreaming?: boolean | undefined;
11831
11837
  toolCall?: {
11832
11838
  status: "running" | "pending" | "completed" | "failed";
11833
- id: string;
11834
11839
  name: string;
11840
+ id: string;
11835
11841
  createdAt?: number | undefined;
11836
11842
  input?: string | undefined;
11837
11843
  output?: string | undefined;
@@ -11919,13 +11925,13 @@ export declare const protocolMessageSchemas: {
11919
11925
  toolInput?: string | undefined;
11920
11926
  context?: string | undefined;
11921
11927
  item?: {
11922
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
11928
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
11923
11929
  conversationId: string;
11924
11930
  id: string;
11925
11931
  createdAt: number;
11926
- error?: string | undefined;
11927
11932
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11928
11933
  role?: "user" | "assistant" | "system" | undefined;
11934
+ error?: string | undefined;
11929
11935
  content?: {
11930
11936
  type: "text" | "image";
11931
11937
  data?: string | undefined;
@@ -11941,8 +11947,8 @@ export declare const protocolMessageSchemas: {
11941
11947
  }[] | undefined;
11942
11948
  isStreaming?: boolean | undefined;
11943
11949
  toolCall?: {
11944
- id: string;
11945
11950
  name: string;
11951
+ id: string;
11946
11952
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11947
11953
  createdAt?: number | undefined;
11948
11954
  input?: string | undefined;
@@ -12058,9 +12064,9 @@ export declare const protocolMessageSchemas: {
12058
12064
  createdAt: z.ZodNumber;
12059
12065
  }, "strip", z.ZodTypeAny, {
12060
12066
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
12061
- id: string;
12062
12067
  provider: "custom" | "claude" | "codex";
12063
12068
  cwd: string;
12069
+ id: string;
12064
12070
  createdAt: number;
12065
12071
  archived: boolean;
12066
12072
  lastActivityAt: number;
@@ -12069,11 +12075,11 @@ export declare const protocolMessageSchemas: {
12069
12075
  model?: string | undefined;
12070
12076
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
12071
12077
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
12072
- collaborationMode?: "default" | "plan" | undefined;
12078
+ collaborationMode?: "plan" | "default" | undefined;
12073
12079
  lastMessagePreview?: string | undefined;
12074
12080
  }, {
12075
- id: string;
12076
12081
  cwd: string;
12082
+ id: string;
12077
12083
  createdAt: number;
12078
12084
  lastActivityAt: number;
12079
12085
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -12083,7 +12089,7 @@ export declare const protocolMessageSchemas: {
12083
12089
  model?: string | undefined;
12084
12090
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
12085
12091
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
12086
- collaborationMode?: "default" | "plan" | undefined;
12092
+ collaborationMode?: "plan" | "default" | undefined;
12087
12093
  archived?: boolean | undefined;
12088
12094
  lastMessagePreview?: string | undefined;
12089
12095
  }>, "many">>;
@@ -12122,14 +12128,14 @@ export declare const protocolMessageSchemas: {
12122
12128
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
12123
12129
  }, "strip", z.ZodTypeAny, {
12124
12130
  status: "running" | "pending" | "completed" | "failed";
12125
- id: string;
12126
12131
  name: string;
12132
+ id: string;
12127
12133
  createdAt?: number | undefined;
12128
12134
  input?: string | undefined;
12129
12135
  output?: string | undefined;
12130
12136
  }, {
12131
- id: string;
12132
12137
  name: string;
12138
+ id: string;
12133
12139
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12134
12140
  createdAt?: number | undefined;
12135
12141
  input?: string | undefined;
@@ -12415,13 +12421,13 @@ export declare const protocolMessageSchemas: {
12415
12421
  updatedAt: z.ZodOptional<z.ZodNumber>;
12416
12422
  isStreaming: z.ZodOptional<z.ZodBoolean>;
12417
12423
  }, "strip", z.ZodTypeAny, {
12418
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
12424
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
12419
12425
  conversationId: string;
12420
12426
  id: string;
12421
12427
  createdAt: number;
12422
- error?: string | undefined;
12423
12428
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12424
12429
  role?: "user" | "assistant" | "system" | undefined;
12430
+ error?: string | undefined;
12425
12431
  content?: {
12426
12432
  type: "text" | "image";
12427
12433
  data?: string | undefined;
@@ -12438,8 +12444,8 @@ export declare const protocolMessageSchemas: {
12438
12444
  isStreaming?: boolean | undefined;
12439
12445
  toolCall?: {
12440
12446
  status: "running" | "pending" | "completed" | "failed";
12441
- id: string;
12442
12447
  name: string;
12448
+ id: string;
12443
12449
  createdAt?: number | undefined;
12444
12450
  input?: string | undefined;
12445
12451
  output?: string | undefined;
@@ -12515,13 +12521,13 @@ export declare const protocolMessageSchemas: {
12515
12521
  metadata?: Record<string, unknown> | undefined;
12516
12522
  updatedAt?: number | undefined;
12517
12523
  }, {
12518
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
12524
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
12519
12525
  conversationId: string;
12520
12526
  id: string;
12521
12527
  createdAt: number;
12522
- error?: string | undefined;
12523
12528
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12524
12529
  role?: "user" | "assistant" | "system" | undefined;
12530
+ error?: string | undefined;
12525
12531
  content?: {
12526
12532
  type: "text" | "image";
12527
12533
  data?: string | undefined;
@@ -12537,8 +12543,8 @@ export declare const protocolMessageSchemas: {
12537
12543
  }[] | undefined;
12538
12544
  isStreaming?: boolean | undefined;
12539
12545
  toolCall?: {
12540
- id: string;
12541
12546
  name: string;
12547
+ id: string;
12542
12548
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12543
12549
  createdAt?: number | undefined;
12544
12550
  input?: string | undefined;
@@ -12619,9 +12625,9 @@ export declare const protocolMessageSchemas: {
12619
12625
  }, "strip", z.ZodTypeAny, {
12620
12626
  conversations: {
12621
12627
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
12622
- id: string;
12623
12628
  provider: "custom" | "claude" | "codex";
12624
12629
  cwd: string;
12630
+ id: string;
12625
12631
  createdAt: number;
12626
12632
  archived: boolean;
12627
12633
  lastActivityAt: number;
@@ -12630,17 +12636,17 @@ export declare const protocolMessageSchemas: {
12630
12636
  model?: string | undefined;
12631
12637
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
12632
12638
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
12633
- collaborationMode?: "default" | "plan" | undefined;
12639
+ collaborationMode?: "plan" | "default" | undefined;
12634
12640
  lastMessagePreview?: string | undefined;
12635
12641
  }[];
12636
12642
  items: {
12637
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
12643
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
12638
12644
  conversationId: string;
12639
12645
  id: string;
12640
12646
  createdAt: number;
12641
- error?: string | undefined;
12642
12647
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12643
12648
  role?: "user" | "assistant" | "system" | undefined;
12649
+ error?: string | undefined;
12644
12650
  content?: {
12645
12651
  type: "text" | "image";
12646
12652
  data?: string | undefined;
@@ -12657,8 +12663,8 @@ export declare const protocolMessageSchemas: {
12657
12663
  isStreaming?: boolean | undefined;
12658
12664
  toolCall?: {
12659
12665
  status: "running" | "pending" | "completed" | "failed";
12660
- id: string;
12661
12666
  name: string;
12667
+ id: string;
12662
12668
  createdAt?: number | undefined;
12663
12669
  input?: string | undefined;
12664
12670
  output?: string | undefined;
@@ -12739,8 +12745,8 @@ export declare const protocolMessageSchemas: {
12739
12745
  }, {
12740
12746
  machineId?: string | undefined;
12741
12747
  conversations?: {
12742
- id: string;
12743
12748
  cwd: string;
12749
+ id: string;
12744
12750
  createdAt: number;
12745
12751
  lastActivityAt: number;
12746
12752
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -12750,19 +12756,19 @@ export declare const protocolMessageSchemas: {
12750
12756
  model?: string | undefined;
12751
12757
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
12752
12758
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
12753
- collaborationMode?: "default" | "plan" | undefined;
12759
+ collaborationMode?: "plan" | "default" | undefined;
12754
12760
  archived?: boolean | undefined;
12755
12761
  lastMessagePreview?: string | undefined;
12756
12762
  }[] | undefined;
12757
12763
  activeConversationId?: string | undefined;
12758
12764
  items?: {
12759
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
12765
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
12760
12766
  conversationId: string;
12761
12767
  id: string;
12762
12768
  createdAt: number;
12763
- error?: string | undefined;
12764
12769
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12765
12770
  role?: "user" | "assistant" | "system" | undefined;
12771
+ error?: string | undefined;
12766
12772
  content?: {
12767
12773
  type: "text" | "image";
12768
12774
  data?: string | undefined;
@@ -12778,8 +12784,8 @@ export declare const protocolMessageSchemas: {
12778
12784
  }[] | undefined;
12779
12785
  isStreaming?: boolean | undefined;
12780
12786
  toolCall?: {
12781
- id: string;
12782
12787
  name: string;
12788
+ id: string;
12783
12789
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12784
12790
  createdAt?: number | undefined;
12785
12791
  input?: string | undefined;
@@ -12876,9 +12882,9 @@ export declare const protocolMessageSchemas: {
12876
12882
  createdAt: z.ZodNumber;
12877
12883
  }, "strip", z.ZodTypeAny, {
12878
12884
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
12879
- id: string;
12880
12885
  provider: "custom" | "claude" | "codex";
12881
12886
  cwd: string;
12887
+ id: string;
12882
12888
  createdAt: number;
12883
12889
  archived: boolean;
12884
12890
  lastActivityAt: number;
@@ -12887,11 +12893,11 @@ export declare const protocolMessageSchemas: {
12887
12893
  model?: string | undefined;
12888
12894
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
12889
12895
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
12890
- collaborationMode?: "default" | "plan" | undefined;
12896
+ collaborationMode?: "plan" | "default" | undefined;
12891
12897
  lastMessagePreview?: string | undefined;
12892
12898
  }, {
12893
- id: string;
12894
12899
  cwd: string;
12900
+ id: string;
12895
12901
  createdAt: number;
12896
12902
  lastActivityAt: number;
12897
12903
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -12901,7 +12907,7 @@ export declare const protocolMessageSchemas: {
12901
12907
  model?: string | undefined;
12902
12908
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
12903
12909
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
12904
- collaborationMode?: "default" | "plan" | undefined;
12910
+ collaborationMode?: "plan" | "default" | undefined;
12905
12911
  archived?: boolean | undefined;
12906
12912
  lastMessagePreview?: string | undefined;
12907
12913
  }>>;
@@ -12939,14 +12945,14 @@ export declare const protocolMessageSchemas: {
12939
12945
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
12940
12946
  }, "strip", z.ZodTypeAny, {
12941
12947
  status: "running" | "pending" | "completed" | "failed";
12942
- id: string;
12943
12948
  name: string;
12949
+ id: string;
12944
12950
  createdAt?: number | undefined;
12945
12951
  input?: string | undefined;
12946
12952
  output?: string | undefined;
12947
12953
  }, {
12948
- id: string;
12949
12954
  name: string;
12955
+ id: string;
12950
12956
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12951
12957
  createdAt?: number | undefined;
12952
12958
  input?: string | undefined;
@@ -13232,13 +13238,13 @@ export declare const protocolMessageSchemas: {
13232
13238
  updatedAt: z.ZodOptional<z.ZodNumber>;
13233
13239
  isStreaming: z.ZodOptional<z.ZodBoolean>;
13234
13240
  }, "strip", z.ZodTypeAny, {
13235
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
13241
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
13236
13242
  conversationId: string;
13237
13243
  id: string;
13238
13244
  createdAt: number;
13239
- error?: string | undefined;
13240
13245
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13241
13246
  role?: "user" | "assistant" | "system" | undefined;
13247
+ error?: string | undefined;
13242
13248
  content?: {
13243
13249
  type: "text" | "image";
13244
13250
  data?: string | undefined;
@@ -13255,8 +13261,8 @@ export declare const protocolMessageSchemas: {
13255
13261
  isStreaming?: boolean | undefined;
13256
13262
  toolCall?: {
13257
13263
  status: "running" | "pending" | "completed" | "failed";
13258
- id: string;
13259
13264
  name: string;
13265
+ id: string;
13260
13266
  createdAt?: number | undefined;
13261
13267
  input?: string | undefined;
13262
13268
  output?: string | undefined;
@@ -13332,13 +13338,13 @@ export declare const protocolMessageSchemas: {
13332
13338
  metadata?: Record<string, unknown> | undefined;
13333
13339
  updatedAt?: number | undefined;
13334
13340
  }, {
13335
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
13341
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
13336
13342
  conversationId: string;
13337
13343
  id: string;
13338
13344
  createdAt: number;
13339
- error?: string | undefined;
13340
13345
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13341
13346
  role?: "user" | "assistant" | "system" | undefined;
13347
+ error?: string | undefined;
13342
13348
  content?: {
13343
13349
  type: "text" | "image";
13344
13350
  data?: string | undefined;
@@ -13354,8 +13360,8 @@ export declare const protocolMessageSchemas: {
13354
13360
  }[] | undefined;
13355
13361
  isStreaming?: boolean | undefined;
13356
13362
  toolCall?: {
13357
- id: string;
13358
13363
  name: string;
13364
+ id: string;
13359
13365
  status?: "running" | "pending" | "completed" | "failed" | undefined;
13360
13366
  createdAt?: number | undefined;
13361
13367
  input?: string | undefined;
@@ -13464,14 +13470,14 @@ export declare const protocolMessageSchemas: {
13464
13470
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
13465
13471
  }, "strip", z.ZodTypeAny, {
13466
13472
  status: "running" | "pending" | "completed" | "failed";
13467
- id: string;
13468
13473
  name: string;
13474
+ id: string;
13469
13475
  createdAt?: number | undefined;
13470
13476
  input?: string | undefined;
13471
13477
  output?: string | undefined;
13472
13478
  }, {
13473
- id: string;
13474
13479
  name: string;
13480
+ id: string;
13475
13481
  status?: "running" | "pending" | "completed" | "failed" | undefined;
13476
13482
  createdAt?: number | undefined;
13477
13483
  input?: string | undefined;
@@ -13756,9 +13762,9 @@ export declare const protocolMessageSchemas: {
13756
13762
  isStreaming: z.ZodOptional<z.ZodBoolean>;
13757
13763
  }, "strip", z.ZodTypeAny, {
13758
13764
  itemId: string;
13759
- error?: string | undefined;
13760
13765
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13761
13766
  role?: "user" | "assistant" | "system" | undefined;
13767
+ error?: string | undefined;
13762
13768
  content?: {
13763
13769
  type: "text" | "image";
13764
13770
  data?: string | undefined;
@@ -13775,8 +13781,8 @@ export declare const protocolMessageSchemas: {
13775
13781
  isStreaming?: boolean | undefined;
13776
13782
  toolCall?: {
13777
13783
  status: "running" | "pending" | "completed" | "failed";
13778
- id: string;
13779
13784
  name: string;
13785
+ id: string;
13780
13786
  createdAt?: number | undefined;
13781
13787
  input?: string | undefined;
13782
13788
  output?: string | undefined;
@@ -13852,9 +13858,9 @@ export declare const protocolMessageSchemas: {
13852
13858
  textDelta?: string | undefined;
13853
13859
  }, {
13854
13860
  itemId: string;
13855
- error?: string | undefined;
13856
13861
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13857
13862
  role?: "user" | "assistant" | "system" | undefined;
13863
+ error?: string | undefined;
13858
13864
  content?: {
13859
13865
  type: "text" | "image";
13860
13866
  data?: string | undefined;
@@ -13870,8 +13876,8 @@ export declare const protocolMessageSchemas: {
13870
13876
  }[] | undefined;
13871
13877
  isStreaming?: boolean | undefined;
13872
13878
  toolCall?: {
13873
- id: string;
13874
13879
  name: string;
13880
+ id: string;
13875
13881
  status?: "running" | "pending" | "completed" | "failed" | undefined;
13876
13882
  createdAt?: number | undefined;
13877
13883
  input?: string | undefined;
@@ -13951,9 +13957,9 @@ export declare const protocolMessageSchemas: {
13951
13957
  conversationId: string;
13952
13958
  conversation?: {
13953
13959
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
13954
- id: string;
13955
13960
  provider: "custom" | "claude" | "codex";
13956
13961
  cwd: string;
13962
+ id: string;
13957
13963
  createdAt: number;
13958
13964
  archived: boolean;
13959
13965
  lastActivityAt: number;
@@ -13962,17 +13968,17 @@ export declare const protocolMessageSchemas: {
13962
13968
  model?: string | undefined;
13963
13969
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
13964
13970
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
13965
- collaborationMode?: "default" | "plan" | undefined;
13971
+ collaborationMode?: "plan" | "default" | undefined;
13966
13972
  lastMessagePreview?: string | undefined;
13967
13973
  } | undefined;
13968
13974
  item?: {
13969
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
13975
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
13970
13976
  conversationId: string;
13971
13977
  id: string;
13972
13978
  createdAt: number;
13973
- error?: string | undefined;
13974
13979
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13975
13980
  role?: "user" | "assistant" | "system" | undefined;
13981
+ error?: string | undefined;
13976
13982
  content?: {
13977
13983
  type: "text" | "image";
13978
13984
  data?: string | undefined;
@@ -13989,8 +13995,8 @@ export declare const protocolMessageSchemas: {
13989
13995
  isStreaming?: boolean | undefined;
13990
13996
  toolCall?: {
13991
13997
  status: "running" | "pending" | "completed" | "failed";
13992
- id: string;
13993
13998
  name: string;
13999
+ id: string;
13994
14000
  createdAt?: number | undefined;
13995
14001
  input?: string | undefined;
13996
14002
  output?: string | undefined;
@@ -14068,9 +14074,9 @@ export declare const protocolMessageSchemas: {
14068
14074
  } | undefined;
14069
14075
  patch?: {
14070
14076
  itemId: string;
14071
- error?: string | undefined;
14072
14077
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
14073
14078
  role?: "user" | "assistant" | "system" | undefined;
14079
+ error?: string | undefined;
14074
14080
  content?: {
14075
14081
  type: "text" | "image";
14076
14082
  data?: string | undefined;
@@ -14087,8 +14093,8 @@ export declare const protocolMessageSchemas: {
14087
14093
  isStreaming?: boolean | undefined;
14088
14094
  toolCall?: {
14089
14095
  status: "running" | "pending" | "completed" | "failed";
14090
- id: string;
14091
14096
  name: string;
14097
+ id: string;
14092
14098
  createdAt?: number | undefined;
14093
14099
  input?: string | undefined;
14094
14100
  output?: string | undefined;
@@ -14166,8 +14172,8 @@ export declare const protocolMessageSchemas: {
14166
14172
  }, {
14167
14173
  conversationId: string;
14168
14174
  conversation?: {
14169
- id: string;
14170
14175
  cwd: string;
14176
+ id: string;
14171
14177
  createdAt: number;
14172
14178
  lastActivityAt: number;
14173
14179
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -14177,18 +14183,18 @@ export declare const protocolMessageSchemas: {
14177
14183
  model?: string | undefined;
14178
14184
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
14179
14185
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
14180
- collaborationMode?: "default" | "plan" | undefined;
14186
+ collaborationMode?: "plan" | "default" | undefined;
14181
14187
  archived?: boolean | undefined;
14182
14188
  lastMessagePreview?: string | undefined;
14183
14189
  } | undefined;
14184
14190
  item?: {
14185
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
14191
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
14186
14192
  conversationId: string;
14187
14193
  id: string;
14188
14194
  createdAt: number;
14189
- error?: string | undefined;
14190
14195
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
14191
14196
  role?: "user" | "assistant" | "system" | undefined;
14197
+ error?: string | undefined;
14192
14198
  content?: {
14193
14199
  type: "text" | "image";
14194
14200
  data?: string | undefined;
@@ -14204,8 +14210,8 @@ export declare const protocolMessageSchemas: {
14204
14210
  }[] | undefined;
14205
14211
  isStreaming?: boolean | undefined;
14206
14212
  toolCall?: {
14207
- id: string;
14208
14213
  name: string;
14214
+ id: string;
14209
14215
  status?: "running" | "pending" | "completed" | "failed" | undefined;
14210
14216
  createdAt?: number | undefined;
14211
14217
  input?: string | undefined;
@@ -14284,9 +14290,9 @@ export declare const protocolMessageSchemas: {
14284
14290
  } | undefined;
14285
14291
  patch?: {
14286
14292
  itemId: string;
14287
- error?: string | undefined;
14288
14293
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
14289
14294
  role?: "user" | "assistant" | "system" | undefined;
14295
+ error?: string | undefined;
14290
14296
  content?: {
14291
14297
  type: "text" | "image";
14292
14298
  data?: string | undefined;
@@ -14302,8 +14308,8 @@ export declare const protocolMessageSchemas: {
14302
14308
  }[] | undefined;
14303
14309
  isStreaming?: boolean | undefined;
14304
14310
  toolCall?: {
14305
- id: string;
14306
14311
  name: string;
14312
+ id: string;
14307
14313
  status?: "running" | "pending" | "completed" | "failed" | undefined;
14308
14314
  createdAt?: number | undefined;
14309
14315
  input?: string | undefined;
@@ -14388,13 +14394,13 @@ export declare const protocolMessageSchemas: {
14388
14394
  durationMs: z.ZodOptional<z.ZodNumber>;
14389
14395
  }, "strip", z.ZodTypeAny, {
14390
14396
  title: string;
14391
- kind: "info" | "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "warning";
14397
+ kind: "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "info" | "warning";
14392
14398
  conversationId?: string | undefined;
14393
14399
  detail?: string | undefined;
14394
14400
  durationMs?: number | undefined;
14395
14401
  }, {
14396
14402
  title: string;
14397
- kind: "info" | "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "warning";
14403
+ kind: "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "info" | "warning";
14398
14404
  conversationId?: string | undefined;
14399
14405
  detail?: string | undefined;
14400
14406
  durationMs?: number | undefined;
@@ -14448,14 +14454,14 @@ export declare const protocolMessageSchemas: {
14448
14454
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
14449
14455
  }, "strip", z.ZodTypeAny, {
14450
14456
  status: "running" | "pending" | "completed" | "failed";
14451
- id: string;
14452
14457
  name: string;
14458
+ id: string;
14453
14459
  createdAt?: number | undefined;
14454
14460
  input?: string | undefined;
14455
14461
  output?: string | undefined;
14456
14462
  }, {
14457
- id: string;
14458
14463
  name: string;
14464
+ id: string;
14459
14465
  status?: "running" | "pending" | "completed" | "failed" | undefined;
14460
14466
  createdAt?: number | undefined;
14461
14467
  input?: string | undefined;
@@ -14741,13 +14747,13 @@ export declare const protocolMessageSchemas: {
14741
14747
  updatedAt: z.ZodOptional<z.ZodNumber>;
14742
14748
  isStreaming: z.ZodOptional<z.ZodBoolean>;
14743
14749
  }, "strip", z.ZodTypeAny, {
14744
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
14750
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
14745
14751
  conversationId: string;
14746
14752
  id: string;
14747
14753
  createdAt: number;
14748
- error?: string | undefined;
14749
14754
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
14750
14755
  role?: "user" | "assistant" | "system" | undefined;
14756
+ error?: string | undefined;
14751
14757
  content?: {
14752
14758
  type: "text" | "image";
14753
14759
  data?: string | undefined;
@@ -14764,8 +14770,8 @@ export declare const protocolMessageSchemas: {
14764
14770
  isStreaming?: boolean | undefined;
14765
14771
  toolCall?: {
14766
14772
  status: "running" | "pending" | "completed" | "failed";
14767
- id: string;
14768
14773
  name: string;
14774
+ id: string;
14769
14775
  createdAt?: number | undefined;
14770
14776
  input?: string | undefined;
14771
14777
  output?: string | undefined;
@@ -14841,13 +14847,13 @@ export declare const protocolMessageSchemas: {
14841
14847
  metadata?: Record<string, unknown> | undefined;
14842
14848
  updatedAt?: number | undefined;
14843
14849
  }, {
14844
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
14850
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
14845
14851
  conversationId: string;
14846
14852
  id: string;
14847
14853
  createdAt: number;
14848
- error?: string | undefined;
14849
14854
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
14850
14855
  role?: "user" | "assistant" | "system" | undefined;
14856
+ error?: string | undefined;
14851
14857
  content?: {
14852
14858
  type: "text" | "image";
14853
14859
  data?: string | undefined;
@@ -14863,8 +14869,8 @@ export declare const protocolMessageSchemas: {
14863
14869
  }[] | undefined;
14864
14870
  isStreaming?: boolean | undefined;
14865
14871
  toolCall?: {
14866
- id: string;
14867
14872
  name: string;
14873
+ id: string;
14868
14874
  status?: "running" | "pending" | "completed" | "failed" | undefined;
14869
14875
  createdAt?: number | undefined;
14870
14876
  input?: string | undefined;
@@ -14946,13 +14952,13 @@ export declare const protocolMessageSchemas: {
14946
14952
  }, "strip", z.ZodTypeAny, {
14947
14953
  conversationId: string;
14948
14954
  items: {
14949
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
14955
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
14950
14956
  conversationId: string;
14951
14957
  id: string;
14952
14958
  createdAt: number;
14953
- error?: string | undefined;
14954
14959
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
14955
14960
  role?: "user" | "assistant" | "system" | undefined;
14961
+ error?: string | undefined;
14956
14962
  content?: {
14957
14963
  type: "text" | "image";
14958
14964
  data?: string | undefined;
@@ -14969,8 +14975,8 @@ export declare const protocolMessageSchemas: {
14969
14975
  isStreaming?: boolean | undefined;
14970
14976
  toolCall?: {
14971
14977
  status: "running" | "pending" | "completed" | "failed";
14972
- id: string;
14973
14978
  name: string;
14979
+ id: string;
14974
14980
  createdAt?: number | undefined;
14975
14981
  input?: string | undefined;
14976
14982
  output?: string | undefined;
@@ -15051,13 +15057,13 @@ export declare const protocolMessageSchemas: {
15051
15057
  }, {
15052
15058
  conversationId: string;
15053
15059
  items?: {
15054
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
15060
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
15055
15061
  conversationId: string;
15056
15062
  id: string;
15057
15063
  createdAt: number;
15058
- error?: string | undefined;
15059
15064
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
15060
15065
  role?: "user" | "assistant" | "system" | undefined;
15066
+ error?: string | undefined;
15061
15067
  content?: {
15062
15068
  type: "text" | "image";
15063
15069
  data?: string | undefined;
@@ -15073,8 +15079,8 @@ export declare const protocolMessageSchemas: {
15073
15079
  }[] | undefined;
15074
15080
  isStreaming?: boolean | undefined;
15075
15081
  toolCall?: {
15076
- id: string;
15077
15082
  name: string;
15083
+ id: string;
15078
15084
  status?: "running" | "pending" | "completed" | "failed" | undefined;
15079
15085
  createdAt?: number | undefined;
15080
15086
  input?: string | undefined;