feat: init

This commit is contained in:
2026-02-13 22:02:30 +01:00
commit 8f9ff830fb
16711 changed files with 3307340 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import { EventEmitter } from "node:events";
export class Interface extends EventEmitter {
terminal = false;
line = "";
cursor = 0;
getPrompt() {
return "";
}
setPrompt(prompt) {}
prompt(preserveCursor) {}
question(query, options, callback) {
callback && typeof callback === "function" && callback("");
}
resume() {
return this;
}
close() {}
write(data, key) {}
getCursorPos() {
return {
rows: 0,
cols: 0
};
}
pause() {
return this;
}
async *[Symbol.asyncIterator]() {
yield "";
}
}