micro-models-agent 0.24.8 → 0.24.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +4 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -26260,8 +26260,9 @@ class Repl {
|
|
|
26260
26260
|
this.running = false;
|
|
26261
26261
|
});
|
|
26262
26262
|
if (process.stdin.isTTY) {
|
|
26263
|
-
process.stdin
|
|
26264
|
-
|
|
26263
|
+
readline2.emitKeypressEvents(process.stdin);
|
|
26264
|
+
process.stdin.on("keypress", (str, key) => {
|
|
26265
|
+
if (key && key.name === "escape") {
|
|
26265
26266
|
const now = Date.now();
|
|
26266
26267
|
if (now - this.lastEscTime < this.doubleEscDelay) {
|
|
26267
26268
|
if (this.agentRunning) {
|
|
@@ -26275,7 +26276,7 @@ ${t("repl.interrupt")}
|
|
|
26275
26276
|
}
|
|
26276
26277
|
this.lastEscTime = now;
|
|
26277
26278
|
}
|
|
26278
|
-
if (
|
|
26279
|
+
if (key && key.ctrl && key.name === "v" && !this.agentRunning) {
|
|
26279
26280
|
this.handlePasteImage();
|
|
26280
26281
|
}
|
|
26281
26282
|
});
|