featherbit UI
    Preparing search index...

    Interface CommandContext

    Everything an action may need; supplied by App.

    interface CommandContext {
        agentPrompt: (
            name:
                | "review_policy"
                | "design_policy"
                | "design_supernode"
                | "design_route",
            mode?: "copy" | "ask",
        ) => void;
        createPluginConfig: () => void;
        createRoute: () => void;
        createSupernode: () => void;
        editorOpen: boolean;
        hasEditorAction: (id: string) => boolean;
        hasSelection: boolean;
        invokeEditorAction: (id: string) => void;
        openAgentPanel: () => void;
        openChat: () => void;
        openNotifications: () => void;
        reloadConfig: () => void;
        togglePortNames: () => void;
        toggleTheme: () => void;
        viewYaml: () => void;
    }
    Index
    agentPrompt: (
        name:
            | "review_policy"
            | "design_policy"
            | "design_supernode"
            | "design_route",
        mode?: "copy" | "ask",
    ) => void

    Copies (default) or asks in chat a policy-authoring prompt; design_* open a goal dialog first.

    createPluginConfig: () => void
    createRoute: () => void
    createSupernode: () => void
    editorOpen: boolean

    True when the node-graph editor is mounted (a policy/supernode is selected).

    hasEditorAction: (id: string) => boolean

    True when the canvas has registered that action.

    hasSelection: boolean

    True when any route/supernode/config is selected.

    invokeEditorAction: (id: string) => void

    Runs an action owned by the canvas (see editorActions.tsx).

    openAgentPanel: () => void

    Opens the Agent (MCP) panel.

    openChat: () => void

    Opens the in-UI agent chat.

    openNotifications: () => void

    Opens the notification log (every toast, inspectable afterwards).

    reloadConfig: () => void
    togglePortNames: () => void
    toggleTheme: () => void
    viewYaml: () => void