* Prepared-turn execution seam for REPL/local callers. * * This path accepts fully prepared QueryParams and intentionally bypasses * prompt preprocessing (processUserInput, slash command parsing, etc.). * It keeps the SDK submitMessage flow unchanged while giving REPL callers * a Quer
(
params: QueryParams,
deps?: { runQuery?: ReplQueryRunner },
)
| 1221 | * a QueryEngine-owned entrypoint for prepared turns. |
| 1222 | */ |
| 1223 | static async *runPreparedTurn( |
| 1224 | params: QueryParams, |
| 1225 | deps?: { runQuery?: ReplQueryRunner }, |
| 1226 | ): AsyncGenerator<QueryEngineReplEvent, Terminal> { |
| 1227 | const runQuery = deps?.runQuery ?? query |
| 1228 | return yield* runQuery(params) |
| 1229 | } |
| 1230 | } |
| 1231 | |
| 1232 | export type QueryEngineReplEvent = |
no test coverage detected