()
| 17 | }) |
| 18 | |
| 19 | function createContext() { |
| 20 | return { |
| 21 | options: { |
| 22 | commands: [], |
| 23 | isNonInteractiveSession: false, |
| 24 | }, |
| 25 | abortController: new AbortController(), |
| 26 | getAppState: () => ({ |
| 27 | toolPermissionContext: { mode: 'default' }, |
| 28 | sessionHooks: new Map(), |
| 29 | ultraplanSessionUrl: undefined, |
| 30 | ultraplanLaunching: false, |
| 31 | }), |
| 32 | setAppState: () => {}, |
| 33 | updateAttributionState: () => {}, |
| 34 | requestPrompt: undefined, |
| 35 | messages: [], |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | function registerUserPromptSubmitHook( |
| 40 | output: |
no outgoing calls
no test coverage detected