mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-09-30 12:39:42 +02:00
chore: remove unused regex patterns and update optimization tracking
- Remove deprecated ANSI_ESCAPE_PATTERN and WHITESPACE_PATTERN from respawn-controller.ts (were marked as unused) - Update optimization-todos.md with progress on completed items: - Item 1: BufferAccumulator implemented - Item 2: lastIndex resets already in place - Item 3: Auto-trim via BufferAccumulator - Item 9: Unused regex patterns removed - Item 13: Files not dead code (used by CLI) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -43,20 +43,7 @@ const MAX_RESPAWN_BUFFER_SIZE = 1024 * 1024; // 1MB
|
||||
*/
|
||||
const RESPAWN_BUFFER_TRIM_SIZE = 512 * 1024; // 512KB
|
||||
|
||||
// ========== Pre-compiled Regex Patterns ==========
|
||||
|
||||
/**
|
||||
* Matches ANSI escape codes for terminal control sequences.
|
||||
* Used to strip formatting before pattern matching.
|
||||
* @deprecated Currently unused but kept for potential future use
|
||||
*/
|
||||
const ANSI_ESCAPE_PATTERN = /\x1b\[[0-9;]*[HJKmsu?lh]/g;
|
||||
|
||||
/**
|
||||
* Matches whitespace sequences for normalization.
|
||||
* @deprecated Currently unused but kept for potential future use
|
||||
*/
|
||||
const WHITESPACE_PATTERN = /\s+/g;
|
||||
// ========== Constants ==========
|
||||
|
||||
/**
|
||||
* The definitive "ready for input" indicator.
|
||||
|
||||
Reference in New Issue
Block a user