/** * @license * Copyright 2025 Vybestack LLC * SPDX-License-Identifier: Apache-2.0 */ import type { CommandContext } from '../commands/types.js'; /** * Creates a UI context object with no-op functions. * Useful for non-interactive environments where UI operations * are not applicable. */ export function createNonInteractiveUI(): CommandContext['ui'] { return { addItem: ( _item: Parameters[0], _timestamp?: number, ) => 0, clear: () => {}, setDebugMessage: (_message: string) => {}, loadHistory: ( _newHistory: Parameters[0], ) => {}, pendingItem: null, setPendingItem: ( _item: Parameters[0], ) => {}, toggleCorgiMode: () => {}, toggleDebugProfiler: () => {}, toggleVimEnabled: async () => false, setLlxprtMdFileCount: (_count: number) => {}, updateHistoryTokenCount: (_count: number) => {}, reloadCommands: () => {}, extensionsUpdateState: new Map(), dispatchExtensionStateUpdate: (_action) => {}, addConfirmUpdateExtensionRequest: (_request) => {}, }; }