micro-models-agent 0.33.3 → 0.33.4
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 +3 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -30674,6 +30674,7 @@ 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();
|
|
30677
30678
|
var defaultRunner2 = async (command, args, options) => {
|
|
30678
30679
|
const { execFile } = await import("child_process");
|
|
30679
30680
|
return new Promise((resolve23) => {
|
|
@@ -30718,7 +30719,8 @@ class Updater {
|
|
|
30718
30719
|
}
|
|
30719
30720
|
async install(latest) {
|
|
30720
30721
|
try {
|
|
30721
|
-
const
|
|
30722
|
+
const command = resolveSpawnCommand("npm");
|
|
30723
|
+
const res = await this.runner(command, ["install", "-g", `${this.packageName}@${latest}`], {
|
|
30722
30724
|
timeout: 120000,
|
|
30723
30725
|
windowsHide: true
|
|
30724
30726
|
});
|