feat(coding-agent): export run mode utilities with options interfaces

- Add PrintModeOptions interface, update runPrintMode signature
- Export InteractiveMode, InteractiveModeOptions, runPrintMode, PrintModeOptions, runRpcMode from main package
- Document run modes in docs/sdk.md with usage examples
- Update CHANGELOG
This commit is contained in:
Mario Zechner 2026-01-08 01:53:24 +01:00
parent 5d39074a35
commit e483521075
6 changed files with 94 additions and 16 deletions

View file

@ -24,6 +24,12 @@
- `createExtensionRuntime()` function to create runtime with throwing stubs
- `Extension` type exported (cleaner name for loaded extension data)
- Interactive mode now warns when extensions override built-in tools (read, bash, edit, write, grep, find, ls)
- `InteractiveMode` constructor simplified to `(session, options?)` with `InteractiveModeOptions` interface
- `InteractiveMode.run()` method for complete initialization and interactive loop
- `InteractiveModeOptions` exported for SDK users building custom interactive modes
- `runPrintMode()` now takes `(session, options)` with `PrintModeOptions` interface
- `PrintModeOptions` exported for SDK users
- Run mode utilities exported from main package: `InteractiveMode`, `InteractiveModeOptions`, `runPrintMode`, `PrintModeOptions`, `runRpcMode`
### Changed