@vm0/cli 4.5.0 → 4.5.1

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/index.js +23 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1201,6 +1201,13 @@ var runCmd = new Command2().name("run").description("Execute an agent").argument
1201
1201
  volumeVersions: Object.keys(options.volumeVersion).length > 0 ? options.volumeVersion : void 0,
1202
1202
  conversationId: options.conversation
1203
1203
  });
1204
+ if (response.status === "failed") {
1205
+ console.error(chalk4.red("\u2717 Run preparation failed"));
1206
+ if (response.error) {
1207
+ console.error(chalk4.gray(` ${response.error}`));
1208
+ }
1209
+ process.exit(1);
1210
+ }
1204
1211
  EventRenderer.renderRunStarted({
1205
1212
  runId: response.runId,
1206
1213
  sandboxId: response.sandboxId
@@ -1270,6 +1277,13 @@ runCmd.command("resume").description("Resume an agent run from a checkpoint (use
1270
1277
  prompt,
1271
1278
  volumeVersions: Object.keys(allOpts.volumeVersion).length > 0 ? allOpts.volumeVersion : void 0
1272
1279
  });
1280
+ if (response.status === "failed") {
1281
+ console.error(chalk4.red("\u2717 Run preparation failed"));
1282
+ if (response.error) {
1283
+ console.error(chalk4.gray(` ${response.error}`));
1284
+ }
1285
+ process.exit(1);
1286
+ }
1273
1287
  EventRenderer.renderRunStarted({
1274
1288
  runId: response.runId,
1275
1289
  sandboxId: response.sandboxId
@@ -1337,6 +1351,13 @@ runCmd.command("continue").description(
1337
1351
  prompt,
1338
1352
  volumeVersions: Object.keys(allOpts.volumeVersion).length > 0 ? allOpts.volumeVersion : void 0
1339
1353
  });
1354
+ if (response.status === "failed") {
1355
+ console.error(chalk4.red("\u2717 Run preparation failed"));
1356
+ if (response.error) {
1357
+ console.error(chalk4.gray(` ${response.error}`));
1358
+ }
1359
+ process.exit(1);
1360
+ }
1340
1361
  EventRenderer.renderRunStarted({
1341
1362
  runId: response.runId,
1342
1363
  sandboxId: response.sandboxId
@@ -15694,6 +15715,7 @@ var listCommand2 = new Command17().name("list").alias("ls").description("List yo
15694
15715
  // src/commands/image/delete.ts
15695
15716
  import { Command as Command18 } from "commander";
15696
15717
  import chalk17 from "chalk";
15718
+ import * as readline from "readline";
15697
15719
  var deleteCommand2 = new Command18().name("delete").alias("rm").description("Delete a custom image").argument("<name>", "Name of the image to delete").option("-f, --force", "Skip confirmation prompt").action(async (name, options) => {
15698
15720
  try {
15699
15721
  const listResponse = await apiClient.get("/api/images");
@@ -15710,7 +15732,6 @@ var deleteCommand2 = new Command18().name("delete").alias("rm").description("Del
15710
15732
  process.exit(1);
15711
15733
  }
15712
15734
  if (!options.force) {
15713
- const readline = await import("readline");
15714
15735
  const rl = readline.createInterface({
15715
15736
  input: process.stdin,
15716
15737
  output: process.stdout
@@ -15945,7 +15966,7 @@ function handleError(error43, runId) {
15945
15966
 
15946
15967
  // src/index.ts
15947
15968
  var program = new Command21();
15948
- program.name("vm0").description("VM0 CLI - A modern build tool").version("4.5.0");
15969
+ program.name("vm0").description("VM0 CLI - A modern build tool").version("4.5.1");
15949
15970
  program.command("info").description("Display environment information").action(async () => {
15950
15971
  console.log(chalk19.cyan("System Information:"));
15951
15972
  console.log(`Node Version: ${process.version}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",