UNPKG

askme-cli

Version:

askme-cli MCP server that collects user's next plan or confirmation through terminal window

30 lines 614 B
import { EventEmitter } from 'events'; // Create custom stdin class to simulate TTY behavior export class CustomStdin extends EventEmitter { isTTY = true; isRaw = false; constructor() { super(); } setRawMode(mode) { this.isRaw = mode; return this; } setEncoding() { return this; } resume() { return this; } pause() { return this; } write(data) { this.emit('data', data); return true; } simulateKeypress(key) { this.emit('data', key); } } //# sourceMappingURL=custom-stdin.js.map