@vm0/cli 9.39.0 → 9.39.1

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 +41 -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.39.0",
48
+ release: "9.39.1",
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.39.0",
67
+ version: "9.39.1",
68
68
  command: process.argv.slice(2).join(" ")
69
69
  });
70
70
  Sentry.setContext("runtime", {
@@ -670,7 +670,7 @@ function getConfigPath() {
670
670
  return join2(homedir2(), ".vm0", "config.json");
671
671
  }
672
672
  var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
673
- console.log(chalk7.bold(`VM0 CLI v${"9.39.0"}`));
673
+ console.log(chalk7.bold(`VM0 CLI v${"9.39.1"}`));
674
674
  console.log();
675
675
  const config = await loadConfig();
676
676
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -3684,6 +3684,35 @@ var CONNECTOR_TYPES = {
3684
3684
  scopes: []
3685
3685
  }
3686
3686
  },
3687
+ gmail: {
3688
+ label: "Gmail",
3689
+ helpText: "Connect your Gmail account to send and read emails",
3690
+ authMethods: {
3691
+ oauth: {
3692
+ label: "OAuth (Recommended)",
3693
+ helpText: "Sign in with Google to grant Gmail access.",
3694
+ secrets: {
3695
+ GMAIL_ACCESS_TOKEN: {
3696
+ label: "Access Token",
3697
+ required: true
3698
+ },
3699
+ GMAIL_REFRESH_TOKEN: {
3700
+ label: "Refresh Token",
3701
+ required: true
3702
+ }
3703
+ }
3704
+ }
3705
+ },
3706
+ defaultAuthMethod: "oauth",
3707
+ environmentMapping: {
3708
+ GMAIL_TOKEN: "$secrets.GMAIL_ACCESS_TOKEN"
3709
+ },
3710
+ oauth: {
3711
+ authorizationUrl: "https://accounts.google.com/o/oauth2/v2/auth",
3712
+ tokenUrl: "https://oauth2.googleapis.com/token",
3713
+ scopes: ["https://mail.google.com/"]
3714
+ }
3715
+ },
3687
3716
  computer: {
3688
3717
  label: "Computer",
3689
3718
  helpText: "Expose local services to remote sandboxes via authenticated ngrok tunnels",
@@ -3748,6 +3777,7 @@ var CONNECTOR_TYPES = {
3748
3777
  };
3749
3778
  var connectorTypeSchema = z23.enum([
3750
3779
  "github",
3780
+ "gmail",
3751
3781
  "notion",
3752
3782
  "computer",
3753
3783
  "slack"
@@ -6880,7 +6910,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
6880
6910
  options.autoUpdate = false;
6881
6911
  }
6882
6912
  if (options.autoUpdate !== false) {
6883
- await startSilentUpgrade("9.39.0");
6913
+ await startSilentUpgrade("9.39.1");
6884
6914
  }
6885
6915
  try {
6886
6916
  let result;
@@ -9094,7 +9124,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
9094
9124
  async (identifier, prompt, options) => {
9095
9125
  try {
9096
9126
  if (options.autoUpdate !== false) {
9097
- await startSilentUpgrade("9.39.0");
9127
+ await startSilentUpgrade("9.39.1");
9098
9128
  }
9099
9129
  const { scope, name, version } = parseIdentifier(identifier);
9100
9130
  if (scope && !options.experimentalSharedAgent) {
@@ -10670,7 +10700,7 @@ var cookAction = new Command27().name("cook").description("Quick start: prepare,
10670
10700
  ).option("-y, --yes", "Skip confirmation prompts").option("-v, --verbose", "Show full tool inputs and outputs").addOption(new Option5("--debug-no-mock-claude").hideHelp()).addOption(new Option5("--no-auto-update").hideHelp()).action(
10671
10701
  async (prompt, options) => {
10672
10702
  if (options.autoUpdate !== false) {
10673
- const shouldExit = await checkAndUpgrade("9.39.0", prompt);
10703
+ const shouldExit = await checkAndUpgrade("9.39.1", prompt);
10674
10704
  if (shouldExit) {
10675
10705
  process.exit(0);
10676
10706
  }
@@ -15804,13 +15834,13 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
15804
15834
  );
15805
15835
  process.exit(1);
15806
15836
  }
15807
- if (latestVersion === "9.39.0") {
15808
- console.log(chalk87.green(`\u2713 Already up to date (${"9.39.0"})`));
15837
+ if (latestVersion === "9.39.1") {
15838
+ console.log(chalk87.green(`\u2713 Already up to date (${"9.39.1"})`));
15809
15839
  return;
15810
15840
  }
15811
15841
  console.log(
15812
15842
  chalk87.yellow(
15813
- `Current version: ${"9.39.0"} -> Latest version: ${latestVersion}`
15843
+ `Current version: ${"9.39.1"} -> Latest version: ${latestVersion}`
15814
15844
  )
15815
15845
  );
15816
15846
  console.log();
@@ -15835,7 +15865,7 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
15835
15865
  const success = await performUpgrade(packageManager);
15836
15866
  if (success) {
15837
15867
  console.log(
15838
- chalk87.green(`\u2713 Upgraded from ${"9.39.0"} to ${latestVersion}`)
15868
+ chalk87.green(`\u2713 Upgraded from ${"9.39.1"} to ${latestVersion}`)
15839
15869
  );
15840
15870
  return;
15841
15871
  }
@@ -15846,7 +15876,7 @@ var upgradeCommand = new Command86().name("upgrade").description("Upgrade vm0 CL
15846
15876
 
15847
15877
  // src/index.ts
15848
15878
  var program = new Command87();
15849
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.39.0");
15879
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.39.1");
15850
15880
  program.addCommand(authCommand);
15851
15881
  program.addCommand(infoCommand);
15852
15882
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.39.0",
3
+ "version": "9.39.1",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",