@linkshell/gateway 0.5.1 → 0.5.2

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.
@@ -201,15 +201,15 @@ export declare const toolDetailSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
201
201
  }, "strip", z.ZodTypeAny, {
202
202
  type: "subagent";
203
203
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
204
- model?: string | undefined;
205
204
  task?: string | undefined;
206
205
  agentType?: string | undefined;
206
+ model?: string | undefined;
207
207
  }, {
208
208
  type: "subagent";
209
- model?: string | undefined;
210
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
211
209
  task?: string | undefined;
212
210
  agentType?: string | undefined;
211
+ model?: string | undefined;
212
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
213
213
  }>, z.ZodObject<{
214
214
  type: z.ZodLiteral<"skill">;
215
215
  name: z.ZodString;
@@ -262,13 +262,13 @@ export declare const planEntrySchema: z.ZodObject<{
262
262
  priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
263
263
  status: z.ZodEnum<["pending", "in_progress", "completed"]>;
264
264
  }, "strip", z.ZodTypeAny, {
265
- status: "pending" | "completed" | "in_progress";
265
+ status: "pending" | "in_progress" | "completed";
266
266
  content: string;
267
- priority: "low" | "medium" | "high";
267
+ priority: "high" | "medium" | "low";
268
268
  }, {
269
- status: "pending" | "completed" | "in_progress";
269
+ status: "pending" | "in_progress" | "completed";
270
270
  content: string;
271
- priority?: "low" | "medium" | "high" | undefined;
271
+ priority?: "high" | "medium" | "low" | undefined;
272
272
  }>;
273
273
  export type PlanEntry = z.infer<typeof planEntrySchema>;
274
274
  export declare const stopReasonSchema: z.ZodEnum<["end_turn", "cancelled", "error", "max_tokens", "refusal"]>;
@@ -300,7 +300,7 @@ export declare const sessionConfigOptionSchema: z.ZodObject<{
300
300
  }[];
301
301
  id: string;
302
302
  name: string;
303
- category: "mode" | "other" | "model" | "effort";
303
+ category: "other" | "model" | "mode" | "effort";
304
304
  current: string;
305
305
  }, {
306
306
  values: {
@@ -311,7 +311,7 @@ export declare const sessionConfigOptionSchema: z.ZodObject<{
311
311
  id: string;
312
312
  name: string;
313
313
  current: string;
314
- category?: "mode" | "other" | "model" | "effort" | undefined;
314
+ category?: "other" | "model" | "mode" | "effort" | undefined;
315
315
  }>;
316
316
  export type SessionConfigOption = z.infer<typeof sessionConfigOptionSchema>;
317
317
  export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate", [z.ZodObject<{
@@ -359,6 +359,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
359
359
  kind?: "agent" | "file" | "skill" | undefined;
360
360
  }>]>;
361
361
  }, "strip", z.ZodTypeAny, {
362
+ sessionUpdate: "user_message_chunk";
362
363
  content: {
363
364
  type: "text";
364
365
  text: string;
@@ -373,9 +374,9 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
373
374
  uri: string;
374
375
  kind?: "agent" | "file" | "skill" | undefined;
375
376
  };
376
- sessionUpdate: "user_message_chunk";
377
377
  messageId?: string | undefined;
378
378
  }, {
379
+ sessionUpdate: "user_message_chunk";
379
380
  content: {
380
381
  type: "text";
381
382
  text: string;
@@ -390,7 +391,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
390
391
  uri: string;
391
392
  kind?: "agent" | "file" | "skill" | undefined;
392
393
  };
393
- sessionUpdate: "user_message_chunk";
394
394
  messageId?: string | undefined;
395
395
  }>, z.ZodObject<{
396
396
  sessionUpdate: z.ZodLiteral<"agent_message_chunk">;
@@ -438,6 +438,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
438
438
  kind?: "agent" | "file" | "skill" | undefined;
439
439
  }>]>;
440
440
  }, "strip", z.ZodTypeAny, {
441
+ sessionUpdate: "agent_message_chunk";
442
+ messageId: string;
441
443
  content: {
442
444
  type: "text";
443
445
  text: string;
@@ -452,10 +454,10 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
452
454
  uri: string;
453
455
  kind?: "agent" | "file" | "skill" | undefined;
454
456
  };
455
- sessionUpdate: "agent_message_chunk";
456
- messageId: string;
457
457
  parentToolCallId?: string | undefined;
458
458
  }, {
459
+ sessionUpdate: "agent_message_chunk";
460
+ messageId: string;
459
461
  content: {
460
462
  type: "text";
461
463
  text: string;
@@ -470,8 +472,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
470
472
  uri: string;
471
473
  kind?: "agent" | "file" | "skill" | undefined;
472
474
  };
473
- sessionUpdate: "agent_message_chunk";
474
- messageId: string;
475
475
  parentToolCallId?: string | undefined;
476
476
  }>, z.ZodObject<{
477
477
  sessionUpdate: z.ZodLiteral<"agent_thought_chunk">;
@@ -519,6 +519,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
519
519
  kind?: "agent" | "file" | "skill" | undefined;
520
520
  }>]>;
521
521
  }, "strip", z.ZodTypeAny, {
522
+ sessionUpdate: "agent_thought_chunk";
523
+ messageId: string;
522
524
  content: {
523
525
  type: "text";
524
526
  text: string;
@@ -533,10 +535,10 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
533
535
  uri: string;
534
536
  kind?: "agent" | "file" | "skill" | undefined;
535
537
  };
536
- sessionUpdate: "agent_thought_chunk";
537
- messageId: string;
538
538
  parentToolCallId?: string | undefined;
539
539
  }, {
540
+ sessionUpdate: "agent_thought_chunk";
541
+ messageId: string;
540
542
  content: {
541
543
  type: "text";
542
544
  text: string;
@@ -551,8 +553,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
551
553
  uri: string;
552
554
  kind?: "agent" | "file" | "skill" | undefined;
553
555
  };
554
- sessionUpdate: "agent_thought_chunk";
555
- messageId: string;
556
556
  parentToolCallId?: string | undefined;
557
557
  }>, z.ZodObject<{
558
558
  sessionUpdate: z.ZodLiteral<"tool_call">;
@@ -714,15 +714,15 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
714
714
  }, "strip", z.ZodTypeAny, {
715
715
  type: "subagent";
716
716
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
717
- model?: string | undefined;
718
717
  task?: string | undefined;
719
718
  agentType?: string | undefined;
719
+ model?: string | undefined;
720
720
  }, {
721
721
  type: "subagent";
722
- model?: string | undefined;
723
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
724
722
  task?: string | undefined;
725
723
  agentType?: string | undefined;
724
+ model?: string | undefined;
725
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
726
726
  }>, z.ZodObject<{
727
727
  type: z.ZodLiteral<"skill">;
728
728
  name: z.ZodString;
@@ -770,11 +770,37 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
770
770
  phase: "started" | "finished";
771
771
  }>]>>;
772
772
  }, "strip", z.ZodTypeAny, {
773
- status: "pending" | "completed" | "failed" | "in_progress";
774
- kind: "other" | "delete" | "read" | "edit" | "move" | "search" | "execute" | "think" | "fetch";
773
+ status: "failed" | "pending" | "in_progress" | "completed";
774
+ kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
775
775
  title: string;
776
776
  toolCallId: string;
777
777
  sessionUpdate: "tool_call";
778
+ detail?: {
779
+ type: "mcp";
780
+ tool: string;
781
+ server: string;
782
+ } | {
783
+ type: "subagent";
784
+ action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
785
+ task?: string | undefined;
786
+ agentType?: string | undefined;
787
+ model?: string | undefined;
788
+ } | {
789
+ type: "skill";
790
+ name: string;
791
+ description?: string | undefined;
792
+ } | {
793
+ type: "web_search";
794
+ query?: string | undefined;
795
+ } | {
796
+ type: "image_generation";
797
+ prompt?: string | undefined;
798
+ } | {
799
+ type: "compaction";
800
+ } | {
801
+ type: "review";
802
+ phase: "started" | "finished";
803
+ } | undefined;
778
804
  content?: ({
779
805
  type: "content";
780
806
  content: {
@@ -806,16 +832,28 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
806
832
  type: "terminal";
807
833
  terminalId: string;
808
834
  })[] | undefined;
835
+ parentToolCallId?: string | undefined;
836
+ rawInput?: unknown;
837
+ locations?: {
838
+ path: string;
839
+ line?: number | undefined;
840
+ }[] | undefined;
841
+ }, {
842
+ status: "failed" | "pending" | "in_progress" | "completed";
843
+ kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
844
+ title: string;
845
+ toolCallId: string;
846
+ sessionUpdate: "tool_call";
809
847
  detail?: {
810
848
  type: "mcp";
811
849
  tool: string;
812
850
  server: string;
813
851
  } | {
814
852
  type: "subagent";
815
- action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
816
- model?: string | undefined;
817
853
  task?: string | undefined;
818
854
  agentType?: string | undefined;
855
+ model?: string | undefined;
856
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
819
857
  } | {
820
858
  type: "skill";
821
859
  name: string;
@@ -832,18 +870,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
832
870
  type: "review";
833
871
  phase: "started" | "finished";
834
872
  } | undefined;
835
- parentToolCallId?: string | undefined;
836
- rawInput?: unknown;
837
- locations?: {
838
- path: string;
839
- line?: number | undefined;
840
- }[] | undefined;
841
- }, {
842
- status: "pending" | "completed" | "failed" | "in_progress";
843
- kind: "other" | "delete" | "read" | "edit" | "move" | "search" | "execute" | "think" | "fetch";
844
- title: string;
845
- toolCallId: string;
846
- sessionUpdate: "tool_call";
847
873
  content?: ({
848
874
  type: "content";
849
875
  content: {
@@ -875,32 +901,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
875
901
  type: "terminal";
876
902
  terminalId: string;
877
903
  })[] | undefined;
878
- detail?: {
879
- type: "mcp";
880
- tool: string;
881
- server: string;
882
- } | {
883
- type: "subagent";
884
- model?: string | undefined;
885
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
886
- task?: string | undefined;
887
- agentType?: string | undefined;
888
- } | {
889
- type: "skill";
890
- name: string;
891
- description?: string | undefined;
892
- } | {
893
- type: "web_search";
894
- query?: string | undefined;
895
- } | {
896
- type: "image_generation";
897
- prompt?: string | undefined;
898
- } | {
899
- type: "compaction";
900
- } | {
901
- type: "review";
902
- phase: "started" | "finished";
903
- } | undefined;
904
904
  parentToolCallId?: string | undefined;
905
905
  rawInput?: unknown;
906
906
  locations?: {
@@ -936,15 +936,15 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
936
936
  }, "strip", z.ZodTypeAny, {
937
937
  type: "subagent";
938
938
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
939
- model?: string | undefined;
940
939
  task?: string | undefined;
941
940
  agentType?: string | undefined;
941
+ model?: string | undefined;
942
942
  }, {
943
943
  type: "subagent";
944
- model?: string | undefined;
945
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
946
944
  task?: string | undefined;
947
945
  agentType?: string | undefined;
946
+ model?: string | undefined;
947
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
948
948
  }>, z.ZodObject<{
949
949
  type: z.ZodLiteral<"skill">;
950
950
  name: z.ZodString;
@@ -1116,7 +1116,34 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1116
1116
  }, "strip", z.ZodTypeAny, {
1117
1117
  toolCallId: string;
1118
1118
  sessionUpdate: "tool_call_update";
1119
- status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
1119
+ status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
1120
+ title?: string | undefined;
1121
+ detail?: {
1122
+ type: "mcp";
1123
+ tool: string;
1124
+ server: string;
1125
+ } | {
1126
+ type: "subagent";
1127
+ action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
1128
+ task?: string | undefined;
1129
+ agentType?: string | undefined;
1130
+ model?: string | undefined;
1131
+ } | {
1132
+ type: "skill";
1133
+ name: string;
1134
+ description?: string | undefined;
1135
+ } | {
1136
+ type: "web_search";
1137
+ query?: string | undefined;
1138
+ } | {
1139
+ type: "image_generation";
1140
+ prompt?: string | undefined;
1141
+ } | {
1142
+ type: "compaction";
1143
+ } | {
1144
+ type: "review";
1145
+ phase: "started" | "finished";
1146
+ } | undefined;
1120
1147
  content?: ({
1121
1148
  type: "content";
1122
1149
  content: {
@@ -1148,6 +1175,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1148
1175
  type: "terminal";
1149
1176
  terminalId: string;
1150
1177
  })[] | undefined;
1178
+ parentToolCallId?: string | undefined;
1179
+ appendOutput?: string | undefined;
1180
+ rawOutput?: unknown;
1181
+ }, {
1182
+ toolCallId: string;
1183
+ sessionUpdate: "tool_call_update";
1184
+ status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
1151
1185
  title?: string | undefined;
1152
1186
  detail?: {
1153
1187
  type: "mcp";
@@ -1155,10 +1189,10 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1155
1189
  server: string;
1156
1190
  } | {
1157
1191
  type: "subagent";
1158
- action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
1159
- model?: string | undefined;
1160
1192
  task?: string | undefined;
1161
1193
  agentType?: string | undefined;
1194
+ model?: string | undefined;
1195
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
1162
1196
  } | {
1163
1197
  type: "skill";
1164
1198
  name: string;
@@ -1175,13 +1209,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1175
1209
  type: "review";
1176
1210
  phase: "started" | "finished";
1177
1211
  } | undefined;
1178
- parentToolCallId?: string | undefined;
1179
- appendOutput?: string | undefined;
1180
- rawOutput?: unknown;
1181
- }, {
1182
- toolCallId: string;
1183
- sessionUpdate: "tool_call_update";
1184
- status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
1185
1212
  content?: ({
1186
1213
  type: "content";
1187
1214
  content: {
@@ -1213,33 +1240,6 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1213
1240
  type: "terminal";
1214
1241
  terminalId: string;
1215
1242
  })[] | undefined;
1216
- title?: string | undefined;
1217
- detail?: {
1218
- type: "mcp";
1219
- tool: string;
1220
- server: string;
1221
- } | {
1222
- type: "subagent";
1223
- model?: string | undefined;
1224
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
1225
- task?: string | undefined;
1226
- agentType?: string | undefined;
1227
- } | {
1228
- type: "skill";
1229
- name: string;
1230
- description?: string | undefined;
1231
- } | {
1232
- type: "web_search";
1233
- query?: string | undefined;
1234
- } | {
1235
- type: "image_generation";
1236
- prompt?: string | undefined;
1237
- } | {
1238
- type: "compaction";
1239
- } | {
1240
- type: "review";
1241
- phase: "started" | "finished";
1242
- } | undefined;
1243
1243
  parentToolCallId?: string | undefined;
1244
1244
  appendOutput?: string | undefined;
1245
1245
  rawOutput?: unknown;
@@ -1250,26 +1250,26 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1250
1250
  priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
1251
1251
  status: z.ZodEnum<["pending", "in_progress", "completed"]>;
1252
1252
  }, "strip", z.ZodTypeAny, {
1253
- status: "pending" | "completed" | "in_progress";
1253
+ status: "pending" | "in_progress" | "completed";
1254
1254
  content: string;
1255
- priority: "low" | "medium" | "high";
1255
+ priority: "high" | "medium" | "low";
1256
1256
  }, {
1257
- status: "pending" | "completed" | "in_progress";
1257
+ status: "pending" | "in_progress" | "completed";
1258
1258
  content: string;
1259
- priority?: "low" | "medium" | "high" | undefined;
1259
+ priority?: "high" | "medium" | "low" | undefined;
1260
1260
  }>, "many">;
1261
1261
  }, "strip", z.ZodTypeAny, {
1262
1262
  entries: {
1263
- status: "pending" | "completed" | "in_progress";
1263
+ status: "pending" | "in_progress" | "completed";
1264
1264
  content: string;
1265
- priority: "low" | "medium" | "high";
1265
+ priority: "high" | "medium" | "low";
1266
1266
  }[];
1267
1267
  sessionUpdate: "plan";
1268
1268
  }, {
1269
1269
  entries: {
1270
- status: "pending" | "completed" | "in_progress";
1270
+ status: "pending" | "in_progress" | "completed";
1271
1271
  content: string;
1272
- priority?: "low" | "medium" | "high" | undefined;
1272
+ priority?: "high" | "medium" | "low" | undefined;
1273
1273
  }[];
1274
1274
  sessionUpdate: "plan";
1275
1275
  }>, z.ZodObject<{
@@ -1328,26 +1328,26 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1328
1328
  contextWindow: z.ZodOptional<z.ZodNumber>;
1329
1329
  }, "strip", z.ZodTypeAny, {
1330
1330
  sessionUpdate: "usage_update";
1331
- contextWindow?: number | undefined;
1332
1331
  usedTokens?: number | undefined;
1332
+ contextWindow?: number | undefined;
1333
1333
  }, {
1334
1334
  sessionUpdate: "usage_update";
1335
- contextWindow?: number | undefined;
1336
1335
  usedTokens?: number | undefined;
1336
+ contextWindow?: number | undefined;
1337
1337
  }>, z.ZodObject<{
1338
1338
  sessionUpdate: z.ZodLiteral<"ls_message_done">;
1339
1339
  parentToolCallId: z.ZodOptional<z.ZodString>;
1340
1340
  messageId: z.ZodString;
1341
1341
  role: z.ZodEnum<["agent", "thought", "user"]>;
1342
1342
  }, "strip", z.ZodTypeAny, {
1343
- role: "user" | "agent" | "thought";
1344
1343
  sessionUpdate: "ls_message_done";
1345
1344
  messageId: string;
1345
+ role: "agent" | "thought" | "user";
1346
1346
  parentToolCallId?: string | undefined;
1347
1347
  }, {
1348
- role: "user" | "agent" | "thought";
1349
1348
  sessionUpdate: "ls_message_done";
1350
1349
  messageId: string;
1350
+ role: "agent" | "thought" | "user";
1351
1351
  parentToolCallId?: string | undefined;
1352
1352
  }>, z.ZodObject<{
1353
1353
  sessionUpdate: z.ZodLiteral<"ls_config">;
@@ -1378,7 +1378,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1378
1378
  }[];
1379
1379
  id: string;
1380
1380
  name: string;
1381
- category: "mode" | "other" | "model" | "effort";
1381
+ category: "other" | "model" | "mode" | "effort";
1382
1382
  current: string;
1383
1383
  }, {
1384
1384
  values: {
@@ -1389,7 +1389,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1389
1389
  id: string;
1390
1390
  name: string;
1391
1391
  current: string;
1392
- category?: "mode" | "other" | "model" | "effort" | undefined;
1392
+ category?: "other" | "model" | "mode" | "effort" | undefined;
1393
1393
  }>, "many">;
1394
1394
  }, "strip", z.ZodTypeAny, {
1395
1395
  options: {
@@ -1400,7 +1400,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1400
1400
  }[];
1401
1401
  id: string;
1402
1402
  name: string;
1403
- category: "mode" | "other" | "model" | "effort";
1403
+ category: "other" | "model" | "mode" | "effort";
1404
1404
  current: string;
1405
1405
  }[];
1406
1406
  sessionUpdate: "ls_config";
@@ -1414,7 +1414,7 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1414
1414
  id: string;
1415
1415
  name: string;
1416
1416
  current: string;
1417
- category?: "mode" | "other" | "model" | "effort" | undefined;
1417
+ category?: "other" | "model" | "mode" | "effort" | undefined;
1418
1418
  }[];
1419
1419
  sessionUpdate: "ls_config";
1420
1420
  }>, z.ZodObject<{
@@ -1442,15 +1442,15 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1442
1442
  }, "strip", z.ZodTypeAny, {
1443
1443
  state: "started" | "ended";
1444
1444
  sessionUpdate: "ls_turn";
1445
- turnId?: string | undefined;
1446
1445
  parentToolCallId?: string | undefined;
1447
- stopReason?: "error" | "cancelled" | "end_turn" | "max_tokens" | "refusal" | undefined;
1446
+ turnId?: string | undefined;
1447
+ stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
1448
1448
  }, {
1449
1449
  state: "started" | "ended";
1450
1450
  sessionUpdate: "ls_turn";
1451
- turnId?: string | undefined;
1452
1451
  parentToolCallId?: string | undefined;
1453
- stopReason?: "error" | "cancelled" | "end_turn" | "max_tokens" | "refusal" | undefined;
1452
+ turnId?: string | undefined;
1453
+ stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
1454
1454
  }>, z.ZodObject<{
1455
1455
  sessionUpdate: z.ZodLiteral<"ls_permission">;
1456
1456
  requestId: z.ZodString;
@@ -1462,36 +1462,36 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1462
1462
  name: z.ZodString;
1463
1463
  kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
1464
1464
  }, "strip", z.ZodTypeAny, {
1465
+ optionId: string;
1465
1466
  name: string;
1466
1467
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1467
- optionId: string;
1468
1468
  }, {
1469
+ optionId: string;
1469
1470
  name: string;
1470
1471
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1471
- optionId: string;
1472
1472
  }>, "many">;
1473
1473
  }, "strip", z.ZodTypeAny, {
1474
1474
  options: {
1475
+ optionId: string;
1475
1476
  name: string;
1476
1477
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1477
- optionId: string;
1478
1478
  }[];
1479
- requestId: string;
1480
1479
  title: string;
1480
+ requestId: string;
1481
1481
  sessionUpdate: "ls_permission";
1482
- detail?: string | undefined;
1483
1482
  toolCallId?: string | undefined;
1483
+ detail?: string | undefined;
1484
1484
  }, {
1485
1485
  options: {
1486
+ optionId: string;
1486
1487
  name: string;
1487
1488
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1488
- optionId: string;
1489
1489
  }[];
1490
- requestId: string;
1491
1490
  title: string;
1491
+ requestId: string;
1492
1492
  sessionUpdate: "ls_permission";
1493
- detail?: string | undefined;
1494
1493
  toolCallId?: string | undefined;
1494
+ detail?: string | undefined;
1495
1495
  }>, z.ZodObject<{
1496
1496
  sessionUpdate: z.ZodLiteral<"ls_permission_resolved">;
1497
1497
  requestId: z.ZodString;
@@ -1509,21 +1509,21 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1509
1509
  driver: z.ZodEnum<["desktop", "remote", "none"]>;
1510
1510
  deviceId: z.ZodOptional<z.ZodString>;
1511
1511
  }, "strip", z.ZodTypeAny, {
1512
- driver: "none" | "remote" | "desktop";
1512
+ driver: "remote" | "desktop" | "none";
1513
1513
  sessionUpdate: "ls_driver";
1514
1514
  deviceId?: string | undefined;
1515
1515
  }, {
1516
- driver: "none" | "remote" | "desktop";
1516
+ driver: "remote" | "desktop" | "none";
1517
1517
  sessionUpdate: "ls_driver";
1518
1518
  deviceId?: string | undefined;
1519
1519
  }>, z.ZodObject<{
1520
1520
  sessionUpdate: z.ZodLiteral<"ls_status">;
1521
1521
  state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
1522
1522
  }, "strip", z.ZodTypeAny, {
1523
- state: "idle" | "error" | "running" | "waiting" | "offline";
1523
+ state: "idle" | "running" | "waiting" | "error" | "offline";
1524
1524
  sessionUpdate: "ls_status";
1525
1525
  }, {
1526
- state: "idle" | "error" | "running" | "waiting" | "offline";
1526
+ state: "idle" | "running" | "waiting" | "error" | "offline";
1527
1527
  sessionUpdate: "ls_status";
1528
1528
  }>, z.ZodObject<{
1529
1529
  sessionUpdate: z.ZodLiteral<"ls_error">;
@@ -1593,6 +1593,7 @@ export declare const sessionEventSchema: z.ZodObject<{
1593
1593
  kind?: "agent" | "file" | "skill" | undefined;
1594
1594
  }>]>;
1595
1595
  }, "strip", z.ZodTypeAny, {
1596
+ sessionUpdate: "user_message_chunk";
1596
1597
  content: {
1597
1598
  type: "text";
1598
1599
  text: string;
@@ -1607,9 +1608,9 @@ export declare const sessionEventSchema: z.ZodObject<{
1607
1608
  uri: string;
1608
1609
  kind?: "agent" | "file" | "skill" | undefined;
1609
1610
  };
1610
- sessionUpdate: "user_message_chunk";
1611
1611
  messageId?: string | undefined;
1612
1612
  }, {
1613
+ sessionUpdate: "user_message_chunk";
1613
1614
  content: {
1614
1615
  type: "text";
1615
1616
  text: string;
@@ -1624,7 +1625,6 @@ export declare const sessionEventSchema: z.ZodObject<{
1624
1625
  uri: string;
1625
1626
  kind?: "agent" | "file" | "skill" | undefined;
1626
1627
  };
1627
- sessionUpdate: "user_message_chunk";
1628
1628
  messageId?: string | undefined;
1629
1629
  }>, z.ZodObject<{
1630
1630
  sessionUpdate: z.ZodLiteral<"agent_message_chunk">;
@@ -1672,6 +1672,8 @@ export declare const sessionEventSchema: z.ZodObject<{
1672
1672
  kind?: "agent" | "file" | "skill" | undefined;
1673
1673
  }>]>;
1674
1674
  }, "strip", z.ZodTypeAny, {
1675
+ sessionUpdate: "agent_message_chunk";
1676
+ messageId: string;
1675
1677
  content: {
1676
1678
  type: "text";
1677
1679
  text: string;
@@ -1686,10 +1688,10 @@ export declare const sessionEventSchema: z.ZodObject<{
1686
1688
  uri: string;
1687
1689
  kind?: "agent" | "file" | "skill" | undefined;
1688
1690
  };
1689
- sessionUpdate: "agent_message_chunk";
1690
- messageId: string;
1691
1691
  parentToolCallId?: string | undefined;
1692
1692
  }, {
1693
+ sessionUpdate: "agent_message_chunk";
1694
+ messageId: string;
1693
1695
  content: {
1694
1696
  type: "text";
1695
1697
  text: string;
@@ -1704,8 +1706,6 @@ export declare const sessionEventSchema: z.ZodObject<{
1704
1706
  uri: string;
1705
1707
  kind?: "agent" | "file" | "skill" | undefined;
1706
1708
  };
1707
- sessionUpdate: "agent_message_chunk";
1708
- messageId: string;
1709
1709
  parentToolCallId?: string | undefined;
1710
1710
  }>, z.ZodObject<{
1711
1711
  sessionUpdate: z.ZodLiteral<"agent_thought_chunk">;
@@ -1753,6 +1753,8 @@ export declare const sessionEventSchema: z.ZodObject<{
1753
1753
  kind?: "agent" | "file" | "skill" | undefined;
1754
1754
  }>]>;
1755
1755
  }, "strip", z.ZodTypeAny, {
1756
+ sessionUpdate: "agent_thought_chunk";
1757
+ messageId: string;
1756
1758
  content: {
1757
1759
  type: "text";
1758
1760
  text: string;
@@ -1767,10 +1769,10 @@ export declare const sessionEventSchema: z.ZodObject<{
1767
1769
  uri: string;
1768
1770
  kind?: "agent" | "file" | "skill" | undefined;
1769
1771
  };
1770
- sessionUpdate: "agent_thought_chunk";
1771
- messageId: string;
1772
1772
  parentToolCallId?: string | undefined;
1773
1773
  }, {
1774
+ sessionUpdate: "agent_thought_chunk";
1775
+ messageId: string;
1774
1776
  content: {
1775
1777
  type: "text";
1776
1778
  text: string;
@@ -1785,8 +1787,6 @@ export declare const sessionEventSchema: z.ZodObject<{
1785
1787
  uri: string;
1786
1788
  kind?: "agent" | "file" | "skill" | undefined;
1787
1789
  };
1788
- sessionUpdate: "agent_thought_chunk";
1789
- messageId: string;
1790
1790
  parentToolCallId?: string | undefined;
1791
1791
  }>, z.ZodObject<{
1792
1792
  sessionUpdate: z.ZodLiteral<"tool_call">;
@@ -1948,15 +1948,15 @@ export declare const sessionEventSchema: z.ZodObject<{
1948
1948
  }, "strip", z.ZodTypeAny, {
1949
1949
  type: "subagent";
1950
1950
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
1951
- model?: string | undefined;
1952
1951
  task?: string | undefined;
1953
1952
  agentType?: string | undefined;
1953
+ model?: string | undefined;
1954
1954
  }, {
1955
1955
  type: "subagent";
1956
- model?: string | undefined;
1957
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
1958
1956
  task?: string | undefined;
1959
1957
  agentType?: string | undefined;
1958
+ model?: string | undefined;
1959
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
1960
1960
  }>, z.ZodObject<{
1961
1961
  type: z.ZodLiteral<"skill">;
1962
1962
  name: z.ZodString;
@@ -2004,52 +2004,21 @@ export declare const sessionEventSchema: z.ZodObject<{
2004
2004
  phase: "started" | "finished";
2005
2005
  }>]>>;
2006
2006
  }, "strip", z.ZodTypeAny, {
2007
- status: "pending" | "completed" | "failed" | "in_progress";
2008
- kind: "other" | "delete" | "read" | "edit" | "move" | "search" | "execute" | "think" | "fetch";
2007
+ status: "failed" | "pending" | "in_progress" | "completed";
2008
+ kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
2009
2009
  title: string;
2010
2010
  toolCallId: string;
2011
2011
  sessionUpdate: "tool_call";
2012
- content?: ({
2013
- type: "content";
2014
- content: {
2015
- type: "text";
2016
- text: string;
2017
- } | {
2018
- type: "image";
2019
- mimeType: string;
2020
- data?: string | undefined;
2021
- uri?: string | undefined;
2022
- } | {
2023
- type: "resource_link";
2024
- name: string;
2025
- uri: string;
2026
- kind?: "agent" | "file" | "skill" | undefined;
2027
- };
2028
- } | {
2029
- path: string;
2030
- type: "diff";
2031
- newText: string;
2032
- oldText?: string | null | undefined;
2033
- } | {
2034
- path: string;
2035
- type: "patch";
2036
- diff: string;
2037
- change: "delete" | "add" | "update";
2038
- movePath?: string | undefined;
2039
- } | {
2040
- type: "terminal";
2041
- terminalId: string;
2042
- })[] | undefined;
2043
- detail?: {
2044
- type: "mcp";
2045
- tool: string;
2046
- server: string;
2012
+ detail?: {
2013
+ type: "mcp";
2014
+ tool: string;
2015
+ server: string;
2047
2016
  } | {
2048
2017
  type: "subagent";
2049
2018
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
2050
- model?: string | undefined;
2051
2019
  task?: string | undefined;
2052
2020
  agentType?: string | undefined;
2021
+ model?: string | undefined;
2053
2022
  } | {
2054
2023
  type: "skill";
2055
2024
  name: string;
@@ -2066,18 +2035,6 @@ export declare const sessionEventSchema: z.ZodObject<{
2066
2035
  type: "review";
2067
2036
  phase: "started" | "finished";
2068
2037
  } | undefined;
2069
- parentToolCallId?: string | undefined;
2070
- rawInput?: unknown;
2071
- locations?: {
2072
- path: string;
2073
- line?: number | undefined;
2074
- }[] | undefined;
2075
- }, {
2076
- status: "pending" | "completed" | "failed" | "in_progress";
2077
- kind: "other" | "delete" | "read" | "edit" | "move" | "search" | "execute" | "think" | "fetch";
2078
- title: string;
2079
- toolCallId: string;
2080
- sessionUpdate: "tool_call";
2081
2038
  content?: ({
2082
2039
  type: "content";
2083
2040
  content: {
@@ -2109,16 +2066,28 @@ export declare const sessionEventSchema: z.ZodObject<{
2109
2066
  type: "terminal";
2110
2067
  terminalId: string;
2111
2068
  })[] | undefined;
2069
+ parentToolCallId?: string | undefined;
2070
+ rawInput?: unknown;
2071
+ locations?: {
2072
+ path: string;
2073
+ line?: number | undefined;
2074
+ }[] | undefined;
2075
+ }, {
2076
+ status: "failed" | "pending" | "in_progress" | "completed";
2077
+ kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
2078
+ title: string;
2079
+ toolCallId: string;
2080
+ sessionUpdate: "tool_call";
2112
2081
  detail?: {
2113
2082
  type: "mcp";
2114
2083
  tool: string;
2115
2084
  server: string;
2116
2085
  } | {
2117
2086
  type: "subagent";
2118
- model?: string | undefined;
2119
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
2120
2087
  task?: string | undefined;
2121
2088
  agentType?: string | undefined;
2089
+ model?: string | undefined;
2090
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
2122
2091
  } | {
2123
2092
  type: "skill";
2124
2093
  name: string;
@@ -2135,6 +2104,37 @@ export declare const sessionEventSchema: z.ZodObject<{
2135
2104
  type: "review";
2136
2105
  phase: "started" | "finished";
2137
2106
  } | undefined;
2107
+ content?: ({
2108
+ type: "content";
2109
+ content: {
2110
+ type: "text";
2111
+ text: string;
2112
+ } | {
2113
+ type: "image";
2114
+ mimeType: string;
2115
+ data?: string | undefined;
2116
+ uri?: string | undefined;
2117
+ } | {
2118
+ type: "resource_link";
2119
+ name: string;
2120
+ uri: string;
2121
+ kind?: "agent" | "file" | "skill" | undefined;
2122
+ };
2123
+ } | {
2124
+ path: string;
2125
+ type: "diff";
2126
+ newText: string;
2127
+ oldText?: string | null | undefined;
2128
+ } | {
2129
+ path: string;
2130
+ type: "patch";
2131
+ diff: string;
2132
+ change: "delete" | "add" | "update";
2133
+ movePath?: string | undefined;
2134
+ } | {
2135
+ type: "terminal";
2136
+ terminalId: string;
2137
+ })[] | undefined;
2138
2138
  parentToolCallId?: string | undefined;
2139
2139
  rawInput?: unknown;
2140
2140
  locations?: {
@@ -2170,15 +2170,15 @@ export declare const sessionEventSchema: z.ZodObject<{
2170
2170
  }, "strip", z.ZodTypeAny, {
2171
2171
  type: "subagent";
2172
2172
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
2173
- model?: string | undefined;
2174
2173
  task?: string | undefined;
2175
2174
  agentType?: string | undefined;
2175
+ model?: string | undefined;
2176
2176
  }, {
2177
2177
  type: "subagent";
2178
- model?: string | undefined;
2179
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
2180
2178
  task?: string | undefined;
2181
2179
  agentType?: string | undefined;
2180
+ model?: string | undefined;
2181
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
2182
2182
  }>, z.ZodObject<{
2183
2183
  type: z.ZodLiteral<"skill">;
2184
2184
  name: z.ZodString;
@@ -2350,7 +2350,34 @@ export declare const sessionEventSchema: z.ZodObject<{
2350
2350
  }, "strip", z.ZodTypeAny, {
2351
2351
  toolCallId: string;
2352
2352
  sessionUpdate: "tool_call_update";
2353
- status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
2353
+ status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
2354
+ title?: string | undefined;
2355
+ detail?: {
2356
+ type: "mcp";
2357
+ tool: string;
2358
+ server: string;
2359
+ } | {
2360
+ type: "subagent";
2361
+ action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
2362
+ task?: string | undefined;
2363
+ agentType?: string | undefined;
2364
+ model?: string | undefined;
2365
+ } | {
2366
+ type: "skill";
2367
+ name: string;
2368
+ description?: string | undefined;
2369
+ } | {
2370
+ type: "web_search";
2371
+ query?: string | undefined;
2372
+ } | {
2373
+ type: "image_generation";
2374
+ prompt?: string | undefined;
2375
+ } | {
2376
+ type: "compaction";
2377
+ } | {
2378
+ type: "review";
2379
+ phase: "started" | "finished";
2380
+ } | undefined;
2354
2381
  content?: ({
2355
2382
  type: "content";
2356
2383
  content: {
@@ -2382,6 +2409,13 @@ export declare const sessionEventSchema: z.ZodObject<{
2382
2409
  type: "terminal";
2383
2410
  terminalId: string;
2384
2411
  })[] | undefined;
2412
+ parentToolCallId?: string | undefined;
2413
+ appendOutput?: string | undefined;
2414
+ rawOutput?: unknown;
2415
+ }, {
2416
+ toolCallId: string;
2417
+ sessionUpdate: "tool_call_update";
2418
+ status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
2385
2419
  title?: string | undefined;
2386
2420
  detail?: {
2387
2421
  type: "mcp";
@@ -2389,10 +2423,10 @@ export declare const sessionEventSchema: z.ZodObject<{
2389
2423
  server: string;
2390
2424
  } | {
2391
2425
  type: "subagent";
2392
- action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
2393
- model?: string | undefined;
2394
2426
  task?: string | undefined;
2395
2427
  agentType?: string | undefined;
2428
+ model?: string | undefined;
2429
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
2396
2430
  } | {
2397
2431
  type: "skill";
2398
2432
  name: string;
@@ -2409,13 +2443,6 @@ export declare const sessionEventSchema: z.ZodObject<{
2409
2443
  type: "review";
2410
2444
  phase: "started" | "finished";
2411
2445
  } | undefined;
2412
- parentToolCallId?: string | undefined;
2413
- appendOutput?: string | undefined;
2414
- rawOutput?: unknown;
2415
- }, {
2416
- toolCallId: string;
2417
- sessionUpdate: "tool_call_update";
2418
- status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
2419
2446
  content?: ({
2420
2447
  type: "content";
2421
2448
  content: {
@@ -2447,33 +2474,6 @@ export declare const sessionEventSchema: z.ZodObject<{
2447
2474
  type: "terminal";
2448
2475
  terminalId: string;
2449
2476
  })[] | undefined;
2450
- title?: string | undefined;
2451
- detail?: {
2452
- type: "mcp";
2453
- tool: string;
2454
- server: string;
2455
- } | {
2456
- type: "subagent";
2457
- model?: string | undefined;
2458
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
2459
- task?: string | undefined;
2460
- agentType?: string | undefined;
2461
- } | {
2462
- type: "skill";
2463
- name: string;
2464
- description?: string | undefined;
2465
- } | {
2466
- type: "web_search";
2467
- query?: string | undefined;
2468
- } | {
2469
- type: "image_generation";
2470
- prompt?: string | undefined;
2471
- } | {
2472
- type: "compaction";
2473
- } | {
2474
- type: "review";
2475
- phase: "started" | "finished";
2476
- } | undefined;
2477
2477
  parentToolCallId?: string | undefined;
2478
2478
  appendOutput?: string | undefined;
2479
2479
  rawOutput?: unknown;
@@ -2484,26 +2484,26 @@ export declare const sessionEventSchema: z.ZodObject<{
2484
2484
  priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
2485
2485
  status: z.ZodEnum<["pending", "in_progress", "completed"]>;
2486
2486
  }, "strip", z.ZodTypeAny, {
2487
- status: "pending" | "completed" | "in_progress";
2487
+ status: "pending" | "in_progress" | "completed";
2488
2488
  content: string;
2489
- priority: "low" | "medium" | "high";
2489
+ priority: "high" | "medium" | "low";
2490
2490
  }, {
2491
- status: "pending" | "completed" | "in_progress";
2491
+ status: "pending" | "in_progress" | "completed";
2492
2492
  content: string;
2493
- priority?: "low" | "medium" | "high" | undefined;
2493
+ priority?: "high" | "medium" | "low" | undefined;
2494
2494
  }>, "many">;
2495
2495
  }, "strip", z.ZodTypeAny, {
2496
2496
  entries: {
2497
- status: "pending" | "completed" | "in_progress";
2497
+ status: "pending" | "in_progress" | "completed";
2498
2498
  content: string;
2499
- priority: "low" | "medium" | "high";
2499
+ priority: "high" | "medium" | "low";
2500
2500
  }[];
2501
2501
  sessionUpdate: "plan";
2502
2502
  }, {
2503
2503
  entries: {
2504
- status: "pending" | "completed" | "in_progress";
2504
+ status: "pending" | "in_progress" | "completed";
2505
2505
  content: string;
2506
- priority?: "low" | "medium" | "high" | undefined;
2506
+ priority?: "high" | "medium" | "low" | undefined;
2507
2507
  }[];
2508
2508
  sessionUpdate: "plan";
2509
2509
  }>, z.ZodObject<{
@@ -2562,26 +2562,26 @@ export declare const sessionEventSchema: z.ZodObject<{
2562
2562
  contextWindow: z.ZodOptional<z.ZodNumber>;
2563
2563
  }, "strip", z.ZodTypeAny, {
2564
2564
  sessionUpdate: "usage_update";
2565
- contextWindow?: number | undefined;
2566
2565
  usedTokens?: number | undefined;
2566
+ contextWindow?: number | undefined;
2567
2567
  }, {
2568
2568
  sessionUpdate: "usage_update";
2569
- contextWindow?: number | undefined;
2570
2569
  usedTokens?: number | undefined;
2570
+ contextWindow?: number | undefined;
2571
2571
  }>, z.ZodObject<{
2572
2572
  sessionUpdate: z.ZodLiteral<"ls_message_done">;
2573
2573
  parentToolCallId: z.ZodOptional<z.ZodString>;
2574
2574
  messageId: z.ZodString;
2575
2575
  role: z.ZodEnum<["agent", "thought", "user"]>;
2576
2576
  }, "strip", z.ZodTypeAny, {
2577
- role: "user" | "agent" | "thought";
2578
2577
  sessionUpdate: "ls_message_done";
2579
2578
  messageId: string;
2579
+ role: "agent" | "thought" | "user";
2580
2580
  parentToolCallId?: string | undefined;
2581
2581
  }, {
2582
- role: "user" | "agent" | "thought";
2583
2582
  sessionUpdate: "ls_message_done";
2584
2583
  messageId: string;
2584
+ role: "agent" | "thought" | "user";
2585
2585
  parentToolCallId?: string | undefined;
2586
2586
  }>, z.ZodObject<{
2587
2587
  sessionUpdate: z.ZodLiteral<"ls_config">;
@@ -2612,7 +2612,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2612
2612
  }[];
2613
2613
  id: string;
2614
2614
  name: string;
2615
- category: "mode" | "other" | "model" | "effort";
2615
+ category: "other" | "model" | "mode" | "effort";
2616
2616
  current: string;
2617
2617
  }, {
2618
2618
  values: {
@@ -2623,7 +2623,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2623
2623
  id: string;
2624
2624
  name: string;
2625
2625
  current: string;
2626
- category?: "mode" | "other" | "model" | "effort" | undefined;
2626
+ category?: "other" | "model" | "mode" | "effort" | undefined;
2627
2627
  }>, "many">;
2628
2628
  }, "strip", z.ZodTypeAny, {
2629
2629
  options: {
@@ -2634,7 +2634,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2634
2634
  }[];
2635
2635
  id: string;
2636
2636
  name: string;
2637
- category: "mode" | "other" | "model" | "effort";
2637
+ category: "other" | "model" | "mode" | "effort";
2638
2638
  current: string;
2639
2639
  }[];
2640
2640
  sessionUpdate: "ls_config";
@@ -2648,7 +2648,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2648
2648
  id: string;
2649
2649
  name: string;
2650
2650
  current: string;
2651
- category?: "mode" | "other" | "model" | "effort" | undefined;
2651
+ category?: "other" | "model" | "mode" | "effort" | undefined;
2652
2652
  }[];
2653
2653
  sessionUpdate: "ls_config";
2654
2654
  }>, z.ZodObject<{
@@ -2676,15 +2676,15 @@ export declare const sessionEventSchema: z.ZodObject<{
2676
2676
  }, "strip", z.ZodTypeAny, {
2677
2677
  state: "started" | "ended";
2678
2678
  sessionUpdate: "ls_turn";
2679
- turnId?: string | undefined;
2680
2679
  parentToolCallId?: string | undefined;
2681
- stopReason?: "error" | "cancelled" | "end_turn" | "max_tokens" | "refusal" | undefined;
2680
+ turnId?: string | undefined;
2681
+ stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
2682
2682
  }, {
2683
2683
  state: "started" | "ended";
2684
2684
  sessionUpdate: "ls_turn";
2685
- turnId?: string | undefined;
2686
2685
  parentToolCallId?: string | undefined;
2687
- stopReason?: "error" | "cancelled" | "end_turn" | "max_tokens" | "refusal" | undefined;
2686
+ turnId?: string | undefined;
2687
+ stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
2688
2688
  }>, z.ZodObject<{
2689
2689
  sessionUpdate: z.ZodLiteral<"ls_permission">;
2690
2690
  requestId: z.ZodString;
@@ -2696,36 +2696,36 @@ export declare const sessionEventSchema: z.ZodObject<{
2696
2696
  name: z.ZodString;
2697
2697
  kind: z.ZodEnum<["allow_once", "allow_always", "reject_once", "reject_always"]>;
2698
2698
  }, "strip", z.ZodTypeAny, {
2699
+ optionId: string;
2699
2700
  name: string;
2700
2701
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
2701
- optionId: string;
2702
2702
  }, {
2703
+ optionId: string;
2703
2704
  name: string;
2704
2705
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
2705
- optionId: string;
2706
2706
  }>, "many">;
2707
2707
  }, "strip", z.ZodTypeAny, {
2708
2708
  options: {
2709
+ optionId: string;
2709
2710
  name: string;
2710
2711
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
2711
- optionId: string;
2712
2712
  }[];
2713
- requestId: string;
2714
2713
  title: string;
2714
+ requestId: string;
2715
2715
  sessionUpdate: "ls_permission";
2716
- detail?: string | undefined;
2717
2716
  toolCallId?: string | undefined;
2717
+ detail?: string | undefined;
2718
2718
  }, {
2719
2719
  options: {
2720
+ optionId: string;
2720
2721
  name: string;
2721
2722
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
2722
- optionId: string;
2723
2723
  }[];
2724
- requestId: string;
2725
2724
  title: string;
2725
+ requestId: string;
2726
2726
  sessionUpdate: "ls_permission";
2727
- detail?: string | undefined;
2728
2727
  toolCallId?: string | undefined;
2728
+ detail?: string | undefined;
2729
2729
  }>, z.ZodObject<{
2730
2730
  sessionUpdate: z.ZodLiteral<"ls_permission_resolved">;
2731
2731
  requestId: z.ZodString;
@@ -2743,21 +2743,21 @@ export declare const sessionEventSchema: z.ZodObject<{
2743
2743
  driver: z.ZodEnum<["desktop", "remote", "none"]>;
2744
2744
  deviceId: z.ZodOptional<z.ZodString>;
2745
2745
  }, "strip", z.ZodTypeAny, {
2746
- driver: "none" | "remote" | "desktop";
2746
+ driver: "remote" | "desktop" | "none";
2747
2747
  sessionUpdate: "ls_driver";
2748
2748
  deviceId?: string | undefined;
2749
2749
  }, {
2750
- driver: "none" | "remote" | "desktop";
2750
+ driver: "remote" | "desktop" | "none";
2751
2751
  sessionUpdate: "ls_driver";
2752
2752
  deviceId?: string | undefined;
2753
2753
  }>, z.ZodObject<{
2754
2754
  sessionUpdate: z.ZodLiteral<"ls_status">;
2755
2755
  state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
2756
2756
  }, "strip", z.ZodTypeAny, {
2757
- state: "idle" | "error" | "running" | "waiting" | "offline";
2757
+ state: "idle" | "running" | "waiting" | "error" | "offline";
2758
2758
  sessionUpdate: "ls_status";
2759
2759
  }, {
2760
- state: "idle" | "error" | "running" | "waiting" | "offline";
2760
+ state: "idle" | "running" | "waiting" | "error" | "offline";
2761
2761
  sessionUpdate: "ls_status";
2762
2762
  }>, z.ZodObject<{
2763
2763
  sessionUpdate: z.ZodLiteral<"ls_error">;
@@ -2780,6 +2780,7 @@ export declare const sessionEventSchema: z.ZodObject<{
2780
2780
  seq: number;
2781
2781
  ts: number;
2782
2782
  update: {
2783
+ sessionUpdate: "user_message_chunk";
2783
2784
  content: {
2784
2785
  type: "text";
2785
2786
  text: string;
@@ -2794,9 +2795,10 @@ export declare const sessionEventSchema: z.ZodObject<{
2794
2795
  uri: string;
2795
2796
  kind?: "agent" | "file" | "skill" | undefined;
2796
2797
  };
2797
- sessionUpdate: "user_message_chunk";
2798
2798
  messageId?: string | undefined;
2799
2799
  } | {
2800
+ sessionUpdate: "agent_message_chunk";
2801
+ messageId: string;
2800
2802
  content: {
2801
2803
  type: "text";
2802
2804
  text: string;
@@ -2811,10 +2813,10 @@ export declare const sessionEventSchema: z.ZodObject<{
2811
2813
  uri: string;
2812
2814
  kind?: "agent" | "file" | "skill" | undefined;
2813
2815
  };
2814
- sessionUpdate: "agent_message_chunk";
2815
- messageId: string;
2816
2816
  parentToolCallId?: string | undefined;
2817
2817
  } | {
2818
+ sessionUpdate: "agent_thought_chunk";
2819
+ messageId: string;
2818
2820
  content: {
2819
2821
  type: "text";
2820
2822
  text: string;
@@ -2829,15 +2831,39 @@ export declare const sessionEventSchema: z.ZodObject<{
2829
2831
  uri: string;
2830
2832
  kind?: "agent" | "file" | "skill" | undefined;
2831
2833
  };
2832
- sessionUpdate: "agent_thought_chunk";
2833
- messageId: string;
2834
2834
  parentToolCallId?: string | undefined;
2835
2835
  } | {
2836
- status: "pending" | "completed" | "failed" | "in_progress";
2837
- kind: "other" | "delete" | "read" | "edit" | "move" | "search" | "execute" | "think" | "fetch";
2836
+ status: "failed" | "pending" | "in_progress" | "completed";
2837
+ kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
2838
2838
  title: string;
2839
2839
  toolCallId: string;
2840
2840
  sessionUpdate: "tool_call";
2841
+ detail?: {
2842
+ type: "mcp";
2843
+ tool: string;
2844
+ server: string;
2845
+ } | {
2846
+ type: "subagent";
2847
+ action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
2848
+ task?: string | undefined;
2849
+ agentType?: string | undefined;
2850
+ model?: string | undefined;
2851
+ } | {
2852
+ type: "skill";
2853
+ name: string;
2854
+ description?: string | undefined;
2855
+ } | {
2856
+ type: "web_search";
2857
+ query?: string | undefined;
2858
+ } | {
2859
+ type: "image_generation";
2860
+ prompt?: string | undefined;
2861
+ } | {
2862
+ type: "compaction";
2863
+ } | {
2864
+ type: "review";
2865
+ phase: "started" | "finished";
2866
+ } | undefined;
2841
2867
  content?: ({
2842
2868
  type: "content";
2843
2869
  content: {
@@ -2869,6 +2895,17 @@ export declare const sessionEventSchema: z.ZodObject<{
2869
2895
  type: "terminal";
2870
2896
  terminalId: string;
2871
2897
  })[] | undefined;
2898
+ parentToolCallId?: string | undefined;
2899
+ rawInput?: unknown;
2900
+ locations?: {
2901
+ path: string;
2902
+ line?: number | undefined;
2903
+ }[] | undefined;
2904
+ } | {
2905
+ toolCallId: string;
2906
+ sessionUpdate: "tool_call_update";
2907
+ status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
2908
+ title?: string | undefined;
2872
2909
  detail?: {
2873
2910
  type: "mcp";
2874
2911
  tool: string;
@@ -2876,9 +2913,9 @@ export declare const sessionEventSchema: z.ZodObject<{
2876
2913
  } | {
2877
2914
  type: "subagent";
2878
2915
  action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
2879
- model?: string | undefined;
2880
2916
  task?: string | undefined;
2881
2917
  agentType?: string | undefined;
2918
+ model?: string | undefined;
2882
2919
  } | {
2883
2920
  type: "skill";
2884
2921
  name: string;
@@ -2895,16 +2932,6 @@ export declare const sessionEventSchema: z.ZodObject<{
2895
2932
  type: "review";
2896
2933
  phase: "started" | "finished";
2897
2934
  } | undefined;
2898
- parentToolCallId?: string | undefined;
2899
- rawInput?: unknown;
2900
- locations?: {
2901
- path: string;
2902
- line?: number | undefined;
2903
- }[] | undefined;
2904
- } | {
2905
- toolCallId: string;
2906
- sessionUpdate: "tool_call_update";
2907
- status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
2908
2935
  content?: ({
2909
2936
  type: "content";
2910
2937
  content: {
@@ -2936,41 +2963,14 @@ export declare const sessionEventSchema: z.ZodObject<{
2936
2963
  type: "terminal";
2937
2964
  terminalId: string;
2938
2965
  })[] | undefined;
2939
- title?: string | undefined;
2940
- detail?: {
2941
- type: "mcp";
2942
- tool: string;
2943
- server: string;
2944
- } | {
2945
- type: "subagent";
2946
- action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
2947
- model?: string | undefined;
2948
- task?: string | undefined;
2949
- agentType?: string | undefined;
2950
- } | {
2951
- type: "skill";
2952
- name: string;
2953
- description?: string | undefined;
2954
- } | {
2955
- type: "web_search";
2956
- query?: string | undefined;
2957
- } | {
2958
- type: "image_generation";
2959
- prompt?: string | undefined;
2960
- } | {
2961
- type: "compaction";
2962
- } | {
2963
- type: "review";
2964
- phase: "started" | "finished";
2965
- } | undefined;
2966
2966
  parentToolCallId?: string | undefined;
2967
2967
  appendOutput?: string | undefined;
2968
2968
  rawOutput?: unknown;
2969
2969
  } | {
2970
2970
  entries: {
2971
- status: "pending" | "completed" | "in_progress";
2971
+ status: "pending" | "in_progress" | "completed";
2972
2972
  content: string;
2973
- priority: "low" | "medium" | "high";
2973
+ priority: "high" | "medium" | "low";
2974
2974
  }[];
2975
2975
  sessionUpdate: "plan";
2976
2976
  } | {
@@ -2989,12 +2989,12 @@ export declare const sessionEventSchema: z.ZodObject<{
2989
2989
  model?: string | undefined;
2990
2990
  } | {
2991
2991
  sessionUpdate: "usage_update";
2992
- contextWindow?: number | undefined;
2993
2992
  usedTokens?: number | undefined;
2993
+ contextWindow?: number | undefined;
2994
2994
  } | {
2995
- role: "user" | "agent" | "thought";
2996
2995
  sessionUpdate: "ls_message_done";
2997
2996
  messageId: string;
2997
+ role: "agent" | "thought" | "user";
2998
2998
  parentToolCallId?: string | undefined;
2999
2999
  } | {
3000
3000
  options: {
@@ -3005,7 +3005,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3005
3005
  }[];
3006
3006
  id: string;
3007
3007
  name: string;
3008
- category: "mode" | "other" | "model" | "effort";
3008
+ category: "other" | "model" | "mode" | "effort";
3009
3009
  current: string;
3010
3010
  }[];
3011
3011
  sessionUpdate: "ls_config";
@@ -3017,30 +3017,30 @@ export declare const sessionEventSchema: z.ZodObject<{
3017
3017
  } | {
3018
3018
  state: "started" | "ended";
3019
3019
  sessionUpdate: "ls_turn";
3020
- turnId?: string | undefined;
3021
3020
  parentToolCallId?: string | undefined;
3022
- stopReason?: "error" | "cancelled" | "end_turn" | "max_tokens" | "refusal" | undefined;
3021
+ turnId?: string | undefined;
3022
+ stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
3023
3023
  } | {
3024
3024
  options: {
3025
+ optionId: string;
3025
3026
  name: string;
3026
3027
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
3027
- optionId: string;
3028
3028
  }[];
3029
- requestId: string;
3030
3029
  title: string;
3030
+ requestId: string;
3031
3031
  sessionUpdate: "ls_permission";
3032
- detail?: string | undefined;
3033
3032
  toolCallId?: string | undefined;
3033
+ detail?: string | undefined;
3034
3034
  } | {
3035
3035
  requestId: string;
3036
3036
  sessionUpdate: "ls_permission_resolved";
3037
3037
  optionId?: string | undefined;
3038
3038
  } | {
3039
- driver: "none" | "remote" | "desktop";
3039
+ driver: "remote" | "desktop" | "none";
3040
3040
  sessionUpdate: "ls_driver";
3041
3041
  deviceId?: string | undefined;
3042
3042
  } | {
3043
- state: "idle" | "error" | "running" | "waiting" | "offline";
3043
+ state: "idle" | "running" | "waiting" | "error" | "offline";
3044
3044
  sessionUpdate: "ls_status";
3045
3045
  } | {
3046
3046
  code: string;
@@ -3053,6 +3053,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3053
3053
  seq: number;
3054
3054
  ts: number;
3055
3055
  update: {
3056
+ sessionUpdate: "user_message_chunk";
3056
3057
  content: {
3057
3058
  type: "text";
3058
3059
  text: string;
@@ -3067,9 +3068,10 @@ export declare const sessionEventSchema: z.ZodObject<{
3067
3068
  uri: string;
3068
3069
  kind?: "agent" | "file" | "skill" | undefined;
3069
3070
  };
3070
- sessionUpdate: "user_message_chunk";
3071
3071
  messageId?: string | undefined;
3072
3072
  } | {
3073
+ sessionUpdate: "agent_message_chunk";
3074
+ messageId: string;
3073
3075
  content: {
3074
3076
  type: "text";
3075
3077
  text: string;
@@ -3084,10 +3086,10 @@ export declare const sessionEventSchema: z.ZodObject<{
3084
3086
  uri: string;
3085
3087
  kind?: "agent" | "file" | "skill" | undefined;
3086
3088
  };
3087
- sessionUpdate: "agent_message_chunk";
3088
- messageId: string;
3089
3089
  parentToolCallId?: string | undefined;
3090
3090
  } | {
3091
+ sessionUpdate: "agent_thought_chunk";
3092
+ messageId: string;
3091
3093
  content: {
3092
3094
  type: "text";
3093
3095
  text: string;
@@ -3102,15 +3104,39 @@ export declare const sessionEventSchema: z.ZodObject<{
3102
3104
  uri: string;
3103
3105
  kind?: "agent" | "file" | "skill" | undefined;
3104
3106
  };
3105
- sessionUpdate: "agent_thought_chunk";
3106
- messageId: string;
3107
3107
  parentToolCallId?: string | undefined;
3108
3108
  } | {
3109
- status: "pending" | "completed" | "failed" | "in_progress";
3110
- kind: "other" | "delete" | "read" | "edit" | "move" | "search" | "execute" | "think" | "fetch";
3109
+ status: "failed" | "pending" | "in_progress" | "completed";
3110
+ kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
3111
3111
  title: string;
3112
3112
  toolCallId: string;
3113
3113
  sessionUpdate: "tool_call";
3114
+ detail?: {
3115
+ type: "mcp";
3116
+ tool: string;
3117
+ server: string;
3118
+ } | {
3119
+ type: "subagent";
3120
+ task?: string | undefined;
3121
+ agentType?: string | undefined;
3122
+ model?: string | undefined;
3123
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
3124
+ } | {
3125
+ type: "skill";
3126
+ name: string;
3127
+ description?: string | undefined;
3128
+ } | {
3129
+ type: "web_search";
3130
+ query?: string | undefined;
3131
+ } | {
3132
+ type: "image_generation";
3133
+ prompt?: string | undefined;
3134
+ } | {
3135
+ type: "compaction";
3136
+ } | {
3137
+ type: "review";
3138
+ phase: "started" | "finished";
3139
+ } | undefined;
3114
3140
  content?: ({
3115
3141
  type: "content";
3116
3142
  content: {
@@ -3142,16 +3168,27 @@ export declare const sessionEventSchema: z.ZodObject<{
3142
3168
  type: "terminal";
3143
3169
  terminalId: string;
3144
3170
  })[] | undefined;
3171
+ parentToolCallId?: string | undefined;
3172
+ rawInput?: unknown;
3173
+ locations?: {
3174
+ path: string;
3175
+ line?: number | undefined;
3176
+ }[] | undefined;
3177
+ } | {
3178
+ toolCallId: string;
3179
+ sessionUpdate: "tool_call_update";
3180
+ status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
3181
+ title?: string | undefined;
3145
3182
  detail?: {
3146
3183
  type: "mcp";
3147
3184
  tool: string;
3148
3185
  server: string;
3149
3186
  } | {
3150
3187
  type: "subagent";
3151
- model?: string | undefined;
3152
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
3153
3188
  task?: string | undefined;
3154
3189
  agentType?: string | undefined;
3190
+ model?: string | undefined;
3191
+ action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
3155
3192
  } | {
3156
3193
  type: "skill";
3157
3194
  name: string;
@@ -3168,16 +3205,6 @@ export declare const sessionEventSchema: z.ZodObject<{
3168
3205
  type: "review";
3169
3206
  phase: "started" | "finished";
3170
3207
  } | undefined;
3171
- parentToolCallId?: string | undefined;
3172
- rawInput?: unknown;
3173
- locations?: {
3174
- path: string;
3175
- line?: number | undefined;
3176
- }[] | undefined;
3177
- } | {
3178
- toolCallId: string;
3179
- sessionUpdate: "tool_call_update";
3180
- status?: "pending" | "completed" | "failed" | "in_progress" | undefined;
3181
3208
  content?: ({
3182
3209
  type: "content";
3183
3210
  content: {
@@ -3209,41 +3236,14 @@ export declare const sessionEventSchema: z.ZodObject<{
3209
3236
  type: "terminal";
3210
3237
  terminalId: string;
3211
3238
  })[] | undefined;
3212
- title?: string | undefined;
3213
- detail?: {
3214
- type: "mcp";
3215
- tool: string;
3216
- server: string;
3217
- } | {
3218
- type: "subagent";
3219
- model?: string | undefined;
3220
- action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
3221
- task?: string | undefined;
3222
- agentType?: string | undefined;
3223
- } | {
3224
- type: "skill";
3225
- name: string;
3226
- description?: string | undefined;
3227
- } | {
3228
- type: "web_search";
3229
- query?: string | undefined;
3230
- } | {
3231
- type: "image_generation";
3232
- prompt?: string | undefined;
3233
- } | {
3234
- type: "compaction";
3235
- } | {
3236
- type: "review";
3237
- phase: "started" | "finished";
3238
- } | undefined;
3239
3239
  parentToolCallId?: string | undefined;
3240
3240
  appendOutput?: string | undefined;
3241
3241
  rawOutput?: unknown;
3242
3242
  } | {
3243
3243
  entries: {
3244
- status: "pending" | "completed" | "in_progress";
3244
+ status: "pending" | "in_progress" | "completed";
3245
3245
  content: string;
3246
- priority?: "low" | "medium" | "high" | undefined;
3246
+ priority?: "high" | "medium" | "low" | undefined;
3247
3247
  }[];
3248
3248
  sessionUpdate: "plan";
3249
3249
  } | {
@@ -3262,12 +3262,12 @@ export declare const sessionEventSchema: z.ZodObject<{
3262
3262
  model?: string | undefined;
3263
3263
  } | {
3264
3264
  sessionUpdate: "usage_update";
3265
- contextWindow?: number | undefined;
3266
3265
  usedTokens?: number | undefined;
3266
+ contextWindow?: number | undefined;
3267
3267
  } | {
3268
- role: "user" | "agent" | "thought";
3269
3268
  sessionUpdate: "ls_message_done";
3270
3269
  messageId: string;
3270
+ role: "agent" | "thought" | "user";
3271
3271
  parentToolCallId?: string | undefined;
3272
3272
  } | {
3273
3273
  options: {
@@ -3279,7 +3279,7 @@ export declare const sessionEventSchema: z.ZodObject<{
3279
3279
  id: string;
3280
3280
  name: string;
3281
3281
  current: string;
3282
- category?: "mode" | "other" | "model" | "effort" | undefined;
3282
+ category?: "other" | "model" | "mode" | "effort" | undefined;
3283
3283
  }[];
3284
3284
  sessionUpdate: "ls_config";
3285
3285
  } | {
@@ -3290,30 +3290,30 @@ export declare const sessionEventSchema: z.ZodObject<{
3290
3290
  } | {
3291
3291
  state: "started" | "ended";
3292
3292
  sessionUpdate: "ls_turn";
3293
- turnId?: string | undefined;
3294
3293
  parentToolCallId?: string | undefined;
3295
- stopReason?: "error" | "cancelled" | "end_turn" | "max_tokens" | "refusal" | undefined;
3294
+ turnId?: string | undefined;
3295
+ stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
3296
3296
  } | {
3297
3297
  options: {
3298
+ optionId: string;
3298
3299
  name: string;
3299
3300
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
3300
- optionId: string;
3301
3301
  }[];
3302
- requestId: string;
3303
3302
  title: string;
3303
+ requestId: string;
3304
3304
  sessionUpdate: "ls_permission";
3305
- detail?: string | undefined;
3306
3305
  toolCallId?: string | undefined;
3306
+ detail?: string | undefined;
3307
3307
  } | {
3308
3308
  requestId: string;
3309
3309
  sessionUpdate: "ls_permission_resolved";
3310
3310
  optionId?: string | undefined;
3311
3311
  } | {
3312
- driver: "none" | "remote" | "desktop";
3312
+ driver: "remote" | "desktop" | "none";
3313
3313
  sessionUpdate: "ls_driver";
3314
3314
  deviceId?: string | undefined;
3315
3315
  } | {
3316
- state: "idle" | "error" | "running" | "waiting" | "offline";
3316
+ state: "idle" | "running" | "waiting" | "error" | "offline";
3317
3317
  sessionUpdate: "ls_status";
3318
3318
  } | {
3319
3319
  code: string;