AGENTS.md@crates/common/vtcode-diff · git:20260914.8b74f6c · 2026-09-14 · sha256 1dc0d3a4a1b8b398

AGENTS.md@crates/common/vtcode-diff git:20260914.8b74f6cA

Immutable. This exact content is served forever at /api/v1/blob/1dc0d3a4a1b8b398.

# 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.

## Dependencies

- `similar` owns diff algorithms and deadline-aware refinement.
- `unicode-width` owns terminal display-cell measurements.