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

    Type Alias LocalAction

    LocalAction:
        | { type: "user_message"; text: string }
        | { type: "notice"; text: string; level?: "info" | "warn" | "error" }
        | { type: "set_mode"; mode: PermissionMode }
        | {
            type: "approval_answered";
            approvalId: string;
            decision?: ApprovalDecision;
        }
        | { type: "turn_settled" }

    Things the UI itself adds, next to the agent events.

    Type Declaration

    • { type: "user_message"; text: string }

      The user sent a message.

    • { type: "notice"; text: string; level?: "info" | "warn" | "error" }

      A line from the UI, like the help text.

    • { type: "set_mode"; mode: PermissionMode }

      The permission mode changed (shift+tab).

    • { type: "approval_answered"; approvalId: string; decision?: ApprovalDecision }

      The user answered an approval, hide it before the session confirms.

    • { type: "turn_settled" }

      session.send() returned, the turn is surely over.