Polyman Documentation - v3.1.0
    Preparing search index...

    Interface UiState

    Everything the screen shows.

    interface UiState {
        finished: Item[];
        live: {
            streamingText: string;
            reasoning: string;
            runningTools: ToolView[];
        };
        approval: ApprovalView
        | null;
        planApproval: { approvalId: string; plan: Plan } | null;
        workflow: WorkflowView | null;
        status: {
            problem: string | null;
            model: string;
            mode: PermissionMode;
            tokens: number;
            costUsd: number;
            busy: boolean;
        };
        nextId: number;
    }
    Index
    finished: Item[]

    Printed once into the scrollback.

    live: { streamingText: string; reasoning: string; runningTools: ToolView[] }

    Redrawn on every change.

    approval: ApprovalView | null
    planApproval: { approvalId: string; plan: Plan } | null
    workflow: WorkflowView | null
    status: {
        problem: string | null;
        model: string;
        mode: PermissionMode;
        tokens: number;
        costUsd: number;
        busy: boolean;
    }
    nextId: number

    The id of the next finished item.