@linkshell/wire 0.2.6 → 0.2.8

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.
package/dist/updates.d.ts CHANGED
@@ -14,13 +14,13 @@ export declare const contentBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
14
14
  data: z.ZodOptional<z.ZodString>;
15
15
  uri: z.ZodOptional<z.ZodString>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- mimeType: string;
18
17
  type: "image";
18
+ mimeType: string;
19
19
  data?: string | undefined;
20
20
  uri?: string | undefined;
21
21
  }, {
22
- mimeType: string;
23
22
  type: "image";
23
+ mimeType: string;
24
24
  data?: string | undefined;
25
25
  uri?: string | undefined;
26
26
  }>, z.ZodObject<{
@@ -60,13 +60,13 @@ export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
60
60
  data: z.ZodOptional<z.ZodString>;
61
61
  uri: z.ZodOptional<z.ZodString>;
62
62
  }, "strip", z.ZodTypeAny, {
63
- mimeType: string;
64
63
  type: "image";
64
+ mimeType: string;
65
65
  data?: string | undefined;
66
66
  uri?: string | undefined;
67
67
  }, {
68
- mimeType: string;
69
68
  type: "image";
69
+ mimeType: string;
70
70
  data?: string | undefined;
71
71
  uri?: string | undefined;
72
72
  }>, z.ZodObject<{
@@ -92,8 +92,8 @@ export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
92
92
  type: "text";
93
93
  text: string;
94
94
  } | {
95
- mimeType: string;
96
95
  type: "image";
96
+ mimeType: string;
97
97
  data?: string | undefined;
98
98
  uri?: string | undefined;
99
99
  } | {
@@ -108,8 +108,8 @@ export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
108
108
  type: "text";
109
109
  text: string;
110
110
  } | {
111
- mimeType: string;
112
111
  type: "image";
112
+ mimeType: string;
113
113
  data?: string | undefined;
114
114
  uri?: string | undefined;
115
115
  } | {
@@ -197,6 +197,8 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
197
197
  task: z.ZodOptional<z.ZodString>;
198
198
  /** The sub-agent's role or type, e.g. "Explore". */
199
199
  agentType: z.ZodOptional<z.ZodString>;
200
+ /** A named agent's address, distinct from its role. */
201
+ name: z.ZodOptional<z.ZodString>;
200
202
  model: z.ZodOptional<z.ZodString>;
201
203
  /** Agent outcome when a tool's coarse completed/failed state is insufficient. */
202
204
  state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
@@ -328,6 +330,7 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
328
330
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
329
331
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
330
332
  model?: string | undefined;
333
+ name?: string | undefined;
331
334
  task?: string | undefined;
332
335
  agentType?: string | undefined;
333
336
  workflow?: {
@@ -365,6 +368,7 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
365
368
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
366
369
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
367
370
  model?: string | undefined;
371
+ name?: string | undefined;
368
372
  task?: string | undefined;
369
373
  agentType?: string | undefined;
370
374
  workflow?: {
@@ -492,22 +496,22 @@ export declare const sessionConfigOptionSchema: z.ZodObject<{
492
496
  description?: string | undefined;
493
497
  }>, "many">;
494
498
  }, "strip", z.ZodTypeAny, {
495
- id: string;
496
499
  values: {
497
500
  value: string;
498
501
  name: string;
499
502
  description?: string | undefined;
500
503
  }[];
504
+ id: string;
501
505
  name: string;
502
506
  category: "model" | "other" | "mode" | "effort";
503
507
  current: string;
504
508
  }, {
505
- id: string;
506
509
  values: {
507
510
  value: string;
508
511
  name: string;
509
512
  description?: string | undefined;
510
513
  }[];
514
+ id: string;
511
515
  name: string;
512
516
  current: string;
513
517
  category?: "model" | "other" | "mode" | "effort" | undefined;
@@ -531,13 +535,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
531
535
  data: z.ZodOptional<z.ZodString>;
532
536
  uri: z.ZodOptional<z.ZodString>;
533
537
  }, "strip", z.ZodTypeAny, {
534
- mimeType: string;
535
538
  type: "image";
539
+ mimeType: string;
536
540
  data?: string | undefined;
537
541
  uri?: string | undefined;
538
542
  }, {
539
- mimeType: string;
540
543
  type: "image";
544
+ mimeType: string;
541
545
  data?: string | undefined;
542
546
  uri?: string | undefined;
543
547
  }>, z.ZodObject<{
@@ -562,8 +566,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
562
566
  type: "text";
563
567
  text: string;
564
568
  } | {
565
- mimeType: string;
566
569
  type: "image";
570
+ mimeType: string;
567
571
  data?: string | undefined;
568
572
  uri?: string | undefined;
569
573
  } | {
@@ -579,8 +583,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
579
583
  type: "text";
580
584
  text: string;
581
585
  } | {
582
- mimeType: string;
583
586
  type: "image";
587
+ mimeType: string;
584
588
  data?: string | undefined;
585
589
  uri?: string | undefined;
586
590
  } | {
@@ -610,13 +614,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
610
614
  data: z.ZodOptional<z.ZodString>;
611
615
  uri: z.ZodOptional<z.ZodString>;
612
616
  }, "strip", z.ZodTypeAny, {
613
- mimeType: string;
614
617
  type: "image";
618
+ mimeType: string;
615
619
  data?: string | undefined;
616
620
  uri?: string | undefined;
617
621
  }, {
618
- mimeType: string;
619
622
  type: "image";
623
+ mimeType: string;
620
624
  data?: string | undefined;
621
625
  uri?: string | undefined;
622
626
  }>, z.ZodObject<{
@@ -641,8 +645,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
641
645
  type: "text";
642
646
  text: string;
643
647
  } | {
644
- mimeType: string;
645
648
  type: "image";
649
+ mimeType: string;
646
650
  data?: string | undefined;
647
651
  uri?: string | undefined;
648
652
  } | {
@@ -659,8 +663,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
659
663
  type: "text";
660
664
  text: string;
661
665
  } | {
662
- mimeType: string;
663
666
  type: "image";
667
+ mimeType: string;
664
668
  data?: string | undefined;
665
669
  uri?: string | undefined;
666
670
  } | {
@@ -691,13 +695,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
691
695
  data: z.ZodOptional<z.ZodString>;
692
696
  uri: z.ZodOptional<z.ZodString>;
693
697
  }, "strip", z.ZodTypeAny, {
694
- mimeType: string;
695
698
  type: "image";
699
+ mimeType: string;
696
700
  data?: string | undefined;
697
701
  uri?: string | undefined;
698
702
  }, {
699
- mimeType: string;
700
703
  type: "image";
704
+ mimeType: string;
701
705
  data?: string | undefined;
702
706
  uri?: string | undefined;
703
707
  }>, z.ZodObject<{
@@ -722,8 +726,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
722
726
  type: "text";
723
727
  text: string;
724
728
  } | {
725
- mimeType: string;
726
729
  type: "image";
730
+ mimeType: string;
727
731
  data?: string | undefined;
728
732
  uri?: string | undefined;
729
733
  } | {
@@ -740,8 +744,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
740
744
  type: "text";
741
745
  text: string;
742
746
  } | {
743
- mimeType: string;
744
747
  type: "image";
748
+ mimeType: string;
745
749
  data?: string | undefined;
746
750
  uri?: string | undefined;
747
751
  } | {
@@ -779,13 +783,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
779
783
  data: z.ZodOptional<z.ZodString>;
780
784
  uri: z.ZodOptional<z.ZodString>;
781
785
  }, "strip", z.ZodTypeAny, {
782
- mimeType: string;
783
786
  type: "image";
787
+ mimeType: string;
784
788
  data?: string | undefined;
785
789
  uri?: string | undefined;
786
790
  }, {
787
- mimeType: string;
788
791
  type: "image";
792
+ mimeType: string;
789
793
  data?: string | undefined;
790
794
  uri?: string | undefined;
791
795
  }>, z.ZodObject<{
@@ -811,8 +815,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
811
815
  type: "text";
812
816
  text: string;
813
817
  } | {
814
- mimeType: string;
815
818
  type: "image";
819
+ mimeType: string;
816
820
  data?: string | undefined;
817
821
  uri?: string | undefined;
818
822
  } | {
@@ -827,8 +831,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
827
831
  type: "text";
828
832
  text: string;
829
833
  } | {
830
- mimeType: string;
831
834
  type: "image";
835
+ mimeType: string;
832
836
  data?: string | undefined;
833
837
  uri?: string | undefined;
834
838
  } | {
@@ -909,6 +913,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
909
913
  task: z.ZodOptional<z.ZodString>;
910
914
  /** The sub-agent's role or type, e.g. "Explore". */
911
915
  agentType: z.ZodOptional<z.ZodString>;
916
+ /** A named agent's address, distinct from its role. */
917
+ name: z.ZodOptional<z.ZodString>;
912
918
  model: z.ZodOptional<z.ZodString>;
913
919
  /** Agent outcome when a tool's coarse completed/failed state is insufficient. */
914
920
  state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
@@ -1040,6 +1046,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1040
1046
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
1041
1047
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1042
1048
  model?: string | undefined;
1049
+ name?: string | undefined;
1043
1050
  task?: string | undefined;
1044
1051
  agentType?: string | undefined;
1045
1052
  workflow?: {
@@ -1077,6 +1084,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1077
1084
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
1078
1085
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1079
1086
  model?: string | undefined;
1087
+ name?: string | undefined;
1080
1088
  task?: string | undefined;
1081
1089
  agentType?: string | undefined;
1082
1090
  workflow?: {
@@ -1182,6 +1190,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1182
1190
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
1183
1191
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1184
1192
  model?: string | undefined;
1193
+ name?: string | undefined;
1185
1194
  task?: string | undefined;
1186
1195
  agentType?: string | undefined;
1187
1196
  workflow?: {
@@ -1241,8 +1250,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1241
1250
  type: "text";
1242
1251
  text: string;
1243
1252
  } | {
1244
- mimeType: string;
1245
1253
  type: "image";
1254
+ mimeType: string;
1246
1255
  data?: string | undefined;
1247
1256
  uri?: string | undefined;
1248
1257
  } | {
@@ -1286,6 +1295,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1286
1295
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
1287
1296
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1288
1297
  model?: string | undefined;
1298
+ name?: string | undefined;
1289
1299
  task?: string | undefined;
1290
1300
  agentType?: string | undefined;
1291
1301
  workflow?: {
@@ -1345,8 +1355,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1345
1355
  type: "text";
1346
1356
  text: string;
1347
1357
  } | {
1348
- mimeType: string;
1349
1358
  type: "image";
1359
+ mimeType: string;
1350
1360
  data?: string | undefined;
1351
1361
  uri?: string | undefined;
1352
1362
  } | {
@@ -1400,6 +1410,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1400
1410
  task: z.ZodOptional<z.ZodString>;
1401
1411
  /** The sub-agent's role or type, e.g. "Explore". */
1402
1412
  agentType: z.ZodOptional<z.ZodString>;
1413
+ /** A named agent's address, distinct from its role. */
1414
+ name: z.ZodOptional<z.ZodString>;
1403
1415
  model: z.ZodOptional<z.ZodString>;
1404
1416
  /** Agent outcome when a tool's coarse completed/failed state is insufficient. */
1405
1417
  state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
@@ -1531,6 +1543,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1531
1543
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
1532
1544
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1533
1545
  model?: string | undefined;
1546
+ name?: string | undefined;
1534
1547
  task?: string | undefined;
1535
1548
  agentType?: string | undefined;
1536
1549
  workflow?: {
@@ -1568,6 +1581,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1568
1581
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
1569
1582
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1570
1583
  model?: string | undefined;
1584
+ name?: string | undefined;
1571
1585
  task?: string | undefined;
1572
1586
  agentType?: string | undefined;
1573
1587
  workflow?: {
@@ -1676,13 +1690,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1676
1690
  data: z.ZodOptional<z.ZodString>;
1677
1691
  uri: z.ZodOptional<z.ZodString>;
1678
1692
  }, "strip", z.ZodTypeAny, {
1679
- mimeType: string;
1680
1693
  type: "image";
1694
+ mimeType: string;
1681
1695
  data?: string | undefined;
1682
1696
  uri?: string | undefined;
1683
1697
  }, {
1684
- mimeType: string;
1685
1698
  type: "image";
1699
+ mimeType: string;
1686
1700
  data?: string | undefined;
1687
1701
  uri?: string | undefined;
1688
1702
  }>, z.ZodObject<{
@@ -1708,8 +1722,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1708
1722
  type: "text";
1709
1723
  text: string;
1710
1724
  } | {
1711
- mimeType: string;
1712
1725
  type: "image";
1726
+ mimeType: string;
1713
1727
  data?: string | undefined;
1714
1728
  uri?: string | undefined;
1715
1729
  } | {
@@ -1724,8 +1738,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1724
1738
  type: "text";
1725
1739
  text: string;
1726
1740
  } | {
1727
- mimeType: string;
1728
1741
  type: "image";
1742
+ mimeType: string;
1729
1743
  data?: string | undefined;
1730
1744
  uri?: string | undefined;
1731
1745
  } | {
@@ -1794,6 +1808,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1794
1808
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
1795
1809
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1796
1810
  model?: string | undefined;
1811
+ name?: string | undefined;
1797
1812
  task?: string | undefined;
1798
1813
  agentType?: string | undefined;
1799
1814
  workflow?: {
@@ -1853,8 +1868,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1853
1868
  type: "text";
1854
1869
  text: string;
1855
1870
  } | {
1856
- mimeType: string;
1857
1871
  type: "image";
1872
+ mimeType: string;
1858
1873
  data?: string | undefined;
1859
1874
  uri?: string | undefined;
1860
1875
  } | {
@@ -1894,6 +1909,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1894
1909
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
1895
1910
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1896
1911
  model?: string | undefined;
1912
+ name?: string | undefined;
1897
1913
  task?: string | undefined;
1898
1914
  agentType?: string | undefined;
1899
1915
  workflow?: {
@@ -1953,8 +1969,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1953
1969
  type: "text";
1954
1970
  text: string;
1955
1971
  } | {
1956
- mimeType: string;
1957
1972
  type: "image";
1973
+ mimeType: string;
1958
1974
  data?: string | undefined;
1959
1975
  uri?: string | undefined;
1960
1976
  } | {
@@ -2020,16 +2036,16 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2020
2036
  iterations: z.ZodOptional<z.ZodNumber>;
2021
2037
  lastReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2022
2038
  }, "strip", z.ZodTypeAny, {
2023
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2024
2039
  objective: string;
2040
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2025
2041
  tokenBudget?: number | null | undefined;
2026
2042
  tokensUsed?: number | undefined;
2027
2043
  timeUsedSeconds?: number | undefined;
2028
2044
  iterations?: number | undefined;
2029
2045
  lastReason?: string | null | undefined;
2030
2046
  }, {
2031
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2032
2047
  objective: string;
2048
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2033
2049
  tokenBudget?: number | null | undefined;
2034
2050
  tokensUsed?: number | undefined;
2035
2051
  timeUsedSeconds?: number | undefined;
@@ -2039,8 +2055,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2039
2055
  }, "strip", z.ZodTypeAny, {
2040
2056
  sessionUpdate: "ls_goal";
2041
2057
  goal: {
2042
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2043
2058
  objective: string;
2059
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2044
2060
  tokenBudget?: number | null | undefined;
2045
2061
  tokensUsed?: number | undefined;
2046
2062
  timeUsedSeconds?: number | undefined;
@@ -2050,8 +2066,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2050
2066
  }, {
2051
2067
  sessionUpdate: "ls_goal";
2052
2068
  goal: {
2053
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2054
2069
  objective: string;
2070
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2055
2071
  tokenBudget?: number | null | undefined;
2056
2072
  tokensUsed?: number | undefined;
2057
2073
  timeUsedSeconds?: number | undefined;
@@ -2120,6 +2136,35 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2120
2136
  sessionUpdate: "usage_update";
2121
2137
  usedTokens?: number | undefined;
2122
2138
  contextWindow?: number | undefined;
2139
+ }>, z.ZodObject<{
2140
+ sessionUpdate: z.ZodLiteral<"ls_async_questions">;
2141
+ questions: z.ZodArray<z.ZodObject<{
2142
+ id: z.ZodString;
2143
+ title: z.ZodString;
2144
+ options: z.ZodArray<z.ZodString, "many">;
2145
+ }, "strip", z.ZodTypeAny, {
2146
+ options: string[];
2147
+ id: string;
2148
+ title: string;
2149
+ }, {
2150
+ options: string[];
2151
+ id: string;
2152
+ title: string;
2153
+ }>, "many">;
2154
+ }, "strip", z.ZodTypeAny, {
2155
+ questions: {
2156
+ options: string[];
2157
+ id: string;
2158
+ title: string;
2159
+ }[];
2160
+ sessionUpdate: "ls_async_questions";
2161
+ }, {
2162
+ questions: {
2163
+ options: string[];
2164
+ id: string;
2165
+ title: string;
2166
+ }[];
2167
+ sessionUpdate: "ls_async_questions";
2123
2168
  }>, z.ZodObject<{
2124
2169
  sessionUpdate: z.ZodLiteral<"ls_message_done">;
2125
2170
  parentToolCallId: z.ZodOptional<z.ZodString>;
@@ -2135,12 +2180,12 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2135
2180
  title: z.ZodString;
2136
2181
  options: z.ZodArray<z.ZodString, "many">;
2137
2182
  }, "strip", z.ZodTypeAny, {
2138
- id: string;
2139
2183
  options: string[];
2184
+ id: string;
2140
2185
  title: string;
2141
2186
  }, {
2142
- id: string;
2143
2187
  options: string[];
2188
+ id: string;
2144
2189
  title: string;
2145
2190
  }>, "many">>;
2146
2191
  }, "strip", z.ZodTypeAny, {
@@ -2148,8 +2193,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2148
2193
  messageId: string;
2149
2194
  role: "agent" | "thought" | "user";
2150
2195
  questions?: {
2151
- id: string;
2152
2196
  options: string[];
2197
+ id: string;
2153
2198
  title: string;
2154
2199
  }[] | undefined;
2155
2200
  parentToolCallId?: string | undefined;
@@ -2158,8 +2203,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2158
2203
  messageId: string;
2159
2204
  role: "agent" | "thought" | "user";
2160
2205
  questions?: {
2161
- id: string;
2162
2206
  options: string[];
2207
+ id: string;
2163
2208
  title: string;
2164
2209
  }[] | undefined;
2165
2210
  parentToolCallId?: string | undefined;
@@ -2185,34 +2230,34 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2185
2230
  description?: string | undefined;
2186
2231
  }>, "many">;
2187
2232
  }, "strip", z.ZodTypeAny, {
2188
- id: string;
2189
2233
  values: {
2190
2234
  value: string;
2191
2235
  name: string;
2192
2236
  description?: string | undefined;
2193
2237
  }[];
2238
+ id: string;
2194
2239
  name: string;
2195
2240
  category: "model" | "other" | "mode" | "effort";
2196
2241
  current: string;
2197
2242
  }, {
2198
- id: string;
2199
2243
  values: {
2200
2244
  value: string;
2201
2245
  name: string;
2202
2246
  description?: string | undefined;
2203
2247
  }[];
2248
+ id: string;
2204
2249
  name: string;
2205
2250
  current: string;
2206
2251
  category?: "model" | "other" | "mode" | "effort" | undefined;
2207
2252
  }>, "many">;
2208
2253
  }, "strip", z.ZodTypeAny, {
2209
2254
  options: {
2210
- id: string;
2211
2255
  values: {
2212
2256
  value: string;
2213
2257
  name: string;
2214
2258
  description?: string | undefined;
2215
2259
  }[];
2260
+ id: string;
2216
2261
  name: string;
2217
2262
  category: "model" | "other" | "mode" | "effort";
2218
2263
  current: string;
@@ -2220,12 +2265,12 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2220
2265
  sessionUpdate: "ls_config";
2221
2266
  }, {
2222
2267
  options: {
2223
- id: string;
2224
2268
  values: {
2225
2269
  value: string;
2226
2270
  name: string;
2227
2271
  description?: string | undefined;
2228
2272
  }[];
2273
+ id: string;
2229
2274
  name: string;
2230
2275
  current: string;
2231
2276
  category?: "model" | "other" | "mode" | "effort" | undefined;
@@ -2397,12 +2442,12 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2397
2442
  values: z.ZodArray<z.ZodString, "many">;
2398
2443
  other: z.ZodOptional<z.ZodString>;
2399
2444
  }, "strip", z.ZodTypeAny, {
2400
- id: string;
2401
2445
  values: string[];
2446
+ id: string;
2402
2447
  other?: string | undefined;
2403
2448
  }, {
2404
- id: string;
2405
2449
  values: string[];
2450
+ id: string;
2406
2451
  other?: string | undefined;
2407
2452
  }>, "many">>;
2408
2453
  }, "strip", z.ZodTypeAny, {
@@ -2410,8 +2455,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2410
2455
  sessionUpdate: "ls_permission_resolved";
2411
2456
  optionId?: string | undefined;
2412
2457
  answers?: {
2413
- id: string;
2414
2458
  values: string[];
2459
+ id: string;
2415
2460
  other?: string | undefined;
2416
2461
  }[] | undefined;
2417
2462
  }, {
@@ -2419,8 +2464,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2419
2464
  sessionUpdate: "ls_permission_resolved";
2420
2465
  optionId?: string | undefined;
2421
2466
  answers?: {
2422
- id: string;
2423
2467
  values: string[];
2468
+ id: string;
2424
2469
  other?: string | undefined;
2425
2470
  }[] | undefined;
2426
2471
  }>, z.ZodObject<{
@@ -2439,10 +2484,10 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2439
2484
  sessionUpdate: z.ZodLiteral<"ls_status">;
2440
2485
  state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
2441
2486
  }, "strip", z.ZodTypeAny, {
2442
- state: "error" | "running" | "idle" | "waiting" | "offline";
2487
+ state: "running" | "idle" | "waiting" | "error" | "offline";
2443
2488
  sessionUpdate: "ls_status";
2444
2489
  }, {
2445
- state: "error" | "running" | "idle" | "waiting" | "offline";
2490
+ state: "running" | "idle" | "waiting" | "error" | "offline";
2446
2491
  sessionUpdate: "ls_status";
2447
2492
  }>, z.ZodObject<{
2448
2493
  sessionUpdate: z.ZodLiteral<"ls_task">;
@@ -2564,13 +2609,13 @@ export declare const sessionEventSchema: z.ZodObject<{
2564
2609
  data: z.ZodOptional<z.ZodString>;
2565
2610
  uri: z.ZodOptional<z.ZodString>;
2566
2611
  }, "strip", z.ZodTypeAny, {
2567
- mimeType: string;
2568
2612
  type: "image";
2613
+ mimeType: string;
2569
2614
  data?: string | undefined;
2570
2615
  uri?: string | undefined;
2571
2616
  }, {
2572
- mimeType: string;
2573
2617
  type: "image";
2618
+ mimeType: string;
2574
2619
  data?: string | undefined;
2575
2620
  uri?: string | undefined;
2576
2621
  }>, z.ZodObject<{
@@ -2595,8 +2640,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2595
2640
  type: "text";
2596
2641
  text: string;
2597
2642
  } | {
2598
- mimeType: string;
2599
2643
  type: "image";
2644
+ mimeType: string;
2600
2645
  data?: string | undefined;
2601
2646
  uri?: string | undefined;
2602
2647
  } | {
@@ -2612,8 +2657,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2612
2657
  type: "text";
2613
2658
  text: string;
2614
2659
  } | {
2615
- mimeType: string;
2616
2660
  type: "image";
2661
+ mimeType: string;
2617
2662
  data?: string | undefined;
2618
2663
  uri?: string | undefined;
2619
2664
  } | {
@@ -2643,13 +2688,13 @@ export declare const sessionEventSchema: z.ZodObject<{
2643
2688
  data: z.ZodOptional<z.ZodString>;
2644
2689
  uri: z.ZodOptional<z.ZodString>;
2645
2690
  }, "strip", z.ZodTypeAny, {
2646
- mimeType: string;
2647
2691
  type: "image";
2692
+ mimeType: string;
2648
2693
  data?: string | undefined;
2649
2694
  uri?: string | undefined;
2650
2695
  }, {
2651
- mimeType: string;
2652
2696
  type: "image";
2697
+ mimeType: string;
2653
2698
  data?: string | undefined;
2654
2699
  uri?: string | undefined;
2655
2700
  }>, z.ZodObject<{
@@ -2674,8 +2719,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2674
2719
  type: "text";
2675
2720
  text: string;
2676
2721
  } | {
2677
- mimeType: string;
2678
2722
  type: "image";
2723
+ mimeType: string;
2679
2724
  data?: string | undefined;
2680
2725
  uri?: string | undefined;
2681
2726
  } | {
@@ -2692,8 +2737,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2692
2737
  type: "text";
2693
2738
  text: string;
2694
2739
  } | {
2695
- mimeType: string;
2696
2740
  type: "image";
2741
+ mimeType: string;
2697
2742
  data?: string | undefined;
2698
2743
  uri?: string | undefined;
2699
2744
  } | {
@@ -2724,13 +2769,13 @@ export declare const sessionEventSchema: z.ZodObject<{
2724
2769
  data: z.ZodOptional<z.ZodString>;
2725
2770
  uri: z.ZodOptional<z.ZodString>;
2726
2771
  }, "strip", z.ZodTypeAny, {
2727
- mimeType: string;
2728
2772
  type: "image";
2773
+ mimeType: string;
2729
2774
  data?: string | undefined;
2730
2775
  uri?: string | undefined;
2731
2776
  }, {
2732
- mimeType: string;
2733
2777
  type: "image";
2778
+ mimeType: string;
2734
2779
  data?: string | undefined;
2735
2780
  uri?: string | undefined;
2736
2781
  }>, z.ZodObject<{
@@ -2755,8 +2800,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2755
2800
  type: "text";
2756
2801
  text: string;
2757
2802
  } | {
2758
- mimeType: string;
2759
2803
  type: "image";
2804
+ mimeType: string;
2760
2805
  data?: string | undefined;
2761
2806
  uri?: string | undefined;
2762
2807
  } | {
@@ -2773,8 +2818,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2773
2818
  type: "text";
2774
2819
  text: string;
2775
2820
  } | {
2776
- mimeType: string;
2777
2821
  type: "image";
2822
+ mimeType: string;
2778
2823
  data?: string | undefined;
2779
2824
  uri?: string | undefined;
2780
2825
  } | {
@@ -2812,13 +2857,13 @@ export declare const sessionEventSchema: z.ZodObject<{
2812
2857
  data: z.ZodOptional<z.ZodString>;
2813
2858
  uri: z.ZodOptional<z.ZodString>;
2814
2859
  }, "strip", z.ZodTypeAny, {
2815
- mimeType: string;
2816
2860
  type: "image";
2861
+ mimeType: string;
2817
2862
  data?: string | undefined;
2818
2863
  uri?: string | undefined;
2819
2864
  }, {
2820
- mimeType: string;
2821
2865
  type: "image";
2866
+ mimeType: string;
2822
2867
  data?: string | undefined;
2823
2868
  uri?: string | undefined;
2824
2869
  }>, z.ZodObject<{
@@ -2844,8 +2889,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2844
2889
  type: "text";
2845
2890
  text: string;
2846
2891
  } | {
2847
- mimeType: string;
2848
2892
  type: "image";
2893
+ mimeType: string;
2849
2894
  data?: string | undefined;
2850
2895
  uri?: string | undefined;
2851
2896
  } | {
@@ -2860,8 +2905,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2860
2905
  type: "text";
2861
2906
  text: string;
2862
2907
  } | {
2863
- mimeType: string;
2864
2908
  type: "image";
2909
+ mimeType: string;
2865
2910
  data?: string | undefined;
2866
2911
  uri?: string | undefined;
2867
2912
  } | {
@@ -2942,6 +2987,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2942
2987
  task: z.ZodOptional<z.ZodString>;
2943
2988
  /** The sub-agent's role or type, e.g. "Explore". */
2944
2989
  agentType: z.ZodOptional<z.ZodString>;
2990
+ /** A named agent's address, distinct from its role. */
2991
+ name: z.ZodOptional<z.ZodString>;
2945
2992
  model: z.ZodOptional<z.ZodString>;
2946
2993
  /** Agent outcome when a tool's coarse completed/failed state is insufficient. */
2947
2994
  state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
@@ -3073,6 +3120,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3073
3120
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
3074
3121
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
3075
3122
  model?: string | undefined;
3123
+ name?: string | undefined;
3076
3124
  task?: string | undefined;
3077
3125
  agentType?: string | undefined;
3078
3126
  workflow?: {
@@ -3110,6 +3158,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3110
3158
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
3111
3159
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
3112
3160
  model?: string | undefined;
3161
+ name?: string | undefined;
3113
3162
  task?: string | undefined;
3114
3163
  agentType?: string | undefined;
3115
3164
  workflow?: {
@@ -3215,6 +3264,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3215
3264
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
3216
3265
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
3217
3266
  model?: string | undefined;
3267
+ name?: string | undefined;
3218
3268
  task?: string | undefined;
3219
3269
  agentType?: string | undefined;
3220
3270
  workflow?: {
@@ -3274,8 +3324,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3274
3324
  type: "text";
3275
3325
  text: string;
3276
3326
  } | {
3277
- mimeType: string;
3278
3327
  type: "image";
3328
+ mimeType: string;
3279
3329
  data?: string | undefined;
3280
3330
  uri?: string | undefined;
3281
3331
  } | {
@@ -3319,6 +3369,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3319
3369
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
3320
3370
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
3321
3371
  model?: string | undefined;
3372
+ name?: string | undefined;
3322
3373
  task?: string | undefined;
3323
3374
  agentType?: string | undefined;
3324
3375
  workflow?: {
@@ -3378,8 +3429,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3378
3429
  type: "text";
3379
3430
  text: string;
3380
3431
  } | {
3381
- mimeType: string;
3382
3432
  type: "image";
3433
+ mimeType: string;
3383
3434
  data?: string | undefined;
3384
3435
  uri?: string | undefined;
3385
3436
  } | {
@@ -3433,6 +3484,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3433
3484
  task: z.ZodOptional<z.ZodString>;
3434
3485
  /** The sub-agent's role or type, e.g. "Explore". */
3435
3486
  agentType: z.ZodOptional<z.ZodString>;
3487
+ /** A named agent's address, distinct from its role. */
3488
+ name: z.ZodOptional<z.ZodString>;
3436
3489
  model: z.ZodOptional<z.ZodString>;
3437
3490
  /** Agent outcome when a tool's coarse completed/failed state is insufficient. */
3438
3491
  state: z.ZodOptional<z.ZodEnum<["pending", "running", "paused", "completed", "failed", "stopped", "unknown"]>>;
@@ -3564,6 +3617,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3564
3617
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
3565
3618
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
3566
3619
  model?: string | undefined;
3620
+ name?: string | undefined;
3567
3621
  task?: string | undefined;
3568
3622
  agentType?: string | undefined;
3569
3623
  workflow?: {
@@ -3601,6 +3655,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3601
3655
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
3602
3656
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
3603
3657
  model?: string | undefined;
3658
+ name?: string | undefined;
3604
3659
  task?: string | undefined;
3605
3660
  agentType?: string | undefined;
3606
3661
  workflow?: {
@@ -3709,13 +3764,13 @@ export declare const sessionEventSchema: z.ZodObject<{
3709
3764
  data: z.ZodOptional<z.ZodString>;
3710
3765
  uri: z.ZodOptional<z.ZodString>;
3711
3766
  }, "strip", z.ZodTypeAny, {
3712
- mimeType: string;
3713
3767
  type: "image";
3768
+ mimeType: string;
3714
3769
  data?: string | undefined;
3715
3770
  uri?: string | undefined;
3716
3771
  }, {
3717
- mimeType: string;
3718
3772
  type: "image";
3773
+ mimeType: string;
3719
3774
  data?: string | undefined;
3720
3775
  uri?: string | undefined;
3721
3776
  }>, z.ZodObject<{
@@ -3741,8 +3796,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3741
3796
  type: "text";
3742
3797
  text: string;
3743
3798
  } | {
3744
- mimeType: string;
3745
3799
  type: "image";
3800
+ mimeType: string;
3746
3801
  data?: string | undefined;
3747
3802
  uri?: string | undefined;
3748
3803
  } | {
@@ -3757,8 +3812,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3757
3812
  type: "text";
3758
3813
  text: string;
3759
3814
  } | {
3760
- mimeType: string;
3761
3815
  type: "image";
3816
+ mimeType: string;
3762
3817
  data?: string | undefined;
3763
3818
  uri?: string | undefined;
3764
3819
  } | {
@@ -3827,6 +3882,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3827
3882
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
3828
3883
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
3829
3884
  model?: string | undefined;
3885
+ name?: string | undefined;
3830
3886
  task?: string | undefined;
3831
3887
  agentType?: string | undefined;
3832
3888
  workflow?: {
@@ -3886,8 +3942,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3886
3942
  type: "text";
3887
3943
  text: string;
3888
3944
  } | {
3889
- mimeType: string;
3890
3945
  type: "image";
3946
+ mimeType: string;
3891
3947
  data?: string | undefined;
3892
3948
  uri?: string | undefined;
3893
3949
  } | {
@@ -3927,6 +3983,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3927
3983
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
3928
3984
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
3929
3985
  model?: string | undefined;
3986
+ name?: string | undefined;
3930
3987
  task?: string | undefined;
3931
3988
  agentType?: string | undefined;
3932
3989
  workflow?: {
@@ -3986,8 +4043,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3986
4043
  type: "text";
3987
4044
  text: string;
3988
4045
  } | {
3989
- mimeType: string;
3990
4046
  type: "image";
4047
+ mimeType: string;
3991
4048
  data?: string | undefined;
3992
4049
  uri?: string | undefined;
3993
4050
  } | {
@@ -4053,16 +4110,16 @@ export declare const sessionEventSchema: z.ZodObject<{
4053
4110
  iterations: z.ZodOptional<z.ZodNumber>;
4054
4111
  lastReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4055
4112
  }, "strip", z.ZodTypeAny, {
4056
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4057
4113
  objective: string;
4114
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4058
4115
  tokenBudget?: number | null | undefined;
4059
4116
  tokensUsed?: number | undefined;
4060
4117
  timeUsedSeconds?: number | undefined;
4061
4118
  iterations?: number | undefined;
4062
4119
  lastReason?: string | null | undefined;
4063
4120
  }, {
4064
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4065
4121
  objective: string;
4122
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4066
4123
  tokenBudget?: number | null | undefined;
4067
4124
  tokensUsed?: number | undefined;
4068
4125
  timeUsedSeconds?: number | undefined;
@@ -4072,8 +4129,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4072
4129
  }, "strip", z.ZodTypeAny, {
4073
4130
  sessionUpdate: "ls_goal";
4074
4131
  goal: {
4075
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4076
4132
  objective: string;
4133
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4077
4134
  tokenBudget?: number | null | undefined;
4078
4135
  tokensUsed?: number | undefined;
4079
4136
  timeUsedSeconds?: number | undefined;
@@ -4083,8 +4140,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4083
4140
  }, {
4084
4141
  sessionUpdate: "ls_goal";
4085
4142
  goal: {
4086
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4087
4143
  objective: string;
4144
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4088
4145
  tokenBudget?: number | null | undefined;
4089
4146
  tokensUsed?: number | undefined;
4090
4147
  timeUsedSeconds?: number | undefined;
@@ -4153,6 +4210,35 @@ export declare const sessionEventSchema: z.ZodObject<{
4153
4210
  sessionUpdate: "usage_update";
4154
4211
  usedTokens?: number | undefined;
4155
4212
  contextWindow?: number | undefined;
4213
+ }>, z.ZodObject<{
4214
+ sessionUpdate: z.ZodLiteral<"ls_async_questions">;
4215
+ questions: z.ZodArray<z.ZodObject<{
4216
+ id: z.ZodString;
4217
+ title: z.ZodString;
4218
+ options: z.ZodArray<z.ZodString, "many">;
4219
+ }, "strip", z.ZodTypeAny, {
4220
+ options: string[];
4221
+ id: string;
4222
+ title: string;
4223
+ }, {
4224
+ options: string[];
4225
+ id: string;
4226
+ title: string;
4227
+ }>, "many">;
4228
+ }, "strip", z.ZodTypeAny, {
4229
+ questions: {
4230
+ options: string[];
4231
+ id: string;
4232
+ title: string;
4233
+ }[];
4234
+ sessionUpdate: "ls_async_questions";
4235
+ }, {
4236
+ questions: {
4237
+ options: string[];
4238
+ id: string;
4239
+ title: string;
4240
+ }[];
4241
+ sessionUpdate: "ls_async_questions";
4156
4242
  }>, z.ZodObject<{
4157
4243
  sessionUpdate: z.ZodLiteral<"ls_message_done">;
4158
4244
  parentToolCallId: z.ZodOptional<z.ZodString>;
@@ -4168,12 +4254,12 @@ export declare const sessionEventSchema: z.ZodObject<{
4168
4254
  title: z.ZodString;
4169
4255
  options: z.ZodArray<z.ZodString, "many">;
4170
4256
  }, "strip", z.ZodTypeAny, {
4171
- id: string;
4172
4257
  options: string[];
4258
+ id: string;
4173
4259
  title: string;
4174
4260
  }, {
4175
- id: string;
4176
4261
  options: string[];
4262
+ id: string;
4177
4263
  title: string;
4178
4264
  }>, "many">>;
4179
4265
  }, "strip", z.ZodTypeAny, {
@@ -4181,8 +4267,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4181
4267
  messageId: string;
4182
4268
  role: "agent" | "thought" | "user";
4183
4269
  questions?: {
4184
- id: string;
4185
4270
  options: string[];
4271
+ id: string;
4186
4272
  title: string;
4187
4273
  }[] | undefined;
4188
4274
  parentToolCallId?: string | undefined;
@@ -4191,8 +4277,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4191
4277
  messageId: string;
4192
4278
  role: "agent" | "thought" | "user";
4193
4279
  questions?: {
4194
- id: string;
4195
4280
  options: string[];
4281
+ id: string;
4196
4282
  title: string;
4197
4283
  }[] | undefined;
4198
4284
  parentToolCallId?: string | undefined;
@@ -4218,34 +4304,34 @@ export declare const sessionEventSchema: z.ZodObject<{
4218
4304
  description?: string | undefined;
4219
4305
  }>, "many">;
4220
4306
  }, "strip", z.ZodTypeAny, {
4221
- id: string;
4222
4307
  values: {
4223
4308
  value: string;
4224
4309
  name: string;
4225
4310
  description?: string | undefined;
4226
4311
  }[];
4312
+ id: string;
4227
4313
  name: string;
4228
4314
  category: "model" | "other" | "mode" | "effort";
4229
4315
  current: string;
4230
4316
  }, {
4231
- id: string;
4232
4317
  values: {
4233
4318
  value: string;
4234
4319
  name: string;
4235
4320
  description?: string | undefined;
4236
4321
  }[];
4322
+ id: string;
4237
4323
  name: string;
4238
4324
  current: string;
4239
4325
  category?: "model" | "other" | "mode" | "effort" | undefined;
4240
4326
  }>, "many">;
4241
4327
  }, "strip", z.ZodTypeAny, {
4242
4328
  options: {
4243
- id: string;
4244
4329
  values: {
4245
4330
  value: string;
4246
4331
  name: string;
4247
4332
  description?: string | undefined;
4248
4333
  }[];
4334
+ id: string;
4249
4335
  name: string;
4250
4336
  category: "model" | "other" | "mode" | "effort";
4251
4337
  current: string;
@@ -4253,12 +4339,12 @@ export declare const sessionEventSchema: z.ZodObject<{
4253
4339
  sessionUpdate: "ls_config";
4254
4340
  }, {
4255
4341
  options: {
4256
- id: string;
4257
4342
  values: {
4258
4343
  value: string;
4259
4344
  name: string;
4260
4345
  description?: string | undefined;
4261
4346
  }[];
4347
+ id: string;
4262
4348
  name: string;
4263
4349
  current: string;
4264
4350
  category?: "model" | "other" | "mode" | "effort" | undefined;
@@ -4430,12 +4516,12 @@ export declare const sessionEventSchema: z.ZodObject<{
4430
4516
  values: z.ZodArray<z.ZodString, "many">;
4431
4517
  other: z.ZodOptional<z.ZodString>;
4432
4518
  }, "strip", z.ZodTypeAny, {
4433
- id: string;
4434
4519
  values: string[];
4520
+ id: string;
4435
4521
  other?: string | undefined;
4436
4522
  }, {
4437
- id: string;
4438
4523
  values: string[];
4524
+ id: string;
4439
4525
  other?: string | undefined;
4440
4526
  }>, "many">>;
4441
4527
  }, "strip", z.ZodTypeAny, {
@@ -4443,8 +4529,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4443
4529
  sessionUpdate: "ls_permission_resolved";
4444
4530
  optionId?: string | undefined;
4445
4531
  answers?: {
4446
- id: string;
4447
4532
  values: string[];
4533
+ id: string;
4448
4534
  other?: string | undefined;
4449
4535
  }[] | undefined;
4450
4536
  }, {
@@ -4452,8 +4538,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4452
4538
  sessionUpdate: "ls_permission_resolved";
4453
4539
  optionId?: string | undefined;
4454
4540
  answers?: {
4455
- id: string;
4456
4541
  values: string[];
4542
+ id: string;
4457
4543
  other?: string | undefined;
4458
4544
  }[] | undefined;
4459
4545
  }>, z.ZodObject<{
@@ -4472,10 +4558,10 @@ export declare const sessionEventSchema: z.ZodObject<{
4472
4558
  sessionUpdate: z.ZodLiteral<"ls_status">;
4473
4559
  state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
4474
4560
  }, "strip", z.ZodTypeAny, {
4475
- state: "error" | "running" | "idle" | "waiting" | "offline";
4561
+ state: "running" | "idle" | "waiting" | "error" | "offline";
4476
4562
  sessionUpdate: "ls_status";
4477
4563
  }, {
4478
- state: "error" | "running" | "idle" | "waiting" | "offline";
4564
+ state: "running" | "idle" | "waiting" | "error" | "offline";
4479
4565
  sessionUpdate: "ls_status";
4480
4566
  }>, z.ZodObject<{
4481
4567
  sessionUpdate: z.ZodLiteral<"ls_task">;
@@ -4578,8 +4664,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4578
4664
  type: "text";
4579
4665
  text: string;
4580
4666
  } | {
4581
- mimeType: string;
4582
4667
  type: "image";
4668
+ mimeType: string;
4583
4669
  data?: string | undefined;
4584
4670
  uri?: string | undefined;
4585
4671
  } | {
@@ -4595,8 +4681,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4595
4681
  type: "text";
4596
4682
  text: string;
4597
4683
  } | {
4598
- mimeType: string;
4599
4684
  type: "image";
4685
+ mimeType: string;
4600
4686
  data?: string | undefined;
4601
4687
  uri?: string | undefined;
4602
4688
  } | {
@@ -4613,8 +4699,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4613
4699
  type: "text";
4614
4700
  text: string;
4615
4701
  } | {
4616
- mimeType: string;
4617
4702
  type: "image";
4703
+ mimeType: string;
4618
4704
  data?: string | undefined;
4619
4705
  uri?: string | undefined;
4620
4706
  } | {
@@ -4641,6 +4727,7 @@ export declare const sessionEventSchema: z.ZodObject<{
4641
4727
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
4642
4728
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
4643
4729
  model?: string | undefined;
4730
+ name?: string | undefined;
4644
4731
  task?: string | undefined;
4645
4732
  agentType?: string | undefined;
4646
4733
  workflow?: {
@@ -4700,8 +4787,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4700
4787
  type: "text";
4701
4788
  text: string;
4702
4789
  } | {
4703
- mimeType: string;
4704
4790
  type: "image";
4791
+ mimeType: string;
4705
4792
  data?: string | undefined;
4706
4793
  uri?: string | undefined;
4707
4794
  } | {
@@ -4744,6 +4831,7 @@ export declare const sessionEventSchema: z.ZodObject<{
4744
4831
  action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
4745
4832
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
4746
4833
  model?: string | undefined;
4834
+ name?: string | undefined;
4747
4835
  task?: string | undefined;
4748
4836
  agentType?: string | undefined;
4749
4837
  workflow?: {
@@ -4803,8 +4891,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4803
4891
  type: "text";
4804
4892
  text: string;
4805
4893
  } | {
4806
- mimeType: string;
4807
4894
  type: "image";
4895
+ mimeType: string;
4808
4896
  data?: string | undefined;
4809
4897
  uri?: string | undefined;
4810
4898
  } | {
@@ -4840,8 +4928,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4840
4928
  } | {
4841
4929
  sessionUpdate: "ls_goal";
4842
4930
  goal: {
4843
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4844
4931
  objective: string;
4932
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4845
4933
  tokenBudget?: number | null | undefined;
4846
4934
  tokensUsed?: number | undefined;
4847
4935
  timeUsedSeconds?: number | undefined;
@@ -4866,24 +4954,31 @@ export declare const sessionEventSchema: z.ZodObject<{
4866
4954
  sessionUpdate: "usage_update";
4867
4955
  usedTokens?: number | undefined;
4868
4956
  contextWindow?: number | undefined;
4957
+ } | {
4958
+ questions: {
4959
+ options: string[];
4960
+ id: string;
4961
+ title: string;
4962
+ }[];
4963
+ sessionUpdate: "ls_async_questions";
4869
4964
  } | {
4870
4965
  sessionUpdate: "ls_message_done";
4871
4966
  messageId: string;
4872
4967
  role: "agent" | "thought" | "user";
4873
4968
  questions?: {
4874
- id: string;
4875
4969
  options: string[];
4970
+ id: string;
4876
4971
  title: string;
4877
4972
  }[] | undefined;
4878
4973
  parentToolCallId?: string | undefined;
4879
4974
  } | {
4880
4975
  options: {
4881
- id: string;
4882
4976
  values: {
4883
4977
  value: string;
4884
4978
  name: string;
4885
4979
  description?: string | undefined;
4886
4980
  }[];
4981
+ id: string;
4887
4982
  name: string;
4888
4983
  category: "model" | "other" | "mode" | "effort";
4889
4984
  current: string;
@@ -4930,8 +5025,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4930
5025
  sessionUpdate: "ls_permission_resolved";
4931
5026
  optionId?: string | undefined;
4932
5027
  answers?: {
4933
- id: string;
4934
5028
  values: string[];
5029
+ id: string;
4935
5030
  other?: string | undefined;
4936
5031
  }[] | undefined;
4937
5032
  } | {
@@ -4939,7 +5034,7 @@ export declare const sessionEventSchema: z.ZodObject<{
4939
5034
  sessionUpdate: "ls_driver";
4940
5035
  deviceId?: string | undefined;
4941
5036
  } | {
4942
- state: "error" | "running" | "idle" | "waiting" | "offline";
5037
+ state: "running" | "idle" | "waiting" | "error" | "offline";
4943
5038
  sessionUpdate: "ls_status";
4944
5039
  } | {
4945
5040
  task: {
@@ -4973,8 +5068,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4973
5068
  type: "text";
4974
5069
  text: string;
4975
5070
  } | {
4976
- mimeType: string;
4977
5071
  type: "image";
5072
+ mimeType: string;
4978
5073
  data?: string | undefined;
4979
5074
  uri?: string | undefined;
4980
5075
  } | {
@@ -4990,8 +5085,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4990
5085
  type: "text";
4991
5086
  text: string;
4992
5087
  } | {
4993
- mimeType: string;
4994
5088
  type: "image";
5089
+ mimeType: string;
4995
5090
  data?: string | undefined;
4996
5091
  uri?: string | undefined;
4997
5092
  } | {
@@ -5008,8 +5103,8 @@ export declare const sessionEventSchema: z.ZodObject<{
5008
5103
  type: "text";
5009
5104
  text: string;
5010
5105
  } | {
5011
- mimeType: string;
5012
5106
  type: "image";
5107
+ mimeType: string;
5013
5108
  data?: string | undefined;
5014
5109
  uri?: string | undefined;
5015
5110
  } | {
@@ -5036,6 +5131,7 @@ export declare const sessionEventSchema: z.ZodObject<{
5036
5131
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
5037
5132
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
5038
5133
  model?: string | undefined;
5134
+ name?: string | undefined;
5039
5135
  task?: string | undefined;
5040
5136
  agentType?: string | undefined;
5041
5137
  workflow?: {
@@ -5095,8 +5191,8 @@ export declare const sessionEventSchema: z.ZodObject<{
5095
5191
  type: "text";
5096
5192
  text: string;
5097
5193
  } | {
5098
- mimeType: string;
5099
5194
  type: "image";
5195
+ mimeType: string;
5100
5196
  data?: string | undefined;
5101
5197
  uri?: string | undefined;
5102
5198
  } | {
@@ -5139,6 +5235,7 @@ export declare const sessionEventSchema: z.ZodObject<{
5139
5235
  action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
5140
5236
  state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
5141
5237
  model?: string | undefined;
5238
+ name?: string | undefined;
5142
5239
  task?: string | undefined;
5143
5240
  agentType?: string | undefined;
5144
5241
  workflow?: {
@@ -5198,8 +5295,8 @@ export declare const sessionEventSchema: z.ZodObject<{
5198
5295
  type: "text";
5199
5296
  text: string;
5200
5297
  } | {
5201
- mimeType: string;
5202
5298
  type: "image";
5299
+ mimeType: string;
5203
5300
  data?: string | undefined;
5204
5301
  uri?: string | undefined;
5205
5302
  } | {
@@ -5235,8 +5332,8 @@ export declare const sessionEventSchema: z.ZodObject<{
5235
5332
  } | {
5236
5333
  sessionUpdate: "ls_goal";
5237
5334
  goal: {
5238
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
5239
5335
  objective: string;
5336
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
5240
5337
  tokenBudget?: number | null | undefined;
5241
5338
  tokensUsed?: number | undefined;
5242
5339
  timeUsedSeconds?: number | undefined;
@@ -5261,24 +5358,31 @@ export declare const sessionEventSchema: z.ZodObject<{
5261
5358
  sessionUpdate: "usage_update";
5262
5359
  usedTokens?: number | undefined;
5263
5360
  contextWindow?: number | undefined;
5361
+ } | {
5362
+ questions: {
5363
+ options: string[];
5364
+ id: string;
5365
+ title: string;
5366
+ }[];
5367
+ sessionUpdate: "ls_async_questions";
5264
5368
  } | {
5265
5369
  sessionUpdate: "ls_message_done";
5266
5370
  messageId: string;
5267
5371
  role: "agent" | "thought" | "user";
5268
5372
  questions?: {
5269
- id: string;
5270
5373
  options: string[];
5374
+ id: string;
5271
5375
  title: string;
5272
5376
  }[] | undefined;
5273
5377
  parentToolCallId?: string | undefined;
5274
5378
  } | {
5275
5379
  options: {
5276
- id: string;
5277
5380
  values: {
5278
5381
  value: string;
5279
5382
  name: string;
5280
5383
  description?: string | undefined;
5281
5384
  }[];
5385
+ id: string;
5282
5386
  name: string;
5283
5387
  current: string;
5284
5388
  category?: "model" | "other" | "mode" | "effort" | undefined;
@@ -5325,8 +5429,8 @@ export declare const sessionEventSchema: z.ZodObject<{
5325
5429
  sessionUpdate: "ls_permission_resolved";
5326
5430
  optionId?: string | undefined;
5327
5431
  answers?: {
5328
- id: string;
5329
5432
  values: string[];
5433
+ id: string;
5330
5434
  other?: string | undefined;
5331
5435
  }[] | undefined;
5332
5436
  } | {
@@ -5334,7 +5438,7 @@ export declare const sessionEventSchema: z.ZodObject<{
5334
5438
  sessionUpdate: "ls_driver";
5335
5439
  deviceId?: string | undefined;
5336
5440
  } | {
5337
- state: "error" | "running" | "idle" | "waiting" | "offline";
5441
+ state: "running" | "idle" | "waiting" | "error" | "offline";
5338
5442
  sessionUpdate: "ls_status";
5339
5443
  } | {
5340
5444
  task: {