mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 05:03:26 +00:00
fix: use robust matchShortcut from TUI library
- Add matchShortcut() function to @mariozechner/pi-tui - Handles Kitty protocol, legacy terminal sequences, and lock keys - Supports special keys (enter, tab, space, backspace, escape) - Replace custom implementation in interactive-mode.ts - Remove unused imports
This commit is contained in:
parent
0a73710cba
commit
b42362e1d5
3 changed files with 16 additions and 11 deletions
|
|
@ -12,7 +12,14 @@ import { getAgentDir } from "../../config.js";
|
|||
import type { HookMessage } from "../messages.js";
|
||||
import type { SessionManager } from "../session-manager.js";
|
||||
import { execCommand } from "./runner.js";
|
||||
import type { ExecOptions, HookAPI, HookContext, HookFactory, HookMessageRenderer, RegisteredCommand } from "./types.js";
|
||||
import type {
|
||||
ExecOptions,
|
||||
HookAPI,
|
||||
HookContext,
|
||||
HookFactory,
|
||||
HookMessageRenderer,
|
||||
RegisteredCommand,
|
||||
} from "./types.js";
|
||||
|
||||
// Create require function to resolve module paths at runtime
|
||||
const require = createRequire(import.meta.url);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue