@@ -316,29 +316,6 @@ export type EventCommandExecuted = {
316316 }
317317}
318318
319- export type EventWorkspaceReady = {
320- type : "workspace.ready"
321- properties : {
322- name : string
323- }
324- }
325-
326- export type EventWorkspaceFailed = {
327- type : "workspace.failed"
328- properties : {
329- message : string
330- }
331- }
332-
333- export type EventWorkspaceStatus = {
334- type : "workspace.status"
335- properties : {
336- workspaceID : string
337- status : "connected" | "connecting" | "disconnected" | "error"
338- error ?: string
339- }
340- }
341-
342319export type QuestionOption = {
343320 /**
344321 * Display text (1-5 words, concise)
@@ -410,6 +387,29 @@ export type EventQuestionRejected = {
410387 }
411388}
412389
390+ export type Todo = {
391+ /**
392+ * Brief description of the task
393+ */
394+ content : string
395+ /**
396+ * Current status of the task: pending, in_progress, completed, cancelled
397+ */
398+ status : string
399+ /**
400+ * Priority level of the task: high, medium, low
401+ */
402+ priority : string
403+ }
404+
405+ export type EventTodoUpdated = {
406+ type : "todo.updated"
407+ properties : {
408+ sessionID : string
409+ todos : Array < Todo >
410+ }
411+ }
412+
413413export type SessionStatus =
414414 | {
415415 type : "idle"
@@ -446,29 +446,6 @@ export type EventSessionCompacted = {
446446 }
447447}
448448
449- export type Todo = {
450- /**
451- * Brief description of the task
452- */
453- content : string
454- /**
455- * Current status of the task: pending, in_progress, completed, cancelled
456- */
457- status : string
458- /**
459- * Priority level of the task: high, medium, low
460- */
461- priority : string
462- }
463-
464- export type EventTodoUpdated = {
465- type : "todo.updated"
466- properties : {
467- sessionID : string
468- todos : Array < Todo >
469- }
470- }
471-
472449export type EventWorktreeReady = {
473450 type : "worktree.ready"
474451 properties : {
@@ -523,6 +500,29 @@ export type EventPtyDeleted = {
523500 }
524501}
525502
503+ export type EventWorkspaceReady = {
504+ type : "workspace.ready"
505+ properties : {
506+ name : string
507+ }
508+ }
509+
510+ export type EventWorkspaceFailed = {
511+ type : "workspace.failed"
512+ properties : {
513+ message : string
514+ }
515+ }
516+
517+ export type EventWorkspaceStatus = {
518+ type : "workspace.status"
519+ properties : {
520+ workspaceID : string
521+ status : "connected" | "connecting" | "disconnected" | "error"
522+ error ?: string
523+ }
524+ }
525+
526526export type OutputFormatText = {
527527 type : "text"
528528}
@@ -995,22 +995,22 @@ export type Event =
995995 | EventMcpToolsChanged
996996 | EventMcpBrowserOpenFailed
997997 | EventCommandExecuted
998- | EventWorkspaceReady
999- | EventWorkspaceFailed
1000- | EventWorkspaceStatus
1001998 | EventQuestionAsked
1002999 | EventQuestionReplied
10031000 | EventQuestionRejected
1001+ | EventTodoUpdated
10041002 | EventSessionStatus
10051003 | EventSessionIdle
10061004 | EventSessionCompacted
1007- | EventTodoUpdated
10081005 | EventWorktreeReady
10091006 | EventWorktreeFailed
10101007 | EventPtyCreated
10111008 | EventPtyUpdated
10121009 | EventPtyExited
10131010 | EventPtyDeleted
1011+ | EventWorkspaceReady
1012+ | EventWorkspaceFailed
1013+ | EventWorkspaceStatus
10141014 | EventMessageUpdated
10151015 | EventMessageRemoved
10161016 | EventMessagePartUpdated
0 commit comments