diff --git a/packages/coding-agent/example.txt b/packages/coding-agent/example.txt index f28736ef..03c4844a 100644 --- a/packages/coding-agent/example.txt +++ b/packages/coding-agent/example.txt @@ -1,14 +1,14 @@ -The Quick Brown Fox and the Lazy Dog -===================================== +The Amazing Adventures of Fox and Dog +====================================== -Once upon a time, in a forest clearing, there lived a remarkably quick brown fox. -This fox was known throughout the woodland for its incredible speed and agility. +Long ago, in a magical forest clearing, there lived an extraordinarily swift brown fox. +This legendary fox was famous across the entire woodland for its blazing speed and grace. -Every morning, the fox would race through the trees, leaping over logs and streams. -The other animals watched in awe as it darted past them in a blur of russet fur. +Each dawn, the fox would sprint through the ancient trees, soaring over logs and babbling brooks. +The woodland creatures gazed in wonder as it flashed past them like a streak of copper lightning. -Near the edge of the clearing, there also lived a very lazy dog. -This dog preferred napping in the warm sunshine to any sort of adventure. +At the clearing's edge, there also dwelled an exceptionally lazy dog. +This contented dog much preferred snoozing in the golden sunshine to any kind of adventure. One day, the fox challenged the dog to a race across the meadow. The dog yawned and declined, saying "Why rush when you can rest?" diff --git a/packages/coding-agent/src/tui/tool-execution.ts b/packages/coding-agent/src/tui/tool-execution.ts index 08a05cb8..b25090a5 100644 --- a/packages/coding-agent/src/tui/tool-execution.ts +++ b/packages/coding-agent/src/tui/tool-execution.ts @@ -1,11 +1,11 @@ -import { Container, Text } from "@mariozechner/pi-tui"; +import { Container, Spacer, Text } from "@mariozechner/pi-tui"; import chalk from "chalk"; /** * Component that renders a tool call with its result (updateable) */ export class ToolExecutionComponent extends Container { - private spacerText: Text; + private spacer: Spacer; private contentText: Text; private toolName: string; private args: any; @@ -16,8 +16,8 @@ export class ToolExecutionComponent extends Container { this.toolName = toolName; this.args = args; // Blank line with no background for spacing - this.spacerText = new Text("\n", 0, 0); - this.addChild(this.spacerText); + this.spacer = new Spacer(1); + this.addChild(this.spacer); // Content with colored background and padding this.contentText = new Text("", 1, 1, { r: 40, g: 40, b: 50 }); this.addChild(this.contentText);