@@ -22,18 +22,15 @@ export type Event =
2222 | ( {
2323 type : "storage.write"
2424 } & EventStorageWrite )
25- | ( {
26- type : "file.edited"
27- } & EventFileEdited )
28- | ( {
29- type : "server.connected"
30- } & EventServerConnected )
3125 | ( {
3226 type : "permission.updated"
3327 } & EventPermissionUpdated )
3428 | ( {
3529 type : "permission.replied"
3630 } & EventPermissionReplied )
31+ | ( {
32+ type : "file.edited"
33+ } & EventFileEdited )
3734 | ( {
3835 type : "session.updated"
3936 } & EventSessionUpdated )
@@ -46,6 +43,9 @@ export type Event =
4643 | ( {
4744 type : "session.error"
4845 } & EventSessionError )
46+ | ( {
47+ type : "server.connected"
48+ } & EventServerConnected )
4949 | ( {
5050 type : "file.watcher.updated"
5151 } & EventFileWatcherUpdated )
@@ -182,6 +182,9 @@ export type Part =
182182 | ( {
183183 type : "text"
184184 } & TextPart )
185+ | ( {
186+ type : "reasoning"
187+ } & ReasoningPart )
185188 | ( {
186189 type : "file"
187190 } & FilePart )
@@ -217,6 +220,21 @@ export type TextPart = {
217220 }
218221}
219222
223+ export type ReasoningPart = {
224+ id : string
225+ sessionID : string
226+ messageID : string
227+ type : string
228+ text : string
229+ metadata ?: {
230+ [ key : string ] : unknown
231+ }
232+ time : {
233+ start : number
234+ end ?: number
235+ }
236+ }
237+
220238export type FilePart = {
221239 id : string
222240 sessionID : string
@@ -407,20 +425,6 @@ export type EventStorageWrite = {
407425 }
408426}
409427
410- export type EventFileEdited = {
411- type : string
412- properties : {
413- file : string
414- }
415- }
416-
417- export type EventServerConnected = {
418- type : string
419- properties : {
420- [ key : string ] : unknown
421- }
422- }
423-
424428export type EventPermissionUpdated = {
425429 type : string
426430 properties : Permission
@@ -451,6 +455,13 @@ export type EventPermissionReplied = {
451455 }
452456}
453457
458+ export type EventFileEdited = {
459+ type : string
460+ properties : {
461+ file : string
462+ }
463+ }
464+
454465export type EventSessionUpdated = {
455466 type : string
456467 properties : {
@@ -512,6 +523,13 @@ export type EventSessionError = {
512523 }
513524}
514525
526+ export type EventServerConnected = {
527+ type : string
528+ properties : {
529+ [ key : string ] : unknown
530+ }
531+ }
532+
515533export type EventFileWatcherUpdated = {
516534 type : string
517535 properties : {
@@ -691,6 +709,7 @@ export type Config = {
691709 | {
692710 [ key : string ] : string
693711 }
712+ webfetch ?: string
694713 }
695714 experimental ?: {
696715 hook ?: {
@@ -888,6 +907,12 @@ export type AgentConfig = {
888907 * Description of when to use the agent
889908 */
890909 description ?: string
910+ /**
911+ * Additional model options passed through to provider
912+ */
913+ options ?: {
914+ [ key : string ] : unknown
915+ }
891916 mode ?: string
892917}
893918
@@ -1028,6 +1053,9 @@ export type Agent = {
10281053 mode : string
10291054 topP ?: number
10301055 temperature ?: number
1056+ options : {
1057+ [ key : string ] : unknown
1058+ }
10311059 model ?: {
10321060 modelID : string
10331061 providerID : string
0 commit comments