@hubspot/cli 7.7.32-experimental.0 → 7.7.34-experimental.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.
- package/commands/app/__tests__/install.test.js +47 -0
- package/commands/app/install.d.ts +8 -0
- package/commands/app/install.js +122 -0
- package/commands/app.js +6 -1
- package/commands/getStarted.js +7 -20
- package/commands/project/__tests__/add.test.js +3 -5
- package/commands/project/__tests__/deploy.test.js +3 -2
- package/commands/project/add.js +2 -4
- package/commands/project/deploy.js +9 -61
- package/commands/project/dev/index.js +1 -1
- package/commands/project/dev/unifiedFlow.js +4 -1
- package/commands/project/upload.d.ts +2 -2
- package/commands/project/upload.js +3 -3
- package/commands/project/validate.js +1 -1
- package/commands/project/watch.js +2 -2
- package/commands/testAccount/create.js +3 -0
- package/lang/en.d.ts +30 -4
- package/lang/en.js +31 -5
- package/lib/__tests__/hasFeature.test.js +145 -7
- package/lib/__tests__/importData.test.js +1 -1
- package/lib/app/migrate.js +9 -2
- package/lib/constants.d.ts +2 -0
- package/lib/constants.js +2 -0
- package/lib/errorHandlers/index.d.ts +4 -0
- package/lib/errorHandlers/index.js +1 -1
- package/lib/hasFeature.js +6 -0
- package/lib/importData.js +1 -1
- package/lib/mcp/setup.js +1 -1
- package/lib/projectProfiles.d.ts +1 -1
- package/lib/projectProfiles.js +10 -2
- package/lib/projects/__tests__/AppDevModeInterface.test.js +61 -44
- package/lib/projects/__tests__/LocalDevProcess.test.js +1 -0
- package/lib/projects/__tests__/deploy.test.d.ts +1 -0
- package/lib/projects/__tests__/deploy.test.js +164 -0
- package/lib/projects/__tests__/platformVersion.test.d.ts +1 -0
- package/lib/projects/__tests__/{buildAndDeploy.test.js → platformVersion.test.js} +2 -2
- package/lib/projects/add/__tests__/legacyAddComponent.test.js +49 -6
- package/lib/projects/add/__tests__/v3AddComponent.test.js +71 -1
- package/lib/projects/add/legacyAddComponent.d.ts +1 -1
- package/lib/projects/add/legacyAddComponent.js +5 -1
- package/lib/projects/add/v3AddComponent.d.ts +1 -0
- package/lib/projects/add/v3AddComponent.js +2 -2
- package/lib/projects/create/__tests__/v3.test.js +97 -9
- package/lib/projects/create/index.js +2 -2
- package/lib/projects/create/legacy.js +1 -1
- package/lib/projects/create/v3.d.ts +2 -2
- package/lib/projects/create/v3.js +35 -12
- package/lib/projects/deploy.d.ts +13 -0
- package/lib/projects/deploy.js +63 -0
- package/lib/projects/localDev/AppDevModeInterface.d.ts +0 -2
- package/lib/projects/localDev/AppDevModeInterface.js +65 -36
- package/lib/projects/localDev/DevServerManagerV2.js +1 -0
- package/lib/projects/localDev/LocalDevProcess.js +3 -1
- package/lib/projects/localDev/LocalDevState.d.ts +5 -2
- package/lib/projects/localDev/LocalDevState.js +9 -1
- package/lib/projects/localDev/helpers/project.d.ts +2 -2
- package/lib/projects/localDev/helpers/project.js +6 -7
- package/lib/projects/platformVersion.d.ts +1 -0
- package/lib/projects/platformVersion.js +10 -0
- package/lib/projects/{buildAndDeploy.d.ts → pollProjectBuildAndDeploy.d.ts} +0 -1
- package/lib/projects/{buildAndDeploy.js → pollProjectBuildAndDeploy.js} +0 -10
- package/lib/projects/structure.d.ts +2 -2
- package/lib/projects/upload.d.ts +2 -1
- package/lib/projects/upload.js +2 -1
- package/lib/projects/urls.d.ts +1 -0
- package/lib/projects/urls.js +3 -0
- package/lib/prompts/__tests__/projectAddPrompt.test.d.ts +1 -0
- package/lib/prompts/__tests__/projectAddPrompt.test.js +143 -0
- package/lib/prompts/__tests__/selectProjectTemplatePrompt.test.d.ts +1 -0
- package/lib/prompts/__tests__/selectProjectTemplatePrompt.test.js +160 -0
- package/lib/prompts/createDeveloperTestAccountConfigPrompt.js +1 -0
- package/lib/prompts/importDataFilePathPrompt.js +4 -2
- package/lib/prompts/installAppPrompt.d.ts +6 -1
- package/lib/prompts/installAppPrompt.js +6 -1
- package/lib/prompts/projectAddPrompt.js +1 -1
- package/lib/prompts/selectProjectTemplatePrompt.js +1 -1
- package/mcp-server/tools/cms/HsCreateFunctionTool.js +1 -1
- package/mcp-server/tools/cms/HsCreateModuleTool.js +1 -1
- package/mcp-server/tools/cms/HsCreateTemplateTool.js +1 -1
- package/mcp-server/tools/cms/HsFunctionLogsTool.d.ts +32 -0
- package/mcp-server/tools/cms/HsFunctionLogsTool.js +76 -0
- package/mcp-server/tools/cms/HsListFunctionsTool.js +1 -1
- package/mcp-server/tools/cms/HsListTool.js +1 -1
- package/mcp-server/tools/cms/__tests__/HsCreateFunctionTool.test.js +1 -1
- package/mcp-server/tools/cms/__tests__/HsCreateModuleTool.test.js +1 -1
- package/mcp-server/tools/cms/__tests__/HsCreateTemplateTool.test.js +1 -1
- package/mcp-server/tools/cms/__tests__/HsFunctionLogsTool.test.d.ts +1 -0
- package/mcp-server/tools/cms/__tests__/HsFunctionLogsTool.test.js +183 -0
- package/mcp-server/tools/cms/__tests__/HsListFunctionsTool.test.js +1 -1
- package/mcp-server/tools/cms/__tests__/HsListTool.test.js +1 -1
- package/mcp-server/tools/index.js +2 -0
- package/mcp-server/tools/project/AddFeatureToProjectTool.d.ts +3 -3
- package/mcp-server/tools/project/AddFeatureToProjectTool.js +3 -3
- package/mcp-server/tools/project/CreateProjectTool.d.ts +3 -3
- package/mcp-server/tools/project/CreateProjectTool.js +5 -5
- package/mcp-server/tools/project/DeployProjectTool.js +1 -1
- package/mcp-server/tools/project/DocFetchTool.js +2 -2
- package/mcp-server/tools/project/DocsSearchTool.js +2 -2
- package/mcp-server/tools/project/GetConfigValuesTool.js +4 -4
- package/mcp-server/tools/project/GuidedWalkthroughTool.js +1 -1
- package/mcp-server/tools/project/UploadProjectTools.js +2 -2
- package/mcp-server/tools/project/ValidateProjectTool.js +1 -1
- package/mcp-server/tools/project/__tests__/AddFeatureToProjectTool.test.js +1 -1
- package/mcp-server/tools/project/__tests__/CreateProjectTool.test.js +1 -1
- package/mcp-server/tools/project/__tests__/DeployProjectTool.test.js +1 -1
- package/mcp-server/tools/project/__tests__/DocFetchTool.test.js +2 -2
- package/mcp-server/tools/project/__tests__/DocsSearchTool.test.js +2 -2
- package/mcp-server/tools/project/__tests__/GetConfigValuesTool.test.js +1 -1
- package/mcp-server/tools/project/__tests__/GuidedWalkthroughTool.test.js +1 -1
- package/mcp-server/tools/project/__tests__/UploadProjectTools.test.js +1 -1
- package/mcp-server/tools/project/__tests__/ValidateProjectTool.test.js +1 -1
- package/mcp-server/tools/project/constants.d.ts +1 -1
- package/mcp-server/tools/project/constants.js +14 -6
- package/package.json +3 -3
- package/types/LocalDev.d.ts +2 -1
- package/types/Projects.d.ts +1 -0
- package/types/Yargs.d.ts +1 -1
- /package/{lib/projects/__tests__/buildAndDeploy.test.d.ts → commands/app/__tests__/install.test.d.ts} +0 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
|
2
|
+
import { HsFunctionLogsTool } from '../HsFunctionLogsTool.js';
|
|
3
|
+
import { runCommandInDir } from '../../../utils/project.js';
|
|
4
|
+
import { addFlag } from '../../../utils/command.js';
|
|
5
|
+
vi.mock('@modelcontextprotocol/sdk/server/mcp.js');
|
|
6
|
+
vi.mock('../../../utils/project');
|
|
7
|
+
vi.mock('../../../utils/command');
|
|
8
|
+
vi.mock('../../../utils/toolUsageTracking', () => ({
|
|
9
|
+
trackToolUsage: vi.fn(),
|
|
10
|
+
}));
|
|
11
|
+
const mockRunCommandInDir = runCommandInDir;
|
|
12
|
+
const mockAddFlag = addFlag;
|
|
13
|
+
describe('HsFunctionLogsTool', () => {
|
|
14
|
+
let mockMcpServer;
|
|
15
|
+
let tool;
|
|
16
|
+
let mockRegisteredTool;
|
|
17
|
+
beforeEach(() => {
|
|
18
|
+
vi.clearAllMocks();
|
|
19
|
+
// @ts-expect-error Not mocking the whole server
|
|
20
|
+
mockMcpServer = {
|
|
21
|
+
registerTool: vi.fn(),
|
|
22
|
+
};
|
|
23
|
+
mockRegisteredTool = {};
|
|
24
|
+
mockMcpServer.registerTool.mockReturnValue(mockRegisteredTool);
|
|
25
|
+
tool = new HsFunctionLogsTool(mockMcpServer);
|
|
26
|
+
});
|
|
27
|
+
describe('register', () => {
|
|
28
|
+
it('should register the tool with the MCP server', () => {
|
|
29
|
+
const result = tool.register();
|
|
30
|
+
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('get-cms-serverless-function-logs', expect.objectContaining({
|
|
31
|
+
title: 'Get HubSpot CMS serverless function logs for an endpoint',
|
|
32
|
+
description: 'Retrieve logs for HubSpot CMS serverless functions. Use this tool to help debug issues with serverless functions by reading the production logs. Supports various options like latest, compact, and limiting results. Use after listing functions with list-cms-serverless-functions to get the endpoint path.',
|
|
33
|
+
inputSchema: expect.any(Object),
|
|
34
|
+
}), expect.any(Function));
|
|
35
|
+
expect(result).toBe(mockRegisteredTool);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
describe('handler', () => {
|
|
39
|
+
it('should execute basic hs logs command with endpoint', async () => {
|
|
40
|
+
mockRunCommandInDir.mockResolvedValue({
|
|
41
|
+
stdout: '2023-01-01 10:00:00 INFO Function executed successfully',
|
|
42
|
+
stderr: '',
|
|
43
|
+
});
|
|
44
|
+
const result = await tool.handler({
|
|
45
|
+
absoluteCurrentWorkingDirectory: '/test/dir',
|
|
46
|
+
endpoint: 'my-function',
|
|
47
|
+
});
|
|
48
|
+
expect(mockRunCommandInDir).toHaveBeenCalledWith('/test/dir', 'hs logs my-function');
|
|
49
|
+
expect(result.content).toHaveLength(2);
|
|
50
|
+
expect(result.content[0].text).toContain('Function executed successfully');
|
|
51
|
+
expect(result.content[1].text).toBe('');
|
|
52
|
+
});
|
|
53
|
+
it('should strip leading slash from endpoint', async () => {
|
|
54
|
+
mockRunCommandInDir.mockResolvedValue({
|
|
55
|
+
stdout: '2023-01-01 10:00:00 INFO Function executed successfully',
|
|
56
|
+
stderr: '',
|
|
57
|
+
});
|
|
58
|
+
const result = await tool.handler({
|
|
59
|
+
absoluteCurrentWorkingDirectory: '/test/dir',
|
|
60
|
+
endpoint: '/api/my-endpoint',
|
|
61
|
+
});
|
|
62
|
+
expect(mockRunCommandInDir).toHaveBeenCalledWith('/test/dir', 'hs logs api/my-endpoint');
|
|
63
|
+
expect(result.content).toHaveLength(2);
|
|
64
|
+
expect(result.content[0].text).toContain('Function executed successfully');
|
|
65
|
+
expect(result.content[1].text).toBe('');
|
|
66
|
+
});
|
|
67
|
+
it('should execute hs logs command with latest flag', async () => {
|
|
68
|
+
mockAddFlag.mockReturnValue('hs logs my-endpoint --latest');
|
|
69
|
+
mockRunCommandInDir.mockResolvedValue({
|
|
70
|
+
stdout: '2023-01-01 10:00:00 INFO Latest log entry',
|
|
71
|
+
stderr: '',
|
|
72
|
+
});
|
|
73
|
+
const result = await tool.handler({
|
|
74
|
+
absoluteCurrentWorkingDirectory: '/test/dir',
|
|
75
|
+
endpoint: 'my-endpoint',
|
|
76
|
+
latest: true,
|
|
77
|
+
});
|
|
78
|
+
expect(mockAddFlag).toHaveBeenCalledWith('hs logs my-endpoint', 'latest', true);
|
|
79
|
+
expect(mockRunCommandInDir).toHaveBeenCalledWith('/test/dir', 'hs logs my-endpoint --latest');
|
|
80
|
+
expect(result.content).toHaveLength(2);
|
|
81
|
+
expect(result.content[0].text).toContain('Latest log entry');
|
|
82
|
+
expect(result.content[1].text).toBe('');
|
|
83
|
+
});
|
|
84
|
+
it('should execute hs logs command with compact flag', async () => {
|
|
85
|
+
mockAddFlag.mockReturnValue('hs logs my-endpoint --compact');
|
|
86
|
+
mockRunCommandInDir.mockResolvedValue({
|
|
87
|
+
stdout: 'compact log output',
|
|
88
|
+
stderr: '',
|
|
89
|
+
});
|
|
90
|
+
const result = await tool.handler({
|
|
91
|
+
absoluteCurrentWorkingDirectory: '/test/dir',
|
|
92
|
+
endpoint: 'my-endpoint',
|
|
93
|
+
compact: true,
|
|
94
|
+
});
|
|
95
|
+
expect(mockAddFlag).toHaveBeenCalledWith('hs logs my-endpoint', 'compact', true);
|
|
96
|
+
expect(mockRunCommandInDir).toHaveBeenCalledWith('/test/dir', 'hs logs my-endpoint --compact');
|
|
97
|
+
expect(result.content).toHaveLength(2);
|
|
98
|
+
expect(result.content[0].text).toContain('compact log output');
|
|
99
|
+
expect(result.content[1].text).toBe('');
|
|
100
|
+
});
|
|
101
|
+
it('should execute hs logs command with limit parameter', async () => {
|
|
102
|
+
mockAddFlag.mockReturnValue('hs logs my-endpoint --limit 10');
|
|
103
|
+
mockRunCommandInDir.mockResolvedValue({
|
|
104
|
+
stdout: 'limited log entries',
|
|
105
|
+
stderr: '',
|
|
106
|
+
});
|
|
107
|
+
const result = await tool.handler({
|
|
108
|
+
absoluteCurrentWorkingDirectory: '/test/dir',
|
|
109
|
+
endpoint: 'my-endpoint',
|
|
110
|
+
limit: 10,
|
|
111
|
+
});
|
|
112
|
+
expect(mockAddFlag).toHaveBeenCalledWith('hs logs my-endpoint', 'limit', 10);
|
|
113
|
+
expect(mockRunCommandInDir).toHaveBeenCalledWith('/test/dir', 'hs logs my-endpoint --limit 10');
|
|
114
|
+
expect(result.content).toHaveLength(2);
|
|
115
|
+
expect(result.content[0].text).toContain('limited log entries');
|
|
116
|
+
expect(result.content[1].text).toBe('');
|
|
117
|
+
});
|
|
118
|
+
it('should execute hs logs command with account parameter', async () => {
|
|
119
|
+
mockAddFlag.mockReturnValue('hs logs my-endpoint --account test-account');
|
|
120
|
+
mockRunCommandInDir.mockResolvedValue({
|
|
121
|
+
stdout: 'account-specific logs',
|
|
122
|
+
stderr: '',
|
|
123
|
+
});
|
|
124
|
+
const result = await tool.handler({
|
|
125
|
+
absoluteCurrentWorkingDirectory: '/test/dir',
|
|
126
|
+
endpoint: 'my-endpoint',
|
|
127
|
+
account: 'test-account',
|
|
128
|
+
});
|
|
129
|
+
expect(mockAddFlag).toHaveBeenCalledWith('hs logs my-endpoint', 'account', 'test-account');
|
|
130
|
+
expect(mockRunCommandInDir).toHaveBeenCalledWith('/test/dir', 'hs logs my-endpoint --account test-account');
|
|
131
|
+
expect(result.content).toHaveLength(2);
|
|
132
|
+
expect(result.content[0].text).toContain('account-specific logs');
|
|
133
|
+
expect(result.content[1].text).toBe('');
|
|
134
|
+
});
|
|
135
|
+
it('should execute hs logs command with multiple parameters', async () => {
|
|
136
|
+
mockAddFlag
|
|
137
|
+
.mockReturnValueOnce('hs logs my-endpoint --latest')
|
|
138
|
+
.mockReturnValueOnce('hs logs my-endpoint --latest --compact')
|
|
139
|
+
.mockReturnValueOnce('hs logs my-endpoint --latest --compact --account test-account');
|
|
140
|
+
mockRunCommandInDir.mockResolvedValue({
|
|
141
|
+
stdout: 'latest compact logs',
|
|
142
|
+
stderr: '',
|
|
143
|
+
});
|
|
144
|
+
const result = await tool.handler({
|
|
145
|
+
absoluteCurrentWorkingDirectory: '/test/dir',
|
|
146
|
+
endpoint: 'my-endpoint',
|
|
147
|
+
latest: true,
|
|
148
|
+
compact: true,
|
|
149
|
+
account: 'test-account',
|
|
150
|
+
});
|
|
151
|
+
expect(mockAddFlag).toHaveBeenCalledTimes(3);
|
|
152
|
+
expect(mockAddFlag).toHaveBeenNthCalledWith(1, 'hs logs my-endpoint', 'latest', true);
|
|
153
|
+
expect(mockAddFlag).toHaveBeenNthCalledWith(2, 'hs logs my-endpoint --latest', 'compact', true);
|
|
154
|
+
expect(mockAddFlag).toHaveBeenNthCalledWith(3, 'hs logs my-endpoint --latest --compact', 'account', 'test-account');
|
|
155
|
+
expect(mockRunCommandInDir).toHaveBeenCalledWith('/test/dir', 'hs logs my-endpoint --latest --compact --account test-account');
|
|
156
|
+
expect(result.content).toHaveLength(2);
|
|
157
|
+
expect(result.content[0].text).toContain('latest compact logs');
|
|
158
|
+
expect(result.content[1].text).toBe('');
|
|
159
|
+
});
|
|
160
|
+
it('should handle command execution errors', async () => {
|
|
161
|
+
mockRunCommandInDir.mockRejectedValue(new Error('Function not found'));
|
|
162
|
+
const result = await tool.handler({
|
|
163
|
+
absoluteCurrentWorkingDirectory: '/test/dir',
|
|
164
|
+
endpoint: 'non-existent-function',
|
|
165
|
+
});
|
|
166
|
+
expect(result.content).toHaveLength(1);
|
|
167
|
+
expect(result.content[0].text).toContain('Error executing hs logs command: Function not found');
|
|
168
|
+
});
|
|
169
|
+
it('should handle stderr output', async () => {
|
|
170
|
+
mockRunCommandInDir.mockResolvedValue({
|
|
171
|
+
stdout: 'function logs',
|
|
172
|
+
stderr: 'Warning: Function may be slow to respond',
|
|
173
|
+
});
|
|
174
|
+
const result = await tool.handler({
|
|
175
|
+
absoluteCurrentWorkingDirectory: '/test/dir',
|
|
176
|
+
endpoint: 'slow-function',
|
|
177
|
+
});
|
|
178
|
+
expect(result.content).toHaveLength(2);
|
|
179
|
+
expect(result.content[0].text).toContain('function logs');
|
|
180
|
+
expect(result.content[1].text).toContain('Warning: Function may be slow to respond');
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
});
|
|
@@ -27,7 +27,7 @@ describe('HsListFunctionsTool', () => {
|
|
|
27
27
|
describe('register', () => {
|
|
28
28
|
it('should register the tool with the MCP server', () => {
|
|
29
29
|
const result = tool.register();
|
|
30
|
-
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('list-
|
|
30
|
+
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('list-cms-serverless-functions', {
|
|
31
31
|
title: 'List HubSpot CMS Serverless Functions',
|
|
32
32
|
description: 'Get a list of all serverless functions deployed in a HubSpot portal/account. Shows function routes, HTTP methods, secrets, and timestamps.',
|
|
33
33
|
inputSchema: expect.any(Object),
|
|
@@ -27,7 +27,7 @@ describe('HsListTool', () => {
|
|
|
27
27
|
describe('register', () => {
|
|
28
28
|
it('should register the tool with the MCP server', () => {
|
|
29
29
|
const result = tool.register();
|
|
30
|
-
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('list-
|
|
30
|
+
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('list-cms-remote-contents', {
|
|
31
31
|
title: 'List HubSpot CMS Directory Contents',
|
|
32
32
|
description: 'List remote contents of a HubSpot CMS directory.',
|
|
33
33
|
inputSchema: expect.any(Object),
|
|
@@ -12,6 +12,7 @@ import { HsCreateModuleTool } from './cms/HsCreateModuleTool.js';
|
|
|
12
12
|
import { HsCreateTemplateTool } from './cms/HsCreateTemplateTool.js';
|
|
13
13
|
import { HsCreateFunctionTool } from './cms/HsCreateFunctionTool.js';
|
|
14
14
|
import { HsListFunctionsTool } from './cms/HsListFunctionsTool.js';
|
|
15
|
+
import { HsFunctionLogsTool } from './cms/HsFunctionLogsTool.js';
|
|
15
16
|
export function registerProjectTools(mcpServer) {
|
|
16
17
|
return [
|
|
17
18
|
new UploadProjectTools(mcpServer).register(),
|
|
@@ -32,5 +33,6 @@ export function registerCmsTools(mcpServer) {
|
|
|
32
33
|
new HsCreateTemplateTool(mcpServer).register(),
|
|
33
34
|
new HsCreateFunctionTool(mcpServer).register(),
|
|
34
35
|
new HsListFunctionsTool(mcpServer).register(),
|
|
36
|
+
new HsFunctionLogsTool(mcpServer).register(),
|
|
35
37
|
];
|
|
36
38
|
}
|
|
@@ -6,19 +6,19 @@ declare const inputSchemaZodObject: z.ZodObject<{
|
|
|
6
6
|
addApp: z.ZodBoolean;
|
|
7
7
|
distribution: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"marketplace">, z.ZodLiteral<"private">]>>;
|
|
8
8
|
auth: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"static">, z.ZodLiteral<"oauth">]>>;
|
|
9
|
-
features: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"card">, z.ZodLiteral<"settings">, z.ZodLiteral<"app-function">, z.ZodLiteral<"webhooks">, z.ZodLiteral<"workflow-action">]>, "many">>;
|
|
9
|
+
features: z.ZodOptional<z.ZodArray<z.ZodUnion<[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">]>, "many">>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
absoluteProjectPath: string;
|
|
12
12
|
addApp: boolean;
|
|
13
13
|
auth?: "oauth" | "static" | undefined;
|
|
14
14
|
distribution?: "marketplace" | "private" | undefined;
|
|
15
|
-
features?: ("card" | "settings" | "app-
|
|
15
|
+
features?: ("card" | "page" | "settings" | "app-event" | "workflow-action-tool" | "workflow-action" | "app-function" | "webhooks" | "app-object" | "scim")[] | undefined;
|
|
16
16
|
}, {
|
|
17
17
|
absoluteProjectPath: string;
|
|
18
18
|
addApp: boolean;
|
|
19
19
|
auth?: "oauth" | "static" | undefined;
|
|
20
20
|
distribution?: "marketplace" | "private" | undefined;
|
|
21
|
-
features?: ("card" | "settings" | "app-
|
|
21
|
+
features?: ("card" | "page" | "settings" | "app-event" | "workflow-action-tool" | "workflow-action" | "app-function" | "webhooks" | "app-object" | "scim")[] | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
export type AddFeatureInputSchema = z.infer<typeof inputSchemaZodObject>;
|
|
24
24
|
export declare class AddFeatureToProjectTool extends Tool<AddFeatureInputSchema> {
|
|
@@ -16,20 +16,20 @@ const inputSchema = {
|
|
|
16
16
|
z.literal(APP_DISTRIBUTION_TYPES.MARKETPLACE),
|
|
17
17
|
z.literal(APP_DISTRIBUTION_TYPES.PRIVATE),
|
|
18
18
|
]))
|
|
19
|
-
.describe('
|
|
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 application on the HubSpot marketplace. '),
|
|
20
20
|
auth: z
|
|
21
21
|
.optional(z.union([
|
|
22
22
|
z.literal(APP_AUTH_TYPES.STATIC),
|
|
23
23
|
z.literal(APP_AUTH_TYPES.OAUTH),
|
|
24
24
|
]))
|
|
25
|
-
.describe('
|
|
25
|
+
.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. '),
|
|
26
26
|
features,
|
|
27
27
|
};
|
|
28
28
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
29
29
|
const inputSchemaZodObject = z.object({
|
|
30
30
|
...inputSchema,
|
|
31
31
|
});
|
|
32
|
-
const toolName = 'add-feature-to-
|
|
32
|
+
const toolName = 'add-feature-to-project';
|
|
33
33
|
export class AddFeatureToProjectTool extends Tool {
|
|
34
34
|
constructor(mcpServer) {
|
|
35
35
|
super(mcpServer);
|
|
@@ -8,7 +8,7 @@ declare const inputSchemaZodObject: z.ZodObject<{
|
|
|
8
8
|
projectBase: z.ZodUnion<[z.ZodLiteral<"empty">, z.ZodLiteral<"app">]>;
|
|
9
9
|
distribution: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"marketplace">, z.ZodLiteral<"private">]>>;
|
|
10
10
|
auth: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"static">, z.ZodLiteral<"oauth">]>>>;
|
|
11
|
-
features: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"card">, z.ZodLiteral<"settings">, z.ZodLiteral<"app-function">, z.ZodLiteral<"webhooks">, z.ZodLiteral<"workflow-action">]>, "many">>;
|
|
11
|
+
features: z.ZodOptional<z.ZodArray<z.ZodUnion<[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">]>, "many">>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
projectBase: "app" | "empty";
|
|
14
14
|
absoluteCurrentWorkingDirectory: string;
|
|
@@ -16,7 +16,7 @@ declare const inputSchemaZodObject: z.ZodObject<{
|
|
|
16
16
|
name?: string | undefined;
|
|
17
17
|
auth?: "oauth" | "static" | undefined;
|
|
18
18
|
distribution?: "marketplace" | "private" | undefined;
|
|
19
|
-
features?: ("card" | "settings" | "app-
|
|
19
|
+
features?: ("card" | "page" | "settings" | "app-event" | "workflow-action-tool" | "workflow-action" | "app-function" | "webhooks" | "app-object" | "scim")[] | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
projectBase: "app" | "empty";
|
|
22
22
|
absoluteCurrentWorkingDirectory: string;
|
|
@@ -24,7 +24,7 @@ declare const inputSchemaZodObject: z.ZodObject<{
|
|
|
24
24
|
name?: string | undefined;
|
|
25
25
|
auth?: "oauth" | "static" | undefined;
|
|
26
26
|
distribution?: "marketplace" | "private" | undefined;
|
|
27
|
-
features?: ("card" | "settings" | "app-
|
|
27
|
+
features?: ("card" | "page" | "settings" | "app-event" | "workflow-action-tool" | "workflow-action" | "app-function" | "webhooks" | "app-object" | "scim")[] | undefined;
|
|
28
28
|
}>;
|
|
29
29
|
export type CreateProjectInputSchema = z.infer<typeof inputSchemaZodObject>;
|
|
30
30
|
export declare class CreateProjectTool extends Tool<CreateProjectInputSchema> {
|
|
@@ -10,11 +10,11 @@ const inputSchema = {
|
|
|
10
10
|
absoluteCurrentWorkingDirectory,
|
|
11
11
|
name: z
|
|
12
12
|
.string()
|
|
13
|
-
.describe('The name of the project to be created. This name is how your project will appear in HubSpot.
|
|
13
|
+
.describe('If not specified by the user, DO NOT choose for them. Changing this is potentially destructive.The name of the project to be created. This name is how your project will appear in HubSpot. ')
|
|
14
14
|
.optional(),
|
|
15
15
|
destination: z
|
|
16
16
|
.string()
|
|
17
|
-
.describe('
|
|
17
|
+
.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.'),
|
|
18
18
|
projectBase: z
|
|
19
19
|
.union([z.literal(EMPTY_PROJECT), z.literal(PROJECT_WITH_APP)])
|
|
20
20
|
.describe('Empty will create an empty project, and app will create a project with an app inside of it.'),
|
|
@@ -23,19 +23,19 @@ const inputSchema = {
|
|
|
23
23
|
z.literal(APP_DISTRIBUTION_TYPES.MARKETPLACE),
|
|
24
24
|
z.literal(APP_DISTRIBUTION_TYPES.PRIVATE),
|
|
25
25
|
]))
|
|
26
|
-
.describe('
|
|
26
|
+
.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 application on the HubSpot marketplace. '),
|
|
27
27
|
auth: z
|
|
28
28
|
.optional(z.union([
|
|
29
29
|
z.literal(APP_AUTH_TYPES.STATIC),
|
|
30
30
|
z.literal(APP_AUTH_TYPES.OAUTH),
|
|
31
31
|
]))
|
|
32
|
-
.describe('
|
|
32
|
+
.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. ')
|
|
33
33
|
.optional(),
|
|
34
34
|
features,
|
|
35
35
|
};
|
|
36
36
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
37
37
|
const inputSchemaZodObject = z.object({ ...inputSchema });
|
|
38
|
-
const toolName = 'create-
|
|
38
|
+
const toolName = 'create-project';
|
|
39
39
|
export class CreateProjectTool extends Tool {
|
|
40
40
|
constructor(mcpServer) {
|
|
41
41
|
super(mcpServer);
|
|
@@ -15,7 +15,7 @@ const inputSchema = {
|
|
|
15
15
|
const inputSchemaZodObject = z.object({
|
|
16
16
|
...inputSchema,
|
|
17
17
|
});
|
|
18
|
-
const toolName = 'deploy-
|
|
18
|
+
const toolName = 'deploy-project';
|
|
19
19
|
export class DeployProjectTool extends Tool {
|
|
20
20
|
constructor(mcpServer) {
|
|
21
21
|
super(mcpServer);
|
|
@@ -12,7 +12,7 @@ const inputSchema = {
|
|
|
12
12
|
const inputSchemaZodObject = z.object({
|
|
13
13
|
...inputSchema,
|
|
14
14
|
});
|
|
15
|
-
const toolName = 'fetch-
|
|
15
|
+
const toolName = 'fetch-doc';
|
|
16
16
|
export class DocFetchTool extends Tool {
|
|
17
17
|
constructor(mcpServer) {
|
|
18
18
|
super(mcpServer);
|
|
@@ -42,7 +42,7 @@ export class DocFetchTool extends Tool {
|
|
|
42
42
|
register() {
|
|
43
43
|
return this.mcpServer.registerTool(toolName, {
|
|
44
44
|
title: 'Fetch HubSpot Developer Documentation (single file)',
|
|
45
|
-
description: 'Always use this immediately after `search-
|
|
45
|
+
description: 'Always use this immediately after `search-docs` and before creating a plan, writing code, or answering technical questions. This tool retrieves the full, authoritative content of a HubSpot Developer Documentation page from its URL, ensuring responses are accurate, up-to-date, and grounded in the official docs.',
|
|
46
46
|
inputSchema,
|
|
47
47
|
}, this.handler);
|
|
48
48
|
}
|
|
@@ -13,7 +13,7 @@ const inputSchema = {
|
|
|
13
13
|
const inputSchemaZodObject = z.object({
|
|
14
14
|
...inputSchema,
|
|
15
15
|
});
|
|
16
|
-
const toolName = 'search-
|
|
16
|
+
const toolName = 'search-docs';
|
|
17
17
|
export class DocsSearchTool extends Tool {
|
|
18
18
|
constructor(mcpServer) {
|
|
19
19
|
super(mcpServer);
|
|
@@ -55,7 +55,7 @@ export class DocsSearchTool extends Tool {
|
|
|
55
55
|
register() {
|
|
56
56
|
return this.mcpServer.registerTool(toolName, {
|
|
57
57
|
title: 'Search HubSpot Developer Documentation',
|
|
58
|
-
description: 'Use this first whenever you need details about HubSpot APIs, SDKs, integrations, or developer platform features. This searches the official HubSpot Developer Documentation and returns the most relevant pages, each with a URL for use in `fetch-
|
|
58
|
+
description: 'Use this first whenever you need details about HubSpot APIs, SDKs, integrations, or developer platform features. This searches the official HubSpot Developer Documentation and returns the most relevant pages, each with a URL for use in `fetch-doc`. Always follow this with a fetch to get the full, authoritative content before making plans or writing answers.',
|
|
59
59
|
inputSchema,
|
|
60
60
|
}, this.handler);
|
|
61
61
|
}
|
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
import { formatTextContents } from '../../utils/content.js';
|
|
4
4
|
import { getIntermediateRepresentationSchema, mapToInternalType, } from '@hubspot/project-parsing-lib';
|
|
5
5
|
import { getAccountId, getConfigPath, loadConfig, } from '@hubspot/local-dev-lib/config';
|
|
6
|
-
import { useV3Api } from '../../../lib/projects/
|
|
6
|
+
import { useV3Api } from '../../../lib/projects/platformVersion.js';
|
|
7
7
|
const inputSchema = {
|
|
8
8
|
platformVersion: z
|
|
9
9
|
.string()
|
|
@@ -16,7 +16,7 @@ const inputSchema = {
|
|
|
16
16
|
const inputSchemaZodObject = z.object({
|
|
17
17
|
...inputSchema,
|
|
18
18
|
});
|
|
19
|
-
const toolName = 'get-
|
|
19
|
+
const toolName = 'get-feature-config-schema';
|
|
20
20
|
export class GetConfigValuesTool extends Tool {
|
|
21
21
|
constructor(mcpServer) {
|
|
22
22
|
super(mcpServer);
|
|
@@ -43,8 +43,8 @@ export class GetConfigValuesTool extends Tool {
|
|
|
43
43
|
register() {
|
|
44
44
|
return this.mcpServer.registerTool(toolName, {
|
|
45
45
|
title: 'Fetch the JSON Schema for component',
|
|
46
|
-
description: `Fetches and returns the JSON schema for the provided feature 'type' found in -hsmeta.json file.
|
|
47
|
-
This should be called before editing a '-hsmeta.json' file to get the list of possible values and restrictions on those values.
|
|
46
|
+
description: `Fetches and returns the JSON schema for the provided feature 'type' found in -hsmeta.json file.
|
|
47
|
+
This should be called before editing a '-hsmeta.json' file to get the list of possible values and restrictions on those values.
|
|
48
48
|
This will only work for projects with platformVersion 2025.2 and beyond`,
|
|
49
49
|
inputSchema,
|
|
50
50
|
}, this.handler);
|
|
@@ -24,7 +24,7 @@ const inputSchema = {
|
|
|
24
24
|
const inputSchemaZodObject = z.object({
|
|
25
25
|
...inputSchema,
|
|
26
26
|
});
|
|
27
|
-
const toolName = 'guided-walkthrough-
|
|
27
|
+
const toolName = 'guided-walkthrough-cli';
|
|
28
28
|
export class GuidedWalkthroughTool extends Tool {
|
|
29
29
|
constructor(mcpServer) {
|
|
30
30
|
super(mcpServer);
|
|
@@ -11,7 +11,7 @@ const inputSchema = {
|
|
|
11
11
|
const inputSchemaZodObject = z.object({
|
|
12
12
|
...inputSchema,
|
|
13
13
|
});
|
|
14
|
-
const toolName = 'upload-
|
|
14
|
+
const toolName = 'upload-project';
|
|
15
15
|
export class UploadProjectTools extends Tool {
|
|
16
16
|
constructor(mcpServer) {
|
|
17
17
|
super(mcpServer);
|
|
@@ -24,7 +24,7 @@ export class UploadProjectTools extends Tool {
|
|
|
24
24
|
register() {
|
|
25
25
|
return this.mcpServer.registerTool(toolName, {
|
|
26
26
|
title: 'Upload HubSpot Project',
|
|
27
|
-
description: 'Uploads the HubSpot project in current working directory. If the project does not exist, it will be created. MUST be ran from within the project directory.
|
|
27
|
+
description: 'DO NOT run this tool unless the user specifies they would like to upload the project, it is potentially destructive. Uploads the HubSpot project in current working directory. If the project does not exist, it will be created. MUST be ran from within the project directory.',
|
|
28
28
|
inputSchema,
|
|
29
29
|
}, this.handler);
|
|
30
30
|
}
|
|
@@ -9,7 +9,7 @@ const inputSchema = {
|
|
|
9
9
|
};
|
|
10
10
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11
11
|
const inputSchemaZodObject = z.object({ ...inputSchema });
|
|
12
|
-
const toolName = 'validate-
|
|
12
|
+
const toolName = 'validate-project';
|
|
13
13
|
export class ValidateProjectTool extends Tool {
|
|
14
14
|
constructor(mcpServer) {
|
|
15
15
|
super(mcpServer);
|
|
@@ -28,7 +28,7 @@ describe('mcp-server/tools/project/AddFeatureToProject', () => {
|
|
|
28
28
|
describe('register', () => {
|
|
29
29
|
it('should register tool with correct parameters', () => {
|
|
30
30
|
const result = tool.register();
|
|
31
|
-
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('add-feature-to-
|
|
31
|
+
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('add-feature-to-project', expect.objectContaining({
|
|
32
32
|
title: 'Add feature to HubSpot Project',
|
|
33
33
|
description: expect.stringContaining('Adds a feature to an existing HubSpot project'),
|
|
34
34
|
inputSchema: expect.any(Object),
|
|
@@ -29,7 +29,7 @@ describe('mcp-server/tools/project/CreateProjectTool', () => {
|
|
|
29
29
|
describe('register', () => {
|
|
30
30
|
it('should register tool with correct parameters', () => {
|
|
31
31
|
const result = tool.register();
|
|
32
|
-
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('create-
|
|
32
|
+
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('create-project', {
|
|
33
33
|
title: 'Create HubSpot Project',
|
|
34
34
|
description: 'Creates a HubSpot project with the provided name and outputs it in the provided destination',
|
|
35
35
|
inputSchema: expect.any(Object),
|
|
@@ -26,7 +26,7 @@ describe('mcp-server/tools/project/DeployProject', () => {
|
|
|
26
26
|
describe('register', () => {
|
|
27
27
|
it('should register tool with correct parameters', () => {
|
|
28
28
|
const result = tool.register();
|
|
29
|
-
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('deploy-
|
|
29
|
+
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('deploy-project', {
|
|
30
30
|
title: 'Deploy a build of HubSpot Project',
|
|
31
31
|
description: expect.stringContaining('Takes a build number and a project name and deploys that build of the project'),
|
|
32
32
|
inputSchema: expect.any(Object),
|
|
@@ -24,9 +24,9 @@ describe('mcp-server/tools/project/DocFetchTool', () => {
|
|
|
24
24
|
describe('register', () => {
|
|
25
25
|
it('should register tool with correct parameters', () => {
|
|
26
26
|
const result = tool.register();
|
|
27
|
-
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('fetch-
|
|
27
|
+
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('fetch-doc', {
|
|
28
28
|
title: 'Fetch HubSpot Developer Documentation (single file)',
|
|
29
|
-
description: 'Always use this immediately after `search-
|
|
29
|
+
description: 'Always use this immediately after `search-docs` and before creating a plan, writing code, or answering technical questions. This tool retrieves the full, authoritative content of a HubSpot Developer Documentation page from its URL, ensuring responses are accurate, up-to-date, and grounded in the official docs.',
|
|
30
30
|
inputSchema: expect.any(Object),
|
|
31
31
|
}, tool.handler);
|
|
32
32
|
expect(result).toBe(mockRegisteredTool);
|
|
@@ -27,9 +27,9 @@ describe('mcp-server/tools/project/DocsSearchTool', () => {
|
|
|
27
27
|
describe('register', () => {
|
|
28
28
|
it('should register tool with correct parameters', () => {
|
|
29
29
|
const result = tool.register();
|
|
30
|
-
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('search-
|
|
30
|
+
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('search-docs', {
|
|
31
31
|
title: 'Search HubSpot Developer Documentation',
|
|
32
|
-
description: 'Use this first whenever you need details about HubSpot APIs, SDKs, integrations, or developer platform features. This searches the official HubSpot Developer Documentation and returns the most relevant pages, each with a URL for use in `fetch-
|
|
32
|
+
description: 'Use this first whenever you need details about HubSpot APIs, SDKs, integrations, or developer platform features. This searches the official HubSpot Developer Documentation and returns the most relevant pages, each with a URL for use in `fetch-doc`. Always follow this with a fetch to get the full, authoritative content before making plans or writing answers.',
|
|
33
33
|
inputSchema: expect.any(Object),
|
|
34
34
|
}, tool.handler);
|
|
35
35
|
expect(result).toBe(mockRegisteredTool);
|
|
@@ -25,7 +25,7 @@ describe('mcp-server/tools/project/GetConfigValuesTool', () => {
|
|
|
25
25
|
describe('register', () => {
|
|
26
26
|
it('should register tool with correct parameters', () => {
|
|
27
27
|
const result = tool.register();
|
|
28
|
-
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('get-
|
|
28
|
+
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('get-feature-config-schema', {
|
|
29
29
|
title: 'Fetch the JSON Schema for component',
|
|
30
30
|
description: expect.stringContaining('Fetches and returns the JSON schema for the provided feature'),
|
|
31
31
|
inputSchema: expect.objectContaining({
|
|
@@ -21,7 +21,7 @@ describe('mcp-server/tools/project/GuidedWalkthroughTool', () => {
|
|
|
21
21
|
describe('register', () => {
|
|
22
22
|
it('should register tool with correct parameters', () => {
|
|
23
23
|
const result = tool.register();
|
|
24
|
-
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('guided-walkthrough-
|
|
24
|
+
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('guided-walkthrough-cli', {
|
|
25
25
|
title: 'Guided walkthrough of the CLI',
|
|
26
26
|
description: 'Give the user a guided walkthrough of the HubSpot CLI.',
|
|
27
27
|
inputSchema: expect.any(Object),
|
|
@@ -21,7 +21,7 @@ describe('mcp-server/tools/project/UploadProjectTools', () => {
|
|
|
21
21
|
describe('register', () => {
|
|
22
22
|
it('should register tool with correct parameters', () => {
|
|
23
23
|
const result = tool.register();
|
|
24
|
-
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('upload-
|
|
24
|
+
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('upload-project', {
|
|
25
25
|
title: 'Upload HubSpot Project',
|
|
26
26
|
description: expect.stringContaining('Uploads the HubSpot project in current working directory.'),
|
|
27
27
|
inputSchema: expect.any(Object),
|
|
@@ -21,7 +21,7 @@ describe('mcp-server/tools/project/ValidateProjectTool', () => {
|
|
|
21
21
|
describe('register', () => {
|
|
22
22
|
it('should register tool with correct parameters', () => {
|
|
23
23
|
const result = tool.register();
|
|
24
|
-
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('validate-
|
|
24
|
+
expect(mockMcpServer.registerTool).toHaveBeenCalledWith('validate-project', {
|
|
25
25
|
title: expect.stringContaining('Validate HubSpot Project'),
|
|
26
26
|
description: expect.stringContaining('Validates the HubSpot project and its configuration files.'),
|
|
27
27
|
inputSchema: expect.any(Object),
|
|
@@ -1,6 +1,6 @@
|
|
|
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<[z.ZodLiteral<"card">, z.ZodLiteral<"settings">, z.ZodLiteral<"app-function">, z.ZodLiteral<"webhooks">, z.ZodLiteral<"workflow-action">]>, "many">>;
|
|
4
|
+
export declare const features: z.ZodOptional<z.ZodArray<z.ZodUnion<[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">]>, "many">>;
|
|
5
5
|
export declare const docsSearchQuery: z.ZodString;
|
|
6
6
|
export declare const docUrl: z.ZodString;
|
|
@@ -6,15 +6,23 @@ 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
|
|
10
|
-
.union([
|
|
9
|
+
.array(z.union([
|
|
11
10
|
z.literal('card'),
|
|
12
11
|
z.literal('settings'),
|
|
13
|
-
z
|
|
12
|
+
z
|
|
13
|
+
.literal('app-function')
|
|
14
|
+
.describe('Also known as a public serverless function'),
|
|
14
15
|
z.literal('webhooks'),
|
|
15
|
-
z
|
|
16
|
-
|
|
17
|
-
|
|
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'),
|
|
24
|
+
]))
|
|
25
|
+
.describe('The features to include in the project, multiple options can be selected')
|
|
18
26
|
.optional();
|
|
19
27
|
export const docsSearchQuery = z
|
|
20
28
|
.string()
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/cli",
|
|
3
|
-
"version": "7.7.
|
|
3
|
+
"version": "7.7.34-experimental.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": "3.
|
|
10
|
-
"@hubspot/project-parsing-lib": "0.8.
|
|
9
|
+
"@hubspot/local-dev-lib": "3.18.0",
|
|
10
|
+
"@hubspot/project-parsing-lib": "0.8.3",
|
|
11
11
|
"@hubspot/serverless-dev-runtime": "7.0.6",
|
|
12
12
|
"@hubspot/theme-preview-dev-server": "0.0.10",
|
|
13
13
|
"@hubspot/ui-extensions-dev-server": "0.9.8",
|