@vm0/cli 9.84.4 → 9.84.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.84.4",
3
+ "version": "9.84.5",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",
package/zero.js CHANGED
@@ -82,7 +82,7 @@ import {
82
82
  updateZeroUserPreferences,
83
83
  upsertZeroOrgModelProvider,
84
84
  withErrorHandler
85
- } from "./chunk-ANZYCH6W.js";
85
+ } from "./chunk-Z2DCGC6Q.js";
86
86
 
87
87
  // src/zero.ts
88
88
  import { Command as Command57 } from "commander";
@@ -1245,8 +1245,19 @@ import { join } from "path";
1245
1245
  import chalk26 from "chalk";
1246
1246
 
1247
1247
  // src/lib/computer/ngrok.ts
1248
- import ngrok from "@ngrok/ngrok";
1248
+ async function loadNgrok() {
1249
+ try {
1250
+ const mod = await import("@ngrok/ngrok");
1251
+ return mod.default;
1252
+ } catch (cause) {
1253
+ throw new Error(
1254
+ "Failed to load ngrok tunnel module. This may be caused by a system library (GLIBC) incompatibility. See: https://github.com/vm0-ai/vm0/issues/6825",
1255
+ { cause }
1256
+ );
1257
+ }
1258
+ }
1249
1259
  async function startNgrokTunnels(ngrokToken, endpointPrefix, webdavPort, cdpPort) {
1260
+ const ngrok = await loadNgrok();
1250
1261
  await ngrok.forward({
1251
1262
  addr: `localhost:${webdavPort}`,
1252
1263
  authtoken: ngrokToken,
@@ -1259,6 +1270,7 @@ async function startNgrokTunnels(ngrokToken, endpointPrefix, webdavPort, cdpPort
1259
1270
  });
1260
1271
  }
1261
1272
  async function stopNgrokTunnels() {
1273
+ const ngrok = await loadNgrok();
1262
1274
  await ngrok.kill();
1263
1275
  }
1264
1276
 
@@ -3028,7 +3040,7 @@ function registerZeroCommands(prog, commands) {
3028
3040
  var program = new Command57();
3029
3041
  program.name("zero").description(
3030
3042
  "Zero CLI \u2014 interact with the zero platform from inside the sandbox"
3031
- ).version("9.84.4").addHelpText(
3043
+ ).version("9.84.5").addHelpText(
3032
3044
  "after",
3033
3045
  `
3034
3046
  Common scenarios: