@@ -316,6 +316,29 @@ 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+
319342export type QuestionOption = {
320343 /**
321344 * Display text (1-5 words, concise)
@@ -387,29 +410,6 @@ export type EventQuestionRejected = {
387410 }
388411}
389412
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,6 +446,29 @@ 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+
449472export type EventWorktreeReady = {
450473 type : "worktree.ready"
451474 properties : {
@@ -500,29 +523,6 @@ export type EventPtyDeleted = {
500523 }
501524}
502525
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
9981001 | EventQuestionAsked
9991002 | EventQuestionReplied
10001003 | EventQuestionRejected
1001- | EventTodoUpdated
10021004 | EventSessionStatus
10031005 | EventSessionIdle
10041006 | EventSessionCompacted
1007+ | EventTodoUpdated
10051008 | EventWorktreeReady
10061009 | EventWorktreeFailed
10071010 | EventPtyCreated
10081011 | EventPtyUpdated
10091012 | EventPtyExited
10101013 | EventPtyDeleted
1011- | EventWorkspaceReady
1012- | EventWorkspaceFailed
1013- | EventWorkspaceStatus
10141014 | EventMessageUpdated
10151015 | EventMessageRemoved
10161016 | EventMessagePartUpdated
0 commit comments