@hubspot/cli 8.0.8-experimental.3 → 8.0.8-experimental.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.
@@ -71,6 +71,8 @@ describe('lib/commandSuggestion', () => {
71
71
  // Create a mock yargs builder with strict method
72
72
  const mockYargsBuilder = {
73
73
  strict: vi.fn().mockReturnThis(),
74
+ help: vi.fn().mockReturnThis(),
75
+ version: vi.fn().mockReturnThis(),
74
76
  };
75
77
  await commandModule.builder(mockYargsBuilder);
76
78
  expect(mockYargsBuilder.strict).toHaveBeenCalledWith(false);
@@ -18,12 +18,6 @@ export const commandSuggestionMappings = {
18
18
  'theme generate-selectors': 'hs cms theme generate-selectors',
19
19
  'theme marketplace-validate': 'hs cms theme marketplace-validate',
20
20
  'theme preview': 'hs cms theme preview',
21
- 'custom-object schema create': 'hs custom-object create-schema',
22
- 'custom-object schema delete': 'hs custom-object delete-schema',
23
- 'custom-object schema fetch-all': 'hs custom-object fetch-all-schemas',
24
- 'custom-object schema fetch': 'hs custom-object fetch-schema',
25
- 'custom-object schema list': 'hs custom-object list-schemas',
26
- 'custom-object schema update': 'hs custom-object update-schema',
27
21
  };
28
22
  function createCommandSuggestionHandler(newCommand) {
29
23
  return () => {
@@ -35,7 +29,7 @@ function createCommandSuggestion(oldCommand, newCommand) {
35
29
  return {
36
30
  command: oldCommand,
37
31
  builder: async (yargs) => {
38
- return yargs.strict(false);
32
+ return yargs.strict(false).help(false).version(false);
39
33
  },
40
34
  handler: createCommandSuggestionHandler(newCommand),
41
35
  };
package/lib/mcp/setup.js CHANGED
@@ -154,15 +154,7 @@ function setupMcpConfigFile(config) {
154
154
  if (!mcpConfig.mcpServers) {
155
155
  mcpConfig.mcpServers = {};
156
156
  }
157
- // Add or update HubSpot CLI MCP server
158
- const serverConfig = {
159
- command: config.mcpCommand.command,
160
- args: config.mcpCommand.args,
161
- };
162
- if (config.mcpCommand.env) {
163
- serverConfig.env = config.mcpCommand.env;
164
- }
165
- mcpConfig.mcpServers[mcpServerName] = serverConfig;
157
+ mcpConfig.mcpServers[mcpServerName] = config.mcpCommand;
166
158
  // Write the updated config
167
159
  fs.writeFileSync(config.configPath, JSON.stringify(mcpConfig, null, 2));
168
160
  SpinniesManager.succeed('spinner', {
@@ -186,12 +178,8 @@ export async function setupVsCode(mcpCommand = defaultMcpCommand) {
186
178
  const commandWithAgent = buildCommandWithAgentString(mcpCommand, vscode);
187
179
  const configObject = {
188
180
  name: mcpServerName,
189
- command: commandWithAgent.command,
190
- args: commandWithAgent.args,
181
+ ...commandWithAgent,
191
182
  };
192
- if (commandWithAgent.env) {
193
- configObject.env = commandWithAgent.env;
194
- }
195
183
  const mcpConfig = JSON.stringify(configObject);
196
184
  await execAsync(`code --add-mcp ${JSON.stringify(mcpConfig)}`);
197
185
  SpinniesManager.succeed('vsCode', {
@@ -216,47 +204,39 @@ export async function setupVsCode(mcpCommand = defaultMcpCommand) {
216
204
  }
217
205
  }
218
206
  export async function setupClaudeCode(mcpCommand = defaultMcpCommand) {
207
+ SpinniesManager.add('claudeCode', {
208
+ text: commands.mcp.setup.spinners.configuringClaudeCode,
209
+ });
219
210
  try {
220
- SpinniesManager.add('claudeCode', {
221
- text: commands.mcp.setup.spinners.configuringClaudeCode,
211
+ // Check if claude command is available
212
+ await execAsync('claude --version');
213
+ }
214
+ catch (e) {
215
+ SpinniesManager.fail('claudeCode', {
216
+ text: commands.mcp.setup.spinners.claudeCodeNotFound,
222
217
  });
223
- try {
224
- // Check if claude command is available
225
- await execAsync('claude --version');
226
- // Run claude mcp add command
227
- const commandWithAgent = buildCommandWithAgentString(mcpCommand, claudeCode);
228
- const configObject = {
229
- type: 'stdio',
230
- ...commandWithAgent,
231
- };
232
- const mcpConfig = JSON.stringify(configObject);
233
- const { stdout } = await execAsync('claude mcp list');
234
- if (stdout.includes(mcpServerName)) {
235
- SpinniesManager.update('claudeCode', {
236
- text: commands.mcp.setup.spinners.alreadyInstalled,
237
- });
238
- await execAsync(`claude mcp remove "${mcpServerName}" --scope user`);
239
- }
240
- await execAsync(`claude mcp add-json "${mcpServerName}" ${JSON.stringify(mcpConfig)} --scope user`);
241
- SpinniesManager.succeed('claudeCode', {
242
- text: commands.mcp.setup.spinners.configuredClaudeCode,
218
+ return false;
219
+ }
220
+ try {
221
+ // Run claude mcp add command
222
+ const commandWithAgent = buildCommandWithAgentString(mcpCommand, claudeCode);
223
+ const configObject = {
224
+ type: 'stdio',
225
+ ...commandWithAgent,
226
+ };
227
+ const mcpConfig = JSON.stringify(configObject);
228
+ const { stdout } = await execAsync('claude mcp list');
229
+ if (stdout.includes(mcpServerName)) {
230
+ SpinniesManager.update('claudeCode', {
231
+ text: commands.mcp.setup.spinners.alreadyInstalled,
243
232
  });
244
- return true;
245
- }
246
- catch (error) {
247
- if (error instanceof Error && error.message.includes('claude')) {
248
- SpinniesManager.fail('claudeCode', {
249
- text: commands.mcp.setup.spinners.claudeCodeNotFound,
250
- });
251
- }
252
- else {
253
- SpinniesManager.fail('claudeCode', {
254
- text: commands.mcp.setup.spinners.claudeCodeInstallFailed,
255
- });
256
- logError(error);
257
- }
258
- return false;
233
+ await execAsync(`claude mcp remove "${mcpServerName}" --scope user`);
259
234
  }
235
+ await execAsync(`claude mcp add-json "${mcpServerName}" ${JSON.stringify(mcpConfig)} --scope user`);
236
+ SpinniesManager.succeed('claudeCode', {
237
+ text: commands.mcp.setup.spinners.configuredClaudeCode,
238
+ });
239
+ return true;
260
240
  }
261
241
  catch (error) {
262
242
  SpinniesManager.fail('claudeCode', {
@@ -5,9 +5,26 @@ declare const inputSchemaZodObject: z.ZodObject<{
5
5
  absoluteProjectPath: z.ZodString;
6
6
  absoluteCurrentWorkingDirectory: z.ZodString;
7
7
  addApp: z.ZodBoolean;
8
- distribution: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"marketplace">, z.ZodLiteral<"private">]>>;
9
- auth: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"static">, z.ZodLiteral<"oauth">]>>;
10
- features: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"card">, z.ZodLiteral<"settings">, z.ZodLiteral<"app-function">, z.ZodLiteral<"webhooks">, z.ZodLiteral<"workflow-action">, z.ZodLiteral<"workflow-action-tool">, z.ZodLiteral<"app-object">, z.ZodLiteral<"app-event">, z.ZodLiteral<"scim">, z.ZodLiteral<"page">]>>>;
8
+ distribution: z.ZodOptional<z.ZodEnum<{
9
+ marketplace: "marketplace";
10
+ private: "private";
11
+ }>>;
12
+ auth: z.ZodOptional<z.ZodEnum<{
13
+ oauth: "oauth";
14
+ static: "static";
15
+ }>>;
16
+ features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
17
+ card: "card";
18
+ settings: "settings";
19
+ "app-event": "app-event";
20
+ page: "page";
21
+ "workflow-action-tool": "workflow-action-tool";
22
+ webhooks: "webhooks";
23
+ "workflow-action": "workflow-action";
24
+ "app-function": "app-function";
25
+ "app-object": "app-object";
26
+ scim: "scim";
27
+ }>>>;
11
28
  }, z.core.$strip>;
12
29
  export type AddFeatureInputSchema = z.infer<typeof inputSchemaZodObject>;
13
30
  export declare class AddFeatureToProjectTool extends Tool<AddFeatureInputSchema> {
@@ -15,17 +15,13 @@ const inputSchema = {
15
15
  .boolean()
16
16
  .describe('Should an app be added? If there is no app in the project, an app must be added to add a feature'),
17
17
  distribution: z
18
- .optional(z.union([
19
- z.literal(APP_DISTRIBUTION_TYPES.MARKETPLACE),
20
- z.literal(APP_DISTRIBUTION_TYPES.PRIVATE),
21
- ]))
22
- .describe('If not specified by the user, DO NOT choose for them. This cannot be changed after a project is uploaded. Private is used if you do not wish to distribute your app on the HubSpot marketplace. '),
18
+ .enum([APP_DISTRIBUTION_TYPES.MARKETPLACE, APP_DISTRIBUTION_TYPES.PRIVATE])
19
+ .describe('If not specified by the user, DO NOT choose for them. This cannot be changed after a project is uploaded. Private is used if you do not wish to distribute your app on the HubSpot marketplace. ')
20
+ .optional(),
23
21
  auth: z
24
- .optional(z.union([
25
- z.literal(APP_AUTH_TYPES.STATIC),
26
- z.literal(APP_AUTH_TYPES.OAUTH),
27
- ]))
28
- .describe('If not specified by the user, DO NOT choose for them. This cannot be changed after a project is uploaded. Static uses a static non changing authentication token, and is only available for private distribution. '),
22
+ .enum([APP_AUTH_TYPES.STATIC, APP_AUTH_TYPES.OAUTH])
23
+ .describe('If not specified by the user, DO NOT choose for them. This cannot be changed after a project is uploaded. Static uses a static non changing authentication token, and is only available for private distribution. ')
24
+ .optional(),
29
25
  features,
30
26
  };
31
27
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -5,10 +5,30 @@ declare const inputSchemaZodObject: z.ZodObject<{
5
5
  absoluteCurrentWorkingDirectory: z.ZodString;
6
6
  name: z.ZodOptional<z.ZodString>;
7
7
  destination: z.ZodString;
8
- projectBase: z.ZodUnion<readonly [z.ZodLiteral<"empty">, z.ZodLiteral<"app">]>;
9
- distribution: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"marketplace">, z.ZodLiteral<"private">]>>;
10
- auth: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"static">, z.ZodLiteral<"oauth">]>>>;
11
- features: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"card">, z.ZodLiteral<"settings">, z.ZodLiteral<"app-function">, z.ZodLiteral<"webhooks">, z.ZodLiteral<"workflow-action">, z.ZodLiteral<"workflow-action-tool">, z.ZodLiteral<"app-object">, z.ZodLiteral<"app-event">, z.ZodLiteral<"scim">, z.ZodLiteral<"page">]>>>;
8
+ projectBase: z.ZodEnum<{
9
+ app: "app";
10
+ empty: "empty";
11
+ }>;
12
+ distribution: z.ZodOptional<z.ZodEnum<{
13
+ marketplace: "marketplace";
14
+ private: "private";
15
+ }>>;
16
+ auth: z.ZodOptional<z.ZodEnum<{
17
+ oauth: "oauth";
18
+ static: "static";
19
+ }>>;
20
+ features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
21
+ card: "card";
22
+ settings: "settings";
23
+ "app-event": "app-event";
24
+ page: "page";
25
+ "workflow-action-tool": "workflow-action-tool";
26
+ webhooks: "webhooks";
27
+ "workflow-action": "workflow-action";
28
+ "app-function": "app-function";
29
+ "app-object": "app-object";
30
+ scim: "scim";
31
+ }>>>;
12
32
  }, z.core.$strip>;
13
33
  export type CreateProjectInputSchema = z.infer<typeof inputSchemaZodObject>;
14
34
  export declare class CreateProjectTool extends Tool<CreateProjectInputSchema> {
@@ -18,19 +18,14 @@ const inputSchema = {
18
18
  .string()
19
19
  .describe('DO NOT use the current directory unless the user has explicitly stated to do so. Relative path to the directory the project will be created in.'),
20
20
  projectBase: z
21
- .union([z.literal(EMPTY_PROJECT), z.literal(PROJECT_WITH_APP)])
21
+ .enum([EMPTY_PROJECT, PROJECT_WITH_APP])
22
22
  .describe('Empty will create an empty project, and app will create a project with an app inside of it.'),
23
23
  distribution: z
24
- .optional(z.union([
25
- z.literal(APP_DISTRIBUTION_TYPES.MARKETPLACE),
26
- z.literal(APP_DISTRIBUTION_TYPES.PRIVATE),
27
- ]))
28
- .describe('If not specified by the user, DO NOT choose for them. This cannot be changed after a project is uploaded. Private is used if you do not wish to distribute your app on the HubSpot marketplace. '),
24
+ .enum([APP_DISTRIBUTION_TYPES.MARKETPLACE, APP_DISTRIBUTION_TYPES.PRIVATE])
25
+ .describe('If not specified by the user, DO NOT choose for them. This cannot be changed after a project is uploaded. Private is used if you do not wish to distribute your app on the HubSpot marketplace. ')
26
+ .optional(),
29
27
  auth: z
30
- .optional(z.union([
31
- z.literal(APP_AUTH_TYPES.STATIC),
32
- z.literal(APP_AUTH_TYPES.OAUTH),
33
- ]))
28
+ .enum([APP_AUTH_TYPES.STATIC, APP_AUTH_TYPES.OAUTH])
34
29
  .describe('If not specified by the user, DO NOT choose for them. This cannot be changed after a project is uploaded. Static uses a static non changing authentication token, and is only available for private distribution. ')
35
30
  .optional(),
36
31
  features,
@@ -12,18 +12,15 @@ const inputSchema = {
12
12
  absoluteCurrentWorkingDirectory,
13
13
  appId: z
14
14
  .string()
15
- .regex(/^\d+$/, 'App ID must be a numeric string')
16
- .describe('The numeric app ID as a string (e.g., "3003909"). Use get-apps-info to find available app IDs.'),
15
+ .describe('The numeric app ID as a string (e.g., "3003909"). Must contain only digits. Use get-apps-info to find available app IDs.'),
17
16
  startDate: z
18
17
  .string()
19
- .regex(/^\d{4}-\d{2}-\d{2}$/, 'Start date must be in YYYY-MM-DD format')
20
- .optional()
21
- .describe('Start date for the usage patterns query in ISO 8601 format (e.g., 2025-01-01).'),
18
+ .describe('Start date for the usage patterns query in YYYY-MM-DD format (e.g., 2025-01-01).')
19
+ .optional(),
22
20
  endDate: z
23
21
  .string()
24
- .regex(/^\d{4}-\d{2}-\d{2}$/, 'End date must be in YYYY-MM-DD format')
25
- .optional()
26
- .describe('End date for the usage patterns query in ISO 8601 format (e.g., 2025-12-31).'),
22
+ .describe('End date for the usage patterns query in YYYY-MM-DD format (e.g., 2025-12-31).')
23
+ .optional(),
27
24
  };
28
25
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
29
26
  const inputSchemaZodObject = z.object({ ...inputSchema });
@@ -5,12 +5,12 @@ declare const inputSchemaZodObject: z.ZodObject<{
5
5
  absoluteProjectPath: z.ZodString;
6
6
  absoluteCurrentWorkingDirectory: z.ZodString;
7
7
  buildId: z.ZodNumber;
8
- logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8
+ logLevel: z.ZodOptional<z.ZodEnum<{
9
9
  ERROR: "ERROR";
10
10
  WARN: "WARN";
11
11
  INFO: "INFO";
12
12
  ALL: "ALL";
13
- }>>>;
13
+ }>>;
14
14
  }, z.core.$strip>;
15
15
  export type GetBuildLogsInputSchema = z.infer<typeof inputSchemaZodObject>;
16
16
  export declare class GetBuildLogsTool extends Tool<GetBuildLogsInputSchema> {
@@ -18,9 +18,8 @@ const inputSchema = {
18
18
  .describe('Build ID to fetch logs for. Use get-build-status to find recent build IDs.'),
19
19
  logLevel: z
20
20
  .enum(['ERROR', 'WARN', 'INFO', 'ALL'])
21
- .optional()
22
- .default('ALL')
23
- .describe('Filter logs by level. ERROR: Show only errors, WARN: Show only warnings, INFO: Show only info, ALL: Show all logs.'),
21
+ .describe('Filter logs by level. ERROR: Show only errors, WARN: Show only warnings, INFO: Show only info, ALL: Show all logs. Defaults to ALL if not specified.')
22
+ .optional(),
24
23
  };
25
24
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
26
25
  const inputSchemaZodObject = z.object({ ...inputSchema });
@@ -85,14 +84,14 @@ export class GetBuildLogsTool extends Tool {
85
84
  if (allLogs.length === 0) {
86
85
  return formatTextContents(absoluteCurrentWorkingDirectory, `No logs found for build #${buildId} in project '${projectName}'.`);
87
86
  }
88
- const filteredLogs = filterLogsByLevel(allLogs, logLevel);
87
+ const resolvedLogLevel = logLevel || 'ALL';
88
+ const filteredLogs = filterLogsByLevel(allLogs, resolvedLogLevel);
89
89
  let output;
90
90
  if (filteredLogs.length === 0) {
91
- // No logs match filter, show all logs instead
92
- output = `No ${logLevel} level logs found for build #${buildId} in '${projectName}'.\nShowing all logs instead:\n\n${formatLogs(allLogs)}`;
91
+ output = `No ${resolvedLogLevel} level logs found for build #${buildId} in '${projectName}'.\nShowing all logs instead:\n\n${formatLogs(allLogs)}`;
93
92
  }
94
93
  else {
95
- output = `Logs for build #${buildId} in '${projectName}' (${logLevel} level):\n\n${formatLogs(filteredLogs)}`;
94
+ output = `Logs for build #${buildId} in '${projectName}' (${resolvedLogLevel} level):\n\n${formatLogs(filteredLogs)}`;
96
95
  }
97
96
  return formatTextContents(absoluteCurrentWorkingDirectory, output);
98
97
  }
@@ -5,7 +5,7 @@ declare const inputSchemaZodObject: z.ZodObject<{
5
5
  absoluteProjectPath: z.ZodString;
6
6
  absoluteCurrentWorkingDirectory: z.ZodString;
7
7
  buildId: z.ZodOptional<z.ZodNumber>;
8
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
8
+ limit: z.ZodOptional<z.ZodNumber>;
9
9
  }, z.core.$strip>;
10
10
  export type GetBuildStatusInputSchema = z.infer<typeof inputSchemaZodObject>;
11
11
  export declare class GetBuildStatusTool extends Tool<GetBuildStatusInputSchema> {
@@ -19,9 +19,8 @@ const inputSchema = {
19
19
  .describe('Optional: Specific build ID to inspect. If omitted, shows recent builds to help identify the latest build.'),
20
20
  limit: z
21
21
  .number()
22
- .optional()
23
- .default(3)
24
- .describe('Number of recent builds to fetch when buildId is not specified.'),
22
+ .describe('Number of recent builds to fetch when buildId is not specified. Defaults to 3 if not specified.')
23
+ .optional(),
25
24
  };
26
25
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
27
26
  const inputSchemaZodObject = z.object({ ...inputSchema });
@@ -127,7 +126,7 @@ export class GetBuildStatusTool extends Tool {
127
126
  }
128
127
  else {
129
128
  const response = await fetchProjectBuilds(accountId, projectName, {
130
- limit,
129
+ limit: limit || 3,
131
130
  });
132
131
  const { results } = response.data;
133
132
  if (!results || results.length === 0) {
@@ -3,7 +3,12 @@ import { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.
3
3
  import { z } from 'zod';
4
4
  declare const inputSchemaZodObject: z.ZodObject<{
5
5
  absoluteCurrentWorkingDirectory: z.ZodString;
6
- command: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"hs init">, z.ZodLiteral<"hs auth">, z.ZodLiteral<"hs project create">, z.ZodLiteral<"hs project upload">]>>;
6
+ command: z.ZodOptional<z.ZodEnum<{
7
+ "hs auth": "hs auth";
8
+ "hs project create": "hs project create";
9
+ "hs project upload": "hs project upload";
10
+ "hs init": "hs init";
11
+ }>>;
7
12
  }, z.core.$strip>;
8
13
  type InputSchemaType = z.infer<typeof inputSchemaZodObject>;
9
14
  export declare class GuidedWalkthroughTool extends Tool<InputSchemaType> {
@@ -14,12 +14,7 @@ const nextCommands = {
14
14
  const inputSchema = {
15
15
  absoluteCurrentWorkingDirectory,
16
16
  command: z
17
- .union([
18
- z.literal('hs init'),
19
- z.literal('hs auth'),
20
- z.literal('hs project create'),
21
- z.literal('hs project upload'),
22
- ])
17
+ .enum(['hs init', 'hs auth', 'hs project create', 'hs project upload'])
23
18
  .describe('The command to learn more about. Start with `hs init`')
24
19
  .optional(),
25
20
  };
@@ -1,5 +1,4 @@
1
1
  import { GetApiUsagePatternsByAppIdTool } from '../GetApiUsagePatternsByAppIdTool.js';
2
- import { z } from 'zod';
3
2
  import { getConfigDefaultAccountIfExists } from '@hubspot/local-dev-lib/config';
4
3
  import { http } from '@hubspot/local-dev-lib/http';
5
4
  import { isHubSpotHttpError } from '@hubspot/local-dev-lib/errors/index';
@@ -52,37 +51,6 @@ describe('mcp-server/tools/project/GetApiUsagePatternsByAppIdTool', () => {
52
51
  expect(result).toBe(mockRegisteredTool);
53
52
  });
54
53
  });
55
- describe('input validation', () => {
56
- const inputSchema = z.object({
57
- appId: z
58
- .string()
59
- .describe('The application ID to get API usage patterns for.'),
60
- startDate: z
61
- .string()
62
- .regex(/^\d{4}-\d{2}-\d{2}$/, 'Start date must be in YYYY-MM-DD format')
63
- .optional()
64
- .describe('Start date for the usage patterns query in ISO 8601 format (e.g., 2025-01-01).'),
65
- endDate: z
66
- .string()
67
- .regex(/^\d{4}-\d{2}-\d{2}$/, 'End date must be in YYYY-MM-DD format')
68
- .optional()
69
- .describe('End date for the usage patterns query in ISO 8601 format (e.g., 2025-12-31).'),
70
- });
71
- it('should validate date format correctly', () => {
72
- const validInput = {
73
- appId: '12345',
74
- startDate: '2025-01-01',
75
- endDate: '2025-12-31',
76
- };
77
- const invalidInput = {
78
- appId: '12345',
79
- startDate: '2025-1-1',
80
- endDate: '2025-12-31T00:00:00Z',
81
- };
82
- expect(() => inputSchema.parse(validInput)).not.toThrow();
83
- expect(() => inputSchema.parse(invalidInput)).toThrow();
84
- });
85
- });
86
54
  describe('handler', () => {
87
55
  const input = {
88
56
  absoluteCurrentWorkingDirectory: '/test/dir',
@@ -1,6 +1,17 @@
1
1
  import z from 'zod';
2
2
  export declare const absoluteProjectPath: z.ZodString;
3
3
  export declare const absoluteCurrentWorkingDirectory: z.ZodString;
4
- export declare const features: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"card">, z.ZodLiteral<"settings">, z.ZodLiteral<"app-function">, z.ZodLiteral<"webhooks">, z.ZodLiteral<"workflow-action">, z.ZodLiteral<"workflow-action-tool">, z.ZodLiteral<"app-object">, z.ZodLiteral<"app-event">, z.ZodLiteral<"scim">, z.ZodLiteral<"page">]>>>;
4
+ export declare const features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5
+ card: "card";
6
+ settings: "settings";
7
+ "app-event": "app-event";
8
+ page: "page";
9
+ "workflow-action-tool": "workflow-action-tool";
10
+ webhooks: "webhooks";
11
+ "workflow-action": "workflow-action";
12
+ "app-function": "app-function";
13
+ "app-object": "app-object";
14
+ scim: "scim";
15
+ }>>>;
5
16
  export declare const docsSearchQuery: z.ZodString;
6
17
  export declare const docUrl: z.ZodString;
@@ -6,23 +6,19 @@ export const absoluteCurrentWorkingDirectory = z
6
6
  .string()
7
7
  .describe('The absolute path to the current working directory.');
8
8
  export const features = z
9
- .array(z.union([
10
- z.literal('card'),
11
- z.literal('settings'),
12
- z
13
- .literal('app-function')
14
- .describe('Also known as a public serverless function'),
15
- z.literal('webhooks'),
16
- z
17
- .literal('workflow-action')
18
- .describe('Also known as a custom workflow action.'),
19
- z.literal('workflow-action-tool').describe('Also known as agent tools.'),
20
- z.literal('app-object'),
21
- z.literal('app-event'),
22
- z.literal('scim'),
23
- z.literal('page'),
9
+ .array(z.enum([
10
+ 'card',
11
+ 'settings',
12
+ 'app-function',
13
+ 'webhooks',
14
+ 'workflow-action',
15
+ 'workflow-action-tool',
16
+ 'app-object',
17
+ 'app-event',
18
+ 'scim',
19
+ 'page',
24
20
  ]))
25
- .describe('The features to include in the project, multiple options can be selected')
21
+ .describe('The features to include in the project, multiple options can be selected. "app-function" is also known as a public serverless function. "workflow-action" is also known as a custom workflow action. "workflow-action-tool" is also known as agent tools.')
26
22
  .optional();
27
23
  export const docsSearchQuery = z
28
24
  .string()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cli",
3
- "version": "8.0.8-experimental.3",
3
+ "version": "8.0.8-experimental.5",
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",