micro-models-agent 0.24.7 → 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 +5 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -9297,6 +9297,7 @@ ${t("tool.truncated", { tokens: Math.ceil(removedChars / 2) })}`;
|
|
|
9297
9297
|
} = this.deps;
|
|
9298
9298
|
const slog = new SessionLogger(sessionManager);
|
|
9299
9299
|
this.abortController = new AbortController;
|
|
9300
|
+
this.shutdownRequested = false;
|
|
9300
9301
|
let iteration = 0;
|
|
9301
9302
|
let lastText = "";
|
|
9302
9303
|
let hallucinationRetries = 0;
|
|
@@ -26259,8 +26260,9 @@ class Repl {
|
|
|
26259
26260
|
this.running = false;
|
|
26260
26261
|
});
|
|
26261
26262
|
if (process.stdin.isTTY) {
|
|
26262
|
-
process.stdin
|
|
26263
|
-
|
|
26263
|
+
readline2.emitKeypressEvents(process.stdin);
|
|
26264
|
+
process.stdin.on("keypress", (str, key) => {
|
|
26265
|
+
if (key && key.name === "escape") {
|
|
26264
26266
|
const now = Date.now();
|
|
26265
26267
|
if (now - this.lastEscTime < this.doubleEscDelay) {
|
|
26266
26268
|
if (this.agentRunning) {
|
|
@@ -26274,7 +26276,7 @@ ${t("repl.interrupt")}
|
|
|
26274
26276
|
}
|
|
26275
26277
|
this.lastEscTime = now;
|
|
26276
26278
|
}
|
|
26277
|
-
if (
|
|
26279
|
+
if (key && key.ctrl && key.name === "v" && !this.agentRunning) {
|
|
26278
26280
|
this.handlePasteImage();
|
|
26279
26281
|
}
|
|
26280
26282
|
});
|