@nanocollective/nanocoder
Version:
A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter
23 lines • 1.09 kB
TypeScript
import React from 'react';
export interface ChatHistoryProps {
/** Whether the chat has started (ready to display) */
startChat: boolean;
/** Static components that are frozen at the top (welcome, status) */
staticComponents: React.ReactNode[];
/** Dynamic components added during the chat session */
queuedComponents: React.ReactNode[];
/** Live component that renders outside Static (for real-time updates) */
liveComponent?: React.ReactNode;
}
/**
* Chat history component that displays frozen and dynamic chat content.
*
* IMPORTANT: This component should NEVER be conditionally unmounted.
* It contains ink's Static component which holds frozen terminal output.
* Unmounting causes the Static content to be destroyed and recreated,
* leading to memory issues and visual glitches.
*
* Use ChatInput separately for the input area, which can mount/unmount freely.
*/
export declare function ChatHistory({ startChat, staticComponents, queuedComponents, liveComponent, }: ChatHistoryProps): React.ReactElement;
//# sourceMappingURL=chat-history.d.ts.map