Replace logo with 'pi' + version from package.json

This commit is contained in:
Mario Zechner 2025-11-11 20:38:56 +01:00
parent 5627b3054a
commit 9f0242d477
2 changed files with 16 additions and 5 deletions

View file

@ -285,6 +285,7 @@ export class TuiRenderer {
private editor: CustomEditor;
private footer: FooterComponent;
private agent: Agent;
private version: string;
private isInitialized = false;
private onInputCallback?: (text: string) => void;
private loadingAnimation: Loader | null = null;
@ -300,8 +301,9 @@ export class TuiRenderer {
// Track assistant message with tool calls that needs stats shown after tools complete
private deferredStats: { usage: any; toolCallIds: Set<string> } | null = null;
constructor(agent: Agent) {
constructor(agent: Agent, version: string) {
this.agent = agent;
this.version = version;
this.ui = new TUI(new ProcessTerminal());
this.chatContainer = new Container();
this.statusContainer = new Container();
@ -333,7 +335,7 @@ export class TuiRenderer {
if (this.isInitialized) return;
// Add header with logo and instructions
const logo = chalk.cyan("==[ ") + chalk.bold.cyan("pi") + chalk.cyan(" ]==");
const logo = chalk.bold.cyan("pi") + chalk.dim(` v${this.version}`);
const instructions = chalk.dim(
"esc" +
chalk.gray(" to interrupt") +