@vm0/cli 9.91.0 → 9.92.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
@@ -59,7 +59,7 @@ import {
59
59
  showNextSteps,
60
60
  volumeConfigSchema,
61
61
  withErrorHandler
62
- } from "./chunk-KVC2MJ4I.js";
62
+ } from "./chunk-7QKHF3FS.js";
63
63
 
64
64
  // src/index.ts
65
65
  import { Command as Command44 } from "commander";
@@ -452,7 +452,7 @@ function getConfigPath() {
452
452
  return join(homedir(), ".vm0", "config.json");
453
453
  }
454
454
  var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
455
- console.log(chalk3.bold(`VM0 CLI v${"9.91.0"}`));
455
+ console.log(chalk3.bold(`VM0 CLI v${"9.92.0"}`));
456
456
  console.log();
457
457
  const config = await loadConfig();
458
458
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -1579,7 +1579,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
1579
1579
  options.autoUpdate = false;
1580
1580
  }
1581
1581
  if (options.autoUpdate !== false) {
1582
- await startSilentUpgrade("9.91.0");
1582
+ await startSilentUpgrade("9.92.0");
1583
1583
  }
1584
1584
  try {
1585
1585
  let result;
@@ -1656,7 +1656,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
1656
1656
  withErrorHandler(
1657
1657
  async (identifier, prompt, options) => {
1658
1658
  if (options.autoUpdate !== false) {
1659
- await startSilentUpgrade("9.91.0");
1659
+ await startSilentUpgrade("9.92.0");
1660
1660
  }
1661
1661
  const { name, version } = parseIdentifier(identifier);
1662
1662
  let composeId;
@@ -3472,7 +3472,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
3472
3472
  withErrorHandler(
3473
3473
  async (prompt, options) => {
3474
3474
  if (options.autoUpdate !== false) {
3475
- const shouldExit = await checkAndUpgrade("9.91.0", prompt);
3475
+ const shouldExit = await checkAndUpgrade("9.92.0", prompt);
3476
3476
  if (shouldExit) {
3477
3477
  process.exit(0);
3478
3478
  }
@@ -4230,13 +4230,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
4230
4230
  if (latestVersion === null) {
4231
4231
  throw new Error("Could not check for updates. Please try again later.");
4232
4232
  }
4233
- if (latestVersion === "9.91.0") {
4234
- console.log(chalk33.green(`\u2713 Already up to date (${"9.91.0"})`));
4233
+ if (latestVersion === "9.92.0") {
4234
+ console.log(chalk33.green(`\u2713 Already up to date (${"9.92.0"})`));
4235
4235
  return;
4236
4236
  }
4237
4237
  console.log(
4238
4238
  chalk33.yellow(
4239
- `Current version: ${"9.91.0"} -> Latest version: ${latestVersion}`
4239
+ `Current version: ${"9.92.0"} -> Latest version: ${latestVersion}`
4240
4240
  )
4241
4241
  );
4242
4242
  console.log();
@@ -4263,7 +4263,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
4263
4263
  const success = await performUpgrade(packageManager);
4264
4264
  if (success) {
4265
4265
  console.log(
4266
- chalk33.green(`\u2713 Upgraded from ${"9.91.0"} to ${latestVersion}`)
4266
+ chalk33.green(`\u2713 Upgraded from ${"9.92.0"} to ${latestVersion}`)
4267
4267
  );
4268
4268
  return;
4269
4269
  }
@@ -4331,7 +4331,7 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
4331
4331
 
4332
4332
  // src/index.ts
4333
4333
  var program = new Command44();
4334
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.91.0");
4334
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.92.0");
4335
4335
  program.addCommand(authCommand);
4336
4336
  program.addCommand(infoCommand);
4337
4337
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.91.0",
3
+ "version": "9.92.0",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",
package/zero.js CHANGED
@@ -100,7 +100,7 @@ import {
100
100
  updateZeroUserPreferences,
101
101
  upsertZeroOrgModelProvider,
102
102
  withErrorHandler
103
- } from "./chunk-KVC2MJ4I.js";
103
+ } from "./chunk-7QKHF3FS.js";
104
104
 
105
105
  // src/zero.ts
106
106
  import { Command as Command68 } from "commander";
@@ -1213,7 +1213,8 @@ Notes:
1213
1213
  - At least one option is required
1214
1214
  - Unspecified fields are preserved (not cleared)
1215
1215
  - --skills replaces the entire skill list; --add-skill/--remove-skill modify incrementally
1216
- - --skills cannot be combined with --add-skill or --remove-skill`
1216
+ - --skills cannot be combined with --add-skill or --remove-skill
1217
+ - To create or edit skill content, use: zero skill --help`
1217
1218
  ).action(
1218
1219
  withErrorHandler(
1219
1220
  async (agentId, options) => {
@@ -2082,12 +2083,26 @@ Notes:
2082
2083
  console.log(
2083
2084
  `The ${label} connector is not connected. Ask the user to connect it at: [Connect ${label}](${url})`
2084
2085
  );
2085
- } else if (!hasPermission) {
2086
+ return;
2087
+ }
2088
+ const issues = [];
2089
+ if (connector.needsReconnect) {
2090
+ const url = `${platformUrl.origin}/connectors`;
2091
+ issues.push(
2092
+ `The ${label} connector has expired and needs to be reconnected. Ask the user to reconnect it at: [Reconnect ${label}](${url})`
2093
+ );
2094
+ }
2095
+ if (!hasPermission) {
2086
2096
  const path = agentId ? `/team/${agentId}` : "/team";
2087
2097
  const url = `${platformUrl.origin}${path}?tab=authorization`;
2088
- console.log(
2089
- `The ${label} connector is connected but not authorized for this agent. Ask the user to enable it at: [Authorize ${label}](${url})`
2098
+ issues.push(
2099
+ `The ${label} connector is not authorized for this agent. Ask the user to enable it at: [Authorize ${label}](${url})`
2090
2100
  );
2101
+ }
2102
+ if (issues.length > 0) {
2103
+ for (const issue of issues) {
2104
+ console.log(issue);
2105
+ }
2091
2106
  } else {
2092
2107
  const url = `${platformUrl.origin}/connectors`;
2093
2108
  console.log(
@@ -3105,9 +3120,7 @@ function formatTrigger(schedule) {
3105
3120
  function printRunConfiguration(schedule) {
3106
3121
  const statusText = schedule.enabled ? chalk35.green("enabled") : chalk35.yellow("disabled");
3107
3122
  console.log(`${"Status:".padEnd(16)}${statusText}`);
3108
- console.log(
3109
- `${"Agent:".padEnd(16)}${schedule.agentId} ${chalk35.dim(`(${schedule.orgSlug})`)}`
3110
- );
3123
+ console.log(`${"Agent:".padEnd(16)}${schedule.agentId}`);
3111
3124
  const promptPreview = schedule.prompt.length > 60 ? schedule.prompt.slice(0, 57) + "..." : schedule.prompt;
3112
3125
  console.log(`${"Prompt:".padEnd(16)}${chalk35.dim(promptPreview)}`);
3113
3126
  if (schedule.vars && Object.keys(schedule.vars).length > 0) {
@@ -3977,7 +3990,7 @@ function registerZeroCommands(prog, commands) {
3977
3990
  var program = new Command68();
3978
3991
  program.name("zero").description(
3979
3992
  "Zero CLI \u2014 interact with the zero platform from inside the sandbox"
3980
- ).version("9.91.0").addHelpText(
3993
+ ).version("9.92.0").addHelpText(
3981
3994
  "after",
3982
3995
  `
3983
3996
  Examples: