@vm0/cli 1.10.0 → 1.11.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 +33 -5
- 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
|
-
|
|
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,29 @@ var EventRenderer = class {
|
|
|
12964
12971
|
console.log(
|
|
12965
12972
|
` Session: ${chalk3.gray(String(event.data.agentSessionId || ""))}`
|
|
12966
12973
|
);
|
|
12967
|
-
|
|
12968
|
-
|
|
12974
|
+
console.log(
|
|
12975
|
+
` Conversation: ${chalk3.gray(String(event.data.conversationId || ""))}`
|
|
12976
|
+
);
|
|
12977
|
+
this.renderArtifactAndVolumes(event.data);
|
|
12978
|
+
}
|
|
12979
|
+
/**
|
|
12980
|
+
* Render artifact and volumes info
|
|
12981
|
+
* Used by both vm0_start and vm0_result events
|
|
12982
|
+
*/
|
|
12983
|
+
static renderArtifactAndVolumes(data) {
|
|
12984
|
+
const artifact = data.artifact;
|
|
12985
|
+
if (artifact && Object.keys(artifact).length > 0) {
|
|
12986
|
+
console.log(` Artifact:`);
|
|
12987
|
+
for (const [name, version2] of Object.entries(artifact)) {
|
|
12988
|
+
console.log(` ${name}: ${chalk3.gray(version2)}`);
|
|
12989
|
+
}
|
|
12990
|
+
}
|
|
12991
|
+
const volumes = data.volumes;
|
|
12992
|
+
if (volumes && Object.keys(volumes).length > 0) {
|
|
12993
|
+
console.log(` Volumes:`);
|
|
12994
|
+
for (const [name, version2] of Object.entries(volumes)) {
|
|
12995
|
+
console.log(` ${name}: ${chalk3.gray(version2)}`);
|
|
12996
|
+
}
|
|
12969
12997
|
}
|
|
12970
12998
|
}
|
|
12971
12999
|
static renderVm0Error(event) {
|
|
@@ -13934,7 +13962,7 @@ var artifactCommand = new Command10().name("artifact").description("Manage cloud
|
|
|
13934
13962
|
|
|
13935
13963
|
// src/index.ts
|
|
13936
13964
|
var program = new Command11();
|
|
13937
|
-
program.name("vm0").description("VM0 CLI - A modern build tool").version("1.
|
|
13965
|
+
program.name("vm0").description("VM0 CLI - A modern build tool").version("1.11.0");
|
|
13938
13966
|
program.command("hello").description("Say hello from the App").action(() => {
|
|
13939
13967
|
console.log(chalk11.blue("Welcome to the VM0 CLI!"));
|
|
13940
13968
|
console.log(chalk11.green(`Core says: ${FOO}`));
|