@@ -33,6 +33,13 @@ export type EventProjectUpdated = {
3333 properties : Project
3434}
3535
36+ export type EventServerInstanceDisposed = {
37+ type : "server.instance.disposed"
38+ properties : {
39+ directory : string
40+ }
41+ }
42+
3643export type EventServerConnected = {
3744 type : "server.connected"
3845 properties : {
@@ -47,10 +54,18 @@ export type EventGlobalDisposed = {
4754 }
4855}
4956
50- export type EventServerInstanceDisposed = {
51- type : "server.instance.disposed "
57+ export type EventFileEdited = {
58+ type : "file.edited "
5259 properties : {
53- directory : string
60+ file : string
61+ }
62+ }
63+
64+ export type EventFileWatcherUpdated = {
65+ type : "file.watcher.updated"
66+ properties : {
67+ file : string
68+ event : "add" | "change" | "unlink"
5469 }
5570}
5671
@@ -215,53 +230,6 @@ export type EventInstallationUpdateAvailable = {
215230 }
216231}
217232
218- export type EventWorkspaceReady = {
219- type : "workspace.ready"
220- properties : {
221- name : string
222- }
223- }
224-
225- export type EventWorkspaceFailed = {
226- type : "workspace.failed"
227- properties : {
228- message : string
229- }
230- }
231-
232- export type EventWorkspaceRestore = {
233- type : "workspace.restore"
234- properties : {
235- workspaceID : string
236- sessionID : string
237- total : number
238- step : number
239- }
240- }
241-
242- export type EventWorkspaceStatus = {
243- type : "workspace.status"
244- properties : {
245- workspaceID : string
246- status : "connected" | "connecting" | "disconnected" | "error"
247- }
248- }
249-
250- export type EventFileEdited = {
251- type : "file.edited"
252- properties : {
253- file : string
254- }
255- }
256-
257- export type EventFileWatcherUpdated = {
258- type : "file.watcher.updated"
259- properties : {
260- file : string
261- event : "add" | "change" | "unlink"
262- }
263- }
264-
265233export type QuestionOption = {
266234 /**
267235 * Display text (1-5 words, concise)
@@ -484,6 +452,38 @@ export type EventVcsBranchUpdated = {
484452 }
485453}
486454
455+ export type EventWorkspaceReady = {
456+ type : "workspace.ready"
457+ properties : {
458+ name : string
459+ }
460+ }
461+
462+ export type EventWorkspaceFailed = {
463+ type : "workspace.failed"
464+ properties : {
465+ message : string
466+ }
467+ }
468+
469+ export type EventWorkspaceRestore = {
470+ type : "workspace.restore"
471+ properties : {
472+ workspaceID : string
473+ sessionID : string
474+ total : number
475+ step : number
476+ }
477+ }
478+
479+ export type EventWorkspaceStatus = {
480+ type : "workspace.status"
481+ properties : {
482+ workspaceID : string
483+ status : "connected" | "connecting" | "disconnected" | "error"
484+ }
485+ }
486+
487487export type EventWorktreeReady = {
488488 type : "worktree.ready"
489489 properties : {
@@ -1112,9 +1112,11 @@ export type GlobalEvent = {
11121112 workspace ?: string
11131113 payload :
11141114 | EventProjectUpdated
1115+ | EventServerInstanceDisposed
11151116 | EventServerConnected
11161117 | EventGlobalDisposed
1117- | EventServerInstanceDisposed
1118+ | EventFileEdited
1119+ | EventFileWatcherUpdated
11181120 | EventLspClientDiagnostics
11191121 | EventLspUpdated
11201122 | EventMessagePartDelta
@@ -1124,12 +1126,6 @@ export type GlobalEvent = {
11241126 | EventSessionError
11251127 | EventInstallationUpdated
11261128 | EventInstallationUpdateAvailable
1127- | EventWorkspaceReady
1128- | EventWorkspaceFailed
1129- | EventWorkspaceRestore
1130- | EventWorkspaceStatus
1131- | EventFileEdited
1132- | EventFileWatcherUpdated
11331129 | EventQuestionAsked
11341130 | EventQuestionReplied
11351131 | EventQuestionRejected
@@ -1145,6 +1141,10 @@ export type GlobalEvent = {
11451141 | EventMcpBrowserOpenFailed
11461142 | EventCommandExecuted
11471143 | EventVcsBranchUpdated
1144+ | EventWorkspaceReady
1145+ | EventWorkspaceFailed
1146+ | EventWorkspaceRestore
1147+ | EventWorkspaceStatus
11481148 | EventWorktreeReady
11491149 | EventWorktreeFailed
11501150 | EventPtyCreated
@@ -2055,9 +2055,11 @@ export type File = {
20552055
20562056export type Event =
20572057 | EventProjectUpdated
2058+ | EventServerInstanceDisposed
20582059 | EventServerConnected
20592060 | EventGlobalDisposed
2060- | EventServerInstanceDisposed
2061+ | EventFileEdited
2062+ | EventFileWatcherUpdated
20612063 | EventLspClientDiagnostics
20622064 | EventLspUpdated
20632065 | EventMessagePartDelta
@@ -2067,12 +2069,6 @@ export type Event =
20672069 | EventSessionError
20682070 | EventInstallationUpdated
20692071 | EventInstallationUpdateAvailable
2070- | EventWorkspaceReady
2071- | EventWorkspaceFailed
2072- | EventWorkspaceRestore
2073- | EventWorkspaceStatus
2074- | EventFileEdited
2075- | EventFileWatcherUpdated
20762072 | EventQuestionAsked
20772073 | EventQuestionReplied
20782074 | EventQuestionRejected
@@ -2088,6 +2084,10 @@ export type Event =
20882084 | EventMcpBrowserOpenFailed
20892085 | EventCommandExecuted
20902086 | EventVcsBranchUpdated
2087+ | EventWorkspaceReady
2088+ | EventWorkspaceFailed
2089+ | EventWorkspaceRestore
2090+ | EventWorkspaceStatus
20912091 | EventWorktreeReady
20922092 | EventWorktreeFailed
20932093 | EventPtyCreated
0 commit comments