@vm0/cli 9.84.2 → 9.84.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.
|
@@ -47,7 +47,7 @@ if (DSN) {
|
|
|
47
47
|
Sentry.init({
|
|
48
48
|
dsn: DSN,
|
|
49
49
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
50
|
-
release: "9.84.
|
|
50
|
+
release: "9.84.3",
|
|
51
51
|
sendDefaultPii: false,
|
|
52
52
|
tracesSampleRate: 0,
|
|
53
53
|
shutdownTimeout: 500,
|
|
@@ -66,7 +66,7 @@ if (DSN) {
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
Sentry.setContext("cli", {
|
|
69
|
-
version: "9.84.
|
|
69
|
+
version: "9.84.3",
|
|
70
70
|
command: process.argv.slice(2).join(" ")
|
|
71
71
|
});
|
|
72
72
|
Sentry.setContext("runtime", {
|
|
@@ -18191,4 +18191,4 @@ export {
|
|
|
18191
18191
|
promptSelect,
|
|
18192
18192
|
promptPassword
|
|
18193
18193
|
};
|
|
18194
|
-
//# sourceMappingURL=chunk-
|
|
18194
|
+
//# sourceMappingURL=chunk-2OLTSQSV.js.map
|
package/index.js
CHANGED
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
searchLogs,
|
|
52
52
|
volumeConfigSchema,
|
|
53
53
|
withErrorHandler
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-2OLTSQSV.js";
|
|
55
55
|
|
|
56
56
|
// src/index.ts
|
|
57
57
|
import { Command as Command44 } from "commander";
|
|
@@ -436,7 +436,7 @@ function getConfigPath() {
|
|
|
436
436
|
return join(homedir(), ".vm0", "config.json");
|
|
437
437
|
}
|
|
438
438
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
439
|
-
console.log(chalk3.bold(`VM0 CLI v${"9.84.
|
|
439
|
+
console.log(chalk3.bold(`VM0 CLI v${"9.84.3"}`));
|
|
440
440
|
console.log();
|
|
441
441
|
const config = await loadConfig();
|
|
442
442
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1662,7 +1662,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
1662
1662
|
options.autoUpdate = false;
|
|
1663
1663
|
}
|
|
1664
1664
|
if (options.autoUpdate !== false) {
|
|
1665
|
-
await startSilentUpgrade("9.84.
|
|
1665
|
+
await startSilentUpgrade("9.84.3");
|
|
1666
1666
|
}
|
|
1667
1667
|
try {
|
|
1668
1668
|
let result;
|
|
@@ -2497,7 +2497,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
2497
2497
|
withErrorHandler(
|
|
2498
2498
|
async (identifier, prompt, options) => {
|
|
2499
2499
|
if (options.autoUpdate !== false) {
|
|
2500
|
-
await startSilentUpgrade("9.84.
|
|
2500
|
+
await startSilentUpgrade("9.84.3");
|
|
2501
2501
|
}
|
|
2502
2502
|
const { org, name, version } = parseIdentifier(identifier);
|
|
2503
2503
|
let composeId;
|
|
@@ -4253,7 +4253,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
|
|
|
4253
4253
|
withErrorHandler(
|
|
4254
4254
|
async (prompt, options) => {
|
|
4255
4255
|
if (options.autoUpdate !== false) {
|
|
4256
|
-
const shouldExit = await checkAndUpgrade("9.84.
|
|
4256
|
+
const shouldExit = await checkAndUpgrade("9.84.3", prompt);
|
|
4257
4257
|
if (shouldExit) {
|
|
4258
4258
|
process.exit(0);
|
|
4259
4259
|
}
|
|
@@ -4993,13 +4993,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
4993
4993
|
if (latestVersion === null) {
|
|
4994
4994
|
throw new Error("Could not check for updates. Please try again later.");
|
|
4995
4995
|
}
|
|
4996
|
-
if (latestVersion === "9.84.
|
|
4997
|
-
console.log(chalk36.green(`\u2713 Already up to date (${"9.84.
|
|
4996
|
+
if (latestVersion === "9.84.3") {
|
|
4997
|
+
console.log(chalk36.green(`\u2713 Already up to date (${"9.84.3"})`));
|
|
4998
4998
|
return;
|
|
4999
4999
|
}
|
|
5000
5000
|
console.log(
|
|
5001
5001
|
chalk36.yellow(
|
|
5002
|
-
`Current version: ${"9.84.
|
|
5002
|
+
`Current version: ${"9.84.3"} -> Latest version: ${latestVersion}`
|
|
5003
5003
|
)
|
|
5004
5004
|
);
|
|
5005
5005
|
console.log();
|
|
@@ -5026,7 +5026,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
5026
5026
|
const success = await performUpgrade(packageManager);
|
|
5027
5027
|
if (success) {
|
|
5028
5028
|
console.log(
|
|
5029
|
-
chalk36.green(`\u2713 Upgraded from ${"9.84.
|
|
5029
|
+
chalk36.green(`\u2713 Upgraded from ${"9.84.3"} to ${latestVersion}`)
|
|
5030
5030
|
);
|
|
5031
5031
|
return;
|
|
5032
5032
|
}
|
|
@@ -5094,7 +5094,7 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
|
|
|
5094
5094
|
|
|
5095
5095
|
// src/index.ts
|
|
5096
5096
|
var program = new Command44();
|
|
5097
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.84.
|
|
5097
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.84.3");
|
|
5098
5098
|
program.addCommand(authCommand);
|
|
5099
5099
|
program.addCommand(infoCommand);
|
|
5100
5100
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
updateZeroUserPreferences,
|
|
83
83
|
upsertZeroOrgModelProvider,
|
|
84
84
|
withErrorHandler
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-2OLTSQSV.js";
|
|
86
86
|
|
|
87
87
|
// src/zero.ts
|
|
88
88
|
import { Command as Command57 } from "commander";
|
|
@@ -2376,7 +2376,7 @@ async function handleScheduleEnabling(params) {
|
|
|
2376
2376
|
showEnableHint(agentName);
|
|
2377
2377
|
}
|
|
2378
2378
|
}
|
|
2379
|
-
var setupCommand2 = new Command38().name("setup").description("Create or edit a schedule for a zero agent").argument("<agent-
|
|
2379
|
+
var setupCommand2 = new Command38().name("setup").description("Create or edit a schedule for a zero agent").argument("<agent-id>", "Agent ID").option("-n, --name <schedule-name>", 'Schedule name (default: "default")').option("-f, --frequency <type>", "Frequency: daily|weekly|monthly|once|loop").option("-t, --time <HH:MM>", "Time to run (24-hour format)").option("-d, --day <day>", "Day of week (mon-sun) or day of month (1-31)").option("-i, --interval <seconds>", "Interval in seconds for loop mode").option("-z, --timezone <tz>", "IANA timezone").option("-p, --prompt <text>", "Prompt to run").option("--artifact-name <name>", "Artifact name", "artifact").option("-e, --enable", "Enable schedule immediately after creation").option("--notify-email", "Enable email notifications (default: true)").option("--no-notify-email", "Disable email notifications").option("--notify-slack", "Enable Slack notifications (default: true)").option("--no-notify-slack", "Disable Slack notifications").action(
|
|
2380
2380
|
withErrorHandler(async (agentName, options) => {
|
|
2381
2381
|
const compose = await getComposeByName(agentName);
|
|
2382
2382
|
if (!compose) {
|
|
@@ -2465,7 +2465,7 @@ var listCommand7 = new Command39().name("list").alias("ls").description("List al
|
|
|
2465
2465
|
if (result.schedules.length === 0) {
|
|
2466
2466
|
console.log(chalk33.dim("No schedules found"));
|
|
2467
2467
|
console.log(
|
|
2468
|
-
chalk33.dim(" Create one with: zero schedule setup <agent-
|
|
2468
|
+
chalk33.dim(" Create one with: zero schedule setup <agent-id>")
|
|
2469
2469
|
);
|
|
2470
2470
|
return;
|
|
2471
2471
|
}
|
|
@@ -2567,7 +2567,7 @@ function printTimeSchedule(schedule) {
|
|
|
2567
2567
|
console.log(`${"Failures:".padEnd(16)}${failureText}`);
|
|
2568
2568
|
}
|
|
2569
2569
|
}
|
|
2570
|
-
var statusCommand3 = new Command40().name("status").description("Show detailed status of a zero schedule").argument("<agent-
|
|
2570
|
+
var statusCommand3 = new Command40().name("status").description("Show detailed status of a zero schedule").argument("<agent-id>", "Agent ID").option(
|
|
2571
2571
|
"-n, --name <schedule-name>",
|
|
2572
2572
|
"Schedule name (required when agent has multiple schedules)"
|
|
2573
2573
|
).action(
|
|
@@ -2588,7 +2588,7 @@ var statusCommand3 = new Command40().name("status").description("Show detailed s
|
|
|
2588
2588
|
// src/commands/zero/schedule/delete.ts
|
|
2589
2589
|
import { Command as Command41 } from "commander";
|
|
2590
2590
|
import chalk35 from "chalk";
|
|
2591
|
-
var deleteCommand3 = new Command41().name("delete").alias("rm").description("Delete a zero schedule").argument("<agent-
|
|
2591
|
+
var deleteCommand3 = new Command41().name("delete").alias("rm").description("Delete a zero schedule").argument("<agent-id>", "Agent ID").option(
|
|
2592
2592
|
"-n, --name <schedule-name>",
|
|
2593
2593
|
"Schedule name (required when agent has multiple schedules)"
|
|
2594
2594
|
).option("-y, --yes", "Skip confirmation prompt").action(
|
|
@@ -2623,7 +2623,7 @@ var deleteCommand3 = new Command41().name("delete").alias("rm").description("Del
|
|
|
2623
2623
|
// src/commands/zero/schedule/enable.ts
|
|
2624
2624
|
import { Command as Command42 } from "commander";
|
|
2625
2625
|
import chalk36 from "chalk";
|
|
2626
|
-
var enableCommand = new Command42().name("enable").description("Enable a zero schedule").argument("<agent-
|
|
2626
|
+
var enableCommand = new Command42().name("enable").description("Enable a zero schedule").argument("<agent-id>", "Agent ID").option(
|
|
2627
2627
|
"-n, --name <schedule-name>",
|
|
2628
2628
|
"Schedule name (required when agent has multiple schedules)"
|
|
2629
2629
|
).action(
|
|
@@ -2643,7 +2643,7 @@ var enableCommand = new Command42().name("enable").description("Enable a zero sc
|
|
|
2643
2643
|
// src/commands/zero/schedule/disable.ts
|
|
2644
2644
|
import { Command as Command43 } from "commander";
|
|
2645
2645
|
import chalk37 from "chalk";
|
|
2646
|
-
var disableCommand = new Command43().name("disable").description("Disable a zero schedule").argument("<agent-
|
|
2646
|
+
var disableCommand = new Command43().name("disable").description("Disable a zero schedule").argument("<agent-id>", "Agent ID").option(
|
|
2647
2647
|
"-n, --name <schedule-name>",
|
|
2648
2648
|
"Schedule name (required when agent has multiple schedules)"
|
|
2649
2649
|
).action(
|
|
@@ -3028,7 +3028,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
3028
3028
|
var program = new Command57();
|
|
3029
3029
|
program.name("zero").description(
|
|
3030
3030
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
3031
|
-
).version("9.84.
|
|
3031
|
+
).version("9.84.3").addHelpText(
|
|
3032
3032
|
"after",
|
|
3033
3033
|
`
|
|
3034
3034
|
Common scenarios:
|