import { Text } from "@earendil-works/pi-tui";
import { theme } from "../theme/theme.js";
/**
 * Inline working status used above the composer.
 *
 * This preserves the same geometry as pi-tui's Loader, which is the primitive
 * used by the main coding-agent chat: one leading blank row plus a one-cell
 * text gutter before the spinner/message row.
 */
export class WorkingStatusComponent {
    constructor(options = {}) {
        this.options = options;
    }
    render(width) {
        const spinner = this.options.spinner ?? "⠋";
        const message = this.options.message ?? "Working...";
        const spinnerColor = this.options.spinnerColor ??
            ((text) => theme.fg("accent", text));
        const messageColor = this.options.messageColor ?? ((text) => theme.fg("muted", text));
        const indicator = spinner ? `${spinnerColor(spinner)} ` : "";
        return [
            "",
            ...new Text(`${indicator}${messageColor(message)}`, 1, 0).render(width),
        ];
    }
    invalidate() { }
}
//# sourceMappingURL=working-status.js.map