linkshell-cli 0.2.117 → 0.2.118

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<{
@@ -536,16 +564,16 @@ export declare const tunnelRequestPayloadSchema: z.ZodObject<{
536
564
  port: z.ZodNumber;
537
565
  }, "strip", z.ZodTypeAny, {
538
566
  port: number;
539
- url: string;
540
567
  requestId: string;
541
568
  method: string;
569
+ url: string;
542
570
  headers: Record<string, string>;
543
571
  body: string | null;
544
572
  }, {
545
573
  port: number;
546
- url: string;
547
574
  requestId: string;
548
575
  method: string;
576
+ url: string;
549
577
  headers: Record<string, string>;
550
578
  body: string | null;
551
579
  }>;
@@ -621,12 +649,12 @@ export declare const agentContentBlockSchema: z.ZodObject<{
621
649
  data: z.ZodOptional<z.ZodString>;
622
650
  mimeType: z.ZodOptional<z.ZodString>;
623
651
  }, "strip", z.ZodTypeAny, {
624
- type: "image" | "text";
652
+ type: "text" | "image";
625
653
  text?: string | undefined;
626
654
  data?: string | undefined;
627
655
  mimeType?: string | undefined;
628
656
  }, {
629
- type: "image" | "text";
657
+ type: "text" | "image";
630
658
  text?: string | undefined;
631
659
  data?: string | undefined;
632
660
  mimeType?: string | undefined;
@@ -659,14 +687,14 @@ export declare const agentToolCallSchema: z.ZodObject<{
659
687
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
660
688
  }, "strip", z.ZodTypeAny, {
661
689
  status: "running" | "pending" | "completed" | "failed";
662
- name: string;
663
690
  id: string;
691
+ name: string;
664
692
  input?: string | undefined;
665
693
  output?: string | undefined;
666
694
  createdAt?: number | undefined;
667
695
  }, {
668
- name: string;
669
696
  id: string;
697
+ name: string;
670
698
  status?: "running" | "pending" | "completed" | "failed" | undefined;
671
699
  input?: string | undefined;
672
700
  output?: string | undefined;
@@ -735,9 +763,9 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
735
763
  disabledReason: z.ZodOptional<z.ZodString>;
736
764
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
737
765
  }, "strip", z.ZodTypeAny, {
738
- name: string;
739
766
  title: string;
740
767
  id: string;
768
+ name: string;
741
769
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
742
770
  argsMode: "none" | "optional" | "required" | "raw";
743
771
  executionKind: "prompt" | "native" | "local_ui";
@@ -748,9 +776,9 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
748
776
  destructive?: boolean | undefined;
749
777
  disabledReason?: string | undefined;
750
778
  }, {
751
- name: string;
752
779
  title: string;
753
780
  id: string;
781
+ name: string;
754
782
  description?: string | undefined;
755
783
  provider?: "claude" | "codex" | "custom" | undefined;
756
784
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -810,9 +838,9 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
810
838
  disabledReason: z.ZodOptional<z.ZodString>;
811
839
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
812
840
  }, "strip", z.ZodTypeAny, {
813
- name: string;
814
841
  title: string;
815
842
  id: string;
843
+ name: string;
816
844
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
817
845
  argsMode: "none" | "optional" | "required" | "raw";
818
846
  executionKind: "prompt" | "native" | "local_ui";
@@ -823,9 +851,9 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
823
851
  destructive?: boolean | undefined;
824
852
  disabledReason?: string | undefined;
825
853
  }, {
826
- name: string;
827
854
  title: string;
828
855
  id: string;
856
+ name: string;
829
857
  description?: string | undefined;
830
858
  provider?: "claude" | "codex" | "custom" | undefined;
831
859
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -868,9 +896,9 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
868
896
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
869
897
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
870
898
  commands?: {
871
- name: string;
872
899
  title: string;
873
900
  id: string;
901
+ name: string;
874
902
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
875
903
  argsMode: "none" | "optional" | "required" | "raw";
876
904
  executionKind: "prompt" | "native" | "local_ui";
@@ -905,9 +933,9 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
905
933
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
906
934
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
907
935
  commands?: {
908
- name: string;
909
936
  title: string;
910
937
  id: string;
938
+ name: string;
911
939
  description?: string | undefined;
912
940
  provider?: "claude" | "codex" | "custom" | undefined;
913
941
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -966,9 +994,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
966
994
  disabledReason: z.ZodOptional<z.ZodString>;
967
995
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
968
996
  }, "strip", z.ZodTypeAny, {
969
- name: string;
970
997
  title: string;
971
998
  id: string;
999
+ name: string;
972
1000
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
973
1001
  argsMode: "none" | "optional" | "required" | "raw";
974
1002
  executionKind: "prompt" | "native" | "local_ui";
@@ -979,9 +1007,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
979
1007
  destructive?: boolean | undefined;
980
1008
  disabledReason?: string | undefined;
981
1009
  }, {
982
- name: string;
983
1010
  title: string;
984
1011
  id: string;
1012
+ name: string;
985
1013
  description?: string | undefined;
986
1014
  provider?: "claude" | "codex" | "custom" | undefined;
987
1015
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -1024,9 +1052,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1024
1052
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1025
1053
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1026
1054
  commands?: {
1027
- name: string;
1028
1055
  title: string;
1029
1056
  id: string;
1057
+ name: string;
1030
1058
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
1031
1059
  argsMode: "none" | "optional" | "required" | "raw";
1032
1060
  executionKind: "prompt" | "native" | "local_ui";
@@ -1061,9 +1089,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1061
1089
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1062
1090
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1063
1091
  commands?: {
1064
- name: string;
1065
1092
  title: string;
1066
1093
  id: string;
1094
+ name: string;
1067
1095
  description?: string | undefined;
1068
1096
  provider?: "claude" | "codex" | "custom" | undefined;
1069
1097
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -1121,9 +1149,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1121
1149
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1122
1150
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1123
1151
  commands?: {
1124
- name: string;
1125
1152
  title: string;
1126
1153
  id: string;
1154
+ name: string;
1127
1155
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
1128
1156
  argsMode: "none" | "optional" | "required" | "raw";
1129
1157
  executionKind: "prompt" | "native" | "local_ui";
@@ -1169,9 +1197,9 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1169
1197
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1170
1198
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1171
1199
  commands?: {
1172
- name: string;
1173
1200
  title: string;
1174
1201
  id: string;
1202
+ name: string;
1175
1203
  description?: string | undefined;
1176
1204
  provider?: "claude" | "codex" | "custom" | undefined;
1177
1205
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -1228,12 +1256,12 @@ export declare const agentPromptPayloadSchema: z.ZodObject<{
1228
1256
  data: z.ZodOptional<z.ZodString>;
1229
1257
  mimeType: z.ZodOptional<z.ZodString>;
1230
1258
  }, "strip", z.ZodTypeAny, {
1231
- type: "image" | "text";
1259
+ type: "text" | "image";
1232
1260
  text?: string | undefined;
1233
1261
  data?: string | undefined;
1234
1262
  mimeType?: string | undefined;
1235
1263
  }, {
1236
- type: "image" | "text";
1264
+ type: "text" | "image";
1237
1265
  text?: string | undefined;
1238
1266
  data?: string | undefined;
1239
1267
  mimeType?: string | undefined;
@@ -1244,7 +1272,7 @@ export declare const agentPromptPayloadSchema: z.ZodObject<{
1244
1272
  }, "strip", z.ZodTypeAny, {
1245
1273
  clientMessageId: string;
1246
1274
  contentBlocks: {
1247
- type: "image" | "text";
1275
+ type: "text" | "image";
1248
1276
  text?: string | undefined;
1249
1277
  data?: string | undefined;
1250
1278
  mimeType?: string | undefined;
@@ -1256,7 +1284,7 @@ export declare const agentPromptPayloadSchema: z.ZodObject<{
1256
1284
  }, {
1257
1285
  clientMessageId: string;
1258
1286
  contentBlocks: {
1259
- type: "image" | "text";
1287
+ type: "text" | "image";
1260
1288
  text?: string | undefined;
1261
1289
  data?: string | undefined;
1262
1290
  mimeType?: string | undefined;
@@ -1305,14 +1333,14 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1305
1333
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
1306
1334
  }, "strip", z.ZodTypeAny, {
1307
1335
  status: "running" | "pending" | "completed" | "failed";
1308
- name: string;
1309
1336
  id: string;
1337
+ name: string;
1310
1338
  input?: string | undefined;
1311
1339
  output?: string | undefined;
1312
1340
  createdAt?: number | undefined;
1313
1341
  }, {
1314
- name: string;
1315
1342
  id: string;
1343
+ name: string;
1316
1344
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1317
1345
  input?: string | undefined;
1318
1346
  output?: string | undefined;
@@ -1353,8 +1381,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1353
1381
  delta?: string | undefined;
1354
1382
  toolCall?: {
1355
1383
  status: "running" | "pending" | "completed" | "failed";
1356
- name: string;
1357
1384
  id: string;
1385
+ name: string;
1358
1386
  input?: string | undefined;
1359
1387
  output?: string | undefined;
1360
1388
  createdAt?: number | undefined;
@@ -1378,8 +1406,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1378
1406
  agentSessionId?: string | undefined;
1379
1407
  delta?: string | undefined;
1380
1408
  toolCall?: {
1381
- name: string;
1382
1409
  id: string;
1410
+ name: string;
1383
1411
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1384
1412
  input?: string | undefined;
1385
1413
  output?: string | undefined;
@@ -1487,9 +1515,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1487
1515
  disabledReason: z.ZodOptional<z.ZodString>;
1488
1516
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
1489
1517
  }, "strip", z.ZodTypeAny, {
1490
- name: string;
1491
1518
  title: string;
1492
1519
  id: string;
1520
+ name: string;
1493
1521
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
1494
1522
  argsMode: "none" | "optional" | "required" | "raw";
1495
1523
  executionKind: "prompt" | "native" | "local_ui";
@@ -1500,9 +1528,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1500
1528
  destructive?: boolean | undefined;
1501
1529
  disabledReason?: string | undefined;
1502
1530
  }, {
1503
- name: string;
1504
1531
  title: string;
1505
1532
  id: string;
1533
+ name: string;
1506
1534
  description?: string | undefined;
1507
1535
  provider?: "claude" | "codex" | "custom" | undefined;
1508
1536
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -1545,9 +1573,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1545
1573
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1546
1574
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1547
1575
  commands?: {
1548
- name: string;
1549
1576
  title: string;
1550
1577
  id: string;
1578
+ name: string;
1551
1579
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
1552
1580
  argsMode: "none" | "optional" | "required" | "raw";
1553
1581
  executionKind: "prompt" | "native" | "local_ui";
@@ -1582,9 +1610,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1582
1610
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1583
1611
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1584
1612
  commands?: {
1585
- name: string;
1586
1613
  title: string;
1587
1614
  id: string;
1615
+ name: string;
1588
1616
  description?: string | undefined;
1589
1617
  provider?: "claude" | "codex" | "custom" | undefined;
1590
1618
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -1642,9 +1670,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1642
1670
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1643
1671
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1644
1672
  commands?: {
1645
- name: string;
1646
1673
  title: string;
1647
1674
  id: string;
1675
+ name: string;
1648
1676
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
1649
1677
  argsMode: "none" | "optional" | "required" | "raw";
1650
1678
  executionKind: "prompt" | "native" | "local_ui";
@@ -1690,9 +1718,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1690
1718
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1691
1719
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1692
1720
  commands?: {
1693
- name: string;
1694
1721
  title: string;
1695
1722
  id: string;
1723
+ name: string;
1696
1724
  description?: string | undefined;
1697
1725
  provider?: "claude" | "codex" | "custom" | undefined;
1698
1726
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -1743,14 +1771,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1743
1771
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
1744
1772
  }, "strip", z.ZodTypeAny, {
1745
1773
  status: "running" | "pending" | "completed" | "failed";
1746
- name: string;
1747
1774
  id: string;
1775
+ name: string;
1748
1776
  input?: string | undefined;
1749
1777
  output?: string | undefined;
1750
1778
  createdAt?: number | undefined;
1751
1779
  }, {
1752
- name: string;
1753
1780
  id: string;
1781
+ name: string;
1754
1782
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1755
1783
  input?: string | undefined;
1756
1784
  output?: string | undefined;
@@ -1808,8 +1836,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1808
1836
  }[];
1809
1837
  toolCalls: {
1810
1838
  status: "running" | "pending" | "completed" | "failed";
1811
- name: string;
1812
1839
  id: string;
1840
+ name: string;
1813
1841
  input?: string | undefined;
1814
1842
  output?: string | undefined;
1815
1843
  createdAt?: number | undefined;
@@ -1857,9 +1885,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1857
1885
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1858
1886
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1859
1887
  commands?: {
1860
- name: string;
1861
1888
  title: string;
1862
1889
  id: string;
1890
+ name: string;
1863
1891
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
1864
1892
  argsMode: "none" | "optional" | "required" | "raw";
1865
1893
  executionKind: "prompt" | "native" | "local_ui";
@@ -1910,9 +1938,9 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1910
1938
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1911
1939
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1912
1940
  commands?: {
1913
- name: string;
1914
1941
  title: string;
1915
1942
  id: string;
1943
+ name: string;
1916
1944
  description?: string | undefined;
1917
1945
  provider?: "claude" | "codex" | "custom" | undefined;
1918
1946
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -1943,8 +1971,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1943
1971
  isStreaming?: boolean | undefined;
1944
1972
  }[] | undefined;
1945
1973
  toolCalls?: {
1946
- name: string;
1947
1974
  id: string;
1975
+ name: string;
1948
1976
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1949
1977
  input?: string | undefined;
1950
1978
  output?: string | undefined;
@@ -2308,12 +2336,12 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2308
2336
  data: z.ZodOptional<z.ZodString>;
2309
2337
  mimeType: z.ZodOptional<z.ZodString>;
2310
2338
  }, "strip", z.ZodTypeAny, {
2311
- type: "image" | "text";
2339
+ type: "text" | "image";
2312
2340
  text?: string | undefined;
2313
2341
  data?: string | undefined;
2314
2342
  mimeType?: string | undefined;
2315
2343
  }, {
2316
- type: "image" | "text";
2344
+ type: "text" | "image";
2317
2345
  text?: string | undefined;
2318
2346
  data?: string | undefined;
2319
2347
  mimeType?: string | undefined;
@@ -2328,14 +2356,14 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2328
2356
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
2329
2357
  }, "strip", z.ZodTypeAny, {
2330
2358
  status: "running" | "pending" | "completed" | "failed";
2331
- name: string;
2332
2359
  id: string;
2360
+ name: string;
2333
2361
  input?: string | undefined;
2334
2362
  output?: string | undefined;
2335
2363
  createdAt?: number | undefined;
2336
2364
  }, {
2337
- name: string;
2338
2365
  id: string;
2366
+ name: string;
2339
2367
  status?: "running" | "pending" | "completed" | "failed" | undefined;
2340
2368
  input?: string | undefined;
2341
2369
  output?: string | undefined;
@@ -2656,7 +2684,7 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2656
2684
  role?: "user" | "assistant" | "system" | undefined;
2657
2685
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
2658
2686
  content?: {
2659
- type: "image" | "text";
2687
+ type: "text" | "image";
2660
2688
  text?: string | undefined;
2661
2689
  data?: string | undefined;
2662
2690
  mimeType?: string | undefined;
@@ -2664,8 +2692,8 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2664
2692
  isStreaming?: boolean | undefined;
2665
2693
  toolCall?: {
2666
2694
  status: "running" | "pending" | "completed" | "failed";
2667
- name: string;
2668
2695
  id: string;
2696
+ name: string;
2669
2697
  input?: string | undefined;
2670
2698
  output?: string | undefined;
2671
2699
  createdAt?: number | undefined;
@@ -2756,15 +2784,15 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2756
2784
  role?: "user" | "assistant" | "system" | undefined;
2757
2785
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
2758
2786
  content?: {
2759
- type: "image" | "text";
2787
+ type: "text" | "image";
2760
2788
  text?: string | undefined;
2761
2789
  data?: string | undefined;
2762
2790
  mimeType?: string | undefined;
2763
2791
  }[] | undefined;
2764
2792
  isStreaming?: boolean | undefined;
2765
2793
  toolCall?: {
2766
- name: string;
2767
2794
  id: string;
2795
+ name: string;
2768
2796
  status?: "running" | "pending" | "completed" | "failed" | undefined;
2769
2797
  input?: string | undefined;
2770
2798
  output?: string | undefined;
@@ -2908,9 +2936,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2908
2936
  disabledReason: z.ZodOptional<z.ZodString>;
2909
2937
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
2910
2938
  }, "strip", z.ZodTypeAny, {
2911
- name: string;
2912
2939
  title: string;
2913
2940
  id: string;
2941
+ name: string;
2914
2942
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
2915
2943
  argsMode: "none" | "optional" | "required" | "raw";
2916
2944
  executionKind: "prompt" | "native" | "local_ui";
@@ -2921,9 +2949,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2921
2949
  destructive?: boolean | undefined;
2922
2950
  disabledReason?: string | undefined;
2923
2951
  }, {
2924
- name: string;
2925
2952
  title: string;
2926
2953
  id: string;
2954
+ name: string;
2927
2955
  description?: string | undefined;
2928
2956
  provider?: "claude" | "codex" | "custom" | undefined;
2929
2957
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -2966,9 +2994,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2966
2994
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
2967
2995
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
2968
2996
  commands?: {
2969
- name: string;
2970
2997
  title: string;
2971
2998
  id: string;
2999
+ name: string;
2972
3000
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
2973
3001
  argsMode: "none" | "optional" | "required" | "raw";
2974
3002
  executionKind: "prompt" | "native" | "local_ui";
@@ -3003,9 +3031,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3003
3031
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3004
3032
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3005
3033
  commands?: {
3006
- name: string;
3007
3034
  title: string;
3008
3035
  id: string;
3036
+ name: string;
3009
3037
  description?: string | undefined;
3010
3038
  provider?: "claude" | "codex" | "custom" | undefined;
3011
3039
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -3066,9 +3094,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3066
3094
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3067
3095
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3068
3096
  commands?: {
3069
- name: string;
3070
3097
  title: string;
3071
3098
  id: string;
3099
+ name: string;
3072
3100
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
3073
3101
  argsMode: "none" | "optional" | "required" | "raw";
3074
3102
  executionKind: "prompt" | "native" | "local_ui";
@@ -3114,9 +3142,9 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3114
3142
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3115
3143
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3116
3144
  commands?: {
3117
- name: string;
3118
3145
  title: string;
3119
3146
  id: string;
3147
+ name: string;
3120
3148
  description?: string | undefined;
3121
3149
  provider?: "claude" | "codex" | "custom" | undefined;
3122
3150
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -3232,12 +3260,12 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3232
3260
  data: z.ZodOptional<z.ZodString>;
3233
3261
  mimeType: z.ZodOptional<z.ZodString>;
3234
3262
  }, "strip", z.ZodTypeAny, {
3235
- type: "image" | "text";
3263
+ type: "text" | "image";
3236
3264
  text?: string | undefined;
3237
3265
  data?: string | undefined;
3238
3266
  mimeType?: string | undefined;
3239
3267
  }, {
3240
- type: "image" | "text";
3268
+ type: "text" | "image";
3241
3269
  text?: string | undefined;
3242
3270
  data?: string | undefined;
3243
3271
  mimeType?: string | undefined;
@@ -3252,14 +3280,14 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3252
3280
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
3253
3281
  }, "strip", z.ZodTypeAny, {
3254
3282
  status: "running" | "pending" | "completed" | "failed";
3255
- name: string;
3256
3283
  id: string;
3284
+ name: string;
3257
3285
  input?: string | undefined;
3258
3286
  output?: string | undefined;
3259
3287
  createdAt?: number | undefined;
3260
3288
  }, {
3261
- name: string;
3262
3289
  id: string;
3290
+ name: string;
3263
3291
  status?: "running" | "pending" | "completed" | "failed" | undefined;
3264
3292
  input?: string | undefined;
3265
3293
  output?: string | undefined;
@@ -3580,7 +3608,7 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3580
3608
  role?: "user" | "assistant" | "system" | undefined;
3581
3609
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3582
3610
  content?: {
3583
- type: "image" | "text";
3611
+ type: "text" | "image";
3584
3612
  text?: string | undefined;
3585
3613
  data?: string | undefined;
3586
3614
  mimeType?: string | undefined;
@@ -3588,8 +3616,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3588
3616
  isStreaming?: boolean | undefined;
3589
3617
  toolCall?: {
3590
3618
  status: "running" | "pending" | "completed" | "failed";
3591
- name: string;
3592
3619
  id: string;
3620
+ name: string;
3593
3621
  input?: string | undefined;
3594
3622
  output?: string | undefined;
3595
3623
  createdAt?: number | undefined;
@@ -3680,15 +3708,15 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3680
3708
  role?: "user" | "assistant" | "system" | undefined;
3681
3709
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3682
3710
  content?: {
3683
- type: "image" | "text";
3711
+ type: "text" | "image";
3684
3712
  text?: string | undefined;
3685
3713
  data?: string | undefined;
3686
3714
  mimeType?: string | undefined;
3687
3715
  }[] | undefined;
3688
3716
  isStreaming?: boolean | undefined;
3689
3717
  toolCall?: {
3690
- name: string;
3691
3718
  id: string;
3719
+ name: string;
3692
3720
  status?: "running" | "pending" | "completed" | "failed" | undefined;
3693
3721
  input?: string | undefined;
3694
3722
  output?: string | undefined;
@@ -3798,7 +3826,7 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3798
3826
  role?: "user" | "assistant" | "system" | undefined;
3799
3827
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3800
3828
  content?: {
3801
- type: "image" | "text";
3829
+ type: "text" | "image";
3802
3830
  text?: string | undefined;
3803
3831
  data?: string | undefined;
3804
3832
  mimeType?: string | undefined;
@@ -3806,8 +3834,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3806
3834
  isStreaming?: boolean | undefined;
3807
3835
  toolCall?: {
3808
3836
  status: "running" | "pending" | "completed" | "failed";
3809
- name: string;
3810
3837
  id: string;
3838
+ name: string;
3811
3839
  input?: string | undefined;
3812
3840
  output?: string | undefined;
3813
3841
  createdAt?: number | undefined;
@@ -3916,15 +3944,15 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3916
3944
  role?: "user" | "assistant" | "system" | undefined;
3917
3945
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3918
3946
  content?: {
3919
- type: "image" | "text";
3947
+ type: "text" | "image";
3920
3948
  text?: string | undefined;
3921
3949
  data?: string | undefined;
3922
3950
  mimeType?: string | undefined;
3923
3951
  }[] | undefined;
3924
3952
  isStreaming?: boolean | undefined;
3925
3953
  toolCall?: {
3926
- name: string;
3927
3954
  id: string;
3955
+ name: string;
3928
3956
  status?: "running" | "pending" | "completed" | "failed" | undefined;
3929
3957
  input?: string | undefined;
3930
3958
  output?: string | undefined;
@@ -4080,12 +4108,12 @@ export declare const agentV2PromptPayloadSchema: z.ZodObject<{
4080
4108
  data: z.ZodOptional<z.ZodString>;
4081
4109
  mimeType: z.ZodOptional<z.ZodString>;
4082
4110
  }, "strip", z.ZodTypeAny, {
4083
- type: "image" | "text";
4111
+ type: "text" | "image";
4084
4112
  text?: string | undefined;
4085
4113
  data?: string | undefined;
4086
4114
  mimeType?: string | undefined;
4087
4115
  }, {
4088
- type: "image" | "text";
4116
+ type: "text" | "image";
4089
4117
  text?: string | undefined;
4090
4118
  data?: string | undefined;
4091
4119
  mimeType?: string | undefined;
@@ -4097,7 +4125,7 @@ export declare const agentV2PromptPayloadSchema: z.ZodObject<{
4097
4125
  }, "strip", z.ZodTypeAny, {
4098
4126
  clientMessageId: string;
4099
4127
  contentBlocks: {
4100
- type: "image" | "text";
4128
+ type: "text" | "image";
4101
4129
  text?: string | undefined;
4102
4130
  data?: string | undefined;
4103
4131
  mimeType?: string | undefined;
@@ -4110,7 +4138,7 @@ export declare const agentV2PromptPayloadSchema: z.ZodObject<{
4110
4138
  }, {
4111
4139
  clientMessageId: string;
4112
4140
  contentBlocks: {
4113
- type: "image" | "text";
4141
+ type: "text" | "image";
4114
4142
  text?: string | undefined;
4115
4143
  data?: string | undefined;
4116
4144
  mimeType?: string | undefined;
@@ -4245,12 +4273,12 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4245
4273
  data: z.ZodOptional<z.ZodString>;
4246
4274
  mimeType: z.ZodOptional<z.ZodString>;
4247
4275
  }, "strip", z.ZodTypeAny, {
4248
- type: "image" | "text";
4276
+ type: "text" | "image";
4249
4277
  text?: string | undefined;
4250
4278
  data?: string | undefined;
4251
4279
  mimeType?: string | undefined;
4252
4280
  }, {
4253
- type: "image" | "text";
4281
+ type: "text" | "image";
4254
4282
  text?: string | undefined;
4255
4283
  data?: string | undefined;
4256
4284
  mimeType?: string | undefined;
@@ -4265,14 +4293,14 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4265
4293
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
4266
4294
  }, "strip", z.ZodTypeAny, {
4267
4295
  status: "running" | "pending" | "completed" | "failed";
4268
- name: string;
4269
4296
  id: string;
4297
+ name: string;
4270
4298
  input?: string | undefined;
4271
4299
  output?: string | undefined;
4272
4300
  createdAt?: number | undefined;
4273
4301
  }, {
4274
- name: string;
4275
4302
  id: string;
4303
+ name: string;
4276
4304
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4277
4305
  input?: string | undefined;
4278
4306
  output?: string | undefined;
@@ -4593,7 +4621,7 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4593
4621
  role?: "user" | "assistant" | "system" | undefined;
4594
4622
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4595
4623
  content?: {
4596
- type: "image" | "text";
4624
+ type: "text" | "image";
4597
4625
  text?: string | undefined;
4598
4626
  data?: string | undefined;
4599
4627
  mimeType?: string | undefined;
@@ -4601,8 +4629,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4601
4629
  isStreaming?: boolean | undefined;
4602
4630
  toolCall?: {
4603
4631
  status: "running" | "pending" | "completed" | "failed";
4604
- name: string;
4605
4632
  id: string;
4633
+ name: string;
4606
4634
  input?: string | undefined;
4607
4635
  output?: string | undefined;
4608
4636
  createdAt?: number | undefined;
@@ -4693,15 +4721,15 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4693
4721
  role?: "user" | "assistant" | "system" | undefined;
4694
4722
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4695
4723
  content?: {
4696
- type: "image" | "text";
4724
+ type: "text" | "image";
4697
4725
  text?: string | undefined;
4698
4726
  data?: string | undefined;
4699
4727
  mimeType?: string | undefined;
4700
4728
  }[] | undefined;
4701
4729
  isStreaming?: boolean | undefined;
4702
4730
  toolCall?: {
4703
- name: string;
4704
4731
  id: string;
4732
+ name: string;
4705
4733
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4706
4734
  input?: string | undefined;
4707
4735
  output?: string | undefined;
@@ -4812,7 +4840,7 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4812
4840
  role?: "user" | "assistant" | "system" | undefined;
4813
4841
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4814
4842
  content?: {
4815
- type: "image" | "text";
4843
+ type: "text" | "image";
4816
4844
  text?: string | undefined;
4817
4845
  data?: string | undefined;
4818
4846
  mimeType?: string | undefined;
@@ -4820,8 +4848,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4820
4848
  isStreaming?: boolean | undefined;
4821
4849
  toolCall?: {
4822
4850
  status: "running" | "pending" | "completed" | "failed";
4823
- name: string;
4824
4851
  id: string;
4852
+ name: string;
4825
4853
  input?: string | undefined;
4826
4854
  output?: string | undefined;
4827
4855
  createdAt?: number | undefined;
@@ -4934,15 +4962,15 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4934
4962
  role?: "user" | "assistant" | "system" | undefined;
4935
4963
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4936
4964
  content?: {
4937
- type: "image" | "text";
4965
+ type: "text" | "image";
4938
4966
  text?: string | undefined;
4939
4967
  data?: string | undefined;
4940
4968
  mimeType?: string | undefined;
4941
4969
  }[] | undefined;
4942
4970
  isStreaming?: boolean | undefined;
4943
4971
  toolCall?: {
4944
- name: string;
4945
4972
  id: string;
4973
+ name: string;
4946
4974
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4947
4975
  input?: string | undefined;
4948
4976
  output?: string | undefined;
@@ -5062,12 +5090,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5062
5090
  data: z.ZodOptional<z.ZodString>;
5063
5091
  mimeType: z.ZodOptional<z.ZodString>;
5064
5092
  }, "strip", z.ZodTypeAny, {
5065
- type: "image" | "text";
5093
+ type: "text" | "image";
5066
5094
  text?: string | undefined;
5067
5095
  data?: string | undefined;
5068
5096
  mimeType?: string | undefined;
5069
5097
  }, {
5070
- type: "image" | "text";
5098
+ type: "text" | "image";
5071
5099
  text?: string | undefined;
5072
5100
  data?: string | undefined;
5073
5101
  mimeType?: string | undefined;
@@ -5082,14 +5110,14 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5082
5110
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
5083
5111
  }, "strip", z.ZodTypeAny, {
5084
5112
  status: "running" | "pending" | "completed" | "failed";
5085
- name: string;
5086
5113
  id: string;
5114
+ name: string;
5087
5115
  input?: string | undefined;
5088
5116
  output?: string | undefined;
5089
5117
  createdAt?: number | undefined;
5090
5118
  }, {
5091
- name: string;
5092
5119
  id: string;
5120
+ name: string;
5093
5121
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5094
5122
  input?: string | undefined;
5095
5123
  output?: string | undefined;
@@ -5410,7 +5438,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5410
5438
  role?: "user" | "assistant" | "system" | undefined;
5411
5439
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5412
5440
  content?: {
5413
- type: "image" | "text";
5441
+ type: "text" | "image";
5414
5442
  text?: string | undefined;
5415
5443
  data?: string | undefined;
5416
5444
  mimeType?: string | undefined;
@@ -5418,8 +5446,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5418
5446
  isStreaming?: boolean | undefined;
5419
5447
  toolCall?: {
5420
5448
  status: "running" | "pending" | "completed" | "failed";
5421
- name: string;
5422
5449
  id: string;
5450
+ name: string;
5423
5451
  input?: string | undefined;
5424
5452
  output?: string | undefined;
5425
5453
  createdAt?: number | undefined;
@@ -5510,15 +5538,15 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5510
5538
  role?: "user" | "assistant" | "system" | undefined;
5511
5539
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5512
5540
  content?: {
5513
- type: "image" | "text";
5541
+ type: "text" | "image";
5514
5542
  text?: string | undefined;
5515
5543
  data?: string | undefined;
5516
5544
  mimeType?: string | undefined;
5517
5545
  }[] | undefined;
5518
5546
  isStreaming?: boolean | undefined;
5519
5547
  toolCall?: {
5520
- name: string;
5521
5548
  id: string;
5549
+ name: string;
5522
5550
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5523
5551
  input?: string | undefined;
5524
5552
  output?: string | undefined;
@@ -5585,12 +5613,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5585
5613
  data: z.ZodOptional<z.ZodString>;
5586
5614
  mimeType: z.ZodOptional<z.ZodString>;
5587
5615
  }, "strip", z.ZodTypeAny, {
5588
- type: "image" | "text";
5616
+ type: "text" | "image";
5589
5617
  text?: string | undefined;
5590
5618
  data?: string | undefined;
5591
5619
  mimeType?: string | undefined;
5592
5620
  }, {
5593
- type: "image" | "text";
5621
+ type: "text" | "image";
5594
5622
  text?: string | undefined;
5595
5623
  data?: string | undefined;
5596
5624
  mimeType?: string | undefined;
@@ -5607,14 +5635,14 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5607
5635
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
5608
5636
  }, "strip", z.ZodTypeAny, {
5609
5637
  status: "running" | "pending" | "completed" | "failed";
5610
- name: string;
5611
5638
  id: string;
5639
+ name: string;
5612
5640
  input?: string | undefined;
5613
5641
  output?: string | undefined;
5614
5642
  createdAt?: number | undefined;
5615
5643
  }, {
5616
- name: string;
5617
5644
  id: string;
5645
+ name: string;
5618
5646
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5619
5647
  input?: string | undefined;
5620
5648
  output?: string | undefined;
@@ -5929,7 +5957,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5929
5957
  role?: "user" | "assistant" | "system" | undefined;
5930
5958
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5931
5959
  content?: {
5932
- type: "image" | "text";
5960
+ type: "text" | "image";
5933
5961
  text?: string | undefined;
5934
5962
  data?: string | undefined;
5935
5963
  mimeType?: string | undefined;
@@ -5937,8 +5965,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5937
5965
  isStreaming?: boolean | undefined;
5938
5966
  toolCall?: {
5939
5967
  status: "running" | "pending" | "completed" | "failed";
5940
- name: string;
5941
5968
  id: string;
5969
+ name: string;
5942
5970
  input?: string | undefined;
5943
5971
  output?: string | undefined;
5944
5972
  createdAt?: number | undefined;
@@ -6025,15 +6053,15 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6025
6053
  role?: "user" | "assistant" | "system" | undefined;
6026
6054
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6027
6055
  content?: {
6028
- type: "image" | "text";
6056
+ type: "text" | "image";
6029
6057
  text?: string | undefined;
6030
6058
  data?: string | undefined;
6031
6059
  mimeType?: string | undefined;
6032
6060
  }[] | undefined;
6033
6061
  isStreaming?: boolean | undefined;
6034
6062
  toolCall?: {
6035
- name: string;
6036
6063
  id: string;
6064
+ name: string;
6037
6065
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6038
6066
  input?: string | undefined;
6039
6067
  output?: string | undefined;
@@ -6128,7 +6156,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6128
6156
  role?: "user" | "assistant" | "system" | undefined;
6129
6157
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6130
6158
  content?: {
6131
- type: "image" | "text";
6159
+ type: "text" | "image";
6132
6160
  text?: string | undefined;
6133
6161
  data?: string | undefined;
6134
6162
  mimeType?: string | undefined;
@@ -6136,8 +6164,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6136
6164
  isStreaming?: boolean | undefined;
6137
6165
  toolCall?: {
6138
6166
  status: "running" | "pending" | "completed" | "failed";
6139
- name: string;
6140
6167
  id: string;
6168
+ name: string;
6141
6169
  input?: string | undefined;
6142
6170
  output?: string | undefined;
6143
6171
  createdAt?: number | undefined;
@@ -6225,7 +6253,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6225
6253
  role?: "user" | "assistant" | "system" | undefined;
6226
6254
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6227
6255
  content?: {
6228
- type: "image" | "text";
6256
+ type: "text" | "image";
6229
6257
  text?: string | undefined;
6230
6258
  data?: string | undefined;
6231
6259
  mimeType?: string | undefined;
@@ -6233,8 +6261,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6233
6261
  isStreaming?: boolean | undefined;
6234
6262
  toolCall?: {
6235
6263
  status: "running" | "pending" | "completed" | "failed";
6236
- name: string;
6237
6264
  id: string;
6265
+ name: string;
6238
6266
  input?: string | undefined;
6239
6267
  output?: string | undefined;
6240
6268
  createdAt?: number | undefined;
@@ -6344,15 +6372,15 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6344
6372
  role?: "user" | "assistant" | "system" | undefined;
6345
6373
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6346
6374
  content?: {
6347
- type: "image" | "text";
6375
+ type: "text" | "image";
6348
6376
  text?: string | undefined;
6349
6377
  data?: string | undefined;
6350
6378
  mimeType?: string | undefined;
6351
6379
  }[] | undefined;
6352
6380
  isStreaming?: boolean | undefined;
6353
6381
  toolCall?: {
6354
- name: string;
6355
6382
  id: string;
6383
+ name: string;
6356
6384
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6357
6385
  input?: string | undefined;
6358
6386
  output?: string | undefined;
@@ -6441,15 +6469,15 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6441
6469
  role?: "user" | "assistant" | "system" | undefined;
6442
6470
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6443
6471
  content?: {
6444
- type: "image" | "text";
6472
+ type: "text" | "image";
6445
6473
  text?: string | undefined;
6446
6474
  data?: string | undefined;
6447
6475
  mimeType?: string | undefined;
6448
6476
  }[] | undefined;
6449
6477
  isStreaming?: boolean | undefined;
6450
6478
  toolCall?: {
6451
- name: string;
6452
6479
  id: string;
6480
+ name: string;
6453
6481
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6454
6482
  input?: string | undefined;
6455
6483
  output?: string | undefined;
@@ -6557,12 +6585,12 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6557
6585
  data: z.ZodOptional<z.ZodString>;
6558
6586
  mimeType: z.ZodOptional<z.ZodString>;
6559
6587
  }, "strip", z.ZodTypeAny, {
6560
- type: "image" | "text";
6588
+ type: "text" | "image";
6561
6589
  text?: string | undefined;
6562
6590
  data?: string | undefined;
6563
6591
  mimeType?: string | undefined;
6564
6592
  }, {
6565
- type: "image" | "text";
6593
+ type: "text" | "image";
6566
6594
  text?: string | undefined;
6567
6595
  data?: string | undefined;
6568
6596
  mimeType?: string | undefined;
@@ -6577,14 +6605,14 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6577
6605
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
6578
6606
  }, "strip", z.ZodTypeAny, {
6579
6607
  status: "running" | "pending" | "completed" | "failed";
6580
- name: string;
6581
6608
  id: string;
6609
+ name: string;
6582
6610
  input?: string | undefined;
6583
6611
  output?: string | undefined;
6584
6612
  createdAt?: number | undefined;
6585
6613
  }, {
6586
- name: string;
6587
6614
  id: string;
6615
+ name: string;
6588
6616
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6589
6617
  input?: string | undefined;
6590
6618
  output?: string | undefined;
@@ -6905,7 +6933,7 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6905
6933
  role?: "user" | "assistant" | "system" | undefined;
6906
6934
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6907
6935
  content?: {
6908
- type: "image" | "text";
6936
+ type: "text" | "image";
6909
6937
  text?: string | undefined;
6910
6938
  data?: string | undefined;
6911
6939
  mimeType?: string | undefined;
@@ -6913,8 +6941,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6913
6941
  isStreaming?: boolean | undefined;
6914
6942
  toolCall?: {
6915
6943
  status: "running" | "pending" | "completed" | "failed";
6916
- name: string;
6917
6944
  id: string;
6945
+ name: string;
6918
6946
  input?: string | undefined;
6919
6947
  output?: string | undefined;
6920
6948
  createdAt?: number | undefined;
@@ -7005,15 +7033,15 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7005
7033
  role?: "user" | "assistant" | "system" | undefined;
7006
7034
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7007
7035
  content?: {
7008
- type: "image" | "text";
7036
+ type: "text" | "image";
7009
7037
  text?: string | undefined;
7010
7038
  data?: string | undefined;
7011
7039
  mimeType?: string | undefined;
7012
7040
  }[] | undefined;
7013
7041
  isStreaming?: boolean | undefined;
7014
7042
  toolCall?: {
7015
- name: string;
7016
7043
  id: string;
7044
+ name: string;
7017
7045
  status?: "running" | "pending" | "completed" | "failed" | undefined;
7018
7046
  input?: string | undefined;
7019
7047
  output?: string | undefined;
@@ -7114,7 +7142,7 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7114
7142
  role?: "user" | "assistant" | "system" | undefined;
7115
7143
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7116
7144
  content?: {
7117
- type: "image" | "text";
7145
+ type: "text" | "image";
7118
7146
  text?: string | undefined;
7119
7147
  data?: string | undefined;
7120
7148
  mimeType?: string | undefined;
@@ -7122,8 +7150,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7122
7150
  isStreaming?: boolean | undefined;
7123
7151
  toolCall?: {
7124
7152
  status: "running" | "pending" | "completed" | "failed";
7125
- name: string;
7126
7153
  id: string;
7154
+ name: string;
7127
7155
  input?: string | undefined;
7128
7156
  output?: string | undefined;
7129
7157
  createdAt?: number | undefined;
@@ -7221,15 +7249,15 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7221
7249
  role?: "user" | "assistant" | "system" | undefined;
7222
7250
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7223
7251
  content?: {
7224
- type: "image" | "text";
7252
+ type: "text" | "image";
7225
7253
  text?: string | undefined;
7226
7254
  data?: string | undefined;
7227
7255
  mimeType?: string | undefined;
7228
7256
  }[] | undefined;
7229
7257
  isStreaming?: boolean | undefined;
7230
7258
  toolCall?: {
7231
- name: string;
7232
7259
  id: string;
7260
+ name: string;
7233
7261
  status?: "running" | "pending" | "completed" | "failed" | undefined;
7234
7262
  input?: string | undefined;
7235
7263
  output?: string | undefined;
@@ -7649,20 +7677,20 @@ export declare const protocolMessageSchemas: {
7649
7677
  }>, "many">;
7650
7678
  error: z.ZodOptional<z.ZodString>;
7651
7679
  }, "strip", z.ZodTypeAny, {
7652
- path: string;
7653
7680
  entries: {
7654
7681
  name: string;
7655
7682
  path: string;
7656
7683
  isDirectory: boolean;
7657
7684
  }[];
7685
+ path: string;
7658
7686
  error?: string | undefined;
7659
7687
  }, {
7660
- path: string;
7661
7688
  entries: {
7662
7689
  name: string;
7663
7690
  path: string;
7664
7691
  isDirectory: boolean;
7665
7692
  }[];
7693
+ path: string;
7666
7694
  error?: string | undefined;
7667
7695
  }>;
7668
7696
  readonly "terminal.kill": z.ZodObject<{
@@ -7705,6 +7733,22 @@ export declare const protocolMessageSchemas: {
7705
7733
  permissionRequest: string;
7706
7734
  requestId: string;
7707
7735
  }>>;
7736
+ permissionResolution: z.ZodOptional<z.ZodObject<{
7737
+ requestId: z.ZodString;
7738
+ outcome: z.ZodEnum<["allow", "deny", "cancelled"]>;
7739
+ source: z.ZodOptional<z.ZodString>;
7740
+ delivered: z.ZodBoolean;
7741
+ }, "strip", z.ZodTypeAny, {
7742
+ requestId: string;
7743
+ outcome: "allow" | "deny" | "cancelled";
7744
+ delivered: boolean;
7745
+ source?: string | undefined;
7746
+ }, {
7747
+ requestId: string;
7748
+ outcome: "allow" | "deny" | "cancelled";
7749
+ delivered: boolean;
7750
+ source?: string | undefined;
7751
+ }>>;
7708
7752
  pendingPermissionCount: z.ZodOptional<z.ZodNumber>;
7709
7753
  machineId: z.ZodOptional<z.ZodString>;
7710
7754
  }, "strip", z.ZodTypeAny, {
@@ -7722,6 +7766,12 @@ export declare const protocolMessageSchemas: {
7722
7766
  permissionRequest: string;
7723
7767
  requestId: string;
7724
7768
  } | undefined;
7769
+ permissionResolution?: {
7770
+ requestId: string;
7771
+ outcome: "allow" | "deny" | "cancelled";
7772
+ delivered: boolean;
7773
+ source?: string | undefined;
7774
+ } | undefined;
7725
7775
  pendingPermissionCount?: number | undefined;
7726
7776
  }, {
7727
7777
  phase: "error" | "idle" | "thinking" | "tool_use" | "outputting" | "waiting";
@@ -7738,6 +7788,12 @@ export declare const protocolMessageSchemas: {
7738
7788
  permissionRequest: string;
7739
7789
  requestId: string;
7740
7790
  } | undefined;
7791
+ permissionResolution?: {
7792
+ requestId: string;
7793
+ outcome: "allow" | "deny" | "cancelled";
7794
+ delivered: boolean;
7795
+ source?: string | undefined;
7796
+ } | undefined;
7741
7797
  pendingPermissionCount?: number | undefined;
7742
7798
  }>;
7743
7799
  readonly "permission.decision": z.ZodObject<{
@@ -7759,16 +7815,16 @@ export declare const protocolMessageSchemas: {
7759
7815
  port: z.ZodNumber;
7760
7816
  }, "strip", z.ZodTypeAny, {
7761
7817
  port: number;
7762
- url: string;
7763
7818
  requestId: string;
7764
7819
  method: string;
7820
+ url: string;
7765
7821
  headers: Record<string, string>;
7766
7822
  body: string | null;
7767
7823
  }, {
7768
7824
  port: number;
7769
- url: string;
7770
7825
  requestId: string;
7771
7826
  method: string;
7827
+ url: string;
7772
7828
  headers: Record<string, string>;
7773
7829
  body: string | null;
7774
7830
  }>;
@@ -7875,9 +7931,9 @@ export declare const protocolMessageSchemas: {
7875
7931
  disabledReason: z.ZodOptional<z.ZodString>;
7876
7932
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
7877
7933
  }, "strip", z.ZodTypeAny, {
7878
- name: string;
7879
7934
  title: string;
7880
7935
  id: string;
7936
+ name: string;
7881
7937
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
7882
7938
  argsMode: "none" | "optional" | "required" | "raw";
7883
7939
  executionKind: "prompt" | "native" | "local_ui";
@@ -7888,9 +7944,9 @@ export declare const protocolMessageSchemas: {
7888
7944
  destructive?: boolean | undefined;
7889
7945
  disabledReason?: string | undefined;
7890
7946
  }, {
7891
- name: string;
7892
7947
  title: string;
7893
7948
  id: string;
7949
+ name: string;
7894
7950
  description?: string | undefined;
7895
7951
  provider?: "claude" | "codex" | "custom" | undefined;
7896
7952
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -7933,9 +7989,9 @@ export declare const protocolMessageSchemas: {
7933
7989
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7934
7990
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7935
7991
  commands?: {
7936
- name: string;
7937
7992
  title: string;
7938
7993
  id: string;
7994
+ name: string;
7939
7995
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
7940
7996
  argsMode: "none" | "optional" | "required" | "raw";
7941
7997
  executionKind: "prompt" | "native" | "local_ui";
@@ -7970,9 +8026,9 @@ export declare const protocolMessageSchemas: {
7970
8026
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7971
8027
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7972
8028
  commands?: {
7973
- name: string;
7974
8029
  title: string;
7975
8030
  id: string;
8031
+ name: string;
7976
8032
  description?: string | undefined;
7977
8033
  provider?: "claude" | "codex" | "custom" | undefined;
7978
8034
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -8030,9 +8086,9 @@ export declare const protocolMessageSchemas: {
8030
8086
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8031
8087
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8032
8088
  commands?: {
8033
- name: string;
8034
8089
  title: string;
8035
8090
  id: string;
8091
+ name: string;
8036
8092
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
8037
8093
  argsMode: "none" | "optional" | "required" | "raw";
8038
8094
  executionKind: "prompt" | "native" | "local_ui";
@@ -8078,9 +8134,9 @@ export declare const protocolMessageSchemas: {
8078
8134
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8079
8135
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8080
8136
  commands?: {
8081
- name: string;
8082
8137
  title: string;
8083
8138
  id: string;
8139
+ name: string;
8084
8140
  description?: string | undefined;
8085
8141
  provider?: "claude" | "codex" | "custom" | undefined;
8086
8142
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -8136,12 +8192,12 @@ export declare const protocolMessageSchemas: {
8136
8192
  data: z.ZodOptional<z.ZodString>;
8137
8193
  mimeType: z.ZodOptional<z.ZodString>;
8138
8194
  }, "strip", z.ZodTypeAny, {
8139
- type: "image" | "text";
8195
+ type: "text" | "image";
8140
8196
  text?: string | undefined;
8141
8197
  data?: string | undefined;
8142
8198
  mimeType?: string | undefined;
8143
8199
  }, {
8144
- type: "image" | "text";
8200
+ type: "text" | "image";
8145
8201
  text?: string | undefined;
8146
8202
  data?: string | undefined;
8147
8203
  mimeType?: string | undefined;
@@ -8152,7 +8208,7 @@ export declare const protocolMessageSchemas: {
8152
8208
  }, "strip", z.ZodTypeAny, {
8153
8209
  clientMessageId: string;
8154
8210
  contentBlocks: {
8155
- type: "image" | "text";
8211
+ type: "text" | "image";
8156
8212
  text?: string | undefined;
8157
8213
  data?: string | undefined;
8158
8214
  mimeType?: string | undefined;
@@ -8164,7 +8220,7 @@ export declare const protocolMessageSchemas: {
8164
8220
  }, {
8165
8221
  clientMessageId: string;
8166
8222
  contentBlocks: {
8167
- type: "image" | "text";
8223
+ type: "text" | "image";
8168
8224
  text?: string | undefined;
8169
8225
  data?: string | undefined;
8170
8226
  mimeType?: string | undefined;
@@ -8213,14 +8269,14 @@ export declare const protocolMessageSchemas: {
8213
8269
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
8214
8270
  }, "strip", z.ZodTypeAny, {
8215
8271
  status: "running" | "pending" | "completed" | "failed";
8216
- name: string;
8217
8272
  id: string;
8273
+ name: string;
8218
8274
  input?: string | undefined;
8219
8275
  output?: string | undefined;
8220
8276
  createdAt?: number | undefined;
8221
8277
  }, {
8222
- name: string;
8223
8278
  id: string;
8279
+ name: string;
8224
8280
  status?: "running" | "pending" | "completed" | "failed" | undefined;
8225
8281
  input?: string | undefined;
8226
8282
  output?: string | undefined;
@@ -8261,8 +8317,8 @@ export declare const protocolMessageSchemas: {
8261
8317
  delta?: string | undefined;
8262
8318
  toolCall?: {
8263
8319
  status: "running" | "pending" | "completed" | "failed";
8264
- name: string;
8265
8320
  id: string;
8321
+ name: string;
8266
8322
  input?: string | undefined;
8267
8323
  output?: string | undefined;
8268
8324
  createdAt?: number | undefined;
@@ -8286,8 +8342,8 @@ export declare const protocolMessageSchemas: {
8286
8342
  agentSessionId?: string | undefined;
8287
8343
  delta?: string | undefined;
8288
8344
  toolCall?: {
8289
- name: string;
8290
8345
  id: string;
8346
+ name: string;
8291
8347
  status?: "running" | "pending" | "completed" | "failed" | undefined;
8292
8348
  input?: string | undefined;
8293
8349
  output?: string | undefined;
@@ -8395,9 +8451,9 @@ export declare const protocolMessageSchemas: {
8395
8451
  disabledReason: z.ZodOptional<z.ZodString>;
8396
8452
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
8397
8453
  }, "strip", z.ZodTypeAny, {
8398
- name: string;
8399
8454
  title: string;
8400
8455
  id: string;
8456
+ name: string;
8401
8457
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
8402
8458
  argsMode: "none" | "optional" | "required" | "raw";
8403
8459
  executionKind: "prompt" | "native" | "local_ui";
@@ -8408,9 +8464,9 @@ export declare const protocolMessageSchemas: {
8408
8464
  destructive?: boolean | undefined;
8409
8465
  disabledReason?: string | undefined;
8410
8466
  }, {
8411
- name: string;
8412
8467
  title: string;
8413
8468
  id: string;
8469
+ name: string;
8414
8470
  description?: string | undefined;
8415
8471
  provider?: "claude" | "codex" | "custom" | undefined;
8416
8472
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -8453,9 +8509,9 @@ export declare const protocolMessageSchemas: {
8453
8509
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8454
8510
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8455
8511
  commands?: {
8456
- name: string;
8457
8512
  title: string;
8458
8513
  id: string;
8514
+ name: string;
8459
8515
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
8460
8516
  argsMode: "none" | "optional" | "required" | "raw";
8461
8517
  executionKind: "prompt" | "native" | "local_ui";
@@ -8490,9 +8546,9 @@ export declare const protocolMessageSchemas: {
8490
8546
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8491
8547
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8492
8548
  commands?: {
8493
- name: string;
8494
8549
  title: string;
8495
8550
  id: string;
8551
+ name: string;
8496
8552
  description?: string | undefined;
8497
8553
  provider?: "claude" | "codex" | "custom" | undefined;
8498
8554
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -8550,9 +8606,9 @@ export declare const protocolMessageSchemas: {
8550
8606
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8551
8607
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8552
8608
  commands?: {
8553
- name: string;
8554
8609
  title: string;
8555
8610
  id: string;
8611
+ name: string;
8556
8612
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
8557
8613
  argsMode: "none" | "optional" | "required" | "raw";
8558
8614
  executionKind: "prompt" | "native" | "local_ui";
@@ -8598,9 +8654,9 @@ export declare const protocolMessageSchemas: {
8598
8654
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8599
8655
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8600
8656
  commands?: {
8601
- name: string;
8602
8657
  title: string;
8603
8658
  id: string;
8659
+ name: string;
8604
8660
  description?: string | undefined;
8605
8661
  provider?: "claude" | "codex" | "custom" | undefined;
8606
8662
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -8651,14 +8707,14 @@ export declare const protocolMessageSchemas: {
8651
8707
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
8652
8708
  }, "strip", z.ZodTypeAny, {
8653
8709
  status: "running" | "pending" | "completed" | "failed";
8654
- name: string;
8655
8710
  id: string;
8711
+ name: string;
8656
8712
  input?: string | undefined;
8657
8713
  output?: string | undefined;
8658
8714
  createdAt?: number | undefined;
8659
8715
  }, {
8660
- name: string;
8661
8716
  id: string;
8717
+ name: string;
8662
8718
  status?: "running" | "pending" | "completed" | "failed" | undefined;
8663
8719
  input?: string | undefined;
8664
8720
  output?: string | undefined;
@@ -8716,8 +8772,8 @@ export declare const protocolMessageSchemas: {
8716
8772
  }[];
8717
8773
  toolCalls: {
8718
8774
  status: "running" | "pending" | "completed" | "failed";
8719
- name: string;
8720
8775
  id: string;
8776
+ name: string;
8721
8777
  input?: string | undefined;
8722
8778
  output?: string | undefined;
8723
8779
  createdAt?: number | undefined;
@@ -8765,9 +8821,9 @@ export declare const protocolMessageSchemas: {
8765
8821
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8766
8822
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8767
8823
  commands?: {
8768
- name: string;
8769
8824
  title: string;
8770
8825
  id: string;
8826
+ name: string;
8771
8827
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
8772
8828
  argsMode: "none" | "optional" | "required" | "raw";
8773
8829
  executionKind: "prompt" | "native" | "local_ui";
@@ -8818,9 +8874,9 @@ export declare const protocolMessageSchemas: {
8818
8874
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8819
8875
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8820
8876
  commands?: {
8821
- name: string;
8822
8877
  title: string;
8823
8878
  id: string;
8879
+ name: string;
8824
8880
  description?: string | undefined;
8825
8881
  provider?: "claude" | "codex" | "custom" | undefined;
8826
8882
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -8851,8 +8907,8 @@ export declare const protocolMessageSchemas: {
8851
8907
  isStreaming?: boolean | undefined;
8852
8908
  }[] | undefined;
8853
8909
  toolCalls?: {
8854
- name: string;
8855
8910
  id: string;
8911
+ name: string;
8856
8912
  status?: "running" | "pending" | "completed" | "failed" | undefined;
8857
8913
  input?: string | undefined;
8858
8914
  output?: string | undefined;
@@ -8911,9 +8967,9 @@ export declare const protocolMessageSchemas: {
8911
8967
  disabledReason: z.ZodOptional<z.ZodString>;
8912
8968
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
8913
8969
  }, "strip", z.ZodTypeAny, {
8914
- name: string;
8915
8970
  title: string;
8916
8971
  id: string;
8972
+ name: string;
8917
8973
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
8918
8974
  argsMode: "none" | "optional" | "required" | "raw";
8919
8975
  executionKind: "prompt" | "native" | "local_ui";
@@ -8924,9 +8980,9 @@ export declare const protocolMessageSchemas: {
8924
8980
  destructive?: boolean | undefined;
8925
8981
  disabledReason?: string | undefined;
8926
8982
  }, {
8927
- name: string;
8928
8983
  title: string;
8929
8984
  id: string;
8985
+ name: string;
8930
8986
  description?: string | undefined;
8931
8987
  provider?: "claude" | "codex" | "custom" | undefined;
8932
8988
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -8969,9 +9025,9 @@ export declare const protocolMessageSchemas: {
8969
9025
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8970
9026
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8971
9027
  commands?: {
8972
- name: string;
8973
9028
  title: string;
8974
9029
  id: string;
9030
+ name: string;
8975
9031
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
8976
9032
  argsMode: "none" | "optional" | "required" | "raw";
8977
9033
  executionKind: "prompt" | "native" | "local_ui";
@@ -9006,9 +9062,9 @@ export declare const protocolMessageSchemas: {
9006
9062
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9007
9063
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9008
9064
  commands?: {
9009
- name: string;
9010
9065
  title: string;
9011
9066
  id: string;
9067
+ name: string;
9012
9068
  description?: string | undefined;
9013
9069
  provider?: "claude" | "codex" | "custom" | undefined;
9014
9070
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -9069,9 +9125,9 @@ export declare const protocolMessageSchemas: {
9069
9125
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9070
9126
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9071
9127
  commands?: {
9072
- name: string;
9073
9128
  title: string;
9074
9129
  id: string;
9130
+ name: string;
9075
9131
  source: "linkshell" | "custom" | "user" | "built_in" | "project";
9076
9132
  argsMode: "none" | "optional" | "required" | "raw";
9077
9133
  executionKind: "prompt" | "native" | "local_ui";
@@ -9117,9 +9173,9 @@ export declare const protocolMessageSchemas: {
9117
9173
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9118
9174
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9119
9175
  commands?: {
9120
- name: string;
9121
9176
  title: string;
9122
9177
  id: string;
9178
+ name: string;
9123
9179
  description?: string | undefined;
9124
9180
  provider?: "claude" | "codex" | "custom" | undefined;
9125
9181
  source?: "linkshell" | "custom" | "user" | "built_in" | "project" | undefined;
@@ -9235,12 +9291,12 @@ export declare const protocolMessageSchemas: {
9235
9291
  data: z.ZodOptional<z.ZodString>;
9236
9292
  mimeType: z.ZodOptional<z.ZodString>;
9237
9293
  }, "strip", z.ZodTypeAny, {
9238
- type: "image" | "text";
9294
+ type: "text" | "image";
9239
9295
  text?: string | undefined;
9240
9296
  data?: string | undefined;
9241
9297
  mimeType?: string | undefined;
9242
9298
  }, {
9243
- type: "image" | "text";
9299
+ type: "text" | "image";
9244
9300
  text?: string | undefined;
9245
9301
  data?: string | undefined;
9246
9302
  mimeType?: string | undefined;
@@ -9255,14 +9311,14 @@ export declare const protocolMessageSchemas: {
9255
9311
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
9256
9312
  }, "strip", z.ZodTypeAny, {
9257
9313
  status: "running" | "pending" | "completed" | "failed";
9258
- name: string;
9259
9314
  id: string;
9315
+ name: string;
9260
9316
  input?: string | undefined;
9261
9317
  output?: string | undefined;
9262
9318
  createdAt?: number | undefined;
9263
9319
  }, {
9264
- name: string;
9265
9320
  id: string;
9321
+ name: string;
9266
9322
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9267
9323
  input?: string | undefined;
9268
9324
  output?: string | undefined;
@@ -9583,7 +9639,7 @@ export declare const protocolMessageSchemas: {
9583
9639
  role?: "user" | "assistant" | "system" | undefined;
9584
9640
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9585
9641
  content?: {
9586
- type: "image" | "text";
9642
+ type: "text" | "image";
9587
9643
  text?: string | undefined;
9588
9644
  data?: string | undefined;
9589
9645
  mimeType?: string | undefined;
@@ -9591,8 +9647,8 @@ export declare const protocolMessageSchemas: {
9591
9647
  isStreaming?: boolean | undefined;
9592
9648
  toolCall?: {
9593
9649
  status: "running" | "pending" | "completed" | "failed";
9594
- name: string;
9595
9650
  id: string;
9651
+ name: string;
9596
9652
  input?: string | undefined;
9597
9653
  output?: string | undefined;
9598
9654
  createdAt?: number | undefined;
@@ -9683,15 +9739,15 @@ export declare const protocolMessageSchemas: {
9683
9739
  role?: "user" | "assistant" | "system" | undefined;
9684
9740
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9685
9741
  content?: {
9686
- type: "image" | "text";
9742
+ type: "text" | "image";
9687
9743
  text?: string | undefined;
9688
9744
  data?: string | undefined;
9689
9745
  mimeType?: string | undefined;
9690
9746
  }[] | undefined;
9691
9747
  isStreaming?: boolean | undefined;
9692
9748
  toolCall?: {
9693
- name: string;
9694
9749
  id: string;
9750
+ name: string;
9695
9751
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9696
9752
  input?: string | undefined;
9697
9753
  output?: string | undefined;
@@ -9801,7 +9857,7 @@ export declare const protocolMessageSchemas: {
9801
9857
  role?: "user" | "assistant" | "system" | undefined;
9802
9858
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9803
9859
  content?: {
9804
- type: "image" | "text";
9860
+ type: "text" | "image";
9805
9861
  text?: string | undefined;
9806
9862
  data?: string | undefined;
9807
9863
  mimeType?: string | undefined;
@@ -9809,8 +9865,8 @@ export declare const protocolMessageSchemas: {
9809
9865
  isStreaming?: boolean | undefined;
9810
9866
  toolCall?: {
9811
9867
  status: "running" | "pending" | "completed" | "failed";
9812
- name: string;
9813
9868
  id: string;
9869
+ name: string;
9814
9870
  input?: string | undefined;
9815
9871
  output?: string | undefined;
9816
9872
  createdAt?: number | undefined;
@@ -9919,15 +9975,15 @@ export declare const protocolMessageSchemas: {
9919
9975
  role?: "user" | "assistant" | "system" | undefined;
9920
9976
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9921
9977
  content?: {
9922
- type: "image" | "text";
9978
+ type: "text" | "image";
9923
9979
  text?: string | undefined;
9924
9980
  data?: string | undefined;
9925
9981
  mimeType?: string | undefined;
9926
9982
  }[] | undefined;
9927
9983
  isStreaming?: boolean | undefined;
9928
9984
  toolCall?: {
9929
- name: string;
9930
9985
  id: string;
9986
+ name: string;
9931
9987
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9932
9988
  input?: string | undefined;
9933
9989
  output?: string | undefined;
@@ -10083,12 +10139,12 @@ export declare const protocolMessageSchemas: {
10083
10139
  data: z.ZodOptional<z.ZodString>;
10084
10140
  mimeType: z.ZodOptional<z.ZodString>;
10085
10141
  }, "strip", z.ZodTypeAny, {
10086
- type: "image" | "text";
10142
+ type: "text" | "image";
10087
10143
  text?: string | undefined;
10088
10144
  data?: string | undefined;
10089
10145
  mimeType?: string | undefined;
10090
10146
  }, {
10091
- type: "image" | "text";
10147
+ type: "text" | "image";
10092
10148
  text?: string | undefined;
10093
10149
  data?: string | undefined;
10094
10150
  mimeType?: string | undefined;
@@ -10100,7 +10156,7 @@ export declare const protocolMessageSchemas: {
10100
10156
  }, "strip", z.ZodTypeAny, {
10101
10157
  clientMessageId: string;
10102
10158
  contentBlocks: {
10103
- type: "image" | "text";
10159
+ type: "text" | "image";
10104
10160
  text?: string | undefined;
10105
10161
  data?: string | undefined;
10106
10162
  mimeType?: string | undefined;
@@ -10113,7 +10169,7 @@ export declare const protocolMessageSchemas: {
10113
10169
  }, {
10114
10170
  clientMessageId: string;
10115
10171
  contentBlocks: {
10116
- type: "image" | "text";
10172
+ type: "text" | "image";
10117
10173
  text?: string | undefined;
10118
10174
  data?: string | undefined;
10119
10175
  mimeType?: string | undefined;
@@ -10200,12 +10256,12 @@ export declare const protocolMessageSchemas: {
10200
10256
  data: z.ZodOptional<z.ZodString>;
10201
10257
  mimeType: z.ZodOptional<z.ZodString>;
10202
10258
  }, "strip", z.ZodTypeAny, {
10203
- type: "image" | "text";
10259
+ type: "text" | "image";
10204
10260
  text?: string | undefined;
10205
10261
  data?: string | undefined;
10206
10262
  mimeType?: string | undefined;
10207
10263
  }, {
10208
- type: "image" | "text";
10264
+ type: "text" | "image";
10209
10265
  text?: string | undefined;
10210
10266
  data?: string | undefined;
10211
10267
  mimeType?: string | undefined;
@@ -10220,14 +10276,14 @@ export declare const protocolMessageSchemas: {
10220
10276
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
10221
10277
  }, "strip", z.ZodTypeAny, {
10222
10278
  status: "running" | "pending" | "completed" | "failed";
10223
- name: string;
10224
10279
  id: string;
10280
+ name: string;
10225
10281
  input?: string | undefined;
10226
10282
  output?: string | undefined;
10227
10283
  createdAt?: number | undefined;
10228
10284
  }, {
10229
- name: string;
10230
10285
  id: string;
10286
+ name: string;
10231
10287
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10232
10288
  input?: string | undefined;
10233
10289
  output?: string | undefined;
@@ -10548,7 +10604,7 @@ export declare const protocolMessageSchemas: {
10548
10604
  role?: "user" | "assistant" | "system" | undefined;
10549
10605
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10550
10606
  content?: {
10551
- type: "image" | "text";
10607
+ type: "text" | "image";
10552
10608
  text?: string | undefined;
10553
10609
  data?: string | undefined;
10554
10610
  mimeType?: string | undefined;
@@ -10556,8 +10612,8 @@ export declare const protocolMessageSchemas: {
10556
10612
  isStreaming?: boolean | undefined;
10557
10613
  toolCall?: {
10558
10614
  status: "running" | "pending" | "completed" | "failed";
10559
- name: string;
10560
10615
  id: string;
10616
+ name: string;
10561
10617
  input?: string | undefined;
10562
10618
  output?: string | undefined;
10563
10619
  createdAt?: number | undefined;
@@ -10648,15 +10704,15 @@ export declare const protocolMessageSchemas: {
10648
10704
  role?: "user" | "assistant" | "system" | undefined;
10649
10705
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10650
10706
  content?: {
10651
- type: "image" | "text";
10707
+ type: "text" | "image";
10652
10708
  text?: string | undefined;
10653
10709
  data?: string | undefined;
10654
10710
  mimeType?: string | undefined;
10655
10711
  }[] | undefined;
10656
10712
  isStreaming?: boolean | undefined;
10657
10713
  toolCall?: {
10658
- name: string;
10659
10714
  id: string;
10715
+ name: string;
10660
10716
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10661
10717
  input?: string | undefined;
10662
10718
  output?: string | undefined;
@@ -10757,7 +10813,7 @@ export declare const protocolMessageSchemas: {
10757
10813
  role?: "user" | "assistant" | "system" | undefined;
10758
10814
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10759
10815
  content?: {
10760
- type: "image" | "text";
10816
+ type: "text" | "image";
10761
10817
  text?: string | undefined;
10762
10818
  data?: string | undefined;
10763
10819
  mimeType?: string | undefined;
@@ -10765,8 +10821,8 @@ export declare const protocolMessageSchemas: {
10765
10821
  isStreaming?: boolean | undefined;
10766
10822
  toolCall?: {
10767
10823
  status: "running" | "pending" | "completed" | "failed";
10768
- name: string;
10769
10824
  id: string;
10825
+ name: string;
10770
10826
  input?: string | undefined;
10771
10827
  output?: string | undefined;
10772
10828
  createdAt?: number | undefined;
@@ -10864,15 +10920,15 @@ export declare const protocolMessageSchemas: {
10864
10920
  role?: "user" | "assistant" | "system" | undefined;
10865
10921
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10866
10922
  content?: {
10867
- type: "image" | "text";
10923
+ type: "text" | "image";
10868
10924
  text?: string | undefined;
10869
10925
  data?: string | undefined;
10870
10926
  mimeType?: string | undefined;
10871
10927
  }[] | undefined;
10872
10928
  isStreaming?: boolean | undefined;
10873
10929
  toolCall?: {
10874
- name: string;
10875
10930
  id: string;
10931
+ name: string;
10876
10932
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10877
10933
  input?: string | undefined;
10878
10934
  output?: string | undefined;
@@ -11020,12 +11076,12 @@ export declare const protocolMessageSchemas: {
11020
11076
  data: z.ZodOptional<z.ZodString>;
11021
11077
  mimeType: z.ZodOptional<z.ZodString>;
11022
11078
  }, "strip", z.ZodTypeAny, {
11023
- type: "image" | "text";
11079
+ type: "text" | "image";
11024
11080
  text?: string | undefined;
11025
11081
  data?: string | undefined;
11026
11082
  mimeType?: string | undefined;
11027
11083
  }, {
11028
- type: "image" | "text";
11084
+ type: "text" | "image";
11029
11085
  text?: string | undefined;
11030
11086
  data?: string | undefined;
11031
11087
  mimeType?: string | undefined;
@@ -11040,14 +11096,14 @@ export declare const protocolMessageSchemas: {
11040
11096
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
11041
11097
  }, "strip", z.ZodTypeAny, {
11042
11098
  status: "running" | "pending" | "completed" | "failed";
11043
- name: string;
11044
11099
  id: string;
11100
+ name: string;
11045
11101
  input?: string | undefined;
11046
11102
  output?: string | undefined;
11047
11103
  createdAt?: number | undefined;
11048
11104
  }, {
11049
- name: string;
11050
11105
  id: string;
11106
+ name: string;
11051
11107
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11052
11108
  input?: string | undefined;
11053
11109
  output?: string | undefined;
@@ -11368,7 +11424,7 @@ export declare const protocolMessageSchemas: {
11368
11424
  role?: "user" | "assistant" | "system" | undefined;
11369
11425
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11370
11426
  content?: {
11371
- type: "image" | "text";
11427
+ type: "text" | "image";
11372
11428
  text?: string | undefined;
11373
11429
  data?: string | undefined;
11374
11430
  mimeType?: string | undefined;
@@ -11376,8 +11432,8 @@ export declare const protocolMessageSchemas: {
11376
11432
  isStreaming?: boolean | undefined;
11377
11433
  toolCall?: {
11378
11434
  status: "running" | "pending" | "completed" | "failed";
11379
- name: string;
11380
11435
  id: string;
11436
+ name: string;
11381
11437
  input?: string | undefined;
11382
11438
  output?: string | undefined;
11383
11439
  createdAt?: number | undefined;
@@ -11468,15 +11524,15 @@ export declare const protocolMessageSchemas: {
11468
11524
  role?: "user" | "assistant" | "system" | undefined;
11469
11525
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11470
11526
  content?: {
11471
- type: "image" | "text";
11527
+ type: "text" | "image";
11472
11528
  text?: string | undefined;
11473
11529
  data?: string | undefined;
11474
11530
  mimeType?: string | undefined;
11475
11531
  }[] | undefined;
11476
11532
  isStreaming?: boolean | undefined;
11477
11533
  toolCall?: {
11478
- name: string;
11479
11534
  id: string;
11535
+ name: string;
11480
11536
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11481
11537
  input?: string | undefined;
11482
11538
  output?: string | undefined;
@@ -11587,7 +11643,7 @@ export declare const protocolMessageSchemas: {
11587
11643
  role?: "user" | "assistant" | "system" | undefined;
11588
11644
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11589
11645
  content?: {
11590
- type: "image" | "text";
11646
+ type: "text" | "image";
11591
11647
  text?: string | undefined;
11592
11648
  data?: string | undefined;
11593
11649
  mimeType?: string | undefined;
@@ -11595,8 +11651,8 @@ export declare const protocolMessageSchemas: {
11595
11651
  isStreaming?: boolean | undefined;
11596
11652
  toolCall?: {
11597
11653
  status: "running" | "pending" | "completed" | "failed";
11598
- name: string;
11599
11654
  id: string;
11655
+ name: string;
11600
11656
  input?: string | undefined;
11601
11657
  output?: string | undefined;
11602
11658
  createdAt?: number | undefined;
@@ -11709,15 +11765,15 @@ export declare const protocolMessageSchemas: {
11709
11765
  role?: "user" | "assistant" | "system" | undefined;
11710
11766
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11711
11767
  content?: {
11712
- type: "image" | "text";
11768
+ type: "text" | "image";
11713
11769
  text?: string | undefined;
11714
11770
  data?: string | undefined;
11715
11771
  mimeType?: string | undefined;
11716
11772
  }[] | undefined;
11717
11773
  isStreaming?: boolean | undefined;
11718
11774
  toolCall?: {
11719
- name: string;
11720
11775
  id: string;
11776
+ name: string;
11721
11777
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11722
11778
  input?: string | undefined;
11723
11779
  output?: string | undefined;
@@ -11837,12 +11893,12 @@ export declare const protocolMessageSchemas: {
11837
11893
  data: z.ZodOptional<z.ZodString>;
11838
11894
  mimeType: z.ZodOptional<z.ZodString>;
11839
11895
  }, "strip", z.ZodTypeAny, {
11840
- type: "image" | "text";
11896
+ type: "text" | "image";
11841
11897
  text?: string | undefined;
11842
11898
  data?: string | undefined;
11843
11899
  mimeType?: string | undefined;
11844
11900
  }, {
11845
- type: "image" | "text";
11901
+ type: "text" | "image";
11846
11902
  text?: string | undefined;
11847
11903
  data?: string | undefined;
11848
11904
  mimeType?: string | undefined;
@@ -11857,14 +11913,14 @@ export declare const protocolMessageSchemas: {
11857
11913
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
11858
11914
  }, "strip", z.ZodTypeAny, {
11859
11915
  status: "running" | "pending" | "completed" | "failed";
11860
- name: string;
11861
11916
  id: string;
11917
+ name: string;
11862
11918
  input?: string | undefined;
11863
11919
  output?: string | undefined;
11864
11920
  createdAt?: number | undefined;
11865
11921
  }, {
11866
- name: string;
11867
11922
  id: string;
11923
+ name: string;
11868
11924
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11869
11925
  input?: string | undefined;
11870
11926
  output?: string | undefined;
@@ -12185,7 +12241,7 @@ export declare const protocolMessageSchemas: {
12185
12241
  role?: "user" | "assistant" | "system" | undefined;
12186
12242
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12187
12243
  content?: {
12188
- type: "image" | "text";
12244
+ type: "text" | "image";
12189
12245
  text?: string | undefined;
12190
12246
  data?: string | undefined;
12191
12247
  mimeType?: string | undefined;
@@ -12193,8 +12249,8 @@ export declare const protocolMessageSchemas: {
12193
12249
  isStreaming?: boolean | undefined;
12194
12250
  toolCall?: {
12195
12251
  status: "running" | "pending" | "completed" | "failed";
12196
- name: string;
12197
12252
  id: string;
12253
+ name: string;
12198
12254
  input?: string | undefined;
12199
12255
  output?: string | undefined;
12200
12256
  createdAt?: number | undefined;
@@ -12285,15 +12341,15 @@ export declare const protocolMessageSchemas: {
12285
12341
  role?: "user" | "assistant" | "system" | undefined;
12286
12342
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12287
12343
  content?: {
12288
- type: "image" | "text";
12344
+ type: "text" | "image";
12289
12345
  text?: string | undefined;
12290
12346
  data?: string | undefined;
12291
12347
  mimeType?: string | undefined;
12292
12348
  }[] | undefined;
12293
12349
  isStreaming?: boolean | undefined;
12294
12350
  toolCall?: {
12295
- name: string;
12296
12351
  id: string;
12352
+ name: string;
12297
12353
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12298
12354
  input?: string | undefined;
12299
12355
  output?: string | undefined;
@@ -12360,12 +12416,12 @@ export declare const protocolMessageSchemas: {
12360
12416
  data: z.ZodOptional<z.ZodString>;
12361
12417
  mimeType: z.ZodOptional<z.ZodString>;
12362
12418
  }, "strip", z.ZodTypeAny, {
12363
- type: "image" | "text";
12419
+ type: "text" | "image";
12364
12420
  text?: string | undefined;
12365
12421
  data?: string | undefined;
12366
12422
  mimeType?: string | undefined;
12367
12423
  }, {
12368
- type: "image" | "text";
12424
+ type: "text" | "image";
12369
12425
  text?: string | undefined;
12370
12426
  data?: string | undefined;
12371
12427
  mimeType?: string | undefined;
@@ -12382,14 +12438,14 @@ export declare const protocolMessageSchemas: {
12382
12438
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
12383
12439
  }, "strip", z.ZodTypeAny, {
12384
12440
  status: "running" | "pending" | "completed" | "failed";
12385
- name: string;
12386
12441
  id: string;
12442
+ name: string;
12387
12443
  input?: string | undefined;
12388
12444
  output?: string | undefined;
12389
12445
  createdAt?: number | undefined;
12390
12446
  }, {
12391
- name: string;
12392
12447
  id: string;
12448
+ name: string;
12393
12449
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12394
12450
  input?: string | undefined;
12395
12451
  output?: string | undefined;
@@ -12704,7 +12760,7 @@ export declare const protocolMessageSchemas: {
12704
12760
  role?: "user" | "assistant" | "system" | undefined;
12705
12761
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12706
12762
  content?: {
12707
- type: "image" | "text";
12763
+ type: "text" | "image";
12708
12764
  text?: string | undefined;
12709
12765
  data?: string | undefined;
12710
12766
  mimeType?: string | undefined;
@@ -12712,8 +12768,8 @@ export declare const protocolMessageSchemas: {
12712
12768
  isStreaming?: boolean | undefined;
12713
12769
  toolCall?: {
12714
12770
  status: "running" | "pending" | "completed" | "failed";
12715
- name: string;
12716
12771
  id: string;
12772
+ name: string;
12717
12773
  input?: string | undefined;
12718
12774
  output?: string | undefined;
12719
12775
  createdAt?: number | undefined;
@@ -12800,15 +12856,15 @@ export declare const protocolMessageSchemas: {
12800
12856
  role?: "user" | "assistant" | "system" | undefined;
12801
12857
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12802
12858
  content?: {
12803
- type: "image" | "text";
12859
+ type: "text" | "image";
12804
12860
  text?: string | undefined;
12805
12861
  data?: string | undefined;
12806
12862
  mimeType?: string | undefined;
12807
12863
  }[] | undefined;
12808
12864
  isStreaming?: boolean | undefined;
12809
12865
  toolCall?: {
12810
- name: string;
12811
12866
  id: string;
12867
+ name: string;
12812
12868
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12813
12869
  input?: string | undefined;
12814
12870
  output?: string | undefined;
@@ -12903,7 +12959,7 @@ export declare const protocolMessageSchemas: {
12903
12959
  role?: "user" | "assistant" | "system" | undefined;
12904
12960
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12905
12961
  content?: {
12906
- type: "image" | "text";
12962
+ type: "text" | "image";
12907
12963
  text?: string | undefined;
12908
12964
  data?: string | undefined;
12909
12965
  mimeType?: string | undefined;
@@ -12911,8 +12967,8 @@ export declare const protocolMessageSchemas: {
12911
12967
  isStreaming?: boolean | undefined;
12912
12968
  toolCall?: {
12913
12969
  status: "running" | "pending" | "completed" | "failed";
12914
- name: string;
12915
12970
  id: string;
12971
+ name: string;
12916
12972
  input?: string | undefined;
12917
12973
  output?: string | undefined;
12918
12974
  createdAt?: number | undefined;
@@ -13000,7 +13056,7 @@ export declare const protocolMessageSchemas: {
13000
13056
  role?: "user" | "assistant" | "system" | undefined;
13001
13057
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13002
13058
  content?: {
13003
- type: "image" | "text";
13059
+ type: "text" | "image";
13004
13060
  text?: string | undefined;
13005
13061
  data?: string | undefined;
13006
13062
  mimeType?: string | undefined;
@@ -13008,8 +13064,8 @@ export declare const protocolMessageSchemas: {
13008
13064
  isStreaming?: boolean | undefined;
13009
13065
  toolCall?: {
13010
13066
  status: "running" | "pending" | "completed" | "failed";
13011
- name: string;
13012
13067
  id: string;
13068
+ name: string;
13013
13069
  input?: string | undefined;
13014
13070
  output?: string | undefined;
13015
13071
  createdAt?: number | undefined;
@@ -13119,15 +13175,15 @@ export declare const protocolMessageSchemas: {
13119
13175
  role?: "user" | "assistant" | "system" | undefined;
13120
13176
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13121
13177
  content?: {
13122
- type: "image" | "text";
13178
+ type: "text" | "image";
13123
13179
  text?: string | undefined;
13124
13180
  data?: string | undefined;
13125
13181
  mimeType?: string | undefined;
13126
13182
  }[] | undefined;
13127
13183
  isStreaming?: boolean | undefined;
13128
13184
  toolCall?: {
13129
- name: string;
13130
13185
  id: string;
13186
+ name: string;
13131
13187
  status?: "running" | "pending" | "completed" | "failed" | undefined;
13132
13188
  input?: string | undefined;
13133
13189
  output?: string | undefined;
@@ -13216,15 +13272,15 @@ export declare const protocolMessageSchemas: {
13216
13272
  role?: "user" | "assistant" | "system" | undefined;
13217
13273
  kind?: "plan" | "thinking" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13218
13274
  content?: {
13219
- type: "image" | "text";
13275
+ type: "text" | "image";
13220
13276
  text?: string | undefined;
13221
13277
  data?: string | undefined;
13222
13278
  mimeType?: string | undefined;
13223
13279
  }[] | undefined;
13224
13280
  isStreaming?: boolean | undefined;
13225
13281
  toolCall?: {
13226
- name: string;
13227
13282
  id: string;
13283
+ name: string;
13228
13284
  status?: "running" | "pending" | "completed" | "failed" | undefined;
13229
13285
  input?: string | undefined;
13230
13286
  output?: string | undefined;