@vm0/cli 9.59.2 → 9.59.3

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 +38 -11
  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.59.2",
48
+ release: "9.59.3",
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.59.2",
67
+ version: "9.59.3",
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.59.2"}`));
676
+ console.log(chalk4.bold(`VM0 CLI v${"9.59.3"}`));
677
677
  console.log();
678
678
  const config = await loadConfig();
679
679
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -6572,6 +6572,33 @@ var SERVICE_CONFIGS = {
6572
6572
  "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"
6573
6573
  ]
6574
6574
  },
6575
+ {
6576
+ name: "user-read",
6577
+ description: "Read authenticated user profile and related data",
6578
+ rules: [
6579
+ "GET /user",
6580
+ "GET /user/emails",
6581
+ "GET /user/repos",
6582
+ "GET /user/orgs",
6583
+ "GET /user/teams",
6584
+ "GET /user/starred",
6585
+ "GET /user/subscriptions",
6586
+ "GET /users/{username}",
6587
+ "GET /users/{username}/repos",
6588
+ "GET /users/{username}/orgs"
6589
+ ]
6590
+ },
6591
+ {
6592
+ name: "user-write",
6593
+ description: "Update user profile, manage starred repos and email",
6594
+ rules: [
6595
+ "PATCH /user",
6596
+ "POST /user/emails",
6597
+ "DELETE /user/emails",
6598
+ "PUT /user/starred/{owner}/{repo}",
6599
+ "DELETE /user/starred/{owner}/{repo}"
6600
+ ]
6601
+ },
6575
6602
  {
6576
6603
  name: "search",
6577
6604
  description: "Search code, issues, and repositories",
@@ -9886,7 +9913,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
9886
9913
  options.autoUpdate = false;
9887
9914
  }
9888
9915
  if (options.autoUpdate !== false) {
9889
- await startSilentUpgrade("9.59.2");
9916
+ await startSilentUpgrade("9.59.3");
9890
9917
  }
9891
9918
  try {
9892
9919
  let result;
@@ -11060,7 +11087,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
11060
11087
  withErrorHandler(
11061
11088
  async (identifier, prompt, options) => {
11062
11089
  if (options.autoUpdate !== false) {
11063
- await startSilentUpgrade("9.59.2");
11090
+ await startSilentUpgrade("9.59.3");
11064
11091
  }
11065
11092
  const { org, name, version } = parseIdentifier(identifier);
11066
11093
  if (org && !options.experimentalSharedAgent) {
@@ -12747,7 +12774,7 @@ var cookAction = new Command34().name("cook").description("Quick start: prepare,
12747
12774
  withErrorHandler(
12748
12775
  async (prompt, options) => {
12749
12776
  if (options.autoUpdate !== false) {
12750
- const shouldExit = await checkAndUpgrade("9.59.2", prompt);
12777
+ const shouldExit = await checkAndUpgrade("9.59.3", prompt);
12751
12778
  if (shouldExit) {
12752
12779
  process.exit(0);
12753
12780
  }
@@ -18098,13 +18125,13 @@ var upgradeCommand = new Command90().name("upgrade").description("Upgrade vm0 CL
18098
18125
  if (latestVersion === null) {
18099
18126
  throw new Error("Could not check for updates. Please try again later.");
18100
18127
  }
18101
- if (latestVersion === "9.59.2") {
18102
- console.log(chalk84.green(`\u2713 Already up to date (${"9.59.2"})`));
18128
+ if (latestVersion === "9.59.3") {
18129
+ console.log(chalk84.green(`\u2713 Already up to date (${"9.59.3"})`));
18103
18130
  return;
18104
18131
  }
18105
18132
  console.log(
18106
18133
  chalk84.yellow(
18107
- `Current version: ${"9.59.2"} -> Latest version: ${latestVersion}`
18134
+ `Current version: ${"9.59.3"} -> Latest version: ${latestVersion}`
18108
18135
  )
18109
18136
  );
18110
18137
  console.log();
@@ -18131,7 +18158,7 @@ var upgradeCommand = new Command90().name("upgrade").description("Upgrade vm0 CL
18131
18158
  const success = await performUpgrade(packageManager);
18132
18159
  if (success) {
18133
18160
  console.log(
18134
- chalk84.green(`\u2713 Upgraded from ${"9.59.2"} to ${latestVersion}`)
18161
+ chalk84.green(`\u2713 Upgraded from ${"9.59.3"} to ${latestVersion}`)
18135
18162
  );
18136
18163
  return;
18137
18164
  }
@@ -18145,7 +18172,7 @@ var upgradeCommand = new Command90().name("upgrade").description("Upgrade vm0 CL
18145
18172
 
18146
18173
  // src/index.ts
18147
18174
  var program = new Command91();
18148
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.59.2");
18175
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.59.3");
18149
18176
  program.addCommand(authCommand);
18150
18177
  program.addCommand(infoCommand);
18151
18178
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.59.2",
3
+ "version": "9.59.3",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",