markdown.ts: Extract renderCodeBlock() helper to eliminate duplicated code block rendering between renderToken and renderListItem. keys.ts: Consolidate LEGACY_KEY_SEQUENCES, LEGACY_SHIFT_SEQUENCES, and LEGACY_CTRL_SEQUENCES into a single LEGACY_SEQUENCES structure with plain/shift/ctrl variants per key. Auto-generate LEGACY_SEQUENCE_KEY_IDS from this structure instead of hand-maintaining a 50+ entry reverse lookup. Extract hasKittyEventType() to deduplicate isKeyRelease and isKeyRepeat. Net reduction of ~80 lines. |
||
|---|---|---|
| .. | ||
| native | ||
| pi-agent-core | ||
| pi-ai | ||
| pi-coding-agent | ||
| pi-tui | ||