mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-19 05:02:41 +00:00
Replace synchronous file operations with async Promise-based operations that listen to abort signals during execution: - read, write, edit now use fs/promises async APIs - Add abort event listeners that reject immediately on abort - Check abort status before and after each async operation - Clean up event listeners properly This ensures pressing Esc during file operations shows red error state. |
||
|---|---|---|
| .. | ||
| bash.ts | ||
| edit.ts | ||
| index.ts | ||
| read.ts | ||
| write.ts | ||