mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-09 08:59:40 +02:00
feat: integrate xterm-zerolag-input library into Claudeman app.js
Replace the embedded 348-line LocalEchoOverlay class with the standalone xterm-zerolag-input library (inlined as ZerolagInputAddon). A bridge class `LocalEchoOverlay extends ZerolagInputAddon` preserves the constructor API so existing `new LocalEchoOverlay(terminal)` call works. All 43+ private property accesses (_flushedOffset, _bufferDetectDone, _lastRenderKey, _render(), _detectBufferText(), etc.) replaced with public library methods: - Backspace: 60-line 3-branch handler → removeChar() returning 'pending'|'flushed'|false + Map sync - Tab completion: _bufferDetectDone/_detectBufferText/_flushedOffset → resetBufferDetection()/detectBufferText()/undoDetection()/rerender() - Tab switch save: _flushedOffset/_flushedText reads → getFlushed() - Tab switch restore: direct assignments → setFlushed(n, t, false) - Buffer detection guard: _bufferDetectDone=true → suppressBufferDetection() - Resize re-render: _lastRenderKey='';rerender() → rerender() - Post-load render: _lastRenderKey='';_render() → rerender() Verified with 9 Playwright integration tests + manual testing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -35,7 +35,7 @@ When user says "COM":
|
||||
1. Increment version in BOTH `package.json` AND `CLAUDE.md` (verify they match with `grep version package.json && grep Version CLAUDE.md`)
|
||||
2. Run: `git add -A && git commit -m "chore: bump version to X.XXXX" && git push && npm run build && systemctl --user restart claudeman-web`
|
||||
|
||||
**Version**: 0.1600 (must match `package.json` for npm publish)
|
||||
**Version**: 0.1601 (must match `package.json` for npm publish)
|
||||
|
||||
## Project Overview
|
||||
|
||||
|
||||
Reference in New Issue
Block a user