micro-models-agent 0.33.4 → 0.33.5

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 +11 -2
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -30675,6 +30675,7 @@ import { fileURLToPath as fileURLToPath6 } from "url";
30675
30675
 
30676
30676
  // src/modules/updater/checker.ts
30677
30677
  init_command();
30678
+ import { platform as platform7 } from "os";
30678
30679
  var defaultRunner2 = async (command, args, options) => {
30679
30680
  const { execFile } = await import("child_process");
30680
30681
  return new Promise((resolve23) => {
@@ -30719,8 +30720,8 @@ class Updater {
30719
30720
  }
30720
30721
  async install(latest) {
30721
30722
  try {
30722
- const command = resolveSpawnCommand("npm");
30723
- const res = await this.runner(command, ["install", "-g", `${this.packageName}@${latest}`], {
30723
+ const { command, args } = this.buildInstallCommand(latest);
30724
+ const res = await this.runner(command, args, {
30724
30725
  timeout: 120000,
30725
30726
  windowsHide: true
30726
30727
  });
@@ -30733,6 +30734,14 @@ class Updater {
30733
30734
  `)[0] };
30734
30735
  }
30735
30736
  }
30737
+ buildInstallCommand(latest) {
30738
+ const npmArgs = ["install", "-g", `${this.packageName}@${latest}`];
30739
+ const command = resolveSpawnCommand("npm");
30740
+ if (platform7() === "win32" && /\.(cmd|bat)$/i.test(command)) {
30741
+ return { command: "cmd.exe", args: ["/c", command, ...npmArgs] };
30742
+ }
30743
+ return { command, args: npmArgs };
30744
+ }
30736
30745
  }
30737
30746
  // src/modules/updater/module.ts
30738
30747
  init_i18n();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "micro-models-agent",
3
- "version": "0.33.4",
3
+ "version": "0.33.5",
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": {