@vm0/cli 1.10.0 → 1.12.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.
Files changed (2) hide show
  1. package/index.js +56 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -12818,7 +12818,11 @@ var ClaudeEventParser = class {
12818
12818
  agentConfigId: event.agentConfigId,
12819
12819
  agentName: event.agentName,
12820
12820
  prompt: event.prompt,
12821
- templateVars: event.templateVars
12821
+ templateVars: event.templateVars,
12822
+ resumedFromCheckpointId: event.resumedFromCheckpointId,
12823
+ continuedFromSessionId: event.continuedFromSessionId,
12824
+ artifact: event.artifact,
12825
+ volumes: event.volumes
12822
12826
  }
12823
12827
  };
12824
12828
  }
@@ -12830,7 +12834,9 @@ var ClaudeEventParser = class {
12830
12834
  runId: event.runId,
12831
12835
  checkpointId: event.checkpointId,
12832
12836
  agentSessionId: event.agentSessionId,
12833
- hasArtifact: event.hasArtifact
12837
+ conversationId: event.conversationId,
12838
+ artifact: event.artifact,
12839
+ volumes: event.volumes
12834
12840
  }
12835
12841
  };
12836
12842
  }
@@ -12955,6 +12961,7 @@ var EventRenderer = class {
12955
12961
  if (event.data.agentName) {
12956
12962
  console.log(` Agent: ${chalk3.gray(String(event.data.agentName))}`);
12957
12963
  }
12964
+ this.renderArtifactAndVolumes(event.data);
12958
12965
  }
12959
12966
  static renderVm0Result(event) {
12960
12967
  console.log(chalk3.green("[vm0_result]") + " \u2713 Run completed successfully");
@@ -12964,8 +12971,38 @@ var EventRenderer = class {
12964
12971
  console.log(
12965
12972
  ` Session: ${chalk3.gray(String(event.data.agentSessionId || ""))}`
12966
12973
  );
12967
- if (event.data.hasArtifact) {
12968
- console.log(` Artifact: ${chalk3.gray("saved")}`);
12974
+ console.log(
12975
+ ` Conversation: ${chalk3.gray(String(event.data.conversationId || ""))}`
12976
+ );
12977
+ this.renderArtifactAndVolumes(event.data);
12978
+ }
12979
+ /**
12980
+ * Format version ID for display (show short 8-character prefix)
12981
+ */
12982
+ static formatVersion(version2) {
12983
+ if (version2.length === 64 && /^[a-f0-9]+$/i.test(version2)) {
12984
+ return version2.slice(0, 8);
12985
+ }
12986
+ return version2;
12987
+ }
12988
+ /**
12989
+ * Render artifact and volumes info
12990
+ * Used by both vm0_start and vm0_result events
12991
+ */
12992
+ static renderArtifactAndVolumes(data) {
12993
+ const artifact = data.artifact;
12994
+ if (artifact && Object.keys(artifact).length > 0) {
12995
+ console.log(` Artifact:`);
12996
+ for (const [name, version2] of Object.entries(artifact)) {
12997
+ console.log(` ${name}: ${chalk3.gray(this.formatVersion(version2))}`);
12998
+ }
12999
+ }
13000
+ const volumes = data.volumes;
13001
+ if (volumes && Object.keys(volumes).length > 0) {
13002
+ console.log(` Volumes:`);
13003
+ for (const [name, version2] of Object.entries(volumes)) {
13004
+ console.log(` ${name}: ${chalk3.gray(this.formatVersion(version2))}`);
13005
+ }
12969
13006
  }
12970
13007
  }
12971
13008
  static renderVm0Error(event) {
@@ -13488,8 +13525,13 @@ var pushCommand = new Command4().name("push").description("Push local files to c
13488
13525
  throw new Error(error43.error || "Upload failed");
13489
13526
  }
13490
13527
  const result = await response.json();
13491
- console.log(chalk6.green("\u2713 Upload complete"));
13492
- console.log(chalk6.gray(` Version: ${result.versionId}`));
13528
+ const shortVersion = result.versionId.slice(0, 8);
13529
+ if (result.deduplicated) {
13530
+ console.log(chalk6.green("\u2713 Content unchanged (deduplicated)"));
13531
+ } else {
13532
+ console.log(chalk6.green("\u2713 Upload complete"));
13533
+ }
13534
+ console.log(chalk6.gray(` Version: ${shortVersion}`));
13493
13535
  console.log(chalk6.gray(` Files: ${result.fileCount.toLocaleString()}`));
13494
13536
  console.log(chalk6.gray(` Size: ${formatBytes(result.size)}`));
13495
13537
  } catch (error43) {
@@ -13818,8 +13860,13 @@ var pushCommand2 = new Command8().name("push").description("Push local files to
13818
13860
  throw new Error(error43.error || "Upload failed");
13819
13861
  }
13820
13862
  const result = await response.json();
13821
- console.log(chalk9.green("\u2713 Upload complete"));
13822
- console.log(chalk9.gray(` Version: ${result.versionId}`));
13863
+ const shortVersion = result.versionId.slice(0, 8);
13864
+ if (result.deduplicated) {
13865
+ console.log(chalk9.green("\u2713 Content unchanged (deduplicated)"));
13866
+ } else {
13867
+ console.log(chalk9.green("\u2713 Upload complete"));
13868
+ }
13869
+ console.log(chalk9.gray(` Version: ${shortVersion}`));
13823
13870
  console.log(chalk9.gray(` Files: ${result.fileCount.toLocaleString()}`));
13824
13871
  console.log(chalk9.gray(` Size: ${formatBytes3(result.size)}`));
13825
13872
  } catch (error43) {
@@ -13934,7 +13981,7 @@ var artifactCommand = new Command10().name("artifact").description("Manage cloud
13934
13981
 
13935
13982
  // src/index.ts
13936
13983
  var program = new Command11();
13937
- program.name("vm0").description("VM0 CLI - A modern build tool").version("1.10.0");
13984
+ program.name("vm0").description("VM0 CLI - A modern build tool").version("1.12.0");
13938
13985
  program.command("hello").description("Say hello from the App").action(() => {
13939
13986
  console.log(chalk11.blue("Welcome to the VM0 CLI!"));
13940
13987
  console.log(chalk11.green(`Core says: ${FOO}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "1.10.0",
3
+ "version": "1.12.0",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",