@hubspot/cli 7.5.4-beta.0 → 7.5.4-beta.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.
@@ -23,11 +23,11 @@ const yargsUtils_1 = require("../../lib/yargsUtils");
23
23
  const command = 'upload';
24
24
  const describe = (0, ui_1.uiBetaTag)((0, lang_1.i18n)(`commands.project.subcommands.upload.describe`), false);
25
25
  async function handler(args) {
26
- const { forceCreate, message, derivedAccountId, providedAccountId, skipValidation, profile, } = args;
26
+ const { forceCreate, message, derivedAccountId, skipValidation, profile } = args;
27
27
  const { projectConfig, projectDir } = await (0, config_2.getProjectConfig)();
28
28
  (0, config_2.validateProjectConfig)(projectConfig, projectDir);
29
- let targetAccountId = providedAccountId;
30
- if (!targetAccountId && (0, buildAndDeploy_1.useV3Api)(projectConfig.platformVersion)) {
29
+ let targetAccountId;
30
+ if ((0, buildAndDeploy_1.useV3Api)(projectConfig.platformVersion)) {
31
31
  targetAccountId = await (0, projectProfiles_1.loadAndValidateProfile)(projectConfig, projectDir, profile);
32
32
  }
33
33
  targetAccountId = targetAccountId || derivedAccountId;
@@ -18,7 +18,7 @@ const errorHandlers_1 = require("../../lib/errorHandlers");
18
18
  const command = 'validate';
19
19
  const describe = undefined;
20
20
  async function handler(args) {
21
- const { derivedAccountId, providedAccountId, profile } = args;
21
+ const { derivedAccountId, profile } = args;
22
22
  const { projectConfig, projectDir } = await (0, config_2.getProjectConfig)();
23
23
  if (!projectConfig) {
24
24
  logger_1.uiLogger.error(en_1.commands.project.validate.mustBeRanWithinAProject);
@@ -29,10 +29,7 @@ async function handler(args) {
29
29
  process.exit(exitCodes_1.EXIT_CODES.ERROR);
30
30
  }
31
31
  (0, config_2.validateProjectConfig)(projectConfig, projectDir);
32
- let targetAccountId = providedAccountId;
33
- if (!targetAccountId) {
34
- targetAccountId = await (0, projectProfiles_1.loadAndValidateProfile)(projectConfig, projectDir, profile);
35
- }
32
+ let targetAccountId = await (0, projectProfiles_1.loadAndValidateProfile)(projectConfig, projectDir, profile);
36
33
  targetAccountId = targetAccountId || derivedAccountId;
37
34
  const accountConfig = (0, config_1.getAccountConfig)(targetAccountId);
38
35
  const accountType = accountConfig && accountConfig.accountType;
package/lang/en.d.ts CHANGED
@@ -841,8 +841,8 @@ Global configuration replaces hubspot.config.yml, and you will be prompted to mi
841
841
  readonly failedToConfigureCursor: "Failed to configure Cursor";
842
842
  readonly configuredCursor: "Configured Cursor";
843
843
  readonly alreadyInstalled: "HubSpot CLI mcp server already installed, reinstalling";
844
- readonly configuringWindsurf: "Configuring Cursor...";
845
- readonly failedToConfigureWindsurf: "Failed to configure Cursor";
844
+ readonly configuringWindsurf: "Configuring Windsurf...";
845
+ readonly failedToConfigureWindsurf: "Failed to configure Windsurf";
846
846
  readonly configuredWindsurf: "Configured Windsurf";
847
847
  };
848
848
  readonly prompts: {
package/lang/en.js CHANGED
@@ -850,8 +850,8 @@ exports.commands = {
850
850
  failedToConfigureCursor: 'Failed to configure Cursor',
851
851
  configuredCursor: 'Configured Cursor',
852
852
  alreadyInstalled: 'HubSpot CLI mcp server already installed, reinstalling',
853
- configuringWindsurf: 'Configuring Cursor...',
854
- failedToConfigureWindsurf: 'Failed to configure Cursor',
853
+ configuringWindsurf: 'Configuring Windsurf...',
854
+ failedToConfigureWindsurf: 'Failed to configure Windsurf',
855
855
  configuredWindsurf: 'Configured Windsurf',
856
856
  },
857
857
  prompts: {
package/lib/mcp/setup.js CHANGED
@@ -20,6 +20,7 @@ const child_process_1 = require("child_process");
20
20
  const path_1 = __importDefault(require("path"));
21
21
  const os_1 = __importDefault(require("os"));
22
22
  const fs_extra_1 = __importDefault(require("fs-extra"));
23
+ const fs_1 = require("fs");
23
24
  const mcpServerName = 'hubspot-cli-mcp';
24
25
  const claudeCode = 'claude';
25
26
  const windsurf = 'windsurf';
@@ -107,7 +108,9 @@ function setupMcpConfigFile(config) {
107
108
  SpinniesManager_1.default.add('spinner', {
108
109
  text: config.configuringMessage,
109
110
  });
110
- fs_extra_1.default.ensureFileSync(config.configPath);
111
+ if (!(0, fs_1.existsSync)(config.configPath)) {
112
+ fs_extra_1.default.writeFileSync(config.configPath, JSON.stringify({}, null, 2));
113
+ }
111
114
  let mcpConfig = {};
112
115
  try {
113
116
  const configContent = fs_extra_1.default.readFileSync(config.configPath, 'utf8');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cli",
3
- "version": "7.5.4-beta.0",
3
+ "version": "7.5.4-beta.1",
4
4
  "description": "The official CLI for developing on HubSpot",
5
5
  "license": "Apache-2.0",
6
6
  "repository": "https://github.com/HubSpot/hubspot-cli",