From 47ea28b58441c3e75d5d080ccf7c75defe0acb08 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Fri, 20 Mar 2026 12:54:33 +0100 Subject: [PATCH] fix(coding-agent): export ToolCallEventResult closes #2458 --- packages/coding-agent/CHANGELOG.md | 4 ++++ packages/coding-agent/src/core/index.ts | 1 + packages/coding-agent/src/index.ts | 1 + 3 files changed, 6 insertions(+) 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,