@vm0/cli 4.13.0 → 4.13.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.
- package/index.js +16 -11
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1035,18 +1035,23 @@ async function directUpload(storageName, storageType, cwd, options) {
|
|
|
1035
1035
|
empty: fileEntries.length === 0
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1038
|
+
if (files.length > 0) {
|
|
1039
|
+
onProgress?.("Compressing files...");
|
|
1040
|
+
const archiveBuffer = await createArchive(cwd, files);
|
|
1041
|
+
onProgress?.("Uploading archive to S3...");
|
|
1042
|
+
if (!prepareResult.uploads) {
|
|
1043
|
+
throw new Error("No upload URLs received from prepare endpoint");
|
|
1044
|
+
}
|
|
1045
|
+
await uploadToPresignedUrl(
|
|
1046
|
+
prepareResult.uploads.archive.presignedUrl,
|
|
1047
|
+
archiveBuffer,
|
|
1048
|
+
"application/gzip"
|
|
1049
|
+
);
|
|
1050
|
+
}
|
|
1051
|
+
onProgress?.("Uploading manifest...");
|
|
1041
1052
|
if (!prepareResult.uploads) {
|
|
1042
1053
|
throw new Error("No upload URLs received from prepare endpoint");
|
|
1043
1054
|
}
|
|
1044
|
-
await uploadToPresignedUrl(
|
|
1045
|
-
prepareResult.uploads.archive.presignedUrl,
|
|
1046
|
-
archiveBuffer,
|
|
1047
|
-
"application/gzip"
|
|
1048
|
-
);
|
|
1049
|
-
onProgress?.("Uploading manifest...");
|
|
1050
1055
|
const manifestBuffer = createManifest(fileEntries);
|
|
1051
1056
|
await uploadToPresignedUrl(
|
|
1052
1057
|
prepareResult.uploads.manifest.presignedUrl,
|
|
@@ -15991,7 +15996,7 @@ async function generateEnvPlaceholders(missingVars, envFilePath) {
|
|
|
15991
15996
|
}
|
|
15992
15997
|
}
|
|
15993
15998
|
var cookCommand = new Command11().name("cook").description("One-click agent preparation and execution from vm0.yaml").argument("[prompt]", "Prompt for the agent").action(async (prompt) => {
|
|
15994
|
-
const shouldExit = await checkAndUpgrade("4.13.
|
|
15999
|
+
const shouldExit = await checkAndUpgrade("4.13.1", prompt);
|
|
15995
16000
|
if (shouldExit) {
|
|
15996
16001
|
process.exit(0);
|
|
15997
16002
|
}
|
|
@@ -16628,7 +16633,7 @@ function handleError(error43, runId) {
|
|
|
16628
16633
|
|
|
16629
16634
|
// src/index.ts
|
|
16630
16635
|
var program = new Command17();
|
|
16631
|
-
program.name("vm0").description("VM0 CLI - A modern build tool").version("4.13.
|
|
16636
|
+
program.name("vm0").description("VM0 CLI - A modern build tool").version("4.13.1");
|
|
16632
16637
|
program.command("info").description("Display environment information").action(async () => {
|
|
16633
16638
|
console.log(chalk18.cyan("System Information:"));
|
|
16634
16639
|
console.log(`Node Version: ${process.version}`);
|