Merge branch 'cli' of github.com:rowboatlabs/rowboat into cli

This commit is contained in:
tusharmagar 2025-11-18 15:51:31 +05:30
commit cfaf160e89
6 changed files with 158 additions and 47 deletions

View file

@ -63,6 +63,10 @@ export class StreamRenderer {
this.onError(event.error);
break;
}
case "pause-for-human-input": {
this.onPauseForHumanInput(event.toolCallId, event.question);
break;
}
}
}
@ -225,6 +229,13 @@ export class StreamRenderer {
this.write(this.dim("└─────────────\n"));
}
private onPauseForHumanInput(toolCallId: string, question: string) {
this.write(this.cyan(`\n→ Pause for human input (${toolCallId})`));
this.write("\n");
this.write(this.bold("Question: ") + question);
this.write("\n");
}
private onUsage(usage: {
inputTokens?: number;
outputTokens?: number;