linkshell-cli 0.2.117 → 0.2.120

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.
@@ -420,20 +420,20 @@ export declare const terminalBrowseResultPayloadSchema: z.ZodObject<{
420
420
  }>, "many">;
421
421
  error: z.ZodOptional<z.ZodString>;
422
422
  }, "strip", z.ZodTypeAny, {
423
- path: string;
424
423
  entries: {
425
424
  name: string;
426
425
  path: string;
427
426
  isDirectory: boolean;
428
427
  }[];
428
+ path: string;
429
429
  error?: string | undefined;
430
430
  }, {
431
- path: string;
432
431
  entries: {
433
432
  name: string;
434
433
  path: string;
435
434
  isDirectory: boolean;
436
435
  }[];
436
+ path: string;
437
437
  error?: string | undefined;
438
438
  }>;
439
439
  export declare const terminalStatusPayloadSchema: z.ZodObject<{
@@ -462,6 +462,22 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
462
462
  permissionRequest: string;
463
463
  requestId: string;
464
464
  }>>;
465
+ permissionResolution: z.ZodOptional<z.ZodObject<{
466
+ requestId: z.ZodString;
467
+ outcome: z.ZodEnum<["allow", "deny", "cancelled"]>;
468
+ source: z.ZodOptional<z.ZodString>;
469
+ delivered: z.ZodBoolean;
470
+ }, "strip", z.ZodTypeAny, {
471
+ requestId: string;
472
+ outcome: "allow" | "deny" | "cancelled";
473
+ delivered: boolean;
474
+ source?: string | undefined;
475
+ }, {
476
+ requestId: string;
477
+ outcome: "allow" | "deny" | "cancelled";
478
+ delivered: boolean;
479
+ source?: string | undefined;
480
+ }>>;
465
481
  pendingPermissionCount: z.ZodOptional<z.ZodNumber>;
466
482
  machineId: z.ZodOptional<z.ZodString>;
467
483
  }, "strip", z.ZodTypeAny, {
@@ -479,6 +495,12 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
479
495
  permissionRequest: string;
480
496
  requestId: string;
481
497
  } | undefined;
498
+ permissionResolution?: {
499
+ requestId: string;
500
+ outcome: "allow" | "deny" | "cancelled";
501
+ delivered: boolean;
502
+ source?: string | undefined;
503
+ } | undefined;
482
504
  pendingPermissionCount?: number | undefined;
483
505
  }, {
484
506
  phase: "error" | "idle" | "thinking" | "tool_use" | "outputting" | "waiting";
@@ -495,6 +517,12 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
495
517
  permissionRequest: string;
496
518
  requestId: string;
497
519
  } | undefined;
520
+ permissionResolution?: {
521
+ requestId: string;
522
+ outcome: "allow" | "deny" | "cancelled";
523
+ delivered: boolean;
524
+ source?: string | undefined;
525
+ } | undefined;
498
526
  pendingPermissionCount?: number | undefined;
499
527
  }>;
500
528
  export declare const fileUploadPayloadSchema: z.ZodObject<{
@@ -517,6 +545,28 @@ export declare const permissionDecisionPayloadSchema: z.ZodObject<{
517
545
  requestId: string;
518
546
  decision: "allow" | "deny";
519
547
  }>;
548
+ export declare const permissionDecisionResultPayloadSchema: z.ZodObject<{
549
+ requestId: z.ZodString;
550
+ decision: z.ZodEnum<["allow", "deny"]>;
551
+ resolved: z.ZodBoolean;
552
+ delivered: z.ZodBoolean;
553
+ source: z.ZodOptional<z.ZodString>;
554
+ message: z.ZodOptional<z.ZodString>;
555
+ }, "strip", z.ZodTypeAny, {
556
+ requestId: string;
557
+ delivered: boolean;
558
+ decision: "allow" | "deny";
559
+ resolved: boolean;
560
+ message?: string | undefined;
561
+ source?: string | undefined;
562
+ }, {
563
+ requestId: string;
564
+ delivered: boolean;
565
+ decision: "allow" | "deny";
566
+ resolved: boolean;
567
+ message?: string | undefined;
568
+ source?: string | undefined;
569
+ }>;
520
570
  export declare const errorPayloadSchema: z.ZodObject<{
521
571
  code: z.ZodString;
522
572
  message: z.ZodString;
@@ -536,16 +586,16 @@ export declare const tunnelRequestPayloadSchema: z.ZodObject<{
536
586
  port: z.ZodNumber;
537
587
  }, "strip", z.ZodTypeAny, {
538
588
  port: number;
539
- url: string;
540
589
  requestId: string;
541
590
  method: string;
591
+ url: string;
542
592
  headers: Record<string, string>;
543
593
  body: string | null;
544
594
  }, {
545
595
  port: number;
546
- url: string;
547
596
  requestId: string;
548
597
  method: string;
598
+ url: string;
549
599
  headers: Record<string, string>;
550
600
  body: string | null;
551
601
  }>;
@@ -621,12 +671,12 @@ export declare const agentContentBlockSchema: z.ZodObject<{
621
671
  data: z.ZodOptional<z.ZodString>;
622
672
  mimeType: z.ZodOptional<z.ZodString>;
623
673
  }, "strip", z.ZodTypeAny, {
624
- type: "image" | "text";
674
+ type: "text" | "image";
625
675
  text?: string | undefined;
626
676
  data?: string | undefined;
627
677
  mimeType?: string | undefined;
628
678
  }, {
629
- type: "image" | "text";
679
+ type: "text" | "image";
630
680
  text?: string | undefined;
631
681
  data?: string | undefined;
632
682
  mimeType?: string | undefined;
@@ -659,14 +709,14 @@ export declare const agentToolCallSchema: z.ZodObject<{
659
709
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
660
710
  }, "strip", z.ZodTypeAny, {
661
711
  status: "running" | "pending" | "completed" | "failed";
662
- name: string;
663
712
  id: string;
713
+ name: string;
664
714
  input?: string | undefined;
665
715
  output?: string | undefined;
666
716
  createdAt?: number | undefined;
667
717
  }, {
668
- name: string;
669
718
  id: string;
719
+ name: string;
670
720
  status?: "running" | "pending" | "completed" | "failed" | undefined;
671
721
  input?: string | undefined;
672
722
  output?: string | undefined;
@@ -735,9 +785,9 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
735
785
  disabledReason: z.ZodOptional<z.ZodString>;
736
786
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
737
787
  }, "strip", z.ZodTypeAny, {
738
- name: string;
739
788
  title: string;
740
789
  id: string;
790
+ name: string;
741
791
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
742
792
  argsMode: "none" | "optional" | "required" | "raw";
743
793
  executionKind: "prompt" | "native" | "local_ui";
@@ -748,9 +798,9 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
748
798
  destructive?: boolean | undefined;
749
799
  disabledReason?: string | undefined;
750
800
  }, {
751
- name: string;
752
801
  title: string;
753
802
  id: string;
803
+ name: string;
754
804
  description?: string | undefined;
755
805
  provider?: "claude" | "codex" | "custom" | undefined;
756
806
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -810,9 +860,9 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
810
860
  disabledReason: z.ZodOptional<z.ZodString>;
811
861
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
812
862
  }, "strip", z.ZodTypeAny, {
813
- name: string;
814
863
  title: string;
815
864
  id: string;
865
+ name: string;
816
866
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
817
867
  argsMode: "none" | "optional" | "required" | "raw";
818
868
  executionKind: "prompt" | "native" | "local_ui";
@@ -823,9 +873,9 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
823
873
  destructive?: boolean | undefined;
824
874
  disabledReason?: string | undefined;
825
875
  }, {
826
- name: string;
827
876
  title: string;
828
877
  id: string;
878
+ name: string;
829
879
  description?: string | undefined;
830
880
  provider?: "claude" | "codex" | "custom" | undefined;
831
881
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -868,9 +918,9 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
868
918
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
869
919
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
870
920
  commands?: {
871
- name: string;
872
921
  title: string;
873
922
  id: string;
923
+ name: string;
874
924
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
875
925
  argsMode: "none" | "optional" | "required" | "raw";
876
926
  executionKind: "prompt" | "native" | "local_ui";
@@ -905,9 +955,9 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
905
955
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
906
956
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
907
957
  commands?: {
908
- name: string;
909
958
  title: string;
910
959
  id: string;
960
+ name: string;
911
961
  description?: string | undefined;
912
962
  provider?: "claude" | "codex" | "custom" | undefined;
913
963
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -966,9 +1016,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
966
1016
  disabledReason: z.ZodOptional<z.ZodString>;
967
1017
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
968
1018
  }, "strip", z.ZodTypeAny, {
969
- name: string;
970
1019
  title: string;
971
1020
  id: string;
1021
+ name: string;
972
1022
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
973
1023
  argsMode: "none" | "optional" | "required" | "raw";
974
1024
  executionKind: "prompt" | "native" | "local_ui";
@@ -979,9 +1029,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
979
1029
  destructive?: boolean | undefined;
980
1030
  disabledReason?: string | undefined;
981
1031
  }, {
982
- name: string;
983
1032
  title: string;
984
1033
  id: string;
1034
+ name: string;
985
1035
  description?: string | undefined;
986
1036
  provider?: "claude" | "codex" | "custom" | undefined;
987
1037
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -1024,9 +1074,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1024
1074
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1025
1075
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1026
1076
  commands?: {
1027
- name: string;
1028
1077
  title: string;
1029
1078
  id: string;
1079
+ name: string;
1030
1080
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
1031
1081
  argsMode: "none" | "optional" | "required" | "raw";
1032
1082
  executionKind: "prompt" | "native" | "local_ui";
@@ -1061,9 +1111,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1061
1111
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1062
1112
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1063
1113
  commands?: {
1064
- name: string;
1065
1114
  title: string;
1066
1115
  id: string;
1116
+ name: string;
1067
1117
  description?: string | undefined;
1068
1118
  provider?: "claude" | "codex" | "custom" | undefined;
1069
1119
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -1121,9 +1171,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1121
1171
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1122
1172
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1123
1173
  commands?: {
1124
- name: string;
1125
1174
  title: string;
1126
1175
  id: string;
1176
+ name: string;
1127
1177
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
1128
1178
  argsMode: "none" | "optional" | "required" | "raw";
1129
1179
  executionKind: "prompt" | "native" | "local_ui";
@@ -1169,9 +1219,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1169
1219
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1170
1220
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1171
1221
  commands?: {
1172
- name: string;
1173
1222
  title: string;
1174
1223
  id: string;
1224
+ name: string;
1175
1225
  description?: string | undefined;
1176
1226
  provider?: "claude" | "codex" | "custom" | undefined;
1177
1227
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -1228,12 +1278,12 @@ export declare const agentPromptPayloadSchema: z.ZodObject<{
1228
1278
  data: z.ZodOptional<z.ZodString>;
1229
1279
  mimeType: z.ZodOptional<z.ZodString>;
1230
1280
  }, "strip", z.ZodTypeAny, {
1231
- type: "image" | "text";
1281
+ type: "text" | "image";
1232
1282
  text?: string | undefined;
1233
1283
  data?: string | undefined;
1234
1284
  mimeType?: string | undefined;
1235
1285
  }, {
1236
- type: "image" | "text";
1286
+ type: "text" | "image";
1237
1287
  text?: string | undefined;
1238
1288
  data?: string | undefined;
1239
1289
  mimeType?: string | undefined;
@@ -1244,7 +1294,7 @@ export declare const agentPromptPayloadSchema: z.ZodObject<{
1244
1294
  }, "strip", z.ZodTypeAny, {
1245
1295
  clientMessageId: string;
1246
1296
  contentBlocks: {
1247
- type: "image" | "text";
1297
+ type: "text" | "image";
1248
1298
  text?: string | undefined;
1249
1299
  data?: string | undefined;
1250
1300
  mimeType?: string | undefined;
@@ -1256,7 +1306,7 @@ export declare const agentPromptPayloadSchema: z.ZodObject<{
1256
1306
  }, {
1257
1307
  clientMessageId: string;
1258
1308
  contentBlocks: {
1259
- type: "image" | "text";
1309
+ type: "text" | "image";
1260
1310
  text?: string | undefined;
1261
1311
  data?: string | undefined;
1262
1312
  mimeType?: string | undefined;
@@ -1305,14 +1355,14 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1305
1355
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
1306
1356
  }, "strip", z.ZodTypeAny, {
1307
1357
  status: "running" | "pending" | "completed" | "failed";
1308
- name: string;
1309
1358
  id: string;
1359
+ name: string;
1310
1360
  input?: string | undefined;
1311
1361
  output?: string | undefined;
1312
1362
  createdAt?: number | undefined;
1313
1363
  }, {
1314
- name: string;
1315
1364
  id: string;
1365
+ name: string;
1316
1366
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1317
1367
  input?: string | undefined;
1318
1368
  output?: string | undefined;
@@ -1353,8 +1403,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1353
1403
  delta?: string | undefined;
1354
1404
  toolCall?: {
1355
1405
  status: "running" | "pending" | "completed" | "failed";
1356
- name: string;
1357
1406
  id: string;
1407
+ name: string;
1358
1408
  input?: string | undefined;
1359
1409
  output?: string | undefined;
1360
1410
  createdAt?: number | undefined;
@@ -1378,8 +1428,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1378
1428
  agentSessionId?: string | undefined;
1379
1429
  delta?: string | undefined;
1380
1430
  toolCall?: {
1381
- name: string;
1382
1431
  id: string;
1432
+ name: string;
1383
1433
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1384
1434
  input?: string | undefined;
1385
1435
  output?: string | undefined;
@@ -1487,9 +1537,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1487
1537
  disabledReason: z.ZodOptional<z.ZodString>;
1488
1538
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
1489
1539
  }, "strip", z.ZodTypeAny, {
1490
- name: string;
1491
1540
  title: string;
1492
1541
  id: string;
1542
+ name: string;
1493
1543
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
1494
1544
  argsMode: "none" | "optional" | "required" | "raw";
1495
1545
  executionKind: "prompt" | "native" | "local_ui";
@@ -1500,9 +1550,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1500
1550
  destructive?: boolean | undefined;
1501
1551
  disabledReason?: string | undefined;
1502
1552
  }, {
1503
- name: string;
1504
1553
  title: string;
1505
1554
  id: string;
1555
+ name: string;
1506
1556
  description?: string | undefined;
1507
1557
  provider?: "claude" | "codex" | "custom" | undefined;
1508
1558
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -1545,9 +1595,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1545
1595
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1546
1596
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1547
1597
  commands?: {
1548
- name: string;
1549
1598
  title: string;
1550
1599
  id: string;
1600
+ name: string;
1551
1601
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
1552
1602
  argsMode: "none" | "optional" | "required" | "raw";
1553
1603
  executionKind: "prompt" | "native" | "local_ui";
@@ -1582,9 +1632,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1582
1632
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1583
1633
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1584
1634
  commands?: {
1585
- name: string;
1586
1635
  title: string;
1587
1636
  id: string;
1637
+ name: string;
1588
1638
  description?: string | undefined;
1589
1639
  provider?: "claude" | "codex" | "custom" | undefined;
1590
1640
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -1642,9 +1692,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1642
1692
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1643
1693
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1644
1694
  commands?: {
1645
- name: string;
1646
1695
  title: string;
1647
1696
  id: string;
1697
+ name: string;
1648
1698
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
1649
1699
  argsMode: "none" | "optional" | "required" | "raw";
1650
1700
  executionKind: "prompt" | "native" | "local_ui";
@@ -1690,9 +1740,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1690
1740
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1691
1741
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1692
1742
  commands?: {
1693
- name: string;
1694
1743
  title: string;
1695
1744
  id: string;
1745
+ name: string;
1696
1746
  description?: string | undefined;
1697
1747
  provider?: "claude" | "codex" | "custom" | undefined;
1698
1748
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -1743,14 +1793,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1743
1793
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
1744
1794
  }, "strip", z.ZodTypeAny, {
1745
1795
  status: "running" | "pending" | "completed" | "failed";
1746
- name: string;
1747
1796
  id: string;
1797
+ name: string;
1748
1798
  input?: string | undefined;
1749
1799
  output?: string | undefined;
1750
1800
  createdAt?: number | undefined;
1751
1801
  }, {
1752
- name: string;
1753
1802
  id: string;
1803
+ name: string;
1754
1804
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1755
1805
  input?: string | undefined;
1756
1806
  output?: string | undefined;
@@ -1808,8 +1858,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1808
1858
  }[];
1809
1859
  toolCalls: {
1810
1860
  status: "running" | "pending" | "completed" | "failed";
1811
- name: string;
1812
1861
  id: string;
1862
+ name: string;
1813
1863
  input?: string | undefined;
1814
1864
  output?: string | undefined;
1815
1865
  createdAt?: number | undefined;
@@ -1857,9 +1907,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1857
1907
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1858
1908
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1859
1909
  commands?: {
1860
- name: string;
1861
1910
  title: string;
1862
1911
  id: string;
1912
+ name: string;
1863
1913
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
1864
1914
  argsMode: "none" | "optional" | "required" | "raw";
1865
1915
  executionKind: "prompt" | "native" | "local_ui";
@@ -1910,9 +1960,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1910
1960
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1911
1961
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1912
1962
  commands?: {
1913
- name: string;
1914
1963
  title: string;
1915
1964
  id: string;
1965
+ name: string;
1916
1966
  description?: string | undefined;
1917
1967
  provider?: "claude" | "codex" | "custom" | undefined;
1918
1968
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -1943,8 +1993,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1943
1993
  isStreaming?: boolean | undefined;
1944
1994
  }[] | undefined;
1945
1995
  toolCalls?: {
1946
- name: string;
1947
1996
  id: string;
1997
+ name: string;
1948
1998
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1949
1999
  input?: string | undefined;
1950
2000
  output?: string | undefined;
@@ -2308,12 +2358,12 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2308
2358
  data: z.ZodOptional<z.ZodString>;
2309
2359
  mimeType: z.ZodOptional<z.ZodString>;
2310
2360
  }, "strip", z.ZodTypeAny, {
2311
- type: "image" | "text";
2361
+ type: "text" | "image";
2312
2362
  text?: string | undefined;
2313
2363
  data?: string | undefined;
2314
2364
  mimeType?: string | undefined;
2315
2365
  }, {
2316
- type: "image" | "text";
2366
+ type: "text" | "image";
2317
2367
  text?: string | undefined;
2318
2368
  data?: string | undefined;
2319
2369
  mimeType?: string | undefined;
@@ -2328,14 +2378,14 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2328
2378
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
2329
2379
  }, "strip", z.ZodTypeAny, {
2330
2380
  status: "running" | "pending" | "completed" | "failed";
2331
- name: string;
2332
2381
  id: string;
2382
+ name: string;
2333
2383
  input?: string | undefined;
2334
2384
  output?: string | undefined;
2335
2385
  createdAt?: number | undefined;
2336
2386
  }, {
2337
- name: string;
2338
2387
  id: string;
2388
+ name: string;
2339
2389
  status?: "running" | "pending" | "completed" | "failed" | undefined;
2340
2390
  input?: string | undefined;
2341
2391
  output?: string | undefined;
@@ -2656,7 +2706,7 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2656
2706
  role?: "user" | "assistant" | "system" | undefined;
2657
2707
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
2658
2708
  content?: {
2659
- type: "image" | "text";
2709
+ type: "text" | "image";
2660
2710
  text?: string | undefined;
2661
2711
  data?: string | undefined;
2662
2712
  mimeType?: string | undefined;
@@ -2664,8 +2714,8 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2664
2714
  isStreaming?: boolean | undefined;
2665
2715
  toolCall?: {
2666
2716
  status: "running" | "pending" | "completed" | "failed";
2667
- name: string;
2668
2717
  id: string;
2718
+ name: string;
2669
2719
  input?: string | undefined;
2670
2720
  output?: string | undefined;
2671
2721
  createdAt?: number | undefined;
@@ -2756,15 +2806,15 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2756
2806
  role?: "user" | "assistant" | "system" | undefined;
2757
2807
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
2758
2808
  content?: {
2759
- type: "image" | "text";
2809
+ type: "text" | "image";
2760
2810
  text?: string | undefined;
2761
2811
  data?: string | undefined;
2762
2812
  mimeType?: string | undefined;
2763
2813
  }[] | undefined;
2764
2814
  isStreaming?: boolean | undefined;
2765
2815
  toolCall?: {
2766
- name: string;
2767
2816
  id: string;
2817
+ name: string;
2768
2818
  status?: "running" | "pending" | "completed" | "failed" | undefined;
2769
2819
  input?: string | undefined;
2770
2820
  output?: string | undefined;
@@ -2908,9 +2958,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2908
2958
  disabledReason: z.ZodOptional<z.ZodString>;
2909
2959
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
2910
2960
  }, "strip", z.ZodTypeAny, {
2911
- name: string;
2912
2961
  title: string;
2913
2962
  id: string;
2963
+ name: string;
2914
2964
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
2915
2965
  argsMode: "none" | "optional" | "required" | "raw";
2916
2966
  executionKind: "prompt" | "native" | "local_ui";
@@ -2921,9 +2971,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2921
2971
  destructive?: boolean | undefined;
2922
2972
  disabledReason?: string | undefined;
2923
2973
  }, {
2924
- name: string;
2925
2974
  title: string;
2926
2975
  id: string;
2976
+ name: string;
2927
2977
  description?: string | undefined;
2928
2978
  provider?: "claude" | "codex" | "custom" | undefined;
2929
2979
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -2966,9 +3016,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2966
3016
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
2967
3017
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
2968
3018
  commands?: {
2969
- name: string;
2970
3019
  title: string;
2971
3020
  id: string;
3021
+ name: string;
2972
3022
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
2973
3023
  argsMode: "none" | "optional" | "required" | "raw";
2974
3024
  executionKind: "prompt" | "native" | "local_ui";
@@ -3003,9 +3053,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3003
3053
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3004
3054
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3005
3055
  commands?: {
3006
- name: string;
3007
3056
  title: string;
3008
3057
  id: string;
3058
+ name: string;
3009
3059
  description?: string | undefined;
3010
3060
  provider?: "claude" | "codex" | "custom" | undefined;
3011
3061
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -3066,9 +3116,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3066
3116
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3067
3117
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3068
3118
  commands?: {
3069
- name: string;
3070
3119
  title: string;
3071
3120
  id: string;
3121
+ name: string;
3072
3122
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
3073
3123
  argsMode: "none" | "optional" | "required" | "raw";
3074
3124
  executionKind: "prompt" | "native" | "local_ui";
@@ -3114,9 +3164,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3114
3164
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3115
3165
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3116
3166
  commands?: {
3117
- name: string;
3118
3167
  title: string;
3119
3168
  id: string;
3169
+ name: string;
3120
3170
  description?: string | undefined;
3121
3171
  provider?: "claude" | "codex" | "custom" | undefined;
3122
3172
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -3232,12 +3282,12 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3232
3282
  data: z.ZodOptional<z.ZodString>;
3233
3283
  mimeType: z.ZodOptional<z.ZodString>;
3234
3284
  }, "strip", z.ZodTypeAny, {
3235
- type: "image" | "text";
3285
+ type: "text" | "image";
3236
3286
  text?: string | undefined;
3237
3287
  data?: string | undefined;
3238
3288
  mimeType?: string | undefined;
3239
3289
  }, {
3240
- type: "image" | "text";
3290
+ type: "text" | "image";
3241
3291
  text?: string | undefined;
3242
3292
  data?: string | undefined;
3243
3293
  mimeType?: string | undefined;
@@ -3252,14 +3302,14 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3252
3302
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
3253
3303
  }, "strip", z.ZodTypeAny, {
3254
3304
  status: "running" | "pending" | "completed" | "failed";
3255
- name: string;
3256
3305
  id: string;
3306
+ name: string;
3257
3307
  input?: string | undefined;
3258
3308
  output?: string | undefined;
3259
3309
  createdAt?: number | undefined;
3260
3310
  }, {
3261
- name: string;
3262
3311
  id: string;
3312
+ name: string;
3263
3313
  status?: "running" | "pending" | "completed" | "failed" | undefined;
3264
3314
  input?: string | undefined;
3265
3315
  output?: string | undefined;
@@ -3580,7 +3630,7 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3580
3630
  role?: "user" | "assistant" | "system" | undefined;
3581
3631
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3582
3632
  content?: {
3583
- type: "image" | "text";
3633
+ type: "text" | "image";
3584
3634
  text?: string | undefined;
3585
3635
  data?: string | undefined;
3586
3636
  mimeType?: string | undefined;
@@ -3588,8 +3638,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3588
3638
  isStreaming?: boolean | undefined;
3589
3639
  toolCall?: {
3590
3640
  status: "running" | "pending" | "completed" | "failed";
3591
- name: string;
3592
3641
  id: string;
3642
+ name: string;
3593
3643
  input?: string | undefined;
3594
3644
  output?: string | undefined;
3595
3645
  createdAt?: number | undefined;
@@ -3680,15 +3730,15 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3680
3730
  role?: "user" | "assistant" | "system" | undefined;
3681
3731
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3682
3732
  content?: {
3683
- type: "image" | "text";
3733
+ type: "text" | "image";
3684
3734
  text?: string | undefined;
3685
3735
  data?: string | undefined;
3686
3736
  mimeType?: string | undefined;
3687
3737
  }[] | undefined;
3688
3738
  isStreaming?: boolean | undefined;
3689
3739
  toolCall?: {
3690
- name: string;
3691
3740
  id: string;
3741
+ name: string;
3692
3742
  status?: "running" | "pending" | "completed" | "failed" | undefined;
3693
3743
  input?: string | undefined;
3694
3744
  output?: string | undefined;
@@ -3798,7 +3848,7 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3798
3848
  role?: "user" | "assistant" | "system" | undefined;
3799
3849
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3800
3850
  content?: {
3801
- type: "image" | "text";
3851
+ type: "text" | "image";
3802
3852
  text?: string | undefined;
3803
3853
  data?: string | undefined;
3804
3854
  mimeType?: string | undefined;
@@ -3806,8 +3856,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3806
3856
  isStreaming?: boolean | undefined;
3807
3857
  toolCall?: {
3808
3858
  status: "running" | "pending" | "completed" | "failed";
3809
- name: string;
3810
3859
  id: string;
3860
+ name: string;
3811
3861
  input?: string | undefined;
3812
3862
  output?: string | undefined;
3813
3863
  createdAt?: number | undefined;
@@ -3916,15 +3966,15 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3916
3966
  role?: "user" | "assistant" | "system" | undefined;
3917
3967
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3918
3968
  content?: {
3919
- type: "image" | "text";
3969
+ type: "text" | "image";
3920
3970
  text?: string | undefined;
3921
3971
  data?: string | undefined;
3922
3972
  mimeType?: string | undefined;
3923
3973
  }[] | undefined;
3924
3974
  isStreaming?: boolean | undefined;
3925
3975
  toolCall?: {
3926
- name: string;
3927
3976
  id: string;
3977
+ name: string;
3928
3978
  status?: "running" | "pending" | "completed" | "failed" | undefined;
3929
3979
  input?: string | undefined;
3930
3980
  output?: string | undefined;
@@ -4080,12 +4130,12 @@ export declare const agentV2PromptPayloadSchema: z.ZodObject<{
4080
4130
  data: z.ZodOptional<z.ZodString>;
4081
4131
  mimeType: z.ZodOptional<z.ZodString>;
4082
4132
  }, "strip", z.ZodTypeAny, {
4083
- type: "image" | "text";
4133
+ type: "text" | "image";
4084
4134
  text?: string | undefined;
4085
4135
  data?: string | undefined;
4086
4136
  mimeType?: string | undefined;
4087
4137
  }, {
4088
- type: "image" | "text";
4138
+ type: "text" | "image";
4089
4139
  text?: string | undefined;
4090
4140
  data?: string | undefined;
4091
4141
  mimeType?: string | undefined;
@@ -4097,7 +4147,7 @@ export declare const agentV2PromptPayloadSchema: z.ZodObject<{
4097
4147
  }, "strip", z.ZodTypeAny, {
4098
4148
  clientMessageId: string;
4099
4149
  contentBlocks: {
4100
- type: "image" | "text";
4150
+ type: "text" | "image";
4101
4151
  text?: string | undefined;
4102
4152
  data?: string | undefined;
4103
4153
  mimeType?: string | undefined;
@@ -4110,7 +4160,7 @@ export declare const agentV2PromptPayloadSchema: z.ZodObject<{
4110
4160
  }, {
4111
4161
  clientMessageId: string;
4112
4162
  contentBlocks: {
4113
- type: "image" | "text";
4163
+ type: "text" | "image";
4114
4164
  text?: string | undefined;
4115
4165
  data?: string | undefined;
4116
4166
  mimeType?: string | undefined;
@@ -4245,12 +4295,12 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4245
4295
  data: z.ZodOptional<z.ZodString>;
4246
4296
  mimeType: z.ZodOptional<z.ZodString>;
4247
4297
  }, "strip", z.ZodTypeAny, {
4248
- type: "image" | "text";
4298
+ type: "text" | "image";
4249
4299
  text?: string | undefined;
4250
4300
  data?: string | undefined;
4251
4301
  mimeType?: string | undefined;
4252
4302
  }, {
4253
- type: "image" | "text";
4303
+ type: "text" | "image";
4254
4304
  text?: string | undefined;
4255
4305
  data?: string | undefined;
4256
4306
  mimeType?: string | undefined;
@@ -4265,14 +4315,14 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4265
4315
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
4266
4316
  }, "strip", z.ZodTypeAny, {
4267
4317
  status: "running" | "pending" | "completed" | "failed";
4268
- name: string;
4269
4318
  id: string;
4319
+ name: string;
4270
4320
  input?: string | undefined;
4271
4321
  output?: string | undefined;
4272
4322
  createdAt?: number | undefined;
4273
4323
  }, {
4274
- name: string;
4275
4324
  id: string;
4325
+ name: string;
4276
4326
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4277
4327
  input?: string | undefined;
4278
4328
  output?: string | undefined;
@@ -4593,7 +4643,7 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4593
4643
  role?: "user" | "assistant" | "system" | undefined;
4594
4644
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4595
4645
  content?: {
4596
- type: "image" | "text";
4646
+ type: "text" | "image";
4597
4647
  text?: string | undefined;
4598
4648
  data?: string | undefined;
4599
4649
  mimeType?: string | undefined;
@@ -4601,8 +4651,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4601
4651
  isStreaming?: boolean | undefined;
4602
4652
  toolCall?: {
4603
4653
  status: "running" | "pending" | "completed" | "failed";
4604
- name: string;
4605
4654
  id: string;
4655
+ name: string;
4606
4656
  input?: string | undefined;
4607
4657
  output?: string | undefined;
4608
4658
  createdAt?: number | undefined;
@@ -4693,15 +4743,15 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4693
4743
  role?: "user" | "assistant" | "system" | undefined;
4694
4744
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4695
4745
  content?: {
4696
- type: "image" | "text";
4746
+ type: "text" | "image";
4697
4747
  text?: string | undefined;
4698
4748
  data?: string | undefined;
4699
4749
  mimeType?: string | undefined;
4700
4750
  }[] | undefined;
4701
4751
  isStreaming?: boolean | undefined;
4702
4752
  toolCall?: {
4703
- name: string;
4704
4753
  id: string;
4754
+ name: string;
4705
4755
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4706
4756
  input?: string | undefined;
4707
4757
  output?: string | undefined;
@@ -4812,7 +4862,7 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4812
4862
  role?: "user" | "assistant" | "system" | undefined;
4813
4863
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4814
4864
  content?: {
4815
- type: "image" | "text";
4865
+ type: "text" | "image";
4816
4866
  text?: string | undefined;
4817
4867
  data?: string | undefined;
4818
4868
  mimeType?: string | undefined;
@@ -4820,8 +4870,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4820
4870
  isStreaming?: boolean | undefined;
4821
4871
  toolCall?: {
4822
4872
  status: "running" | "pending" | "completed" | "failed";
4823
- name: string;
4824
4873
  id: string;
4874
+ name: string;
4825
4875
  input?: string | undefined;
4826
4876
  output?: string | undefined;
4827
4877
  createdAt?: number | undefined;
@@ -4934,15 +4984,15 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4934
4984
  role?: "user" | "assistant" | "system" | undefined;
4935
4985
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4936
4986
  content?: {
4937
- type: "image" | "text";
4987
+ type: "text" | "image";
4938
4988
  text?: string | undefined;
4939
4989
  data?: string | undefined;
4940
4990
  mimeType?: string | undefined;
4941
4991
  }[] | undefined;
4942
4992
  isStreaming?: boolean | undefined;
4943
4993
  toolCall?: {
4944
- name: string;
4945
4994
  id: string;
4995
+ name: string;
4946
4996
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4947
4997
  input?: string | undefined;
4948
4998
  output?: string | undefined;
@@ -5062,12 +5112,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5062
5112
  data: z.ZodOptional<z.ZodString>;
5063
5113
  mimeType: z.ZodOptional<z.ZodString>;
5064
5114
  }, "strip", z.ZodTypeAny, {
5065
- type: "image" | "text";
5115
+ type: "text" | "image";
5066
5116
  text?: string | undefined;
5067
5117
  data?: string | undefined;
5068
5118
  mimeType?: string | undefined;
5069
5119
  }, {
5070
- type: "image" | "text";
5120
+ type: "text" | "image";
5071
5121
  text?: string | undefined;
5072
5122
  data?: string | undefined;
5073
5123
  mimeType?: string | undefined;
@@ -5082,14 +5132,14 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5082
5132
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
5083
5133
  }, "strip", z.ZodTypeAny, {
5084
5134
  status: "running" | "pending" | "completed" | "failed";
5085
- name: string;
5086
5135
  id: string;
5136
+ name: string;
5087
5137
  input?: string | undefined;
5088
5138
  output?: string | undefined;
5089
5139
  createdAt?: number | undefined;
5090
5140
  }, {
5091
- name: string;
5092
5141
  id: string;
5142
+ name: string;
5093
5143
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5094
5144
  input?: string | undefined;
5095
5145
  output?: string | undefined;
@@ -5410,7 +5460,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5410
5460
  role?: "user" | "assistant" | "system" | undefined;
5411
5461
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5412
5462
  content?: {
5413
- type: "image" | "text";
5463
+ type: "text" | "image";
5414
5464
  text?: string | undefined;
5415
5465
  data?: string | undefined;
5416
5466
  mimeType?: string | undefined;
@@ -5418,8 +5468,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5418
5468
  isStreaming?: boolean | undefined;
5419
5469
  toolCall?: {
5420
5470
  status: "running" | "pending" | "completed" | "failed";
5421
- name: string;
5422
5471
  id: string;
5472
+ name: string;
5423
5473
  input?: string | undefined;
5424
5474
  output?: string | undefined;
5425
5475
  createdAt?: number | undefined;
@@ -5510,15 +5560,15 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5510
5560
  role?: "user" | "assistant" | "system" | undefined;
5511
5561
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5512
5562
  content?: {
5513
- type: "image" | "text";
5563
+ type: "text" | "image";
5514
5564
  text?: string | undefined;
5515
5565
  data?: string | undefined;
5516
5566
  mimeType?: string | undefined;
5517
5567
  }[] | undefined;
5518
5568
  isStreaming?: boolean | undefined;
5519
5569
  toolCall?: {
5520
- name: string;
5521
5570
  id: string;
5571
+ name: string;
5522
5572
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5523
5573
  input?: string | undefined;
5524
5574
  output?: string | undefined;
@@ -5585,12 +5635,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5585
5635
  data: z.ZodOptional<z.ZodString>;
5586
5636
  mimeType: z.ZodOptional<z.ZodString>;
5587
5637
  }, "strip", z.ZodTypeAny, {
5588
- type: "image" | "text";
5638
+ type: "text" | "image";
5589
5639
  text?: string | undefined;
5590
5640
  data?: string | undefined;
5591
5641
  mimeType?: string | undefined;
5592
5642
  }, {
5593
- type: "image" | "text";
5643
+ type: "text" | "image";
5594
5644
  text?: string | undefined;
5595
5645
  data?: string | undefined;
5596
5646
  mimeType?: string | undefined;
@@ -5607,14 +5657,14 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5607
5657
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
5608
5658
  }, "strip", z.ZodTypeAny, {
5609
5659
  status: "running" | "pending" | "completed" | "failed";
5610
- name: string;
5611
5660
  id: string;
5661
+ name: string;
5612
5662
  input?: string | undefined;
5613
5663
  output?: string | undefined;
5614
5664
  createdAt?: number | undefined;
5615
5665
  }, {
5616
- name: string;
5617
5666
  id: string;
5667
+ name: string;
5618
5668
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5619
5669
  input?: string | undefined;
5620
5670
  output?: string | undefined;
@@ -5929,7 +5979,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5929
5979
  role?: "user" | "assistant" | "system" | undefined;
5930
5980
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5931
5981
  content?: {
5932
- type: "image" | "text";
5982
+ type: "text" | "image";
5933
5983
  text?: string | undefined;
5934
5984
  data?: string | undefined;
5935
5985
  mimeType?: string | undefined;
@@ -5937,8 +5987,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5937
5987
  isStreaming?: boolean | undefined;
5938
5988
  toolCall?: {
5939
5989
  status: "running" | "pending" | "completed" | "failed";
5940
- name: string;
5941
5990
  id: string;
5991
+ name: string;
5942
5992
  input?: string | undefined;
5943
5993
  output?: string | undefined;
5944
5994
  createdAt?: number | undefined;
@@ -6025,15 +6075,15 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6025
6075
  role?: "user" | "assistant" | "system" | undefined;
6026
6076
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6027
6077
  content?: {
6028
- type: "image" | "text";
6078
+ type: "text" | "image";
6029
6079
  text?: string | undefined;
6030
6080
  data?: string | undefined;
6031
6081
  mimeType?: string | undefined;
6032
6082
  }[] | undefined;
6033
6083
  isStreaming?: boolean | undefined;
6034
6084
  toolCall?: {
6035
- name: string;
6036
6085
  id: string;
6086
+ name: string;
6037
6087
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6038
6088
  input?: string | undefined;
6039
6089
  output?: string | undefined;
@@ -6128,7 +6178,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6128
6178
  role?: "user" | "assistant" | "system" | undefined;
6129
6179
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6130
6180
  content?: {
6131
- type: "image" | "text";
6181
+ type: "text" | "image";
6132
6182
  text?: string | undefined;
6133
6183
  data?: string | undefined;
6134
6184
  mimeType?: string | undefined;
@@ -6136,8 +6186,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6136
6186
  isStreaming?: boolean | undefined;
6137
6187
  toolCall?: {
6138
6188
  status: "running" | "pending" | "completed" | "failed";
6139
- name: string;
6140
6189
  id: string;
6190
+ name: string;
6141
6191
  input?: string | undefined;
6142
6192
  output?: string | undefined;
6143
6193
  createdAt?: number | undefined;
@@ -6225,7 +6275,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6225
6275
  role?: "user" | "assistant" | "system" | undefined;
6226
6276
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6227
6277
  content?: {
6228
- type: "image" | "text";
6278
+ type: "text" | "image";
6229
6279
  text?: string | undefined;
6230
6280
  data?: string | undefined;
6231
6281
  mimeType?: string | undefined;
@@ -6233,8 +6283,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6233
6283
  isStreaming?: boolean | undefined;
6234
6284
  toolCall?: {
6235
6285
  status: "running" | "pending" | "completed" | "failed";
6236
- name: string;
6237
6286
  id: string;
6287
+ name: string;
6238
6288
  input?: string | undefined;
6239
6289
  output?: string | undefined;
6240
6290
  createdAt?: number | undefined;
@@ -6344,15 +6394,15 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6344
6394
  role?: "user" | "assistant" | "system" | undefined;
6345
6395
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6346
6396
  content?: {
6347
- type: "image" | "text";
6397
+ type: "text" | "image";
6348
6398
  text?: string | undefined;
6349
6399
  data?: string | undefined;
6350
6400
  mimeType?: string | undefined;
6351
6401
  }[] | undefined;
6352
6402
  isStreaming?: boolean | undefined;
6353
6403
  toolCall?: {
6354
- name: string;
6355
6404
  id: string;
6405
+ name: string;
6356
6406
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6357
6407
  input?: string | undefined;
6358
6408
  output?: string | undefined;
@@ -6441,15 +6491,15 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6441
6491
  role?: "user" | "assistant" | "system" | undefined;
6442
6492
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6443
6493
  content?: {
6444
- type: "image" | "text";
6494
+ type: "text" | "image";
6445
6495
  text?: string | undefined;
6446
6496
  data?: string | undefined;
6447
6497
  mimeType?: string | undefined;
6448
6498
  }[] | undefined;
6449
6499
  isStreaming?: boolean | undefined;
6450
6500
  toolCall?: {
6451
- name: string;
6452
6501
  id: string;
6502
+ name: string;
6453
6503
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6454
6504
  input?: string | undefined;
6455
6505
  output?: string | undefined;
@@ -6557,12 +6607,12 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6557
6607
  data: z.ZodOptional<z.ZodString>;
6558
6608
  mimeType: z.ZodOptional<z.ZodString>;
6559
6609
  }, "strip", z.ZodTypeAny, {
6560
- type: "image" | "text";
6610
+ type: "text" | "image";
6561
6611
  text?: string | undefined;
6562
6612
  data?: string | undefined;
6563
6613
  mimeType?: string | undefined;
6564
6614
  }, {
6565
- type: "image" | "text";
6615
+ type: "text" | "image";
6566
6616
  text?: string | undefined;
6567
6617
  data?: string | undefined;
6568
6618
  mimeType?: string | undefined;
@@ -6577,14 +6627,14 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6577
6627
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
6578
6628
  }, "strip", z.ZodTypeAny, {
6579
6629
  status: "running" | "pending" | "completed" | "failed";
6580
- name: string;
6581
6630
  id: string;
6631
+ name: string;
6582
6632
  input?: string | undefined;
6583
6633
  output?: string | undefined;
6584
6634
  createdAt?: number | undefined;
6585
6635
  }, {
6586
- name: string;
6587
6636
  id: string;
6637
+ name: string;
6588
6638
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6589
6639
  input?: string | undefined;
6590
6640
  output?: string | undefined;
@@ -6905,7 +6955,7 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6905
6955
  role?: "user" | "assistant" | "system" | undefined;
6906
6956
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6907
6957
  content?: {
6908
- type: "image" | "text";
6958
+ type: "text" | "image";
6909
6959
  text?: string | undefined;
6910
6960
  data?: string | undefined;
6911
6961
  mimeType?: string | undefined;
@@ -6913,8 +6963,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6913
6963
  isStreaming?: boolean | undefined;
6914
6964
  toolCall?: {
6915
6965
  status: "running" | "pending" | "completed" | "failed";
6916
- name: string;
6917
6966
  id: string;
6967
+ name: string;
6918
6968
  input?: string | undefined;
6919
6969
  output?: string | undefined;
6920
6970
  createdAt?: number | undefined;
@@ -7005,15 +7055,15 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7005
7055
  role?: "user" | "assistant" | "system" | undefined;
7006
7056
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7007
7057
  content?: {
7008
- type: "image" | "text";
7058
+ type: "text" | "image";
7009
7059
  text?: string | undefined;
7010
7060
  data?: string | undefined;
7011
7061
  mimeType?: string | undefined;
7012
7062
  }[] | undefined;
7013
7063
  isStreaming?: boolean | undefined;
7014
7064
  toolCall?: {
7015
- name: string;
7016
7065
  id: string;
7066
+ name: string;
7017
7067
  status?: "running" | "pending" | "completed" | "failed" | undefined;
7018
7068
  input?: string | undefined;
7019
7069
  output?: string | undefined;
@@ -7114,7 +7164,7 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7114
7164
  role?: "user" | "assistant" | "system" | undefined;
7115
7165
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7116
7166
  content?: {
7117
- type: "image" | "text";
7167
+ type: "text" | "image";
7118
7168
  text?: string | undefined;
7119
7169
  data?: string | undefined;
7120
7170
  mimeType?: string | undefined;
@@ -7122,8 +7172,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7122
7172
  isStreaming?: boolean | undefined;
7123
7173
  toolCall?: {
7124
7174
  status: "running" | "pending" | "completed" | "failed";
7125
- name: string;
7126
7175
  id: string;
7176
+ name: string;
7127
7177
  input?: string | undefined;
7128
7178
  output?: string | undefined;
7129
7179
  createdAt?: number | undefined;
@@ -7221,15 +7271,15 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7221
7271
  role?: "user" | "assistant" | "system" | undefined;
7222
7272
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7223
7273
  content?: {
7224
- type: "image" | "text";
7274
+ type: "text" | "image";
7225
7275
  text?: string | undefined;
7226
7276
  data?: string | undefined;
7227
7277
  mimeType?: string | undefined;
7228
7278
  }[] | undefined;
7229
7279
  isStreaming?: boolean | undefined;
7230
7280
  toolCall?: {
7231
- name: string;
7232
7281
  id: string;
7282
+ name: string;
7233
7283
  status?: "running" | "pending" | "completed" | "failed" | undefined;
7234
7284
  input?: string | undefined;
7235
7285
  output?: string | undefined;
@@ -7649,20 +7699,20 @@ export declare const protocolMessageSchemas: {
7649
7699
  }>, "many">;
7650
7700
  error: z.ZodOptional<z.ZodString>;
7651
7701
  }, "strip", z.ZodTypeAny, {
7652
- path: string;
7653
7702
  entries: {
7654
7703
  name: string;
7655
7704
  path: string;
7656
7705
  isDirectory: boolean;
7657
7706
  }[];
7707
+ path: string;
7658
7708
  error?: string | undefined;
7659
7709
  }, {
7660
- path: string;
7661
7710
  entries: {
7662
7711
  name: string;
7663
7712
  path: string;
7664
7713
  isDirectory: boolean;
7665
7714
  }[];
7715
+ path: string;
7666
7716
  error?: string | undefined;
7667
7717
  }>;
7668
7718
  readonly "terminal.kill": z.ZodObject<{
@@ -7705,6 +7755,22 @@ export declare const protocolMessageSchemas: {
7705
7755
  permissionRequest: string;
7706
7756
  requestId: string;
7707
7757
  }>>;
7758
+ permissionResolution: z.ZodOptional<z.ZodObject<{
7759
+ requestId: z.ZodString;
7760
+ outcome: z.ZodEnum<["allow", "deny", "cancelled"]>;
7761
+ source: z.ZodOptional<z.ZodString>;
7762
+ delivered: z.ZodBoolean;
7763
+ }, "strip", z.ZodTypeAny, {
7764
+ requestId: string;
7765
+ outcome: "allow" | "deny" | "cancelled";
7766
+ delivered: boolean;
7767
+ source?: string | undefined;
7768
+ }, {
7769
+ requestId: string;
7770
+ outcome: "allow" | "deny" | "cancelled";
7771
+ delivered: boolean;
7772
+ source?: string | undefined;
7773
+ }>>;
7708
7774
  pendingPermissionCount: z.ZodOptional<z.ZodNumber>;
7709
7775
  machineId: z.ZodOptional<z.ZodString>;
7710
7776
  }, "strip", z.ZodTypeAny, {
@@ -7722,6 +7788,12 @@ export declare const protocolMessageSchemas: {
7722
7788
  permissionRequest: string;
7723
7789
  requestId: string;
7724
7790
  } | undefined;
7791
+ permissionResolution?: {
7792
+ requestId: string;
7793
+ outcome: "allow" | "deny" | "cancelled";
7794
+ delivered: boolean;
7795
+ source?: string | undefined;
7796
+ } | undefined;
7725
7797
  pendingPermissionCount?: number | undefined;
7726
7798
  }, {
7727
7799
  phase: "error" | "idle" | "thinking" | "tool_use" | "outputting" | "waiting";
@@ -7738,6 +7810,12 @@ export declare const protocolMessageSchemas: {
7738
7810
  permissionRequest: string;
7739
7811
  requestId: string;
7740
7812
  } | undefined;
7813
+ permissionResolution?: {
7814
+ requestId: string;
7815
+ outcome: "allow" | "deny" | "cancelled";
7816
+ delivered: boolean;
7817
+ source?: string | undefined;
7818
+ } | undefined;
7741
7819
  pendingPermissionCount?: number | undefined;
7742
7820
  }>;
7743
7821
  readonly "permission.decision": z.ZodObject<{
@@ -7750,6 +7828,28 @@ export declare const protocolMessageSchemas: {
7750
7828
  requestId: string;
7751
7829
  decision: "allow" | "deny";
7752
7830
  }>;
7831
+ readonly "permission.decision.result": z.ZodObject<{
7832
+ requestId: z.ZodString;
7833
+ decision: z.ZodEnum<["allow", "deny"]>;
7834
+ resolved: z.ZodBoolean;
7835
+ delivered: z.ZodBoolean;
7836
+ source: z.ZodOptional<z.ZodString>;
7837
+ message: z.ZodOptional<z.ZodString>;
7838
+ }, "strip", z.ZodTypeAny, {
7839
+ requestId: string;
7840
+ delivered: boolean;
7841
+ decision: "allow" | "deny";
7842
+ resolved: boolean;
7843
+ message?: string | undefined;
7844
+ source?: string | undefined;
7845
+ }, {
7846
+ requestId: string;
7847
+ delivered: boolean;
7848
+ decision: "allow" | "deny";
7849
+ resolved: boolean;
7850
+ message?: string | undefined;
7851
+ source?: string | undefined;
7852
+ }>;
7753
7853
  readonly "tunnel.request": z.ZodObject<{
7754
7854
  requestId: z.ZodString;
7755
7855
  method: z.ZodString;
@@ -7759,16 +7859,16 @@ export declare const protocolMessageSchemas: {
7759
7859
  port: z.ZodNumber;
7760
7860
  }, "strip", z.ZodTypeAny, {
7761
7861
  port: number;
7762
- url: string;
7763
7862
  requestId: string;
7764
7863
  method: string;
7864
+ url: string;
7765
7865
  headers: Record<string, string>;
7766
7866
  body: string | null;
7767
7867
  }, {
7768
7868
  port: number;
7769
- url: string;
7770
7869
  requestId: string;
7771
7870
  method: string;
7871
+ url: string;
7772
7872
  headers: Record<string, string>;
7773
7873
  body: string | null;
7774
7874
  }>;
@@ -7875,9 +7975,9 @@ export declare const protocolMessageSchemas: {
7875
7975
  disabledReason: z.ZodOptional<z.ZodString>;
7876
7976
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
7877
7977
  }, "strip", z.ZodTypeAny, {
7878
- name: string;
7879
7978
  title: string;
7880
7979
  id: string;
7980
+ name: string;
7881
7981
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
7882
7982
  argsMode: "none" | "optional" | "required" | "raw";
7883
7983
  executionKind: "prompt" | "native" | "local_ui";
@@ -7888,9 +7988,9 @@ export declare const protocolMessageSchemas: {
7888
7988
  destructive?: boolean | undefined;
7889
7989
  disabledReason?: string | undefined;
7890
7990
  }, {
7891
- name: string;
7892
7991
  title: string;
7893
7992
  id: string;
7993
+ name: string;
7894
7994
  description?: string | undefined;
7895
7995
  provider?: "claude" | "codex" | "custom" | undefined;
7896
7996
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -7933,9 +8033,9 @@ export declare const protocolMessageSchemas: {
7933
8033
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7934
8034
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7935
8035
  commands?: {
7936
- name: string;
7937
8036
  title: string;
7938
8037
  id: string;
8038
+ name: string;
7939
8039
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
7940
8040
  argsMode: "none" | "optional" | "required" | "raw";
7941
8041
  executionKind: "prompt" | "native" | "local_ui";
@@ -7970,9 +8070,9 @@ export declare const protocolMessageSchemas: {
7970
8070
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7971
8071
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7972
8072
  commands?: {
7973
- name: string;
7974
8073
  title: string;
7975
8074
  id: string;
8075
+ name: string;
7976
8076
  description?: string | undefined;
7977
8077
  provider?: "claude" | "codex" | "custom" | undefined;
7978
8078
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -8030,9 +8130,9 @@ export declare const protocolMessageSchemas: {
8030
8130
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8031
8131
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8032
8132
  commands?: {
8033
- name: string;
8034
8133
  title: string;
8035
8134
  id: string;
8135
+ name: string;
8036
8136
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
8037
8137
  argsMode: "none" | "optional" | "required" | "raw";
8038
8138
  executionKind: "prompt" | "native" | "local_ui";
@@ -8078,9 +8178,9 @@ export declare const protocolMessageSchemas: {
8078
8178
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8079
8179
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8080
8180
  commands?: {
8081
- name: string;
8082
8181
  title: string;
8083
8182
  id: string;
8183
+ name: string;
8084
8184
  description?: string | undefined;
8085
8185
  provider?: "claude" | "codex" | "custom" | undefined;
8086
8186
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -8136,12 +8236,12 @@ export declare const protocolMessageSchemas: {
8136
8236
  data: z.ZodOptional<z.ZodString>;
8137
8237
  mimeType: z.ZodOptional<z.ZodString>;
8138
8238
  }, "strip", z.ZodTypeAny, {
8139
- type: "image" | "text";
8239
+ type: "text" | "image";
8140
8240
  text?: string | undefined;
8141
8241
  data?: string | undefined;
8142
8242
  mimeType?: string | undefined;
8143
8243
  }, {
8144
- type: "image" | "text";
8244
+ type: "text" | "image";
8145
8245
  text?: string | undefined;
8146
8246
  data?: string | undefined;
8147
8247
  mimeType?: string | undefined;
@@ -8152,7 +8252,7 @@ export declare const protocolMessageSchemas: {
8152
8252
  }, "strip", z.ZodTypeAny, {
8153
8253
  clientMessageId: string;
8154
8254
  contentBlocks: {
8155
- type: "image" | "text";
8255
+ type: "text" | "image";
8156
8256
  text?: string | undefined;
8157
8257
  data?: string | undefined;
8158
8258
  mimeType?: string | undefined;
@@ -8164,7 +8264,7 @@ export declare const protocolMessageSchemas: {
8164
8264
  }, {
8165
8265
  clientMessageId: string;
8166
8266
  contentBlocks: {
8167
- type: "image" | "text";
8267
+ type: "text" | "image";
8168
8268
  text?: string | undefined;
8169
8269
  data?: string | undefined;
8170
8270
  mimeType?: string | undefined;
@@ -8213,14 +8313,14 @@ export declare const protocolMessageSchemas: {
8213
8313
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
8214
8314
  }, "strip", z.ZodTypeAny, {
8215
8315
  status: "running" | "pending" | "completed" | "failed";
8216
- name: string;
8217
8316
  id: string;
8317
+ name: string;
8218
8318
  input?: string | undefined;
8219
8319
  output?: string | undefined;
8220
8320
  createdAt?: number | undefined;
8221
8321
  }, {
8222
- name: string;
8223
8322
  id: string;
8323
+ name: string;
8224
8324
  status?: "running" | "pending" | "completed" | "failed" | undefined;
8225
8325
  input?: string | undefined;
8226
8326
  output?: string | undefined;
@@ -8261,8 +8361,8 @@ export declare const protocolMessageSchemas: {
8261
8361
  delta?: string | undefined;
8262
8362
  toolCall?: {
8263
8363
  status: "running" | "pending" | "completed" | "failed";
8264
- name: string;
8265
8364
  id: string;
8365
+ name: string;
8266
8366
  input?: string | undefined;
8267
8367
  output?: string | undefined;
8268
8368
  createdAt?: number | undefined;
@@ -8286,8 +8386,8 @@ export declare const protocolMessageSchemas: {
8286
8386
  agentSessionId?: string | undefined;
8287
8387
  delta?: string | undefined;
8288
8388
  toolCall?: {
8289
- name: string;
8290
8389
  id: string;
8390
+ name: string;
8291
8391
  status?: "running" | "pending" | "completed" | "failed" | undefined;
8292
8392
  input?: string | undefined;
8293
8393
  output?: string | undefined;
@@ -8395,9 +8495,9 @@ export declare const protocolMessageSchemas: {
8395
8495
  disabledReason: z.ZodOptional<z.ZodString>;
8396
8496
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
8397
8497
  }, "strip", z.ZodTypeAny, {
8398
- name: string;
8399
8498
  title: string;
8400
8499
  id: string;
8500
+ name: string;
8401
8501
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
8402
8502
  argsMode: "none" | "optional" | "required" | "raw";
8403
8503
  executionKind: "prompt" | "native" | "local_ui";
@@ -8408,9 +8508,9 @@ export declare const protocolMessageSchemas: {
8408
8508
  destructive?: boolean | undefined;
8409
8509
  disabledReason?: string | undefined;
8410
8510
  }, {
8411
- name: string;
8412
8511
  title: string;
8413
8512
  id: string;
8513
+ name: string;
8414
8514
  description?: string | undefined;
8415
8515
  provider?: "claude" | "codex" | "custom" | undefined;
8416
8516
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -8453,9 +8553,9 @@ export declare const protocolMessageSchemas: {
8453
8553
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8454
8554
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8455
8555
  commands?: {
8456
- name: string;
8457
8556
  title: string;
8458
8557
  id: string;
8558
+ name: string;
8459
8559
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
8460
8560
  argsMode: "none" | "optional" | "required" | "raw";
8461
8561
  executionKind: "prompt" | "native" | "local_ui";
@@ -8490,9 +8590,9 @@ export declare const protocolMessageSchemas: {
8490
8590
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8491
8591
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8492
8592
  commands?: {
8493
- name: string;
8494
8593
  title: string;
8495
8594
  id: string;
8595
+ name: string;
8496
8596
  description?: string | undefined;
8497
8597
  provider?: "claude" | "codex" | "custom" | undefined;
8498
8598
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -8550,9 +8650,9 @@ export declare const protocolMessageSchemas: {
8550
8650
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8551
8651
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8552
8652
  commands?: {
8553
- name: string;
8554
8653
  title: string;
8555
8654
  id: string;
8655
+ name: string;
8556
8656
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
8557
8657
  argsMode: "none" | "optional" | "required" | "raw";
8558
8658
  executionKind: "prompt" | "native" | "local_ui";
@@ -8598,9 +8698,9 @@ export declare const protocolMessageSchemas: {
8598
8698
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8599
8699
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8600
8700
  commands?: {
8601
- name: string;
8602
8701
  title: string;
8603
8702
  id: string;
8703
+ name: string;
8604
8704
  description?: string | undefined;
8605
8705
  provider?: "claude" | "codex" | "custom" | undefined;
8606
8706
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -8651,14 +8751,14 @@ export declare const protocolMessageSchemas: {
8651
8751
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
8652
8752
  }, "strip", z.ZodTypeAny, {
8653
8753
  status: "running" | "pending" | "completed" | "failed";
8654
- name: string;
8655
8754
  id: string;
8755
+ name: string;
8656
8756
  input?: string | undefined;
8657
8757
  output?: string | undefined;
8658
8758
  createdAt?: number | undefined;
8659
8759
  }, {
8660
- name: string;
8661
8760
  id: string;
8761
+ name: string;
8662
8762
  status?: "running" | "pending" | "completed" | "failed" | undefined;
8663
8763
  input?: string | undefined;
8664
8764
  output?: string | undefined;
@@ -8716,8 +8816,8 @@ export declare const protocolMessageSchemas: {
8716
8816
  }[];
8717
8817
  toolCalls: {
8718
8818
  status: "running" | "pending" | "completed" | "failed";
8719
- name: string;
8720
8819
  id: string;
8820
+ name: string;
8721
8821
  input?: string | undefined;
8722
8822
  output?: string | undefined;
8723
8823
  createdAt?: number | undefined;
@@ -8765,9 +8865,9 @@ export declare const protocolMessageSchemas: {
8765
8865
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8766
8866
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8767
8867
  commands?: {
8768
- name: string;
8769
8868
  title: string;
8770
8869
  id: string;
8870
+ name: string;
8771
8871
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
8772
8872
  argsMode: "none" | "optional" | "required" | "raw";
8773
8873
  executionKind: "prompt" | "native" | "local_ui";
@@ -8818,9 +8918,9 @@ export declare const protocolMessageSchemas: {
8818
8918
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8819
8919
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8820
8920
  commands?: {
8821
- name: string;
8822
8921
  title: string;
8823
8922
  id: string;
8923
+ name: string;
8824
8924
  description?: string | undefined;
8825
8925
  provider?: "claude" | "codex" | "custom" | undefined;
8826
8926
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -8851,8 +8951,8 @@ export declare const protocolMessageSchemas: {
8851
8951
  isStreaming?: boolean | undefined;
8852
8952
  }[] | undefined;
8853
8953
  toolCalls?: {
8854
- name: string;
8855
8954
  id: string;
8955
+ name: string;
8856
8956
  status?: "running" | "pending" | "completed" | "failed" | undefined;
8857
8957
  input?: string | undefined;
8858
8958
  output?: string | undefined;
@@ -8911,9 +9011,9 @@ export declare const protocolMessageSchemas: {
8911
9011
  disabledReason: z.ZodOptional<z.ZodString>;
8912
9012
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
8913
9013
  }, "strip", z.ZodTypeAny, {
8914
- name: string;
8915
9014
  title: string;
8916
9015
  id: string;
9016
+ name: string;
8917
9017
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
8918
9018
  argsMode: "none" | "optional" | "required" | "raw";
8919
9019
  executionKind: "prompt" | "native" | "local_ui";
@@ -8924,9 +9024,9 @@ export declare const protocolMessageSchemas: {
8924
9024
  destructive?: boolean | undefined;
8925
9025
  disabledReason?: string | undefined;
8926
9026
  }, {
8927
- name: string;
8928
9027
  title: string;
8929
9028
  id: string;
9029
+ name: string;
8930
9030
  description?: string | undefined;
8931
9031
  provider?: "claude" | "codex" | "custom" | undefined;
8932
9032
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -8969,9 +9069,9 @@ export declare const protocolMessageSchemas: {
8969
9069
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8970
9070
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8971
9071
  commands?: {
8972
- name: string;
8973
9072
  title: string;
8974
9073
  id: string;
9074
+ name: string;
8975
9075
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
8976
9076
  argsMode: "none" | "optional" | "required" | "raw";
8977
9077
  executionKind: "prompt" | "native" | "local_ui";
@@ -9006,9 +9106,9 @@ export declare const protocolMessageSchemas: {
9006
9106
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9007
9107
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9008
9108
  commands?: {
9009
- name: string;
9010
9109
  title: string;
9011
9110
  id: string;
9111
+ name: string;
9012
9112
  description?: string | undefined;
9013
9113
  provider?: "claude" | "codex" | "custom" | undefined;
9014
9114
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -9069,9 +9169,9 @@ export declare const protocolMessageSchemas: {
9069
9169
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9070
9170
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9071
9171
  commands?: {
9072
- name: string;
9073
9172
  title: string;
9074
9173
  id: string;
9174
+ name: string;
9075
9175
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
9076
9176
  argsMode: "none" | "optional" | "required" | "raw";
9077
9177
  executionKind: "prompt" | "native" | "local_ui";
@@ -9117,9 +9217,9 @@ export declare const protocolMessageSchemas: {
9117
9217
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9118
9218
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9119
9219
  commands?: {
9120
- name: string;
9121
9220
  title: string;
9122
9221
  id: string;
9222
+ name: string;
9123
9223
  description?: string | undefined;
9124
9224
  provider?: "claude" | "codex" | "custom" | undefined;
9125
9225
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -9235,12 +9335,12 @@ export declare const protocolMessageSchemas: {
9235
9335
  data: z.ZodOptional<z.ZodString>;
9236
9336
  mimeType: z.ZodOptional<z.ZodString>;
9237
9337
  }, "strip", z.ZodTypeAny, {
9238
- type: "image" | "text";
9338
+ type: "text" | "image";
9239
9339
  text?: string | undefined;
9240
9340
  data?: string | undefined;
9241
9341
  mimeType?: string | undefined;
9242
9342
  }, {
9243
- type: "image" | "text";
9343
+ type: "text" | "image";
9244
9344
  text?: string | undefined;
9245
9345
  data?: string | undefined;
9246
9346
  mimeType?: string | undefined;
@@ -9255,14 +9355,14 @@ export declare const protocolMessageSchemas: {
9255
9355
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
9256
9356
  }, "strip", z.ZodTypeAny, {
9257
9357
  status: "running" | "pending" | "completed" | "failed";
9258
- name: string;
9259
9358
  id: string;
9359
+ name: string;
9260
9360
  input?: string | undefined;
9261
9361
  output?: string | undefined;
9262
9362
  createdAt?: number | undefined;
9263
9363
  }, {
9264
- name: string;
9265
9364
  id: string;
9365
+ name: string;
9266
9366
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9267
9367
  input?: string | undefined;
9268
9368
  output?: string | undefined;
@@ -9583,7 +9683,7 @@ export declare const protocolMessageSchemas: {
9583
9683
  role?: "user" | "assistant" | "system" | undefined;
9584
9684
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9585
9685
  content?: {
9586
- type: "image" | "text";
9686
+ type: "text" | "image";
9587
9687
  text?: string | undefined;
9588
9688
  data?: string | undefined;
9589
9689
  mimeType?: string | undefined;
@@ -9591,8 +9691,8 @@ export declare const protocolMessageSchemas: {
9591
9691
  isStreaming?: boolean | undefined;
9592
9692
  toolCall?: {
9593
9693
  status: "running" | "pending" | "completed" | "failed";
9594
- name: string;
9595
9694
  id: string;
9695
+ name: string;
9596
9696
  input?: string | undefined;
9597
9697
  output?: string | undefined;
9598
9698
  createdAt?: number | undefined;
@@ -9683,15 +9783,15 @@ export declare const protocolMessageSchemas: {
9683
9783
  role?: "user" | "assistant" | "system" | undefined;
9684
9784
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9685
9785
  content?: {
9686
- type: "image" | "text";
9786
+ type: "text" | "image";
9687
9787
  text?: string | undefined;
9688
9788
  data?: string | undefined;
9689
9789
  mimeType?: string | undefined;
9690
9790
  }[] | undefined;
9691
9791
  isStreaming?: boolean | undefined;
9692
9792
  toolCall?: {
9693
- name: string;
9694
9793
  id: string;
9794
+ name: string;
9695
9795
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9696
9796
  input?: string | undefined;
9697
9797
  output?: string | undefined;
@@ -9801,7 +9901,7 @@ export declare const protocolMessageSchemas: {
9801
9901
  role?: "user" | "assistant" | "system" | undefined;
9802
9902
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9803
9903
  content?: {
9804
- type: "image" | "text";
9904
+ type: "text" | "image";
9805
9905
  text?: string | undefined;
9806
9906
  data?: string | undefined;
9807
9907
  mimeType?: string | undefined;
@@ -9809,8 +9909,8 @@ export declare const protocolMessageSchemas: {
9809
9909
  isStreaming?: boolean | undefined;
9810
9910
  toolCall?: {
9811
9911
  status: "running" | "pending" | "completed" | "failed";
9812
- name: string;
9813
9912
  id: string;
9913
+ name: string;
9814
9914
  input?: string | undefined;
9815
9915
  output?: string | undefined;
9816
9916
  createdAt?: number | undefined;
@@ -9919,15 +10019,15 @@ export declare const protocolMessageSchemas: {
9919
10019
  role?: "user" | "assistant" | "system" | undefined;
9920
10020
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9921
10021
  content?: {
9922
- type: "image" | "text";
10022
+ type: "text" | "image";
9923
10023
  text?: string | undefined;
9924
10024
  data?: string | undefined;
9925
10025
  mimeType?: string | undefined;
9926
10026
  }[] | undefined;
9927
10027
  isStreaming?: boolean | undefined;
9928
10028
  toolCall?: {
9929
- name: string;
9930
10029
  id: string;
10030
+ name: string;
9931
10031
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9932
10032
  input?: string | undefined;
9933
10033
  output?: string | undefined;
@@ -10083,12 +10183,12 @@ export declare const protocolMessageSchemas: {
10083
10183
  data: z.ZodOptional<z.ZodString>;
10084
10184
  mimeType: z.ZodOptional<z.ZodString>;
10085
10185
  }, "strip", z.ZodTypeAny, {
10086
- type: "image" | "text";
10186
+ type: "text" | "image";
10087
10187
  text?: string | undefined;
10088
10188
  data?: string | undefined;
10089
10189
  mimeType?: string | undefined;
10090
10190
  }, {
10091
- type: "image" | "text";
10191
+ type: "text" | "image";
10092
10192
  text?: string | undefined;
10093
10193
  data?: string | undefined;
10094
10194
  mimeType?: string | undefined;
@@ -10100,7 +10200,7 @@ export declare const protocolMessageSchemas: {
10100
10200
  }, "strip", z.ZodTypeAny, {
10101
10201
  clientMessageId: string;
10102
10202
  contentBlocks: {
10103
- type: "image" | "text";
10203
+ type: "text" | "image";
10104
10204
  text?: string | undefined;
10105
10205
  data?: string | undefined;
10106
10206
  mimeType?: string | undefined;
@@ -10113,7 +10213,7 @@ export declare const protocolMessageSchemas: {
10113
10213
  }, {
10114
10214
  clientMessageId: string;
10115
10215
  contentBlocks: {
10116
- type: "image" | "text";
10216
+ type: "text" | "image";
10117
10217
  text?: string | undefined;
10118
10218
  data?: string | undefined;
10119
10219
  mimeType?: string | undefined;
@@ -10200,12 +10300,12 @@ export declare const protocolMessageSchemas: {
10200
10300
  data: z.ZodOptional<z.ZodString>;
10201
10301
  mimeType: z.ZodOptional<z.ZodString>;
10202
10302
  }, "strip", z.ZodTypeAny, {
10203
- type: "image" | "text";
10303
+ type: "text" | "image";
10204
10304
  text?: string | undefined;
10205
10305
  data?: string | undefined;
10206
10306
  mimeType?: string | undefined;
10207
10307
  }, {
10208
- type: "image" | "text";
10308
+ type: "text" | "image";
10209
10309
  text?: string | undefined;
10210
10310
  data?: string | undefined;
10211
10311
  mimeType?: string | undefined;
@@ -10220,14 +10320,14 @@ export declare const protocolMessageSchemas: {
10220
10320
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
10221
10321
  }, "strip", z.ZodTypeAny, {
10222
10322
  status: "running" | "pending" | "completed" | "failed";
10223
- name: string;
10224
10323
  id: string;
10324
+ name: string;
10225
10325
  input?: string | undefined;
10226
10326
  output?: string | undefined;
10227
10327
  createdAt?: number | undefined;
10228
10328
  }, {
10229
- name: string;
10230
10329
  id: string;
10330
+ name: string;
10231
10331
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10232
10332
  input?: string | undefined;
10233
10333
  output?: string | undefined;
@@ -10548,7 +10648,7 @@ export declare const protocolMessageSchemas: {
10548
10648
  role?: "user" | "assistant" | "system" | undefined;
10549
10649
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10550
10650
  content?: {
10551
- type: "image" | "text";
10651
+ type: "text" | "image";
10552
10652
  text?: string | undefined;
10553
10653
  data?: string | undefined;
10554
10654
  mimeType?: string | undefined;
@@ -10556,8 +10656,8 @@ export declare const protocolMessageSchemas: {
10556
10656
  isStreaming?: boolean | undefined;
10557
10657
  toolCall?: {
10558
10658
  status: "running" | "pending" | "completed" | "failed";
10559
- name: string;
10560
10659
  id: string;
10660
+ name: string;
10561
10661
  input?: string | undefined;
10562
10662
  output?: string | undefined;
10563
10663
  createdAt?: number | undefined;
@@ -10648,15 +10748,15 @@ export declare const protocolMessageSchemas: {
10648
10748
  role?: "user" | "assistant" | "system" | undefined;
10649
10749
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10650
10750
  content?: {
10651
- type: "image" | "text";
10751
+ type: "text" | "image";
10652
10752
  text?: string | undefined;
10653
10753
  data?: string | undefined;
10654
10754
  mimeType?: string | undefined;
10655
10755
  }[] | undefined;
10656
10756
  isStreaming?: boolean | undefined;
10657
10757
  toolCall?: {
10658
- name: string;
10659
10758
  id: string;
10759
+ name: string;
10660
10760
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10661
10761
  input?: string | undefined;
10662
10762
  output?: string | undefined;
@@ -10757,7 +10857,7 @@ export declare const protocolMessageSchemas: {
10757
10857
  role?: "user" | "assistant" | "system" | undefined;
10758
10858
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10759
10859
  content?: {
10760
- type: "image" | "text";
10860
+ type: "text" | "image";
10761
10861
  text?: string | undefined;
10762
10862
  data?: string | undefined;
10763
10863
  mimeType?: string | undefined;
@@ -10765,8 +10865,8 @@ export declare const protocolMessageSchemas: {
10765
10865
  isStreaming?: boolean | undefined;
10766
10866
  toolCall?: {
10767
10867
  status: "running" | "pending" | "completed" | "failed";
10768
- name: string;
10769
10868
  id: string;
10869
+ name: string;
10770
10870
  input?: string | undefined;
10771
10871
  output?: string | undefined;
10772
10872
  createdAt?: number | undefined;
@@ -10864,15 +10964,15 @@ export declare const protocolMessageSchemas: {
10864
10964
  role?: "user" | "assistant" | "system" | undefined;
10865
10965
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10866
10966
  content?: {
10867
- type: "image" | "text";
10967
+ type: "text" | "image";
10868
10968
  text?: string | undefined;
10869
10969
  data?: string | undefined;
10870
10970
  mimeType?: string | undefined;
10871
10971
  }[] | undefined;
10872
10972
  isStreaming?: boolean | undefined;
10873
10973
  toolCall?: {
10874
- name: string;
10875
10974
  id: string;
10975
+ name: string;
10876
10976
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10877
10977
  input?: string | undefined;
10878
10978
  output?: string | undefined;
@@ -11020,12 +11120,12 @@ export declare const protocolMessageSchemas: {
11020
11120
  data: z.ZodOptional<z.ZodString>;
11021
11121
  mimeType: z.ZodOptional<z.ZodString>;
11022
11122
  }, "strip", z.ZodTypeAny, {
11023
- type: "image" | "text";
11123
+ type: "text" | "image";
11024
11124
  text?: string | undefined;
11025
11125
  data?: string | undefined;
11026
11126
  mimeType?: string | undefined;
11027
11127
  }, {
11028
- type: "image" | "text";
11128
+ type: "text" | "image";
11029
11129
  text?: string | undefined;
11030
11130
  data?: string | undefined;
11031
11131
  mimeType?: string | undefined;
@@ -11040,14 +11140,14 @@ export declare const protocolMessageSchemas: {
11040
11140
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
11041
11141
  }, "strip", z.ZodTypeAny, {
11042
11142
  status: "running" | "pending" | "completed" | "failed";
11043
- name: string;
11044
11143
  id: string;
11144
+ name: string;
11045
11145
  input?: string | undefined;
11046
11146
  output?: string | undefined;
11047
11147
  createdAt?: number | undefined;
11048
11148
  }, {
11049
- name: string;
11050
11149
  id: string;
11150
+ name: string;
11051
11151
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11052
11152
  input?: string | undefined;
11053
11153
  output?: string | undefined;
@@ -11368,7 +11468,7 @@ export declare const protocolMessageSchemas: {
11368
11468
  role?: "user" | "assistant" | "system" | undefined;
11369
11469
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11370
11470
  content?: {
11371
- type: "image" | "text";
11471
+ type: "text" | "image";
11372
11472
  text?: string | undefined;
11373
11473
  data?: string | undefined;
11374
11474
  mimeType?: string | undefined;
@@ -11376,8 +11476,8 @@ export declare const protocolMessageSchemas: {
11376
11476
  isStreaming?: boolean | undefined;
11377
11477
  toolCall?: {
11378
11478
  status: "running" | "pending" | "completed" | "failed";
11379
- name: string;
11380
11479
  id: string;
11480
+ name: string;
11381
11481
  input?: string | undefined;
11382
11482
  output?: string | undefined;
11383
11483
  createdAt?: number | undefined;
@@ -11468,15 +11568,15 @@ export declare const protocolMessageSchemas: {
11468
11568
  role?: "user" | "assistant" | "system" | undefined;
11469
11569
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11470
11570
  content?: {
11471
- type: "image" | "text";
11571
+ type: "text" | "image";
11472
11572
  text?: string | undefined;
11473
11573
  data?: string | undefined;
11474
11574
  mimeType?: string | undefined;
11475
11575
  }[] | undefined;
11476
11576
  isStreaming?: boolean | undefined;
11477
11577
  toolCall?: {
11478
- name: string;
11479
11578
  id: string;
11579
+ name: string;
11480
11580
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11481
11581
  input?: string | undefined;
11482
11582
  output?: string | undefined;
@@ -11587,7 +11687,7 @@ export declare const protocolMessageSchemas: {
11587
11687
  role?: "user" | "assistant" | "system" | undefined;
11588
11688
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11589
11689
  content?: {
11590
- type: "image" | "text";
11690
+ type: "text" | "image";
11591
11691
  text?: string | undefined;
11592
11692
  data?: string | undefined;
11593
11693
  mimeType?: string | undefined;
@@ -11595,8 +11695,8 @@ export declare const protocolMessageSchemas: {
11595
11695
  isStreaming?: boolean | undefined;
11596
11696
  toolCall?: {
11597
11697
  status: "running" | "pending" | "completed" | "failed";
11598
- name: string;
11599
11698
  id: string;
11699
+ name: string;
11600
11700
  input?: string | undefined;
11601
11701
  output?: string | undefined;
11602
11702
  createdAt?: number | undefined;
@@ -11709,15 +11809,15 @@ export declare const protocolMessageSchemas: {
11709
11809
  role?: "user" | "assistant" | "system" | undefined;
11710
11810
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11711
11811
  content?: {
11712
- type: "image" | "text";
11812
+ type: "text" | "image";
11713
11813
  text?: string | undefined;
11714
11814
  data?: string | undefined;
11715
11815
  mimeType?: string | undefined;
11716
11816
  }[] | undefined;
11717
11817
  isStreaming?: boolean | undefined;
11718
11818
  toolCall?: {
11719
- name: string;
11720
11819
  id: string;
11820
+ name: string;
11721
11821
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11722
11822
  input?: string | undefined;
11723
11823
  output?: string | undefined;
@@ -11837,12 +11937,12 @@ export declare const protocolMessageSchemas: {
11837
11937
  data: z.ZodOptional<z.ZodString>;
11838
11938
  mimeType: z.ZodOptional<z.ZodString>;
11839
11939
  }, "strip", z.ZodTypeAny, {
11840
- type: "image" | "text";
11940
+ type: "text" | "image";
11841
11941
  text?: string | undefined;
11842
11942
  data?: string | undefined;
11843
11943
  mimeType?: string | undefined;
11844
11944
  }, {
11845
- type: "image" | "text";
11945
+ type: "text" | "image";
11846
11946
  text?: string | undefined;
11847
11947
  data?: string | undefined;
11848
11948
  mimeType?: string | undefined;
@@ -11857,14 +11957,14 @@ export declare const protocolMessageSchemas: {
11857
11957
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
11858
11958
  }, "strip", z.ZodTypeAny, {
11859
11959
  status: "running" | "pending" | "completed" | "failed";
11860
- name: string;
11861
11960
  id: string;
11961
+ name: string;
11862
11962
  input?: string | undefined;
11863
11963
  output?: string | undefined;
11864
11964
  createdAt?: number | undefined;
11865
11965
  }, {
11866
- name: string;
11867
11966
  id: string;
11967
+ name: string;
11868
11968
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11869
11969
  input?: string | undefined;
11870
11970
  output?: string | undefined;
@@ -12185,7 +12285,7 @@ export declare const protocolMessageSchemas: {
12185
12285
  role?: "user" | "assistant" | "system" | undefined;
12186
12286
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12187
12287
  content?: {
12188
- type: "image" | "text";
12288
+ type: "text" | "image";
12189
12289
  text?: string | undefined;
12190
12290
  data?: string | undefined;
12191
12291
  mimeType?: string | undefined;
@@ -12193,8 +12293,8 @@ export declare const protocolMessageSchemas: {
12193
12293
  isStreaming?: boolean | undefined;
12194
12294
  toolCall?: {
12195
12295
  status: "running" | "pending" | "completed" | "failed";
12196
- name: string;
12197
12296
  id: string;
12297
+ name: string;
12198
12298
  input?: string | undefined;
12199
12299
  output?: string | undefined;
12200
12300
  createdAt?: number | undefined;
@@ -12285,15 +12385,15 @@ export declare const protocolMessageSchemas: {
12285
12385
  role?: "user" | "assistant" | "system" | undefined;
12286
12386
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12287
12387
  content?: {
12288
- type: "image" | "text";
12388
+ type: "text" | "image";
12289
12389
  text?: string | undefined;
12290
12390
  data?: string | undefined;
12291
12391
  mimeType?: string | undefined;
12292
12392
  }[] | undefined;
12293
12393
  isStreaming?: boolean | undefined;
12294
12394
  toolCall?: {
12295
- name: string;
12296
12395
  id: string;
12396
+ name: string;
12297
12397
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12298
12398
  input?: string | undefined;
12299
12399
  output?: string | undefined;
@@ -12360,12 +12460,12 @@ export declare const protocolMessageSchemas: {
12360
12460
  data: z.ZodOptional<z.ZodString>;
12361
12461
  mimeType: z.ZodOptional<z.ZodString>;
12362
12462
  }, "strip", z.ZodTypeAny, {
12363
- type: "image" | "text";
12463
+ type: "text" | "image";
12364
12464
  text?: string | undefined;
12365
12465
  data?: string | undefined;
12366
12466
  mimeType?: string | undefined;
12367
12467
  }, {
12368
- type: "image" | "text";
12468
+ type: "text" | "image";
12369
12469
  text?: string | undefined;
12370
12470
  data?: string | undefined;
12371
12471
  mimeType?: string | undefined;
@@ -12382,14 +12482,14 @@ export declare const protocolMessageSchemas: {
12382
12482
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
12383
12483
  }, "strip", z.ZodTypeAny, {
12384
12484
  status: "running" | "pending" | "completed" | "failed";
12385
- name: string;
12386
12485
  id: string;
12486
+ name: string;
12387
12487
  input?: string | undefined;
12388
12488
  output?: string | undefined;
12389
12489
  createdAt?: number | undefined;
12390
12490
  }, {
12391
- name: string;
12392
12491
  id: string;
12492
+ name: string;
12393
12493
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12394
12494
  input?: string | undefined;
12395
12495
  output?: string | undefined;
@@ -12704,7 +12804,7 @@ export declare const protocolMessageSchemas: {
12704
12804
  role?: "user" | "assistant" | "system" | undefined;
12705
12805
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12706
12806
  content?: {
12707
- type: "image" | "text";
12807
+ type: "text" | "image";
12708
12808
  text?: string | undefined;
12709
12809
  data?: string | undefined;
12710
12810
  mimeType?: string | undefined;
@@ -12712,8 +12812,8 @@ export declare const protocolMessageSchemas: {
12712
12812
  isStreaming?: boolean | undefined;
12713
12813
  toolCall?: {
12714
12814
  status: "running" | "pending" | "completed" | "failed";
12715
- name: string;
12716
12815
  id: string;
12816
+ name: string;
12717
12817
  input?: string | undefined;
12718
12818
  output?: string | undefined;
12719
12819
  createdAt?: number | undefined;
@@ -12800,15 +12900,15 @@ export declare const protocolMessageSchemas: {
12800
12900
  role?: "user" | "assistant" | "system" | undefined;
12801
12901
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12802
12902
  content?: {
12803
- type: "image" | "text";
12903
+ type: "text" | "image";
12804
12904
  text?: string | undefined;
12805
12905
  data?: string | undefined;
12806
12906
  mimeType?: string | undefined;
12807
12907
  }[] | undefined;
12808
12908
  isStreaming?: boolean | undefined;
12809
12909
  toolCall?: {
12810
- name: string;
12811
12910
  id: string;
12911
+ name: string;
12812
12912
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12813
12913
  input?: string | undefined;
12814
12914
  output?: string | undefined;
@@ -12903,7 +13003,7 @@ export declare const protocolMessageSchemas: {
12903
13003
  role?: "user" | "assistant" | "system" | undefined;
12904
13004
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12905
13005
  content?: {
12906
- type: "image" | "text";
13006
+ type: "text" | "image";
12907
13007
  text?: string | undefined;
12908
13008
  data?: string | undefined;
12909
13009
  mimeType?: string | undefined;
@@ -12911,8 +13011,8 @@ export declare const protocolMessageSchemas: {
12911
13011
  isStreaming?: boolean | undefined;
12912
13012
  toolCall?: {
12913
13013
  status: "running" | "pending" | "completed" | "failed";
12914
- name: string;
12915
13014
  id: string;
13015
+ name: string;
12916
13016
  input?: string | undefined;
12917
13017
  output?: string | undefined;
12918
13018
  createdAt?: number | undefined;
@@ -13000,7 +13100,7 @@ export declare const protocolMessageSchemas: {
13000
13100
  role?: "user" | "assistant" | "system" | undefined;
13001
13101
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13002
13102
  content?: {
13003
- type: "image" | "text";
13103
+ type: "text" | "image";
13004
13104
  text?: string | undefined;
13005
13105
  data?: string | undefined;
13006
13106
  mimeType?: string | undefined;
@@ -13008,8 +13108,8 @@ export declare const protocolMessageSchemas: {
13008
13108
  isStreaming?: boolean | undefined;
13009
13109
  toolCall?: {
13010
13110
  status: "running" | "pending" | "completed" | "failed";
13011
- name: string;
13012
13111
  id: string;
13112
+ name: string;
13013
13113
  input?: string | undefined;
13014
13114
  output?: string | undefined;
13015
13115
  createdAt?: number | undefined;
@@ -13119,15 +13219,15 @@ export declare const protocolMessageSchemas: {
13119
13219
  role?: "user" | "assistant" | "system" | undefined;
13120
13220
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13121
13221
  content?: {
13122
- type: "image" | "text";
13222
+ type: "text" | "image";
13123
13223
  text?: string | undefined;
13124
13224
  data?: string | undefined;
13125
13225
  mimeType?: string | undefined;
13126
13226
  }[] | undefined;
13127
13227
  isStreaming?: boolean | undefined;
13128
13228
  toolCall?: {
13129
- name: string;
13130
13229
  id: string;
13230
+ name: string;
13131
13231
  status?: "running" | "pending" | "completed" | "failed" | undefined;
13132
13232
  input?: string | undefined;
13133
13233
  output?: string | undefined;
@@ -13216,15 +13316,15 @@ export declare const protocolMessageSchemas: {
13216
13316
  role?: "user" | "assistant" | "system" | undefined;
13217
13317
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13218
13318
  content?: {
13219
- type: "image" | "text";
13319
+ type: "text" | "image";
13220
13320
  text?: string | undefined;
13221
13321
  data?: string | undefined;
13222
13322
  mimeType?: string | undefined;
13223
13323
  }[] | undefined;
13224
13324
  isStreaming?: boolean | undefined;
13225
13325
  toolCall?: {
13226
- name: string;
13227
13326
  id: string;
13327
+ name: string;
13228
13328
  status?: "running" | "pending" | "completed" | "failed" | undefined;
13229
13329
  input?: string | undefined;
13230
13330
  output?: string | undefined;