micro-models-agent 0.33.3 → 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 +12 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -30674,6 +30674,8 @@ import { homedir as homedir18 } from "os";
30674
30674
  import { fileURLToPath as fileURLToPath6 } from "url";
30675
30675
 
30676
30676
  // src/modules/updater/checker.ts
30677
+ init_command();
30678
+ import { platform as platform7 } from "os";
30677
30679
  var defaultRunner2 = async (command, args, options) => {
30678
30680
  const { execFile } = await import("child_process");
30679
30681
  return new Promise((resolve23) => {
@@ -30718,7 +30720,8 @@ class Updater {
30718
30720
  }
30719
30721
  async install(latest) {
30720
30722
  try {
30721
- const res = await this.runner("npm", ["install", "-g", `${this.packageName}@${latest}`], {
30723
+ const { command, args } = this.buildInstallCommand(latest);
30724
+ const res = await this.runner(command, args, {
30722
30725
  timeout: 120000,
30723
30726
  windowsHide: true
30724
30727
  });
@@ -30731,6 +30734,14 @@ class Updater {
30731
30734
  `)[0] };
30732
30735
  }
30733
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
+ }
30734
30745
  }
30735
30746
  // src/modules/updater/module.ts
30736
30747
  init_i18n();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "micro-models-agent",
3
- "version": "0.33.3",
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": {