@vm0/cli 9.37.4 → 9.37.5

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 +48 -8
  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.37.4",
48
+ release: "9.37.5",
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.37.4",
67
+ version: "9.37.5",
68
68
  command: process.argv.slice(2).join(" ")
69
69
  });
70
70
  Sentry.setContext("runtime", {
@@ -607,7 +607,7 @@ function getConfigPath() {
607
607
  return join2(homedir2(), ".vm0", "config.json");
608
608
  }
609
609
  var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
610
- console.log(chalk7.bold(`VM0 CLI v${"9.37.4"}`));
610
+ console.log(chalk7.bold(`VM0 CLI v${"9.37.5"}`));
611
611
  console.log();
612
612
  const config = await loadConfig();
613
613
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -3652,9 +3652,43 @@ var CONNECTOR_TYPES = {
3652
3652
  COMPUTER_CONNECTOR_ENDPOINT: "$secrets.COMPUTER_CONNECTOR_ENDPOINT",
3653
3653
  COMPUTER_CONNECTOR_DOMAIN: "$secrets.COMPUTER_CONNECTOR_DOMAIN"
3654
3654
  }
3655
+ },
3656
+ gmail: {
3657
+ label: "Gmail",
3658
+ helpText: "Connect your Gmail account to access email via Nango Cloud",
3659
+ authMethods: {
3660
+ oauth: {
3661
+ label: "OAuth (Recommended)",
3662
+ helpText: "Sign in with Google to grant Gmail access.",
3663
+ secrets: {
3664
+ GMAIL_ACCESS_TOKEN: {
3665
+ label: "Access Token",
3666
+ required: true
3667
+ }
3668
+ }
3669
+ }
3670
+ },
3671
+ defaultAuthMethod: "oauth",
3672
+ environmentMapping: {
3673
+ GMAIL_TOKEN: "$secrets.GMAIL_ACCESS_TOKEN",
3674
+ GMAIL_ACCESS_TOKEN: "$secrets.GMAIL_ACCESS_TOKEN"
3675
+ },
3676
+ oauth: {
3677
+ authorizationUrl: "https://accounts.google.com/o/oauth2/v2/auth",
3678
+ tokenUrl: "https://oauth2.googleapis.com/token",
3679
+ scopes: [
3680
+ "https://www.googleapis.com/auth/gmail.readonly",
3681
+ "https://www.googleapis.com/auth/gmail.send"
3682
+ ]
3683
+ }
3655
3684
  }
3656
3685
  };
3657
- var connectorTypeSchema = z23.enum(["github", "notion", "computer"]);
3686
+ var connectorTypeSchema = z23.enum([
3687
+ "github",
3688
+ "notion",
3689
+ "computer",
3690
+ "gmail"
3691
+ ]);
3658
3692
  function getConnectorEnvironmentMapping(type2) {
3659
3693
  return CONNECTOR_TYPES[type2].environmentMapping;
3660
3694
  }
@@ -3699,6 +3733,8 @@ var connectorResponseSchema = z23.object({
3699
3733
  id: z23.string().uuid(),
3700
3734
  type: connectorTypeSchema,
3701
3735
  authMethod: z23.string(),
3736
+ platform: z23.enum(["self-hosted", "nango"]),
3737
+ nangoConnectionId: z23.string().nullable().optional(),
3702
3738
  externalId: z23.string().nullable(),
3703
3739
  externalUsername: z23.string().nullable(),
3704
3740
  externalEmail: z23.string().nullable(),
@@ -4597,6 +4633,10 @@ var FEATURE_SWITCHES = {
4597
4633
  ["agentDetailPage" /* AgentDetailPage */]: {
4598
4634
  maintainer: "yuma@vm0.ai",
4599
4635
  enabled: false
4636
+ },
4637
+ ["connectorNango" /* ConnectorNango */]: {
4638
+ maintainer: "ethan@vm0.ai",
4639
+ enabled: false
4600
4640
  }
4601
4641
  };
4602
4642
 
@@ -6443,7 +6483,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
6443
6483
  options.autoUpdate = false;
6444
6484
  }
6445
6485
  if (options.autoUpdate !== false) {
6446
- await startSilentUpgrade("9.37.4");
6486
+ await startSilentUpgrade("9.37.5");
6447
6487
  }
6448
6488
  try {
6449
6489
  let result;
@@ -8657,7 +8697,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
8657
8697
  async (identifier, prompt, options) => {
8658
8698
  try {
8659
8699
  if (options.autoUpdate !== false) {
8660
- await startSilentUpgrade("9.37.4");
8700
+ await startSilentUpgrade("9.37.5");
8661
8701
  }
8662
8702
  const { scope, name, version } = parseIdentifier(identifier);
8663
8703
  if (scope && !options.experimentalSharedAgent) {
@@ -10233,7 +10273,7 @@ var cookAction = new Command27().name("cook").description("Quick start: prepare,
10233
10273
  ).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(
10234
10274
  async (prompt, options) => {
10235
10275
  if (options.autoUpdate !== false) {
10236
- const shouldExit = await checkAndUpgrade("9.37.4", prompt);
10276
+ const shouldExit = await checkAndUpgrade("9.37.5", prompt);
10237
10277
  if (shouldExit) {
10238
10278
  process.exit(0);
10239
10279
  }
@@ -14958,7 +14998,7 @@ var preferenceCommand = new Command77().name("preference").description("View or
14958
14998
 
14959
14999
  // src/index.ts
14960
15000
  var program = new Command78();
14961
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.37.4");
15001
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.37.5");
14962
15002
  program.addCommand(authCommand);
14963
15003
  program.addCommand(infoCommand);
14964
15004
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.37.4",
3
+ "version": "9.37.5",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",