micro-models-agent 0.24.9 → 0.24.10
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 +3 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -26260,9 +26260,8 @@ class Repl {
|
|
|
26260
26260
|
this.running = false;
|
|
26261
26261
|
});
|
|
26262
26262
|
if (process.stdin.isTTY) {
|
|
26263
|
-
|
|
26264
|
-
|
|
26265
|
-
if (key && key.name === "escape") {
|
|
26263
|
+
process.stdin.on("data", (chunk) => {
|
|
26264
|
+
if (chunk.length === 1 && chunk[0] === 27) {
|
|
26266
26265
|
const now = Date.now();
|
|
26267
26266
|
if (now - this.lastEscTime < this.doubleEscDelay) {
|
|
26268
26267
|
if (this.agentRunning) {
|
|
@@ -26276,7 +26275,7 @@ ${t("repl.interrupt")}
|
|
|
26276
26275
|
}
|
|
26277
26276
|
this.lastEscTime = now;
|
|
26278
26277
|
}
|
|
26279
|
-
if (
|
|
26278
|
+
if (chunk.length === 1 && chunk[0] === 22 && !this.agentRunning) {
|
|
26280
26279
|
this.handlePasteImage();
|
|
26281
26280
|
}
|
|
26282
26281
|
});
|