diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 90ce4736..d84d211c 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Added + +- Added `ToolCallEventResult` to the `@mariozechner/pi-coding-agent` top-level and core extension exports so extension authors can type explicit `tool_call` handler return values ([#2458](https://github.com/badlogic/pi-mono/issues/2458)) + ### Fixed - Fixed `ctrl+z` suspend and `fg` resume reliability by keeping the process alive until the `SIGCONT` handler restores the TUI, avoiding immediate process exit in environments with no other live event-loop handles ([#2454](https://github.com/badlogic/pi-mono/issues/2454)) diff --git a/packages/coding-agent/src/core/index.ts b/packages/coding-agent/src/core/index.ts index db258fea..dd47b8d1 100644 --- a/packages/coding-agent/src/core/index.ts +++ b/packages/coding-agent/src/core/index.ts @@ -52,6 +52,7 @@ export { type SessionSwitchEvent, type SessionTreeEvent, type ToolCallEvent, + type ToolCallEventResult, type ToolDefinition, type ToolRenderResultOptions, type ToolResultEvent, diff --git a/packages/coding-agent/src/index.ts b/packages/coding-agent/src/index.ts index 9a792399..64567d4b 100644 --- a/packages/coding-agent/src/index.ts +++ b/packages/coding-agent/src/index.ts @@ -112,6 +112,7 @@ export type { SlashCommandSource, TerminalInputHandler, ToolCallEvent, + ToolCallEventResult, ToolDefinition, ToolInfo, ToolRenderResultOptions,