feat: 명령어 정규화 및 핸들러 매핑 개선

This commit is contained in:
2026-01-24 05:40:58 +00:00
parent 52be3b40ef
commit f280ed0c23
4 changed files with 453 additions and 361 deletions
+9
View File
@@ -304,3 +304,12 @@ export type TurnDaemonEvent =
| { type: 'runCompleted'; at: string; result: TurnRunResult }
| { type: 'runFailed'; at: string; error: string }
| { type: 'commandResult'; result: TurnDaemonCommandResult };
export type TurnDaemonCommandType = TurnDaemonCommand['type'];
export type TurnDaemonCommandByType<T extends TurnDaemonCommandType> = Extract<TurnDaemonCommand, { type: T }>;
export type TurnDaemonCommandResultByType<T extends TurnDaemonCommandType> = Extract<
TurnDaemonCommandResult,
{ type: T }
>;