UNPKG

@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

14 lines 499 B
/** * Creates a function to reset all streaming-related state. * Used to clean up after streaming responses complete or error. */ export const createResetStreamingState = (setIsCancelling, setAbortController, setIsGenerating, setStreamingContent, setTokenCount) => { return () => { setIsCancelling(false); setAbortController(null); setIsGenerating(false); setStreamingContent(''); setTokenCount(0); }; }; //# sourceMappingURL=streaming-state.js.map