@linkshell/gateway 0.4.24 → 0.4.27

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
- type: string;
32
31
  sessionId: string;
33
- timestamp: string;
32
+ type: string;
34
33
  id: string;
34
+ timestamp: string;
35
35
  terminalId?: string | undefined;
36
- ack?: number | undefined;
37
- seq?: number | undefined;
38
36
  deviceId?: string | undefined;
39
37
  traceId?: string | undefined;
38
+ seq?: number | undefined;
39
+ ack?: number | undefined;
40
40
  payload?: unknown;
41
41
  }, {
42
- type: string;
43
42
  sessionId: string;
44
- timestamp: string;
43
+ type: string;
45
44
  id: string;
45
+ timestamp: string;
46
46
  terminalId?: string | undefined;
47
- ack?: number | undefined;
48
- seq?: number | undefined;
49
47
  deviceId?: string | undefined;
50
48
  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
- mode?: "webrtc" | "fallback" | "off" | undefined;
271
270
  error?: string | undefined;
271
+ mode?: "webrtc" | "fallback" | "off" | 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
- requestId?: string | undefined;
464
463
  error?: string | undefined;
464
+ requestId?: 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
- requestId?: string | undefined;
475
474
  error?: string | undefined;
475
+ requestId?: string | undefined;
476
476
  }>;
477
477
  export declare const terminalFileReadPayloadSchema: z.ZodObject<{
478
478
  path: z.ZodString;
@@ -500,14 +500,14 @@ export declare const terminalFileReadResultPayloadSchema: z.ZodObject<{
500
500
  encoding: "utf8";
501
501
  content: string;
502
502
  truncated: boolean;
503
- requestId?: string | undefined;
504
503
  error?: string | undefined;
504
+ requestId?: string | undefined;
505
505
  size?: number | undefined;
506
506
  }, {
507
507
  path: string;
508
+ error?: string | undefined;
508
509
  requestId?: string | undefined;
509
510
  encoding?: "utf8" | undefined;
510
- error?: string | undefined;
511
511
  size?: number | undefined;
512
512
  content?: string | undefined;
513
513
  truncated?: boolean | undefined;
@@ -527,16 +527,16 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
527
527
  timestamp: z.ZodNumber;
528
528
  }, "strip", z.ZodTypeAny, {
529
529
  requestId: string;
530
+ timestamp: number;
530
531
  toolName: string;
531
532
  toolInput: string;
532
533
  permissionRequest: string;
533
- timestamp: number;
534
534
  }, {
535
535
  requestId: string;
536
+ timestamp: number;
536
537
  toolName: string;
537
538
  toolInput: string;
538
539
  permissionRequest: string;
539
- timestamp: number;
540
540
  }>>;
541
541
  permissionResolution: z.ZodOptional<z.ZodObject<{
542
542
  requestId: z.ZodString;
@@ -558,18 +558,18 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
558
558
  machineId: z.ZodOptional<z.ZodString>;
559
559
  }, "strip", z.ZodTypeAny, {
560
560
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
561
- machineId?: string | undefined;
562
561
  seq?: number | undefined;
562
+ machineId?: string | undefined;
563
563
  toolName?: string | undefined;
564
564
  toolInput?: string | undefined;
565
565
  permissionRequest?: string | undefined;
566
566
  summary?: string | undefined;
567
567
  topPermission?: {
568
568
  requestId: string;
569
+ timestamp: number;
569
570
  toolName: string;
570
571
  toolInput: string;
571
572
  permissionRequest: string;
572
- timestamp: number;
573
573
  } | undefined;
574
574
  permissionResolution?: {
575
575
  requestId: string;
@@ -580,18 +580,18 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
580
580
  pendingPermissionCount?: number | undefined;
581
581
  }, {
582
582
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
583
- machineId?: string | undefined;
584
583
  seq?: number | undefined;
584
+ machineId?: string | undefined;
585
585
  toolName?: string | undefined;
586
586
  toolInput?: string | undefined;
587
587
  permissionRequest?: string | undefined;
588
588
  summary?: string | undefined;
589
589
  topPermission?: {
590
590
  requestId: string;
591
+ timestamp: number;
591
592
  toolName: string;
592
593
  toolInput: string;
593
594
  permissionRequest: string;
594
- timestamp: number;
595
595
  } | undefined;
596
596
  permissionResolution?: {
597
597
  requestId: string;
@@ -661,19 +661,19 @@ export declare const tunnelRequestPayloadSchema: z.ZodObject<{
661
661
  body: z.ZodNullable<z.ZodString>;
662
662
  port: z.ZodNumber;
663
663
  }, "strip", z.ZodTypeAny, {
664
+ headers: Record<string, string>;
664
665
  requestId: string;
665
- body: string | null;
666
+ port: number;
666
667
  method: string;
667
668
  url: string;
668
- headers: Record<string, string>;
669
- port: number;
669
+ body: string | null;
670
670
  }, {
671
+ headers: Record<string, string>;
671
672
  requestId: string;
672
- body: string | null;
673
+ port: number;
673
674
  method: string;
674
675
  url: string;
675
- headers: Record<string, string>;
676
- port: number;
676
+ body: string | null;
677
677
  }>;
678
678
  export declare const tunnelResponsePayloadSchema: z.ZodObject<{
679
679
  requestId: z.ZodString;
@@ -682,16 +682,16 @@ export declare const tunnelResponsePayloadSchema: z.ZodObject<{
682
682
  body: z.ZodString;
683
683
  isFinal: z.ZodBoolean;
684
684
  }, "strip", z.ZodTypeAny, {
685
+ headers: Record<string, string>;
685
686
  requestId: string;
686
- body: string;
687
687
  isFinal: boolean;
688
- headers: Record<string, string>;
688
+ body: string;
689
689
  statusCode: number;
690
690
  }, {
691
+ headers: Record<string, string>;
691
692
  requestId: string;
692
- body: string;
693
693
  isFinal: boolean;
694
- headers: Record<string, string>;
694
+ body: string;
695
695
  statusCode: number;
696
696
  }>;
697
697
  export declare const tunnelWsDataPayloadSchema: z.ZodObject<{
@@ -764,15 +764,15 @@ export declare const agentMessageSchema: z.ZodObject<{
764
764
  createdAt: z.ZodNumber;
765
765
  isStreaming: z.ZodOptional<z.ZodBoolean>;
766
766
  }, "strip", z.ZodTypeAny, {
767
+ id: string;
767
768
  role: "user" | "assistant" | "system";
768
769
  content: string;
769
- id: string;
770
770
  createdAt: number;
771
771
  isStreaming?: boolean | undefined;
772
772
  }, {
773
+ id: string;
773
774
  role: "user" | "assistant" | "system";
774
775
  content: string;
775
- id: string;
776
776
  createdAt: number;
777
777
  isStreaming?: boolean | undefined;
778
778
  }>;
@@ -785,14 +785,14 @@ export declare const agentToolCallSchema: z.ZodObject<{
785
785
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
786
786
  }, "strip", z.ZodTypeAny, {
787
787
  status: "running" | "pending" | "completed" | "failed";
788
- name: string;
789
788
  id: string;
789
+ name: string;
790
790
  createdAt?: number | undefined;
791
791
  input?: string | undefined;
792
792
  output?: string | undefined;
793
793
  }, {
794
- name: string;
795
794
  id: string;
795
+ name: string;
796
796
  status?: "running" | "pending" | "completed" | "failed" | undefined;
797
797
  createdAt?: number | undefined;
798
798
  input?: string | undefined;
@@ -861,9 +861,9 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
861
861
  disabledReason: z.ZodOptional<z.ZodString>;
862
862
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
863
863
  }, "strip", z.ZodTypeAny, {
864
+ id: string;
864
865
  name: string;
865
866
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
866
- id: string;
867
867
  title: string;
868
868
  argsMode: "none" | "optional" | "required" | "raw";
869
869
  executionKind: "prompt" | "native" | "local_ui";
@@ -874,8 +874,8 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
874
874
  destructive?: boolean | undefined;
875
875
  disabledReason?: string | undefined;
876
876
  }, {
877
- name: string;
878
877
  id: string;
878
+ name: string;
879
879
  title: string;
880
880
  provider?: "custom" | "claude" | "codex" | undefined;
881
881
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -936,9 +936,9 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
936
936
  disabledReason: z.ZodOptional<z.ZodString>;
937
937
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
938
938
  }, "strip", z.ZodTypeAny, {
939
+ id: string;
939
940
  name: string;
940
941
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
941
- id: string;
942
942
  title: string;
943
943
  argsMode: "none" | "optional" | "required" | "raw";
944
944
  executionKind: "prompt" | "native" | "local_ui";
@@ -949,8 +949,8 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
949
949
  destructive?: boolean | undefined;
950
950
  disabledReason?: string | undefined;
951
951
  }, {
952
- name: string;
953
952
  id: string;
953
+ name: string;
954
954
  title: string;
955
955
  provider?: "custom" | "claude" | "codex" | undefined;
956
956
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -978,8 +978,8 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
978
978
  currentMode: z.ZodOptional<z.ZodString>;
979
979
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
980
980
  }, "strip", z.ZodTypeAny, {
981
- enabled: boolean;
982
981
  id: "custom" | "claude" | "codex";
982
+ enabled: boolean;
983
983
  label: string;
984
984
  reason?: string | undefined;
985
985
  supportsImages?: boolean | undefined;
@@ -994,9 +994,9 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
994
994
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
995
995
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
996
996
  commands?: {
997
+ id: string;
997
998
  name: string;
998
999
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
999
- id: string;
1000
1000
  title: string;
1001
1001
  argsMode: "none" | "optional" | "required" | "raw";
1002
1002
  executionKind: "prompt" | "native" | "local_ui";
@@ -1015,8 +1015,8 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
1015
1015
  currentMode?: string | undefined;
1016
1016
  features?: Record<string, boolean> | undefined;
1017
1017
  }, {
1018
- enabled: boolean;
1019
1018
  id: "custom" | "claude" | "codex";
1019
+ enabled: boolean;
1020
1020
  label: string;
1021
1021
  reason?: string | undefined;
1022
1022
  supportsImages?: boolean | undefined;
@@ -1031,8 +1031,8 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
1031
1031
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1032
1032
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1033
1033
  commands?: {
1034
- name: string;
1035
1034
  id: string;
1035
+ name: string;
1036
1036
  title: string;
1037
1037
  provider?: "custom" | "claude" | "codex" | undefined;
1038
1038
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -1092,9 +1092,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1092
1092
  disabledReason: z.ZodOptional<z.ZodString>;
1093
1093
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
1094
1094
  }, "strip", z.ZodTypeAny, {
1095
+ id: string;
1095
1096
  name: string;
1096
1097
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1097
- id: string;
1098
1098
  title: string;
1099
1099
  argsMode: "none" | "optional" | "required" | "raw";
1100
1100
  executionKind: "prompt" | "native" | "local_ui";
@@ -1105,8 +1105,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1105
1105
  destructive?: boolean | undefined;
1106
1106
  disabledReason?: string | undefined;
1107
1107
  }, {
1108
- name: string;
1109
1108
  id: string;
1109
+ name: string;
1110
1110
  title: string;
1111
1111
  provider?: "custom" | "claude" | "codex" | undefined;
1112
1112
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -1134,8 +1134,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1134
1134
  currentMode: z.ZodOptional<z.ZodString>;
1135
1135
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1136
1136
  }, "strip", z.ZodTypeAny, {
1137
- enabled: boolean;
1138
1137
  id: "custom" | "claude" | "codex";
1138
+ enabled: boolean;
1139
1139
  label: string;
1140
1140
  reason?: string | undefined;
1141
1141
  supportsImages?: boolean | undefined;
@@ -1150,9 +1150,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1150
1150
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1151
1151
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1152
1152
  commands?: {
1153
+ id: string;
1153
1154
  name: string;
1154
1155
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1155
- id: string;
1156
1156
  title: string;
1157
1157
  argsMode: "none" | "optional" | "required" | "raw";
1158
1158
  executionKind: "prompt" | "native" | "local_ui";
@@ -1171,8 +1171,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1171
1171
  currentMode?: string | undefined;
1172
1172
  features?: Record<string, boolean> | undefined;
1173
1173
  }, {
1174
- enabled: boolean;
1175
1174
  id: "custom" | "claude" | "codex";
1175
+ enabled: boolean;
1176
1176
  label: string;
1177
1177
  reason?: string | undefined;
1178
1178
  supportsImages?: boolean | undefined;
@@ -1187,8 +1187,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1187
1187
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1188
1188
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1189
1189
  commands?: {
1190
- name: string;
1191
1190
  id: string;
1191
+ name: string;
1192
1192
  title: string;
1193
1193
  provider?: "custom" | "claude" | "codex" | undefined;
1194
1194
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -1226,13 +1226,13 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1226
1226
  supportsSessionList: boolean;
1227
1227
  supportsSessionLoad: boolean;
1228
1228
  supportsAudio: boolean;
1229
+ error?: string | undefined;
1229
1230
  provider?: "custom" | "claude" | "codex" | undefined;
1230
1231
  protocolVersion?: number | undefined;
1231
1232
  machineId?: string | undefined;
1232
- error?: string | undefined;
1233
1233
  providers?: {
1234
- enabled: boolean;
1235
1234
  id: "custom" | "claude" | "codex";
1235
+ enabled: boolean;
1236
1236
  label: string;
1237
1237
  reason?: string | undefined;
1238
1238
  supportsImages?: boolean | undefined;
@@ -1247,9 +1247,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1247
1247
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1248
1248
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1249
1249
  commands?: {
1250
+ id: string;
1250
1251
  name: string;
1251
1252
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1252
- id: string;
1253
1253
  title: string;
1254
1254
  argsMode: "none" | "optional" | "required" | "raw";
1255
1255
  executionKind: "prompt" | "native" | "local_ui";
@@ -1270,17 +1270,17 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1270
1270
  }[] | undefined;
1271
1271
  }, {
1272
1272
  enabled: boolean;
1273
+ error?: string | undefined;
1273
1274
  provider?: "custom" | "claude" | "codex" | undefined;
1274
1275
  protocolVersion?: number | undefined;
1275
1276
  machineId?: string | undefined;
1276
- error?: string | undefined;
1277
1277
  supportsImages?: boolean | undefined;
1278
1278
  supportsPermission?: boolean | undefined;
1279
1279
  supportsPlan?: boolean | undefined;
1280
1280
  supportsCancel?: boolean | undefined;
1281
1281
  providers?: {
1282
- enabled: boolean;
1283
1282
  id: "custom" | "claude" | "codex";
1283
+ enabled: boolean;
1284
1284
  label: string;
1285
1285
  reason?: string | undefined;
1286
1286
  supportsImages?: boolean | undefined;
@@ -1295,8 +1295,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1295
1295
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1296
1296
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1297
1297
  commands?: {
1298
- name: string;
1299
1298
  id: string;
1299
+ name: string;
1300
1300
  title: string;
1301
1301
  provider?: "custom" | "claude" | "codex" | undefined;
1302
1302
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -1409,15 +1409,15 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1409
1409
  createdAt: z.ZodNumber;
1410
1410
  isStreaming: z.ZodOptional<z.ZodBoolean>;
1411
1411
  }, "strip", z.ZodTypeAny, {
1412
+ id: string;
1412
1413
  role: "user" | "assistant" | "system";
1413
1414
  content: string;
1414
- id: string;
1415
1415
  createdAt: number;
1416
1416
  isStreaming?: boolean | undefined;
1417
1417
  }, {
1418
+ id: string;
1418
1419
  role: "user" | "assistant" | "system";
1419
1420
  content: string;
1420
- id: string;
1421
1421
  createdAt: number;
1422
1422
  isStreaming?: boolean | undefined;
1423
1423
  }>>;
@@ -1431,14 +1431,14 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1431
1431
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
1432
1432
  }, "strip", z.ZodTypeAny, {
1433
1433
  status: "running" | "pending" | "completed" | "failed";
1434
- name: string;
1435
1434
  id: string;
1435
+ name: string;
1436
1436
  createdAt?: number | undefined;
1437
1437
  input?: string | undefined;
1438
1438
  output?: string | undefined;
1439
1439
  }, {
1440
- name: string;
1441
1440
  id: string;
1441
+ name: string;
1442
1442
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1443
1443
  createdAt?: number | undefined;
1444
1444
  input?: string | undefined;
@@ -1460,17 +1460,17 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1460
1460
  status: z.ZodOptional<z.ZodEnum<["idle", "running", "waiting_permission", "error"]>>;
1461
1461
  error: z.ZodOptional<z.ZodString>;
1462
1462
  }, "strip", z.ZodTypeAny, {
1463
- kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
1463
+ kind: "error" | "message" | "status" | "message_delta" | "tool_call" | "tool_result" | "plan";
1464
+ error?: string | undefined;
1464
1465
  message?: {
1466
+ id: string;
1465
1467
  role: "user" | "assistant" | "system";
1466
1468
  content: string;
1467
- id: string;
1468
1469
  createdAt: number;
1469
1470
  isStreaming?: boolean | undefined;
1470
1471
  } | undefined;
1471
1472
  status?: "error" | "running" | "idle" | "waiting_permission" | undefined;
1472
1473
  agentSessionId?: string | undefined;
1473
- error?: string | undefined;
1474
1474
  plan?: {
1475
1475
  status: "pending" | "completed" | "in_progress";
1476
1476
  id: string;
@@ -1479,24 +1479,24 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1479
1479
  delta?: string | undefined;
1480
1480
  toolCall?: {
1481
1481
  status: "running" | "pending" | "completed" | "failed";
1482
- name: string;
1483
1482
  id: string;
1483
+ name: string;
1484
1484
  createdAt?: number | undefined;
1485
1485
  input?: string | undefined;
1486
1486
  output?: string | undefined;
1487
1487
  } | undefined;
1488
1488
  }, {
1489
- kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
1489
+ kind: "error" | "message" | "status" | "message_delta" | "tool_call" | "tool_result" | "plan";
1490
+ error?: string | undefined;
1490
1491
  message?: {
1492
+ id: string;
1491
1493
  role: "user" | "assistant" | "system";
1492
1494
  content: string;
1493
- id: string;
1494
1495
  createdAt: number;
1495
1496
  isStreaming?: boolean | undefined;
1496
1497
  } | undefined;
1497
1498
  status?: "error" | "running" | "idle" | "waiting_permission" | undefined;
1498
1499
  agentSessionId?: string | undefined;
1499
- error?: string | undefined;
1500
1500
  plan?: {
1501
1501
  status: "pending" | "completed" | "in_progress";
1502
1502
  id: string;
@@ -1504,8 +1504,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1504
1504
  }[] | undefined;
1505
1505
  delta?: string | undefined;
1506
1506
  toolCall?: {
1507
- name: string;
1508
1507
  id: string;
1508
+ name: string;
1509
1509
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1510
1510
  createdAt?: number | undefined;
1511
1511
  input?: string | undefined;
@@ -1613,9 +1613,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1613
1613
  disabledReason: z.ZodOptional<z.ZodString>;
1614
1614
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
1615
1615
  }, "strip", z.ZodTypeAny, {
1616
+ id: string;
1616
1617
  name: string;
1617
1618
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1618
- id: string;
1619
1619
  title: string;
1620
1620
  argsMode: "none" | "optional" | "required" | "raw";
1621
1621
  executionKind: "prompt" | "native" | "local_ui";
@@ -1626,8 +1626,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1626
1626
  destructive?: boolean | undefined;
1627
1627
  disabledReason?: string | undefined;
1628
1628
  }, {
1629
- name: string;
1630
1629
  id: string;
1630
+ name: string;
1631
1631
  title: string;
1632
1632
  provider?: "custom" | "claude" | "codex" | undefined;
1633
1633
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -1655,8 +1655,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1655
1655
  currentMode: z.ZodOptional<z.ZodString>;
1656
1656
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1657
1657
  }, "strip", z.ZodTypeAny, {
1658
- enabled: boolean;
1659
1658
  id: "custom" | "claude" | "codex";
1659
+ enabled: boolean;
1660
1660
  label: string;
1661
1661
  reason?: string | undefined;
1662
1662
  supportsImages?: boolean | undefined;
@@ -1671,9 +1671,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1671
1671
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1672
1672
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1673
1673
  commands?: {
1674
+ id: string;
1674
1675
  name: string;
1675
1676
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1676
- id: string;
1677
1677
  title: string;
1678
1678
  argsMode: "none" | "optional" | "required" | "raw";
1679
1679
  executionKind: "prompt" | "native" | "local_ui";
@@ -1692,8 +1692,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1692
1692
  currentMode?: string | undefined;
1693
1693
  features?: Record<string, boolean> | undefined;
1694
1694
  }, {
1695
- enabled: boolean;
1696
1695
  id: "custom" | "claude" | "codex";
1696
+ enabled: boolean;
1697
1697
  label: string;
1698
1698
  reason?: string | undefined;
1699
1699
  supportsImages?: boolean | undefined;
@@ -1708,8 +1708,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1708
1708
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1709
1709
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1710
1710
  commands?: {
1711
- name: string;
1712
1711
  id: string;
1712
+ name: string;
1713
1713
  title: string;
1714
1714
  provider?: "custom" | "claude" | "codex" | undefined;
1715
1715
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -1747,13 +1747,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1747
1747
  supportsSessionList: boolean;
1748
1748
  supportsSessionLoad: boolean;
1749
1749
  supportsAudio: boolean;
1750
+ error?: string | undefined;
1750
1751
  provider?: "custom" | "claude" | "codex" | undefined;
1751
1752
  protocolVersion?: number | undefined;
1752
1753
  machineId?: string | undefined;
1753
- error?: string | undefined;
1754
1754
  providers?: {
1755
- enabled: boolean;
1756
1755
  id: "custom" | "claude" | "codex";
1756
+ enabled: boolean;
1757
1757
  label: string;
1758
1758
  reason?: string | undefined;
1759
1759
  supportsImages?: boolean | undefined;
@@ -1768,9 +1768,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1768
1768
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1769
1769
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1770
1770
  commands?: {
1771
+ id: string;
1771
1772
  name: string;
1772
1773
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1773
- id: string;
1774
1774
  title: string;
1775
1775
  argsMode: "none" | "optional" | "required" | "raw";
1776
1776
  executionKind: "prompt" | "native" | "local_ui";
@@ -1791,17 +1791,17 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1791
1791
  }[] | undefined;
1792
1792
  }, {
1793
1793
  enabled: boolean;
1794
+ error?: string | undefined;
1794
1795
  provider?: "custom" | "claude" | "codex" | undefined;
1795
1796
  protocolVersion?: number | undefined;
1796
1797
  machineId?: string | undefined;
1797
- error?: string | undefined;
1798
1798
  supportsImages?: boolean | undefined;
1799
1799
  supportsPermission?: boolean | undefined;
1800
1800
  supportsPlan?: boolean | undefined;
1801
1801
  supportsCancel?: boolean | undefined;
1802
1802
  providers?: {
1803
- enabled: boolean;
1804
1803
  id: "custom" | "claude" | "codex";
1804
+ enabled: boolean;
1805
1805
  label: string;
1806
1806
  reason?: string | undefined;
1807
1807
  supportsImages?: boolean | undefined;
@@ -1816,8 +1816,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1816
1816
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1817
1817
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1818
1818
  commands?: {
1819
- name: string;
1820
1819
  id: string;
1820
+ name: string;
1821
1821
  title: string;
1822
1822
  provider?: "custom" | "claude" | "codex" | undefined;
1823
1823
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -1848,15 +1848,15 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1848
1848
  createdAt: z.ZodNumber;
1849
1849
  isStreaming: z.ZodOptional<z.ZodBoolean>;
1850
1850
  }, "strip", z.ZodTypeAny, {
1851
+ id: string;
1851
1852
  role: "user" | "assistant" | "system";
1852
1853
  content: string;
1853
- id: string;
1854
1854
  createdAt: number;
1855
1855
  isStreaming?: boolean | undefined;
1856
1856
  }, {
1857
+ id: string;
1857
1858
  role: "user" | "assistant" | "system";
1858
1859
  content: string;
1859
- id: string;
1860
1860
  createdAt: number;
1861
1861
  isStreaming?: boolean | undefined;
1862
1862
  }>, "many">>;
@@ -1869,14 +1869,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1869
1869
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
1870
1870
  }, "strip", z.ZodTypeAny, {
1871
1871
  status: "running" | "pending" | "completed" | "failed";
1872
- name: string;
1873
1872
  id: string;
1873
+ name: string;
1874
1874
  createdAt?: number | undefined;
1875
1875
  input?: string | undefined;
1876
1876
  output?: string | undefined;
1877
1877
  }, {
1878
- name: string;
1879
1878
  id: string;
1879
+ name: string;
1880
1880
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1881
1881
  createdAt?: number | undefined;
1882
1882
  input?: string | undefined;
@@ -1926,16 +1926,16 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1926
1926
  }, "strip", z.ZodTypeAny, {
1927
1927
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
1928
1928
  messages: {
1929
+ id: string;
1929
1930
  role: "user" | "assistant" | "system";
1930
1931
  content: string;
1931
- id: string;
1932
1932
  createdAt: number;
1933
1933
  isStreaming?: boolean | undefined;
1934
1934
  }[];
1935
1935
  toolCalls: {
1936
1936
  status: "running" | "pending" | "completed" | "failed";
1937
- name: string;
1938
1937
  id: string;
1938
+ name: string;
1939
1939
  createdAt?: number | undefined;
1940
1940
  input?: string | undefined;
1941
1941
  output?: string | undefined;
@@ -1951,8 +1951,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1951
1951
  toolInput?: string | undefined;
1952
1952
  context?: string | undefined;
1953
1953
  }[];
1954
- agentSessionId?: string | undefined;
1955
1954
  error?: string | undefined;
1955
+ agentSessionId?: string | undefined;
1956
1956
  capabilities?: {
1957
1957
  enabled: boolean;
1958
1958
  supportsImages: boolean;
@@ -1962,13 +1962,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1962
1962
  supportsSessionList: boolean;
1963
1963
  supportsSessionLoad: boolean;
1964
1964
  supportsAudio: boolean;
1965
+ error?: string | undefined;
1965
1966
  provider?: "custom" | "claude" | "codex" | undefined;
1966
1967
  protocolVersion?: number | undefined;
1967
1968
  machineId?: string | undefined;
1968
- error?: string | undefined;
1969
1969
  providers?: {
1970
- enabled: boolean;
1971
1970
  id: "custom" | "claude" | "codex";
1971
+ enabled: boolean;
1972
1972
  label: string;
1973
1973
  reason?: string | undefined;
1974
1974
  supportsImages?: boolean | undefined;
@@ -1983,9 +1983,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1983
1983
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1984
1984
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1985
1985
  commands?: {
1986
+ id: string;
1986
1987
  name: string;
1987
1988
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1988
- id: string;
1989
1989
  title: string;
1990
1990
  argsMode: "none" | "optional" | "required" | "raw";
1991
1991
  executionKind: "prompt" | "native" | "local_ui";
@@ -2006,22 +2006,22 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
2006
2006
  }[] | undefined;
2007
2007
  } | undefined;
2008
2008
  }, {
2009
+ error?: string | undefined;
2009
2010
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
2010
2011
  agentSessionId?: string | undefined;
2011
- error?: string | undefined;
2012
2012
  capabilities?: {
2013
2013
  enabled: boolean;
2014
+ error?: string | undefined;
2014
2015
  provider?: "custom" | "claude" | "codex" | undefined;
2015
2016
  protocolVersion?: number | undefined;
2016
2017
  machineId?: string | undefined;
2017
- error?: string | undefined;
2018
2018
  supportsImages?: boolean | undefined;
2019
2019
  supportsPermission?: boolean | undefined;
2020
2020
  supportsPlan?: boolean | undefined;
2021
2021
  supportsCancel?: boolean | undefined;
2022
2022
  providers?: {
2023
- enabled: boolean;
2024
2023
  id: "custom" | "claude" | "codex";
2024
+ enabled: boolean;
2025
2025
  label: string;
2026
2026
  reason?: string | undefined;
2027
2027
  supportsImages?: boolean | undefined;
@@ -2036,8 +2036,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
2036
2036
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
2037
2037
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
2038
2038
  commands?: {
2039
- name: string;
2040
2039
  id: string;
2040
+ name: string;
2041
2041
  title: string;
2042
2042
  provider?: "custom" | "claude" | "codex" | undefined;
2043
2043
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -2062,15 +2062,15 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
2062
2062
  supportsAudio?: boolean | undefined;
2063
2063
  } | undefined;
2064
2064
  messages?: {
2065
+ id: string;
2065
2066
  role: "user" | "assistant" | "system";
2066
2067
  content: string;
2067
- id: string;
2068
2068
  createdAt: number;
2069
2069
  isStreaming?: boolean | undefined;
2070
2070
  }[] | undefined;
2071
2071
  toolCalls?: {
2072
- name: string;
2073
2072
  id: string;
2073
+ name: string;
2074
2074
  status?: "running" | "pending" | "completed" | "failed" | undefined;
2075
2075
  createdAt?: number | undefined;
2076
2076
  input?: string | undefined;
@@ -2454,14 +2454,14 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2454
2454
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
2455
2455
  }, "strip", z.ZodTypeAny, {
2456
2456
  status: "running" | "pending" | "completed" | "failed";
2457
- name: string;
2458
2457
  id: string;
2458
+ name: string;
2459
2459
  createdAt?: number | undefined;
2460
2460
  input?: string | undefined;
2461
2461
  output?: string | undefined;
2462
2462
  }, {
2463
- name: string;
2464
2463
  id: string;
2464
+ name: string;
2465
2465
  status?: "running" | "pending" | "completed" | "failed" | undefined;
2466
2466
  createdAt?: number | undefined;
2467
2467
  input?: string | undefined;
@@ -2747,13 +2747,13 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2747
2747
  updatedAt: z.ZodOptional<z.ZodNumber>;
2748
2748
  isStreaming: z.ZodOptional<z.ZodBoolean>;
2749
2749
  }, "strip", z.ZodTypeAny, {
2750
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
2750
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
2751
2751
  conversationId: string;
2752
2752
  id: string;
2753
2753
  createdAt: number;
2754
+ error?: string | undefined;
2754
2755
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
2755
2756
  role?: "user" | "assistant" | "system" | undefined;
2756
- error?: string | undefined;
2757
2757
  content?: {
2758
2758
  type: "text" | "image";
2759
2759
  data?: string | undefined;
@@ -2770,8 +2770,8 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2770
2770
  isStreaming?: boolean | undefined;
2771
2771
  toolCall?: {
2772
2772
  status: "running" | "pending" | "completed" | "failed";
2773
- name: string;
2774
2773
  id: string;
2774
+ name: string;
2775
2775
  createdAt?: number | undefined;
2776
2776
  input?: string | undefined;
2777
2777
  output?: string | undefined;
@@ -2847,13 +2847,13 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2847
2847
  metadata?: Record<string, unknown> | undefined;
2848
2848
  updatedAt?: number | undefined;
2849
2849
  }, {
2850
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
2850
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
2851
2851
  conversationId: string;
2852
2852
  id: string;
2853
2853
  createdAt: number;
2854
+ error?: string | undefined;
2854
2855
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
2855
2856
  role?: "user" | "assistant" | "system" | undefined;
2856
- error?: string | undefined;
2857
2857
  content?: {
2858
2858
  type: "text" | "image";
2859
2859
  data?: string | undefined;
@@ -2869,8 +2869,8 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2869
2869
  }[] | undefined;
2870
2870
  isStreaming?: boolean | undefined;
2871
2871
  toolCall?: {
2872
- name: string;
2873
2872
  id: string;
2873
+ name: string;
2874
2874
  status?: "running" | "pending" | "completed" | "failed" | undefined;
2875
2875
  createdAt?: number | undefined;
2876
2876
  input?: string | undefined;
@@ -2964,9 +2964,9 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
2964
2964
  createdAt: z.ZodNumber;
2965
2965
  }, "strip", z.ZodTypeAny, {
2966
2966
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
2967
+ id: string;
2967
2968
  provider: "custom" | "claude" | "codex";
2968
2969
  cwd: string;
2969
- id: string;
2970
2970
  createdAt: number;
2971
2971
  archived: boolean;
2972
2972
  lastActivityAt: number;
@@ -2975,11 +2975,11 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
2975
2975
  model?: string | undefined;
2976
2976
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
2977
2977
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
2978
- collaborationMode?: "plan" | "default" | undefined;
2978
+ collaborationMode?: "default" | "plan" | undefined;
2979
2979
  lastMessagePreview?: string | undefined;
2980
2980
  }, {
2981
- cwd: string;
2982
2981
  id: string;
2982
+ cwd: string;
2983
2983
  createdAt: number;
2984
2984
  lastActivityAt: number;
2985
2985
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -2989,7 +2989,7 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
2989
2989
  model?: string | undefined;
2990
2990
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
2991
2991
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
2992
- collaborationMode?: "plan" | "default" | undefined;
2992
+ collaborationMode?: "default" | "plan" | undefined;
2993
2993
  archived?: boolean | undefined;
2994
2994
  lastMessagePreview?: string | undefined;
2995
2995
  }>;
@@ -3034,9 +3034,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3034
3034
  disabledReason: z.ZodOptional<z.ZodString>;
3035
3035
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
3036
3036
  }, "strip", z.ZodTypeAny, {
3037
+ id: string;
3037
3038
  name: string;
3038
3039
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
3039
- id: string;
3040
3040
  title: string;
3041
3041
  argsMode: "none" | "optional" | "required" | "raw";
3042
3042
  executionKind: "prompt" | "native" | "local_ui";
@@ -3047,8 +3047,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3047
3047
  destructive?: boolean | undefined;
3048
3048
  disabledReason?: string | undefined;
3049
3049
  }, {
3050
- name: string;
3051
3050
  id: string;
3051
+ name: string;
3052
3052
  title: string;
3053
3053
  provider?: "custom" | "claude" | "codex" | undefined;
3054
3054
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -3076,8 +3076,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3076
3076
  currentMode: z.ZodOptional<z.ZodString>;
3077
3077
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
3078
3078
  }, "strip", z.ZodTypeAny, {
3079
- enabled: boolean;
3080
3079
  id: "custom" | "claude" | "codex";
3080
+ enabled: boolean;
3081
3081
  label: string;
3082
3082
  reason?: string | undefined;
3083
3083
  supportsImages?: boolean | undefined;
@@ -3092,9 +3092,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3092
3092
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3093
3093
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3094
3094
  commands?: {
3095
+ id: string;
3095
3096
  name: string;
3096
3097
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
3097
- id: string;
3098
3098
  title: string;
3099
3099
  argsMode: "none" | "optional" | "required" | "raw";
3100
3100
  executionKind: "prompt" | "native" | "local_ui";
@@ -3113,8 +3113,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3113
3113
  currentMode?: string | undefined;
3114
3114
  features?: Record<string, boolean> | undefined;
3115
3115
  }, {
3116
- enabled: boolean;
3117
3116
  id: "custom" | "claude" | "codex";
3117
+ enabled: boolean;
3118
3118
  label: string;
3119
3119
  reason?: string | undefined;
3120
3120
  supportsImages?: boolean | undefined;
@@ -3129,8 +3129,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3129
3129
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3130
3130
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3131
3131
  commands?: {
3132
- name: string;
3133
3132
  id: string;
3133
+ name: string;
3134
3134
  title: string;
3135
3135
  provider?: "custom" | "claude" | "codex" | undefined;
3136
3136
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -3171,13 +3171,13 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3171
3171
  supportsSessionLoad: boolean;
3172
3172
  supportsAudio: boolean;
3173
3173
  workspaceProtocolVersion: number;
3174
+ error?: string | undefined;
3174
3175
  provider?: "custom" | "claude" | "codex" | undefined;
3175
3176
  protocolVersion?: number | undefined;
3176
3177
  machineId?: string | undefined;
3177
- error?: string | undefined;
3178
3178
  providers?: {
3179
- enabled: boolean;
3180
3179
  id: "custom" | "claude" | "codex";
3180
+ enabled: boolean;
3181
3181
  label: string;
3182
3182
  reason?: string | undefined;
3183
3183
  supportsImages?: boolean | undefined;
@@ -3192,9 +3192,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3192
3192
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3193
3193
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3194
3194
  commands?: {
3195
+ id: string;
3195
3196
  name: string;
3196
3197
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
3197
- id: string;
3198
3198
  title: string;
3199
3199
  argsMode: "none" | "optional" | "required" | "raw";
3200
3200
  executionKind: "prompt" | "native" | "local_ui";
@@ -3215,17 +3215,17 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3215
3215
  }[] | undefined;
3216
3216
  }, {
3217
3217
  enabled: boolean;
3218
+ error?: string | undefined;
3218
3219
  provider?: "custom" | "claude" | "codex" | undefined;
3219
3220
  protocolVersion?: number | undefined;
3220
3221
  machineId?: string | undefined;
3221
- error?: string | undefined;
3222
3222
  supportsImages?: boolean | undefined;
3223
3223
  supportsPermission?: boolean | undefined;
3224
3224
  supportsPlan?: boolean | undefined;
3225
3225
  supportsCancel?: boolean | undefined;
3226
3226
  providers?: {
3227
- enabled: boolean;
3228
3227
  id: "custom" | "claude" | "codex";
3228
+ enabled: boolean;
3229
3229
  label: string;
3230
3230
  reason?: string | undefined;
3231
3231
  supportsImages?: boolean | undefined;
@@ -3240,8 +3240,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3240
3240
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3241
3241
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3242
3242
  commands?: {
3243
- name: string;
3244
3243
  id: string;
3244
+ name: string;
3245
3245
  title: string;
3246
3246
  provider?: "custom" | "claude" | "codex" | undefined;
3247
3247
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -3285,7 +3285,7 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
3285
3285
  model?: string | undefined;
3286
3286
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3287
3287
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3288
- collaborationMode?: "plan" | "default" | undefined;
3288
+ collaborationMode?: "default" | "plan" | undefined;
3289
3289
  }, {
3290
3290
  conversationId?: string | undefined;
3291
3291
  agentSessionId?: string | undefined;
@@ -3295,7 +3295,7 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
3295
3295
  model?: string | undefined;
3296
3296
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3297
3297
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3298
- collaborationMode?: "plan" | "default" | undefined;
3298
+ collaborationMode?: "default" | "plan" | undefined;
3299
3299
  }>;
3300
3300
  export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3301
3301
  conversation: z.ZodObject<{
@@ -3315,9 +3315,9 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3315
3315
  createdAt: z.ZodNumber;
3316
3316
  }, "strip", z.ZodTypeAny, {
3317
3317
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
3318
+ id: string;
3318
3319
  provider: "custom" | "claude" | "codex";
3319
3320
  cwd: string;
3320
- id: string;
3321
3321
  createdAt: number;
3322
3322
  archived: boolean;
3323
3323
  lastActivityAt: number;
@@ -3326,11 +3326,11 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3326
3326
  model?: string | undefined;
3327
3327
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3328
3328
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3329
- collaborationMode?: "plan" | "default" | undefined;
3329
+ collaborationMode?: "default" | "plan" | undefined;
3330
3330
  lastMessagePreview?: string | undefined;
3331
3331
  }, {
3332
- cwd: string;
3333
3332
  id: string;
3333
+ cwd: string;
3334
3334
  createdAt: number;
3335
3335
  lastActivityAt: number;
3336
3336
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -3340,7 +3340,7 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3340
3340
  model?: string | undefined;
3341
3341
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3342
3342
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3343
- collaborationMode?: "plan" | "default" | undefined;
3343
+ collaborationMode?: "default" | "plan" | undefined;
3344
3344
  archived?: boolean | undefined;
3345
3345
  lastMessagePreview?: string | undefined;
3346
3346
  }>;
@@ -3378,14 +3378,14 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3378
3378
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
3379
3379
  }, "strip", z.ZodTypeAny, {
3380
3380
  status: "running" | "pending" | "completed" | "failed";
3381
- name: string;
3382
3381
  id: string;
3382
+ name: string;
3383
3383
  createdAt?: number | undefined;
3384
3384
  input?: string | undefined;
3385
3385
  output?: string | undefined;
3386
3386
  }, {
3387
- name: string;
3388
3387
  id: string;
3388
+ name: string;
3389
3389
  status?: "running" | "pending" | "completed" | "failed" | undefined;
3390
3390
  createdAt?: number | undefined;
3391
3391
  input?: string | undefined;
@@ -3671,13 +3671,13 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3671
3671
  updatedAt: z.ZodOptional<z.ZodNumber>;
3672
3672
  isStreaming: z.ZodOptional<z.ZodBoolean>;
3673
3673
  }, "strip", z.ZodTypeAny, {
3674
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
3674
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
3675
3675
  conversationId: string;
3676
3676
  id: string;
3677
3677
  createdAt: number;
3678
+ error?: string | undefined;
3678
3679
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3679
3680
  role?: "user" | "assistant" | "system" | undefined;
3680
- error?: string | undefined;
3681
3681
  content?: {
3682
3682
  type: "text" | "image";
3683
3683
  data?: string | undefined;
@@ -3694,8 +3694,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3694
3694
  isStreaming?: boolean | undefined;
3695
3695
  toolCall?: {
3696
3696
  status: "running" | "pending" | "completed" | "failed";
3697
- name: string;
3698
3697
  id: string;
3698
+ name: string;
3699
3699
  createdAt?: number | undefined;
3700
3700
  input?: string | undefined;
3701
3701
  output?: string | undefined;
@@ -3771,13 +3771,13 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3771
3771
  metadata?: Record<string, unknown> | undefined;
3772
3772
  updatedAt?: number | undefined;
3773
3773
  }, {
3774
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
3774
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
3775
3775
  conversationId: string;
3776
3776
  id: string;
3777
3777
  createdAt: number;
3778
+ error?: string | undefined;
3778
3779
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3779
3780
  role?: "user" | "assistant" | "system" | undefined;
3780
- error?: string | undefined;
3781
3781
  content?: {
3782
3782
  type: "text" | "image";
3783
3783
  data?: string | undefined;
@@ -3793,8 +3793,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3793
3793
  }[] | undefined;
3794
3794
  isStreaming?: boolean | undefined;
3795
3795
  toolCall?: {
3796
- name: string;
3797
3796
  id: string;
3797
+ name: string;
3798
3798
  status?: "running" | "pending" | "completed" | "failed" | undefined;
3799
3799
  createdAt?: number | undefined;
3800
3800
  input?: string | undefined;
@@ -3875,9 +3875,9 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3875
3875
  }, "strip", z.ZodTypeAny, {
3876
3876
  conversation: {
3877
3877
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
3878
+ id: string;
3878
3879
  provider: "custom" | "claude" | "codex";
3879
3880
  cwd: string;
3880
- id: string;
3881
3881
  createdAt: number;
3882
3882
  archived: boolean;
3883
3883
  lastActivityAt: number;
@@ -3886,17 +3886,17 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3886
3886
  model?: string | undefined;
3887
3887
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3888
3888
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3889
- collaborationMode?: "plan" | "default" | undefined;
3889
+ collaborationMode?: "default" | "plan" | undefined;
3890
3890
  lastMessagePreview?: string | undefined;
3891
3891
  };
3892
3892
  snapshot: {
3893
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
3893
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
3894
3894
  conversationId: string;
3895
3895
  id: string;
3896
3896
  createdAt: number;
3897
+ error?: string | undefined;
3897
3898
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3898
3899
  role?: "user" | "assistant" | "system" | undefined;
3899
- error?: string | undefined;
3900
3900
  content?: {
3901
3901
  type: "text" | "image";
3902
3902
  data?: string | undefined;
@@ -3913,8 +3913,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3913
3913
  isStreaming?: boolean | undefined;
3914
3914
  toolCall?: {
3915
3915
  status: "running" | "pending" | "completed" | "failed";
3916
- name: string;
3917
3916
  id: string;
3917
+ name: string;
3918
3918
  createdAt?: number | undefined;
3919
3919
  input?: string | undefined;
3920
3920
  output?: string | undefined;
@@ -3993,8 +3993,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3993
3993
  requestedConversationId?: string | undefined;
3994
3994
  }, {
3995
3995
  conversation: {
3996
- cwd: string;
3997
3996
  id: string;
3997
+ cwd: string;
3998
3998
  createdAt: number;
3999
3999
  lastActivityAt: number;
4000
4000
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -4004,18 +4004,18 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
4004
4004
  model?: string | undefined;
4005
4005
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4006
4006
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4007
- collaborationMode?: "plan" | "default" | undefined;
4007
+ collaborationMode?: "default" | "plan" | undefined;
4008
4008
  archived?: boolean | undefined;
4009
4009
  lastMessagePreview?: string | undefined;
4010
4010
  };
4011
4011
  snapshot?: {
4012
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
4012
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
4013
4013
  conversationId: string;
4014
4014
  id: string;
4015
4015
  createdAt: number;
4016
+ error?: string | undefined;
4016
4017
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4017
4018
  role?: "user" | "assistant" | "system" | undefined;
4018
- error?: string | undefined;
4019
4019
  content?: {
4020
4020
  type: "text" | "image";
4021
4021
  data?: string | undefined;
@@ -4031,8 +4031,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
4031
4031
  }[] | undefined;
4032
4032
  isStreaming?: boolean | undefined;
4033
4033
  toolCall?: {
4034
- name: string;
4035
4034
  id: string;
4035
+ name: string;
4036
4036
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4037
4037
  createdAt?: number | undefined;
4038
4038
  input?: string | undefined;
@@ -4136,9 +4136,9 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4136
4136
  createdAt: z.ZodNumber;
4137
4137
  }, "strip", z.ZodTypeAny, {
4138
4138
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4139
+ id: string;
4139
4140
  provider: "custom" | "claude" | "codex";
4140
4141
  cwd: string;
4141
- id: string;
4142
4142
  createdAt: number;
4143
4143
  archived: boolean;
4144
4144
  lastActivityAt: number;
@@ -4147,11 +4147,11 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4147
4147
  model?: string | undefined;
4148
4148
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4149
4149
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4150
- collaborationMode?: "plan" | "default" | undefined;
4150
+ collaborationMode?: "default" | "plan" | undefined;
4151
4151
  lastMessagePreview?: string | undefined;
4152
4152
  }, {
4153
- cwd: string;
4154
4153
  id: string;
4154
+ cwd: string;
4155
4155
  createdAt: number;
4156
4156
  lastActivityAt: number;
4157
4157
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -4161,16 +4161,16 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4161
4161
  model?: string | undefined;
4162
4162
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4163
4163
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4164
- collaborationMode?: "plan" | "default" | undefined;
4164
+ collaborationMode?: "default" | "plan" | undefined;
4165
4165
  archived?: boolean | undefined;
4166
4166
  lastMessagePreview?: string | undefined;
4167
4167
  }>, "many">;
4168
4168
  }, "strip", z.ZodTypeAny, {
4169
4169
  conversations: {
4170
4170
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4171
+ id: string;
4171
4172
  provider: "custom" | "claude" | "codex";
4172
4173
  cwd: string;
4173
- id: string;
4174
4174
  createdAt: number;
4175
4175
  archived: boolean;
4176
4176
  lastActivityAt: number;
@@ -4179,13 +4179,13 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4179
4179
  model?: string | undefined;
4180
4180
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4181
4181
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4182
- collaborationMode?: "plan" | "default" | undefined;
4182
+ collaborationMode?: "default" | "plan" | undefined;
4183
4183
  lastMessagePreview?: string | undefined;
4184
4184
  }[];
4185
4185
  }, {
4186
4186
  conversations: {
4187
- cwd: string;
4188
4187
  id: string;
4188
+ cwd: string;
4189
4189
  createdAt: number;
4190
4190
  lastActivityAt: number;
4191
4191
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -4195,7 +4195,7 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4195
4195
  model?: string | undefined;
4196
4196
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4197
4197
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4198
- collaborationMode?: "plan" | "default" | undefined;
4198
+ collaborationMode?: "default" | "plan" | undefined;
4199
4199
  archived?: boolean | undefined;
4200
4200
  lastMessagePreview?: string | undefined;
4201
4201
  }[];
@@ -4238,7 +4238,7 @@ export declare const agentV2PromptPayloadSchema: z.ZodObject<{
4238
4238
  model?: string | undefined;
4239
4239
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4240
4240
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4241
- collaborationMode?: "plan" | "default" | undefined;
4241
+ collaborationMode?: "default" | "plan" | undefined;
4242
4242
  targetTurnId?: string | undefined;
4243
4243
  }, {
4244
4244
  conversationId: string;
@@ -4252,7 +4252,7 @@ export declare const agentV2PromptPayloadSchema: z.ZodObject<{
4252
4252
  model?: string | undefined;
4253
4253
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4254
4254
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4255
- collaborationMode?: "plan" | "default" | undefined;
4255
+ collaborationMode?: "default" | "plan" | undefined;
4256
4256
  delivery?: "auto" | "new_turn" | "steer" | undefined;
4257
4257
  targetTurnId?: string | undefined;
4258
4258
  }>;
@@ -4336,9 +4336,9 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4336
4336
  createdAt: z.ZodNumber;
4337
4337
  }, "strip", z.ZodTypeAny, {
4338
4338
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4339
+ id: string;
4339
4340
  provider: "custom" | "claude" | "codex";
4340
4341
  cwd: string;
4341
- id: string;
4342
4342
  createdAt: number;
4343
4343
  archived: boolean;
4344
4344
  lastActivityAt: number;
@@ -4347,11 +4347,11 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4347
4347
  model?: string | undefined;
4348
4348
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4349
4349
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4350
- collaborationMode?: "plan" | "default" | undefined;
4350
+ collaborationMode?: "default" | "plan" | undefined;
4351
4351
  lastMessagePreview?: string | undefined;
4352
4352
  }, {
4353
- cwd: string;
4354
4353
  id: string;
4354
+ cwd: string;
4355
4355
  createdAt: number;
4356
4356
  lastActivityAt: number;
4357
4357
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -4361,7 +4361,7 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4361
4361
  model?: string | undefined;
4362
4362
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4363
4363
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4364
- collaborationMode?: "plan" | "default" | undefined;
4364
+ collaborationMode?: "default" | "plan" | undefined;
4365
4365
  archived?: boolean | undefined;
4366
4366
  lastMessagePreview?: string | undefined;
4367
4367
  }>, "many">>;
@@ -4400,14 +4400,14 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4400
4400
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
4401
4401
  }, "strip", z.ZodTypeAny, {
4402
4402
  status: "running" | "pending" | "completed" | "failed";
4403
- name: string;
4404
4403
  id: string;
4404
+ name: string;
4405
4405
  createdAt?: number | undefined;
4406
4406
  input?: string | undefined;
4407
4407
  output?: string | undefined;
4408
4408
  }, {
4409
- name: string;
4410
4409
  id: string;
4410
+ name: string;
4411
4411
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4412
4412
  createdAt?: number | undefined;
4413
4413
  input?: string | undefined;
@@ -4693,13 +4693,13 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4693
4693
  updatedAt: z.ZodOptional<z.ZodNumber>;
4694
4694
  isStreaming: z.ZodOptional<z.ZodBoolean>;
4695
4695
  }, "strip", z.ZodTypeAny, {
4696
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
4696
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
4697
4697
  conversationId: string;
4698
4698
  id: string;
4699
4699
  createdAt: number;
4700
+ error?: string | undefined;
4700
4701
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4701
4702
  role?: "user" | "assistant" | "system" | undefined;
4702
- error?: string | undefined;
4703
4703
  content?: {
4704
4704
  type: "text" | "image";
4705
4705
  data?: string | undefined;
@@ -4716,8 +4716,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4716
4716
  isStreaming?: boolean | undefined;
4717
4717
  toolCall?: {
4718
4718
  status: "running" | "pending" | "completed" | "failed";
4719
- name: string;
4720
4719
  id: string;
4720
+ name: string;
4721
4721
  createdAt?: number | undefined;
4722
4722
  input?: string | undefined;
4723
4723
  output?: string | undefined;
@@ -4793,13 +4793,13 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4793
4793
  metadata?: Record<string, unknown> | undefined;
4794
4794
  updatedAt?: number | undefined;
4795
4795
  }, {
4796
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
4796
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
4797
4797
  conversationId: string;
4798
4798
  id: string;
4799
4799
  createdAt: number;
4800
+ error?: string | undefined;
4800
4801
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4801
4802
  role?: "user" | "assistant" | "system" | undefined;
4802
- error?: string | undefined;
4803
4803
  content?: {
4804
4804
  type: "text" | "image";
4805
4805
  data?: string | undefined;
@@ -4815,8 +4815,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4815
4815
  }[] | undefined;
4816
4816
  isStreaming?: boolean | undefined;
4817
4817
  toolCall?: {
4818
- name: string;
4819
4818
  id: string;
4819
+ name: string;
4820
4820
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4821
4821
  createdAt?: number | undefined;
4822
4822
  input?: string | undefined;
@@ -4897,9 +4897,9 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4897
4897
  }, "strip", z.ZodTypeAny, {
4898
4898
  conversations: {
4899
4899
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4900
+ id: string;
4900
4901
  provider: "custom" | "claude" | "codex";
4901
4902
  cwd: string;
4902
- id: string;
4903
4903
  createdAt: number;
4904
4904
  archived: boolean;
4905
4905
  lastActivityAt: number;
@@ -4908,17 +4908,17 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4908
4908
  model?: string | undefined;
4909
4909
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4910
4910
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4911
- collaborationMode?: "plan" | "default" | undefined;
4911
+ collaborationMode?: "default" | "plan" | undefined;
4912
4912
  lastMessagePreview?: string | undefined;
4913
4913
  }[];
4914
4914
  items: {
4915
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
4915
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
4916
4916
  conversationId: string;
4917
4917
  id: string;
4918
4918
  createdAt: number;
4919
+ error?: string | undefined;
4919
4920
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4920
4921
  role?: "user" | "assistant" | "system" | undefined;
4921
- error?: string | undefined;
4922
4922
  content?: {
4923
4923
  type: "text" | "image";
4924
4924
  data?: string | undefined;
@@ -4935,8 +4935,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4935
4935
  isStreaming?: boolean | undefined;
4936
4936
  toolCall?: {
4937
4937
  status: "running" | "pending" | "completed" | "failed";
4938
- name: string;
4939
4938
  id: string;
4939
+ name: string;
4940
4940
  createdAt?: number | undefined;
4941
4941
  input?: string | undefined;
4942
4942
  output?: string | undefined;
@@ -5017,8 +5017,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
5017
5017
  }, {
5018
5018
  machineId?: string | undefined;
5019
5019
  conversations?: {
5020
- cwd: string;
5021
5020
  id: string;
5021
+ cwd: string;
5022
5022
  createdAt: number;
5023
5023
  lastActivityAt: number;
5024
5024
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -5028,19 +5028,19 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
5028
5028
  model?: string | undefined;
5029
5029
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
5030
5030
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
5031
- collaborationMode?: "plan" | "default" | undefined;
5031
+ collaborationMode?: "default" | "plan" | undefined;
5032
5032
  archived?: boolean | undefined;
5033
5033
  lastMessagePreview?: string | undefined;
5034
5034
  }[] | undefined;
5035
5035
  activeConversationId?: string | undefined;
5036
5036
  items?: {
5037
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
5037
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
5038
5038
  conversationId: string;
5039
5039
  id: string;
5040
5040
  createdAt: number;
5041
+ error?: string | undefined;
5041
5042
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5042
5043
  role?: "user" | "assistant" | "system" | undefined;
5043
- error?: string | undefined;
5044
5044
  content?: {
5045
5045
  type: "text" | "image";
5046
5046
  data?: string | undefined;
@@ -5056,8 +5056,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
5056
5056
  }[] | undefined;
5057
5057
  isStreaming?: boolean | undefined;
5058
5058
  toolCall?: {
5059
- name: string;
5060
5059
  id: string;
5060
+ name: string;
5061
5061
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5062
5062
  createdAt?: number | undefined;
5063
5063
  input?: string | undefined;
@@ -5154,9 +5154,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5154
5154
  createdAt: z.ZodNumber;
5155
5155
  }, "strip", z.ZodTypeAny, {
5156
5156
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
5157
+ id: string;
5157
5158
  provider: "custom" | "claude" | "codex";
5158
5159
  cwd: string;
5159
- id: string;
5160
5160
  createdAt: number;
5161
5161
  archived: boolean;
5162
5162
  lastActivityAt: number;
@@ -5165,11 +5165,11 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5165
5165
  model?: string | undefined;
5166
5166
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
5167
5167
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
5168
- collaborationMode?: "plan" | "default" | undefined;
5168
+ collaborationMode?: "default" | "plan" | undefined;
5169
5169
  lastMessagePreview?: string | undefined;
5170
5170
  }, {
5171
- cwd: string;
5172
5171
  id: string;
5172
+ cwd: string;
5173
5173
  createdAt: number;
5174
5174
  lastActivityAt: number;
5175
5175
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -5179,7 +5179,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5179
5179
  model?: string | undefined;
5180
5180
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
5181
5181
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
5182
- collaborationMode?: "plan" | "default" | undefined;
5182
+ collaborationMode?: "default" | "plan" | undefined;
5183
5183
  archived?: boolean | undefined;
5184
5184
  lastMessagePreview?: string | undefined;
5185
5185
  }>>;
@@ -5217,14 +5217,14 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5217
5217
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
5218
5218
  }, "strip", z.ZodTypeAny, {
5219
5219
  status: "running" | "pending" | "completed" | "failed";
5220
- name: string;
5221
5220
  id: string;
5221
+ name: string;
5222
5222
  createdAt?: number | undefined;
5223
5223
  input?: string | undefined;
5224
5224
  output?: string | undefined;
5225
5225
  }, {
5226
- name: string;
5227
5226
  id: string;
5227
+ name: string;
5228
5228
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5229
5229
  createdAt?: number | undefined;
5230
5230
  input?: string | undefined;
@@ -5510,13 +5510,13 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5510
5510
  updatedAt: z.ZodOptional<z.ZodNumber>;
5511
5511
  isStreaming: z.ZodOptional<z.ZodBoolean>;
5512
5512
  }, "strip", z.ZodTypeAny, {
5513
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
5513
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
5514
5514
  conversationId: string;
5515
5515
  id: string;
5516
5516
  createdAt: number;
5517
+ error?: string | undefined;
5517
5518
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5518
5519
  role?: "user" | "assistant" | "system" | undefined;
5519
- error?: string | undefined;
5520
5520
  content?: {
5521
5521
  type: "text" | "image";
5522
5522
  data?: string | undefined;
@@ -5533,8 +5533,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5533
5533
  isStreaming?: boolean | undefined;
5534
5534
  toolCall?: {
5535
5535
  status: "running" | "pending" | "completed" | "failed";
5536
- name: string;
5537
5536
  id: string;
5537
+ name: string;
5538
5538
  createdAt?: number | undefined;
5539
5539
  input?: string | undefined;
5540
5540
  output?: string | undefined;
@@ -5610,13 +5610,13 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5610
5610
  metadata?: Record<string, unknown> | undefined;
5611
5611
  updatedAt?: number | undefined;
5612
5612
  }, {
5613
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
5613
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
5614
5614
  conversationId: string;
5615
5615
  id: string;
5616
5616
  createdAt: number;
5617
+ error?: string | undefined;
5617
5618
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5618
5619
  role?: "user" | "assistant" | "system" | undefined;
5619
- error?: string | undefined;
5620
5620
  content?: {
5621
5621
  type: "text" | "image";
5622
5622
  data?: string | undefined;
@@ -5632,8 +5632,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5632
5632
  }[] | undefined;
5633
5633
  isStreaming?: boolean | undefined;
5634
5634
  toolCall?: {
5635
- name: string;
5636
5635
  id: string;
5636
+ name: string;
5637
5637
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5638
5638
  createdAt?: number | undefined;
5639
5639
  input?: string | undefined;
@@ -5742,14 +5742,14 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5742
5742
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
5743
5743
  }, "strip", z.ZodTypeAny, {
5744
5744
  status: "running" | "pending" | "completed" | "failed";
5745
- name: string;
5746
5745
  id: string;
5746
+ name: string;
5747
5747
  createdAt?: number | undefined;
5748
5748
  input?: string | undefined;
5749
5749
  output?: string | undefined;
5750
5750
  }, {
5751
- name: string;
5752
5751
  id: string;
5752
+ name: string;
5753
5753
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5754
5754
  createdAt?: number | undefined;
5755
5755
  input?: string | undefined;
@@ -6034,9 +6034,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6034
6034
  isStreaming: z.ZodOptional<z.ZodBoolean>;
6035
6035
  }, "strip", z.ZodTypeAny, {
6036
6036
  itemId: string;
6037
+ error?: string | undefined;
6037
6038
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6038
6039
  role?: "user" | "assistant" | "system" | undefined;
6039
- error?: string | undefined;
6040
6040
  content?: {
6041
6041
  type: "text" | "image";
6042
6042
  data?: string | undefined;
@@ -6053,8 +6053,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6053
6053
  isStreaming?: boolean | undefined;
6054
6054
  toolCall?: {
6055
6055
  status: "running" | "pending" | "completed" | "failed";
6056
- name: string;
6057
6056
  id: string;
6057
+ name: string;
6058
6058
  createdAt?: number | undefined;
6059
6059
  input?: string | undefined;
6060
6060
  output?: string | undefined;
@@ -6130,9 +6130,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6130
6130
  textDelta?: string | undefined;
6131
6131
  }, {
6132
6132
  itemId: string;
6133
+ error?: string | undefined;
6133
6134
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6134
6135
  role?: "user" | "assistant" | "system" | undefined;
6135
- error?: string | undefined;
6136
6136
  content?: {
6137
6137
  type: "text" | "image";
6138
6138
  data?: string | undefined;
@@ -6148,8 +6148,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6148
6148
  }[] | undefined;
6149
6149
  isStreaming?: boolean | undefined;
6150
6150
  toolCall?: {
6151
- name: string;
6152
6151
  id: string;
6152
+ name: string;
6153
6153
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6154
6154
  createdAt?: number | undefined;
6155
6155
  input?: string | undefined;
@@ -6229,9 +6229,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6229
6229
  conversationId: string;
6230
6230
  conversation?: {
6231
6231
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
6232
+ id: string;
6232
6233
  provider: "custom" | "claude" | "codex";
6233
6234
  cwd: string;
6234
- id: string;
6235
6235
  createdAt: number;
6236
6236
  archived: boolean;
6237
6237
  lastActivityAt: number;
@@ -6240,17 +6240,17 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6240
6240
  model?: string | undefined;
6241
6241
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
6242
6242
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
6243
- collaborationMode?: "plan" | "default" | undefined;
6243
+ collaborationMode?: "default" | "plan" | undefined;
6244
6244
  lastMessagePreview?: string | undefined;
6245
6245
  } | undefined;
6246
6246
  item?: {
6247
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
6247
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
6248
6248
  conversationId: string;
6249
6249
  id: string;
6250
6250
  createdAt: number;
6251
+ error?: string | undefined;
6251
6252
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6252
6253
  role?: "user" | "assistant" | "system" | undefined;
6253
- error?: string | undefined;
6254
6254
  content?: {
6255
6255
  type: "text" | "image";
6256
6256
  data?: string | undefined;
@@ -6267,8 +6267,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6267
6267
  isStreaming?: boolean | undefined;
6268
6268
  toolCall?: {
6269
6269
  status: "running" | "pending" | "completed" | "failed";
6270
- name: string;
6271
6270
  id: string;
6271
+ name: string;
6272
6272
  createdAt?: number | undefined;
6273
6273
  input?: string | undefined;
6274
6274
  output?: string | undefined;
@@ -6346,9 +6346,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6346
6346
  } | undefined;
6347
6347
  patch?: {
6348
6348
  itemId: string;
6349
+ error?: string | undefined;
6349
6350
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6350
6351
  role?: "user" | "assistant" | "system" | undefined;
6351
- error?: string | undefined;
6352
6352
  content?: {
6353
6353
  type: "text" | "image";
6354
6354
  data?: string | undefined;
@@ -6365,8 +6365,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6365
6365
  isStreaming?: boolean | undefined;
6366
6366
  toolCall?: {
6367
6367
  status: "running" | "pending" | "completed" | "failed";
6368
- name: string;
6369
6368
  id: string;
6369
+ name: string;
6370
6370
  createdAt?: number | undefined;
6371
6371
  input?: string | undefined;
6372
6372
  output?: string | undefined;
@@ -6444,8 +6444,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6444
6444
  }, {
6445
6445
  conversationId: string;
6446
6446
  conversation?: {
6447
- cwd: string;
6448
6447
  id: string;
6448
+ cwd: string;
6449
6449
  createdAt: number;
6450
6450
  lastActivityAt: number;
6451
6451
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -6455,18 +6455,18 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6455
6455
  model?: string | undefined;
6456
6456
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
6457
6457
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
6458
- collaborationMode?: "plan" | "default" | undefined;
6458
+ collaborationMode?: "default" | "plan" | undefined;
6459
6459
  archived?: boolean | undefined;
6460
6460
  lastMessagePreview?: string | undefined;
6461
6461
  } | undefined;
6462
6462
  item?: {
6463
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
6463
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
6464
6464
  conversationId: string;
6465
6465
  id: string;
6466
6466
  createdAt: number;
6467
+ error?: string | undefined;
6467
6468
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6468
6469
  role?: "user" | "assistant" | "system" | undefined;
6469
- error?: string | undefined;
6470
6470
  content?: {
6471
6471
  type: "text" | "image";
6472
6472
  data?: string | undefined;
@@ -6482,8 +6482,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6482
6482
  }[] | undefined;
6483
6483
  isStreaming?: boolean | undefined;
6484
6484
  toolCall?: {
6485
- name: string;
6486
6485
  id: string;
6486
+ name: string;
6487
6487
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6488
6488
  createdAt?: number | undefined;
6489
6489
  input?: string | undefined;
@@ -6562,9 +6562,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6562
6562
  } | undefined;
6563
6563
  patch?: {
6564
6564
  itemId: string;
6565
+ error?: string | undefined;
6565
6566
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6566
6567
  role?: "user" | "assistant" | "system" | undefined;
6567
- error?: string | undefined;
6568
6568
  content?: {
6569
6569
  type: "text" | "image";
6570
6570
  data?: string | undefined;
@@ -6580,8 +6580,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6580
6580
  }[] | undefined;
6581
6581
  isStreaming?: boolean | undefined;
6582
6582
  toolCall?: {
6583
- name: string;
6584
6583
  id: string;
6584
+ name: string;
6585
6585
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6586
6586
  createdAt?: number | undefined;
6587
6587
  input?: string | undefined;
@@ -6712,14 +6712,14 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6712
6712
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
6713
6713
  }, "strip", z.ZodTypeAny, {
6714
6714
  status: "running" | "pending" | "completed" | "failed";
6715
- name: string;
6716
6715
  id: string;
6716
+ name: string;
6717
6717
  createdAt?: number | undefined;
6718
6718
  input?: string | undefined;
6719
6719
  output?: string | undefined;
6720
6720
  }, {
6721
- name: string;
6722
6721
  id: string;
6722
+ name: string;
6723
6723
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6724
6724
  createdAt?: number | undefined;
6725
6725
  input?: string | undefined;
@@ -7005,13 +7005,13 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7005
7005
  updatedAt: z.ZodOptional<z.ZodNumber>;
7006
7006
  isStreaming: z.ZodOptional<z.ZodBoolean>;
7007
7007
  }, "strip", z.ZodTypeAny, {
7008
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7008
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
7009
7009
  conversationId: string;
7010
7010
  id: string;
7011
7011
  createdAt: number;
7012
+ error?: string | undefined;
7012
7013
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7013
7014
  role?: "user" | "assistant" | "system" | undefined;
7014
- error?: string | undefined;
7015
7015
  content?: {
7016
7016
  type: "text" | "image";
7017
7017
  data?: string | undefined;
@@ -7028,8 +7028,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7028
7028
  isStreaming?: boolean | undefined;
7029
7029
  toolCall?: {
7030
7030
  status: "running" | "pending" | "completed" | "failed";
7031
- name: string;
7032
7031
  id: string;
7032
+ name: string;
7033
7033
  createdAt?: number | undefined;
7034
7034
  input?: string | undefined;
7035
7035
  output?: string | undefined;
@@ -7105,13 +7105,13 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7105
7105
  metadata?: Record<string, unknown> | undefined;
7106
7106
  updatedAt?: number | undefined;
7107
7107
  }, {
7108
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7108
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
7109
7109
  conversationId: string;
7110
7110
  id: string;
7111
7111
  createdAt: number;
7112
+ error?: string | undefined;
7112
7113
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7113
7114
  role?: "user" | "assistant" | "system" | undefined;
7114
- error?: string | undefined;
7115
7115
  content?: {
7116
7116
  type: "text" | "image";
7117
7117
  data?: string | undefined;
@@ -7127,8 +7127,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7127
7127
  }[] | undefined;
7128
7128
  isStreaming?: boolean | undefined;
7129
7129
  toolCall?: {
7130
- name: string;
7131
7130
  id: string;
7131
+ name: string;
7132
7132
  status?: "running" | "pending" | "completed" | "failed" | undefined;
7133
7133
  createdAt?: number | undefined;
7134
7134
  input?: string | undefined;
@@ -7217,13 +7217,13 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7217
7217
  toolInput?: string | undefined;
7218
7218
  context?: string | undefined;
7219
7219
  item?: {
7220
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7220
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
7221
7221
  conversationId: string;
7222
7222
  id: string;
7223
7223
  createdAt: number;
7224
+ error?: string | undefined;
7224
7225
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7225
7226
  role?: "user" | "assistant" | "system" | undefined;
7226
- error?: string | undefined;
7227
7227
  content?: {
7228
7228
  type: "text" | "image";
7229
7229
  data?: string | undefined;
@@ -7240,8 +7240,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7240
7240
  isStreaming?: boolean | undefined;
7241
7241
  toolCall?: {
7242
7242
  status: "running" | "pending" | "completed" | "failed";
7243
- name: string;
7244
7243
  id: string;
7244
+ name: string;
7245
7245
  createdAt?: number | undefined;
7246
7246
  input?: string | undefined;
7247
7247
  output?: string | undefined;
@@ -7329,13 +7329,13 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7329
7329
  toolInput?: string | undefined;
7330
7330
  context?: string | undefined;
7331
7331
  item?: {
7332
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7332
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
7333
7333
  conversationId: string;
7334
7334
  id: string;
7335
7335
  createdAt: number;
7336
+ error?: string | undefined;
7336
7337
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7337
7338
  role?: "user" | "assistant" | "system" | undefined;
7338
- error?: string | undefined;
7339
7339
  content?: {
7340
7340
  type: "text" | "image";
7341
7341
  data?: string | undefined;
@@ -7351,8 +7351,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7351
7351
  }[] | undefined;
7352
7352
  isStreaming?: boolean | undefined;
7353
7353
  toolCall?: {
7354
- name: string;
7355
7354
  id: string;
7355
+ name: string;
7356
7356
  status?: "running" | "pending" | "completed" | "failed" | undefined;
7357
7357
  createdAt?: number | undefined;
7358
7358
  input?: string | undefined;
@@ -7438,13 +7438,13 @@ export declare const agentV2NoticePayloadSchema: z.ZodObject<{
7438
7438
  durationMs: z.ZodOptional<z.ZodNumber>;
7439
7439
  }, "strip", z.ZodTypeAny, {
7440
7440
  title: string;
7441
- kind: "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "info" | "warning";
7441
+ kind: "info" | "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "warning";
7442
7442
  conversationId?: string | undefined;
7443
7443
  detail?: string | undefined;
7444
7444
  durationMs?: number | undefined;
7445
7445
  }, {
7446
7446
  title: string;
7447
- kind: "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "info" | "warning";
7447
+ kind: "info" | "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "warning";
7448
7448
  conversationId?: string | undefined;
7449
7449
  detail?: string | undefined;
7450
7450
  durationMs?: number | undefined;
@@ -7498,14 +7498,14 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
7498
7498
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
7499
7499
  }, "strip", z.ZodTypeAny, {
7500
7500
  status: "running" | "pending" | "completed" | "failed";
7501
- name: string;
7502
7501
  id: string;
7502
+ name: string;
7503
7503
  createdAt?: number | undefined;
7504
7504
  input?: string | undefined;
7505
7505
  output?: string | undefined;
7506
7506
  }, {
7507
- name: string;
7508
7507
  id: string;
7508
+ name: string;
7509
7509
  status?: "running" | "pending" | "completed" | "failed" | undefined;
7510
7510
  createdAt?: number | undefined;
7511
7511
  input?: string | undefined;
@@ -7791,13 +7791,13 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
7791
7791
  updatedAt: z.ZodOptional<z.ZodNumber>;
7792
7792
  isStreaming: z.ZodOptional<z.ZodBoolean>;
7793
7793
  }, "strip", z.ZodTypeAny, {
7794
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7794
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
7795
7795
  conversationId: string;
7796
7796
  id: string;
7797
7797
  createdAt: number;
7798
+ error?: string | undefined;
7798
7799
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7799
7800
  role?: "user" | "assistant" | "system" | undefined;
7800
- error?: string | undefined;
7801
7801
  content?: {
7802
7802
  type: "text" | "image";
7803
7803
  data?: string | undefined;
@@ -7814,8 +7814,8 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
7814
7814
  isStreaming?: boolean | undefined;
7815
7815
  toolCall?: {
7816
7816
  status: "running" | "pending" | "completed" | "failed";
7817
- name: string;
7818
7817
  id: string;
7818
+ name: string;
7819
7819
  createdAt?: number | undefined;
7820
7820
  input?: string | undefined;
7821
7821
  output?: string | undefined;
@@ -7891,13 +7891,13 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
7891
7891
  metadata?: Record<string, unknown> | undefined;
7892
7892
  updatedAt?: number | undefined;
7893
7893
  }, {
7894
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7894
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
7895
7895
  conversationId: string;
7896
7896
  id: string;
7897
7897
  createdAt: number;
7898
+ error?: string | undefined;
7898
7899
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7899
7900
  role?: "user" | "assistant" | "system" | undefined;
7900
- error?: string | undefined;
7901
7901
  content?: {
7902
7902
  type: "text" | "image";
7903
7903
  data?: string | undefined;
@@ -7913,8 +7913,8 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
7913
7913
  }[] | undefined;
7914
7914
  isStreaming?: boolean | undefined;
7915
7915
  toolCall?: {
7916
- name: string;
7917
7916
  id: string;
7917
+ name: string;
7918
7918
  status?: "running" | "pending" | "completed" | "failed" | undefined;
7919
7919
  createdAt?: number | undefined;
7920
7920
  input?: string | undefined;
@@ -7996,13 +7996,13 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
7996
7996
  }, "strip", z.ZodTypeAny, {
7997
7997
  conversationId: string;
7998
7998
  items: {
7999
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7999
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
8000
8000
  conversationId: string;
8001
8001
  id: string;
8002
8002
  createdAt: number;
8003
+ error?: string | undefined;
8003
8004
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
8004
8005
  role?: "user" | "assistant" | "system" | undefined;
8005
- error?: string | undefined;
8006
8006
  content?: {
8007
8007
  type: "text" | "image";
8008
8008
  data?: string | undefined;
@@ -8019,8 +8019,8 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
8019
8019
  isStreaming?: boolean | undefined;
8020
8020
  toolCall?: {
8021
8021
  status: "running" | "pending" | "completed" | "failed";
8022
- name: string;
8023
8022
  id: string;
8023
+ name: string;
8024
8024
  createdAt?: number | undefined;
8025
8025
  input?: string | undefined;
8026
8026
  output?: string | undefined;
@@ -8101,13 +8101,13 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
8101
8101
  }, {
8102
8102
  conversationId: string;
8103
8103
  items?: {
8104
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
8104
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
8105
8105
  conversationId: string;
8106
8106
  id: string;
8107
8107
  createdAt: number;
8108
+ error?: string | undefined;
8108
8109
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
8109
8110
  role?: "user" | "assistant" | "system" | undefined;
8110
- error?: string | undefined;
8111
8111
  content?: {
8112
8112
  type: "text" | "image";
8113
8113
  data?: string | undefined;
@@ -8123,8 +8123,8 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
8123
8123
  }[] | undefined;
8124
8124
  isStreaming?: boolean | undefined;
8125
8125
  toolCall?: {
8126
- name: string;
8127
8126
  id: string;
8127
+ name: string;
8128
8128
  status?: "running" | "pending" | "completed" | "failed" | undefined;
8129
8129
  createdAt?: number | undefined;
8130
8130
  input?: string | undefined;
@@ -8458,8 +8458,8 @@ export declare const protocolMessageSchemas: {
8458
8458
  error?: string | undefined;
8459
8459
  }, {
8460
8460
  active: boolean;
8461
- mode?: "webrtc" | "fallback" | "off" | undefined;
8462
8461
  error?: string | undefined;
8462
+ mode?: "webrtc" | "fallback" | "off" | undefined;
8463
8463
  }>;
8464
8464
  readonly "screen.offer": z.ZodObject<{
8465
8465
  sdp: z.ZodString;
@@ -8609,8 +8609,8 @@ export declare const protocolMessageSchemas: {
8609
8609
  size?: number | undefined;
8610
8610
  modifiedAt?: string | undefined;
8611
8611
  }[];
8612
- requestId?: string | undefined;
8613
8612
  error?: string | undefined;
8613
+ requestId?: string | undefined;
8614
8614
  }, {
8615
8615
  path: string;
8616
8616
  entries: {
@@ -8620,8 +8620,8 @@ export declare const protocolMessageSchemas: {
8620
8620
  size?: number | undefined;
8621
8621
  modifiedAt?: string | undefined;
8622
8622
  }[];
8623
- requestId?: string | undefined;
8624
8623
  error?: string | undefined;
8624
+ requestId?: string | undefined;
8625
8625
  }>;
8626
8626
  readonly "terminal.file.read": z.ZodObject<{
8627
8627
  path: z.ZodString;
@@ -8649,14 +8649,14 @@ export declare const protocolMessageSchemas: {
8649
8649
  encoding: "utf8";
8650
8650
  content: string;
8651
8651
  truncated: boolean;
8652
- requestId?: string | undefined;
8653
8652
  error?: string | undefined;
8653
+ requestId?: string | undefined;
8654
8654
  size?: number | undefined;
8655
8655
  }, {
8656
8656
  path: string;
8657
+ error?: string | undefined;
8657
8658
  requestId?: string | undefined;
8658
8659
  encoding?: "utf8" | undefined;
8659
- error?: string | undefined;
8660
8660
  size?: number | undefined;
8661
8661
  content?: string | undefined;
8662
8662
  truncated?: boolean | undefined;
@@ -8690,16 +8690,16 @@ export declare const protocolMessageSchemas: {
8690
8690
  timestamp: z.ZodNumber;
8691
8691
  }, "strip", z.ZodTypeAny, {
8692
8692
  requestId: string;
8693
+ timestamp: number;
8693
8694
  toolName: string;
8694
8695
  toolInput: string;
8695
8696
  permissionRequest: string;
8696
- timestamp: number;
8697
8697
  }, {
8698
8698
  requestId: string;
8699
+ timestamp: number;
8699
8700
  toolName: string;
8700
8701
  toolInput: string;
8701
8702
  permissionRequest: string;
8702
- timestamp: number;
8703
8703
  }>>;
8704
8704
  permissionResolution: z.ZodOptional<z.ZodObject<{
8705
8705
  requestId: z.ZodString;
@@ -8721,18 +8721,18 @@ export declare const protocolMessageSchemas: {
8721
8721
  machineId: z.ZodOptional<z.ZodString>;
8722
8722
  }, "strip", z.ZodTypeAny, {
8723
8723
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
8724
- machineId?: string | undefined;
8725
8724
  seq?: number | undefined;
8725
+ machineId?: string | undefined;
8726
8726
  toolName?: string | undefined;
8727
8727
  toolInput?: string | undefined;
8728
8728
  permissionRequest?: string | undefined;
8729
8729
  summary?: string | undefined;
8730
8730
  topPermission?: {
8731
8731
  requestId: string;
8732
+ timestamp: number;
8732
8733
  toolName: string;
8733
8734
  toolInput: string;
8734
8735
  permissionRequest: string;
8735
- timestamp: number;
8736
8736
  } | undefined;
8737
8737
  permissionResolution?: {
8738
8738
  requestId: string;
@@ -8743,18 +8743,18 @@ export declare const protocolMessageSchemas: {
8743
8743
  pendingPermissionCount?: number | undefined;
8744
8744
  }, {
8745
8745
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
8746
- machineId?: string | undefined;
8747
8746
  seq?: number | undefined;
8747
+ machineId?: string | undefined;
8748
8748
  toolName?: string | undefined;
8749
8749
  toolInput?: string | undefined;
8750
8750
  permissionRequest?: string | undefined;
8751
8751
  summary?: string | undefined;
8752
8752
  topPermission?: {
8753
8753
  requestId: string;
8754
+ timestamp: number;
8754
8755
  toolName: string;
8755
8756
  toolInput: string;
8756
8757
  permissionRequest: string;
8757
- timestamp: number;
8758
8758
  } | undefined;
8759
8759
  permissionResolution?: {
8760
8760
  requestId: string;
@@ -8804,19 +8804,19 @@ export declare const protocolMessageSchemas: {
8804
8804
  body: z.ZodNullable<z.ZodString>;
8805
8805
  port: z.ZodNumber;
8806
8806
  }, "strip", z.ZodTypeAny, {
8807
+ headers: Record<string, string>;
8807
8808
  requestId: string;
8808
- body: string | null;
8809
+ port: number;
8809
8810
  method: string;
8810
8811
  url: string;
8811
- headers: Record<string, string>;
8812
- port: number;
8812
+ body: string | null;
8813
8813
  }, {
8814
+ headers: Record<string, string>;
8814
8815
  requestId: string;
8815
- body: string | null;
8816
+ port: number;
8816
8817
  method: string;
8817
8818
  url: string;
8818
- headers: Record<string, string>;
8819
- port: number;
8819
+ body: string | null;
8820
8820
  }>;
8821
8821
  readonly "tunnel.response": z.ZodObject<{
8822
8822
  requestId: z.ZodString;
@@ -8825,16 +8825,16 @@ export declare const protocolMessageSchemas: {
8825
8825
  body: z.ZodString;
8826
8826
  isFinal: z.ZodBoolean;
8827
8827
  }, "strip", z.ZodTypeAny, {
8828
+ headers: Record<string, string>;
8828
8829
  requestId: string;
8829
- body: string;
8830
8830
  isFinal: boolean;
8831
- headers: Record<string, string>;
8831
+ body: string;
8832
8832
  statusCode: number;
8833
8833
  }, {
8834
+ headers: Record<string, string>;
8834
8835
  requestId: string;
8835
- body: string;
8836
8836
  isFinal: boolean;
8837
- headers: Record<string, string>;
8837
+ body: string;
8838
8838
  statusCode: number;
8839
8839
  }>;
8840
8840
  readonly "tunnel.ws.data": z.ZodObject<{
@@ -8921,9 +8921,9 @@ export declare const protocolMessageSchemas: {
8921
8921
  disabledReason: z.ZodOptional<z.ZodString>;
8922
8922
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
8923
8923
  }, "strip", z.ZodTypeAny, {
8924
+ id: string;
8924
8925
  name: string;
8925
8926
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
8926
- id: string;
8927
8927
  title: string;
8928
8928
  argsMode: "none" | "optional" | "required" | "raw";
8929
8929
  executionKind: "prompt" | "native" | "local_ui";
@@ -8934,8 +8934,8 @@ export declare const protocolMessageSchemas: {
8934
8934
  destructive?: boolean | undefined;
8935
8935
  disabledReason?: string | undefined;
8936
8936
  }, {
8937
- name: string;
8938
8937
  id: string;
8938
+ name: string;
8939
8939
  title: string;
8940
8940
  provider?: "custom" | "claude" | "codex" | undefined;
8941
8941
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -8963,8 +8963,8 @@ export declare const protocolMessageSchemas: {
8963
8963
  currentMode: z.ZodOptional<z.ZodString>;
8964
8964
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
8965
8965
  }, "strip", z.ZodTypeAny, {
8966
- enabled: boolean;
8967
8966
  id: "custom" | "claude" | "codex";
8967
+ enabled: boolean;
8968
8968
  label: string;
8969
8969
  reason?: string | undefined;
8970
8970
  supportsImages?: boolean | undefined;
@@ -8979,9 +8979,9 @@ export declare const protocolMessageSchemas: {
8979
8979
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8980
8980
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8981
8981
  commands?: {
8982
+ id: string;
8982
8983
  name: string;
8983
8984
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
8984
- id: string;
8985
8985
  title: string;
8986
8986
  argsMode: "none" | "optional" | "required" | "raw";
8987
8987
  executionKind: "prompt" | "native" | "local_ui";
@@ -9000,8 +9000,8 @@ export declare const protocolMessageSchemas: {
9000
9000
  currentMode?: string | undefined;
9001
9001
  features?: Record<string, boolean> | undefined;
9002
9002
  }, {
9003
- enabled: boolean;
9004
9003
  id: "custom" | "claude" | "codex";
9004
+ enabled: boolean;
9005
9005
  label: string;
9006
9006
  reason?: string | undefined;
9007
9007
  supportsImages?: boolean | undefined;
@@ -9016,8 +9016,8 @@ export declare const protocolMessageSchemas: {
9016
9016
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9017
9017
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9018
9018
  commands?: {
9019
- name: string;
9020
9019
  id: string;
9020
+ name: string;
9021
9021
  title: string;
9022
9022
  provider?: "custom" | "claude" | "codex" | undefined;
9023
9023
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -9055,13 +9055,13 @@ export declare const protocolMessageSchemas: {
9055
9055
  supportsSessionList: boolean;
9056
9056
  supportsSessionLoad: boolean;
9057
9057
  supportsAudio: boolean;
9058
+ error?: string | undefined;
9058
9059
  provider?: "custom" | "claude" | "codex" | undefined;
9059
9060
  protocolVersion?: number | undefined;
9060
9061
  machineId?: string | undefined;
9061
- error?: string | undefined;
9062
9062
  providers?: {
9063
- enabled: boolean;
9064
9063
  id: "custom" | "claude" | "codex";
9064
+ enabled: boolean;
9065
9065
  label: string;
9066
9066
  reason?: string | undefined;
9067
9067
  supportsImages?: boolean | undefined;
@@ -9076,9 +9076,9 @@ export declare const protocolMessageSchemas: {
9076
9076
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9077
9077
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9078
9078
  commands?: {
9079
+ id: string;
9079
9080
  name: string;
9080
9081
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
9081
- id: string;
9082
9082
  title: string;
9083
9083
  argsMode: "none" | "optional" | "required" | "raw";
9084
9084
  executionKind: "prompt" | "native" | "local_ui";
@@ -9099,17 +9099,17 @@ export declare const protocolMessageSchemas: {
9099
9099
  }[] | undefined;
9100
9100
  }, {
9101
9101
  enabled: boolean;
9102
+ error?: string | undefined;
9102
9103
  provider?: "custom" | "claude" | "codex" | undefined;
9103
9104
  protocolVersion?: number | undefined;
9104
9105
  machineId?: string | undefined;
9105
- error?: string | undefined;
9106
9106
  supportsImages?: boolean | undefined;
9107
9107
  supportsPermission?: boolean | undefined;
9108
9108
  supportsPlan?: boolean | undefined;
9109
9109
  supportsCancel?: boolean | undefined;
9110
9110
  providers?: {
9111
- enabled: boolean;
9112
9111
  id: "custom" | "claude" | "codex";
9112
+ enabled: boolean;
9113
9113
  label: string;
9114
9114
  reason?: string | undefined;
9115
9115
  supportsImages?: boolean | undefined;
@@ -9124,8 +9124,8 @@ export declare const protocolMessageSchemas: {
9124
9124
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9125
9125
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9126
9126
  commands?: {
9127
- name: string;
9128
9127
  id: string;
9128
+ name: string;
9129
9129
  title: string;
9130
9130
  provider?: "custom" | "claude" | "codex" | undefined;
9131
9131
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -9237,15 +9237,15 @@ export declare const protocolMessageSchemas: {
9237
9237
  createdAt: z.ZodNumber;
9238
9238
  isStreaming: z.ZodOptional<z.ZodBoolean>;
9239
9239
  }, "strip", z.ZodTypeAny, {
9240
+ id: string;
9240
9241
  role: "user" | "assistant" | "system";
9241
9242
  content: string;
9242
- id: string;
9243
9243
  createdAt: number;
9244
9244
  isStreaming?: boolean | undefined;
9245
9245
  }, {
9246
+ id: string;
9246
9247
  role: "user" | "assistant" | "system";
9247
9248
  content: string;
9248
- id: string;
9249
9249
  createdAt: number;
9250
9250
  isStreaming?: boolean | undefined;
9251
9251
  }>>;
@@ -9259,14 +9259,14 @@ export declare const protocolMessageSchemas: {
9259
9259
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
9260
9260
  }, "strip", z.ZodTypeAny, {
9261
9261
  status: "running" | "pending" | "completed" | "failed";
9262
- name: string;
9263
9262
  id: string;
9263
+ name: string;
9264
9264
  createdAt?: number | undefined;
9265
9265
  input?: string | undefined;
9266
9266
  output?: string | undefined;
9267
9267
  }, {
9268
- name: string;
9269
9268
  id: string;
9269
+ name: string;
9270
9270
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9271
9271
  createdAt?: number | undefined;
9272
9272
  input?: string | undefined;
@@ -9288,17 +9288,17 @@ export declare const protocolMessageSchemas: {
9288
9288
  status: z.ZodOptional<z.ZodEnum<["idle", "running", "waiting_permission", "error"]>>;
9289
9289
  error: z.ZodOptional<z.ZodString>;
9290
9290
  }, "strip", z.ZodTypeAny, {
9291
- kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
9291
+ kind: "error" | "message" | "status" | "message_delta" | "tool_call" | "tool_result" | "plan";
9292
+ error?: string | undefined;
9292
9293
  message?: {
9294
+ id: string;
9293
9295
  role: "user" | "assistant" | "system";
9294
9296
  content: string;
9295
- id: string;
9296
9297
  createdAt: number;
9297
9298
  isStreaming?: boolean | undefined;
9298
9299
  } | undefined;
9299
9300
  status?: "error" | "running" | "idle" | "waiting_permission" | undefined;
9300
9301
  agentSessionId?: string | undefined;
9301
- error?: string | undefined;
9302
9302
  plan?: {
9303
9303
  status: "pending" | "completed" | "in_progress";
9304
9304
  id: string;
@@ -9307,24 +9307,24 @@ export declare const protocolMessageSchemas: {
9307
9307
  delta?: string | undefined;
9308
9308
  toolCall?: {
9309
9309
  status: "running" | "pending" | "completed" | "failed";
9310
- name: string;
9311
9310
  id: string;
9311
+ name: string;
9312
9312
  createdAt?: number | undefined;
9313
9313
  input?: string | undefined;
9314
9314
  output?: string | undefined;
9315
9315
  } | undefined;
9316
9316
  }, {
9317
- kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
9317
+ kind: "error" | "message" | "status" | "message_delta" | "tool_call" | "tool_result" | "plan";
9318
+ error?: string | undefined;
9318
9319
  message?: {
9320
+ id: string;
9319
9321
  role: "user" | "assistant" | "system";
9320
9322
  content: string;
9321
- id: string;
9322
9323
  createdAt: number;
9323
9324
  isStreaming?: boolean | undefined;
9324
9325
  } | undefined;
9325
9326
  status?: "error" | "running" | "idle" | "waiting_permission" | undefined;
9326
9327
  agentSessionId?: string | undefined;
9327
- error?: string | undefined;
9328
9328
  plan?: {
9329
9329
  status: "pending" | "completed" | "in_progress";
9330
9330
  id: string;
@@ -9332,8 +9332,8 @@ export declare const protocolMessageSchemas: {
9332
9332
  }[] | undefined;
9333
9333
  delta?: string | undefined;
9334
9334
  toolCall?: {
9335
- name: string;
9336
9335
  id: string;
9336
+ name: string;
9337
9337
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9338
9338
  createdAt?: number | undefined;
9339
9339
  input?: string | undefined;
@@ -9441,9 +9441,9 @@ export declare const protocolMessageSchemas: {
9441
9441
  disabledReason: z.ZodOptional<z.ZodString>;
9442
9442
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
9443
9443
  }, "strip", z.ZodTypeAny, {
9444
+ id: string;
9444
9445
  name: string;
9445
9446
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
9446
- id: string;
9447
9447
  title: string;
9448
9448
  argsMode: "none" | "optional" | "required" | "raw";
9449
9449
  executionKind: "prompt" | "native" | "local_ui";
@@ -9454,8 +9454,8 @@ export declare const protocolMessageSchemas: {
9454
9454
  destructive?: boolean | undefined;
9455
9455
  disabledReason?: string | undefined;
9456
9456
  }, {
9457
- name: string;
9458
9457
  id: string;
9458
+ name: string;
9459
9459
  title: string;
9460
9460
  provider?: "custom" | "claude" | "codex" | undefined;
9461
9461
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -9483,8 +9483,8 @@ export declare const protocolMessageSchemas: {
9483
9483
  currentMode: z.ZodOptional<z.ZodString>;
9484
9484
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
9485
9485
  }, "strip", z.ZodTypeAny, {
9486
- enabled: boolean;
9487
9486
  id: "custom" | "claude" | "codex";
9487
+ enabled: boolean;
9488
9488
  label: string;
9489
9489
  reason?: string | undefined;
9490
9490
  supportsImages?: boolean | undefined;
@@ -9499,9 +9499,9 @@ export declare const protocolMessageSchemas: {
9499
9499
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9500
9500
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9501
9501
  commands?: {
9502
+ id: string;
9502
9503
  name: string;
9503
9504
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
9504
- id: string;
9505
9505
  title: string;
9506
9506
  argsMode: "none" | "optional" | "required" | "raw";
9507
9507
  executionKind: "prompt" | "native" | "local_ui";
@@ -9520,8 +9520,8 @@ export declare const protocolMessageSchemas: {
9520
9520
  currentMode?: string | undefined;
9521
9521
  features?: Record<string, boolean> | undefined;
9522
9522
  }, {
9523
- enabled: boolean;
9524
9523
  id: "custom" | "claude" | "codex";
9524
+ enabled: boolean;
9525
9525
  label: string;
9526
9526
  reason?: string | undefined;
9527
9527
  supportsImages?: boolean | undefined;
@@ -9536,8 +9536,8 @@ export declare const protocolMessageSchemas: {
9536
9536
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9537
9537
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9538
9538
  commands?: {
9539
- name: string;
9540
9539
  id: string;
9540
+ name: string;
9541
9541
  title: string;
9542
9542
  provider?: "custom" | "claude" | "codex" | undefined;
9543
9543
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -9575,13 +9575,13 @@ export declare const protocolMessageSchemas: {
9575
9575
  supportsSessionList: boolean;
9576
9576
  supportsSessionLoad: boolean;
9577
9577
  supportsAudio: boolean;
9578
+ error?: string | undefined;
9578
9579
  provider?: "custom" | "claude" | "codex" | undefined;
9579
9580
  protocolVersion?: number | undefined;
9580
9581
  machineId?: string | undefined;
9581
- error?: string | undefined;
9582
9582
  providers?: {
9583
- enabled: boolean;
9584
9583
  id: "custom" | "claude" | "codex";
9584
+ enabled: boolean;
9585
9585
  label: string;
9586
9586
  reason?: string | undefined;
9587
9587
  supportsImages?: boolean | undefined;
@@ -9596,9 +9596,9 @@ export declare const protocolMessageSchemas: {
9596
9596
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9597
9597
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9598
9598
  commands?: {
9599
+ id: string;
9599
9600
  name: string;
9600
9601
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
9601
- id: string;
9602
9602
  title: string;
9603
9603
  argsMode: "none" | "optional" | "required" | "raw";
9604
9604
  executionKind: "prompt" | "native" | "local_ui";
@@ -9619,17 +9619,17 @@ export declare const protocolMessageSchemas: {
9619
9619
  }[] | undefined;
9620
9620
  }, {
9621
9621
  enabled: boolean;
9622
+ error?: string | undefined;
9622
9623
  provider?: "custom" | "claude" | "codex" | undefined;
9623
9624
  protocolVersion?: number | undefined;
9624
9625
  machineId?: string | undefined;
9625
- error?: string | undefined;
9626
9626
  supportsImages?: boolean | undefined;
9627
9627
  supportsPermission?: boolean | undefined;
9628
9628
  supportsPlan?: boolean | undefined;
9629
9629
  supportsCancel?: boolean | undefined;
9630
9630
  providers?: {
9631
- enabled: boolean;
9632
9631
  id: "custom" | "claude" | "codex";
9632
+ enabled: boolean;
9633
9633
  label: string;
9634
9634
  reason?: string | undefined;
9635
9635
  supportsImages?: boolean | undefined;
@@ -9644,8 +9644,8 @@ export declare const protocolMessageSchemas: {
9644
9644
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9645
9645
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9646
9646
  commands?: {
9647
- name: string;
9648
9647
  id: string;
9648
+ name: string;
9649
9649
  title: string;
9650
9650
  provider?: "custom" | "claude" | "codex" | undefined;
9651
9651
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -9676,15 +9676,15 @@ export declare const protocolMessageSchemas: {
9676
9676
  createdAt: z.ZodNumber;
9677
9677
  isStreaming: z.ZodOptional<z.ZodBoolean>;
9678
9678
  }, "strip", z.ZodTypeAny, {
9679
+ id: string;
9679
9680
  role: "user" | "assistant" | "system";
9680
9681
  content: string;
9681
- id: string;
9682
9682
  createdAt: number;
9683
9683
  isStreaming?: boolean | undefined;
9684
9684
  }, {
9685
+ id: string;
9685
9686
  role: "user" | "assistant" | "system";
9686
9687
  content: string;
9687
- id: string;
9688
9688
  createdAt: number;
9689
9689
  isStreaming?: boolean | undefined;
9690
9690
  }>, "many">>;
@@ -9697,14 +9697,14 @@ export declare const protocolMessageSchemas: {
9697
9697
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
9698
9698
  }, "strip", z.ZodTypeAny, {
9699
9699
  status: "running" | "pending" | "completed" | "failed";
9700
- name: string;
9701
9700
  id: string;
9701
+ name: string;
9702
9702
  createdAt?: number | undefined;
9703
9703
  input?: string | undefined;
9704
9704
  output?: string | undefined;
9705
9705
  }, {
9706
- name: string;
9707
9706
  id: string;
9707
+ name: string;
9708
9708
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9709
9709
  createdAt?: number | undefined;
9710
9710
  input?: string | undefined;
@@ -9754,16 +9754,16 @@ export declare const protocolMessageSchemas: {
9754
9754
  }, "strip", z.ZodTypeAny, {
9755
9755
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
9756
9756
  messages: {
9757
+ id: string;
9757
9758
  role: "user" | "assistant" | "system";
9758
9759
  content: string;
9759
- id: string;
9760
9760
  createdAt: number;
9761
9761
  isStreaming?: boolean | undefined;
9762
9762
  }[];
9763
9763
  toolCalls: {
9764
9764
  status: "running" | "pending" | "completed" | "failed";
9765
- name: string;
9766
9765
  id: string;
9766
+ name: string;
9767
9767
  createdAt?: number | undefined;
9768
9768
  input?: string | undefined;
9769
9769
  output?: string | undefined;
@@ -9779,8 +9779,8 @@ export declare const protocolMessageSchemas: {
9779
9779
  toolInput?: string | undefined;
9780
9780
  context?: string | undefined;
9781
9781
  }[];
9782
- agentSessionId?: string | undefined;
9783
9782
  error?: string | undefined;
9783
+ agentSessionId?: string | undefined;
9784
9784
  capabilities?: {
9785
9785
  enabled: boolean;
9786
9786
  supportsImages: boolean;
@@ -9790,13 +9790,13 @@ export declare const protocolMessageSchemas: {
9790
9790
  supportsSessionList: boolean;
9791
9791
  supportsSessionLoad: boolean;
9792
9792
  supportsAudio: boolean;
9793
+ error?: string | undefined;
9793
9794
  provider?: "custom" | "claude" | "codex" | undefined;
9794
9795
  protocolVersion?: number | undefined;
9795
9796
  machineId?: string | undefined;
9796
- error?: string | undefined;
9797
9797
  providers?: {
9798
- enabled: boolean;
9799
9798
  id: "custom" | "claude" | "codex";
9799
+ enabled: boolean;
9800
9800
  label: string;
9801
9801
  reason?: string | undefined;
9802
9802
  supportsImages?: boolean | undefined;
@@ -9811,9 +9811,9 @@ export declare const protocolMessageSchemas: {
9811
9811
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9812
9812
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9813
9813
  commands?: {
9814
+ id: string;
9814
9815
  name: string;
9815
9816
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
9816
- id: string;
9817
9817
  title: string;
9818
9818
  argsMode: "none" | "optional" | "required" | "raw";
9819
9819
  executionKind: "prompt" | "native" | "local_ui";
@@ -9834,22 +9834,22 @@ export declare const protocolMessageSchemas: {
9834
9834
  }[] | undefined;
9835
9835
  } | undefined;
9836
9836
  }, {
9837
+ error?: string | undefined;
9837
9838
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9838
9839
  agentSessionId?: string | undefined;
9839
- error?: string | undefined;
9840
9840
  capabilities?: {
9841
9841
  enabled: boolean;
9842
+ error?: string | undefined;
9842
9843
  provider?: "custom" | "claude" | "codex" | undefined;
9843
9844
  protocolVersion?: number | undefined;
9844
9845
  machineId?: string | undefined;
9845
- error?: string | undefined;
9846
9846
  supportsImages?: boolean | undefined;
9847
9847
  supportsPermission?: boolean | undefined;
9848
9848
  supportsPlan?: boolean | undefined;
9849
9849
  supportsCancel?: boolean | undefined;
9850
9850
  providers?: {
9851
- enabled: boolean;
9852
9851
  id: "custom" | "claude" | "codex";
9852
+ enabled: boolean;
9853
9853
  label: string;
9854
9854
  reason?: string | undefined;
9855
9855
  supportsImages?: boolean | undefined;
@@ -9864,8 +9864,8 @@ export declare const protocolMessageSchemas: {
9864
9864
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9865
9865
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9866
9866
  commands?: {
9867
- name: string;
9868
9867
  id: string;
9868
+ name: string;
9869
9869
  title: string;
9870
9870
  provider?: "custom" | "claude" | "codex" | undefined;
9871
9871
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -9890,15 +9890,15 @@ export declare const protocolMessageSchemas: {
9890
9890
  supportsAudio?: boolean | undefined;
9891
9891
  } | undefined;
9892
9892
  messages?: {
9893
+ id: string;
9893
9894
  role: "user" | "assistant" | "system";
9894
9895
  content: string;
9895
- id: string;
9896
9896
  createdAt: number;
9897
9897
  isStreaming?: boolean | undefined;
9898
9898
  }[] | undefined;
9899
9899
  toolCalls?: {
9900
- name: string;
9901
9900
  id: string;
9901
+ name: string;
9902
9902
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9903
9903
  createdAt?: number | undefined;
9904
9904
  input?: string | undefined;
@@ -9957,9 +9957,9 @@ export declare const protocolMessageSchemas: {
9957
9957
  disabledReason: z.ZodOptional<z.ZodString>;
9958
9958
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
9959
9959
  }, "strip", z.ZodTypeAny, {
9960
+ id: string;
9960
9961
  name: string;
9961
9962
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
9962
- id: string;
9963
9963
  title: string;
9964
9964
  argsMode: "none" | "optional" | "required" | "raw";
9965
9965
  executionKind: "prompt" | "native" | "local_ui";
@@ -9970,8 +9970,8 @@ export declare const protocolMessageSchemas: {
9970
9970
  destructive?: boolean | undefined;
9971
9971
  disabledReason?: string | undefined;
9972
9972
  }, {
9973
- name: string;
9974
9973
  id: string;
9974
+ name: string;
9975
9975
  title: string;
9976
9976
  provider?: "custom" | "claude" | "codex" | undefined;
9977
9977
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -9999,8 +9999,8 @@ export declare const protocolMessageSchemas: {
9999
9999
  currentMode: z.ZodOptional<z.ZodString>;
10000
10000
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
10001
10001
  }, "strip", z.ZodTypeAny, {
10002
- enabled: boolean;
10003
10002
  id: "custom" | "claude" | "codex";
10003
+ enabled: boolean;
10004
10004
  label: string;
10005
10005
  reason?: string | undefined;
10006
10006
  supportsImages?: boolean | undefined;
@@ -10015,9 +10015,9 @@ export declare const protocolMessageSchemas: {
10015
10015
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
10016
10016
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
10017
10017
  commands?: {
10018
+ id: string;
10018
10019
  name: string;
10019
10020
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
10020
- id: string;
10021
10021
  title: string;
10022
10022
  argsMode: "none" | "optional" | "required" | "raw";
10023
10023
  executionKind: "prompt" | "native" | "local_ui";
@@ -10036,8 +10036,8 @@ export declare const protocolMessageSchemas: {
10036
10036
  currentMode?: string | undefined;
10037
10037
  features?: Record<string, boolean> | undefined;
10038
10038
  }, {
10039
- enabled: boolean;
10040
10039
  id: "custom" | "claude" | "codex";
10040
+ enabled: boolean;
10041
10041
  label: string;
10042
10042
  reason?: string | undefined;
10043
10043
  supportsImages?: boolean | undefined;
@@ -10052,8 +10052,8 @@ export declare const protocolMessageSchemas: {
10052
10052
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
10053
10053
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
10054
10054
  commands?: {
10055
- name: string;
10056
10055
  id: string;
10056
+ name: string;
10057
10057
  title: string;
10058
10058
  provider?: "custom" | "claude" | "codex" | undefined;
10059
10059
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -10094,13 +10094,13 @@ export declare const protocolMessageSchemas: {
10094
10094
  supportsSessionLoad: boolean;
10095
10095
  supportsAudio: boolean;
10096
10096
  workspaceProtocolVersion: number;
10097
+ error?: string | undefined;
10097
10098
  provider?: "custom" | "claude" | "codex" | undefined;
10098
10099
  protocolVersion?: number | undefined;
10099
10100
  machineId?: string | undefined;
10100
- error?: string | undefined;
10101
10101
  providers?: {
10102
- enabled: boolean;
10103
10102
  id: "custom" | "claude" | "codex";
10103
+ enabled: boolean;
10104
10104
  label: string;
10105
10105
  reason?: string | undefined;
10106
10106
  supportsImages?: boolean | undefined;
@@ -10115,9 +10115,9 @@ export declare const protocolMessageSchemas: {
10115
10115
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
10116
10116
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
10117
10117
  commands?: {
10118
+ id: string;
10118
10119
  name: string;
10119
10120
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
10120
- id: string;
10121
10121
  title: string;
10122
10122
  argsMode: "none" | "optional" | "required" | "raw";
10123
10123
  executionKind: "prompt" | "native" | "local_ui";
@@ -10138,17 +10138,17 @@ export declare const protocolMessageSchemas: {
10138
10138
  }[] | undefined;
10139
10139
  }, {
10140
10140
  enabled: boolean;
10141
+ error?: string | undefined;
10141
10142
  provider?: "custom" | "claude" | "codex" | undefined;
10142
10143
  protocolVersion?: number | undefined;
10143
10144
  machineId?: string | undefined;
10144
- error?: string | undefined;
10145
10145
  supportsImages?: boolean | undefined;
10146
10146
  supportsPermission?: boolean | undefined;
10147
10147
  supportsPlan?: boolean | undefined;
10148
10148
  supportsCancel?: boolean | undefined;
10149
10149
  providers?: {
10150
- enabled: boolean;
10151
10150
  id: "custom" | "claude" | "codex";
10151
+ enabled: boolean;
10152
10152
  label: string;
10153
10153
  reason?: string | undefined;
10154
10154
  supportsImages?: boolean | undefined;
@@ -10163,8 +10163,8 @@ export declare const protocolMessageSchemas: {
10163
10163
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
10164
10164
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
10165
10165
  commands?: {
10166
- name: string;
10167
10166
  id: string;
10167
+ name: string;
10168
10168
  title: string;
10169
10169
  provider?: "custom" | "claude" | "codex" | undefined;
10170
10170
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
@@ -10208,7 +10208,7 @@ export declare const protocolMessageSchemas: {
10208
10208
  model?: string | undefined;
10209
10209
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10210
10210
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10211
- collaborationMode?: "plan" | "default" | undefined;
10211
+ collaborationMode?: "default" | "plan" | undefined;
10212
10212
  }, {
10213
10213
  conversationId?: string | undefined;
10214
10214
  agentSessionId?: string | undefined;
@@ -10218,7 +10218,7 @@ export declare const protocolMessageSchemas: {
10218
10218
  model?: string | undefined;
10219
10219
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10220
10220
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10221
- collaborationMode?: "plan" | "default" | undefined;
10221
+ collaborationMode?: "default" | "plan" | undefined;
10222
10222
  }>;
10223
10223
  readonly "agent.v2.conversation.opened": z.ZodObject<{
10224
10224
  conversation: z.ZodObject<{
@@ -10238,9 +10238,9 @@ export declare const protocolMessageSchemas: {
10238
10238
  createdAt: z.ZodNumber;
10239
10239
  }, "strip", z.ZodTypeAny, {
10240
10240
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
10241
+ id: string;
10241
10242
  provider: "custom" | "claude" | "codex";
10242
10243
  cwd: string;
10243
- id: string;
10244
10244
  createdAt: number;
10245
10245
  archived: boolean;
10246
10246
  lastActivityAt: number;
@@ -10249,11 +10249,11 @@ export declare const protocolMessageSchemas: {
10249
10249
  model?: string | undefined;
10250
10250
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10251
10251
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10252
- collaborationMode?: "plan" | "default" | undefined;
10252
+ collaborationMode?: "default" | "plan" | undefined;
10253
10253
  lastMessagePreview?: string | undefined;
10254
10254
  }, {
10255
- cwd: string;
10256
10255
  id: string;
10256
+ cwd: string;
10257
10257
  createdAt: number;
10258
10258
  lastActivityAt: number;
10259
10259
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -10263,7 +10263,7 @@ export declare const protocolMessageSchemas: {
10263
10263
  model?: string | undefined;
10264
10264
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10265
10265
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10266
- collaborationMode?: "plan" | "default" | undefined;
10266
+ collaborationMode?: "default" | "plan" | undefined;
10267
10267
  archived?: boolean | undefined;
10268
10268
  lastMessagePreview?: string | undefined;
10269
10269
  }>;
@@ -10301,14 +10301,14 @@ export declare const protocolMessageSchemas: {
10301
10301
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
10302
10302
  }, "strip", z.ZodTypeAny, {
10303
10303
  status: "running" | "pending" | "completed" | "failed";
10304
- name: string;
10305
10304
  id: string;
10305
+ name: string;
10306
10306
  createdAt?: number | undefined;
10307
10307
  input?: string | undefined;
10308
10308
  output?: string | undefined;
10309
10309
  }, {
10310
- name: string;
10311
10310
  id: string;
10311
+ name: string;
10312
10312
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10313
10313
  createdAt?: number | undefined;
10314
10314
  input?: string | undefined;
@@ -10594,13 +10594,13 @@ export declare const protocolMessageSchemas: {
10594
10594
  updatedAt: z.ZodOptional<z.ZodNumber>;
10595
10595
  isStreaming: z.ZodOptional<z.ZodBoolean>;
10596
10596
  }, "strip", z.ZodTypeAny, {
10597
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
10597
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
10598
10598
  conversationId: string;
10599
10599
  id: string;
10600
10600
  createdAt: number;
10601
+ error?: string | undefined;
10601
10602
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10602
10603
  role?: "user" | "assistant" | "system" | undefined;
10603
- error?: string | undefined;
10604
10604
  content?: {
10605
10605
  type: "text" | "image";
10606
10606
  data?: string | undefined;
@@ -10617,8 +10617,8 @@ export declare const protocolMessageSchemas: {
10617
10617
  isStreaming?: boolean | undefined;
10618
10618
  toolCall?: {
10619
10619
  status: "running" | "pending" | "completed" | "failed";
10620
- name: string;
10621
10620
  id: string;
10621
+ name: string;
10622
10622
  createdAt?: number | undefined;
10623
10623
  input?: string | undefined;
10624
10624
  output?: string | undefined;
@@ -10694,13 +10694,13 @@ export declare const protocolMessageSchemas: {
10694
10694
  metadata?: Record<string, unknown> | undefined;
10695
10695
  updatedAt?: number | undefined;
10696
10696
  }, {
10697
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
10697
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
10698
10698
  conversationId: string;
10699
10699
  id: string;
10700
10700
  createdAt: number;
10701
+ error?: string | undefined;
10701
10702
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10702
10703
  role?: "user" | "assistant" | "system" | undefined;
10703
- error?: string | undefined;
10704
10704
  content?: {
10705
10705
  type: "text" | "image";
10706
10706
  data?: string | undefined;
@@ -10716,8 +10716,8 @@ export declare const protocolMessageSchemas: {
10716
10716
  }[] | undefined;
10717
10717
  isStreaming?: boolean | undefined;
10718
10718
  toolCall?: {
10719
- name: string;
10720
10719
  id: string;
10720
+ name: string;
10721
10721
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10722
10722
  createdAt?: number | undefined;
10723
10723
  input?: string | undefined;
@@ -10798,9 +10798,9 @@ export declare const protocolMessageSchemas: {
10798
10798
  }, "strip", z.ZodTypeAny, {
10799
10799
  conversation: {
10800
10800
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
10801
+ id: string;
10801
10802
  provider: "custom" | "claude" | "codex";
10802
10803
  cwd: string;
10803
- id: string;
10804
10804
  createdAt: number;
10805
10805
  archived: boolean;
10806
10806
  lastActivityAt: number;
@@ -10809,17 +10809,17 @@ export declare const protocolMessageSchemas: {
10809
10809
  model?: string | undefined;
10810
10810
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10811
10811
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10812
- collaborationMode?: "plan" | "default" | undefined;
10812
+ collaborationMode?: "default" | "plan" | undefined;
10813
10813
  lastMessagePreview?: string | undefined;
10814
10814
  };
10815
10815
  snapshot: {
10816
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
10816
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
10817
10817
  conversationId: string;
10818
10818
  id: string;
10819
10819
  createdAt: number;
10820
+ error?: string | undefined;
10820
10821
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10821
10822
  role?: "user" | "assistant" | "system" | undefined;
10822
- error?: string | undefined;
10823
10823
  content?: {
10824
10824
  type: "text" | "image";
10825
10825
  data?: string | undefined;
@@ -10836,8 +10836,8 @@ export declare const protocolMessageSchemas: {
10836
10836
  isStreaming?: boolean | undefined;
10837
10837
  toolCall?: {
10838
10838
  status: "running" | "pending" | "completed" | "failed";
10839
- name: string;
10840
10839
  id: string;
10840
+ name: string;
10841
10841
  createdAt?: number | undefined;
10842
10842
  input?: string | undefined;
10843
10843
  output?: string | undefined;
@@ -10916,8 +10916,8 @@ export declare const protocolMessageSchemas: {
10916
10916
  requestedConversationId?: string | undefined;
10917
10917
  }, {
10918
10918
  conversation: {
10919
- cwd: string;
10920
10919
  id: string;
10920
+ cwd: string;
10921
10921
  createdAt: number;
10922
10922
  lastActivityAt: number;
10923
10923
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -10927,18 +10927,18 @@ export declare const protocolMessageSchemas: {
10927
10927
  model?: string | undefined;
10928
10928
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10929
10929
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10930
- collaborationMode?: "plan" | "default" | undefined;
10930
+ collaborationMode?: "default" | "plan" | undefined;
10931
10931
  archived?: boolean | undefined;
10932
10932
  lastMessagePreview?: string | undefined;
10933
10933
  };
10934
10934
  snapshot?: {
10935
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
10935
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
10936
10936
  conversationId: string;
10937
10937
  id: string;
10938
10938
  createdAt: number;
10939
+ error?: string | undefined;
10939
10940
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10940
10941
  role?: "user" | "assistant" | "system" | undefined;
10941
- error?: string | undefined;
10942
10942
  content?: {
10943
10943
  type: "text" | "image";
10944
10944
  data?: string | undefined;
@@ -10954,8 +10954,8 @@ export declare const protocolMessageSchemas: {
10954
10954
  }[] | undefined;
10955
10955
  isStreaming?: boolean | undefined;
10956
10956
  toolCall?: {
10957
- name: string;
10958
10957
  id: string;
10958
+ name: string;
10959
10959
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10960
10960
  createdAt?: number | undefined;
10961
10961
  input?: string | undefined;
@@ -11059,9 +11059,9 @@ export declare const protocolMessageSchemas: {
11059
11059
  createdAt: z.ZodNumber;
11060
11060
  }, "strip", z.ZodTypeAny, {
11061
11061
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
11062
+ id: string;
11062
11063
  provider: "custom" | "claude" | "codex";
11063
11064
  cwd: string;
11064
- id: string;
11065
11065
  createdAt: number;
11066
11066
  archived: boolean;
11067
11067
  lastActivityAt: number;
@@ -11070,11 +11070,11 @@ export declare const protocolMessageSchemas: {
11070
11070
  model?: string | undefined;
11071
11071
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11072
11072
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11073
- collaborationMode?: "plan" | "default" | undefined;
11073
+ collaborationMode?: "default" | "plan" | undefined;
11074
11074
  lastMessagePreview?: string | undefined;
11075
11075
  }, {
11076
- cwd: string;
11077
11076
  id: string;
11077
+ cwd: string;
11078
11078
  createdAt: number;
11079
11079
  lastActivityAt: number;
11080
11080
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -11084,16 +11084,16 @@ export declare const protocolMessageSchemas: {
11084
11084
  model?: string | undefined;
11085
11085
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11086
11086
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11087
- collaborationMode?: "plan" | "default" | undefined;
11087
+ collaborationMode?: "default" | "plan" | undefined;
11088
11088
  archived?: boolean | undefined;
11089
11089
  lastMessagePreview?: string | undefined;
11090
11090
  }>, "many">;
11091
11091
  }, "strip", z.ZodTypeAny, {
11092
11092
  conversations: {
11093
11093
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
11094
+ id: string;
11094
11095
  provider: "custom" | "claude" | "codex";
11095
11096
  cwd: string;
11096
- id: string;
11097
11097
  createdAt: number;
11098
11098
  archived: boolean;
11099
11099
  lastActivityAt: number;
@@ -11102,13 +11102,13 @@ export declare const protocolMessageSchemas: {
11102
11102
  model?: string | undefined;
11103
11103
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11104
11104
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11105
- collaborationMode?: "plan" | "default" | undefined;
11105
+ collaborationMode?: "default" | "plan" | undefined;
11106
11106
  lastMessagePreview?: string | undefined;
11107
11107
  }[];
11108
11108
  }, {
11109
11109
  conversations: {
11110
- cwd: string;
11111
11110
  id: string;
11111
+ cwd: string;
11112
11112
  createdAt: number;
11113
11113
  lastActivityAt: number;
11114
11114
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -11118,7 +11118,7 @@ export declare const protocolMessageSchemas: {
11118
11118
  model?: string | undefined;
11119
11119
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11120
11120
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11121
- collaborationMode?: "plan" | "default" | undefined;
11121
+ collaborationMode?: "default" | "plan" | undefined;
11122
11122
  archived?: boolean | undefined;
11123
11123
  lastMessagePreview?: string | undefined;
11124
11124
  }[];
@@ -11188,7 +11188,7 @@ export declare const protocolMessageSchemas: {
11188
11188
  model?: string | undefined;
11189
11189
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11190
11190
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11191
- collaborationMode?: "plan" | "default" | undefined;
11191
+ collaborationMode?: "default" | "plan" | undefined;
11192
11192
  targetTurnId?: string | undefined;
11193
11193
  }, {
11194
11194
  conversationId: string;
@@ -11202,7 +11202,7 @@ export declare const protocolMessageSchemas: {
11202
11202
  model?: string | undefined;
11203
11203
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11204
11204
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11205
- collaborationMode?: "plan" | "default" | undefined;
11205
+ collaborationMode?: "default" | "plan" | undefined;
11206
11206
  delivery?: "auto" | "new_turn" | "steer" | undefined;
11207
11207
  targetTurnId?: string | undefined;
11208
11208
  }>;
@@ -11302,14 +11302,14 @@ export declare const protocolMessageSchemas: {
11302
11302
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
11303
11303
  }, "strip", z.ZodTypeAny, {
11304
11304
  status: "running" | "pending" | "completed" | "failed";
11305
- name: string;
11306
11305
  id: string;
11306
+ name: string;
11307
11307
  createdAt?: number | undefined;
11308
11308
  input?: string | undefined;
11309
11309
  output?: string | undefined;
11310
11310
  }, {
11311
- name: string;
11312
11311
  id: string;
11312
+ name: string;
11313
11313
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11314
11314
  createdAt?: number | undefined;
11315
11315
  input?: string | undefined;
@@ -11595,13 +11595,13 @@ export declare const protocolMessageSchemas: {
11595
11595
  updatedAt: z.ZodOptional<z.ZodNumber>;
11596
11596
  isStreaming: z.ZodOptional<z.ZodBoolean>;
11597
11597
  }, "strip", z.ZodTypeAny, {
11598
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
11598
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
11599
11599
  conversationId: string;
11600
11600
  id: string;
11601
11601
  createdAt: number;
11602
+ error?: string | undefined;
11602
11603
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11603
11604
  role?: "user" | "assistant" | "system" | undefined;
11604
- error?: string | undefined;
11605
11605
  content?: {
11606
11606
  type: "text" | "image";
11607
11607
  data?: string | undefined;
@@ -11618,8 +11618,8 @@ export declare const protocolMessageSchemas: {
11618
11618
  isStreaming?: boolean | undefined;
11619
11619
  toolCall?: {
11620
11620
  status: "running" | "pending" | "completed" | "failed";
11621
- name: string;
11622
11621
  id: string;
11622
+ name: string;
11623
11623
  createdAt?: number | undefined;
11624
11624
  input?: string | undefined;
11625
11625
  output?: string | undefined;
@@ -11695,13 +11695,13 @@ export declare const protocolMessageSchemas: {
11695
11695
  metadata?: Record<string, unknown> | undefined;
11696
11696
  updatedAt?: number | undefined;
11697
11697
  }, {
11698
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
11698
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
11699
11699
  conversationId: string;
11700
11700
  id: string;
11701
11701
  createdAt: number;
11702
+ error?: string | undefined;
11702
11703
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11703
11704
  role?: "user" | "assistant" | "system" | undefined;
11704
- error?: string | undefined;
11705
11705
  content?: {
11706
11706
  type: "text" | "image";
11707
11707
  data?: string | undefined;
@@ -11717,8 +11717,8 @@ export declare const protocolMessageSchemas: {
11717
11717
  }[] | undefined;
11718
11718
  isStreaming?: boolean | undefined;
11719
11719
  toolCall?: {
11720
- name: string;
11721
11720
  id: string;
11721
+ name: string;
11722
11722
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11723
11723
  createdAt?: number | undefined;
11724
11724
  input?: string | undefined;
@@ -11807,13 +11807,13 @@ export declare const protocolMessageSchemas: {
11807
11807
  toolInput?: string | undefined;
11808
11808
  context?: string | undefined;
11809
11809
  item?: {
11810
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
11810
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
11811
11811
  conversationId: string;
11812
11812
  id: string;
11813
11813
  createdAt: number;
11814
+ error?: string | undefined;
11814
11815
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11815
11816
  role?: "user" | "assistant" | "system" | undefined;
11816
- error?: string | undefined;
11817
11817
  content?: {
11818
11818
  type: "text" | "image";
11819
11819
  data?: string | undefined;
@@ -11830,8 +11830,8 @@ export declare const protocolMessageSchemas: {
11830
11830
  isStreaming?: boolean | undefined;
11831
11831
  toolCall?: {
11832
11832
  status: "running" | "pending" | "completed" | "failed";
11833
- name: string;
11834
11833
  id: string;
11834
+ name: string;
11835
11835
  createdAt?: number | undefined;
11836
11836
  input?: string | undefined;
11837
11837
  output?: string | undefined;
@@ -11919,13 +11919,13 @@ export declare const protocolMessageSchemas: {
11919
11919
  toolInput?: string | undefined;
11920
11920
  context?: string | undefined;
11921
11921
  item?: {
11922
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
11922
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
11923
11923
  conversationId: string;
11924
11924
  id: string;
11925
11925
  createdAt: number;
11926
+ error?: string | undefined;
11926
11927
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11927
11928
  role?: "user" | "assistant" | "system" | undefined;
11928
- error?: string | undefined;
11929
11929
  content?: {
11930
11930
  type: "text" | "image";
11931
11931
  data?: string | undefined;
@@ -11941,8 +11941,8 @@ export declare const protocolMessageSchemas: {
11941
11941
  }[] | undefined;
11942
11942
  isStreaming?: boolean | undefined;
11943
11943
  toolCall?: {
11944
- name: string;
11945
11944
  id: string;
11945
+ name: string;
11946
11946
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11947
11947
  createdAt?: number | undefined;
11948
11948
  input?: string | undefined;
@@ -12058,9 +12058,9 @@ export declare const protocolMessageSchemas: {
12058
12058
  createdAt: z.ZodNumber;
12059
12059
  }, "strip", z.ZodTypeAny, {
12060
12060
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
12061
+ id: string;
12061
12062
  provider: "custom" | "claude" | "codex";
12062
12063
  cwd: string;
12063
- id: string;
12064
12064
  createdAt: number;
12065
12065
  archived: boolean;
12066
12066
  lastActivityAt: number;
@@ -12069,11 +12069,11 @@ export declare const protocolMessageSchemas: {
12069
12069
  model?: string | undefined;
12070
12070
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
12071
12071
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
12072
- collaborationMode?: "plan" | "default" | undefined;
12072
+ collaborationMode?: "default" | "plan" | undefined;
12073
12073
  lastMessagePreview?: string | undefined;
12074
12074
  }, {
12075
- cwd: string;
12076
12075
  id: string;
12076
+ cwd: string;
12077
12077
  createdAt: number;
12078
12078
  lastActivityAt: number;
12079
12079
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -12083,7 +12083,7 @@ export declare const protocolMessageSchemas: {
12083
12083
  model?: string | undefined;
12084
12084
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
12085
12085
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
12086
- collaborationMode?: "plan" | "default" | undefined;
12086
+ collaborationMode?: "default" | "plan" | undefined;
12087
12087
  archived?: boolean | undefined;
12088
12088
  lastMessagePreview?: string | undefined;
12089
12089
  }>, "many">>;
@@ -12122,14 +12122,14 @@ export declare const protocolMessageSchemas: {
12122
12122
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
12123
12123
  }, "strip", z.ZodTypeAny, {
12124
12124
  status: "running" | "pending" | "completed" | "failed";
12125
- name: string;
12126
12125
  id: string;
12126
+ name: string;
12127
12127
  createdAt?: number | undefined;
12128
12128
  input?: string | undefined;
12129
12129
  output?: string | undefined;
12130
12130
  }, {
12131
- name: string;
12132
12131
  id: string;
12132
+ name: string;
12133
12133
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12134
12134
  createdAt?: number | undefined;
12135
12135
  input?: string | undefined;
@@ -12415,13 +12415,13 @@ export declare const protocolMessageSchemas: {
12415
12415
  updatedAt: z.ZodOptional<z.ZodNumber>;
12416
12416
  isStreaming: z.ZodOptional<z.ZodBoolean>;
12417
12417
  }, "strip", z.ZodTypeAny, {
12418
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
12418
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
12419
12419
  conversationId: string;
12420
12420
  id: string;
12421
12421
  createdAt: number;
12422
+ error?: string | undefined;
12422
12423
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12423
12424
  role?: "user" | "assistant" | "system" | undefined;
12424
- error?: string | undefined;
12425
12425
  content?: {
12426
12426
  type: "text" | "image";
12427
12427
  data?: string | undefined;
@@ -12438,8 +12438,8 @@ export declare const protocolMessageSchemas: {
12438
12438
  isStreaming?: boolean | undefined;
12439
12439
  toolCall?: {
12440
12440
  status: "running" | "pending" | "completed" | "failed";
12441
- name: string;
12442
12441
  id: string;
12442
+ name: string;
12443
12443
  createdAt?: number | undefined;
12444
12444
  input?: string | undefined;
12445
12445
  output?: string | undefined;
@@ -12515,13 +12515,13 @@ export declare const protocolMessageSchemas: {
12515
12515
  metadata?: Record<string, unknown> | undefined;
12516
12516
  updatedAt?: number | undefined;
12517
12517
  }, {
12518
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
12518
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
12519
12519
  conversationId: string;
12520
12520
  id: string;
12521
12521
  createdAt: number;
12522
+ error?: string | undefined;
12522
12523
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12523
12524
  role?: "user" | "assistant" | "system" | undefined;
12524
- error?: string | undefined;
12525
12525
  content?: {
12526
12526
  type: "text" | "image";
12527
12527
  data?: string | undefined;
@@ -12537,8 +12537,8 @@ export declare const protocolMessageSchemas: {
12537
12537
  }[] | undefined;
12538
12538
  isStreaming?: boolean | undefined;
12539
12539
  toolCall?: {
12540
- name: string;
12541
12540
  id: string;
12541
+ name: string;
12542
12542
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12543
12543
  createdAt?: number | undefined;
12544
12544
  input?: string | undefined;
@@ -12619,9 +12619,9 @@ export declare const protocolMessageSchemas: {
12619
12619
  }, "strip", z.ZodTypeAny, {
12620
12620
  conversations: {
12621
12621
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
12622
+ id: string;
12622
12623
  provider: "custom" | "claude" | "codex";
12623
12624
  cwd: string;
12624
- id: string;
12625
12625
  createdAt: number;
12626
12626
  archived: boolean;
12627
12627
  lastActivityAt: number;
@@ -12630,17 +12630,17 @@ export declare const protocolMessageSchemas: {
12630
12630
  model?: string | undefined;
12631
12631
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
12632
12632
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
12633
- collaborationMode?: "plan" | "default" | undefined;
12633
+ collaborationMode?: "default" | "plan" | undefined;
12634
12634
  lastMessagePreview?: string | undefined;
12635
12635
  }[];
12636
12636
  items: {
12637
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
12637
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
12638
12638
  conversationId: string;
12639
12639
  id: string;
12640
12640
  createdAt: number;
12641
+ error?: string | undefined;
12641
12642
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12642
12643
  role?: "user" | "assistant" | "system" | undefined;
12643
- error?: string | undefined;
12644
12644
  content?: {
12645
12645
  type: "text" | "image";
12646
12646
  data?: string | undefined;
@@ -12657,8 +12657,8 @@ export declare const protocolMessageSchemas: {
12657
12657
  isStreaming?: boolean | undefined;
12658
12658
  toolCall?: {
12659
12659
  status: "running" | "pending" | "completed" | "failed";
12660
- name: string;
12661
12660
  id: string;
12661
+ name: string;
12662
12662
  createdAt?: number | undefined;
12663
12663
  input?: string | undefined;
12664
12664
  output?: string | undefined;
@@ -12739,8 +12739,8 @@ export declare const protocolMessageSchemas: {
12739
12739
  }, {
12740
12740
  machineId?: string | undefined;
12741
12741
  conversations?: {
12742
- cwd: string;
12743
12742
  id: string;
12743
+ cwd: string;
12744
12744
  createdAt: number;
12745
12745
  lastActivityAt: number;
12746
12746
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -12750,19 +12750,19 @@ export declare const protocolMessageSchemas: {
12750
12750
  model?: string | undefined;
12751
12751
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
12752
12752
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
12753
- collaborationMode?: "plan" | "default" | undefined;
12753
+ collaborationMode?: "default" | "plan" | undefined;
12754
12754
  archived?: boolean | undefined;
12755
12755
  lastMessagePreview?: string | undefined;
12756
12756
  }[] | undefined;
12757
12757
  activeConversationId?: string | undefined;
12758
12758
  items?: {
12759
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
12759
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
12760
12760
  conversationId: string;
12761
12761
  id: string;
12762
12762
  createdAt: number;
12763
+ error?: string | undefined;
12763
12764
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12764
12765
  role?: "user" | "assistant" | "system" | undefined;
12765
- error?: string | undefined;
12766
12766
  content?: {
12767
12767
  type: "text" | "image";
12768
12768
  data?: string | undefined;
@@ -12778,8 +12778,8 @@ export declare const protocolMessageSchemas: {
12778
12778
  }[] | undefined;
12779
12779
  isStreaming?: boolean | undefined;
12780
12780
  toolCall?: {
12781
- name: string;
12782
12781
  id: string;
12782
+ name: string;
12783
12783
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12784
12784
  createdAt?: number | undefined;
12785
12785
  input?: string | undefined;
@@ -12876,9 +12876,9 @@ export declare const protocolMessageSchemas: {
12876
12876
  createdAt: z.ZodNumber;
12877
12877
  }, "strip", z.ZodTypeAny, {
12878
12878
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
12879
+ id: string;
12879
12880
  provider: "custom" | "claude" | "codex";
12880
12881
  cwd: string;
12881
- id: string;
12882
12882
  createdAt: number;
12883
12883
  archived: boolean;
12884
12884
  lastActivityAt: number;
@@ -12887,11 +12887,11 @@ export declare const protocolMessageSchemas: {
12887
12887
  model?: string | undefined;
12888
12888
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
12889
12889
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
12890
- collaborationMode?: "plan" | "default" | undefined;
12890
+ collaborationMode?: "default" | "plan" | undefined;
12891
12891
  lastMessagePreview?: string | undefined;
12892
12892
  }, {
12893
- cwd: string;
12894
12893
  id: string;
12894
+ cwd: string;
12895
12895
  createdAt: number;
12896
12896
  lastActivityAt: number;
12897
12897
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -12901,7 +12901,7 @@ export declare const protocolMessageSchemas: {
12901
12901
  model?: string | undefined;
12902
12902
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
12903
12903
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
12904
- collaborationMode?: "plan" | "default" | undefined;
12904
+ collaborationMode?: "default" | "plan" | undefined;
12905
12905
  archived?: boolean | undefined;
12906
12906
  lastMessagePreview?: string | undefined;
12907
12907
  }>>;
@@ -12939,14 +12939,14 @@ export declare const protocolMessageSchemas: {
12939
12939
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
12940
12940
  }, "strip", z.ZodTypeAny, {
12941
12941
  status: "running" | "pending" | "completed" | "failed";
12942
- name: string;
12943
12942
  id: string;
12943
+ name: string;
12944
12944
  createdAt?: number | undefined;
12945
12945
  input?: string | undefined;
12946
12946
  output?: string | undefined;
12947
12947
  }, {
12948
- name: string;
12949
12948
  id: string;
12949
+ name: string;
12950
12950
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12951
12951
  createdAt?: number | undefined;
12952
12952
  input?: string | undefined;
@@ -13232,13 +13232,13 @@ export declare const protocolMessageSchemas: {
13232
13232
  updatedAt: z.ZodOptional<z.ZodNumber>;
13233
13233
  isStreaming: z.ZodOptional<z.ZodBoolean>;
13234
13234
  }, "strip", z.ZodTypeAny, {
13235
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
13235
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
13236
13236
  conversationId: string;
13237
13237
  id: string;
13238
13238
  createdAt: number;
13239
+ error?: string | undefined;
13239
13240
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13240
13241
  role?: "user" | "assistant" | "system" | undefined;
13241
- error?: string | undefined;
13242
13242
  content?: {
13243
13243
  type: "text" | "image";
13244
13244
  data?: string | undefined;
@@ -13255,8 +13255,8 @@ export declare const protocolMessageSchemas: {
13255
13255
  isStreaming?: boolean | undefined;
13256
13256
  toolCall?: {
13257
13257
  status: "running" | "pending" | "completed" | "failed";
13258
- name: string;
13259
13258
  id: string;
13259
+ name: string;
13260
13260
  createdAt?: number | undefined;
13261
13261
  input?: string | undefined;
13262
13262
  output?: string | undefined;
@@ -13332,13 +13332,13 @@ export declare const protocolMessageSchemas: {
13332
13332
  metadata?: Record<string, unknown> | undefined;
13333
13333
  updatedAt?: number | undefined;
13334
13334
  }, {
13335
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
13335
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
13336
13336
  conversationId: string;
13337
13337
  id: string;
13338
13338
  createdAt: number;
13339
+ error?: string | undefined;
13339
13340
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13340
13341
  role?: "user" | "assistant" | "system" | undefined;
13341
- error?: string | undefined;
13342
13342
  content?: {
13343
13343
  type: "text" | "image";
13344
13344
  data?: string | undefined;
@@ -13354,8 +13354,8 @@ export declare const protocolMessageSchemas: {
13354
13354
  }[] | undefined;
13355
13355
  isStreaming?: boolean | undefined;
13356
13356
  toolCall?: {
13357
- name: string;
13358
13357
  id: string;
13358
+ name: string;
13359
13359
  status?: "running" | "pending" | "completed" | "failed" | undefined;
13360
13360
  createdAt?: number | undefined;
13361
13361
  input?: string | undefined;
@@ -13464,14 +13464,14 @@ export declare const protocolMessageSchemas: {
13464
13464
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
13465
13465
  }, "strip", z.ZodTypeAny, {
13466
13466
  status: "running" | "pending" | "completed" | "failed";
13467
- name: string;
13468
13467
  id: string;
13468
+ name: string;
13469
13469
  createdAt?: number | undefined;
13470
13470
  input?: string | undefined;
13471
13471
  output?: string | undefined;
13472
13472
  }, {
13473
- name: string;
13474
13473
  id: string;
13474
+ name: string;
13475
13475
  status?: "running" | "pending" | "completed" | "failed" | undefined;
13476
13476
  createdAt?: number | undefined;
13477
13477
  input?: string | undefined;
@@ -13756,9 +13756,9 @@ export declare const protocolMessageSchemas: {
13756
13756
  isStreaming: z.ZodOptional<z.ZodBoolean>;
13757
13757
  }, "strip", z.ZodTypeAny, {
13758
13758
  itemId: string;
13759
+ error?: string | undefined;
13759
13760
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13760
13761
  role?: "user" | "assistant" | "system" | undefined;
13761
- error?: string | undefined;
13762
13762
  content?: {
13763
13763
  type: "text" | "image";
13764
13764
  data?: string | undefined;
@@ -13775,8 +13775,8 @@ export declare const protocolMessageSchemas: {
13775
13775
  isStreaming?: boolean | undefined;
13776
13776
  toolCall?: {
13777
13777
  status: "running" | "pending" | "completed" | "failed";
13778
- name: string;
13779
13778
  id: string;
13779
+ name: string;
13780
13780
  createdAt?: number | undefined;
13781
13781
  input?: string | undefined;
13782
13782
  output?: string | undefined;
@@ -13852,9 +13852,9 @@ export declare const protocolMessageSchemas: {
13852
13852
  textDelta?: string | undefined;
13853
13853
  }, {
13854
13854
  itemId: string;
13855
+ error?: string | undefined;
13855
13856
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13856
13857
  role?: "user" | "assistant" | "system" | undefined;
13857
- error?: string | undefined;
13858
13858
  content?: {
13859
13859
  type: "text" | "image";
13860
13860
  data?: string | undefined;
@@ -13870,8 +13870,8 @@ export declare const protocolMessageSchemas: {
13870
13870
  }[] | undefined;
13871
13871
  isStreaming?: boolean | undefined;
13872
13872
  toolCall?: {
13873
- name: string;
13874
13873
  id: string;
13874
+ name: string;
13875
13875
  status?: "running" | "pending" | "completed" | "failed" | undefined;
13876
13876
  createdAt?: number | undefined;
13877
13877
  input?: string | undefined;
@@ -13951,9 +13951,9 @@ export declare const protocolMessageSchemas: {
13951
13951
  conversationId: string;
13952
13952
  conversation?: {
13953
13953
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
13954
+ id: string;
13954
13955
  provider: "custom" | "claude" | "codex";
13955
13956
  cwd: string;
13956
- id: string;
13957
13957
  createdAt: number;
13958
13958
  archived: boolean;
13959
13959
  lastActivityAt: number;
@@ -13962,17 +13962,17 @@ export declare const protocolMessageSchemas: {
13962
13962
  model?: string | undefined;
13963
13963
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
13964
13964
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
13965
- collaborationMode?: "plan" | "default" | undefined;
13965
+ collaborationMode?: "default" | "plan" | undefined;
13966
13966
  lastMessagePreview?: string | undefined;
13967
13967
  } | undefined;
13968
13968
  item?: {
13969
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
13969
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
13970
13970
  conversationId: string;
13971
13971
  id: string;
13972
13972
  createdAt: number;
13973
+ error?: string | undefined;
13973
13974
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13974
13975
  role?: "user" | "assistant" | "system" | undefined;
13975
- error?: string | undefined;
13976
13976
  content?: {
13977
13977
  type: "text" | "image";
13978
13978
  data?: string | undefined;
@@ -13989,8 +13989,8 @@ export declare const protocolMessageSchemas: {
13989
13989
  isStreaming?: boolean | undefined;
13990
13990
  toolCall?: {
13991
13991
  status: "running" | "pending" | "completed" | "failed";
13992
- name: string;
13993
13992
  id: string;
13993
+ name: string;
13994
13994
  createdAt?: number | undefined;
13995
13995
  input?: string | undefined;
13996
13996
  output?: string | undefined;
@@ -14068,9 +14068,9 @@ export declare const protocolMessageSchemas: {
14068
14068
  } | undefined;
14069
14069
  patch?: {
14070
14070
  itemId: string;
14071
+ error?: string | undefined;
14071
14072
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
14072
14073
  role?: "user" | "assistant" | "system" | undefined;
14073
- error?: string | undefined;
14074
14074
  content?: {
14075
14075
  type: "text" | "image";
14076
14076
  data?: string | undefined;
@@ -14087,8 +14087,8 @@ export declare const protocolMessageSchemas: {
14087
14087
  isStreaming?: boolean | undefined;
14088
14088
  toolCall?: {
14089
14089
  status: "running" | "pending" | "completed" | "failed";
14090
- name: string;
14091
14090
  id: string;
14091
+ name: string;
14092
14092
  createdAt?: number | undefined;
14093
14093
  input?: string | undefined;
14094
14094
  output?: string | undefined;
@@ -14166,8 +14166,8 @@ export declare const protocolMessageSchemas: {
14166
14166
  }, {
14167
14167
  conversationId: string;
14168
14168
  conversation?: {
14169
- cwd: string;
14170
14169
  id: string;
14170
+ cwd: string;
14171
14171
  createdAt: number;
14172
14172
  lastActivityAt: number;
14173
14173
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
@@ -14177,18 +14177,18 @@ export declare const protocolMessageSchemas: {
14177
14177
  model?: string | undefined;
14178
14178
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
14179
14179
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
14180
- collaborationMode?: "plan" | "default" | undefined;
14180
+ collaborationMode?: "default" | "plan" | undefined;
14181
14181
  archived?: boolean | undefined;
14182
14182
  lastMessagePreview?: string | undefined;
14183
14183
  } | undefined;
14184
14184
  item?: {
14185
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
14185
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
14186
14186
  conversationId: string;
14187
14187
  id: string;
14188
14188
  createdAt: number;
14189
+ error?: string | undefined;
14189
14190
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
14190
14191
  role?: "user" | "assistant" | "system" | undefined;
14191
- error?: string | undefined;
14192
14192
  content?: {
14193
14193
  type: "text" | "image";
14194
14194
  data?: string | undefined;
@@ -14204,8 +14204,8 @@ export declare const protocolMessageSchemas: {
14204
14204
  }[] | undefined;
14205
14205
  isStreaming?: boolean | undefined;
14206
14206
  toolCall?: {
14207
- name: string;
14208
14207
  id: string;
14208
+ name: string;
14209
14209
  status?: "running" | "pending" | "completed" | "failed" | undefined;
14210
14210
  createdAt?: number | undefined;
14211
14211
  input?: string | undefined;
@@ -14284,9 +14284,9 @@ export declare const protocolMessageSchemas: {
14284
14284
  } | undefined;
14285
14285
  patch?: {
14286
14286
  itemId: string;
14287
+ error?: string | undefined;
14287
14288
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
14288
14289
  role?: "user" | "assistant" | "system" | undefined;
14289
- error?: string | undefined;
14290
14290
  content?: {
14291
14291
  type: "text" | "image";
14292
14292
  data?: string | undefined;
@@ -14302,8 +14302,8 @@ export declare const protocolMessageSchemas: {
14302
14302
  }[] | undefined;
14303
14303
  isStreaming?: boolean | undefined;
14304
14304
  toolCall?: {
14305
- name: string;
14306
14305
  id: string;
14306
+ name: string;
14307
14307
  status?: "running" | "pending" | "completed" | "failed" | undefined;
14308
14308
  createdAt?: number | undefined;
14309
14309
  input?: string | undefined;
@@ -14388,13 +14388,13 @@ export declare const protocolMessageSchemas: {
14388
14388
  durationMs: z.ZodOptional<z.ZodNumber>;
14389
14389
  }, "strip", z.ZodTypeAny, {
14390
14390
  title: string;
14391
- kind: "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "info" | "warning";
14391
+ kind: "info" | "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "warning";
14392
14392
  conversationId?: string | undefined;
14393
14393
  detail?: string | undefined;
14394
14394
  durationMs?: number | undefined;
14395
14395
  }, {
14396
14396
  title: string;
14397
- kind: "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "info" | "warning";
14397
+ kind: "info" | "model_changed" | "effort_changed" | "permission_changed" | "native_unsupported" | "warning";
14398
14398
  conversationId?: string | undefined;
14399
14399
  detail?: string | undefined;
14400
14400
  durationMs?: number | undefined;
@@ -14448,14 +14448,14 @@ export declare const protocolMessageSchemas: {
14448
14448
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
14449
14449
  }, "strip", z.ZodTypeAny, {
14450
14450
  status: "running" | "pending" | "completed" | "failed";
14451
- name: string;
14452
14451
  id: string;
14452
+ name: string;
14453
14453
  createdAt?: number | undefined;
14454
14454
  input?: string | undefined;
14455
14455
  output?: string | undefined;
14456
14456
  }, {
14457
- name: string;
14458
14457
  id: string;
14458
+ name: string;
14459
14459
  status?: "running" | "pending" | "completed" | "failed" | undefined;
14460
14460
  createdAt?: number | undefined;
14461
14461
  input?: string | undefined;
@@ -14741,13 +14741,13 @@ export declare const protocolMessageSchemas: {
14741
14741
  updatedAt: z.ZodOptional<z.ZodNumber>;
14742
14742
  isStreaming: z.ZodOptional<z.ZodBoolean>;
14743
14743
  }, "strip", z.ZodTypeAny, {
14744
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
14744
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
14745
14745
  conversationId: string;
14746
14746
  id: string;
14747
14747
  createdAt: number;
14748
+ error?: string | undefined;
14748
14749
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
14749
14750
  role?: "user" | "assistant" | "system" | undefined;
14750
- error?: string | undefined;
14751
14751
  content?: {
14752
14752
  type: "text" | "image";
14753
14753
  data?: string | undefined;
@@ -14764,8 +14764,8 @@ export declare const protocolMessageSchemas: {
14764
14764
  isStreaming?: boolean | undefined;
14765
14765
  toolCall?: {
14766
14766
  status: "running" | "pending" | "completed" | "failed";
14767
- name: string;
14768
14767
  id: string;
14768
+ name: string;
14769
14769
  createdAt?: number | undefined;
14770
14770
  input?: string | undefined;
14771
14771
  output?: string | undefined;
@@ -14841,13 +14841,13 @@ export declare const protocolMessageSchemas: {
14841
14841
  metadata?: Record<string, unknown> | undefined;
14842
14842
  updatedAt?: number | undefined;
14843
14843
  }, {
14844
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
14844
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
14845
14845
  conversationId: string;
14846
14846
  id: string;
14847
14847
  createdAt: number;
14848
+ error?: string | undefined;
14848
14849
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
14849
14850
  role?: "user" | "assistant" | "system" | undefined;
14850
- error?: string | undefined;
14851
14851
  content?: {
14852
14852
  type: "text" | "image";
14853
14853
  data?: string | undefined;
@@ -14863,8 +14863,8 @@ export declare const protocolMessageSchemas: {
14863
14863
  }[] | undefined;
14864
14864
  isStreaming?: boolean | undefined;
14865
14865
  toolCall?: {
14866
- name: string;
14867
14866
  id: string;
14867
+ name: string;
14868
14868
  status?: "running" | "pending" | "completed" | "failed" | undefined;
14869
14869
  createdAt?: number | undefined;
14870
14870
  input?: string | undefined;
@@ -14946,13 +14946,13 @@ export declare const protocolMessageSchemas: {
14946
14946
  }, "strip", z.ZodTypeAny, {
14947
14947
  conversationId: string;
14948
14948
  items: {
14949
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
14949
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
14950
14950
  conversationId: string;
14951
14951
  id: string;
14952
14952
  createdAt: number;
14953
+ error?: string | undefined;
14953
14954
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
14954
14955
  role?: "user" | "assistant" | "system" | undefined;
14955
- error?: string | undefined;
14956
14956
  content?: {
14957
14957
  type: "text" | "image";
14958
14958
  data?: string | undefined;
@@ -14969,8 +14969,8 @@ export declare const protocolMessageSchemas: {
14969
14969
  isStreaming?: boolean | undefined;
14970
14970
  toolCall?: {
14971
14971
  status: "running" | "pending" | "completed" | "failed";
14972
- name: string;
14973
14972
  id: string;
14973
+ name: string;
14974
14974
  createdAt?: number | undefined;
14975
14975
  input?: string | undefined;
14976
14976
  output?: string | undefined;
@@ -15051,13 +15051,13 @@ export declare const protocolMessageSchemas: {
15051
15051
  }, {
15052
15052
  conversationId: string;
15053
15053
  items?: {
15054
- type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
15054
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
15055
15055
  conversationId: string;
15056
15056
  id: string;
15057
15057
  createdAt: number;
15058
+ error?: string | undefined;
15058
15059
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
15059
15060
  role?: "user" | "assistant" | "system" | undefined;
15060
- error?: string | undefined;
15061
15061
  content?: {
15062
15062
  type: "text" | "image";
15063
15063
  data?: string | undefined;
@@ -15073,8 +15073,8 @@ export declare const protocolMessageSchemas: {
15073
15073
  }[] | undefined;
15074
15074
  isStreaming?: boolean | undefined;
15075
15075
  toolCall?: {
15076
- name: string;
15077
15076
  id: string;
15077
+ name: string;
15078
15078
  status?: "running" | "pending" | "completed" | "failed" | undefined;
15079
15079
  createdAt?: number | undefined;
15080
15080
  input?: string | undefined;