@vm0/cli 9.7.1 → 9.9.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.
Files changed (2) hide show
  1. package/index.js +31 -10
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -8463,7 +8463,7 @@ var cookAction = new Command27().name("cook").description("Quick start: prepare,
8463
8463
  ).option("-y, --yes", "Skip confirmation prompts").option("-v, --verbose", "Show full tool inputs and outputs").addOption(new Option4("--debug-no-mock-claude").hideHelp()).addOption(new Option4("--no-auto-update").hideHelp()).action(
8464
8464
  async (prompt, options) => {
8465
8465
  if (!options.noAutoUpdate) {
8466
- const shouldExit = await checkAndUpgrade("9.7.1", prompt);
8466
+ const shouldExit = await checkAndUpgrade("9.9.0", prompt);
8467
8467
  if (shouldExit) {
8468
8468
  process.exit(0);
8469
8469
  }
@@ -8699,6 +8699,22 @@ function parseRelativeTime(value, unit) {
8699
8699
  }
8700
8700
 
8701
8701
  // src/commands/logs/index.ts
8702
+ function buildPlatformLogsUrl(apiUrl, runId) {
8703
+ const url = new URL(apiUrl);
8704
+ const hostname = url.hostname;
8705
+ if (hostname === "localhost" || hostname === "127.0.0.1") {
8706
+ return `http://${hostname}:3001/logs/${runId}`;
8707
+ }
8708
+ const parts = hostname.split(".");
8709
+ if (parts[0] === "www") {
8710
+ parts[0] = "platform";
8711
+ } else {
8712
+ parts.unshift("platform");
8713
+ }
8714
+ const platformHost = parts.join(".");
8715
+ const port = url.port ? `:${url.port}` : "";
8716
+ return `https://${platformHost}${port}/logs/${runId}`;
8717
+ }
8702
8718
  function formatMetric(metric) {
8703
8719
  const memPercent = (metric.mem_used / metric.mem_total * 100).toFixed(1);
8704
8720
  const diskPercent = (metric.disk_used / metric.disk_total * 100).toFixed(1);
@@ -8798,9 +8814,11 @@ var logsCommand2 = new Command31().name("logs").description("View logs for an ag
8798
8814
  100
8799
8815
  );
8800
8816
  const order = isHead ? "asc" : "desc";
8817
+ const apiUrl = await getApiUrl();
8818
+ const platformUrl = buildPlatformLogsUrl(apiUrl, runId);
8801
8819
  switch (logType) {
8802
8820
  case "agent":
8803
- await showAgentEvents(runId, { since, limit, order });
8821
+ await showAgentEvents(runId, { since, limit, order }, platformUrl);
8804
8822
  break;
8805
8823
  case "system":
8806
8824
  await showSystemLog(runId, { since, limit, order });
@@ -8818,7 +8836,7 @@ var logsCommand2 = new Command31().name("logs").description("View logs for an ag
8818
8836
  }
8819
8837
  }
8820
8838
  );
8821
- async function showAgentEvents(runId, options) {
8839
+ async function showAgentEvents(runId, options, platformUrl) {
8822
8840
  const response = await apiClient.getAgentEvents(runId, options);
8823
8841
  if (response.events.length === 0) {
8824
8842
  console.log(chalk33.yellow("No agent events found for this run"));
@@ -8837,6 +8855,7 @@ async function showAgentEvents(runId, options) {
8837
8855
  )
8838
8856
  );
8839
8857
  }
8858
+ console.log(chalk33.dim(`View on platform: ${platformUrl}`));
8840
8859
  }
8841
8860
  async function showSystemLog(runId, options) {
8842
8861
  const response = await apiClient.getSystemLog(runId, options);
@@ -10348,8 +10367,9 @@ var statusCommand6 = new Command41().name("status").description("Show detailed s
10348
10367
  console.log(chalk42.dim("\u2501".repeat(50)));
10349
10368
  printRunConfiguration(schedule);
10350
10369
  printTimeSchedule(schedule);
10370
+ const parsed = parseInt(options.limit, 10);
10351
10371
  const limit = Math.min(
10352
- Math.max(0, parseInt(options.limit, 10) || 5),
10372
+ Math.max(0, Number.isNaN(parsed) ? 5 : parsed),
10353
10373
  100
10354
10374
  );
10355
10375
  await printRecentRuns(name, composeId, limit);
@@ -11072,9 +11092,9 @@ var gradientColors = [
11072
11092
  ];
11073
11093
  var vm0LogoLines = [
11074
11094
  "\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 ",
11075
- "\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557",
11076
- "\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2588\u2588\u2554\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551",
11077
- "\u255A\u2588\u2588\u2557 \u2588\u2588\u2554\u255D\u2588\u2588\u2551\u255A\u2588\u2588\u2554\u255D\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551",
11095
+ "\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2588\u2588\u2588\u2588\u2557",
11096
+ "\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2588\u2588\u2554\u2588\u2588\u2551\u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2551",
11097
+ "\u255A\u2588\u2588\u2557 \u2588\u2588\u2554\u255D\u2588\u2588\u2551\u255A\u2588\u2588\u2554\u255D\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551",
11078
11098
  " \u255A\u2588\u2588\u2588\u2588\u2554\u255D \u2588\u2588\u2551 \u255A\u2550\u255D \u2588\u2588\u2551\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D",
11079
11099
  " \u255A\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D "
11080
11100
  ];
@@ -11088,9 +11108,10 @@ function renderVm0Banner() {
11088
11108
  }
11089
11109
  function renderOnboardWelcome() {
11090
11110
  renderVm0Banner();
11091
- console.log(` ${chalk54.bold("Welcome to VM0!")}`);
11111
+ console.log(` Build agentic workflows using natural language.`);
11112
+ console.log(` ${chalk54.dim("Currently in beta, enjoy it free.")}`);
11092
11113
  console.log(
11093
- ` ${chalk54.dim("Build agentic workflows using natural language.")}`
11114
+ ` ${chalk54.dim("Star us on GitHub: https://github.com/vm0-ai/vm0")}`
11094
11115
  );
11095
11116
  console.log();
11096
11117
  }
@@ -11619,7 +11640,7 @@ var setupClaudeCommand = new Command57().name("setup-claude").description("Insta
11619
11640
 
11620
11641
  // src/index.ts
11621
11642
  var program = new Command58();
11622
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.7.1");
11643
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.9.0");
11623
11644
  program.addCommand(authCommand);
11624
11645
  program.addCommand(infoCommand);
11625
11646
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.7.1",
3
+ "version": "9.9.0",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",