mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 16:00:58 +00:00
Use Spacer component for blank line before tool execution
This commit is contained in:
parent
c061b4fba9
commit
0cceb346be
2 changed files with 12 additions and 12 deletions
|
|
@ -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?"
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue