@vm0/cli 9.38.4 → 9.38.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 +24 -24
  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.38.4",
48
+ release: "9.38.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.38.4",
67
+ version: "9.38.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.38.4"}`));
610
+ console.log(chalk7.bold(`VM0 CLI v${"9.38.5"}`));
611
611
  console.log();
612
612
  const config = await loadConfig();
613
613
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -3650,15 +3650,15 @@ var CONNECTOR_TYPES = {
3650
3650
  COMPUTER_CONNECTOR_DOMAIN: "$secrets.COMPUTER_CONNECTOR_DOMAIN"
3651
3651
  }
3652
3652
  },
3653
- gmail: {
3654
- label: "Gmail",
3655
- helpText: "Connect your Gmail account to access email",
3653
+ slack: {
3654
+ label: "Slack",
3655
+ helpText: "Connect your Slack account to send messages and read channels",
3656
3656
  authMethods: {
3657
3657
  oauth: {
3658
3658
  label: "OAuth (Recommended)",
3659
- helpText: "Sign in with Google to grant Gmail access.",
3659
+ helpText: "Sign in with Slack to grant access.",
3660
3660
  secrets: {
3661
- GMAIL_ACCESS_TOKEN: {
3661
+ SLACK_ACCESS_TOKEN: {
3662
3662
  label: "Access Token",
3663
3663
  required: true
3664
3664
  }
@@ -3667,13 +3667,19 @@ var CONNECTOR_TYPES = {
3667
3667
  },
3668
3668
  defaultAuthMethod: "oauth",
3669
3669
  environmentMapping: {
3670
- GMAIL_TOKEN: "$secrets.GMAIL_ACCESS_TOKEN",
3671
- GMAIL_ACCESS_TOKEN: "$secrets.GMAIL_ACCESS_TOKEN"
3670
+ SLACK_TOKEN: "$secrets.SLACK_ACCESS_TOKEN"
3672
3671
  },
3673
3672
  oauth: {
3674
- authorizationUrl: "https://accounts.google.com/o/oauth2/v2/auth",
3675
- tokenUrl: "https://oauth2.googleapis.com/token",
3676
- scopes: []
3673
+ authorizationUrl: "https://slack.com/oauth/v2/authorize",
3674
+ tokenUrl: "https://slack.com/api/oauth.v2.access",
3675
+ scopes: [
3676
+ "channels:read",
3677
+ "channels:history",
3678
+ "chat:write",
3679
+ "users:read",
3680
+ "users:read.email",
3681
+ "files:read"
3682
+ ]
3677
3683
  }
3678
3684
  }
3679
3685
  };
@@ -3681,7 +3687,7 @@ var connectorTypeSchema = z23.enum([
3681
3687
  "github",
3682
3688
  "notion",
3683
3689
  "computer",
3684
- "gmail"
3690
+ "slack"
3685
3691
  ]);
3686
3692
  function getConnectorEnvironmentMapping(type2) {
3687
3693
  return CONNECTOR_TYPES[type2].environmentMapping;
@@ -3727,8 +3733,6 @@ var connectorResponseSchema = z23.object({
3727
3733
  id: z23.string().uuid(),
3728
3734
  type: connectorTypeSchema,
3729
3735
  authMethod: z23.string(),
3730
- platform: z23.enum(["self-hosted", "nango"]),
3731
- nangoConnectionId: z23.string().nullable().optional(),
3732
3736
  externalId: z23.string().nullable(),
3733
3737
  externalUsername: z23.string().nullable(),
3734
3738
  externalEmail: z23.string().nullable(),
@@ -4631,10 +4635,6 @@ var FEATURE_SWITCHES = {
4631
4635
  ["computerConnector" /* ComputerConnector */]: {
4632
4636
  maintainer: "ethan@vm0.ai",
4633
4637
  enabled: false
4634
- },
4635
- ["connectorNango" /* ConnectorNango */]: {
4636
- maintainer: "ethan@vm0.ai",
4637
- enabled: false
4638
4638
  }
4639
4639
  };
4640
4640
 
@@ -6482,7 +6482,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
6482
6482
  options.autoUpdate = false;
6483
6483
  }
6484
6484
  if (options.autoUpdate !== false) {
6485
- await startSilentUpgrade("9.38.4");
6485
+ await startSilentUpgrade("9.38.5");
6486
6486
  }
6487
6487
  try {
6488
6488
  let result;
@@ -8696,7 +8696,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
8696
8696
  async (identifier, prompt, options) => {
8697
8697
  try {
8698
8698
  if (options.autoUpdate !== false) {
8699
- await startSilentUpgrade("9.38.4");
8699
+ await startSilentUpgrade("9.38.5");
8700
8700
  }
8701
8701
  const { scope, name, version } = parseIdentifier(identifier);
8702
8702
  if (scope && !options.experimentalSharedAgent) {
@@ -10272,7 +10272,7 @@ var cookAction = new Command27().name("cook").description("Quick start: prepare,
10272
10272
  ).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(
10273
10273
  async (prompt, options) => {
10274
10274
  if (options.autoUpdate !== false) {
10275
- const shouldExit = await checkAndUpgrade("9.38.4", prompt);
10275
+ const shouldExit = await checkAndUpgrade("9.38.5", prompt);
10276
10276
  if (shouldExit) {
10277
10277
  process.exit(0);
10278
10278
  }
@@ -15200,7 +15200,7 @@ var preferenceCommand = new Command77().name("preference").description("View or
15200
15200
 
15201
15201
  // src/index.ts
15202
15202
  var program = new Command78();
15203
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.38.4");
15203
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.38.5");
15204
15204
  program.addCommand(authCommand);
15205
15205
  program.addCommand(infoCommand);
15206
15206
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.38.4",
3
+ "version": "9.38.5",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",