micro-models-agent 0.48.1 → 0.48.3

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 +27 -8
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -13298,19 +13298,34 @@ class FactualCheck {
13298
13298
  return existsSync24(fp);
13299
13299
  if (this.knownFiles.has(fp))
13300
13300
  return true;
13301
+ for (const cand of this.dotfileVariants(fp)) {
13302
+ if (this.knownFiles.has(cand))
13303
+ return true;
13304
+ if (existsSync24(resolve14(this.baseDir, cand)))
13305
+ return true;
13306
+ }
13301
13307
  if (!fp.includes("/") && !fp.includes("\\")) {
13302
13308
  return this.bareNameExists(fp);
13303
13309
  }
13304
- return existsSync24(resolve14(this.baseDir, fp));
13310
+ return false;
13311
+ }
13312
+ dotfileVariants(fp) {
13313
+ const idx = Math.max(fp.lastIndexOf("/"), fp.lastIndexOf("\\"));
13314
+ const base = idx >= 0 ? fp.slice(idx + 1) : fp;
13315
+ if (base.startsWith("."))
13316
+ return [fp];
13317
+ return idx >= 0 ? [fp, `${fp.slice(0, idx + 1)}.${base}`] : [fp, `.${fp}`];
13305
13318
  }
13306
13319
  bareNameExists(name) {
13307
- if (existsSync24(resolve14(this.baseDir, name)))
13308
- return true;
13309
- if (this.indexHas(name))
13310
- return true;
13311
- for (const known of this.knownFiles) {
13312
- if (known.endsWith(`/${name}`) || known.endsWith(`\\${name}`) || known === name) {
13320
+ for (const cand of this.dotfileVariants(name)) {
13321
+ if (existsSync24(resolve14(this.baseDir, cand)))
13313
13322
  return true;
13323
+ if (this.indexHas(cand))
13324
+ return true;
13325
+ for (const known of this.knownFiles) {
13326
+ if (known.endsWith(`/${cand}`) || known.endsWith(`\\${cand}`) || known === cand) {
13327
+ return true;
13328
+ }
13314
13329
  }
13315
13330
  }
13316
13331
  const now = Date.now();
@@ -34100,7 +34115,7 @@ class Repl {
34100
34115
  pendingClipboardImage = null;
34101
34116
  exitOnClose = false;
34102
34117
  activePlan = null;
34103
- lastPlanSig = "";
34118
+ lastPlanSig = null;
34104
34119
  rl;
34105
34120
  agent;
34106
34121
  config;
@@ -34401,6 +34416,10 @@ ${t("image.clipboard_empty")}`));
34401
34416
  return;
34402
34417
  }
34403
34418
  this.activePlan = plan;
34419
+ if (this.lastPlanSig === null) {
34420
+ this.lastPlanSig = sig;
34421
+ return;
34422
+ }
34404
34423
  if (sig !== this.lastPlanSig) {
34405
34424
  this.lastPlanSig = sig;
34406
34425
  renderer.planBlock(formatPlanChecklist(plan));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "micro-models-agent",
3
- "version": "0.48.1",
3
+ "version": "0.48.3",
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": {