@vm0/cli 9.180.12 → 9.180.14

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
@@ -67,7 +67,7 @@ import {
67
67
  source_default,
68
68
  volumeConfigSchema,
69
69
  withErrorHandler
70
- } from "./chunk-6L4Z5I4P.js";
70
+ } from "./chunk-GR23TPWA.js";
71
71
  import {
72
72
  __toESM,
73
73
  init_esm_shims
@@ -400,7 +400,7 @@ function getConfigPath() {
400
400
  return join(os.homedir(), ".vm0", "config.json");
401
401
  }
402
402
  var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
403
- console.log(source_default.bold(`VM0 CLI v${"9.180.12"}`));
403
+ console.log(source_default.bold(`VM0 CLI v${"9.180.14"}`));
404
404
  console.log();
405
405
  const config = await loadConfig();
406
406
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -4293,7 +4293,7 @@ var composeCommand = new Command().name("compose").description("Create or update
4293
4293
  options.autoUpdate = false;
4294
4294
  }
4295
4295
  if (options.autoUpdate !== false) {
4296
- await startSilentUpgrade("9.180.12");
4296
+ await startSilentUpgrade("9.180.14");
4297
4297
  }
4298
4298
  try {
4299
4299
  let result;
@@ -4395,7 +4395,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
4395
4395
  withErrorHandler(
4396
4396
  async (identifier, prompt, options) => {
4397
4397
  if (options.autoUpdate !== false) {
4398
- await startSilentUpgrade("9.180.12");
4398
+ await startSilentUpgrade("9.180.14");
4399
4399
  }
4400
4400
  const { name, version } = parseIdentifier(identifier);
4401
4401
  let composeId;
@@ -6192,13 +6192,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
6192
6192
  if (latestVersion === null) {
6193
6193
  throw new Error("Could not check for updates. Please try again later.");
6194
6194
  }
6195
- if (latestVersion === "9.180.12") {
6196
- console.log(source_default.green(`\u2713 Already up to date (${"9.180.12"})`));
6195
+ if (latestVersion === "9.180.14") {
6196
+ console.log(source_default.green(`\u2713 Already up to date (${"9.180.14"})`));
6197
6197
  return;
6198
6198
  }
6199
6199
  console.log(
6200
6200
  source_default.yellow(
6201
- `Current version: ${"9.180.12"} -> Latest version: ${latestVersion}`
6201
+ `Current version: ${"9.180.14"} -> Latest version: ${latestVersion}`
6202
6202
  )
6203
6203
  );
6204
6204
  console.log();
@@ -6225,7 +6225,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
6225
6225
  const success = await performUpgrade(packageManager);
6226
6226
  if (success) {
6227
6227
  console.log(
6228
- source_default.green(`\u2713 Upgraded from ${"9.180.12"} to ${latestVersion}`)
6228
+ source_default.green(`\u2713 Upgraded from ${"9.180.14"} to ${latestVersion}`)
6229
6229
  );
6230
6230
  return;
6231
6231
  }
@@ -6292,7 +6292,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
6292
6292
 
6293
6293
  // src/index.ts
6294
6294
  var program = new Command();
6295
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.180.12");
6295
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.180.14");
6296
6296
  program.addCommand(authCommand);
6297
6297
  program.addCommand(infoCommand);
6298
6298
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.180.12",
3
+ "version": "9.180.14",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",
package/zero.js CHANGED
@@ -57,7 +57,7 @@ import {
57
57
  getApiUrl,
58
58
  getAuthMethodsForType,
59
59
  getComputerUseCommand,
60
- getConfiguredConnectorAuthMethods,
60
+ getConfiguredConnectorAuthMethodIds,
61
61
  getConnectorAuthMethod,
62
62
  getConnectorAuthMethodScopeDiff,
63
63
  getConnectorEnvBindingEntries,
@@ -150,7 +150,7 @@ import {
150
150
  upsertZeroOrgModelProvider,
151
151
  withErrorHandler,
152
152
  zeroAgentCustomSkillNameSchema
153
- } from "./chunk-6L4Z5I4P.js";
153
+ } from "./chunk-GR23TPWA.js";
154
154
  import {
155
155
  __toESM,
156
156
  init_esm_shims
@@ -1744,8 +1744,8 @@ function parseConnectorType(type) {
1744
1744
  });
1745
1745
  }
1746
1746
  function parseConfiguredAuthMethod(type, rawAuthMethod) {
1747
- const configuredAuthMethods = getConfiguredConnectorAuthMethods(type);
1748
- const authMethod = configuredAuthMethods.find((method) => {
1747
+ const configuredAuthMethodIds = getConfiguredConnectorAuthMethodIds(type);
1748
+ const authMethod = configuredAuthMethodIds.find((method) => {
1749
1749
  return method === rawAuthMethod;
1750
1750
  });
1751
1751
  if (authMethod) {
@@ -1755,13 +1755,13 @@ function parseConfiguredAuthMethod(type, rawAuthMethod) {
1755
1755
  `${type} connector does not have ${rawAuthMethod} auth method`,
1756
1756
  {
1757
1757
  cause: new Error(
1758
- `Available auth methods: ${configuredAuthMethods.join(", ")}`
1758
+ `Available auth methods: ${configuredAuthMethodIds.join(", ")}`
1759
1759
  )
1760
1760
  }
1761
1761
  );
1762
1762
  }
1763
1763
  function getManualGrantAuthMethods(type) {
1764
- return getConfiguredConnectorAuthMethods(type).filter((authMethod) => {
1764
+ return getConfiguredConnectorAuthMethodIds(type).filter((authMethod) => {
1765
1765
  return getConnectorAuthMethod(type, authMethod)?.grant.kind === "manual";
1766
1766
  });
1767
1767
  }
@@ -13319,7 +13319,7 @@ function registerZeroCommands(prog, commands) {
13319
13319
  var program = new Command();
13320
13320
  program.name("zero").description(
13321
13321
  "Zero CLI \u2014 interact with the zero platform from inside the sandbox"
13322
- ).version("9.180.12").addHelpText("after", () => {
13322
+ ).version("9.180.14").addHelpText("after", () => {
13323
13323
  return buildZeroHelpText();
13324
13324
  });
13325
13325
  if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {