AGENTS.md@crates/common/vtcode-diff · git:20260915.6ac62df · 2026-09-15 · sha256 ee6c339dfcc2e8f9
AGENTS.md@crates/common/vtcode-diff git:20260915.6ac62dfA
Immutable. This exact content is served forever at /api/v1/blob/ee6c339dfcc2e8f9.
# vtcode-diff [Root AGENTS.md](../../../AGENTS.md) | Reusable bounded diff computation and semantic preview layout. ## Conventions - Keep the core independent of VT Code crates and renderer themes. - Preserve source line endings and byte-safe intraline ranges. - All expensive diff and intraline paths require explicit bounds or deadlines. - Layout emits semantic rows; applications supply syntax and color policy. - Shared responsive constants keep side-by-side and unified gutter decisions consistent across renderers; measured widths are post-indent/content widths. ## Dependencies - `similar` owns diff algorithms and deadline-aware refinement. - `unicode-width` owns terminal display-cell measurements.