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.
Files changed (2) hide show
  1. package/dist/main.js +4 -3
  2. 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.on("data", (chunk) => {
26264
- if (chunk.length === 1 && chunk[0] === 27) {
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 (chunk.length === 1 && chunk[0] === 22 && !this.agentRunning) {
26279
+ if (key && key.ctrl && key.name === "v" && !this.agentRunning) {
26279
26280
  this.handlePasteImage();
26280
26281
  }
26281
26282
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "micro-models-agent",
3
- "version": "0.24.8",
3
+ "version": "0.24.9",
4
4
  "description": "Micro Models Agent (MMA) — LLM agent harness for small models (Qwen3.5-9B, 32K-64K context)",
5
5
  "type": "module",
6
6
  "bin": {