( setAppState: (updater: (prev: AppState) => AppState) => void, sessionId: string, event: HookEvent, matcher: string, hook: HookCommand, onHookSuccess?: OnHookSuccess, skillRoot?: string, )
| 66 | * Session hooks are temporary, in-memory only, and cleared when session ends. |
| 67 | */ |
| 68 | export function addSessionHook( |
| 69 | setAppState: (updater: (prev: AppState) => AppState) => void, |
| 70 | sessionId: string, |
| 71 | event: HookEvent, |
| 72 | matcher: string, |
| 73 | hook: HookCommand, |
| 74 | onHookSuccess?: OnHookSuccess, |
| 75 | skillRoot?: string, |
| 76 | ): void { |
| 77 | addHookToSession( |
| 78 | setAppState, |
| 79 | sessionId, |
| 80 | event, |
| 81 | matcher, |
| 82 | hook, |
| 83 | onHookSuccess, |
| 84 | skillRoot, |
| 85 | ) |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Add a function hook to the session. |
no test coverage detected