mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-03 22:19:42 +02:00
Mosh-style write-through prediction: the consumer sends every keystroke unchanged; the addon paints predicted glyphs and reconciles against the parsed buffer. Confirm = cell match + cursor advance (placeholder-safe, repaint-safe); two-pass mismatch cascade with neutral blanks (measured: codex clears its placeholder on first echo); TTL bound; baseY-based line reads; scroll/resize/off-row clears. Zero edits to zerolag-input-addon.ts. Tests: 30 addon-law specs + renderer geometry (fake performance clock for TTL/grace), 6 replay suites running the real algorithm through a real @xterm/headless parser fed by the recorded codex fixtures, and a 500-iteration seeded fuzz with per-op span/record + grid invariants. 227 total, the pre-existing 175 untouched. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
14 lines
452 B
TypeScript
14 lines
452 B
TypeScript
export { ZerolagInputAddon } from './zerolag-input-addon.js';
|
|
export { PredictiveEchoAddon } from './predictive-echo-addon.js';
|
|
export { charCellWidth, stringCellWidth } from './overlay-renderer.js';
|
|
export type {
|
|
XtermTerminal,
|
|
XtermAddon,
|
|
ZerolagInputOptions,
|
|
ZerolagInputState,
|
|
PromptFinder,
|
|
PromptPosition,
|
|
CellDimensions,
|
|
} from './types.js';
|
|
export type { PredictiveEchoOptions, PredictionState } from './predictive-echo-addon.js';
|