mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 09:01:14 +00:00
refactor(coding-agent): simplify InteractiveMode API
- Replace 11-param runInteractiveMode with InteractiveModeOptions - Add InteractiveMode.run() that handles init, warnings, prompts, and loop - Move version check, changelog loading, fdPath discovery inside InteractiveMode - Detect resumed sessions via session.state.messages.length - Export InteractiveModeOptions from modes/index.ts
This commit is contained in:
parent
cb3ac0ba9e
commit
5d39074a35
3 changed files with 162 additions and 141 deletions
|
|
@ -2,7 +2,7 @@
|
|||
* Run modes for the coding agent.
|
||||
*/
|
||||
|
||||
export { InteractiveMode } from "./interactive/interactive-mode.js";
|
||||
export { InteractiveMode, type InteractiveModeOptions } from "./interactive/interactive-mode.js";
|
||||
export { runPrintMode } from "./print-mode.js";
|
||||
export { type ModelInfo, RpcClient, type RpcClientOptions, type RpcEventListener } from "./rpc/rpc-client.js";
|
||||
export { runRpcMode } from "./rpc/rpc-mode.js";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue