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

33 lines 817 B
/** * Circular buffer implementation for efficient log storage */ import type { LogEntry } from '../types.js'; /** * Circular buffer for storing log entries with O(1) add/remove */ export declare class CircularBuffer { private entries; private head; private tail; private count; private maxEntries; constructor(maxEntries: number); /** * Add entry to buffer - O(1) operation * Returns the removed entry if buffer was full, undefined otherwise */ add(entry: LogEntry): LogEntry | undefined; /** * Get all entries as array (oldest to newest) */ getAll(): LogEntry[]; /** * Get current count of entries */ getCount(): number; /** * Clear all entries */ clear(): void; } //# sourceMappingURL=circular-buffer.d.ts.map