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

16 lines 677 B
import type { Message } from '../types/core.js'; interface UseSessionAutosaveProps { messages: Message[]; currentProvider: string; currentModel: string; currentSessionId: string | null; setCurrentSessionId: (id: string | null) => void; } /** * Hook to handle automatic session saving. * Updates the current session when currentSessionId is set; otherwise creates a new session. * Clears currentSessionId when messages are cleared. */ export declare function useSessionAutosave({ messages, currentProvider, currentModel, currentSessionId, setCurrentSessionId, }: UseSessionAutosaveProps): void; export {}; //# sourceMappingURL=useSessionAutosave.d.ts.map