Saltar al contenido principal
Versión: 0.19.0

Interface: ProgressView

Defined in: tui/ink/progressView.tsx:44

A one-shot run's live view: a console renderer drawn with Ink, plus close().

Extends​

Properties​

PropertyModifierTypeDescriptionInherited fromDefined in
atLineStartreadonlybooleanWhether the cursor sits at the start of a line (after anything ending in "\n").ConsoleRenderer.atLineStarttui/consoleRenderer.ts:32

Methods​

close()​

close(): Promise<void>;

Defined in: tui/ink/progressView.tsx:46

Removes the live area and restores the previous interaction port; await it before printing anything else.

Returns​

Promise<void>


endLine()​

endLine(): void;

Defined in: tui/consoleRenderer.ts:28

Ends the current line, if the cursor isn't already at the start of one.

Returns​

void

Inherited from​

ConsoleRenderer.endLine


render()​

render(event): void;

Defined in: tui/consoleRenderer.ts:23

Prints one normalized event from runQuery().

Parameters​

ParameterType
eventAgentEvent

Returns​

void

Inherited from​

ConsoleRenderer.render


startTurn()​

startTurn(): void;

Defined in: tui/consoleRenderer.ts:30

Marks the start of a new turn, so the agent label is printed again before its text.

Returns​

void

Inherited from​

ConsoleRenderer.startTurn


write()​

write(text): void;

Defined in: tui/consoleRenderer.ts:24

Parameters​

ParameterType
textstring

Returns​

void

Inherited from​

ConsoleRenderer.write


writeLine()​

writeLine(text): void;

Defined in: tui/consoleRenderer.ts:26

Writes text on a line of its own: after ending the current line if needed.

Parameters​

ParameterType
textstring

Returns​

void

Inherited from​

ConsoleRenderer.writeLine