This commit is contained in:
Colin McDonnell
2025-12-16 19:01:13 -08:00
parent 114c0b5632
commit a2f6b938de
6 changed files with 17 additions and 14 deletions
+10 -5
View File
@@ -32,6 +32,15 @@ function endGroup(): void {
}
}
/**
* Run a callback within a collapsed group
*/
function group(name: string, fn: () => void): void {
startGroup(name);
fn();
endGroup();
}
/**
* Print a formatted box with text (for console output)
*/
@@ -319,11 +328,7 @@ export const log = {
/**
* Run a callback within a collapsed group
*/
group: (name: string, fn: (log: typeof log) => void): void => {
startGroup(name);
fn(log);
endGroup();
},
group,
/**
* Log tool call information to console with formatted output