@vm0/cli 5.3.0 → 5.3.2
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 +23 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -13292,6 +13292,13 @@ var metricDataSchema = external_exports.object({
|
|
|
13292
13292
|
disk_used: external_exports.number(),
|
|
13293
13293
|
disk_total: external_exports.number()
|
|
13294
13294
|
});
|
|
13295
|
+
var sandboxOperationSchema = external_exports.object({
|
|
13296
|
+
ts: external_exports.string(),
|
|
13297
|
+
action_type: external_exports.string(),
|
|
13298
|
+
duration_ms: external_exports.number(),
|
|
13299
|
+
success: external_exports.boolean(),
|
|
13300
|
+
error: external_exports.string().optional()
|
|
13301
|
+
});
|
|
13295
13302
|
var networkLogSchema = external_exports.object({
|
|
13296
13303
|
timestamp: external_exports.string(),
|
|
13297
13304
|
// Common fields (all modes)
|
|
@@ -13311,7 +13318,7 @@ var networkLogSchema = external_exports.object({
|
|
|
13311
13318
|
var webhookTelemetryContract = c5.router({
|
|
13312
13319
|
/**
|
|
13313
13320
|
* POST /api/webhooks/agent/telemetry
|
|
13314
|
-
* Receive telemetry data (system log, metrics, and
|
|
13321
|
+
* Receive telemetry data (system log, metrics, network logs, and sandbox operations) from sandbox
|
|
13315
13322
|
*/
|
|
13316
13323
|
send: {
|
|
13317
13324
|
method: "POST",
|
|
@@ -13320,7 +13327,8 @@ var webhookTelemetryContract = c5.router({
|
|
|
13320
13327
|
runId: external_exports.string().min(1, "runId is required"),
|
|
13321
13328
|
systemLog: external_exports.string().optional(),
|
|
13322
13329
|
metrics: external_exports.array(metricDataSchema).optional(),
|
|
13323
|
-
networkLogs: external_exports.array(networkLogSchema).optional()
|
|
13330
|
+
networkLogs: external_exports.array(networkLogSchema).optional(),
|
|
13331
|
+
sandboxOperations: external_exports.array(sandboxOperationSchema).optional()
|
|
13324
13332
|
}),
|
|
13325
13333
|
responses: {
|
|
13326
13334
|
200: external_exports.object({
|
|
@@ -18485,7 +18493,7 @@ async function autoPullArtifact(runOutput, artifactDir) {
|
|
|
18485
18493
|
}
|
|
18486
18494
|
var cookCmd = new Command17().name("cook").description("One-click agent preparation and execution from vm0.yaml");
|
|
18487
18495
|
cookCmd.argument("[prompt]", "Prompt for the agent").option("-y, --yes", "Skip confirmation prompts").action(async (prompt, options) => {
|
|
18488
|
-
const shouldExit = await checkAndUpgrade("5.3.
|
|
18496
|
+
const shouldExit = await checkAndUpgrade("5.3.2", prompt);
|
|
18489
18497
|
if (shouldExit) {
|
|
18490
18498
|
process.exit(0);
|
|
18491
18499
|
}
|
|
@@ -20393,7 +20401,10 @@ var initCommand4 = new Command27().name("init").description("Create a schedule.y
|
|
|
20393
20401
|
console.error(chalk29.red("\u2717 --prompt is required"));
|
|
20394
20402
|
process.exit(1);
|
|
20395
20403
|
}
|
|
20396
|
-
promptText_ = await promptText(
|
|
20404
|
+
promptText_ = await promptText(
|
|
20405
|
+
"Prompt to run",
|
|
20406
|
+
"let's start working."
|
|
20407
|
+
);
|
|
20397
20408
|
if (!promptText_) {
|
|
20398
20409
|
console.log(chalk29.dim("Cancelled"));
|
|
20399
20410
|
return;
|
|
@@ -20406,12 +20417,17 @@ var initCommand4 = new Command27().name("init").description("Create a schedule.y
|
|
|
20406
20417
|
if (extracted.vars.length > 0 || extracted.secrets.length > 0) {
|
|
20407
20418
|
let includeVars = true;
|
|
20408
20419
|
if (isInteractive()) {
|
|
20409
|
-
const
|
|
20420
|
+
const varCount = extracted.vars.length;
|
|
20421
|
+
const secretCount = extracted.secrets.length;
|
|
20422
|
+
const parts = [];
|
|
20423
|
+
if (varCount > 0) parts.push(`${varCount} variable(s)`);
|
|
20424
|
+
if (secretCount > 0) parts.push(`${secretCount} secret(s)`);
|
|
20425
|
+
const itemList = [
|
|
20410
20426
|
...extracted.vars.map((v) => `vars.${v}`),
|
|
20411
20427
|
...extracted.secrets.map((s) => `secrets.${s}`)
|
|
20412
20428
|
];
|
|
20413
20429
|
includeVars = await promptConfirm(
|
|
20414
|
-
`Include ${
|
|
20430
|
+
`Include ${parts.join(" and ")} from vm0.yaml? (${itemList.join(", ")})`,
|
|
20415
20431
|
true
|
|
20416
20432
|
) ?? true;
|
|
20417
20433
|
}
|
|
@@ -20953,7 +20969,7 @@ var scheduleCommand = new Command34().name("schedule").description("Manage agent
|
|
|
20953
20969
|
|
|
20954
20970
|
// src/index.ts
|
|
20955
20971
|
var program = new Command35();
|
|
20956
|
-
program.name("vm0").description("VM0 CLI - A modern build tool").version("5.3.
|
|
20972
|
+
program.name("vm0").description("VM0 CLI - A modern build tool").version("5.3.2");
|
|
20957
20973
|
program.command("info").description("Display environment information").action(async () => {
|
|
20958
20974
|
console.log(chalk36.bold("System Information:"));
|
|
20959
20975
|
console.log(`Node Version: ${process.version}`);
|