@vm0/cli 5.1.1 → 5.1.3

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 +13 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -14378,8 +14378,9 @@ var ApiClient = class {
14378
14378
  async getComposeVersion(composeId, version2) {
14379
14379
  const baseUrl = await this.getBaseUrl();
14380
14380
  const headers = await this.getHeaders();
14381
+ const quotedVersion = JSON.stringify(version2);
14381
14382
  const response = await fetch(
14382
- `${baseUrl}/api/agent/composes/versions?composeId=${encodeURIComponent(composeId)}&version=${encodeURIComponent(version2)}`,
14383
+ `${baseUrl}/api/agent/composes/versions?composeId=${encodeURIComponent(composeId)}&version=${encodeURIComponent(quotedVersion)}`,
14383
14384
  {
14384
14385
  method: "GET",
14385
14386
  headers
@@ -17242,7 +17243,8 @@ var pullCommand = new Command5().name("pull").description("Pull cloud files to l
17242
17243
  console.log(chalk9.dim("Getting download URL..."));
17243
17244
  let url2 = `/api/storages/download?name=${encodeURIComponent(config2.name)}&type=volume`;
17244
17245
  if (versionId) {
17245
- url2 += `&version=${encodeURIComponent(versionId)}`;
17246
+ const quotedVersion = JSON.stringify(versionId);
17247
+ url2 += `&version=${encodeURIComponent(quotedVersion)}`;
17246
17248
  }
17247
17249
  const response = await apiClient.get(url2);
17248
17250
  if (!response.ok) {
@@ -17454,7 +17456,8 @@ async function cloneStorage(name, type, destination, options = {}) {
17454
17456
  console.log(chalk12.dim(`Checking remote ${typeLabel}...`));
17455
17457
  let url2 = `/api/storages/download?name=${encodeURIComponent(name)}&type=${type}`;
17456
17458
  if (options.version) {
17457
- url2 += `&version=${encodeURIComponent(options.version)}`;
17459
+ const quotedVersion = JSON.stringify(options.version);
17460
+ url2 += `&version=${encodeURIComponent(quotedVersion)}`;
17458
17461
  }
17459
17462
  const response = await apiClient.get(url2);
17460
17463
  if (!response.ok) {
@@ -17735,7 +17738,8 @@ var pullCommand2 = new Command12().name("pull").description("Pull cloud artifact
17735
17738
  console.log(chalk16.dim("Getting download URL..."));
17736
17739
  let url2 = `/api/storages/download?name=${encodeURIComponent(config2.name)}&type=artifact`;
17737
17740
  if (versionId) {
17738
- url2 += `&version=${encodeURIComponent(versionId)}`;
17741
+ const quotedVersion = JSON.stringify(versionId);
17742
+ url2 += `&version=${encodeURIComponent(quotedVersion)}`;
17739
17743
  }
17740
17744
  const response = await apiClient.get(url2);
17741
17745
  if (!response.ok) {
@@ -18294,7 +18298,7 @@ async function autoPullArtifact(runOutput, artifactDir) {
18294
18298
  }
18295
18299
  var cookCmd = new Command17().name("cook").description("One-click agent preparation and execution from vm0.yaml");
18296
18300
  cookCmd.argument("[prompt]", "Prompt for the agent").option("-y, --yes", "Skip confirmation prompts").action(async (prompt, options) => {
18297
- const shouldExit = await checkAndUpgrade("5.1.1", prompt);
18301
+ const shouldExit = await checkAndUpgrade("5.1.3", prompt);
18298
18302
  if (shouldExit) {
18299
18303
  process.exit(0);
18300
18304
  }
@@ -19369,7 +19373,9 @@ var initCommand3 = new Command25().name("init").description("Initialize a new VM
19369
19373
  );
19370
19374
  console.log(` 2. Set the environment variable (or add to .env file):`);
19371
19375
  console.log(chalk27.dim(` export CLAUDE_CODE_OAUTH_TOKEN=<your-token>`));
19372
- console.log(` 3. Run your agent: ${chalk27.cyan('vm0 cook "your prompt"')}`);
19376
+ console.log(
19377
+ ` 3. Run your agent: ${chalk27.cyan(`vm0 cook "let's start working."`)}`
19378
+ );
19373
19379
  });
19374
19380
 
19375
19381
  // src/commands/setup-github.ts
@@ -19857,7 +19863,7 @@ var setupGithubCommand = new Command26().name("setup-github").description("Initi
19857
19863
 
19858
19864
  // src/index.ts
19859
19865
  var program = new Command27();
19860
- program.name("vm0").description("VM0 CLI - A modern build tool").version("5.1.1");
19866
+ program.name("vm0").description("VM0 CLI - A modern build tool").version("5.1.3");
19861
19867
  program.command("info").description("Display environment information").action(async () => {
19862
19868
  console.log(chalk29.bold("System Information:"));
19863
19869
  console.log(`Node Version: ${process.version}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "5.1.1",
3
+ "version": "5.1.3",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",