feat: add setToolsExpanded and getToolsExpanded to ExtensionsUIContext

This commit is contained in:
Esteban Beltran 2026-02-02 19:25:00 +01:00
parent df5b0f76c0
commit ca62c44775
No known key found for this signature in database
4 changed files with 25 additions and 2 deletions

View file

@ -146,6 +146,8 @@ const noOpUIContext: ExtensionUIContext = {
getAllThemes: () => [],
getTheme: () => undefined,
setTheme: (_theme: string | Theme) => ({ success: false, error: "UI not available" }),
getToolsExpanded: () => false,
setToolsExpanded: () => {},
};
export class ExtensionRunner {

View file

@ -218,6 +218,12 @@ export interface ExtensionUIContext {
/** Set the current theme by name or Theme object. */
setTheme(theme: string | Theme): { success: boolean; error?: string };
/** Get current tool output expansion state. */
getToolsExpanded(): boolean;
/** Set tool output expansion state. */
setToolsExpanded(expanded: boolean): void;
}
// ============================================================================