@@ -46,23 +46,23 @@ export type Event =
4646 | EventSessionError
4747 | EventInstallationUpdated
4848 | EventInstallationUpdateAvailable
49- | EventFileEdited
50- | EventLspUpdated
51- | EventPermissionAsked
52- | EventPermissionReplied
5349 | EventPermissionV2Asked
5450 | EventPermissionV2Replied
51+ | EventFileEdited
5552 | EventAccountAdded
5653 | EventAccountRemoved
5754 | EventAccountSwitched
55+ | EventFileWatcherUpdated
56+ | EventLspUpdated
57+ | EventPermissionAsked
58+ | EventPermissionReplied
5859 | EventTuiPromptAppend2
5960 | EventTuiCommandExecute2
6061 | EventTuiToastShow2
6162 | EventTuiSessionSelect2
6263 | EventMcpToolsChanged
6364 | EventMcpBrowserOpenFailed
6465 | EventCommandExecuted
65- | EventFileWatcherUpdated
6666 | EventProjectUpdated
6767 | EventPtyCreated
6868 | EventPtyUpdated
@@ -1128,47 +1128,6 @@ export type GlobalEvent = {
11281128 version : string
11291129 }
11301130 }
1131- | {
1132- id : string
1133- type : "file.edited"
1134- properties : {
1135- file : string
1136- }
1137- }
1138- | {
1139- id : string
1140- type : "lsp.updated"
1141- properties : {
1142- [ key : string ] : unknown
1143- }
1144- }
1145- | {
1146- id : string
1147- type : "permission.asked"
1148- properties : {
1149- id : string
1150- sessionID : string
1151- permission : string
1152- patterns : Array < string >
1153- metadata : {
1154- [ key : string ] : unknown
1155- }
1156- always : Array < string >
1157- tool ?: {
1158- messageID : string
1159- callID : string
1160- }
1161- }
1162- }
1163- | {
1164- id : string
1165- type : "permission.replied"
1166- properties : {
1167- sessionID : string
1168- requestID : string
1169- reply : "once" | "always" | "reject"
1170- }
1171- }
11721131 | {
11731132 id : string
11741133 type : "permission.v2.asked"
@@ -1193,6 +1152,13 @@ export type GlobalEvent = {
11931152 reply : PermissionV2Reply
11941153 }
11951154 }
1155+ | {
1156+ id : string
1157+ type : "file.edited"
1158+ properties : {
1159+ file : string
1160+ }
1161+ }
11961162 | {
11971163 id : string
11981164 type : "account.added"
@@ -1216,6 +1182,48 @@ export type GlobalEvent = {
12161182 to ?: string
12171183 }
12181184 }
1185+ | {
1186+ id : string
1187+ type : "file.watcher.updated"
1188+ properties : {
1189+ file : string
1190+ event : "add" | "change" | "unlink"
1191+ }
1192+ }
1193+ | {
1194+ id : string
1195+ type : "lsp.updated"
1196+ properties : {
1197+ [ key : string ] : unknown
1198+ }
1199+ }
1200+ | {
1201+ id : string
1202+ type : "permission.asked"
1203+ properties : {
1204+ id : string
1205+ sessionID : string
1206+ permission : string
1207+ patterns : Array < string >
1208+ metadata : {
1209+ [ key : string ] : unknown
1210+ }
1211+ always : Array < string >
1212+ tool ?: {
1213+ messageID : string
1214+ callID : string
1215+ }
1216+ }
1217+ }
1218+ | {
1219+ id : string
1220+ type : "permission.replied"
1221+ properties : {
1222+ sessionID : string
1223+ requestID : string
1224+ reply : "once" | "always" | "reject"
1225+ }
1226+ }
12191227 | {
12201228 id : string
12211229 type : "tui.prompt.append"
@@ -1292,14 +1300,6 @@ export type GlobalEvent = {
12921300 messageID : string
12931301 }
12941302 }
1295- | {
1296- id : string
1297- type : "file.watcher.updated"
1298- properties : {
1299- file : string
1300- event : "add" | "change" | "unlink"
1301- }
1302- }
13031303 | {
13041304 id : string
13051305 type : "project.updated"
@@ -4272,51 +4272,6 @@ export type EventInstallationUpdateAvailable = {
42724272 }
42734273}
42744274
4275- export type EventFileEdited = {
4276- id : string
4277- type : "file.edited"
4278- properties : {
4279- file : string
4280- }
4281- }
4282-
4283- export type EventLspUpdated = {
4284- id : string
4285- type : "lsp.updated"
4286- properties : {
4287- [ key : string ] : unknown
4288- }
4289- }
4290-
4291- export type EventPermissionAsked = {
4292- id : string
4293- type : "permission.asked"
4294- properties : {
4295- id : string
4296- sessionID : string
4297- permission : string
4298- patterns : Array < string >
4299- metadata : {
4300- [ key : string ] : unknown
4301- }
4302- always : Array < string >
4303- tool ?: {
4304- messageID : string
4305- callID : string
4306- }
4307- }
4308- }
4309-
4310- export type EventPermissionReplied = {
4311- id : string
4312- type : "permission.replied"
4313- properties : {
4314- sessionID : string
4315- requestID : string
4316- reply : "once" | "always" | "reject"
4317- }
4318- }
4319-
43204275export type EventPermissionV2Asked = {
43214276 id : string
43224277 type : "permission.v2.asked"
@@ -4343,6 +4298,14 @@ export type EventPermissionV2Replied = {
43434298 }
43444299}
43454300
4301+ export type EventFileEdited = {
4302+ id : string
4303+ type : "file.edited"
4304+ properties : {
4305+ file : string
4306+ }
4307+ }
4308+
43464309export type EventAccountAdded = {
43474310 id : string
43484311 type : "account.added"
@@ -4369,6 +4332,52 @@ export type EventAccountSwitched = {
43694332 }
43704333}
43714334
4335+ export type EventFileWatcherUpdated = {
4336+ id : string
4337+ type : "file.watcher.updated"
4338+ properties : {
4339+ file : string
4340+ event : "add" | "change" | "unlink"
4341+ }
4342+ }
4343+
4344+ export type EventLspUpdated = {
4345+ id : string
4346+ type : "lsp.updated"
4347+ properties : {
4348+ [ key : string ] : unknown
4349+ }
4350+ }
4351+
4352+ export type EventPermissionAsked = {
4353+ id : string
4354+ type : "permission.asked"
4355+ properties : {
4356+ id : string
4357+ sessionID : string
4358+ permission : string
4359+ patterns : Array < string >
4360+ metadata : {
4361+ [ key : string ] : unknown
4362+ }
4363+ always : Array < string >
4364+ tool ?: {
4365+ messageID : string
4366+ callID : string
4367+ }
4368+ }
4369+ }
4370+
4371+ export type EventPermissionReplied = {
4372+ id : string
4373+ type : "permission.replied"
4374+ properties : {
4375+ sessionID : string
4376+ requestID : string
4377+ reply : "once" | "always" | "reject"
4378+ }
4379+ }
4380+
43724381export type EventMcpToolsChanged = {
43734382 id : string
43744383 type : "mcp.tools.changed"
@@ -4397,15 +4406,6 @@ export type EventCommandExecuted = {
43974406 }
43984407}
43994408
4400- export type EventFileWatcherUpdated = {
4401- id : string
4402- type : "file.watcher.updated"
4403- properties : {
4404- file : string
4405- event : "add" | "change" | "unlink"
4406- }
4407- }
4408-
44094409export type EventProjectUpdated = {
44104410 id : string
44114411 type : "project.updated"
0 commit comments