@vm0/cli 9.172.0 → 9.173.0

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/index.js CHANGED
@@ -49,7 +49,6 @@ import {
49
49
  listZeroVariables,
50
50
  loadConfig,
51
51
  loadValues,
52
- localAgentCommand,
53
52
  paginate,
54
53
  parseEvent,
55
54
  parseGitHubUrl,
@@ -62,14 +61,13 @@ import {
62
61
  promptText,
63
62
  renderRunCreated,
64
63
  require_dist,
65
- safeSpawn,
66
64
  saveConfig,
67
65
  searchLogs,
68
66
  showNextSteps,
69
67
  source_default,
70
68
  volumeConfigSchema,
71
69
  withErrorHandler
72
- } from "./chunk-ZGYPAEOF.js";
70
+ } from "./chunk-2P2LCHJX.js";
73
71
  import {
74
72
  __toESM,
75
73
  init_esm_shims
@@ -258,6 +256,20 @@ import { join } from "path";
258
256
 
259
257
  // src/lib/utils/update-checker.ts
260
258
  init_esm_shims();
259
+
260
+ // src/lib/utils/spawn.ts
261
+ init_esm_shims();
262
+ import { spawn } from "child_process";
263
+ function safeSpawn(command, args, options) {
264
+ const isWindows = process.platform === "win32";
265
+ const resolvedCommand = isWindows ? `${command}.cmd` : command;
266
+ return spawn(resolvedCommand, args, {
267
+ ...options,
268
+ shell: isWindows
269
+ });
270
+ }
271
+
272
+ // src/lib/utils/update-checker.ts
261
273
  var PACKAGE_NAME = "@vm0/cli";
262
274
  var NPM_REGISTRY_URL = `https://registry.npmjs.org/${encodeURIComponent(PACKAGE_NAME)}/latest`;
263
275
  var TIMEOUT_MS = 5e3;
@@ -388,7 +400,7 @@ function getConfigPath() {
388
400
  return join(os.homedir(), ".vm0", "config.json");
389
401
  }
390
402
  var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
391
- console.log(source_default.bold(`VM0 CLI v${"9.172.0"}`));
403
+ console.log(source_default.bold(`VM0 CLI v${"9.173.0"}`));
392
404
  console.log();
393
405
  const config = await loadConfig();
394
406
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -4281,7 +4293,7 @@ var composeCommand = new Command().name("compose").description("Create or update
4281
4293
  options.autoUpdate = false;
4282
4294
  }
4283
4295
  if (options.autoUpdate !== false) {
4284
- await startSilentUpgrade("9.172.0");
4296
+ await startSilentUpgrade("9.173.0");
4285
4297
  }
4286
4298
  try {
4287
4299
  let result;
@@ -4383,7 +4395,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
4383
4395
  withErrorHandler(
4384
4396
  async (identifier, prompt, options) => {
4385
4397
  if (options.autoUpdate !== false) {
4386
- await startSilentUpgrade("9.172.0");
4398
+ await startSilentUpgrade("9.173.0");
4387
4399
  }
4388
4400
  const { name, version } = parseIdentifier(identifier);
4389
4401
  let composeId;
@@ -6177,13 +6189,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
6177
6189
  if (latestVersion === null) {
6178
6190
  throw new Error("Could not check for updates. Please try again later.");
6179
6191
  }
6180
- if (latestVersion === "9.172.0") {
6181
- console.log(source_default.green(`\u2713 Already up to date (${"9.172.0"})`));
6192
+ if (latestVersion === "9.173.0") {
6193
+ console.log(source_default.green(`\u2713 Already up to date (${"9.173.0"})`));
6182
6194
  return;
6183
6195
  }
6184
6196
  console.log(
6185
6197
  source_default.yellow(
6186
- `Current version: ${"9.172.0"} -> Latest version: ${latestVersion}`
6198
+ `Current version: ${"9.173.0"} -> Latest version: ${latestVersion}`
6187
6199
  )
6188
6200
  );
6189
6201
  console.log();
@@ -6210,7 +6222,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
6210
6222
  const success = await performUpgrade(packageManager);
6211
6223
  if (success) {
6212
6224
  console.log(
6213
- source_default.green(`\u2713 Upgraded from ${"9.172.0"} to ${latestVersion}`)
6225
+ source_default.green(`\u2713 Upgraded from ${"9.173.0"} to ${latestVersion}`)
6214
6226
  );
6215
6227
  return;
6216
6228
  }
@@ -6277,7 +6289,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
6277
6289
 
6278
6290
  // src/index.ts
6279
6291
  var program = new Command();
6280
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.172.0");
6292
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.173.0");
6281
6293
  program.addCommand(authCommand);
6282
6294
  program.addCommand(infoCommand);
6283
6295
  program.addCommand(composeCommand);
@@ -6288,7 +6300,6 @@ program.addCommand(logsCommand);
6288
6300
  program.addCommand(initCommand3);
6289
6301
  program.addCommand(upgradeCommand);
6290
6302
  program.addCommand(whoamiCommand);
6291
- program.addCommand(localAgentCommand);
6292
6303
  if (process.argv[1]?.endsWith("index.js") || process.argv[1]?.endsWith("index.ts") || process.argv[1]?.endsWith("vm0")) {
6293
6304
  configureGlobalProxyFromEnv();
6294
6305
  program.parse();