@vm0/cli 9.62.5 → 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 +21 -19
  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.5",
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.5",
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.5"}`));
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;
@@ -4370,7 +4370,13 @@ var CONNECTOR_TYPES_DEF = {
4370
4370
  oauth: {
4371
4371
  authorizationUrl: "https://linear.app/oauth/authorize",
4372
4372
  tokenUrl: "https://api.linear.app/oauth/token",
4373
- scopes: ["read", "write"],
4373
+ scopes: [
4374
+ "read",
4375
+ "write",
4376
+ "issues:create",
4377
+ "comments:create",
4378
+ "timeSchedule:write"
4379
+ ],
4374
4380
  environmentMapping: {
4375
4381
  LINEAR_TOKEN: "$secrets.LINEAR_ACCESS_TOKEN"
4376
4382
  }
@@ -6746,7 +6752,8 @@ function validateRule(rule, permName, serviceName) {
6746
6752
  const seg = segments[i];
6747
6753
  if (seg.startsWith("{") && seg.endsWith("}")) {
6748
6754
  const name = seg.slice(1, -1);
6749
- 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;
6750
6757
  if (!baseName) {
6751
6758
  throw new Error(
6752
6759
  `Invalid rule "${rule}" in permission "${permName}" of firewall "${serviceName}": empty parameter name`
@@ -6758,7 +6765,7 @@ function validateRule(rule, permName, serviceName) {
6758
6765
  );
6759
6766
  }
6760
6767
  paramNames.add(baseName);
6761
- if (name.endsWith("+") && i !== segments.length - 1) {
6768
+ if (isGreedy && i !== segments.length - 1) {
6762
6769
  throw new Error(
6763
6770
  `Invalid rule "${rule}" in permission "${permName}" of firewall "${serviceName}": {${name}} must be the last segment`
6764
6771
  );
@@ -7385,11 +7392,6 @@ var FEATURE_SWITCHES = {
7385
7392
  maintainer: "ethan@vm0.ai",
7386
7393
  enabled: false,
7387
7394
  enabledUserHashes: STAFF_USER_HASHES
7388
- },
7389
- ["zero" /* Zero */]: {
7390
- maintainer: "ethan@vm0.ai",
7391
- enabled: false,
7392
- enabledUserHashes: STAFF_USER_HASHES
7393
7395
  }
7394
7396
  };
7395
7397
  async function isFeatureEnabled(key, userId) {
@@ -9533,7 +9535,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
9533
9535
  options.autoUpdate = false;
9534
9536
  }
9535
9537
  if (options.autoUpdate !== false) {
9536
- await startSilentUpgrade("9.62.5");
9538
+ await startSilentUpgrade("9.62.7");
9537
9539
  }
9538
9540
  try {
9539
9541
  let result;
@@ -10355,7 +10357,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
10355
10357
  withErrorHandler(
10356
10358
  async (identifier, prompt, options) => {
10357
10359
  if (options.autoUpdate !== false) {
10358
- await startSilentUpgrade("9.62.5");
10360
+ await startSilentUpgrade("9.62.7");
10359
10361
  }
10360
10362
  const { org, name, version } = parseIdentifier(identifier);
10361
10363
  let composeId;
@@ -12075,7 +12077,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
12075
12077
  withErrorHandler(
12076
12078
  async (prompt, options) => {
12077
12079
  if (options.autoUpdate !== false) {
12078
- const shouldExit = await checkAndUpgrade("9.62.5", prompt);
12080
+ const shouldExit = await checkAndUpgrade("9.62.7", prompt);
12079
12081
  if (shouldExit) {
12080
12082
  process.exit(0);
12081
12083
  }
@@ -17209,13 +17211,13 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
17209
17211
  if (latestVersion === null) {
17210
17212
  throw new Error("Could not check for updates. Please try again later.");
17211
17213
  }
17212
- if (latestVersion === "9.62.5") {
17213
- console.log(chalk79.green(`\u2713 Already up to date (${"9.62.5"})`));
17214
+ if (latestVersion === "9.62.7") {
17215
+ console.log(chalk79.green(`\u2713 Already up to date (${"9.62.7"})`));
17214
17216
  return;
17215
17217
  }
17216
17218
  console.log(
17217
17219
  chalk79.yellow(
17218
- `Current version: ${"9.62.5"} -> Latest version: ${latestVersion}`
17220
+ `Current version: ${"9.62.7"} -> Latest version: ${latestVersion}`
17219
17221
  )
17220
17222
  );
17221
17223
  console.log();
@@ -17242,7 +17244,7 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
17242
17244
  const success = await performUpgrade(packageManager);
17243
17245
  if (success) {
17244
17246
  console.log(
17245
- chalk79.green(`\u2713 Upgraded from ${"9.62.5"} to ${latestVersion}`)
17247
+ chalk79.green(`\u2713 Upgraded from ${"9.62.7"} to ${latestVersion}`)
17246
17248
  );
17247
17249
  return;
17248
17250
  }
@@ -17256,7 +17258,7 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
17256
17258
 
17257
17259
  // src/index.ts
17258
17260
  var program = new Command87();
17259
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.62.5");
17261
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.62.7");
17260
17262
  program.addCommand(authCommand);
17261
17263
  program.addCommand(infoCommand);
17262
17264
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.62.5",
3
+ "version": "9.62.7",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",