@hubspot/cli 8.3.1-experimental.0 → 8.3.1-experimental.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.
- package/api/feedback.d.ts +10 -0
- package/api/feedback.js +9 -0
- package/bin/cli.js +19 -1
- package/commands/account/auth.js +2 -2
- package/commands/account/createOverride.js +2 -0
- package/commands/account/removeOverride.js +2 -0
- package/commands/app/secret/add.js +1 -1
- package/commands/app/secret/delete.js +1 -1
- package/commands/app/secret/list.js +1 -1
- package/commands/app/secret/update.js +1 -1
- package/commands/app/secret.js +1 -1
- package/commands/auth.js +3 -2
- package/commands/cms/function/create.js +5 -37
- package/commands/cms/function/deploy.js +8 -1
- package/commands/cms/function/list.js +4 -0
- package/commands/cms/function/logs.js +2 -0
- package/commands/cms/function/server.js +6 -0
- package/commands/cms/lighthouseScore.js +1 -1
- package/commands/cms/upload.js +6 -0
- package/commands/cms/watch.js +2 -0
- package/commands/cms/webpack/create.js +5 -32
- package/commands/customObject.js +2 -2
- package/commands/feedback.d.ts +6 -2
- package/commands/feedback.js +82 -8
- package/commands/getStarted.js +4 -4
- package/commands/hubdb/list.js +2 -2
- package/commands/init.js +3 -2
- package/commands/mcp/setup.d.ts +1 -0
- package/commands/mcp/setup.js +11 -3
- package/commands/project/dev/index.js +2 -2
- package/commands/project/download.d.ts +2 -0
- package/commands/project/download.js +56 -16
- package/commands/project/logs.js +2 -2
- package/commands/project/upload.js +6 -2
- package/commands/project/watch.js +2 -2
- package/commands/sandbox/create.js +3 -3
- package/commands/sandbox/delete.js +1 -1
- package/commands/sandbox.js +1 -1
- package/lang/en.d.ts +105 -6
- package/lang/en.js +269 -51
- package/lib/accountAuth.js +12 -0
- package/lib/accountCredentials.d.ts +1 -0
- package/lib/accountCredentials.js +25 -0
- package/lib/agentHelp.d.ts +17 -0
- package/lib/agentHelp.js +90 -0
- package/lib/app/migrate.js +5 -8
- package/lib/commonOpts.js +4 -0
- package/lib/constants.d.ts +4 -0
- package/lib/constants.js +6 -0
- package/lib/errorHandlers/suppressError.js +3 -3
- package/lib/feedback.d.ts +3 -0
- package/lib/feedback.js +13 -0
- package/lib/jsonOutput/projectDownload.d.ts +1 -0
- package/lib/jsonOutput/projectDownload.js +1 -0
- package/lib/jsonOutput/projectUpload.d.ts +1 -0
- package/lib/jsonOutput/projectUpload.js +1 -0
- package/lib/mcp/clients.d.ts +2 -1
- package/lib/mcp/clients.js +7 -7
- package/lib/mcp/setup.d.ts +7 -2
- package/lib/mcp/setup.js +22 -37
- package/lib/mcp/skills.d.ts +8 -0
- package/lib/mcp/skills.js +64 -0
- package/lib/projects/archive.d.ts +8 -0
- package/lib/projects/archive.js +104 -0
- package/lib/projects/archiveDiff.d.ts +12 -0
- package/lib/projects/archiveDiff.js +68 -0
- package/lib/projects/config.js +1 -1
- package/lib/projects/download.d.ts +37 -0
- package/lib/projects/download.js +123 -0
- package/lib/projects/localDev/AppDevModeInterface.js +3 -3
- package/lib/projects/localDev/LocalDevLogger.js +5 -5
- package/lib/projects/localDev/LocalDevWatcher.js +2 -1
- package/lib/projects/localDev/helpers/project.js +3 -3
- package/lib/projects/pollProjectBuildAndDeploy.js +4 -4
- package/lib/projects/projectInfo.js +4 -4
- package/lib/projects/projectProfiles.js +3 -3
- package/lib/projects/ui.js +3 -3
- package/lib/projects/upload.d.ts +3 -1
- package/lib/projects/upload.js +23 -6
- package/lib/projects/watch.js +4 -2
- package/lib/projects/workspaces.js +4 -4
- package/lib/prompts/importDataTestAccountSelectPrompt.js +1 -1
- package/lib/prompts/personalAccessKeyPrompt.js +2 -2
- package/lib/prompts/selectPublicAppForMigrationPrompt.js +3 -3
- package/lib/serverlessSunset.d.ts +6 -0
- package/lib/serverlessSunset.js +32 -0
- package/lib/testUtils.d.ts +5 -1
- package/lib/testUtils.js +2 -2
- package/lib/ui/appLogs.js +3 -3
- package/lib/ui/git.js +3 -3
- package/lib/ui/index.d.ts +8 -10
- package/lib/ui/index.js +34 -31
- package/lib/validation.js +16 -1
- package/lib/yargs/makeWrappedYargsHandler.d.ts +1 -0
- package/lib/yargs/makeWrappedYargsHandler.js +7 -0
- package/mcp-server/Tool.d.ts +1 -0
- package/mcp-server/Tool.js +4 -1
- package/mcp-server/server.js +16 -5
- package/mcp-server/skills/hubspot-fix-build/SKILL.md +61 -0
- package/mcp-server/skills/hubspot-new-app/SKILL.md +84 -0
- package/mcp-server/tools/cms/HsFunctionLogsTool.js +1 -1
- package/mcp-server/tools/cms/HsListFunctionsTool.js +1 -1
- package/mcp-server/tools/index.js +2 -2
- package/mcp-server/tools/project/DocFetchTool.d.ts +4 -1
- package/mcp-server/tools/project/DocFetchTool.js +53 -12
- package/mcp-server/tools/project/DocsSearchTool.js +2 -7
- package/mcp-server/tools/project/FindProjectsTool.js +4 -1
- package/mcp-server/tools/project/GetApiUsagePatternsByAppIdTool.js +2 -7
- package/mcp-server/tools/project/GetApplicationInfoTool.js +2 -7
- package/mcp-server/tools/project/GetBuildLogsTool.d.ts +1 -1
- package/mcp-server/tools/project/GetBuildLogsTool.js +2 -12
- package/mcp-server/tools/project/GetBuildStatusTool.js +2 -12
- package/mcp-server/tools/project/KnowledgeSearchTool.js +2 -5
- package/mcp-server/tools/project/SubmitFeedbackTool.d.ts +25 -0
- package/mcp-server/tools/project/SubmitFeedbackTool.js +73 -0
- package/mcp-server/utils/command.js +23 -4
- package/mcp-server/utils/errors.d.ts +1 -0
- package/mcp-server/utils/errors.js +9 -0
- package/mcp-server/utils/feedbackTracking.js +3 -1
- package/package.json +14 -14
- package/mcp-server/tools/cms/HsCreateFunctionTool.d.ts +0 -26
- package/mcp-server/tools/cms/HsCreateFunctionTool.js +0 -100
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import fs from 'fs';
|
|
3
3
|
import util from 'util';
|
|
4
|
-
import { exec
|
|
4
|
+
import { exec } from 'node:child_process';
|
|
5
|
+
import { spawn } from 'cross-spawn';
|
|
5
6
|
export class HubSpotCommand {
|
|
6
7
|
executable = 'hs';
|
|
7
8
|
subcommandArgs;
|
|
@@ -37,6 +38,9 @@ export class NpxHubSpotCommand {
|
|
|
37
38
|
this.args = ['-y', '-p', cliPackage, 'hs', ...command.args];
|
|
38
39
|
}
|
|
39
40
|
}
|
|
41
|
+
const WINDOWS_UNSAFE_ARG_CHARACTERS = '" % ^ & | < >';
|
|
42
|
+
const WINDOWS_UNSAFE_ARG_PATTERN = /["%^&|<>]/;
|
|
43
|
+
const WINDOWS_TRAILING_BACKSLASHES_PATTERN = /\\{2,}$/;
|
|
40
44
|
export const execAsync = util.promisify(exec);
|
|
41
45
|
export function getCommandResultsFromError(error) {
|
|
42
46
|
if (typeof error !== 'object' || error === null) {
|
|
@@ -46,10 +50,21 @@ export function getCommandResultsFromError(error) {
|
|
|
46
50
|
const stderr = 'stderr' in error && typeof error.stderr === 'string' ? error.stderr : '';
|
|
47
51
|
return { stdout, stderr };
|
|
48
52
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
function isUnsafeForWindowsShell(arg) {
|
|
54
|
+
return (WINDOWS_UNSAFE_ARG_PATTERN.test(arg) ||
|
|
55
|
+
WINDOWS_TRAILING_BACKSLASHES_PATTERN.test(arg));
|
|
56
|
+
}
|
|
57
|
+
function assertArgsSafeForWindowsShell(args) {
|
|
58
|
+
if (process.platform !== 'win32') {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const unsafeArg = args.find(isUnsafeForWindowsShell);
|
|
62
|
+
if (unsafeArg === undefined) {
|
|
63
|
+
return;
|
|
52
64
|
}
|
|
65
|
+
throw new Error(`Cannot run this command on Windows because an argument contains one of these characters: ${WINDOWS_UNSAFE_ARG_CHARACTERS}, or ends with two or more backslashes. Remove or rephrase them and try again. Argument: ${JSON.stringify(unsafeArg)}`);
|
|
66
|
+
}
|
|
67
|
+
export async function runCommandInDir(directory, command, onData) {
|
|
53
68
|
let finalCommand = command;
|
|
54
69
|
if (command instanceof HubSpotCommand) {
|
|
55
70
|
command.addFlag('disable-usage-tracking', 'true');
|
|
@@ -60,6 +75,10 @@ export async function runCommandInDir(directory, command, onData) {
|
|
|
60
75
|
finalCommand = new NpxHubSpotCommand(command, cliPackage);
|
|
61
76
|
}
|
|
62
77
|
}
|
|
78
|
+
assertArgsSafeForWindowsShell(finalCommand.args);
|
|
79
|
+
if (!fs.existsSync(directory)) {
|
|
80
|
+
fs.mkdirSync(directory);
|
|
81
|
+
}
|
|
63
82
|
const resolvedDir = path.resolve(directory);
|
|
64
83
|
return new Promise((resolve, reject) => {
|
|
65
84
|
const stdoutChunks = [];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getToolErrorMessage(error: unknown): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { isHubSpotHttpError } from '@hubspot/local-dev-lib/errors/index';
|
|
2
|
+
import { getErrorMessage } from '../../lib/errorHandlers/index.js';
|
|
3
|
+
import { getConfigCredentials } from '../../lib/accountCredentials.js';
|
|
4
|
+
export function getToolErrorMessage(error) {
|
|
5
|
+
const message = isHubSpotHttpError(error)
|
|
6
|
+
? error.toString()
|
|
7
|
+
: getErrorMessage(error);
|
|
8
|
+
return getConfigCredentials().reduce((redactedMessage, credential) => redactedMessage.replaceAll(credential, '[redacted]'), message);
|
|
9
|
+
}
|
|
@@ -18,7 +18,9 @@ export async function mcpFeedbackRequest() {
|
|
|
18
18
|
IMPORTANT - FEEDBACK REQUEST FOR THIS RESPONSE ONLY:
|
|
19
19
|
This message appears only once. If you see this text in the tool output, you MUST include the following feedback request in your response to the user. If this text is NOT in the tool output, do NOT ask for feedback.
|
|
20
20
|
|
|
21
|
-
Say: "📝 **Before we continue, would you mind sharing feedback on your experience with the HubSpot Developer MCP?** Your input helps us improve
|
|
21
|
+
Say: "📝 **Before we continue, would you mind sharing feedback on your experience with the HubSpot Developer MCP?** Your input helps us improve. You can tell me and I will send it, or [use the feedback form](${FEEDBACK_URL})."
|
|
22
|
+
|
|
23
|
+
If the user shares feedback, send it with \`submit-feedback\` and set \`source\` to \`user\`.`;
|
|
22
24
|
}
|
|
23
25
|
catch (error) {
|
|
24
26
|
logger.error(error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/cli",
|
|
3
|
-
"version": "8.3.1-experimental.
|
|
3
|
+
"version": "8.3.1-experimental.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",
|
|
@@ -10,18 +10,18 @@
|
|
|
10
10
|
"!**/__tests__/**"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@hubspot/local-dev-lib": "5.
|
|
14
|
-
"@hubspot/project-parsing-lib": "0.23.
|
|
15
|
-
"@hubspot/ui-extensions-dev-server": "2.2.
|
|
13
|
+
"@hubspot/local-dev-lib": "5.14.1",
|
|
14
|
+
"@hubspot/project-parsing-lib": "0.23.7",
|
|
15
|
+
"@hubspot/ui-extensions-dev-server": "2.2.5",
|
|
16
16
|
"@inquirer/prompts": "7.10.1",
|
|
17
|
-
"@modelcontextprotocol/sdk": "1.
|
|
17
|
+
"@modelcontextprotocol/sdk": "1.32.2",
|
|
18
18
|
"archiver": "7.0.1",
|
|
19
19
|
"chalk": "5.6.2",
|
|
20
|
-
"chokidar": "
|
|
20
|
+
"chokidar": "4.0.3",
|
|
21
21
|
"cli-cursor": "3.1.0",
|
|
22
22
|
"cli-progress": "3.12.0",
|
|
23
|
+
"cross-spawn": "7.0.6",
|
|
23
24
|
"express": "4.22.3",
|
|
24
|
-
"findup-sync": "4.0.0",
|
|
25
25
|
"fs-extra": "8.1.0",
|
|
26
26
|
"ink": "6.8.0",
|
|
27
27
|
"ink-spinner": "5.0.0",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"moment": "2.31.0",
|
|
32
32
|
"open": "7.4.2",
|
|
33
33
|
"p-queue": "8.1.1",
|
|
34
|
-
"react": "19.3.
|
|
35
|
-
"semver": "7.8.
|
|
34
|
+
"react": "19.3.1",
|
|
35
|
+
"semver": "7.8.6",
|
|
36
36
|
"strip-ansi": "7.2.0",
|
|
37
|
-
"table": "6.
|
|
37
|
+
"table": "6.10.1",
|
|
38
38
|
"tmp": "0.2.7",
|
|
39
39
|
"update-notifier": "7.3.1",
|
|
40
|
-
"ws": "8.22.
|
|
40
|
+
"ws": "8.22.1",
|
|
41
41
|
"yargs": "17.7.3",
|
|
42
42
|
"yargs-parser": "21.1.1",
|
|
43
43
|
"zod": "^4.4.3"
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@hubspot/npm-scripts": "^0.3.3",
|
|
47
47
|
"@types/archiver": "^6.0.3",
|
|
48
48
|
"@types/cli-progress": "^3.11.6",
|
|
49
|
+
"@types/cross-spawn": "^6.0.6",
|
|
49
50
|
"@types/express": "^5.0.0",
|
|
50
|
-
"@types/findup-sync": "^4.0.5",
|
|
51
51
|
"@types/fs-extra": "^11.0.4",
|
|
52
52
|
"@types/js-yaml": "^4.0.9",
|
|
53
53
|
"@types/node": "^24.1.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@typescript-eslint/eslint-plugin": "^8.30.1",
|
|
61
61
|
"@typescript-eslint/parser": "^8.11.0",
|
|
62
62
|
"@vitest/coverage-v8": "^4.1.11",
|
|
63
|
-
"axios": "1.
|
|
63
|
+
"axios": "1.21.0",
|
|
64
64
|
"eslint": "^8.56.0",
|
|
65
65
|
"eslint-plugin-import": "^2.31.0",
|
|
66
66
|
"husky": "^4.3.8",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"eslint-visitor-keys": "4.2.0",
|
|
127
127
|
"@eslint-community/eslint-utils": "4.9.0",
|
|
128
128
|
"@opentelemetry/core": "2.10.0",
|
|
129
|
-
"axios": "1.
|
|
129
|
+
"axios": "1.21.0",
|
|
130
130
|
"vite": "6.4.3"
|
|
131
131
|
}
|
|
132
132
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { McpToolResponse } from '../../types.js';
|
|
2
|
-
import { Tool, ToolExtra } from '../../Tool.js';
|
|
3
|
-
import { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
4
|
-
import { McpLogger } from '../../utils/logger.js';
|
|
5
|
-
import { z } from 'zod';
|
|
6
|
-
declare const inputSchemaZodObject: z.ZodObject<{
|
|
7
|
-
absoluteCurrentWorkingDirectory: z.ZodString;
|
|
8
|
-
dest: z.ZodOptional<z.ZodString>;
|
|
9
|
-
functionsFolder: z.ZodOptional<z.ZodString>;
|
|
10
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
11
|
-
endpointMethod: z.ZodOptional<z.ZodEnum<{
|
|
12
|
-
GET: "GET";
|
|
13
|
-
DELETE: "DELETE";
|
|
14
|
-
POST: "POST";
|
|
15
|
-
PUT: "PUT";
|
|
16
|
-
PATCH: "PATCH";
|
|
17
|
-
}>>;
|
|
18
|
-
endpointPath: z.ZodOptional<z.ZodString>;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
export type HsCreateFunctionInputSchema = z.infer<typeof inputSchemaZodObject>;
|
|
21
|
-
export declare class HsCreateFunctionTool extends Tool<HsCreateFunctionInputSchema> {
|
|
22
|
-
constructor(mcpServer: McpServer, logger: McpLogger);
|
|
23
|
-
handler({ dest, functionsFolder, filename, endpointMethod, endpointPath, absoluteCurrentWorkingDirectory, }: HsCreateFunctionInputSchema, extra?: ToolExtra): Promise<McpToolResponse>;
|
|
24
|
-
register(): RegisteredTool;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { Tool } from '../../Tool.js';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { absoluteCurrentWorkingDirectory } from '../project/constants.js';
|
|
4
|
-
import { formatTextContents, formatTextContent } from '../../utils/content.js';
|
|
5
|
-
import { HTTP_METHODS } from '../../../types/Cms.js';
|
|
6
|
-
import { HubSpotCommand } from '../../utils/command.js';
|
|
7
|
-
import { setupHubSpotConfig } from '../../utils/config.js';
|
|
8
|
-
import { getErrorMessage } from '../../../lib/errorHandlers/index.js';
|
|
9
|
-
const inputSchema = {
|
|
10
|
-
absoluteCurrentWorkingDirectory,
|
|
11
|
-
dest: z
|
|
12
|
-
.string()
|
|
13
|
-
.describe('The destination path where the function should be created on the current computer.')
|
|
14
|
-
.optional(),
|
|
15
|
-
functionsFolder: z
|
|
16
|
-
.string()
|
|
17
|
-
.describe('Folder name for function creation. Required for non-interactive function creation. If the user has not specified the folder name, ask them to provide it.')
|
|
18
|
-
.optional(),
|
|
19
|
-
filename: z
|
|
20
|
-
.string()
|
|
21
|
-
.describe('Function filename. Required for non-interactive function creation. If the user has not specified the filename, ask them to provide it.')
|
|
22
|
-
.optional(),
|
|
23
|
-
endpointMethod: z
|
|
24
|
-
.enum(HTTP_METHODS)
|
|
25
|
-
.describe(`HTTP method for the function endpoint. Must be one of: ${HTTP_METHODS.join(', ')}. Defaults to GET.`)
|
|
26
|
-
.optional(),
|
|
27
|
-
endpointPath: z
|
|
28
|
-
.string()
|
|
29
|
-
.describe('API endpoint path for the function. Required for non-interactive function creation. If the user has not specified the endpoint path, ask them to provide it.')
|
|
30
|
-
.optional(),
|
|
31
|
-
};
|
|
32
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
33
|
-
const inputSchemaZodObject = z.object({ ...inputSchema });
|
|
34
|
-
const toolName = 'create-cms-function';
|
|
35
|
-
export class HsCreateFunctionTool extends Tool {
|
|
36
|
-
constructor(mcpServer, logger) {
|
|
37
|
-
super(mcpServer, logger, toolName);
|
|
38
|
-
}
|
|
39
|
-
async handler({ dest, functionsFolder, filename, endpointMethod, endpointPath, absoluteCurrentWorkingDirectory, }, extra) {
|
|
40
|
-
setupHubSpotConfig(absoluteCurrentWorkingDirectory);
|
|
41
|
-
const content = [];
|
|
42
|
-
// Require functions folder
|
|
43
|
-
if (!functionsFolder) {
|
|
44
|
-
content.push(formatTextContent(`Ask the user to provide the folder name for the function.`));
|
|
45
|
-
}
|
|
46
|
-
// Require filename
|
|
47
|
-
if (!filename) {
|
|
48
|
-
content.push(formatTextContent(`Ask the user to provide the filename for the function.`));
|
|
49
|
-
}
|
|
50
|
-
// Require endpoint path
|
|
51
|
-
if (!endpointPath) {
|
|
52
|
-
content.push(formatTextContent(`Ask the user to provide the API endpoint path for the function.`));
|
|
53
|
-
}
|
|
54
|
-
// If we have missing required information, return the prompts
|
|
55
|
-
if (content.length > 0) {
|
|
56
|
-
return {
|
|
57
|
-
content,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
// Build the command
|
|
61
|
-
const command = new HubSpotCommand('cms function create');
|
|
62
|
-
if (dest) {
|
|
63
|
-
command.addArg(dest);
|
|
64
|
-
}
|
|
65
|
-
if (functionsFolder) {
|
|
66
|
-
command.addFlag('functions-folder', functionsFolder);
|
|
67
|
-
}
|
|
68
|
-
if (filename) {
|
|
69
|
-
command.addFlag('filename', filename);
|
|
70
|
-
}
|
|
71
|
-
command.addFlag('endpoint-method', endpointMethod ?? 'GET');
|
|
72
|
-
if (endpointPath) {
|
|
73
|
-
command.addFlag('endpoint-path', endpointPath);
|
|
74
|
-
}
|
|
75
|
-
try {
|
|
76
|
-
const { stdout, stderr } = await this.runCommand(absoluteCurrentWorkingDirectory, command, extra);
|
|
77
|
-
return formatTextContents(stdout, stderr);
|
|
78
|
-
}
|
|
79
|
-
catch (error) {
|
|
80
|
-
this.logger.debug(toolName, {
|
|
81
|
-
message: 'Handler caught error',
|
|
82
|
-
error: error instanceof Error ? error.message : String(error),
|
|
83
|
-
});
|
|
84
|
-
return formatTextContents(getErrorMessage(error));
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
register() {
|
|
88
|
-
return this.mcpServer.registerTool(toolName, {
|
|
89
|
-
title: 'Create HubSpot CMS Serverless Function',
|
|
90
|
-
description: `Creates a new HubSpot CMS serverless function using the hs cms function create command. This is for CMS/website projects, served at /hs/serverless/<path>. Do NOT use this for developer-platform app functions (the private app-function feature or the public app-function-endpoint feature). For those, use add-feature-to-project. Functions can be created non-interactively by specifying functionsFolder, filename, and endpointPath. Supports all HTTP methods (${HTTP_METHODS.join(', ')}).`,
|
|
91
|
-
inputSchema,
|
|
92
|
-
annotations: {
|
|
93
|
-
readOnlyHint: false,
|
|
94
|
-
destructiveHint: false,
|
|
95
|
-
idempotentHint: false,
|
|
96
|
-
openWorldHint: false,
|
|
97
|
-
},
|
|
98
|
-
}, (input, extra) => this.wrappedHandler(input, extra));
|
|
99
|
-
}
|
|
100
|
-
}
|