@vm0/cli 9.62.6 → 9.62.7

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 +14 -13
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -45,7 +45,7 @@ if (DSN) {
45
45
  Sentry.init({
46
46
  dsn: DSN,
47
47
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
48
- release: "9.62.6",
48
+ release: "9.62.7",
49
49
  sendDefaultPii: false,
50
50
  tracesSampleRate: 0,
51
51
  shutdownTimeout: 500,
@@ -64,7 +64,7 @@ if (DSN) {
64
64
  }
65
65
  });
66
66
  Sentry.setContext("cli", {
67
- version: "9.62.6",
67
+ version: "9.62.7",
68
68
  command: process.argv.slice(2).join(" ")
69
69
  });
70
70
  Sentry.setContext("runtime", {
@@ -673,7 +673,7 @@ function getConfigPath() {
673
673
  return join2(homedir2(), ".vm0", "config.json");
674
674
  }
675
675
  var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
676
- console.log(chalk4.bold(`VM0 CLI v${"9.62.6"}`));
676
+ console.log(chalk4.bold(`VM0 CLI v${"9.62.7"}`));
677
677
  console.log();
678
678
  const config = await loadConfig();
679
679
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -6752,7 +6752,8 @@ function validateRule(rule, permName, serviceName) {
6752
6752
  const seg = segments[i];
6753
6753
  if (seg.startsWith("{") && seg.endsWith("}")) {
6754
6754
  const name = seg.slice(1, -1);
6755
- const baseName = name.endsWith("+") ? name.slice(0, -1) : name;
6755
+ const isGreedy = name.endsWith("+") || name.endsWith("*");
6756
+ const baseName = isGreedy ? name.slice(0, -1) : name;
6756
6757
  if (!baseName) {
6757
6758
  throw new Error(
6758
6759
  `Invalid rule "${rule}" in permission "${permName}" of firewall "${serviceName}": empty parameter name`
@@ -6764,7 +6765,7 @@ function validateRule(rule, permName, serviceName) {
6764
6765
  );
6765
6766
  }
6766
6767
  paramNames.add(baseName);
6767
- if (name.endsWith("+") && i !== segments.length - 1) {
6768
+ if (isGreedy && i !== segments.length - 1) {
6768
6769
  throw new Error(
6769
6770
  `Invalid rule "${rule}" in permission "${permName}" of firewall "${serviceName}": {${name}} must be the last segment`
6770
6771
  );
@@ -9534,7 +9535,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
9534
9535
  options.autoUpdate = false;
9535
9536
  }
9536
9537
  if (options.autoUpdate !== false) {
9537
- await startSilentUpgrade("9.62.6");
9538
+ await startSilentUpgrade("9.62.7");
9538
9539
  }
9539
9540
  try {
9540
9541
  let result;
@@ -10356,7 +10357,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
10356
10357
  withErrorHandler(
10357
10358
  async (identifier, prompt, options) => {
10358
10359
  if (options.autoUpdate !== false) {
10359
- await startSilentUpgrade("9.62.6");
10360
+ await startSilentUpgrade("9.62.7");
10360
10361
  }
10361
10362
  const { org, name, version } = parseIdentifier(identifier);
10362
10363
  let composeId;
@@ -12076,7 +12077,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
12076
12077
  withErrorHandler(
12077
12078
  async (prompt, options) => {
12078
12079
  if (options.autoUpdate !== false) {
12079
- const shouldExit = await checkAndUpgrade("9.62.6", prompt);
12080
+ const shouldExit = await checkAndUpgrade("9.62.7", prompt);
12080
12081
  if (shouldExit) {
12081
12082
  process.exit(0);
12082
12083
  }
@@ -17210,13 +17211,13 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
17210
17211
  if (latestVersion === null) {
17211
17212
  throw new Error("Could not check for updates. Please try again later.");
17212
17213
  }
17213
- if (latestVersion === "9.62.6") {
17214
- console.log(chalk79.green(`\u2713 Already up to date (${"9.62.6"})`));
17214
+ if (latestVersion === "9.62.7") {
17215
+ console.log(chalk79.green(`\u2713 Already up to date (${"9.62.7"})`));
17215
17216
  return;
17216
17217
  }
17217
17218
  console.log(
17218
17219
  chalk79.yellow(
17219
- `Current version: ${"9.62.6"} -> Latest version: ${latestVersion}`
17220
+ `Current version: ${"9.62.7"} -> Latest version: ${latestVersion}`
17220
17221
  )
17221
17222
  );
17222
17223
  console.log();
@@ -17243,7 +17244,7 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
17243
17244
  const success = await performUpgrade(packageManager);
17244
17245
  if (success) {
17245
17246
  console.log(
17246
- chalk79.green(`\u2713 Upgraded from ${"9.62.6"} to ${latestVersion}`)
17247
+ chalk79.green(`\u2713 Upgraded from ${"9.62.7"} to ${latestVersion}`)
17247
17248
  );
17248
17249
  return;
17249
17250
  }
@@ -17257,7 +17258,7 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
17257
17258
 
17258
17259
  // src/index.ts
17259
17260
  var program = new Command87();
17260
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.62.6");
17261
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.62.7");
17261
17262
  program.addCommand(authCommand);
17262
17263
  program.addCommand(infoCommand);
17263
17264
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.62.6",
3
+ "version": "9.62.7",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",