@@ -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 EventInstallationUpdated = {
3744 type : "installation.updated"
3845 properties : {
@@ -47,13 +54,6 @@ export type EventInstallationUpdateAvailable = {
4754 }
4855}
4956
50- export type EventServerInstanceDisposed = {
51- type : "server.instance.disposed"
52- properties : {
53- directory : string
54- }
55- }
56-
5757export type EventServerConnected = {
5858 type : "server.connected"
5959 properties : {
@@ -68,6 +68,21 @@ export type EventGlobalDisposed = {
6868 }
6969}
7070
71+ export type EventFileEdited = {
72+ type : "file.edited"
73+ properties : {
74+ file : string
75+ }
76+ }
77+
78+ export type EventFileWatcherUpdated = {
79+ type : "file.watcher.updated"
80+ properties : {
81+ file : string
82+ event : "add" | "change" | "unlink"
83+ }
84+ }
85+
7186export type EventLspClientDiagnostics = {
7287 type : "lsp.client.diagnostics"
7388 properties : {
@@ -215,107 +230,6 @@ export type EventSessionError = {
215230 }
216231}
217232
218- export type EventFileEdited = {
219- type : "file.edited"
220- properties : {
221- file : string
222- }
223- }
224-
225- export type EventFileWatcherUpdated = {
226- type : "file.watcher.updated"
227- properties : {
228- file : string
229- event : "add" | "change" | "unlink"
230- }
231- }
232-
233- export type EventVcsBranchUpdated = {
234- type : "vcs.branch.updated"
235- properties : {
236- branch ?: string
237- }
238- }
239-
240- export type EventTuiPromptAppend = {
241- type : "tui.prompt.append"
242- properties : {
243- text : string
244- }
245- }
246-
247- export type EventTuiCommandExecute = {
248- type : "tui.command.execute"
249- properties : {
250- command :
251- | "session.list"
252- | "session.new"
253- | "session.share"
254- | "session.interrupt"
255- | "session.compact"
256- | "session.page.up"
257- | "session.page.down"
258- | "session.line.up"
259- | "session.line.down"
260- | "session.half.page.up"
261- | "session.half.page.down"
262- | "session.first"
263- | "session.last"
264- | "prompt.clear"
265- | "prompt.submit"
266- | "agent.cycle"
267- | string
268- }
269- }
270-
271- export type EventTuiToastShow = {
272- type : "tui.toast.show"
273- properties : {
274- title ?: string
275- message : string
276- variant : "info" | "success" | "warning" | "error"
277- /**
278- * Duration in milliseconds
279- */
280- duration ?: number
281- }
282- }
283-
284- export type EventTuiSessionSelect = {
285- type : "tui.session.select"
286- properties : {
287- /**
288- * Session ID to navigate to
289- */
290- sessionID : string
291- }
292- }
293-
294- export type EventMcpToolsChanged = {
295- type : "mcp.tools.changed"
296- properties : {
297- server : string
298- }
299- }
300-
301- export type EventMcpBrowserOpenFailed = {
302- type : "mcp.browser.open.failed"
303- properties : {
304- mcpName : string
305- url : string
306- }
307- }
308-
309- export type EventCommandExecuted = {
310- type : "command.executed"
311- properties : {
312- name : string
313- sessionID : string
314- arguments : string
315- messageID : string
316- }
317- }
318-
319233export type QuestionOption = {
320234 /**
321235 * Display text (1-5 words, concise)
@@ -446,6 +360,92 @@ export type EventSessionCompacted = {
446360 }
447361}
448362
363+ export type EventTuiPromptAppend = {
364+ type : "tui.prompt.append"
365+ properties : {
366+ text : string
367+ }
368+ }
369+
370+ export type EventTuiCommandExecute = {
371+ type : "tui.command.execute"
372+ properties : {
373+ command :
374+ | "session.list"
375+ | "session.new"
376+ | "session.share"
377+ | "session.interrupt"
378+ | "session.compact"
379+ | "session.page.up"
380+ | "session.page.down"
381+ | "session.line.up"
382+ | "session.line.down"
383+ | "session.half.page.up"
384+ | "session.half.page.down"
385+ | "session.first"
386+ | "session.last"
387+ | "prompt.clear"
388+ | "prompt.submit"
389+ | "agent.cycle"
390+ | string
391+ }
392+ }
393+
394+ export type EventTuiToastShow = {
395+ type : "tui.toast.show"
396+ properties : {
397+ title ?: string
398+ message : string
399+ variant : "info" | "success" | "warning" | "error"
400+ /**
401+ * Duration in milliseconds
402+ */
403+ duration ?: number
404+ }
405+ }
406+
407+ export type EventTuiSessionSelect = {
408+ type : "tui.session.select"
409+ properties : {
410+ /**
411+ * Session ID to navigate to
412+ */
413+ sessionID : string
414+ }
415+ }
416+
417+ export type EventMcpToolsChanged = {
418+ type : "mcp.tools.changed"
419+ properties : {
420+ server : string
421+ }
422+ }
423+
424+ export type EventMcpBrowserOpenFailed = {
425+ type : "mcp.browser.open.failed"
426+ properties : {
427+ mcpName : string
428+ url : string
429+ }
430+ }
431+
432+ export type EventCommandExecuted = {
433+ type : "command.executed"
434+ properties : {
435+ name : string
436+ sessionID : string
437+ arguments : string
438+ messageID : string
439+ }
440+ }
441+
442+ export type EventVcsBranchUpdated = {
443+ type : "vcs.branch.updated"
444+ properties : {
445+ branch ?: string
446+ }
447+ }
448+
449449export type EventWorktreeReady = {
450450 type : "worktree.ready"
451451 properties : {
@@ -973,35 +973,35 @@ export type EventSessionDeleted = {
973973
974974export type Event =
975975 | EventProjectUpdated
976+ | EventServerInstanceDisposed
976977 | EventInstallationUpdated
977978 | EventInstallationUpdateAvailable
978- | EventServerInstanceDisposed
979979 | EventServerConnected
980980 | EventGlobalDisposed
981+ | EventFileEdited
982+ | EventFileWatcherUpdated
981983 | EventLspClientDiagnostics
982984 | EventLspUpdated
983985 | EventMessagePartDelta
984986 | EventPermissionAsked
985987 | EventPermissionReplied
986988 | EventSessionDiff
987989 | EventSessionError
988- | EventFileEdited
989- | EventFileWatcherUpdated
990- | EventVcsBranchUpdated
991- | EventTuiPromptAppend
992- | EventTuiCommandExecute
993- | EventTuiToastShow
994- | EventTuiSessionSelect
995- | EventMcpToolsChanged
996- | EventMcpBrowserOpenFailed
997- | EventCommandExecuted
998990 | EventQuestionAsked
999991 | EventQuestionReplied
1000992 | EventQuestionRejected
1001993 | EventTodoUpdated
1002994 | EventSessionStatus
1003995 | EventSessionIdle
1004996 | EventSessionCompacted
997+ | EventTuiPromptAppend
998+ | EventTuiCommandExecute
999+ | EventTuiToastShow
1000+ | EventTuiSessionSelect
1001+ | EventMcpToolsChanged
1002+ | EventMcpBrowserOpenFailed
1003+ | EventCommandExecuted
1004+ | EventVcsBranchUpdated
10051005 | EventWorktreeReady
10061006 | EventWorktreeFailed
10071007 | EventPtyCreated
0 commit comments