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

15 lines 566 B
export interface DiffSegment { text: string; type: 'unchanged' | 'added' | 'removed'; } /** * Compute inline diff segments between two strings. * Uses word-level diffing for more readable results. */ export declare function computeInlineDiff(oldText: string, newText: string): DiffSegment[]; /** * Check if two lines are similar enough to show as an inline diff. * Returns true if the lines share significant common content. */ export declare function areLinesSimlar(oldLine: string, newLine: string): boolean; //# sourceMappingURL=inline-diff.d.ts.map