@hubspot/cli 7.11.0-experimental.0 → 7.11.1-beta.0

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.
@@ -303,7 +303,7 @@ describe('commands/project/deploy', () => {
303
303
  });
304
304
  await projectDeployCommand.handler(args);
305
305
  expect(uiLogger.error).toHaveBeenCalledTimes(1);
306
- expect(uiLogger.error).toHaveBeenCalledWith(`The request for 'project deploy' in account ${args.derivedAccountId} failed due to a client error.`);
306
+ expect(uiLogger.error).toHaveBeenCalledWith(expect.stringContaining(`The request for 'project deploy' in account ${args.derivedAccountId} failed due to a client error.`));
307
307
  expect(processExitSpy).toHaveBeenCalledTimes(1);
308
308
  expect(processExitSpy).toHaveBeenCalledWith(EXIT_CODES.ERROR);
309
309
  });
package/lang/en.d.ts CHANGED
@@ -3661,6 +3661,7 @@ export declare const lib: {
3661
3661
  unknownErrorOccurred: string;
3662
3662
  configTimeoutErrorOccurred: (timeout: number, configSetCommand: string) => string;
3663
3663
  genericTimeoutErrorOccurred: string;
3664
+ additionalDebugContext: string;
3664
3665
  };
3665
3666
  suppressErrors: {
3666
3667
  platformVersionErrors: {
package/lang/en.js CHANGED
@@ -3683,6 +3683,7 @@ export const lib = {
3683
3683
  unknownErrorOccurred: 'An unknown error has occurred.',
3684
3684
  configTimeoutErrorOccurred: (timeout, configSetCommand) => `This error occurred because a request exceeded the default HTTP timeout of ${timeout}ms. To increase the default HTTP timeout, run ${uiCommandReference(configSetCommand)}.`,
3685
3685
  genericTimeoutErrorOccurred: 'This error occurred because an HTTP request timed out. Re-running the command may resolve this issue.',
3686
+ additionalDebugContext: chalk.bold(`For more information, run the command again with the ${uiCommandReference('--debug')} flag.`),
3686
3687
  },
3687
3688
  suppressErrors: {
3688
3689
  platformVersionErrors: {
@@ -14,13 +14,11 @@ export function logError(error, context) {
14
14
  if (shouldSuppressError(error, context)) {
15
15
  return;
16
16
  }
17
- if (isHubSpotHttpError(error) && 'context' in error) {
17
+ if (isHubSpotHttpError(error)) {
18
18
  if (shouldSuppressError(error, error.context)) {
19
19
  return;
20
20
  }
21
- }
22
- if (isHubSpotHttpError(error) && context) {
23
- error.updateContext(context);
21
+ error.updateContext(context || {}, lib.errorHandlers.index.additionalDebugContext);
24
22
  }
25
23
  if (isHubSpotHttpError(error) && isValidationError(error)) {
26
24
  uiLogger.error(error.formattedValidationErrors());
@@ -5,10 +5,6 @@ const server = new McpServer({
5
5
  name: 'HubSpot CLI MCP Server',
6
6
  version: '0.0.1',
7
7
  description: 'Helps perform tasks for local development of HubSpot projects.',
8
- capabilities: {
9
- tools: {},
10
- prompts: {},
11
- },
12
8
  });
13
9
  registerProjectTools(server);
14
10
  registerCmsTools(server);
@@ -51,17 +51,6 @@ describe('mcp-server/tools/project/CreateTestAccountTool', () => {
51
51
  }), expect.any(Function));
52
52
  expect(result).toBe(mockRegisteredTool);
53
53
  });
54
- it('should include all key information in description', () => {
55
- tool.register();
56
- const registerCall = mockMcpServer.registerTool.mock.calls[0];
57
- const config = registerCall[1];
58
- expect(config.description).toContain('test account');
59
- expect(config.description).toContain('WORKFLOW');
60
- expect(config.description).toContain('config file');
61
- expect(config.description).toContain('ALL account details');
62
- expect(config.description).toContain('non-interactive execution');
63
- expect(config.description).toContain('FREE, STARTER, PROFESSIONAL, ENTERPRISE');
64
- });
65
54
  });
66
55
  describe('handler', () => {
67
56
  describe('config file approach', () => {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@hubspot/cli",
3
- "version": "7.11.0-experimental.0",
3
+ "version": "7.11.1-beta.0",
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",
7
7
  "type": "module",
8
8
  "dependencies": {
9
- "@hubspot/local-dev-lib": "4.0.1",
9
+ "@hubspot/local-dev-lib": "4.0.2",
10
10
  "@hubspot/project-parsing-lib": "0.10.2",
11
11
  "@hubspot/serverless-dev-runtime": "7.0.7",
12
12
  "@hubspot/theme-preview-dev-server": "0.0.12",
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "optionalDependencies": {
70
70
  "@hubspot/cms-dev-server": "^1.2.1",
71
- "@modelcontextprotocol/sdk": "1.13.3"
71
+ "@modelcontextprotocol/sdk": "1.25.0"
72
72
  },
73
73
  "scripts": {
74
74
  "build": "tsx ./scripts/build.ts",