( sdk: RunInput["sdk"], sessionID: string, model: RunInput["model"], )
| 185 | |
| 186 | // Fetches session messages to determine if this is the first turn and build prompt history. |
| 187 | export async function resolveSessionInfo( |
| 188 | sdk: RunInput["sdk"], |
| 189 | sessionID: string, |
| 190 | model: RunInput["model"], |
| 191 | ): Promise<SessionInfo> { |
| 192 | return runtime.runPromise((svc) => svc.resolveSessionInfo(sdk, sessionID, model)).catch(() => emptySessionInfo()) |
| 193 | } |
| 194 | |
| 195 | // Reads TUI config once for direct mode keymap setup and display preferences. |
| 196 | export async function resolveRunTuiConfig(): Promise<RunTuiConfig> { |
no test coverage detected