mlx-bun library API
    Preparing search index...
    interface ChatHost {
        settings?: {
            approvals(
                tools: readonly string[],
                forget: (tool: string) => void,
            ): void;
            codingTools(active: boolean, pending: boolean): void;
            codingToolsPreference(): boolean;
        };
        mounted?(panel: HTMLElement): void;
        toolCard?(
            parent: HTMLElement,
            tool: string,
            args: unknown,
        ): ToolCardHandle | null;
    }
    Index
    settings?: {
        approvals(
            tools: readonly string[],
            forget: (tool: string) => void,
        ): void;
        codingTools(active: boolean, pending: boolean): void;
        codingToolsPreference(): boolean;
    }

    The agent-tools section of the host's settings dialog.

    Type Declaration

    • approvals: function
      • The always-allow list, with the action that forgets one entry.

        Parameters

        • tools: readonly string[]
        • forget: (tool: string) => void

        Returns void

    • codingTools: function
      • The server's report: active is what this chat was built with, pending the request that applies to the next one.

        Parameters

        • active: boolean
        • pending: boolean

        Returns void

    • codingToolsPreference: function
    • Called once the panel's markup exists and its controls are wired: the host attaches what lives beside the chat (the memory entry in the sidebar, the first-run consent card) and keeps the element for its own calls.

      Parameters

      • panel: HTMLElement

      Returns void