@linkshell/wire 0.2.2 → 0.2.4

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
- type: "image";
18
17
  mimeType: string;
18
+ type: "image";
19
19
  data?: string | undefined;
20
20
  uri?: string | undefined;
21
21
  }, {
22
- type: "image";
23
22
  mimeType: string;
23
+ type: "image";
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
- type: "image";
64
63
  mimeType: string;
64
+ type: "image";
65
65
  data?: string | undefined;
66
66
  uri?: string | undefined;
67
67
  }, {
68
- type: "image";
69
68
  mimeType: string;
69
+ type: "image";
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
- type: "image";
96
95
  mimeType: string;
96
+ type: "image";
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
- type: "image";
112
111
  mimeType: string;
112
+ type: "image";
113
113
  data?: string | undefined;
114
114
  uri?: string | undefined;
115
115
  } | {
@@ -124,13 +124,13 @@ export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
124
124
  oldText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
125
  newText: z.ZodString;
126
126
  }, "strip", z.ZodTypeAny, {
127
- type: "diff";
128
127
  path: string;
128
+ type: "diff";
129
129
  newText: string;
130
130
  oldText?: string | null | undefined;
131
131
  }, {
132
- type: "diff";
133
132
  path: string;
133
+ type: "diff";
134
134
  newText: string;
135
135
  oldText?: string | null | undefined;
136
136
  }>, z.ZodObject<{
@@ -140,14 +140,14 @@ export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
140
140
  movePath: z.ZodOptional<z.ZodString>;
141
141
  diff: z.ZodString;
142
142
  }, "strip", z.ZodTypeAny, {
143
- type: "patch";
144
143
  path: string;
144
+ type: "patch";
145
145
  diff: string;
146
146
  change: "delete" | "add" | "update";
147
147
  movePath?: string | undefined;
148
148
  }, {
149
- type: "patch";
150
149
  path: string;
150
+ type: "patch";
151
151
  diff: string;
152
152
  change: "delete" | "add" | "update";
153
153
  movePath?: string | undefined;
@@ -240,7 +240,7 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
240
240
  }, "strip", z.ZodTypeAny, {
241
241
  id: string;
242
242
  title: string;
243
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
243
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
244
244
  toolCallId?: string | undefined;
245
245
  phaseId?: string | undefined;
246
246
  model?: string | undefined;
@@ -253,7 +253,7 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
253
253
  }, {
254
254
  id: string;
255
255
  title: string;
256
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
256
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
257
257
  toolCallId?: string | undefined;
258
258
  phaseId?: string | undefined;
259
259
  model?: string | undefined;
@@ -266,7 +266,7 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
266
266
  }>, "many">>;
267
267
  }, "strip", z.ZodTypeAny, {
268
268
  completed?: number | undefined;
269
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
269
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
270
270
  tokens?: number | undefined;
271
271
  durationMs?: number | undefined;
272
272
  startedAt?: number | undefined;
@@ -282,7 +282,7 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
282
282
  agents?: {
283
283
  id: string;
284
284
  title: string;
285
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
285
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
286
286
  toolCallId?: string | undefined;
287
287
  phaseId?: string | undefined;
288
288
  model?: string | undefined;
@@ -295,7 +295,7 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
295
295
  }[] | undefined;
296
296
  }, {
297
297
  completed?: number | undefined;
298
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
298
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
299
299
  tokens?: number | undefined;
300
300
  durationMs?: number | undefined;
301
301
  startedAt?: number | undefined;
@@ -311,7 +311,7 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
311
311
  agents?: {
312
312
  id: string;
313
313
  title: string;
314
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
314
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
315
315
  toolCallId?: string | undefined;
316
316
  phaseId?: string | undefined;
317
317
  model?: string | undefined;
@@ -325,14 +325,14 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
325
325
  }>>;
326
326
  }, "strip", z.ZodTypeAny, {
327
327
  type: "subagent";
328
- action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
329
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
328
+ action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
329
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
330
330
  model?: string | undefined;
331
331
  task?: string | undefined;
332
332
  agentType?: string | undefined;
333
333
  workflow?: {
334
334
  completed?: number | undefined;
335
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
335
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
336
336
  tokens?: number | undefined;
337
337
  durationMs?: number | undefined;
338
338
  startedAt?: number | undefined;
@@ -348,7 +348,7 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
348
348
  agents?: {
349
349
  id: string;
350
350
  title: string;
351
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
351
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
352
352
  toolCallId?: string | undefined;
353
353
  phaseId?: string | undefined;
354
354
  model?: string | undefined;
@@ -362,13 +362,14 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
362
362
  } | undefined;
363
363
  }, {
364
364
  type: "subagent";
365
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
365
+ action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
366
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
366
367
  model?: string | undefined;
367
368
  task?: string | undefined;
368
369
  agentType?: string | undefined;
369
370
  workflow?: {
370
371
  completed?: number | undefined;
371
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
372
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
372
373
  tokens?: number | undefined;
373
374
  durationMs?: number | undefined;
374
375
  startedAt?: number | undefined;
@@ -384,7 +385,7 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
384
385
  agents?: {
385
386
  id: string;
386
387
  title: string;
387
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
388
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
388
389
  toolCallId?: string | undefined;
389
390
  phaseId?: string | undefined;
390
391
  model?: string | undefined;
@@ -396,7 +397,6 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
396
397
  result?: string | undefined;
397
398
  }[] | undefined;
398
399
  } | undefined;
399
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
400
400
  }>, z.ZodObject<{
401
401
  type: z.ZodLiteral<"skill">;
402
402
  name: z.ZodString;
@@ -492,22 +492,22 @@ export declare const sessionConfigOptionSchema: z.ZodObject<{
492
492
  description?: string | undefined;
493
493
  }>, "many">;
494
494
  }, "strip", z.ZodTypeAny, {
495
+ id: string;
495
496
  values: {
496
497
  value: string;
497
498
  name: string;
498
499
  description?: string | undefined;
499
500
  }[];
500
- id: string;
501
501
  name: string;
502
502
  category: "model" | "other" | "mode" | "effort";
503
503
  current: string;
504
504
  }, {
505
+ id: string;
505
506
  values: {
506
507
  value: string;
507
508
  name: string;
508
509
  description?: string | undefined;
509
510
  }[];
510
- id: string;
511
511
  name: string;
512
512
  current: string;
513
513
  category?: "model" | "other" | "mode" | "effort" | undefined;
@@ -531,13 +531,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
531
531
  data: z.ZodOptional<z.ZodString>;
532
532
  uri: z.ZodOptional<z.ZodString>;
533
533
  }, "strip", z.ZodTypeAny, {
534
- type: "image";
535
534
  mimeType: string;
535
+ type: "image";
536
536
  data?: string | undefined;
537
537
  uri?: string | undefined;
538
538
  }, {
539
- type: "image";
540
539
  mimeType: string;
540
+ type: "image";
541
541
  data?: string | undefined;
542
542
  uri?: string | undefined;
543
543
  }>, z.ZodObject<{
@@ -562,8 +562,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
562
562
  type: "text";
563
563
  text: string;
564
564
  } | {
565
- type: "image";
566
565
  mimeType: string;
566
+ type: "image";
567
567
  data?: string | undefined;
568
568
  uri?: string | undefined;
569
569
  } | {
@@ -579,8 +579,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
579
579
  type: "text";
580
580
  text: string;
581
581
  } | {
582
- type: "image";
583
582
  mimeType: string;
583
+ type: "image";
584
584
  data?: string | undefined;
585
585
  uri?: string | undefined;
586
586
  } | {
@@ -610,13 +610,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
610
610
  data: z.ZodOptional<z.ZodString>;
611
611
  uri: z.ZodOptional<z.ZodString>;
612
612
  }, "strip", z.ZodTypeAny, {
613
- type: "image";
614
613
  mimeType: string;
614
+ type: "image";
615
615
  data?: string | undefined;
616
616
  uri?: string | undefined;
617
617
  }, {
618
- type: "image";
619
618
  mimeType: string;
619
+ type: "image";
620
620
  data?: string | undefined;
621
621
  uri?: string | undefined;
622
622
  }>, z.ZodObject<{
@@ -641,8 +641,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
641
641
  type: "text";
642
642
  text: string;
643
643
  } | {
644
- type: "image";
645
644
  mimeType: string;
645
+ type: "image";
646
646
  data?: string | undefined;
647
647
  uri?: string | undefined;
648
648
  } | {
@@ -659,8 +659,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
659
659
  type: "text";
660
660
  text: string;
661
661
  } | {
662
- type: "image";
663
662
  mimeType: string;
663
+ type: "image";
664
664
  data?: string | undefined;
665
665
  uri?: string | undefined;
666
666
  } | {
@@ -691,13 +691,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
691
691
  data: z.ZodOptional<z.ZodString>;
692
692
  uri: z.ZodOptional<z.ZodString>;
693
693
  }, "strip", z.ZodTypeAny, {
694
- type: "image";
695
694
  mimeType: string;
695
+ type: "image";
696
696
  data?: string | undefined;
697
697
  uri?: string | undefined;
698
698
  }, {
699
- type: "image";
700
699
  mimeType: string;
700
+ type: "image";
701
701
  data?: string | undefined;
702
702
  uri?: string | undefined;
703
703
  }>, z.ZodObject<{
@@ -722,8 +722,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
722
722
  type: "text";
723
723
  text: string;
724
724
  } | {
725
- type: "image";
726
725
  mimeType: string;
726
+ type: "image";
727
727
  data?: string | undefined;
728
728
  uri?: string | undefined;
729
729
  } | {
@@ -740,8 +740,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
740
740
  type: "text";
741
741
  text: string;
742
742
  } | {
743
- type: "image";
744
743
  mimeType: string;
744
+ type: "image";
745
745
  data?: string | undefined;
746
746
  uri?: string | undefined;
747
747
  } | {
@@ -779,13 +779,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
779
779
  data: z.ZodOptional<z.ZodString>;
780
780
  uri: z.ZodOptional<z.ZodString>;
781
781
  }, "strip", z.ZodTypeAny, {
782
- type: "image";
783
782
  mimeType: string;
783
+ type: "image";
784
784
  data?: string | undefined;
785
785
  uri?: string | undefined;
786
786
  }, {
787
- type: "image";
788
787
  mimeType: string;
788
+ type: "image";
789
789
  data?: string | undefined;
790
790
  uri?: string | undefined;
791
791
  }>, z.ZodObject<{
@@ -811,8 +811,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
811
811
  type: "text";
812
812
  text: string;
813
813
  } | {
814
- type: "image";
815
814
  mimeType: string;
815
+ type: "image";
816
816
  data?: string | undefined;
817
817
  uri?: string | undefined;
818
818
  } | {
@@ -827,8 +827,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
827
827
  type: "text";
828
828
  text: string;
829
829
  } | {
830
- type: "image";
831
830
  mimeType: string;
831
+ type: "image";
832
832
  data?: string | undefined;
833
833
  uri?: string | undefined;
834
834
  } | {
@@ -843,13 +843,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
843
843
  oldText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
844
844
  newText: z.ZodString;
845
845
  }, "strip", z.ZodTypeAny, {
846
- type: "diff";
847
846
  path: string;
847
+ type: "diff";
848
848
  newText: string;
849
849
  oldText?: string | null | undefined;
850
850
  }, {
851
- type: "diff";
852
851
  path: string;
852
+ type: "diff";
853
853
  newText: string;
854
854
  oldText?: string | null | undefined;
855
855
  }>, z.ZodObject<{
@@ -859,14 +859,14 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
859
859
  movePath: z.ZodOptional<z.ZodString>;
860
860
  diff: z.ZodString;
861
861
  }, "strip", z.ZodTypeAny, {
862
- type: "patch";
863
862
  path: string;
863
+ type: "patch";
864
864
  diff: string;
865
865
  change: "delete" | "add" | "update";
866
866
  movePath?: string | undefined;
867
867
  }, {
868
- type: "patch";
869
868
  path: string;
869
+ type: "patch";
870
870
  diff: string;
871
871
  change: "delete" | "add" | "update";
872
872
  movePath?: string | undefined;
@@ -952,7 +952,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
952
952
  }, "strip", z.ZodTypeAny, {
953
953
  id: string;
954
954
  title: string;
955
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
955
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
956
956
  toolCallId?: string | undefined;
957
957
  phaseId?: string | undefined;
958
958
  model?: string | undefined;
@@ -965,7 +965,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
965
965
  }, {
966
966
  id: string;
967
967
  title: string;
968
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
968
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
969
969
  toolCallId?: string | undefined;
970
970
  phaseId?: string | undefined;
971
971
  model?: string | undefined;
@@ -978,7 +978,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
978
978
  }>, "many">>;
979
979
  }, "strip", z.ZodTypeAny, {
980
980
  completed?: number | undefined;
981
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
981
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
982
982
  tokens?: number | undefined;
983
983
  durationMs?: number | undefined;
984
984
  startedAt?: number | undefined;
@@ -994,7 +994,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
994
994
  agents?: {
995
995
  id: string;
996
996
  title: string;
997
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
997
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
998
998
  toolCallId?: string | undefined;
999
999
  phaseId?: string | undefined;
1000
1000
  model?: string | undefined;
@@ -1007,7 +1007,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1007
1007
  }[] | undefined;
1008
1008
  }, {
1009
1009
  completed?: number | undefined;
1010
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
1010
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
1011
1011
  tokens?: number | undefined;
1012
1012
  durationMs?: number | undefined;
1013
1013
  startedAt?: number | undefined;
@@ -1023,7 +1023,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1023
1023
  agents?: {
1024
1024
  id: string;
1025
1025
  title: string;
1026
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
1026
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
1027
1027
  toolCallId?: string | undefined;
1028
1028
  phaseId?: string | undefined;
1029
1029
  model?: string | undefined;
@@ -1037,14 +1037,14 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1037
1037
  }>>;
1038
1038
  }, "strip", z.ZodTypeAny, {
1039
1039
  type: "subagent";
1040
- action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
1041
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
1040
+ action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
1041
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1042
1042
  model?: string | undefined;
1043
1043
  task?: string | undefined;
1044
1044
  agentType?: string | undefined;
1045
1045
  workflow?: {
1046
1046
  completed?: number | undefined;
1047
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
1047
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
1048
1048
  tokens?: number | undefined;
1049
1049
  durationMs?: number | undefined;
1050
1050
  startedAt?: number | undefined;
@@ -1060,7 +1060,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1060
1060
  agents?: {
1061
1061
  id: string;
1062
1062
  title: string;
1063
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
1063
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
1064
1064
  toolCallId?: string | undefined;
1065
1065
  phaseId?: string | undefined;
1066
1066
  model?: string | undefined;
@@ -1074,13 +1074,14 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1074
1074
  } | undefined;
1075
1075
  }, {
1076
1076
  type: "subagent";
1077
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
1077
+ action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
1078
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1078
1079
  model?: string | undefined;
1079
1080
  task?: string | undefined;
1080
1081
  agentType?: string | undefined;
1081
1082
  workflow?: {
1082
1083
  completed?: number | undefined;
1083
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
1084
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
1084
1085
  tokens?: number | undefined;
1085
1086
  durationMs?: number | undefined;
1086
1087
  startedAt?: number | undefined;
@@ -1096,7 +1097,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1096
1097
  agents?: {
1097
1098
  id: string;
1098
1099
  title: string;
1099
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
1100
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
1100
1101
  toolCallId?: string | undefined;
1101
1102
  phaseId?: string | undefined;
1102
1103
  model?: string | undefined;
@@ -1108,7 +1109,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1108
1109
  result?: string | undefined;
1109
1110
  }[] | undefined;
1110
1111
  } | undefined;
1111
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
1112
1112
  }>, z.ZodObject<{
1113
1113
  type: z.ZodLiteral<"skill">;
1114
1114
  name: z.ZodString;
@@ -1179,14 +1179,14 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1179
1179
  server: string;
1180
1180
  } | {
1181
1181
  type: "subagent";
1182
- action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
1183
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
1182
+ action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
1183
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1184
1184
  model?: string | undefined;
1185
1185
  task?: string | undefined;
1186
1186
  agentType?: string | undefined;
1187
1187
  workflow?: {
1188
1188
  completed?: number | undefined;
1189
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
1189
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
1190
1190
  tokens?: number | undefined;
1191
1191
  durationMs?: number | undefined;
1192
1192
  startedAt?: number | undefined;
@@ -1202,7 +1202,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1202
1202
  agents?: {
1203
1203
  id: string;
1204
1204
  title: string;
1205
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
1205
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
1206
1206
  toolCallId?: string | undefined;
1207
1207
  phaseId?: string | undefined;
1208
1208
  model?: string | undefined;
@@ -1241,8 +1241,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1241
1241
  type: "text";
1242
1242
  text: string;
1243
1243
  } | {
1244
- type: "image";
1245
1244
  mimeType: string;
1245
+ type: "image";
1246
1246
  data?: string | undefined;
1247
1247
  uri?: string | undefined;
1248
1248
  } | {
@@ -1252,13 +1252,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1252
1252
  kind?: "agent" | "file" | "skill" | undefined;
1253
1253
  };
1254
1254
  } | {
1255
- type: "diff";
1256
1255
  path: string;
1256
+ type: "diff";
1257
1257
  newText: string;
1258
1258
  oldText?: string | null | undefined;
1259
1259
  } | {
1260
- type: "patch";
1261
1260
  path: string;
1261
+ type: "patch";
1262
1262
  diff: string;
1263
1263
  change: "delete" | "add" | "update";
1264
1264
  movePath?: string | undefined;
@@ -1283,13 +1283,14 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1283
1283
  server: string;
1284
1284
  } | {
1285
1285
  type: "subagent";
1286
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
1286
+ action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
1287
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1287
1288
  model?: string | undefined;
1288
1289
  task?: string | undefined;
1289
1290
  agentType?: string | undefined;
1290
1291
  workflow?: {
1291
1292
  completed?: number | undefined;
1292
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
1293
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
1293
1294
  tokens?: number | undefined;
1294
1295
  durationMs?: number | undefined;
1295
1296
  startedAt?: number | undefined;
@@ -1305,7 +1306,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1305
1306
  agents?: {
1306
1307
  id: string;
1307
1308
  title: string;
1308
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
1309
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
1309
1310
  toolCallId?: string | undefined;
1310
1311
  phaseId?: string | undefined;
1311
1312
  model?: string | undefined;
@@ -1317,7 +1318,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1317
1318
  result?: string | undefined;
1318
1319
  }[] | undefined;
1319
1320
  } | undefined;
1320
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
1321
1321
  } | {
1322
1322
  type: "skill";
1323
1323
  name: string;
@@ -1345,8 +1345,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1345
1345
  type: "text";
1346
1346
  text: string;
1347
1347
  } | {
1348
- type: "image";
1349
1348
  mimeType: string;
1349
+ type: "image";
1350
1350
  data?: string | undefined;
1351
1351
  uri?: string | undefined;
1352
1352
  } | {
@@ -1356,13 +1356,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1356
1356
  kind?: "agent" | "file" | "skill" | undefined;
1357
1357
  };
1358
1358
  } | {
1359
- type: "diff";
1360
1359
  path: string;
1360
+ type: "diff";
1361
1361
  newText: string;
1362
1362
  oldText?: string | null | undefined;
1363
1363
  } | {
1364
- type: "patch";
1365
1364
  path: string;
1365
+ type: "patch";
1366
1366
  diff: string;
1367
1367
  change: "delete" | "add" | "update";
1368
1368
  movePath?: string | undefined;
@@ -1443,7 +1443,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1443
1443
  }, "strip", z.ZodTypeAny, {
1444
1444
  id: string;
1445
1445
  title: string;
1446
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
1446
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
1447
1447
  toolCallId?: string | undefined;
1448
1448
  phaseId?: string | undefined;
1449
1449
  model?: string | undefined;
@@ -1456,7 +1456,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1456
1456
  }, {
1457
1457
  id: string;
1458
1458
  title: string;
1459
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
1459
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
1460
1460
  toolCallId?: string | undefined;
1461
1461
  phaseId?: string | undefined;
1462
1462
  model?: string | undefined;
@@ -1469,7 +1469,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1469
1469
  }>, "many">>;
1470
1470
  }, "strip", z.ZodTypeAny, {
1471
1471
  completed?: number | undefined;
1472
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
1472
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
1473
1473
  tokens?: number | undefined;
1474
1474
  durationMs?: number | undefined;
1475
1475
  startedAt?: number | undefined;
@@ -1485,7 +1485,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1485
1485
  agents?: {
1486
1486
  id: string;
1487
1487
  title: string;
1488
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
1488
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
1489
1489
  toolCallId?: string | undefined;
1490
1490
  phaseId?: string | undefined;
1491
1491
  model?: string | undefined;
@@ -1498,7 +1498,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1498
1498
  }[] | undefined;
1499
1499
  }, {
1500
1500
  completed?: number | undefined;
1501
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
1501
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
1502
1502
  tokens?: number | undefined;
1503
1503
  durationMs?: number | undefined;
1504
1504
  startedAt?: number | undefined;
@@ -1514,7 +1514,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1514
1514
  agents?: {
1515
1515
  id: string;
1516
1516
  title: string;
1517
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
1517
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
1518
1518
  toolCallId?: string | undefined;
1519
1519
  phaseId?: string | undefined;
1520
1520
  model?: string | undefined;
@@ -1528,14 +1528,14 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1528
1528
  }>>;
1529
1529
  }, "strip", z.ZodTypeAny, {
1530
1530
  type: "subagent";
1531
- action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
1532
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
1531
+ action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
1532
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1533
1533
  model?: string | undefined;
1534
1534
  task?: string | undefined;
1535
1535
  agentType?: string | undefined;
1536
1536
  workflow?: {
1537
1537
  completed?: number | undefined;
1538
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
1538
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
1539
1539
  tokens?: number | undefined;
1540
1540
  durationMs?: number | undefined;
1541
1541
  startedAt?: number | undefined;
@@ -1551,7 +1551,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1551
1551
  agents?: {
1552
1552
  id: string;
1553
1553
  title: string;
1554
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
1554
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
1555
1555
  toolCallId?: string | undefined;
1556
1556
  phaseId?: string | undefined;
1557
1557
  model?: string | undefined;
@@ -1565,13 +1565,14 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1565
1565
  } | undefined;
1566
1566
  }, {
1567
1567
  type: "subagent";
1568
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
1568
+ action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
1569
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1569
1570
  model?: string | undefined;
1570
1571
  task?: string | undefined;
1571
1572
  agentType?: string | undefined;
1572
1573
  workflow?: {
1573
1574
  completed?: number | undefined;
1574
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
1575
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
1575
1576
  tokens?: number | undefined;
1576
1577
  durationMs?: number | undefined;
1577
1578
  startedAt?: number | undefined;
@@ -1587,7 +1588,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1587
1588
  agents?: {
1588
1589
  id: string;
1589
1590
  title: string;
1590
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
1591
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
1591
1592
  toolCallId?: string | undefined;
1592
1593
  phaseId?: string | undefined;
1593
1594
  model?: string | undefined;
@@ -1599,7 +1600,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1599
1600
  result?: string | undefined;
1600
1601
  }[] | undefined;
1601
1602
  } | undefined;
1602
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
1603
1603
  }>, z.ZodObject<{
1604
1604
  type: z.ZodLiteral<"skill">;
1605
1605
  name: z.ZodString;
@@ -1676,13 +1676,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1676
1676
  data: z.ZodOptional<z.ZodString>;
1677
1677
  uri: z.ZodOptional<z.ZodString>;
1678
1678
  }, "strip", z.ZodTypeAny, {
1679
- type: "image";
1680
1679
  mimeType: string;
1680
+ type: "image";
1681
1681
  data?: string | undefined;
1682
1682
  uri?: string | undefined;
1683
1683
  }, {
1684
- type: "image";
1685
1684
  mimeType: string;
1685
+ type: "image";
1686
1686
  data?: string | undefined;
1687
1687
  uri?: string | undefined;
1688
1688
  }>, z.ZodObject<{
@@ -1708,8 +1708,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1708
1708
  type: "text";
1709
1709
  text: string;
1710
1710
  } | {
1711
- type: "image";
1712
1711
  mimeType: string;
1712
+ type: "image";
1713
1713
  data?: string | undefined;
1714
1714
  uri?: string | undefined;
1715
1715
  } | {
@@ -1724,8 +1724,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1724
1724
  type: "text";
1725
1725
  text: string;
1726
1726
  } | {
1727
- type: "image";
1728
1727
  mimeType: string;
1728
+ type: "image";
1729
1729
  data?: string | undefined;
1730
1730
  uri?: string | undefined;
1731
1731
  } | {
@@ -1740,13 +1740,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1740
1740
  oldText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1741
1741
  newText: z.ZodString;
1742
1742
  }, "strip", z.ZodTypeAny, {
1743
- type: "diff";
1744
1743
  path: string;
1744
+ type: "diff";
1745
1745
  newText: string;
1746
1746
  oldText?: string | null | undefined;
1747
1747
  }, {
1748
- type: "diff";
1749
1748
  path: string;
1749
+ type: "diff";
1750
1750
  newText: string;
1751
1751
  oldText?: string | null | undefined;
1752
1752
  }>, z.ZodObject<{
@@ -1756,14 +1756,14 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1756
1756
  movePath: z.ZodOptional<z.ZodString>;
1757
1757
  diff: z.ZodString;
1758
1758
  }, "strip", z.ZodTypeAny, {
1759
- type: "patch";
1760
1759
  path: string;
1760
+ type: "patch";
1761
1761
  diff: string;
1762
1762
  change: "delete" | "add" | "update";
1763
1763
  movePath?: string | undefined;
1764
1764
  }, {
1765
- type: "patch";
1766
1765
  path: string;
1766
+ type: "patch";
1767
1767
  diff: string;
1768
1768
  change: "delete" | "add" | "update";
1769
1769
  movePath?: string | undefined;
@@ -1791,14 +1791,14 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1791
1791
  server: string;
1792
1792
  } | {
1793
1793
  type: "subagent";
1794
- action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
1795
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
1794
+ action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
1795
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1796
1796
  model?: string | undefined;
1797
1797
  task?: string | undefined;
1798
1798
  agentType?: string | undefined;
1799
1799
  workflow?: {
1800
1800
  completed?: number | undefined;
1801
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
1801
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
1802
1802
  tokens?: number | undefined;
1803
1803
  durationMs?: number | undefined;
1804
1804
  startedAt?: number | undefined;
@@ -1814,7 +1814,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1814
1814
  agents?: {
1815
1815
  id: string;
1816
1816
  title: string;
1817
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
1817
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
1818
1818
  toolCallId?: string | undefined;
1819
1819
  phaseId?: string | undefined;
1820
1820
  model?: string | undefined;
@@ -1853,8 +1853,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1853
1853
  type: "text";
1854
1854
  text: string;
1855
1855
  } | {
1856
- type: "image";
1857
1856
  mimeType: string;
1857
+ type: "image";
1858
1858
  data?: string | undefined;
1859
1859
  uri?: string | undefined;
1860
1860
  } | {
@@ -1864,13 +1864,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1864
1864
  kind?: "agent" | "file" | "skill" | undefined;
1865
1865
  };
1866
1866
  } | {
1867
- type: "diff";
1868
1867
  path: string;
1868
+ type: "diff";
1869
1869
  newText: string;
1870
1870
  oldText?: string | null | undefined;
1871
1871
  } | {
1872
- type: "patch";
1873
1872
  path: string;
1873
+ type: "patch";
1874
1874
  diff: string;
1875
1875
  change: "delete" | "add" | "update";
1876
1876
  movePath?: string | undefined;
@@ -1891,13 +1891,14 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1891
1891
  server: string;
1892
1892
  } | {
1893
1893
  type: "subagent";
1894
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
1894
+ action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
1895
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
1895
1896
  model?: string | undefined;
1896
1897
  task?: string | undefined;
1897
1898
  agentType?: string | undefined;
1898
1899
  workflow?: {
1899
1900
  completed?: number | undefined;
1900
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
1901
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
1901
1902
  tokens?: number | undefined;
1902
1903
  durationMs?: number | undefined;
1903
1904
  startedAt?: number | undefined;
@@ -1913,7 +1914,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1913
1914
  agents?: {
1914
1915
  id: string;
1915
1916
  title: string;
1916
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
1917
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
1917
1918
  toolCallId?: string | undefined;
1918
1919
  phaseId?: string | undefined;
1919
1920
  model?: string | undefined;
@@ -1925,7 +1926,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1925
1926
  result?: string | undefined;
1926
1927
  }[] | undefined;
1927
1928
  } | undefined;
1928
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
1929
1929
  } | {
1930
1930
  type: "skill";
1931
1931
  name: string;
@@ -1953,8 +1953,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1953
1953
  type: "text";
1954
1954
  text: string;
1955
1955
  } | {
1956
- type: "image";
1957
1956
  mimeType: string;
1957
+ type: "image";
1958
1958
  data?: string | undefined;
1959
1959
  uri?: string | undefined;
1960
1960
  } | {
@@ -1964,13 +1964,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1964
1964
  kind?: "agent" | "file" | "skill" | undefined;
1965
1965
  };
1966
1966
  } | {
1967
- type: "diff";
1968
1967
  path: string;
1968
+ type: "diff";
1969
1969
  newText: string;
1970
1970
  oldText?: string | null | undefined;
1971
1971
  } | {
1972
- type: "patch";
1973
1972
  path: string;
1973
+ type: "patch";
1974
1974
  diff: string;
1975
1975
  change: "delete" | "add" | "update";
1976
1976
  movePath?: string | undefined;
@@ -2009,6 +2009,55 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2009
2009
  priority?: "high" | "medium" | "low" | undefined;
2010
2010
  }[];
2011
2011
  sessionUpdate: "plan";
2012
+ }>, z.ZodObject<{
2013
+ sessionUpdate: z.ZodLiteral<"ls_goal">;
2014
+ goal: z.ZodNullable<z.ZodObject<{
2015
+ objective: z.ZodString;
2016
+ status: z.ZodEnum<["active", "paused", "blocked", "usageLimited", "budgetLimited", "complete"]>;
2017
+ tokenBudget: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2018
+ tokensUsed: z.ZodOptional<z.ZodNumber>;
2019
+ timeUsedSeconds: z.ZodOptional<z.ZodNumber>;
2020
+ iterations: z.ZodOptional<z.ZodNumber>;
2021
+ lastReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2022
+ }, "strip", z.ZodTypeAny, {
2023
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2024
+ objective: string;
2025
+ tokenBudget?: number | null | undefined;
2026
+ tokensUsed?: number | undefined;
2027
+ timeUsedSeconds?: number | undefined;
2028
+ iterations?: number | undefined;
2029
+ lastReason?: string | null | undefined;
2030
+ }, {
2031
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2032
+ objective: string;
2033
+ tokenBudget?: number | null | undefined;
2034
+ tokensUsed?: number | undefined;
2035
+ timeUsedSeconds?: number | undefined;
2036
+ iterations?: number | undefined;
2037
+ lastReason?: string | null | undefined;
2038
+ }>>;
2039
+ }, "strip", z.ZodTypeAny, {
2040
+ sessionUpdate: "ls_goal";
2041
+ goal: {
2042
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2043
+ objective: string;
2044
+ tokenBudget?: number | null | undefined;
2045
+ tokensUsed?: number | undefined;
2046
+ timeUsedSeconds?: number | undefined;
2047
+ iterations?: number | undefined;
2048
+ lastReason?: string | null | undefined;
2049
+ } | null;
2050
+ }, {
2051
+ sessionUpdate: "ls_goal";
2052
+ goal: {
2053
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2054
+ objective: string;
2055
+ tokenBudget?: number | null | undefined;
2056
+ tokensUsed?: number | undefined;
2057
+ timeUsedSeconds?: number | undefined;
2058
+ iterations?: number | undefined;
2059
+ lastReason?: string | null | undefined;
2060
+ } | null;
2012
2061
  }>, z.ZodObject<{
2013
2062
  sessionUpdate: z.ZodLiteral<"available_commands_update">;
2014
2063
  availableCommands: z.ZodArray<z.ZodObject<{
@@ -2108,34 +2157,34 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2108
2157
  description?: string | undefined;
2109
2158
  }>, "many">;
2110
2159
  }, "strip", z.ZodTypeAny, {
2160
+ id: string;
2111
2161
  values: {
2112
2162
  value: string;
2113
2163
  name: string;
2114
2164
  description?: string | undefined;
2115
2165
  }[];
2116
- id: string;
2117
2166
  name: string;
2118
2167
  category: "model" | "other" | "mode" | "effort";
2119
2168
  current: string;
2120
2169
  }, {
2170
+ id: string;
2121
2171
  values: {
2122
2172
  value: string;
2123
2173
  name: string;
2124
2174
  description?: string | undefined;
2125
2175
  }[];
2126
- id: string;
2127
2176
  name: string;
2128
2177
  current: string;
2129
2178
  category?: "model" | "other" | "mode" | "effort" | undefined;
2130
2179
  }>, "many">;
2131
2180
  }, "strip", z.ZodTypeAny, {
2132
2181
  options: {
2182
+ id: string;
2133
2183
  values: {
2134
2184
  value: string;
2135
2185
  name: string;
2136
2186
  description?: string | undefined;
2137
2187
  }[];
2138
- id: string;
2139
2188
  name: string;
2140
2189
  category: "model" | "other" | "mode" | "effort";
2141
2190
  current: string;
@@ -2143,12 +2192,12 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2143
2192
  sessionUpdate: "ls_config";
2144
2193
  }, {
2145
2194
  options: {
2195
+ id: string;
2146
2196
  values: {
2147
2197
  value: string;
2148
2198
  name: string;
2149
2199
  description?: string | undefined;
2150
2200
  }[];
2151
- id: string;
2152
2201
  name: string;
2153
2202
  current: string;
2154
2203
  category?: "model" | "other" | "mode" | "effort" | undefined;
@@ -2320,12 +2369,12 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2320
2369
  values: z.ZodArray<z.ZodString, "many">;
2321
2370
  other: z.ZodOptional<z.ZodString>;
2322
2371
  }, "strip", z.ZodTypeAny, {
2323
- values: string[];
2324
2372
  id: string;
2373
+ values: string[];
2325
2374
  other?: string | undefined;
2326
2375
  }, {
2327
- values: string[];
2328
2376
  id: string;
2377
+ values: string[];
2329
2378
  other?: string | undefined;
2330
2379
  }>, "many">>;
2331
2380
  }, "strip", z.ZodTypeAny, {
@@ -2333,8 +2382,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2333
2382
  sessionUpdate: "ls_permission_resolved";
2334
2383
  optionId?: string | undefined;
2335
2384
  answers?: {
2336
- values: string[];
2337
2385
  id: string;
2386
+ values: string[];
2338
2387
  other?: string | undefined;
2339
2388
  }[] | undefined;
2340
2389
  }, {
@@ -2342,8 +2391,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2342
2391
  sessionUpdate: "ls_permission_resolved";
2343
2392
  optionId?: string | undefined;
2344
2393
  answers?: {
2345
- values: string[];
2346
2394
  id: string;
2395
+ values: string[];
2347
2396
  other?: string | undefined;
2348
2397
  }[] | undefined;
2349
2398
  }>, z.ZodObject<{
@@ -2367,6 +2416,85 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2367
2416
  }, {
2368
2417
  state: "error" | "running" | "idle" | "waiting" | "offline";
2369
2418
  sessionUpdate: "ls_status";
2419
+ }>, z.ZodObject<{
2420
+ sessionUpdate: z.ZodLiteral<"ls_task">;
2421
+ task: z.ZodObject<{
2422
+ id: z.ZodString;
2423
+ kind: z.ZodEnum<["shell", "monitor"]>;
2424
+ toolCallId: z.ZodOptional<z.ZodString>;
2425
+ title: z.ZodString;
2426
+ command: z.ZodOptional<z.ZodString>;
2427
+ state: z.ZodEnum<["running", "completed", "failed", "stopped", "unknown"]>;
2428
+ startedAt: z.ZodNumber;
2429
+ endedAt: z.ZodOptional<z.ZodNumber>;
2430
+ summary: z.ZodOptional<z.ZodString>;
2431
+ exitCode: z.ZodOptional<z.ZodNumber>;
2432
+ output: z.ZodOptional<z.ZodBoolean>;
2433
+ canStop: z.ZodOptional<z.ZodBoolean>;
2434
+ lastSeq: z.ZodOptional<z.ZodNumber>;
2435
+ }, "strip", z.ZodTypeAny, {
2436
+ id: string;
2437
+ title: string;
2438
+ state: "unknown" | "running" | "completed" | "failed" | "stopped";
2439
+ startedAt: number;
2440
+ kind: "shell" | "monitor";
2441
+ toolCallId?: string | undefined;
2442
+ endedAt?: number | undefined;
2443
+ lastSeq?: number | undefined;
2444
+ command?: string | undefined;
2445
+ summary?: string | undefined;
2446
+ exitCode?: number | undefined;
2447
+ output?: boolean | undefined;
2448
+ canStop?: boolean | undefined;
2449
+ }, {
2450
+ id: string;
2451
+ title: string;
2452
+ state: "unknown" | "running" | "completed" | "failed" | "stopped";
2453
+ startedAt: number;
2454
+ kind: "shell" | "monitor";
2455
+ toolCallId?: string | undefined;
2456
+ endedAt?: number | undefined;
2457
+ lastSeq?: number | undefined;
2458
+ command?: string | undefined;
2459
+ summary?: string | undefined;
2460
+ exitCode?: number | undefined;
2461
+ output?: boolean | undefined;
2462
+ canStop?: boolean | undefined;
2463
+ }>;
2464
+ }, "strip", z.ZodTypeAny, {
2465
+ task: {
2466
+ id: string;
2467
+ title: string;
2468
+ state: "unknown" | "running" | "completed" | "failed" | "stopped";
2469
+ startedAt: number;
2470
+ kind: "shell" | "monitor";
2471
+ toolCallId?: string | undefined;
2472
+ endedAt?: number | undefined;
2473
+ lastSeq?: number | undefined;
2474
+ command?: string | undefined;
2475
+ summary?: string | undefined;
2476
+ exitCode?: number | undefined;
2477
+ output?: boolean | undefined;
2478
+ canStop?: boolean | undefined;
2479
+ };
2480
+ sessionUpdate: "ls_task";
2481
+ }, {
2482
+ task: {
2483
+ id: string;
2484
+ title: string;
2485
+ state: "unknown" | "running" | "completed" | "failed" | "stopped";
2486
+ startedAt: number;
2487
+ kind: "shell" | "monitor";
2488
+ toolCallId?: string | undefined;
2489
+ endedAt?: number | undefined;
2490
+ lastSeq?: number | undefined;
2491
+ command?: string | undefined;
2492
+ summary?: string | undefined;
2493
+ exitCode?: number | undefined;
2494
+ output?: boolean | undefined;
2495
+ canStop?: boolean | undefined;
2496
+ };
2497
+ sessionUpdate: "ls_task";
2370
2498
  }>, z.ZodObject<{
2371
2499
  sessionUpdate: z.ZodLiteral<"ls_error">;
2372
2500
  code: z.ZodString;
@@ -2408,13 +2536,13 @@ export declare const sessionEventSchema: z.ZodObject<{
2408
2536
  data: z.ZodOptional<z.ZodString>;
2409
2537
  uri: z.ZodOptional<z.ZodString>;
2410
2538
  }, "strip", z.ZodTypeAny, {
2411
- type: "image";
2412
2539
  mimeType: string;
2540
+ type: "image";
2413
2541
  data?: string | undefined;
2414
2542
  uri?: string | undefined;
2415
2543
  }, {
2416
- type: "image";
2417
2544
  mimeType: string;
2545
+ type: "image";
2418
2546
  data?: string | undefined;
2419
2547
  uri?: string | undefined;
2420
2548
  }>, z.ZodObject<{
@@ -2439,8 +2567,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2439
2567
  type: "text";
2440
2568
  text: string;
2441
2569
  } | {
2442
- type: "image";
2443
2570
  mimeType: string;
2571
+ type: "image";
2444
2572
  data?: string | undefined;
2445
2573
  uri?: string | undefined;
2446
2574
  } | {
@@ -2456,8 +2584,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2456
2584
  type: "text";
2457
2585
  text: string;
2458
2586
  } | {
2459
- type: "image";
2460
2587
  mimeType: string;
2588
+ type: "image";
2461
2589
  data?: string | undefined;
2462
2590
  uri?: string | undefined;
2463
2591
  } | {
@@ -2487,13 +2615,13 @@ export declare const sessionEventSchema: z.ZodObject<{
2487
2615
  data: z.ZodOptional<z.ZodString>;
2488
2616
  uri: z.ZodOptional<z.ZodString>;
2489
2617
  }, "strip", z.ZodTypeAny, {
2490
- type: "image";
2491
2618
  mimeType: string;
2619
+ type: "image";
2492
2620
  data?: string | undefined;
2493
2621
  uri?: string | undefined;
2494
2622
  }, {
2495
- type: "image";
2496
2623
  mimeType: string;
2624
+ type: "image";
2497
2625
  data?: string | undefined;
2498
2626
  uri?: string | undefined;
2499
2627
  }>, z.ZodObject<{
@@ -2518,8 +2646,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2518
2646
  type: "text";
2519
2647
  text: string;
2520
2648
  } | {
2521
- type: "image";
2522
2649
  mimeType: string;
2650
+ type: "image";
2523
2651
  data?: string | undefined;
2524
2652
  uri?: string | undefined;
2525
2653
  } | {
@@ -2536,8 +2664,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2536
2664
  type: "text";
2537
2665
  text: string;
2538
2666
  } | {
2539
- type: "image";
2540
2667
  mimeType: string;
2668
+ type: "image";
2541
2669
  data?: string | undefined;
2542
2670
  uri?: string | undefined;
2543
2671
  } | {
@@ -2568,13 +2696,13 @@ export declare const sessionEventSchema: z.ZodObject<{
2568
2696
  data: z.ZodOptional<z.ZodString>;
2569
2697
  uri: z.ZodOptional<z.ZodString>;
2570
2698
  }, "strip", z.ZodTypeAny, {
2571
- type: "image";
2572
2699
  mimeType: string;
2700
+ type: "image";
2573
2701
  data?: string | undefined;
2574
2702
  uri?: string | undefined;
2575
2703
  }, {
2576
- type: "image";
2577
2704
  mimeType: string;
2705
+ type: "image";
2578
2706
  data?: string | undefined;
2579
2707
  uri?: string | undefined;
2580
2708
  }>, z.ZodObject<{
@@ -2599,8 +2727,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2599
2727
  type: "text";
2600
2728
  text: string;
2601
2729
  } | {
2602
- type: "image";
2603
2730
  mimeType: string;
2731
+ type: "image";
2604
2732
  data?: string | undefined;
2605
2733
  uri?: string | undefined;
2606
2734
  } | {
@@ -2617,8 +2745,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2617
2745
  type: "text";
2618
2746
  text: string;
2619
2747
  } | {
2620
- type: "image";
2621
2748
  mimeType: string;
2749
+ type: "image";
2622
2750
  data?: string | undefined;
2623
2751
  uri?: string | undefined;
2624
2752
  } | {
@@ -2656,13 +2784,13 @@ export declare const sessionEventSchema: z.ZodObject<{
2656
2784
  data: z.ZodOptional<z.ZodString>;
2657
2785
  uri: z.ZodOptional<z.ZodString>;
2658
2786
  }, "strip", z.ZodTypeAny, {
2659
- type: "image";
2660
2787
  mimeType: string;
2788
+ type: "image";
2661
2789
  data?: string | undefined;
2662
2790
  uri?: string | undefined;
2663
2791
  }, {
2664
- type: "image";
2665
2792
  mimeType: string;
2793
+ type: "image";
2666
2794
  data?: string | undefined;
2667
2795
  uri?: string | undefined;
2668
2796
  }>, z.ZodObject<{
@@ -2688,8 +2816,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2688
2816
  type: "text";
2689
2817
  text: string;
2690
2818
  } | {
2691
- type: "image";
2692
2819
  mimeType: string;
2820
+ type: "image";
2693
2821
  data?: string | undefined;
2694
2822
  uri?: string | undefined;
2695
2823
  } | {
@@ -2704,8 +2832,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2704
2832
  type: "text";
2705
2833
  text: string;
2706
2834
  } | {
2707
- type: "image";
2708
2835
  mimeType: string;
2836
+ type: "image";
2709
2837
  data?: string | undefined;
2710
2838
  uri?: string | undefined;
2711
2839
  } | {
@@ -2720,13 +2848,13 @@ export declare const sessionEventSchema: z.ZodObject<{
2720
2848
  oldText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2721
2849
  newText: z.ZodString;
2722
2850
  }, "strip", z.ZodTypeAny, {
2723
- type: "diff";
2724
2851
  path: string;
2852
+ type: "diff";
2725
2853
  newText: string;
2726
2854
  oldText?: string | null | undefined;
2727
2855
  }, {
2728
- type: "diff";
2729
2856
  path: string;
2857
+ type: "diff";
2730
2858
  newText: string;
2731
2859
  oldText?: string | null | undefined;
2732
2860
  }>, z.ZodObject<{
@@ -2736,14 +2864,14 @@ export declare const sessionEventSchema: z.ZodObject<{
2736
2864
  movePath: z.ZodOptional<z.ZodString>;
2737
2865
  diff: z.ZodString;
2738
2866
  }, "strip", z.ZodTypeAny, {
2739
- type: "patch";
2740
2867
  path: string;
2868
+ type: "patch";
2741
2869
  diff: string;
2742
2870
  change: "delete" | "add" | "update";
2743
2871
  movePath?: string | undefined;
2744
2872
  }, {
2745
- type: "patch";
2746
2873
  path: string;
2874
+ type: "patch";
2747
2875
  diff: string;
2748
2876
  change: "delete" | "add" | "update";
2749
2877
  movePath?: string | undefined;
@@ -2829,7 +2957,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2829
2957
  }, "strip", z.ZodTypeAny, {
2830
2958
  id: string;
2831
2959
  title: string;
2832
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
2960
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
2833
2961
  toolCallId?: string | undefined;
2834
2962
  phaseId?: string | undefined;
2835
2963
  model?: string | undefined;
@@ -2842,7 +2970,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2842
2970
  }, {
2843
2971
  id: string;
2844
2972
  title: string;
2845
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
2973
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
2846
2974
  toolCallId?: string | undefined;
2847
2975
  phaseId?: string | undefined;
2848
2976
  model?: string | undefined;
@@ -2855,7 +2983,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2855
2983
  }>, "many">>;
2856
2984
  }, "strip", z.ZodTypeAny, {
2857
2985
  completed?: number | undefined;
2858
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
2986
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
2859
2987
  tokens?: number | undefined;
2860
2988
  durationMs?: number | undefined;
2861
2989
  startedAt?: number | undefined;
@@ -2871,7 +2999,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2871
2999
  agents?: {
2872
3000
  id: string;
2873
3001
  title: string;
2874
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
3002
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
2875
3003
  toolCallId?: string | undefined;
2876
3004
  phaseId?: string | undefined;
2877
3005
  model?: string | undefined;
@@ -2884,7 +3012,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2884
3012
  }[] | undefined;
2885
3013
  }, {
2886
3014
  completed?: number | undefined;
2887
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
3015
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
2888
3016
  tokens?: number | undefined;
2889
3017
  durationMs?: number | undefined;
2890
3018
  startedAt?: number | undefined;
@@ -2900,7 +3028,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2900
3028
  agents?: {
2901
3029
  id: string;
2902
3030
  title: string;
2903
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
3031
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
2904
3032
  toolCallId?: string | undefined;
2905
3033
  phaseId?: string | undefined;
2906
3034
  model?: string | undefined;
@@ -2914,14 +3042,14 @@ export declare const sessionEventSchema: z.ZodObject<{
2914
3042
  }>>;
2915
3043
  }, "strip", z.ZodTypeAny, {
2916
3044
  type: "subagent";
2917
- action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
2918
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
3045
+ action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
3046
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
2919
3047
  model?: string | undefined;
2920
3048
  task?: string | undefined;
2921
3049
  agentType?: string | undefined;
2922
3050
  workflow?: {
2923
3051
  completed?: number | undefined;
2924
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
3052
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
2925
3053
  tokens?: number | undefined;
2926
3054
  durationMs?: number | undefined;
2927
3055
  startedAt?: number | undefined;
@@ -2937,7 +3065,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2937
3065
  agents?: {
2938
3066
  id: string;
2939
3067
  title: string;
2940
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
3068
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
2941
3069
  toolCallId?: string | undefined;
2942
3070
  phaseId?: string | undefined;
2943
3071
  model?: string | undefined;
@@ -2951,13 +3079,14 @@ export declare const sessionEventSchema: z.ZodObject<{
2951
3079
  } | undefined;
2952
3080
  }, {
2953
3081
  type: "subagent";
2954
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
3082
+ action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
3083
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
2955
3084
  model?: string | undefined;
2956
3085
  task?: string | undefined;
2957
3086
  agentType?: string | undefined;
2958
3087
  workflow?: {
2959
3088
  completed?: number | undefined;
2960
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
3089
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
2961
3090
  tokens?: number | undefined;
2962
3091
  durationMs?: number | undefined;
2963
3092
  startedAt?: number | undefined;
@@ -2973,7 +3102,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2973
3102
  agents?: {
2974
3103
  id: string;
2975
3104
  title: string;
2976
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
3105
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
2977
3106
  toolCallId?: string | undefined;
2978
3107
  phaseId?: string | undefined;
2979
3108
  model?: string | undefined;
@@ -2985,7 +3114,6 @@ export declare const sessionEventSchema: z.ZodObject<{
2985
3114
  result?: string | undefined;
2986
3115
  }[] | undefined;
2987
3116
  } | undefined;
2988
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
2989
3117
  }>, z.ZodObject<{
2990
3118
  type: z.ZodLiteral<"skill">;
2991
3119
  name: z.ZodString;
@@ -3056,14 +3184,14 @@ export declare const sessionEventSchema: z.ZodObject<{
3056
3184
  server: string;
3057
3185
  } | {
3058
3186
  type: "subagent";
3059
- action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
3060
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
3187
+ action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
3188
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
3061
3189
  model?: string | undefined;
3062
3190
  task?: string | undefined;
3063
3191
  agentType?: string | undefined;
3064
3192
  workflow?: {
3065
3193
  completed?: number | undefined;
3066
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
3194
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
3067
3195
  tokens?: number | undefined;
3068
3196
  durationMs?: number | undefined;
3069
3197
  startedAt?: number | undefined;
@@ -3079,7 +3207,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3079
3207
  agents?: {
3080
3208
  id: string;
3081
3209
  title: string;
3082
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
3210
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
3083
3211
  toolCallId?: string | undefined;
3084
3212
  phaseId?: string | undefined;
3085
3213
  model?: string | undefined;
@@ -3118,8 +3246,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3118
3246
  type: "text";
3119
3247
  text: string;
3120
3248
  } | {
3121
- type: "image";
3122
3249
  mimeType: string;
3250
+ type: "image";
3123
3251
  data?: string | undefined;
3124
3252
  uri?: string | undefined;
3125
3253
  } | {
@@ -3129,13 +3257,13 @@ export declare const sessionEventSchema: z.ZodObject<{
3129
3257
  kind?: "agent" | "file" | "skill" | undefined;
3130
3258
  };
3131
3259
  } | {
3132
- type: "diff";
3133
3260
  path: string;
3261
+ type: "diff";
3134
3262
  newText: string;
3135
3263
  oldText?: string | null | undefined;
3136
3264
  } | {
3137
- type: "patch";
3138
3265
  path: string;
3266
+ type: "patch";
3139
3267
  diff: string;
3140
3268
  change: "delete" | "add" | "update";
3141
3269
  movePath?: string | undefined;
@@ -3160,13 +3288,14 @@ export declare const sessionEventSchema: z.ZodObject<{
3160
3288
  server: string;
3161
3289
  } | {
3162
3290
  type: "subagent";
3163
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
3291
+ action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
3292
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
3164
3293
  model?: string | undefined;
3165
3294
  task?: string | undefined;
3166
3295
  agentType?: string | undefined;
3167
3296
  workflow?: {
3168
3297
  completed?: number | undefined;
3169
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
3298
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
3170
3299
  tokens?: number | undefined;
3171
3300
  durationMs?: number | undefined;
3172
3301
  startedAt?: number | undefined;
@@ -3182,7 +3311,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3182
3311
  agents?: {
3183
3312
  id: string;
3184
3313
  title: string;
3185
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
3314
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
3186
3315
  toolCallId?: string | undefined;
3187
3316
  phaseId?: string | undefined;
3188
3317
  model?: string | undefined;
@@ -3194,7 +3323,6 @@ export declare const sessionEventSchema: z.ZodObject<{
3194
3323
  result?: string | undefined;
3195
3324
  }[] | undefined;
3196
3325
  } | undefined;
3197
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
3198
3326
  } | {
3199
3327
  type: "skill";
3200
3328
  name: string;
@@ -3222,8 +3350,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3222
3350
  type: "text";
3223
3351
  text: string;
3224
3352
  } | {
3225
- type: "image";
3226
3353
  mimeType: string;
3354
+ type: "image";
3227
3355
  data?: string | undefined;
3228
3356
  uri?: string | undefined;
3229
3357
  } | {
@@ -3233,13 +3361,13 @@ export declare const sessionEventSchema: z.ZodObject<{
3233
3361
  kind?: "agent" | "file" | "skill" | undefined;
3234
3362
  };
3235
3363
  } | {
3236
- type: "diff";
3237
3364
  path: string;
3365
+ type: "diff";
3238
3366
  newText: string;
3239
3367
  oldText?: string | null | undefined;
3240
3368
  } | {
3241
- type: "patch";
3242
3369
  path: string;
3370
+ type: "patch";
3243
3371
  diff: string;
3244
3372
  change: "delete" | "add" | "update";
3245
3373
  movePath?: string | undefined;
@@ -3320,7 +3448,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3320
3448
  }, "strip", z.ZodTypeAny, {
3321
3449
  id: string;
3322
3450
  title: string;
3323
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
3451
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
3324
3452
  toolCallId?: string | undefined;
3325
3453
  phaseId?: string | undefined;
3326
3454
  model?: string | undefined;
@@ -3333,7 +3461,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3333
3461
  }, {
3334
3462
  id: string;
3335
3463
  title: string;
3336
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
3464
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
3337
3465
  toolCallId?: string | undefined;
3338
3466
  phaseId?: string | undefined;
3339
3467
  model?: string | undefined;
@@ -3346,7 +3474,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3346
3474
  }>, "many">>;
3347
3475
  }, "strip", z.ZodTypeAny, {
3348
3476
  completed?: number | undefined;
3349
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
3477
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
3350
3478
  tokens?: number | undefined;
3351
3479
  durationMs?: number | undefined;
3352
3480
  startedAt?: number | undefined;
@@ -3362,7 +3490,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3362
3490
  agents?: {
3363
3491
  id: string;
3364
3492
  title: string;
3365
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
3493
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
3366
3494
  toolCallId?: string | undefined;
3367
3495
  phaseId?: string | undefined;
3368
3496
  model?: string | undefined;
@@ -3375,7 +3503,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3375
3503
  }[] | undefined;
3376
3504
  }, {
3377
3505
  completed?: number | undefined;
3378
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
3506
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
3379
3507
  tokens?: number | undefined;
3380
3508
  durationMs?: number | undefined;
3381
3509
  startedAt?: number | undefined;
@@ -3391,7 +3519,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3391
3519
  agents?: {
3392
3520
  id: string;
3393
3521
  title: string;
3394
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
3522
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
3395
3523
  toolCallId?: string | undefined;
3396
3524
  phaseId?: string | undefined;
3397
3525
  model?: string | undefined;
@@ -3405,14 +3533,14 @@ export declare const sessionEventSchema: z.ZodObject<{
3405
3533
  }>>;
3406
3534
  }, "strip", z.ZodTypeAny, {
3407
3535
  type: "subagent";
3408
- action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
3409
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
3536
+ action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
3537
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
3410
3538
  model?: string | undefined;
3411
3539
  task?: string | undefined;
3412
3540
  agentType?: string | undefined;
3413
3541
  workflow?: {
3414
3542
  completed?: number | undefined;
3415
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
3543
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
3416
3544
  tokens?: number | undefined;
3417
3545
  durationMs?: number | undefined;
3418
3546
  startedAt?: number | undefined;
@@ -3428,7 +3556,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3428
3556
  agents?: {
3429
3557
  id: string;
3430
3558
  title: string;
3431
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
3559
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
3432
3560
  toolCallId?: string | undefined;
3433
3561
  phaseId?: string | undefined;
3434
3562
  model?: string | undefined;
@@ -3442,13 +3570,14 @@ export declare const sessionEventSchema: z.ZodObject<{
3442
3570
  } | undefined;
3443
3571
  }, {
3444
3572
  type: "subagent";
3445
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
3573
+ action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
3574
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
3446
3575
  model?: string | undefined;
3447
3576
  task?: string | undefined;
3448
3577
  agentType?: string | undefined;
3449
3578
  workflow?: {
3450
3579
  completed?: number | undefined;
3451
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
3580
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
3452
3581
  tokens?: number | undefined;
3453
3582
  durationMs?: number | undefined;
3454
3583
  startedAt?: number | undefined;
@@ -3464,7 +3593,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3464
3593
  agents?: {
3465
3594
  id: string;
3466
3595
  title: string;
3467
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
3596
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
3468
3597
  toolCallId?: string | undefined;
3469
3598
  phaseId?: string | undefined;
3470
3599
  model?: string | undefined;
@@ -3476,7 +3605,6 @@ export declare const sessionEventSchema: z.ZodObject<{
3476
3605
  result?: string | undefined;
3477
3606
  }[] | undefined;
3478
3607
  } | undefined;
3479
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
3480
3608
  }>, z.ZodObject<{
3481
3609
  type: z.ZodLiteral<"skill">;
3482
3610
  name: z.ZodString;
@@ -3553,13 +3681,13 @@ export declare const sessionEventSchema: z.ZodObject<{
3553
3681
  data: z.ZodOptional<z.ZodString>;
3554
3682
  uri: z.ZodOptional<z.ZodString>;
3555
3683
  }, "strip", z.ZodTypeAny, {
3556
- type: "image";
3557
3684
  mimeType: string;
3685
+ type: "image";
3558
3686
  data?: string | undefined;
3559
3687
  uri?: string | undefined;
3560
3688
  }, {
3561
- type: "image";
3562
3689
  mimeType: string;
3690
+ type: "image";
3563
3691
  data?: string | undefined;
3564
3692
  uri?: string | undefined;
3565
3693
  }>, z.ZodObject<{
@@ -3585,8 +3713,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3585
3713
  type: "text";
3586
3714
  text: string;
3587
3715
  } | {
3588
- type: "image";
3589
3716
  mimeType: string;
3717
+ type: "image";
3590
3718
  data?: string | undefined;
3591
3719
  uri?: string | undefined;
3592
3720
  } | {
@@ -3601,8 +3729,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3601
3729
  type: "text";
3602
3730
  text: string;
3603
3731
  } | {
3604
- type: "image";
3605
3732
  mimeType: string;
3733
+ type: "image";
3606
3734
  data?: string | undefined;
3607
3735
  uri?: string | undefined;
3608
3736
  } | {
@@ -3617,13 +3745,13 @@ export declare const sessionEventSchema: z.ZodObject<{
3617
3745
  oldText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3618
3746
  newText: z.ZodString;
3619
3747
  }, "strip", z.ZodTypeAny, {
3620
- type: "diff";
3621
3748
  path: string;
3749
+ type: "diff";
3622
3750
  newText: string;
3623
3751
  oldText?: string | null | undefined;
3624
3752
  }, {
3625
- type: "diff";
3626
3753
  path: string;
3754
+ type: "diff";
3627
3755
  newText: string;
3628
3756
  oldText?: string | null | undefined;
3629
3757
  }>, z.ZodObject<{
@@ -3633,14 +3761,14 @@ export declare const sessionEventSchema: z.ZodObject<{
3633
3761
  movePath: z.ZodOptional<z.ZodString>;
3634
3762
  diff: z.ZodString;
3635
3763
  }, "strip", z.ZodTypeAny, {
3636
- type: "patch";
3637
3764
  path: string;
3765
+ type: "patch";
3638
3766
  diff: string;
3639
3767
  change: "delete" | "add" | "update";
3640
3768
  movePath?: string | undefined;
3641
3769
  }, {
3642
- type: "patch";
3643
3770
  path: string;
3771
+ type: "patch";
3644
3772
  diff: string;
3645
3773
  change: "delete" | "add" | "update";
3646
3774
  movePath?: string | undefined;
@@ -3668,14 +3796,14 @@ export declare const sessionEventSchema: z.ZodObject<{
3668
3796
  server: string;
3669
3797
  } | {
3670
3798
  type: "subagent";
3671
- action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
3672
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
3799
+ action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
3800
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
3673
3801
  model?: string | undefined;
3674
3802
  task?: string | undefined;
3675
3803
  agentType?: string | undefined;
3676
3804
  workflow?: {
3677
3805
  completed?: number | undefined;
3678
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
3806
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
3679
3807
  tokens?: number | undefined;
3680
3808
  durationMs?: number | undefined;
3681
3809
  startedAt?: number | undefined;
@@ -3691,7 +3819,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3691
3819
  agents?: {
3692
3820
  id: string;
3693
3821
  title: string;
3694
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
3822
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
3695
3823
  toolCallId?: string | undefined;
3696
3824
  phaseId?: string | undefined;
3697
3825
  model?: string | undefined;
@@ -3730,8 +3858,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3730
3858
  type: "text";
3731
3859
  text: string;
3732
3860
  } | {
3733
- type: "image";
3734
3861
  mimeType: string;
3862
+ type: "image";
3735
3863
  data?: string | undefined;
3736
3864
  uri?: string | undefined;
3737
3865
  } | {
@@ -3741,13 +3869,13 @@ export declare const sessionEventSchema: z.ZodObject<{
3741
3869
  kind?: "agent" | "file" | "skill" | undefined;
3742
3870
  };
3743
3871
  } | {
3744
- type: "diff";
3745
3872
  path: string;
3873
+ type: "diff";
3746
3874
  newText: string;
3747
3875
  oldText?: string | null | undefined;
3748
3876
  } | {
3749
- type: "patch";
3750
3877
  path: string;
3878
+ type: "patch";
3751
3879
  diff: string;
3752
3880
  change: "delete" | "add" | "update";
3753
3881
  movePath?: string | undefined;
@@ -3768,13 +3896,14 @@ export declare const sessionEventSchema: z.ZodObject<{
3768
3896
  server: string;
3769
3897
  } | {
3770
3898
  type: "subagent";
3771
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
3899
+ action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
3900
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
3772
3901
  model?: string | undefined;
3773
3902
  task?: string | undefined;
3774
3903
  agentType?: string | undefined;
3775
3904
  workflow?: {
3776
3905
  completed?: number | undefined;
3777
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
3906
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
3778
3907
  tokens?: number | undefined;
3779
3908
  durationMs?: number | undefined;
3780
3909
  startedAt?: number | undefined;
@@ -3790,7 +3919,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3790
3919
  agents?: {
3791
3920
  id: string;
3792
3921
  title: string;
3793
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
3922
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
3794
3923
  toolCallId?: string | undefined;
3795
3924
  phaseId?: string | undefined;
3796
3925
  model?: string | undefined;
@@ -3802,7 +3931,6 @@ export declare const sessionEventSchema: z.ZodObject<{
3802
3931
  result?: string | undefined;
3803
3932
  }[] | undefined;
3804
3933
  } | undefined;
3805
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
3806
3934
  } | {
3807
3935
  type: "skill";
3808
3936
  name: string;
@@ -3830,8 +3958,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3830
3958
  type: "text";
3831
3959
  text: string;
3832
3960
  } | {
3833
- type: "image";
3834
3961
  mimeType: string;
3962
+ type: "image";
3835
3963
  data?: string | undefined;
3836
3964
  uri?: string | undefined;
3837
3965
  } | {
@@ -3841,13 +3969,13 @@ export declare const sessionEventSchema: z.ZodObject<{
3841
3969
  kind?: "agent" | "file" | "skill" | undefined;
3842
3970
  };
3843
3971
  } | {
3844
- type: "diff";
3845
3972
  path: string;
3973
+ type: "diff";
3846
3974
  newText: string;
3847
3975
  oldText?: string | null | undefined;
3848
3976
  } | {
3849
- type: "patch";
3850
3977
  path: string;
3978
+ type: "patch";
3851
3979
  diff: string;
3852
3980
  change: "delete" | "add" | "update";
3853
3981
  movePath?: string | undefined;
@@ -3886,6 +4014,55 @@ export declare const sessionEventSchema: z.ZodObject<{
3886
4014
  priority?: "high" | "medium" | "low" | undefined;
3887
4015
  }[];
3888
4016
  sessionUpdate: "plan";
4017
+ }>, z.ZodObject<{
4018
+ sessionUpdate: z.ZodLiteral<"ls_goal">;
4019
+ goal: z.ZodNullable<z.ZodObject<{
4020
+ objective: z.ZodString;
4021
+ status: z.ZodEnum<["active", "paused", "blocked", "usageLimited", "budgetLimited", "complete"]>;
4022
+ tokenBudget: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4023
+ tokensUsed: z.ZodOptional<z.ZodNumber>;
4024
+ timeUsedSeconds: z.ZodOptional<z.ZodNumber>;
4025
+ iterations: z.ZodOptional<z.ZodNumber>;
4026
+ lastReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4027
+ }, "strip", z.ZodTypeAny, {
4028
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4029
+ objective: string;
4030
+ tokenBudget?: number | null | undefined;
4031
+ tokensUsed?: number | undefined;
4032
+ timeUsedSeconds?: number | undefined;
4033
+ iterations?: number | undefined;
4034
+ lastReason?: string | null | undefined;
4035
+ }, {
4036
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4037
+ objective: string;
4038
+ tokenBudget?: number | null | undefined;
4039
+ tokensUsed?: number | undefined;
4040
+ timeUsedSeconds?: number | undefined;
4041
+ iterations?: number | undefined;
4042
+ lastReason?: string | null | undefined;
4043
+ }>>;
4044
+ }, "strip", z.ZodTypeAny, {
4045
+ sessionUpdate: "ls_goal";
4046
+ goal: {
4047
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4048
+ objective: string;
4049
+ tokenBudget?: number | null | undefined;
4050
+ tokensUsed?: number | undefined;
4051
+ timeUsedSeconds?: number | undefined;
4052
+ iterations?: number | undefined;
4053
+ lastReason?: string | null | undefined;
4054
+ } | null;
4055
+ }, {
4056
+ sessionUpdate: "ls_goal";
4057
+ goal: {
4058
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4059
+ objective: string;
4060
+ tokenBudget?: number | null | undefined;
4061
+ tokensUsed?: number | undefined;
4062
+ timeUsedSeconds?: number | undefined;
4063
+ iterations?: number | undefined;
4064
+ lastReason?: string | null | undefined;
4065
+ } | null;
3889
4066
  }>, z.ZodObject<{
3890
4067
  sessionUpdate: z.ZodLiteral<"available_commands_update">;
3891
4068
  availableCommands: z.ZodArray<z.ZodObject<{
@@ -3985,34 +4162,34 @@ export declare const sessionEventSchema: z.ZodObject<{
3985
4162
  description?: string | undefined;
3986
4163
  }>, "many">;
3987
4164
  }, "strip", z.ZodTypeAny, {
4165
+ id: string;
3988
4166
  values: {
3989
4167
  value: string;
3990
4168
  name: string;
3991
4169
  description?: string | undefined;
3992
4170
  }[];
3993
- id: string;
3994
4171
  name: string;
3995
4172
  category: "model" | "other" | "mode" | "effort";
3996
4173
  current: string;
3997
4174
  }, {
4175
+ id: string;
3998
4176
  values: {
3999
4177
  value: string;
4000
4178
  name: string;
4001
4179
  description?: string | undefined;
4002
4180
  }[];
4003
- id: string;
4004
4181
  name: string;
4005
4182
  current: string;
4006
4183
  category?: "model" | "other" | "mode" | "effort" | undefined;
4007
4184
  }>, "many">;
4008
4185
  }, "strip", z.ZodTypeAny, {
4009
4186
  options: {
4187
+ id: string;
4010
4188
  values: {
4011
4189
  value: string;
4012
4190
  name: string;
4013
4191
  description?: string | undefined;
4014
4192
  }[];
4015
- id: string;
4016
4193
  name: string;
4017
4194
  category: "model" | "other" | "mode" | "effort";
4018
4195
  current: string;
@@ -4020,12 +4197,12 @@ export declare const sessionEventSchema: z.ZodObject<{
4020
4197
  sessionUpdate: "ls_config";
4021
4198
  }, {
4022
4199
  options: {
4200
+ id: string;
4023
4201
  values: {
4024
4202
  value: string;
4025
4203
  name: string;
4026
4204
  description?: string | undefined;
4027
4205
  }[];
4028
- id: string;
4029
4206
  name: string;
4030
4207
  current: string;
4031
4208
  category?: "model" | "other" | "mode" | "effort" | undefined;
@@ -4197,12 +4374,12 @@ export declare const sessionEventSchema: z.ZodObject<{
4197
4374
  values: z.ZodArray<z.ZodString, "many">;
4198
4375
  other: z.ZodOptional<z.ZodString>;
4199
4376
  }, "strip", z.ZodTypeAny, {
4200
- values: string[];
4201
4377
  id: string;
4378
+ values: string[];
4202
4379
  other?: string | undefined;
4203
4380
  }, {
4204
- values: string[];
4205
4381
  id: string;
4382
+ values: string[];
4206
4383
  other?: string | undefined;
4207
4384
  }>, "many">>;
4208
4385
  }, "strip", z.ZodTypeAny, {
@@ -4210,8 +4387,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4210
4387
  sessionUpdate: "ls_permission_resolved";
4211
4388
  optionId?: string | undefined;
4212
4389
  answers?: {
4213
- values: string[];
4214
4390
  id: string;
4391
+ values: string[];
4215
4392
  other?: string | undefined;
4216
4393
  }[] | undefined;
4217
4394
  }, {
@@ -4219,8 +4396,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4219
4396
  sessionUpdate: "ls_permission_resolved";
4220
4397
  optionId?: string | undefined;
4221
4398
  answers?: {
4222
- values: string[];
4223
4399
  id: string;
4400
+ values: string[];
4224
4401
  other?: string | undefined;
4225
4402
  }[] | undefined;
4226
4403
  }>, z.ZodObject<{
@@ -4244,6 +4421,85 @@ export declare const sessionEventSchema: z.ZodObject<{
4244
4421
  }, {
4245
4422
  state: "error" | "running" | "idle" | "waiting" | "offline";
4246
4423
  sessionUpdate: "ls_status";
4424
+ }>, z.ZodObject<{
4425
+ sessionUpdate: z.ZodLiteral<"ls_task">;
4426
+ task: z.ZodObject<{
4427
+ id: z.ZodString;
4428
+ kind: z.ZodEnum<["shell", "monitor"]>;
4429
+ toolCallId: z.ZodOptional<z.ZodString>;
4430
+ title: z.ZodString;
4431
+ command: z.ZodOptional<z.ZodString>;
4432
+ state: z.ZodEnum<["running", "completed", "failed", "stopped", "unknown"]>;
4433
+ startedAt: z.ZodNumber;
4434
+ endedAt: z.ZodOptional<z.ZodNumber>;
4435
+ summary: z.ZodOptional<z.ZodString>;
4436
+ exitCode: z.ZodOptional<z.ZodNumber>;
4437
+ output: z.ZodOptional<z.ZodBoolean>;
4438
+ canStop: z.ZodOptional<z.ZodBoolean>;
4439
+ lastSeq: z.ZodOptional<z.ZodNumber>;
4440
+ }, "strip", z.ZodTypeAny, {
4441
+ id: string;
4442
+ title: string;
4443
+ state: "unknown" | "running" | "completed" | "failed" | "stopped";
4444
+ startedAt: number;
4445
+ kind: "shell" | "monitor";
4446
+ toolCallId?: string | undefined;
4447
+ endedAt?: number | undefined;
4448
+ lastSeq?: number | undefined;
4449
+ command?: string | undefined;
4450
+ summary?: string | undefined;
4451
+ exitCode?: number | undefined;
4452
+ output?: boolean | undefined;
4453
+ canStop?: boolean | undefined;
4454
+ }, {
4455
+ id: string;
4456
+ title: string;
4457
+ state: "unknown" | "running" | "completed" | "failed" | "stopped";
4458
+ startedAt: number;
4459
+ kind: "shell" | "monitor";
4460
+ toolCallId?: string | undefined;
4461
+ endedAt?: number | undefined;
4462
+ lastSeq?: number | undefined;
4463
+ command?: string | undefined;
4464
+ summary?: string | undefined;
4465
+ exitCode?: number | undefined;
4466
+ output?: boolean | undefined;
4467
+ canStop?: boolean | undefined;
4468
+ }>;
4469
+ }, "strip", z.ZodTypeAny, {
4470
+ task: {
4471
+ id: string;
4472
+ title: string;
4473
+ state: "unknown" | "running" | "completed" | "failed" | "stopped";
4474
+ startedAt: number;
4475
+ kind: "shell" | "monitor";
4476
+ toolCallId?: string | undefined;
4477
+ endedAt?: number | undefined;
4478
+ lastSeq?: number | undefined;
4479
+ command?: string | undefined;
4480
+ summary?: string | undefined;
4481
+ exitCode?: number | undefined;
4482
+ output?: boolean | undefined;
4483
+ canStop?: boolean | undefined;
4484
+ };
4485
+ sessionUpdate: "ls_task";
4486
+ }, {
4487
+ task: {
4488
+ id: string;
4489
+ title: string;
4490
+ state: "unknown" | "running" | "completed" | "failed" | "stopped";
4491
+ startedAt: number;
4492
+ kind: "shell" | "monitor";
4493
+ toolCallId?: string | undefined;
4494
+ endedAt?: number | undefined;
4495
+ lastSeq?: number | undefined;
4496
+ command?: string | undefined;
4497
+ summary?: string | undefined;
4498
+ exitCode?: number | undefined;
4499
+ output?: boolean | undefined;
4500
+ canStop?: boolean | undefined;
4501
+ };
4502
+ sessionUpdate: "ls_task";
4247
4503
  }>, z.ZodObject<{
4248
4504
  sessionUpdate: z.ZodLiteral<"ls_error">;
4249
4505
  code: z.ZodString;
@@ -4266,8 +4522,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4266
4522
  type: "text";
4267
4523
  text: string;
4268
4524
  } | {
4269
- type: "image";
4270
4525
  mimeType: string;
4526
+ type: "image";
4271
4527
  data?: string | undefined;
4272
4528
  uri?: string | undefined;
4273
4529
  } | {
@@ -4283,8 +4539,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4283
4539
  type: "text";
4284
4540
  text: string;
4285
4541
  } | {
4286
- type: "image";
4287
4542
  mimeType: string;
4543
+ type: "image";
4288
4544
  data?: string | undefined;
4289
4545
  uri?: string | undefined;
4290
4546
  } | {
@@ -4301,8 +4557,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4301
4557
  type: "text";
4302
4558
  text: string;
4303
4559
  } | {
4304
- type: "image";
4305
4560
  mimeType: string;
4561
+ type: "image";
4306
4562
  data?: string | undefined;
4307
4563
  uri?: string | undefined;
4308
4564
  } | {
@@ -4326,14 +4582,14 @@ export declare const sessionEventSchema: z.ZodObject<{
4326
4582
  server: string;
4327
4583
  } | {
4328
4584
  type: "subagent";
4329
- action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
4330
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
4585
+ action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
4586
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
4331
4587
  model?: string | undefined;
4332
4588
  task?: string | undefined;
4333
4589
  agentType?: string | undefined;
4334
4590
  workflow?: {
4335
4591
  completed?: number | undefined;
4336
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
4592
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
4337
4593
  tokens?: number | undefined;
4338
4594
  durationMs?: number | undefined;
4339
4595
  startedAt?: number | undefined;
@@ -4349,7 +4605,7 @@ export declare const sessionEventSchema: z.ZodObject<{
4349
4605
  agents?: {
4350
4606
  id: string;
4351
4607
  title: string;
4352
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
4608
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
4353
4609
  toolCallId?: string | undefined;
4354
4610
  phaseId?: string | undefined;
4355
4611
  model?: string | undefined;
@@ -4388,8 +4644,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4388
4644
  type: "text";
4389
4645
  text: string;
4390
4646
  } | {
4391
- type: "image";
4392
4647
  mimeType: string;
4648
+ type: "image";
4393
4649
  data?: string | undefined;
4394
4650
  uri?: string | undefined;
4395
4651
  } | {
@@ -4399,13 +4655,13 @@ export declare const sessionEventSchema: z.ZodObject<{
4399
4655
  kind?: "agent" | "file" | "skill" | undefined;
4400
4656
  };
4401
4657
  } | {
4402
- type: "diff";
4403
4658
  path: string;
4659
+ type: "diff";
4404
4660
  newText: string;
4405
4661
  oldText?: string | null | undefined;
4406
4662
  } | {
4407
- type: "patch";
4408
4663
  path: string;
4664
+ type: "patch";
4409
4665
  diff: string;
4410
4666
  change: "delete" | "add" | "update";
4411
4667
  movePath?: string | undefined;
@@ -4429,14 +4685,14 @@ export declare const sessionEventSchema: z.ZodObject<{
4429
4685
  server: string;
4430
4686
  } | {
4431
4687
  type: "subagent";
4432
- action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
4433
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
4688
+ action: "message" | "resume" | "spawn" | "wait" | "stop" | "list";
4689
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
4434
4690
  model?: string | undefined;
4435
4691
  task?: string | undefined;
4436
4692
  agentType?: string | undefined;
4437
4693
  workflow?: {
4438
4694
  completed?: number | undefined;
4439
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
4695
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
4440
4696
  tokens?: number | undefined;
4441
4697
  durationMs?: number | undefined;
4442
4698
  startedAt?: number | undefined;
@@ -4452,7 +4708,7 @@ export declare const sessionEventSchema: z.ZodObject<{
4452
4708
  agents?: {
4453
4709
  id: string;
4454
4710
  title: string;
4455
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
4711
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
4456
4712
  toolCallId?: string | undefined;
4457
4713
  phaseId?: string | undefined;
4458
4714
  model?: string | undefined;
@@ -4491,8 +4747,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4491
4747
  type: "text";
4492
4748
  text: string;
4493
4749
  } | {
4494
- type: "image";
4495
4750
  mimeType: string;
4751
+ type: "image";
4496
4752
  data?: string | undefined;
4497
4753
  uri?: string | undefined;
4498
4754
  } | {
@@ -4502,13 +4758,13 @@ export declare const sessionEventSchema: z.ZodObject<{
4502
4758
  kind?: "agent" | "file" | "skill" | undefined;
4503
4759
  };
4504
4760
  } | {
4505
- type: "diff";
4506
4761
  path: string;
4762
+ type: "diff";
4507
4763
  newText: string;
4508
4764
  oldText?: string | null | undefined;
4509
4765
  } | {
4510
- type: "patch";
4511
4766
  path: string;
4767
+ type: "patch";
4512
4768
  diff: string;
4513
4769
  change: "delete" | "add" | "update";
4514
4770
  movePath?: string | undefined;
@@ -4525,6 +4781,17 @@ export declare const sessionEventSchema: z.ZodObject<{
4525
4781
  priority: "high" | "medium" | "low";
4526
4782
  }[];
4527
4783
  sessionUpdate: "plan";
4784
+ } | {
4785
+ sessionUpdate: "ls_goal";
4786
+ goal: {
4787
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4788
+ objective: string;
4789
+ tokenBudget?: number | null | undefined;
4790
+ tokensUsed?: number | undefined;
4791
+ timeUsedSeconds?: number | undefined;
4792
+ iterations?: number | undefined;
4793
+ lastReason?: string | null | undefined;
4794
+ } | null;
4528
4795
  } | {
4529
4796
  sessionUpdate: "available_commands_update";
4530
4797
  availableCommands: {
@@ -4550,12 +4817,12 @@ export declare const sessionEventSchema: z.ZodObject<{
4550
4817
  parentToolCallId?: string | undefined;
4551
4818
  } | {
4552
4819
  options: {
4820
+ id: string;
4553
4821
  values: {
4554
4822
  value: string;
4555
4823
  name: string;
4556
4824
  description?: string | undefined;
4557
4825
  }[];
4558
- id: string;
4559
4826
  name: string;
4560
4827
  category: "model" | "other" | "mode" | "effort";
4561
4828
  current: string;
@@ -4602,8 +4869,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4602
4869
  sessionUpdate: "ls_permission_resolved";
4603
4870
  optionId?: string | undefined;
4604
4871
  answers?: {
4605
- values: string[];
4606
4872
  id: string;
4873
+ values: string[];
4607
4874
  other?: string | undefined;
4608
4875
  }[] | undefined;
4609
4876
  } | {
@@ -4613,6 +4880,23 @@ export declare const sessionEventSchema: z.ZodObject<{
4613
4880
  } | {
4614
4881
  state: "error" | "running" | "idle" | "waiting" | "offline";
4615
4882
  sessionUpdate: "ls_status";
4883
+ } | {
4884
+ task: {
4885
+ id: string;
4886
+ title: string;
4887
+ state: "unknown" | "running" | "completed" | "failed" | "stopped";
4888
+ startedAt: number;
4889
+ kind: "shell" | "monitor";
4890
+ toolCallId?: string | undefined;
4891
+ endedAt?: number | undefined;
4892
+ lastSeq?: number | undefined;
4893
+ command?: string | undefined;
4894
+ summary?: string | undefined;
4895
+ exitCode?: number | undefined;
4896
+ output?: boolean | undefined;
4897
+ canStop?: boolean | undefined;
4898
+ };
4899
+ sessionUpdate: "ls_task";
4616
4900
  } | {
4617
4901
  code: string;
4618
4902
  message: string;
@@ -4628,8 +4912,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4628
4912
  type: "text";
4629
4913
  text: string;
4630
4914
  } | {
4631
- type: "image";
4632
4915
  mimeType: string;
4916
+ type: "image";
4633
4917
  data?: string | undefined;
4634
4918
  uri?: string | undefined;
4635
4919
  } | {
@@ -4645,8 +4929,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4645
4929
  type: "text";
4646
4930
  text: string;
4647
4931
  } | {
4648
- type: "image";
4649
4932
  mimeType: string;
4933
+ type: "image";
4650
4934
  data?: string | undefined;
4651
4935
  uri?: string | undefined;
4652
4936
  } | {
@@ -4663,8 +4947,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4663
4947
  type: "text";
4664
4948
  text: string;
4665
4949
  } | {
4666
- type: "image";
4667
4950
  mimeType: string;
4951
+ type: "image";
4668
4952
  data?: string | undefined;
4669
4953
  uri?: string | undefined;
4670
4954
  } | {
@@ -4688,13 +4972,14 @@ export declare const sessionEventSchema: z.ZodObject<{
4688
4972
  server: string;
4689
4973
  } | {
4690
4974
  type: "subagent";
4691
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
4975
+ action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
4976
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
4692
4977
  model?: string | undefined;
4693
4978
  task?: string | undefined;
4694
4979
  agentType?: string | undefined;
4695
4980
  workflow?: {
4696
4981
  completed?: number | undefined;
4697
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
4982
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
4698
4983
  tokens?: number | undefined;
4699
4984
  durationMs?: number | undefined;
4700
4985
  startedAt?: number | undefined;
@@ -4710,7 +4995,7 @@ export declare const sessionEventSchema: z.ZodObject<{
4710
4995
  agents?: {
4711
4996
  id: string;
4712
4997
  title: string;
4713
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
4998
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
4714
4999
  toolCallId?: string | undefined;
4715
5000
  phaseId?: string | undefined;
4716
5001
  model?: string | undefined;
@@ -4722,7 +5007,6 @@ export declare const sessionEventSchema: z.ZodObject<{
4722
5007
  result?: string | undefined;
4723
5008
  }[] | undefined;
4724
5009
  } | undefined;
4725
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
4726
5010
  } | {
4727
5011
  type: "skill";
4728
5012
  name: string;
@@ -4750,8 +5034,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4750
5034
  type: "text";
4751
5035
  text: string;
4752
5036
  } | {
4753
- type: "image";
4754
5037
  mimeType: string;
5038
+ type: "image";
4755
5039
  data?: string | undefined;
4756
5040
  uri?: string | undefined;
4757
5041
  } | {
@@ -4761,13 +5045,13 @@ export declare const sessionEventSchema: z.ZodObject<{
4761
5045
  kind?: "agent" | "file" | "skill" | undefined;
4762
5046
  };
4763
5047
  } | {
4764
- type: "diff";
4765
5048
  path: string;
5049
+ type: "diff";
4766
5050
  newText: string;
4767
5051
  oldText?: string | null | undefined;
4768
5052
  } | {
4769
- type: "patch";
4770
5053
  path: string;
5054
+ type: "patch";
4771
5055
  diff: string;
4772
5056
  change: "delete" | "add" | "update";
4773
5057
  movePath?: string | undefined;
@@ -4791,13 +5075,14 @@ export declare const sessionEventSchema: z.ZodObject<{
4791
5075
  server: string;
4792
5076
  } | {
4793
5077
  type: "subagent";
4794
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown" | undefined;
5078
+ action?: "message" | "resume" | "spawn" | "wait" | "stop" | "list" | undefined;
5079
+ state?: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending" | undefined;
4795
5080
  model?: string | undefined;
4796
5081
  task?: string | undefined;
4797
5082
  agentType?: string | undefined;
4798
5083
  workflow?: {
4799
5084
  completed?: number | undefined;
4800
- state?: "running" | "paused" | "completed" | "failed" | "stopped" | undefined;
5085
+ state?: "paused" | "running" | "completed" | "failed" | "stopped" | undefined;
4801
5086
  tokens?: number | undefined;
4802
5087
  durationMs?: number | undefined;
4803
5088
  startedAt?: number | undefined;
@@ -4813,7 +5098,7 @@ export declare const sessionEventSchema: z.ZodObject<{
4813
5098
  agents?: {
4814
5099
  id: string;
4815
5100
  title: string;
4816
- state: "running" | "paused" | "completed" | "failed" | "stopped" | "pending" | "unknown";
5101
+ state: "unknown" | "paused" | "running" | "completed" | "failed" | "stopped" | "pending";
4817
5102
  toolCallId?: string | undefined;
4818
5103
  phaseId?: string | undefined;
4819
5104
  model?: string | undefined;
@@ -4825,7 +5110,6 @@ export declare const sessionEventSchema: z.ZodObject<{
4825
5110
  result?: string | undefined;
4826
5111
  }[] | undefined;
4827
5112
  } | undefined;
4828
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
4829
5113
  } | {
4830
5114
  type: "skill";
4831
5115
  name: string;
@@ -4853,8 +5137,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4853
5137
  type: "text";
4854
5138
  text: string;
4855
5139
  } | {
4856
- type: "image";
4857
5140
  mimeType: string;
5141
+ type: "image";
4858
5142
  data?: string | undefined;
4859
5143
  uri?: string | undefined;
4860
5144
  } | {
@@ -4864,13 +5148,13 @@ export declare const sessionEventSchema: z.ZodObject<{
4864
5148
  kind?: "agent" | "file" | "skill" | undefined;
4865
5149
  };
4866
5150
  } | {
4867
- type: "diff";
4868
5151
  path: string;
5152
+ type: "diff";
4869
5153
  newText: string;
4870
5154
  oldText?: string | null | undefined;
4871
5155
  } | {
4872
- type: "patch";
4873
5156
  path: string;
5157
+ type: "patch";
4874
5158
  diff: string;
4875
5159
  change: "delete" | "add" | "update";
4876
5160
  movePath?: string | undefined;
@@ -4887,6 +5171,17 @@ export declare const sessionEventSchema: z.ZodObject<{
4887
5171
  priority?: "high" | "medium" | "low" | undefined;
4888
5172
  }[];
4889
5173
  sessionUpdate: "plan";
5174
+ } | {
5175
+ sessionUpdate: "ls_goal";
5176
+ goal: {
5177
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
5178
+ objective: string;
5179
+ tokenBudget?: number | null | undefined;
5180
+ tokensUsed?: number | undefined;
5181
+ timeUsedSeconds?: number | undefined;
5182
+ iterations?: number | undefined;
5183
+ lastReason?: string | null | undefined;
5184
+ } | null;
4890
5185
  } | {
4891
5186
  sessionUpdate: "available_commands_update";
4892
5187
  availableCommands: {
@@ -4912,12 +5207,12 @@ export declare const sessionEventSchema: z.ZodObject<{
4912
5207
  parentToolCallId?: string | undefined;
4913
5208
  } | {
4914
5209
  options: {
5210
+ id: string;
4915
5211
  values: {
4916
5212
  value: string;
4917
5213
  name: string;
4918
5214
  description?: string | undefined;
4919
5215
  }[];
4920
- id: string;
4921
5216
  name: string;
4922
5217
  current: string;
4923
5218
  category?: "model" | "other" | "mode" | "effort" | undefined;
@@ -4964,8 +5259,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4964
5259
  sessionUpdate: "ls_permission_resolved";
4965
5260
  optionId?: string | undefined;
4966
5261
  answers?: {
4967
- values: string[];
4968
5262
  id: string;
5263
+ values: string[];
4969
5264
  other?: string | undefined;
4970
5265
  }[] | undefined;
4971
5266
  } | {
@@ -4975,6 +5270,23 @@ export declare const sessionEventSchema: z.ZodObject<{
4975
5270
  } | {
4976
5271
  state: "error" | "running" | "idle" | "waiting" | "offline";
4977
5272
  sessionUpdate: "ls_status";
5273
+ } | {
5274
+ task: {
5275
+ id: string;
5276
+ title: string;
5277
+ state: "unknown" | "running" | "completed" | "failed" | "stopped";
5278
+ startedAt: number;
5279
+ kind: "shell" | "monitor";
5280
+ toolCallId?: string | undefined;
5281
+ endedAt?: number | undefined;
5282
+ lastSeq?: number | undefined;
5283
+ command?: string | undefined;
5284
+ summary?: string | undefined;
5285
+ exitCode?: number | undefined;
5286
+ output?: boolean | undefined;
5287
+ canStop?: boolean | undefined;
5288
+ };
5289
+ sessionUpdate: "ls_task";
4978
5290
  } | {
4979
5291
  code: string;
4980
5292
  message: string;