@linkshell/gateway 0.5.1 → 0.5.3
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/Dockerfile +6 -2
- package/dist/gateway/src/index.js +2 -1
- package/dist/gateway/src/index.js.map +1 -1
- package/dist/gateway/tsconfig.tsbuildinfo +1 -1
- package/dist/gateway-v2/src/server.d.ts +15 -0
- package/dist/gateway-v2/src/server.js +39 -0
- package/dist/gateway-v2/src/server.js.map +1 -1
- package/dist/wire/src/model.d.ts +275 -127
- package/dist/wire/src/model.js +55 -0
- package/dist/wire/src/model.js.map +1 -1
- package/dist/wire/src/relay-client.d.ts +2 -0
- package/dist/wire/src/relay-client.js +12 -0
- package/dist/wire/src/relay-client.js.map +1 -1
- package/dist/wire/src/rpc.d.ts +6636 -918
- package/dist/wire/src/rpc.js +130 -7
- package/dist/wire/src/rpc.js.map +1 -1
- package/dist/wire/src/updates.d.ts +352 -352
- package/package.json +3 -3
- package/src/index.ts +2 -1
|
@@ -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" | "
|
|
265
|
+
status: "pending" | "in_progress" | "completed";
|
|
266
266
|
content: string;
|
|
267
|
-
priority: "
|
|
267
|
+
priority: "high" | "medium" | "low";
|
|
268
268
|
}, {
|
|
269
|
-
status: "pending" | "
|
|
269
|
+
status: "pending" | "in_progress" | "completed";
|
|
270
270
|
content: string;
|
|
271
|
-
priority?: "
|
|
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: "
|
|
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?: "
|
|
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<{
|
|
@@ -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: "
|
|
774
|
-
kind: "
|
|
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?: "
|
|
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" | "
|
|
1253
|
+
status: "pending" | "in_progress" | "completed";
|
|
1254
1254
|
content: string;
|
|
1255
|
-
priority: "
|
|
1255
|
+
priority: "high" | "medium" | "low";
|
|
1256
1256
|
}, {
|
|
1257
|
-
status: "pending" | "
|
|
1257
|
+
status: "pending" | "in_progress" | "completed";
|
|
1258
1258
|
content: string;
|
|
1259
|
-
priority?: "
|
|
1259
|
+
priority?: "high" | "medium" | "low" | undefined;
|
|
1260
1260
|
}>, "many">;
|
|
1261
1261
|
}, "strip", z.ZodTypeAny, {
|
|
1262
1262
|
entries: {
|
|
1263
|
-
status: "pending" | "
|
|
1263
|
+
status: "pending" | "in_progress" | "completed";
|
|
1264
1264
|
content: string;
|
|
1265
|
-
priority: "
|
|
1265
|
+
priority: "high" | "medium" | "low";
|
|
1266
1266
|
}[];
|
|
1267
1267
|
sessionUpdate: "plan";
|
|
1268
1268
|
}, {
|
|
1269
1269
|
entries: {
|
|
1270
|
-
status: "pending" | "
|
|
1270
|
+
status: "pending" | "in_progress" | "completed";
|
|
1271
1271
|
content: string;
|
|
1272
|
-
priority?: "
|
|
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: "
|
|
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?: "
|
|
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: "
|
|
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?: "
|
|
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
|
-
|
|
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
|
-
|
|
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: "
|
|
1512
|
+
driver: "remote" | "desktop" | "none";
|
|
1513
1513
|
sessionUpdate: "ls_driver";
|
|
1514
1514
|
deviceId?: string | undefined;
|
|
1515
1515
|
}, {
|
|
1516
|
-
driver: "
|
|
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" | "
|
|
1523
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
1524
1524
|
sessionUpdate: "ls_status";
|
|
1525
1525
|
}, {
|
|
1526
|
-
state: "idle" | "
|
|
1526
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
1527
1527
|
sessionUpdate: "ls_status";
|
|
1528
1528
|
}>, z.ZodObject<{
|
|
1529
1529
|
sessionUpdate: z.ZodLiteral<"ls_error">;
|
|
@@ -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,11 +2004,37 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2004
2004
|
phase: "started" | "finished";
|
|
2005
2005
|
}>]>>;
|
|
2006
2006
|
}, "strip", z.ZodTypeAny, {
|
|
2007
|
-
status: "
|
|
2008
|
-
kind: "
|
|
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
|
+
detail?: {
|
|
2013
|
+
type: "mcp";
|
|
2014
|
+
tool: string;
|
|
2015
|
+
server: string;
|
|
2016
|
+
} | {
|
|
2017
|
+
type: "subagent";
|
|
2018
|
+
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
2019
|
+
task?: string | undefined;
|
|
2020
|
+
agentType?: string | undefined;
|
|
2021
|
+
model?: string | undefined;
|
|
2022
|
+
} | {
|
|
2023
|
+
type: "skill";
|
|
2024
|
+
name: string;
|
|
2025
|
+
description?: string | undefined;
|
|
2026
|
+
} | {
|
|
2027
|
+
type: "web_search";
|
|
2028
|
+
query?: string | undefined;
|
|
2029
|
+
} | {
|
|
2030
|
+
type: "image_generation";
|
|
2031
|
+
prompt?: string | undefined;
|
|
2032
|
+
} | {
|
|
2033
|
+
type: "compaction";
|
|
2034
|
+
} | {
|
|
2035
|
+
type: "review";
|
|
2036
|
+
phase: "started" | "finished";
|
|
2037
|
+
} | undefined;
|
|
2012
2038
|
content?: ({
|
|
2013
2039
|
type: "content";
|
|
2014
2040
|
content: {
|
|
@@ -2040,16 +2066,28 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2040
2066
|
type: "terminal";
|
|
2041
2067
|
terminalId: string;
|
|
2042
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";
|
|
2043
2081
|
detail?: {
|
|
2044
2082
|
type: "mcp";
|
|
2045
2083
|
tool: string;
|
|
2046
2084
|
server: string;
|
|
2047
2085
|
} | {
|
|
2048
2086
|
type: "subagent";
|
|
2049
|
-
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
2050
|
-
model?: string | undefined;
|
|
2051
2087
|
task?: string | undefined;
|
|
2052
2088
|
agentType?: string | undefined;
|
|
2089
|
+
model?: string | undefined;
|
|
2090
|
+
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
2053
2091
|
} | {
|
|
2054
2092
|
type: "skill";
|
|
2055
2093
|
name: string;
|
|
@@ -2066,18 +2104,6 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2066
2104
|
type: "review";
|
|
2067
2105
|
phase: "started" | "finished";
|
|
2068
2106
|
} | 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
2107
|
content?: ({
|
|
2082
2108
|
type: "content";
|
|
2083
2109
|
content: {
|
|
@@ -2109,32 +2135,6 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2109
2135
|
type: "terminal";
|
|
2110
2136
|
terminalId: string;
|
|
2111
2137
|
})[] | undefined;
|
|
2112
|
-
detail?: {
|
|
2113
|
-
type: "mcp";
|
|
2114
|
-
tool: string;
|
|
2115
|
-
server: string;
|
|
2116
|
-
} | {
|
|
2117
|
-
type: "subagent";
|
|
2118
|
-
model?: string | undefined;
|
|
2119
|
-
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
2120
|
-
task?: string | undefined;
|
|
2121
|
-
agentType?: string | undefined;
|
|
2122
|
-
} | {
|
|
2123
|
-
type: "skill";
|
|
2124
|
-
name: string;
|
|
2125
|
-
description?: string | undefined;
|
|
2126
|
-
} | {
|
|
2127
|
-
type: "web_search";
|
|
2128
|
-
query?: string | undefined;
|
|
2129
|
-
} | {
|
|
2130
|
-
type: "image_generation";
|
|
2131
|
-
prompt?: string | undefined;
|
|
2132
|
-
} | {
|
|
2133
|
-
type: "compaction";
|
|
2134
|
-
} | {
|
|
2135
|
-
type: "review";
|
|
2136
|
-
phase: "started" | "finished";
|
|
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?: "
|
|
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" | "
|
|
2487
|
+
status: "pending" | "in_progress" | "completed";
|
|
2488
2488
|
content: string;
|
|
2489
|
-
priority: "
|
|
2489
|
+
priority: "high" | "medium" | "low";
|
|
2490
2490
|
}, {
|
|
2491
|
-
status: "pending" | "
|
|
2491
|
+
status: "pending" | "in_progress" | "completed";
|
|
2492
2492
|
content: string;
|
|
2493
|
-
priority?: "
|
|
2493
|
+
priority?: "high" | "medium" | "low" | undefined;
|
|
2494
2494
|
}>, "many">;
|
|
2495
2495
|
}, "strip", z.ZodTypeAny, {
|
|
2496
2496
|
entries: {
|
|
2497
|
-
status: "pending" | "
|
|
2497
|
+
status: "pending" | "in_progress" | "completed";
|
|
2498
2498
|
content: string;
|
|
2499
|
-
priority: "
|
|
2499
|
+
priority: "high" | "medium" | "low";
|
|
2500
2500
|
}[];
|
|
2501
2501
|
sessionUpdate: "plan";
|
|
2502
2502
|
}, {
|
|
2503
2503
|
entries: {
|
|
2504
|
-
status: "pending" | "
|
|
2504
|
+
status: "pending" | "in_progress" | "completed";
|
|
2505
2505
|
content: string;
|
|
2506
|
-
priority?: "
|
|
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: "
|
|
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?: "
|
|
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: "
|
|
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?: "
|
|
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
|
-
|
|
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
|
-
|
|
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: "
|
|
2746
|
+
driver: "remote" | "desktop" | "none";
|
|
2747
2747
|
sessionUpdate: "ls_driver";
|
|
2748
2748
|
deviceId?: string | undefined;
|
|
2749
2749
|
}, {
|
|
2750
|
-
driver: "
|
|
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" | "
|
|
2757
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
2758
2758
|
sessionUpdate: "ls_status";
|
|
2759
2759
|
}, {
|
|
2760
|
-
state: "idle" | "
|
|
2760
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
2761
2761
|
sessionUpdate: "ls_status";
|
|
2762
2762
|
}>, z.ZodObject<{
|
|
2763
2763
|
sessionUpdate: z.ZodLiteral<"ls_error">;
|
|
@@ -2776,9 +2776,6 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2776
2776
|
hint?: string | undefined;
|
|
2777
2777
|
}>]>;
|
|
2778
2778
|
}, "strip", z.ZodTypeAny, {
|
|
2779
|
-
sessionId: string;
|
|
2780
|
-
seq: number;
|
|
2781
|
-
ts: number;
|
|
2782
2779
|
update: {
|
|
2783
2780
|
content: {
|
|
2784
2781
|
type: "text";
|
|
@@ -2833,11 +2830,37 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2833
2830
|
messageId: string;
|
|
2834
2831
|
parentToolCallId?: string | undefined;
|
|
2835
2832
|
} | {
|
|
2836
|
-
status: "
|
|
2837
|
-
kind: "
|
|
2833
|
+
status: "failed" | "pending" | "in_progress" | "completed";
|
|
2834
|
+
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
2838
2835
|
title: string;
|
|
2839
2836
|
toolCallId: string;
|
|
2840
2837
|
sessionUpdate: "tool_call";
|
|
2838
|
+
detail?: {
|
|
2839
|
+
type: "mcp";
|
|
2840
|
+
tool: string;
|
|
2841
|
+
server: string;
|
|
2842
|
+
} | {
|
|
2843
|
+
type: "subagent";
|
|
2844
|
+
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
2845
|
+
task?: string | undefined;
|
|
2846
|
+
agentType?: string | undefined;
|
|
2847
|
+
model?: string | undefined;
|
|
2848
|
+
} | {
|
|
2849
|
+
type: "skill";
|
|
2850
|
+
name: string;
|
|
2851
|
+
description?: string | undefined;
|
|
2852
|
+
} | {
|
|
2853
|
+
type: "web_search";
|
|
2854
|
+
query?: string | undefined;
|
|
2855
|
+
} | {
|
|
2856
|
+
type: "image_generation";
|
|
2857
|
+
prompt?: string | undefined;
|
|
2858
|
+
} | {
|
|
2859
|
+
type: "compaction";
|
|
2860
|
+
} | {
|
|
2861
|
+
type: "review";
|
|
2862
|
+
phase: "started" | "finished";
|
|
2863
|
+
} | undefined;
|
|
2841
2864
|
content?: ({
|
|
2842
2865
|
type: "content";
|
|
2843
2866
|
content: {
|
|
@@ -2869,6 +2892,17 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2869
2892
|
type: "terminal";
|
|
2870
2893
|
terminalId: string;
|
|
2871
2894
|
})[] | undefined;
|
|
2895
|
+
parentToolCallId?: string | undefined;
|
|
2896
|
+
rawInput?: unknown;
|
|
2897
|
+
locations?: {
|
|
2898
|
+
path: string;
|
|
2899
|
+
line?: number | undefined;
|
|
2900
|
+
}[] | undefined;
|
|
2901
|
+
} | {
|
|
2902
|
+
toolCallId: string;
|
|
2903
|
+
sessionUpdate: "tool_call_update";
|
|
2904
|
+
status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
|
|
2905
|
+
title?: string | undefined;
|
|
2872
2906
|
detail?: {
|
|
2873
2907
|
type: "mcp";
|
|
2874
2908
|
tool: string;
|
|
@@ -2876,9 +2910,9 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2876
2910
|
} | {
|
|
2877
2911
|
type: "subagent";
|
|
2878
2912
|
action: "message" | "spawn" | "wait" | "stop" | "resume" | "list";
|
|
2879
|
-
model?: string | undefined;
|
|
2880
2913
|
task?: string | undefined;
|
|
2881
2914
|
agentType?: string | undefined;
|
|
2915
|
+
model?: string | undefined;
|
|
2882
2916
|
} | {
|
|
2883
2917
|
type: "skill";
|
|
2884
2918
|
name: string;
|
|
@@ -2895,16 +2929,6 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2895
2929
|
type: "review";
|
|
2896
2930
|
phase: "started" | "finished";
|
|
2897
2931
|
} | 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
2932
|
content?: ({
|
|
2909
2933
|
type: "content";
|
|
2910
2934
|
content: {
|
|
@@ -2936,41 +2960,14 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2936
2960
|
type: "terminal";
|
|
2937
2961
|
terminalId: string;
|
|
2938
2962
|
})[] | 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
2963
|
parentToolCallId?: string | undefined;
|
|
2967
2964
|
appendOutput?: string | undefined;
|
|
2968
2965
|
rawOutput?: unknown;
|
|
2969
2966
|
} | {
|
|
2970
2967
|
entries: {
|
|
2971
|
-
status: "pending" | "
|
|
2968
|
+
status: "pending" | "in_progress" | "completed";
|
|
2972
2969
|
content: string;
|
|
2973
|
-
priority: "
|
|
2970
|
+
priority: "high" | "medium" | "low";
|
|
2974
2971
|
}[];
|
|
2975
2972
|
sessionUpdate: "plan";
|
|
2976
2973
|
} | {
|
|
@@ -2989,12 +2986,12 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
2989
2986
|
model?: string | undefined;
|
|
2990
2987
|
} | {
|
|
2991
2988
|
sessionUpdate: "usage_update";
|
|
2992
|
-
contextWindow?: number | undefined;
|
|
2993
2989
|
usedTokens?: number | undefined;
|
|
2990
|
+
contextWindow?: number | undefined;
|
|
2994
2991
|
} | {
|
|
2995
|
-
role: "user" | "agent" | "thought";
|
|
2996
2992
|
sessionUpdate: "ls_message_done";
|
|
2997
2993
|
messageId: string;
|
|
2994
|
+
role: "agent" | "thought" | "user";
|
|
2998
2995
|
parentToolCallId?: string | undefined;
|
|
2999
2996
|
} | {
|
|
3000
2997
|
options: {
|
|
@@ -3005,7 +3002,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3005
3002
|
}[];
|
|
3006
3003
|
id: string;
|
|
3007
3004
|
name: string;
|
|
3008
|
-
category: "
|
|
3005
|
+
category: "other" | "model" | "mode" | "effort";
|
|
3009
3006
|
current: string;
|
|
3010
3007
|
}[];
|
|
3011
3008
|
sessionUpdate: "ls_config";
|
|
@@ -3017,30 +3014,30 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3017
3014
|
} | {
|
|
3018
3015
|
state: "started" | "ended";
|
|
3019
3016
|
sessionUpdate: "ls_turn";
|
|
3020
|
-
turnId?: string | undefined;
|
|
3021
3017
|
parentToolCallId?: string | undefined;
|
|
3022
|
-
|
|
3018
|
+
turnId?: string | undefined;
|
|
3019
|
+
stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
|
|
3023
3020
|
} | {
|
|
3024
3021
|
options: {
|
|
3022
|
+
optionId: string;
|
|
3025
3023
|
name: string;
|
|
3026
3024
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
3027
|
-
optionId: string;
|
|
3028
3025
|
}[];
|
|
3029
|
-
requestId: string;
|
|
3030
3026
|
title: string;
|
|
3027
|
+
requestId: string;
|
|
3031
3028
|
sessionUpdate: "ls_permission";
|
|
3032
|
-
detail?: string | undefined;
|
|
3033
3029
|
toolCallId?: string | undefined;
|
|
3030
|
+
detail?: string | undefined;
|
|
3034
3031
|
} | {
|
|
3035
3032
|
requestId: string;
|
|
3036
3033
|
sessionUpdate: "ls_permission_resolved";
|
|
3037
3034
|
optionId?: string | undefined;
|
|
3038
3035
|
} | {
|
|
3039
|
-
driver: "
|
|
3036
|
+
driver: "remote" | "desktop" | "none";
|
|
3040
3037
|
sessionUpdate: "ls_driver";
|
|
3041
3038
|
deviceId?: string | undefined;
|
|
3042
3039
|
} | {
|
|
3043
|
-
state: "idle" | "
|
|
3040
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
3044
3041
|
sessionUpdate: "ls_status";
|
|
3045
3042
|
} | {
|
|
3046
3043
|
code: string;
|
|
@@ -3048,10 +3045,10 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3048
3045
|
sessionUpdate: "ls_error";
|
|
3049
3046
|
hint?: string | undefined;
|
|
3050
3047
|
};
|
|
3051
|
-
}, {
|
|
3052
3048
|
sessionId: string;
|
|
3053
3049
|
seq: number;
|
|
3054
3050
|
ts: number;
|
|
3051
|
+
}, {
|
|
3055
3052
|
update: {
|
|
3056
3053
|
content: {
|
|
3057
3054
|
type: "text";
|
|
@@ -3106,11 +3103,37 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3106
3103
|
messageId: string;
|
|
3107
3104
|
parentToolCallId?: string | undefined;
|
|
3108
3105
|
} | {
|
|
3109
|
-
status: "
|
|
3110
|
-
kind: "
|
|
3106
|
+
status: "failed" | "pending" | "in_progress" | "completed";
|
|
3107
|
+
kind: "read" | "edit" | "delete" | "move" | "search" | "execute" | "think" | "fetch" | "other";
|
|
3111
3108
|
title: string;
|
|
3112
3109
|
toolCallId: string;
|
|
3113
3110
|
sessionUpdate: "tool_call";
|
|
3111
|
+
detail?: {
|
|
3112
|
+
type: "mcp";
|
|
3113
|
+
tool: string;
|
|
3114
|
+
server: string;
|
|
3115
|
+
} | {
|
|
3116
|
+
type: "subagent";
|
|
3117
|
+
task?: string | undefined;
|
|
3118
|
+
agentType?: string | undefined;
|
|
3119
|
+
model?: string | undefined;
|
|
3120
|
+
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
3121
|
+
} | {
|
|
3122
|
+
type: "skill";
|
|
3123
|
+
name: string;
|
|
3124
|
+
description?: string | undefined;
|
|
3125
|
+
} | {
|
|
3126
|
+
type: "web_search";
|
|
3127
|
+
query?: string | undefined;
|
|
3128
|
+
} | {
|
|
3129
|
+
type: "image_generation";
|
|
3130
|
+
prompt?: string | undefined;
|
|
3131
|
+
} | {
|
|
3132
|
+
type: "compaction";
|
|
3133
|
+
} | {
|
|
3134
|
+
type: "review";
|
|
3135
|
+
phase: "started" | "finished";
|
|
3136
|
+
} | undefined;
|
|
3114
3137
|
content?: ({
|
|
3115
3138
|
type: "content";
|
|
3116
3139
|
content: {
|
|
@@ -3142,16 +3165,27 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3142
3165
|
type: "terminal";
|
|
3143
3166
|
terminalId: string;
|
|
3144
3167
|
})[] | undefined;
|
|
3168
|
+
parentToolCallId?: string | undefined;
|
|
3169
|
+
rawInput?: unknown;
|
|
3170
|
+
locations?: {
|
|
3171
|
+
path: string;
|
|
3172
|
+
line?: number | undefined;
|
|
3173
|
+
}[] | undefined;
|
|
3174
|
+
} | {
|
|
3175
|
+
toolCallId: string;
|
|
3176
|
+
sessionUpdate: "tool_call_update";
|
|
3177
|
+
status?: "failed" | "pending" | "in_progress" | "completed" | undefined;
|
|
3178
|
+
title?: string | undefined;
|
|
3145
3179
|
detail?: {
|
|
3146
3180
|
type: "mcp";
|
|
3147
3181
|
tool: string;
|
|
3148
3182
|
server: string;
|
|
3149
3183
|
} | {
|
|
3150
3184
|
type: "subagent";
|
|
3151
|
-
model?: string | undefined;
|
|
3152
|
-
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
3153
3185
|
task?: string | undefined;
|
|
3154
3186
|
agentType?: string | undefined;
|
|
3187
|
+
model?: string | undefined;
|
|
3188
|
+
action?: "message" | "spawn" | "wait" | "stop" | "resume" | "list" | undefined;
|
|
3155
3189
|
} | {
|
|
3156
3190
|
type: "skill";
|
|
3157
3191
|
name: string;
|
|
@@ -3168,16 +3202,6 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3168
3202
|
type: "review";
|
|
3169
3203
|
phase: "started" | "finished";
|
|
3170
3204
|
} | 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
3205
|
content?: ({
|
|
3182
3206
|
type: "content";
|
|
3183
3207
|
content: {
|
|
@@ -3209,41 +3233,14 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3209
3233
|
type: "terminal";
|
|
3210
3234
|
terminalId: string;
|
|
3211
3235
|
})[] | 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
3236
|
parentToolCallId?: string | undefined;
|
|
3240
3237
|
appendOutput?: string | undefined;
|
|
3241
3238
|
rawOutput?: unknown;
|
|
3242
3239
|
} | {
|
|
3243
3240
|
entries: {
|
|
3244
|
-
status: "pending" | "
|
|
3241
|
+
status: "pending" | "in_progress" | "completed";
|
|
3245
3242
|
content: string;
|
|
3246
|
-
priority?: "
|
|
3243
|
+
priority?: "high" | "medium" | "low" | undefined;
|
|
3247
3244
|
}[];
|
|
3248
3245
|
sessionUpdate: "plan";
|
|
3249
3246
|
} | {
|
|
@@ -3262,12 +3259,12 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3262
3259
|
model?: string | undefined;
|
|
3263
3260
|
} | {
|
|
3264
3261
|
sessionUpdate: "usage_update";
|
|
3265
|
-
contextWindow?: number | undefined;
|
|
3266
3262
|
usedTokens?: number | undefined;
|
|
3263
|
+
contextWindow?: number | undefined;
|
|
3267
3264
|
} | {
|
|
3268
|
-
role: "user" | "agent" | "thought";
|
|
3269
3265
|
sessionUpdate: "ls_message_done";
|
|
3270
3266
|
messageId: string;
|
|
3267
|
+
role: "agent" | "thought" | "user";
|
|
3271
3268
|
parentToolCallId?: string | undefined;
|
|
3272
3269
|
} | {
|
|
3273
3270
|
options: {
|
|
@@ -3279,7 +3276,7 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3279
3276
|
id: string;
|
|
3280
3277
|
name: string;
|
|
3281
3278
|
current: string;
|
|
3282
|
-
category?: "
|
|
3279
|
+
category?: "other" | "model" | "mode" | "effort" | undefined;
|
|
3283
3280
|
}[];
|
|
3284
3281
|
sessionUpdate: "ls_config";
|
|
3285
3282
|
} | {
|
|
@@ -3290,30 +3287,30 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3290
3287
|
} | {
|
|
3291
3288
|
state: "started" | "ended";
|
|
3292
3289
|
sessionUpdate: "ls_turn";
|
|
3293
|
-
turnId?: string | undefined;
|
|
3294
3290
|
parentToolCallId?: string | undefined;
|
|
3295
|
-
|
|
3291
|
+
turnId?: string | undefined;
|
|
3292
|
+
stopReason?: "error" | "end_turn" | "cancelled" | "max_tokens" | "refusal" | undefined;
|
|
3296
3293
|
} | {
|
|
3297
3294
|
options: {
|
|
3295
|
+
optionId: string;
|
|
3298
3296
|
name: string;
|
|
3299
3297
|
kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
|
|
3300
|
-
optionId: string;
|
|
3301
3298
|
}[];
|
|
3302
|
-
requestId: string;
|
|
3303
3299
|
title: string;
|
|
3300
|
+
requestId: string;
|
|
3304
3301
|
sessionUpdate: "ls_permission";
|
|
3305
|
-
detail?: string | undefined;
|
|
3306
3302
|
toolCallId?: string | undefined;
|
|
3303
|
+
detail?: string | undefined;
|
|
3307
3304
|
} | {
|
|
3308
3305
|
requestId: string;
|
|
3309
3306
|
sessionUpdate: "ls_permission_resolved";
|
|
3310
3307
|
optionId?: string | undefined;
|
|
3311
3308
|
} | {
|
|
3312
|
-
driver: "
|
|
3309
|
+
driver: "remote" | "desktop" | "none";
|
|
3313
3310
|
sessionUpdate: "ls_driver";
|
|
3314
3311
|
deviceId?: string | undefined;
|
|
3315
3312
|
} | {
|
|
3316
|
-
state: "idle" | "
|
|
3313
|
+
state: "idle" | "running" | "waiting" | "error" | "offline";
|
|
3317
3314
|
sessionUpdate: "ls_status";
|
|
3318
3315
|
} | {
|
|
3319
3316
|
code: string;
|
|
@@ -3321,5 +3318,8 @@ export declare const sessionEventSchema: z.ZodObject<{
|
|
|
3321
3318
|
sessionUpdate: "ls_error";
|
|
3322
3319
|
hint?: string | undefined;
|
|
3323
3320
|
};
|
|
3321
|
+
sessionId: string;
|
|
3322
|
+
seq: number;
|
|
3323
|
+
ts: number;
|
|
3324
3324
|
}>;
|
|
3325
3325
|
export type SessionEvent = z.infer<typeof sessionEventSchema>;
|