mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 23:01:30 +00:00
The previous lazy-loading change switched to require("koffi") inside
enableWindowsVTInput(). In ESM, require is undefined, so the call
threw and VT input mode was silently not enabled on Windows.
Use createRequire(import.meta.url) at module scope and
cjsRequire("koffi") at the call site. This keeps koffi externalized
for Bun binaries while restoring Windows VT input behavior, including
multiline paste handling.
|
||
|---|---|---|
| .. | ||
| components | ||
| autocomplete.ts | ||
| editor-component.ts | ||
| fuzzy.ts | ||
| index.ts | ||
| keybindings.ts | ||
| keys.ts | ||
| kill-ring.ts | ||
| stdin-buffer.ts | ||
| terminal-image.ts | ||
| terminal.ts | ||
| tui.ts | ||
| undo-stack.ts | ||
| utils.ts | ||