linkshell-cli 0.2.68 → 0.2.70

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.
@@ -89,20 +89,20 @@ export declare const sessionConnectPayloadSchema: z.ZodObject<{
89
89
  }, "strip", z.ZodTypeAny, {
90
90
  role: "host" | "client";
91
91
  clientName: string;
92
+ cwd?: string | undefined;
92
93
  provider?: "claude" | "codex" | "custom" | undefined;
93
94
  protocolVersion?: number | undefined;
94
95
  hostname?: string | undefined;
95
96
  platform?: string | undefined;
96
- cwd?: string | undefined;
97
97
  projectName?: string | undefined;
98
98
  }, {
99
99
  role: "host" | "client";
100
100
  clientName: string;
101
+ cwd?: string | undefined;
101
102
  provider?: "claude" | "codex" | "custom" | undefined;
102
103
  protocolVersion?: number | undefined;
103
104
  hostname?: string | undefined;
104
105
  platform?: string | undefined;
105
- cwd?: string | undefined;
106
106
  projectName?: string | undefined;
107
107
  }>;
108
108
  export declare const terminalExitPayloadSchema: z.ZodObject<{
@@ -299,15 +299,15 @@ export declare const terminalInfoSchema: z.ZodObject<{
299
299
  status: z.ZodEnum<["running", "exited"]>;
300
300
  }, "strip", z.ZodTypeAny, {
301
301
  status: "running" | "exited";
302
+ cwd: string;
302
303
  terminalId: string;
303
304
  provider: string;
304
- cwd: string;
305
305
  projectName: string;
306
306
  }, {
307
307
  status: "running" | "exited";
308
+ cwd: string;
308
309
  terminalId: string;
309
310
  provider: string;
310
- cwd: string;
311
311
  projectName: string;
312
312
  }>;
313
313
  export declare const terminalListPayloadSchema: z.ZodObject<{
@@ -319,31 +319,31 @@ export declare const terminalListPayloadSchema: z.ZodObject<{
319
319
  status: z.ZodEnum<["running", "exited"]>;
320
320
  }, "strip", z.ZodTypeAny, {
321
321
  status: "running" | "exited";
322
+ cwd: string;
322
323
  terminalId: string;
323
324
  provider: string;
324
- cwd: string;
325
325
  projectName: string;
326
326
  }, {
327
327
  status: "running" | "exited";
328
+ cwd: string;
328
329
  terminalId: string;
329
330
  provider: string;
330
- cwd: string;
331
331
  projectName: string;
332
332
  }>, "many">;
333
333
  }, "strip", z.ZodTypeAny, {
334
334
  terminals: {
335
335
  status: "running" | "exited";
336
+ cwd: string;
336
337
  terminalId: string;
337
338
  provider: string;
338
- cwd: string;
339
339
  projectName: string;
340
340
  }[];
341
341
  }, {
342
342
  terminals: {
343
343
  status: "running" | "exited";
344
+ cwd: string;
344
345
  terminalId: string;
345
346
  provider: string;
346
- cwd: string;
347
347
  projectName: string;
348
348
  }[];
349
349
  }>;
@@ -353,13 +353,13 @@ export declare const terminalSpawnedPayloadSchema: z.ZodObject<{
353
353
  projectName: z.ZodString;
354
354
  provider: z.ZodOptional<z.ZodString>;
355
355
  }, "strip", z.ZodTypeAny, {
356
- terminalId: string;
357
356
  cwd: string;
357
+ terminalId: string;
358
358
  projectName: string;
359
359
  provider?: string | undefined;
360
360
  }, {
361
- terminalId: string;
362
361
  cwd: string;
362
+ terminalId: string;
363
363
  projectName: string;
364
364
  provider?: string | undefined;
365
365
  }>;
@@ -444,45 +444,45 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
444
444
  permissionRequest: z.ZodString;
445
445
  timestamp: z.ZodNumber;
446
446
  }, "strip", z.ZodTypeAny, {
447
- timestamp: number;
448
447
  toolName: string;
449
448
  toolInput: string;
449
+ timestamp: number;
450
450
  permissionRequest: string;
451
451
  requestId: string;
452
452
  }, {
453
- timestamp: number;
454
453
  toolName: string;
455
454
  toolInput: string;
455
+ timestamp: number;
456
456
  permissionRequest: string;
457
457
  requestId: string;
458
458
  }>>;
459
459
  pendingPermissionCount: z.ZodOptional<z.ZodNumber>;
460
460
  }, "strip", z.ZodTypeAny, {
461
461
  phase: "error" | "idle" | "thinking" | "tool_use" | "outputting" | "waiting";
462
- seq?: number | undefined;
463
462
  toolName?: string | undefined;
464
463
  toolInput?: string | undefined;
464
+ seq?: number | undefined;
465
465
  permissionRequest?: string | undefined;
466
466
  summary?: string | undefined;
467
467
  topPermission?: {
468
- timestamp: number;
469
468
  toolName: string;
470
469
  toolInput: string;
470
+ timestamp: number;
471
471
  permissionRequest: string;
472
472
  requestId: string;
473
473
  } | undefined;
474
474
  pendingPermissionCount?: number | undefined;
475
475
  }, {
476
476
  phase: "error" | "idle" | "thinking" | "tool_use" | "outputting" | "waiting";
477
- seq?: number | undefined;
478
477
  toolName?: string | undefined;
479
478
  toolInput?: string | undefined;
479
+ seq?: number | undefined;
480
480
  permissionRequest?: string | undefined;
481
481
  summary?: string | undefined;
482
482
  topPermission?: {
483
- timestamp: number;
484
483
  toolName: string;
485
484
  toolInput: string;
485
+ timestamp: number;
486
486
  permissionRequest: string;
487
487
  requestId: string;
488
488
  } | undefined;
@@ -527,16 +527,16 @@ export declare const tunnelRequestPayloadSchema: z.ZodObject<{
527
527
  port: z.ZodNumber;
528
528
  }, "strip", z.ZodTypeAny, {
529
529
  port: number;
530
+ url: string;
530
531
  requestId: string;
531
532
  method: string;
532
- url: string;
533
533
  headers: Record<string, string>;
534
534
  body: string | null;
535
535
  }, {
536
536
  port: number;
537
+ url: string;
537
538
  requestId: string;
538
539
  method: string;
539
- url: string;
540
540
  headers: Record<string, string>;
541
541
  body: string | null;
542
542
  }>;
@@ -603,20 +603,22 @@ export declare const terminalHistoryResponsePayloadSchema: z.ZodObject<{
603
603
  shell?: string | undefined;
604
604
  }>;
605
605
  export declare const agentProviderSchema: z.ZodEnum<["codex", "claude", "custom"]>;
606
+ export declare const agentReasoningEffortSchema: z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>;
607
+ export declare const agentPermissionModeSchema: z.ZodEnum<["read_only", "workspace_write", "full_access"]>;
606
608
  export declare const agentContentBlockSchema: z.ZodObject<{
607
609
  type: z.ZodEnum<["text", "image"]>;
608
610
  text: z.ZodOptional<z.ZodString>;
609
611
  data: z.ZodOptional<z.ZodString>;
610
612
  mimeType: z.ZodOptional<z.ZodString>;
611
613
  }, "strip", z.ZodTypeAny, {
612
- type: "text" | "image";
613
- data?: string | undefined;
614
+ type: "image" | "text";
614
615
  text?: string | undefined;
616
+ data?: string | undefined;
615
617
  mimeType?: string | undefined;
616
618
  }, {
617
- type: "text" | "image";
618
- data?: string | undefined;
619
+ type: "image" | "text";
619
620
  text?: string | undefined;
621
+ data?: string | undefined;
620
622
  mimeType?: string | undefined;
621
623
  }>;
622
624
  export declare const agentMessageSchema: z.ZodObject<{
@@ -687,13 +689,13 @@ export declare const agentPermissionSchema: z.ZodObject<{
687
689
  context?: string | undefined;
688
690
  }, {
689
691
  requestId: string;
692
+ toolName?: string | undefined;
693
+ toolInput?: string | undefined;
690
694
  options?: {
691
695
  id: string;
692
696
  label: string;
693
697
  kind?: "allow" | "deny" | "other" | undefined;
694
698
  }[] | undefined;
695
- toolName?: string | undefined;
696
- toolInput?: string | undefined;
697
699
  context?: string | undefined;
698
700
  }>;
699
701
  export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
@@ -739,12 +741,12 @@ export declare const agentSessionNewPayloadSchema: z.ZodObject<{
739
741
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
740
742
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
741
743
  }, "strip", z.ZodTypeAny, {
742
- provider?: "claude" | "codex" | "custom" | undefined;
743
744
  cwd?: string | undefined;
745
+ provider?: "claude" | "codex" | "custom" | undefined;
744
746
  mcpServers?: Record<string, unknown> | undefined;
745
747
  }, {
746
- provider?: "claude" | "codex" | "custom" | undefined;
747
748
  cwd?: string | undefined;
749
+ provider?: "claude" | "codex" | "custom" | undefined;
748
750
  mcpServers?: Record<string, unknown> | undefined;
749
751
  }>;
750
752
  export declare const agentSessionLoadPayloadSchema: z.ZodObject<{
@@ -767,34 +769,43 @@ export declare const agentPromptPayloadSchema: z.ZodObject<{
767
769
  data: z.ZodOptional<z.ZodString>;
768
770
  mimeType: z.ZodOptional<z.ZodString>;
769
771
  }, "strip", z.ZodTypeAny, {
770
- type: "text" | "image";
771
- data?: string | undefined;
772
+ type: "image" | "text";
772
773
  text?: string | undefined;
774
+ data?: string | undefined;
773
775
  mimeType?: string | undefined;
774
776
  }, {
775
- type: "text" | "image";
776
- data?: string | undefined;
777
+ type: "image" | "text";
777
778
  text?: string | undefined;
779
+ data?: string | undefined;
778
780
  mimeType?: string | undefined;
779
781
  }>, "many">;
782
+ model: z.ZodOptional<z.ZodString>;
783
+ reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
784
+ permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
780
785
  }, "strip", z.ZodTypeAny, {
781
786
  clientMessageId: string;
782
787
  contentBlocks: {
783
- type: "text" | "image";
784
- data?: string | undefined;
788
+ type: "image" | "text";
785
789
  text?: string | undefined;
790
+ data?: string | undefined;
786
791
  mimeType?: string | undefined;
787
792
  }[];
788
793
  agentSessionId?: string | undefined;
794
+ model?: string | undefined;
795
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
796
+ permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
789
797
  }, {
790
798
  clientMessageId: string;
791
799
  contentBlocks: {
792
- type: "text" | "image";
793
- data?: string | undefined;
800
+ type: "image" | "text";
794
801
  text?: string | undefined;
802
+ data?: string | undefined;
795
803
  mimeType?: string | undefined;
796
804
  }[];
797
805
  agentSessionId?: string | undefined;
806
+ model?: string | undefined;
807
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
808
+ permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
798
809
  }>;
799
810
  export declare const agentCancelPayloadSchema: z.ZodObject<{
800
811
  agentSessionId: z.ZodOptional<z.ZodString>;
@@ -851,12 +862,12 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
851
862
  status: z.ZodEnum<["pending", "in_progress", "completed"]>;
852
863
  }, "strip", z.ZodTypeAny, {
853
864
  status: "pending" | "completed" | "in_progress";
854
- id: string;
855
865
  text: string;
866
+ id: string;
856
867
  }, {
857
868
  status: "pending" | "completed" | "in_progress";
858
- id: string;
859
869
  text: string;
870
+ id: string;
860
871
  }>, "many">>;
861
872
  status: z.ZodOptional<z.ZodEnum<["idle", "running", "waiting_permission", "error"]>>;
862
873
  error: z.ZodOptional<z.ZodString>;
@@ -873,8 +884,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
873
884
  } | undefined;
874
885
  plan?: {
875
886
  status: "pending" | "completed" | "in_progress";
876
- id: string;
877
887
  text: string;
888
+ id: string;
878
889
  }[] | undefined;
879
890
  agentSessionId?: string | undefined;
880
891
  delta?: string | undefined;
@@ -898,8 +909,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
898
909
  } | undefined;
899
910
  plan?: {
900
911
  status: "pending" | "completed" | "in_progress";
901
- id: string;
902
912
  text: string;
913
+ id: string;
903
914
  }[] | undefined;
904
915
  agentSessionId?: string | undefined;
905
916
  delta?: string | undefined;
@@ -944,13 +955,13 @@ export declare const agentPermissionRequestPayloadSchema: z.ZodObject<{
944
955
  context?: string | undefined;
945
956
  }, {
946
957
  requestId: string;
958
+ toolName?: string | undefined;
959
+ toolInput?: string | undefined;
947
960
  options?: {
948
961
  id: string;
949
962
  label: string;
950
963
  kind?: "allow" | "deny" | "other" | undefined;
951
964
  }[] | undefined;
952
- toolName?: string | undefined;
953
- toolInput?: string | undefined;
954
965
  agentSessionId?: string | undefined;
955
966
  context?: string | undefined;
956
967
  }>;
@@ -1077,13 +1088,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1077
1088
  context?: string | undefined;
1078
1089
  }, {
1079
1090
  requestId: string;
1091
+ toolName?: string | undefined;
1092
+ toolInput?: string | undefined;
1080
1093
  options?: {
1081
1094
  id: string;
1082
1095
  label: string;
1083
1096
  kind?: "allow" | "deny" | "other" | undefined;
1084
1097
  }[] | undefined;
1085
- toolName?: string | undefined;
1086
- toolInput?: string | undefined;
1087
1098
  context?: string | undefined;
1088
1099
  }>, "many">>;
1089
1100
  status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
@@ -1163,13 +1174,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1163
1174
  }[] | undefined;
1164
1175
  pendingPermissions?: {
1165
1176
  requestId: string;
1177
+ toolName?: string | undefined;
1178
+ toolInput?: string | undefined;
1166
1179
  options?: {
1167
1180
  id: string;
1168
1181
  label: string;
1169
1182
  kind?: "allow" | "deny" | "other" | undefined;
1170
1183
  }[] | undefined;
1171
- toolName?: string | undefined;
1172
- toolInput?: string | undefined;
1173
1184
  context?: string | undefined;
1174
1185
  }[] | undefined;
1175
1186
  }>;
@@ -1186,20 +1197,20 @@ export declare const protocolMessageSchemas: {
1186
1197
  }, "strip", z.ZodTypeAny, {
1187
1198
  role: "host" | "client";
1188
1199
  clientName: string;
1200
+ cwd?: string | undefined;
1189
1201
  provider?: "claude" | "codex" | "custom" | undefined;
1190
1202
  protocolVersion?: number | undefined;
1191
1203
  hostname?: string | undefined;
1192
1204
  platform?: string | undefined;
1193
- cwd?: string | undefined;
1194
1205
  projectName?: string | undefined;
1195
1206
  }, {
1196
1207
  role: "host" | "client";
1197
1208
  clientName: string;
1209
+ cwd?: string | undefined;
1198
1210
  provider?: "claude" | "codex" | "custom" | undefined;
1199
1211
  protocolVersion?: number | undefined;
1200
1212
  hostname?: string | undefined;
1201
1213
  platform?: string | undefined;
1202
- cwd?: string | undefined;
1203
1214
  projectName?: string | undefined;
1204
1215
  }>;
1205
1216
  readonly "session.ack": z.ZodObject<{
@@ -1450,13 +1461,13 @@ export declare const protocolMessageSchemas: {
1450
1461
  projectName: z.ZodString;
1451
1462
  provider: z.ZodOptional<z.ZodString>;
1452
1463
  }, "strip", z.ZodTypeAny, {
1453
- terminalId: string;
1454
1464
  cwd: string;
1465
+ terminalId: string;
1455
1466
  projectName: string;
1456
1467
  provider?: string | undefined;
1457
1468
  }, {
1458
- terminalId: string;
1459
1469
  cwd: string;
1470
+ terminalId: string;
1460
1471
  projectName: string;
1461
1472
  provider?: string | undefined;
1462
1473
  }>;
@@ -1469,31 +1480,31 @@ export declare const protocolMessageSchemas: {
1469
1480
  status: z.ZodEnum<["running", "exited"]>;
1470
1481
  }, "strip", z.ZodTypeAny, {
1471
1482
  status: "running" | "exited";
1483
+ cwd: string;
1472
1484
  terminalId: string;
1473
1485
  provider: string;
1474
- cwd: string;
1475
1486
  projectName: string;
1476
1487
  }, {
1477
1488
  status: "running" | "exited";
1489
+ cwd: string;
1478
1490
  terminalId: string;
1479
1491
  provider: string;
1480
- cwd: string;
1481
1492
  projectName: string;
1482
1493
  }>, "many">;
1483
1494
  }, "strip", z.ZodTypeAny, {
1484
1495
  terminals: {
1485
1496
  status: "running" | "exited";
1497
+ cwd: string;
1486
1498
  terminalId: string;
1487
1499
  provider: string;
1488
- cwd: string;
1489
1500
  projectName: string;
1490
1501
  }[];
1491
1502
  }, {
1492
1503
  terminals: {
1493
1504
  status: "running" | "exited";
1505
+ cwd: string;
1494
1506
  terminalId: string;
1495
1507
  provider: string;
1496
- cwd: string;
1497
1508
  projectName: string;
1498
1509
  }[];
1499
1510
  }>;
@@ -1565,45 +1576,45 @@ export declare const protocolMessageSchemas: {
1565
1576
  permissionRequest: z.ZodString;
1566
1577
  timestamp: z.ZodNumber;
1567
1578
  }, "strip", z.ZodTypeAny, {
1568
- timestamp: number;
1569
1579
  toolName: string;
1570
1580
  toolInput: string;
1581
+ timestamp: number;
1571
1582
  permissionRequest: string;
1572
1583
  requestId: string;
1573
1584
  }, {
1574
- timestamp: number;
1575
1585
  toolName: string;
1576
1586
  toolInput: string;
1587
+ timestamp: number;
1577
1588
  permissionRequest: string;
1578
1589
  requestId: string;
1579
1590
  }>>;
1580
1591
  pendingPermissionCount: z.ZodOptional<z.ZodNumber>;
1581
1592
  }, "strip", z.ZodTypeAny, {
1582
1593
  phase: "error" | "idle" | "thinking" | "tool_use" | "outputting" | "waiting";
1583
- seq?: number | undefined;
1584
1594
  toolName?: string | undefined;
1585
1595
  toolInput?: string | undefined;
1596
+ seq?: number | undefined;
1586
1597
  permissionRequest?: string | undefined;
1587
1598
  summary?: string | undefined;
1588
1599
  topPermission?: {
1589
- timestamp: number;
1590
1600
  toolName: string;
1591
1601
  toolInput: string;
1602
+ timestamp: number;
1592
1603
  permissionRequest: string;
1593
1604
  requestId: string;
1594
1605
  } | undefined;
1595
1606
  pendingPermissionCount?: number | undefined;
1596
1607
  }, {
1597
1608
  phase: "error" | "idle" | "thinking" | "tool_use" | "outputting" | "waiting";
1598
- seq?: number | undefined;
1599
1609
  toolName?: string | undefined;
1600
1610
  toolInput?: string | undefined;
1611
+ seq?: number | undefined;
1601
1612
  permissionRequest?: string | undefined;
1602
1613
  summary?: string | undefined;
1603
1614
  topPermission?: {
1604
- timestamp: number;
1605
1615
  toolName: string;
1606
1616
  toolInput: string;
1617
+ timestamp: number;
1607
1618
  permissionRequest: string;
1608
1619
  requestId: string;
1609
1620
  } | undefined;
@@ -1628,16 +1639,16 @@ export declare const protocolMessageSchemas: {
1628
1639
  port: z.ZodNumber;
1629
1640
  }, "strip", z.ZodTypeAny, {
1630
1641
  port: number;
1642
+ url: string;
1631
1643
  requestId: string;
1632
1644
  method: string;
1633
- url: string;
1634
1645
  headers: Record<string, string>;
1635
1646
  body: string | null;
1636
1647
  }, {
1637
1648
  port: number;
1649
+ url: string;
1638
1650
  requestId: string;
1639
1651
  method: string;
1640
- url: string;
1641
1652
  headers: Record<string, string>;
1642
1653
  body: string | null;
1643
1654
  }>;
@@ -1746,12 +1757,12 @@ export declare const protocolMessageSchemas: {
1746
1757
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
1747
1758
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1748
1759
  }, "strip", z.ZodTypeAny, {
1749
- provider?: "claude" | "codex" | "custom" | undefined;
1750
1760
  cwd?: string | undefined;
1761
+ provider?: "claude" | "codex" | "custom" | undefined;
1751
1762
  mcpServers?: Record<string, unknown> | undefined;
1752
1763
  }, {
1753
- provider?: "claude" | "codex" | "custom" | undefined;
1754
1764
  cwd?: string | undefined;
1765
+ provider?: "claude" | "codex" | "custom" | undefined;
1755
1766
  mcpServers?: Record<string, unknown> | undefined;
1756
1767
  }>;
1757
1768
  readonly "agent.session.load": z.ZodObject<{
@@ -1774,34 +1785,43 @@ export declare const protocolMessageSchemas: {
1774
1785
  data: z.ZodOptional<z.ZodString>;
1775
1786
  mimeType: z.ZodOptional<z.ZodString>;
1776
1787
  }, "strip", z.ZodTypeAny, {
1777
- type: "text" | "image";
1778
- data?: string | undefined;
1788
+ type: "image" | "text";
1779
1789
  text?: string | undefined;
1790
+ data?: string | undefined;
1780
1791
  mimeType?: string | undefined;
1781
1792
  }, {
1782
- type: "text" | "image";
1783
- data?: string | undefined;
1793
+ type: "image" | "text";
1784
1794
  text?: string | undefined;
1795
+ data?: string | undefined;
1785
1796
  mimeType?: string | undefined;
1786
1797
  }>, "many">;
1798
+ model: z.ZodOptional<z.ZodString>;
1799
+ reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
1800
+ permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
1787
1801
  }, "strip", z.ZodTypeAny, {
1788
1802
  clientMessageId: string;
1789
1803
  contentBlocks: {
1790
- type: "text" | "image";
1791
- data?: string | undefined;
1804
+ type: "image" | "text";
1792
1805
  text?: string | undefined;
1806
+ data?: string | undefined;
1793
1807
  mimeType?: string | undefined;
1794
1808
  }[];
1795
1809
  agentSessionId?: string | undefined;
1810
+ model?: string | undefined;
1811
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1812
+ permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
1796
1813
  }, {
1797
1814
  clientMessageId: string;
1798
1815
  contentBlocks: {
1799
- type: "text" | "image";
1800
- data?: string | undefined;
1816
+ type: "image" | "text";
1801
1817
  text?: string | undefined;
1818
+ data?: string | undefined;
1802
1819
  mimeType?: string | undefined;
1803
1820
  }[];
1804
1821
  agentSessionId?: string | undefined;
1822
+ model?: string | undefined;
1823
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1824
+ permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
1805
1825
  }>;
1806
1826
  readonly "agent.cancel": z.ZodObject<{
1807
1827
  agentSessionId: z.ZodOptional<z.ZodString>;
@@ -1858,12 +1878,12 @@ export declare const protocolMessageSchemas: {
1858
1878
  status: z.ZodEnum<["pending", "in_progress", "completed"]>;
1859
1879
  }, "strip", z.ZodTypeAny, {
1860
1880
  status: "pending" | "completed" | "in_progress";
1861
- id: string;
1862
1881
  text: string;
1882
+ id: string;
1863
1883
  }, {
1864
1884
  status: "pending" | "completed" | "in_progress";
1865
- id: string;
1866
1885
  text: string;
1886
+ id: string;
1867
1887
  }>, "many">>;
1868
1888
  status: z.ZodOptional<z.ZodEnum<["idle", "running", "waiting_permission", "error"]>>;
1869
1889
  error: z.ZodOptional<z.ZodString>;
@@ -1880,8 +1900,8 @@ export declare const protocolMessageSchemas: {
1880
1900
  } | undefined;
1881
1901
  plan?: {
1882
1902
  status: "pending" | "completed" | "in_progress";
1883
- id: string;
1884
1903
  text: string;
1904
+ id: string;
1885
1905
  }[] | undefined;
1886
1906
  agentSessionId?: string | undefined;
1887
1907
  delta?: string | undefined;
@@ -1905,8 +1925,8 @@ export declare const protocolMessageSchemas: {
1905
1925
  } | undefined;
1906
1926
  plan?: {
1907
1927
  status: "pending" | "completed" | "in_progress";
1908
- id: string;
1909
1928
  text: string;
1929
+ id: string;
1910
1930
  }[] | undefined;
1911
1931
  agentSessionId?: string | undefined;
1912
1932
  delta?: string | undefined;
@@ -1951,13 +1971,13 @@ export declare const protocolMessageSchemas: {
1951
1971
  context?: string | undefined;
1952
1972
  }, {
1953
1973
  requestId: string;
1974
+ toolName?: string | undefined;
1975
+ toolInput?: string | undefined;
1954
1976
  options?: {
1955
1977
  id: string;
1956
1978
  label: string;
1957
1979
  kind?: "allow" | "deny" | "other" | undefined;
1958
1980
  }[] | undefined;
1959
- toolName?: string | undefined;
1960
- toolInput?: string | undefined;
1961
1981
  agentSessionId?: string | undefined;
1962
1982
  context?: string | undefined;
1963
1983
  }>;
@@ -2084,13 +2104,13 @@ export declare const protocolMessageSchemas: {
2084
2104
  context?: string | undefined;
2085
2105
  }, {
2086
2106
  requestId: string;
2107
+ toolName?: string | undefined;
2108
+ toolInput?: string | undefined;
2087
2109
  options?: {
2088
2110
  id: string;
2089
2111
  label: string;
2090
2112
  kind?: "allow" | "deny" | "other" | undefined;
2091
2113
  }[] | undefined;
2092
- toolName?: string | undefined;
2093
- toolInput?: string | undefined;
2094
2114
  context?: string | undefined;
2095
2115
  }>, "many">>;
2096
2116
  status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
@@ -2170,13 +2190,13 @@ export declare const protocolMessageSchemas: {
2170
2190
  }[] | undefined;
2171
2191
  pendingPermissions?: {
2172
2192
  requestId: string;
2193
+ toolName?: string | undefined;
2194
+ toolInput?: string | undefined;
2173
2195
  options?: {
2174
2196
  id: string;
2175
2197
  label: string;
2176
2198
  kind?: "allow" | "deny" | "other" | undefined;
2177
2199
  }[] | undefined;
2178
- toolName?: string | undefined;
2179
- toolInput?: string | undefined;
2180
2200
  context?: string | undefined;
2181
2201
  }[] | undefined;
2182
2202
  }>;
@@ -250,6 +250,19 @@ export const terminalHistoryResponsePayloadSchema = z.object({
250
250
  });
251
251
  // ── Agent GUI / ACP payloads ───────────────────────────────────────
252
252
  export const agentProviderSchema = z.enum(["codex", "claude", "custom"]);
253
+ export const agentReasoningEffortSchema = z.enum([
254
+ "none",
255
+ "minimal",
256
+ "low",
257
+ "medium",
258
+ "high",
259
+ "xhigh",
260
+ ]);
261
+ export const agentPermissionModeSchema = z.enum([
262
+ "read_only",
263
+ "workspace_write",
264
+ "full_access",
265
+ ]);
253
266
  export const agentContentBlockSchema = z.object({
254
267
  type: z.enum(["text", "image"]),
255
268
  text: z.string().optional(),
@@ -309,6 +322,9 @@ export const agentPromptPayloadSchema = z.object({
309
322
  agentSessionId: z.string().optional(),
310
323
  clientMessageId: z.string().min(1),
311
324
  contentBlocks: z.array(agentContentBlockSchema).min(1),
325
+ model: z.string().min(1).optional(),
326
+ reasoningEffort: agentReasoningEffortSchema.optional(),
327
+ permissionMode: agentPermissionModeSchema.optional(),
312
328
  });
313
329
  export const agentCancelPayloadSchema = z.object({
314
330
  agentSessionId: z.string().optional(),