@vm0/cli 9.70.2 → 9.70.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 +70 -13
  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.70.2",
48
+ release: "9.70.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.70.2",
67
+ version: "9.70.3",
68
68
  command: process.argv.slice(2).join(" ")
69
69
  });
70
70
  Sentry.setContext("runtime", {
@@ -675,7 +675,7 @@ function getConfigPath() {
675
675
  return join2(homedir2(), ".vm0", "config.json");
676
676
  }
677
677
  var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
678
- console.log(chalk4.bold(`VM0 CLI v${"9.70.2"}`));
678
+ console.log(chalk4.bold(`VM0 CLI v${"9.70.3"}`));
679
679
  console.log();
680
680
  const config = await loadConfig();
681
681
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -4710,6 +4710,24 @@ var CONNECTOR_TYPES_DEF = {
4710
4710
  },
4711
4711
  defaultAuthMethod: "api-token"
4712
4712
  },
4713
+ loops: {
4714
+ label: "Loops",
4715
+ helpText: "Connect your Loops account to send behavioral and transactional emails for your SaaS product",
4716
+ authMethods: {
4717
+ "api-token": {
4718
+ label: "API Key",
4719
+ helpText: "1. Log in to [Loops](https://app.loops.so)\n2. Go to **Settings** \u2192 **API**\n3. Click **Generate key**\n4. Copy the generated API key",
4720
+ secrets: {
4721
+ LOOPS_TOKEN: {
4722
+ label: "API Key",
4723
+ required: true,
4724
+ placeholder: "d2d561f5ff80136f69b4b5a31b9fb3c9"
4725
+ }
4726
+ }
4727
+ }
4728
+ },
4729
+ defaultAuthMethod: "api-token"
4730
+ },
4713
4731
  make: {
4714
4732
  label: "Make",
4715
4733
  helpText: "Connect your Make account to manage scenarios, organizations, and automation workflows",
@@ -5065,6 +5083,23 @@ var CONNECTOR_TYPES_DEF = {
5065
5083
  },
5066
5084
  defaultAuthMethod: "api-token"
5067
5085
  },
5086
+ salesforce: {
5087
+ label: "Salesforce",
5088
+ helpText: "Connect your Salesforce account to manage CRM data, contacts, leads, and sales workflows",
5089
+ authMethods: {
5090
+ "api-token": {
5091
+ label: "API Token",
5092
+ secrets: {
5093
+ SALESFORCE_TOKEN: {
5094
+ label: "API Token",
5095
+ required: true,
5096
+ placeholder: "00D..."
5097
+ }
5098
+ }
5099
+ }
5100
+ },
5101
+ defaultAuthMethod: "api-token"
5102
+ },
5068
5103
  reddit: {
5069
5104
  label: "Reddit",
5070
5105
  featureFlag: "redditConnector" /* RedditConnector */,
@@ -6109,6 +6144,24 @@ var CONNECTOR_TYPES_DEF = {
6109
6144
  },
6110
6145
  defaultAuthMethod: "api-token"
6111
6146
  },
6147
+ brevo: {
6148
+ label: "Brevo",
6149
+ helpText: "Connect your Brevo account to manage email campaigns, transactional emails, and CRM contacts",
6150
+ authMethods: {
6151
+ "api-token": {
6152
+ label: "API Key",
6153
+ helpText: "1. Log in to [Brevo](https://app.brevo.com)\n2. Go to **Settings** \u2192 **SMTP & API** \u2192 **API Keys**\n3. Copy your API key",
6154
+ secrets: {
6155
+ BREVO_TOKEN: {
6156
+ label: "API Key",
6157
+ required: true,
6158
+ placeholder: "xkeysib-..."
6159
+ }
6160
+ }
6161
+ }
6162
+ },
6163
+ defaultAuthMethod: "api-token"
6164
+ },
6112
6165
  "brave-search": {
6113
6166
  label: "Brave Search",
6114
6167
  helpText: "Connect your Brave Search account to perform privacy-focused web, image, video, and news searches",
@@ -6873,10 +6926,11 @@ var CONNECTOR_TYPES_DEF = {
6873
6926
  },
6874
6927
  v0: {
6875
6928
  label: "v0",
6876
- helpText: "Connect your v0 account to generate and iterate on React and Next.js UI components with AI",
6929
+ helpText: "Connect your v0 account to generate UI components, chat completions, and iterate on React and Next.js code with the v0 Platform API",
6877
6930
  authMethods: {
6878
6931
  "api-token": {
6879
6932
  label: "API Token",
6933
+ helpText: "1. Log in to [v0](https://v0.dev)\n2. Go to **Settings** \u2192 **Keys** ([direct link](https://v0.dev/chat/settings/keys))\n3. Create a new API key\n4. Copy the generated token",
6880
6934
  secrets: {
6881
6935
  V0_TOKEN: {
6882
6936
  label: "API Token",
@@ -6980,6 +7034,7 @@ var connectorTypeSchema = z22.enum([
6980
7034
  "serpapi",
6981
7035
  "zeptomail",
6982
7036
  "runway",
7037
+ "salesforce",
6983
7038
  "shortio",
6984
7039
  "streak",
6985
7040
  "supadata",
@@ -7012,7 +7067,9 @@ var connectorTypeSchema = z22.enum([
7012
7067
  "wix",
7013
7068
  "cal-com",
7014
7069
  "v0",
7015
- "customer-io"
7070
+ "brevo",
7071
+ "customer-io",
7072
+ "loops"
7016
7073
  ]);
7017
7074
  function getConnectorEnvironmentMapping(type2) {
7018
7075
  const config = CONNECTOR_TYPES[type2];
@@ -10816,7 +10873,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
10816
10873
  options.autoUpdate = false;
10817
10874
  }
10818
10875
  if (options.autoUpdate !== false) {
10819
- await startSilentUpgrade("9.70.2");
10876
+ await startSilentUpgrade("9.70.3");
10820
10877
  }
10821
10878
  try {
10822
10879
  let result;
@@ -11641,7 +11698,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
11641
11698
  withErrorHandler(
11642
11699
  async (identifier, prompt, options) => {
11643
11700
  if (options.autoUpdate !== false) {
11644
- await startSilentUpgrade("9.70.2");
11701
+ await startSilentUpgrade("9.70.3");
11645
11702
  }
11646
11703
  const { org, name, version } = parseIdentifier(identifier);
11647
11704
  let composeId;
@@ -13379,7 +13436,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
13379
13436
  withErrorHandler(
13380
13437
  async (prompt, options) => {
13381
13438
  if (options.autoUpdate !== false) {
13382
- const shouldExit = await checkAndUpgrade("9.70.2", prompt);
13439
+ const shouldExit = await checkAndUpgrade("9.70.3", prompt);
13383
13440
  if (shouldExit) {
13384
13441
  process.exit(0);
13385
13442
  }
@@ -18731,13 +18788,13 @@ var upgradeCommand = new Command94().name("upgrade").description("Upgrade vm0 CL
18731
18788
  if (latestVersion === null) {
18732
18789
  throw new Error("Could not check for updates. Please try again later.");
18733
18790
  }
18734
- if (latestVersion === "9.70.2") {
18735
- console.log(chalk86.green(`\u2713 Already up to date (${"9.70.2"})`));
18791
+ if (latestVersion === "9.70.3") {
18792
+ console.log(chalk86.green(`\u2713 Already up to date (${"9.70.3"})`));
18736
18793
  return;
18737
18794
  }
18738
18795
  console.log(
18739
18796
  chalk86.yellow(
18740
- `Current version: ${"9.70.2"} -> Latest version: ${latestVersion}`
18797
+ `Current version: ${"9.70.3"} -> Latest version: ${latestVersion}`
18741
18798
  )
18742
18799
  );
18743
18800
  console.log();
@@ -18764,7 +18821,7 @@ var upgradeCommand = new Command94().name("upgrade").description("Upgrade vm0 CL
18764
18821
  const success = await performUpgrade(packageManager);
18765
18822
  if (success) {
18766
18823
  console.log(
18767
- chalk86.green(`\u2713 Upgraded from ${"9.70.2"} to ${latestVersion}`)
18824
+ chalk86.green(`\u2713 Upgraded from ${"9.70.3"} to ${latestVersion}`)
18768
18825
  );
18769
18826
  return;
18770
18827
  }
@@ -18838,7 +18895,7 @@ var whoamiCommand = new Command95().name("whoami").description("Show current ide
18838
18895
 
18839
18896
  // src/index.ts
18840
18897
  var program = new Command96();
18841
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.70.2");
18898
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.70.3");
18842
18899
  program.addCommand(authCommand);
18843
18900
  program.addCommand(infoCommand);
18844
18901
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.70.2",
3
+ "version": "9.70.3",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",