@vm0/cli 9.97.1 → 9.98.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 CHANGED
@@ -61,7 +61,7 @@ import {
61
61
  showNextSteps,
62
62
  volumeConfigSchema,
63
63
  withErrorHandler
64
- } from "./chunk-LSHAPITU.js";
64
+ } from "./chunk-HNN3VAZK.js";
65
65
 
66
66
  // src/index.ts
67
67
  import { Command as Command44 } from "commander";
@@ -454,7 +454,7 @@ function getConfigPath() {
454
454
  return join(homedir(), ".vm0", "config.json");
455
455
  }
456
456
  var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
457
- console.log(chalk3.bold(`VM0 CLI v${"9.97.1"}`));
457
+ console.log(chalk3.bold(`VM0 CLI v${"9.98.0"}`));
458
458
  console.log();
459
459
  const config = await loadConfig();
460
460
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -1581,7 +1581,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
1581
1581
  options.autoUpdate = false;
1582
1582
  }
1583
1583
  if (options.autoUpdate !== false) {
1584
- await startSilentUpgrade("9.97.1");
1584
+ await startSilentUpgrade("9.98.0");
1585
1585
  }
1586
1586
  try {
1587
1587
  let result;
@@ -1655,7 +1655,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
1655
1655
  withErrorHandler(
1656
1656
  async (identifier, prompt, options) => {
1657
1657
  if (options.autoUpdate !== false) {
1658
- await startSilentUpgrade("9.97.1");
1658
+ await startSilentUpgrade("9.98.0");
1659
1659
  }
1660
1660
  const { name, version } = parseIdentifier(identifier);
1661
1661
  let composeId;
@@ -3413,7 +3413,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
3413
3413
  withErrorHandler(
3414
3414
  async (prompt, options) => {
3415
3415
  if (options.autoUpdate !== false) {
3416
- const shouldExit = await checkAndUpgrade("9.97.1", prompt);
3416
+ const shouldExit = await checkAndUpgrade("9.98.0", prompt);
3417
3417
  if (shouldExit) {
3418
3418
  process.exit(0);
3419
3419
  }
@@ -4156,13 +4156,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
4156
4156
  if (latestVersion === null) {
4157
4157
  throw new Error("Could not check for updates. Please try again later.");
4158
4158
  }
4159
- if (latestVersion === "9.97.1") {
4160
- console.log(chalk33.green(`\u2713 Already up to date (${"9.97.1"})`));
4159
+ if (latestVersion === "9.98.0") {
4160
+ console.log(chalk33.green(`\u2713 Already up to date (${"9.98.0"})`));
4161
4161
  return;
4162
4162
  }
4163
4163
  console.log(
4164
4164
  chalk33.yellow(
4165
- `Current version: ${"9.97.1"} -> Latest version: ${latestVersion}`
4165
+ `Current version: ${"9.98.0"} -> Latest version: ${latestVersion}`
4166
4166
  )
4167
4167
  );
4168
4168
  console.log();
@@ -4189,7 +4189,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
4189
4189
  const success = await performUpgrade(packageManager);
4190
4190
  if (success) {
4191
4191
  console.log(
4192
- chalk33.green(`\u2713 Upgraded from ${"9.97.1"} to ${latestVersion}`)
4192
+ chalk33.green(`\u2713 Upgraded from ${"9.98.0"} to ${latestVersion}`)
4193
4193
  );
4194
4194
  return;
4195
4195
  }
@@ -4257,7 +4257,7 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
4257
4257
 
4258
4258
  // src/index.ts
4259
4259
  var program = new Command44();
4260
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.97.1");
4260
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.98.0");
4261
4261
  program.addCommand(authCommand);
4262
4262
  program.addCommand(infoCommand);
4263
4263
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.97.1",
3
+ "version": "9.98.0",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",
package/zero.js CHANGED
@@ -108,7 +108,7 @@ import {
108
108
  updateZeroUserPreferences,
109
109
  upsertZeroOrgModelProvider,
110
110
  withErrorHandler
111
- } from "./chunk-LSHAPITU.js";
111
+ } from "./chunk-HNN3VAZK.js";
112
112
 
113
113
  // src/zero.ts
114
114
  import { Command as Command73 } from "commander";
@@ -4147,20 +4147,27 @@ function formatTime(iso) {
4147
4147
  var listCommand11 = new Command70().name("list").alias("ls").description("List agent run logs").option("--agent <name>", "Filter by agent name").option(
4148
4148
  "--status <status>",
4149
4149
  "Filter by status (queued|pending|running|completed|failed|timeout|cancelled)"
4150
+ ).option(
4151
+ "--since <time>",
4152
+ "Filter runs created since (e.g., 5m, 2h, 1d, 2024-01-15T10:30:00Z)"
4150
4153
  ).option("--limit <n>", "Maximum number of results (default: 20)").addHelpText(
4151
4154
  "after",
4152
4155
  `
4153
4156
  Examples:
4154
4157
  zero logs list
4155
4158
  zero logs list --agent my-agent
4156
- zero logs list --status completed --limit 10`
4159
+ zero logs list --status completed --limit 10
4160
+ zero logs list --since 1h
4161
+ zero logs list --since 1d --status completed`
4157
4162
  ).action(
4158
4163
  withErrorHandler(
4159
4164
  async (options) => {
4160
4165
  const limit = options.limit ? parseInt(options.limit, 10) : void 0;
4166
+ const since = options.since ? parseTime(options.since) : void 0;
4161
4167
  const result = await listZeroLogs({
4162
4168
  agent: options.agent,
4163
4169
  status: options.status,
4170
+ since,
4164
4171
  limit
4165
4172
  });
4166
4173
  if (result.data.length === 0) {
@@ -4302,6 +4309,13 @@ Examples:
4302
4309
  ).action(
4303
4310
  withErrorHandler(async (keyword, options) => {
4304
4311
  const { before, after } = parseContextOptions(options);
4312
+ if (options.run && !isUUID(options.run)) {
4313
+ console.error(
4314
+ chalk55.red(`\u2717 Invalid run ID "${options.run}" \u2014 expected a UUID`)
4315
+ );
4316
+ console.error(chalk55.dim(" Run: zero logs list to find run IDs"));
4317
+ process.exit(1);
4318
+ }
4305
4319
  const since = options.since ? parseTime(options.since) : Date.now() - SEVEN_DAYS_MS;
4306
4320
  const limit = parseLimit(options.limit);
4307
4321
  const response = await searchZeroLogs({
@@ -4400,6 +4414,13 @@ Examples:
4400
4414
  zeroLogsCommand.help();
4401
4415
  return;
4402
4416
  }
4417
+ if (!isUUID(runId)) {
4418
+ console.error(
4419
+ chalk56.red(`\u2717 Invalid run ID "${runId}" \u2014 expected a UUID`)
4420
+ );
4421
+ console.error(chalk56.dim(" Run: zero logs list to find run IDs"));
4422
+ process.exit(1);
4423
+ }
4403
4424
  const countModes = [
4404
4425
  options.tail !== void 0,
4405
4426
  options.head !== void 0,
@@ -4478,7 +4499,7 @@ function registerZeroCommands(prog, commands) {
4478
4499
  var program = new Command73();
4479
4500
  program.name("zero").description(
4480
4501
  "Zero CLI \u2014 interact with the zero platform from inside the sandbox"
4481
- ).version("9.97.1").addHelpText(
4502
+ ).version("9.98.0").addHelpText(
4482
4503
  "after",
4483
4504
  `
4484
4505
  Examples: