@hubspot/cli 7.9.0-experimental.0 → 7.9.1-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.
Files changed (196) hide show
  1. package/bin/cli.js +5 -4
  2. package/commands/__tests__/getStarted.test.js +10 -0
  3. package/commands/account/__tests__/rename.test.js +42 -0
  4. package/commands/account/auth.js +10 -14
  5. package/commands/account/clean.js +11 -19
  6. package/commands/account/createOverride.js +15 -11
  7. package/commands/account/info.js +8 -5
  8. package/commands/account/list.js +13 -18
  9. package/commands/account/remove.js +23 -22
  10. package/commands/account/removeOverride.js +6 -6
  11. package/commands/account/rename.d.ts +1 -1
  12. package/commands/account/rename.js +6 -3
  13. package/commands/account/use.js +19 -8
  14. package/commands/app/__tests__/migrate.test.js +8 -4
  15. package/commands/app/migrate.js +2 -2
  16. package/commands/auth.js +18 -14
  17. package/commands/config/migrate.js +5 -5
  18. package/commands/config/set.js +1 -2
  19. package/commands/customObject/createSchema.js +2 -3
  20. package/commands/customObject/updateSchema.js +2 -3
  21. package/commands/getStarted.js +10 -5
  22. package/commands/hubdb/__tests__/list.test.js +1 -0
  23. package/commands/hubdb/list.js +2 -2
  24. package/commands/hubdb.d.ts +1 -1
  25. package/commands/init.js +36 -32
  26. package/commands/project/__tests__/deploy.test.js +10 -5
  27. package/commands/project/__tests__/devUnifiedFlow.test.js +6 -4
  28. package/commands/project/__tests__/logs.test.js +4 -0
  29. package/commands/project/__tests__/validate.test.js +2 -2
  30. package/commands/project/cloneApp.js +2 -2
  31. package/commands/project/deploy.js +2 -2
  32. package/commands/project/dev/deprecatedFlow.js +4 -5
  33. package/commands/project/dev/index.js +14 -4
  34. package/commands/project/dev/unifiedFlow.js +4 -5
  35. package/commands/project/listBuilds.js +7 -1
  36. package/commands/project/logs.js +2 -3
  37. package/commands/project/profile/add.js +6 -7
  38. package/commands/project/profile/delete.js +2 -2
  39. package/commands/project/upload.js +9 -3
  40. package/commands/project/validate.js +9 -3
  41. package/commands/project/watch.js +7 -2
  42. package/commands/sandbox/__tests__/create.test.js +14 -5
  43. package/commands/sandbox/create.js +4 -5
  44. package/commands/sandbox/delete.js +23 -20
  45. package/commands/testAccount/__tests__/create.test.js +68 -0
  46. package/commands/testAccount/create.d.ts +8 -0
  47. package/commands/testAccount/create.js +134 -44
  48. package/commands/testAccount/delete.js +9 -8
  49. package/commands/testAccount/importData.d.ts +1 -1
  50. package/lang/en.d.ts +3204 -3205
  51. package/lang/en.js +33 -9
  52. package/lib/__tests__/buildAccount.test.js +22 -30
  53. package/lib/__tests__/commonOpts.test.js +9 -13
  54. package/lib/__tests__/developerTestAccounts.test.js +29 -17
  55. package/lib/__tests__/importData.test.js +20 -10
  56. package/lib/__tests__/oauth.test.js +19 -8
  57. package/lib/__tests__/sandboxSync.test.js +33 -11
  58. package/lib/__tests__/sandboxes.test.js +30 -19
  59. package/lib/__tests__/usageTracking.test.js +10 -10
  60. package/lib/__tests__/validation.test.js +32 -32
  61. package/lib/accountTypes.d.ts +9 -9
  62. package/lib/accountTypes.js +2 -4
  63. package/lib/app/__tests__/migrate.test.js +15 -0
  64. package/lib/app/__tests__/migrate_legacy.test.js +9 -0
  65. package/lib/app/migrate_legacy.d.ts +2 -2
  66. package/lib/buildAccount.d.ts +4 -4
  67. package/lib/buildAccount.js +7 -14
  68. package/lib/commonOpts.js +3 -3
  69. package/lib/configMigrate.d.ts +2 -2
  70. package/lib/configMigrate.js +42 -18
  71. package/lib/configOptions.js +3 -2
  72. package/lib/constants.d.ts +1 -0
  73. package/lib/constants.js +6 -0
  74. package/lib/developerTestAccounts.d.ts +3 -3
  75. package/lib/developerTestAccounts.js +4 -7
  76. package/lib/doctor/DiagnosticInfoBuilder.d.ts +1 -1
  77. package/lib/doctor/DiagnosticInfoBuilder.js +9 -6
  78. package/lib/doctor/Doctor.js +4 -3
  79. package/lib/doctor/__tests__/Diagnosis.test.js +4 -3
  80. package/lib/doctor/__tests__/DiagnosticInfoBuilder.test.js +17 -9
  81. package/lib/doctor/__tests__/Doctor.test.js +14 -0
  82. package/lib/importData.js +8 -7
  83. package/lib/links.js +5 -5
  84. package/lib/mcp/__tests__/setup.test.js +127 -0
  85. package/lib/mcp/setup.d.ts +4 -12
  86. package/lib/mcp/setup.js +34 -1
  87. package/lib/middleware/__test__/commandTargetingUtils.test.js +3 -3
  88. package/lib/middleware/__test__/configMiddleware.test.js +23 -22
  89. package/lib/middleware/__test__/gitMiddleware.test.js +9 -7
  90. package/lib/middleware/autoUpdateMiddleware.d.ts +3 -1
  91. package/lib/middleware/autoUpdateMiddleware.js +10 -2
  92. package/lib/middleware/commandTargetingUtils.js +2 -2
  93. package/lib/middleware/configMiddleware.d.ts +6 -1
  94. package/lib/middleware/configMiddleware.js +36 -15
  95. package/lib/middleware/gitMiddleware.js +8 -4
  96. package/lib/oauth.d.ts +2 -2
  97. package/lib/oauth.js +8 -10
  98. package/lib/projects/__tests__/AppDevModeInterface.test.js +17 -6
  99. package/lib/projects/__tests__/DevServerManager.test.js +1 -0
  100. package/lib/projects/__tests__/LocalDevProcess.test.js +1 -0
  101. package/lib/projects/__tests__/components.test.js +148 -24
  102. package/lib/projects/__tests__/deploy.test.js +1 -0
  103. package/lib/projects/__tests__/projects.test.js +13 -42
  104. package/lib/projects/components.js +76 -20
  105. package/lib/projects/config.js +5 -9
  106. package/lib/projects/create/__tests__/v2.test.js +11 -0
  107. package/lib/projects/localDev/AppDevModeInterface.js +2 -2
  108. package/lib/projects/localDev/DevServerManager_DEPRECATED.js +2 -2
  109. package/lib/projects/localDev/LocalDevLogger.js +4 -4
  110. package/lib/projects/localDev/LocalDevManager_DEPRECATED.js +3 -3
  111. package/lib/projects/localDev/helpers/account.d.ts +10 -10
  112. package/lib/projects/localDev/helpers/account.js +6 -11
  113. package/lib/projects/urls.js +5 -6
  114. package/lib/prompts/__tests__/createDeveloperTestAccountConfigPrompt.test.d.ts +1 -0
  115. package/lib/prompts/__tests__/createDeveloperTestAccountConfigPrompt.test.js +153 -0
  116. package/lib/prompts/__tests__/downloadProjectPrompt.test.js +7 -5
  117. package/lib/prompts/accountNamePrompt.js +3 -3
  118. package/lib/prompts/accountsPrompt.d.ts +1 -1
  119. package/lib/prompts/accountsPrompt.js +6 -7
  120. package/lib/prompts/confirmImportDataPrompt.js +2 -2
  121. package/lib/prompts/createDeveloperTestAccountConfigPrompt.d.ts +5 -0
  122. package/lib/prompts/createDeveloperTestAccountConfigPrompt.js +76 -66
  123. package/lib/prompts/downloadProjectPrompt.d.ts +1 -0
  124. package/lib/prompts/downloadProjectPrompt.js +5 -2
  125. package/lib/prompts/importDataTestAccountSelectPrompt.js +4 -5
  126. package/lib/prompts/personalAccessKeyPrompt.js +2 -2
  127. package/lib/prompts/projectDevTargetAccountPrompt.d.ts +3 -3
  128. package/lib/prompts/projectDevTargetAccountPrompt.js +5 -7
  129. package/lib/prompts/sandboxesPrompt.js +7 -8
  130. package/lib/prompts/setAsDefaultAccountPrompt.js +7 -6
  131. package/lib/sandboxSync.d.ts +2 -2
  132. package/lib/sandboxSync.js +3 -9
  133. package/lib/sandboxes.d.ts +4 -4
  134. package/lib/sandboxes.js +6 -11
  135. package/lib/serverlessLogs.js +2 -2
  136. package/lib/theme/__tests__/migrate.test.js +15 -0
  137. package/lib/ui/index.js +6 -3
  138. package/lib/usageTracking.js +15 -8
  139. package/lib/validation.js +13 -11
  140. package/mcp-server/tools/cms/HsCreateFunctionTool.js +8 -2
  141. package/mcp-server/tools/cms/HsCreateModuleTool.d.ts +4 -4
  142. package/mcp-server/tools/cms/HsCreateModuleTool.js +8 -2
  143. package/mcp-server/tools/cms/HsCreateTemplateTool.js +8 -2
  144. package/mcp-server/tools/cms/HsFunctionLogsTool.d.ts +4 -4
  145. package/mcp-server/tools/cms/HsFunctionLogsTool.js +6 -2
  146. package/mcp-server/tools/cms/HsListFunctionsTool.js +5 -1
  147. package/mcp-server/tools/cms/HsListTool.js +5 -1
  148. package/mcp-server/tools/cms/__tests__/HsCreateFunctionTool.test.js +1 -0
  149. package/mcp-server/tools/index.js +4 -0
  150. package/mcp-server/tools/project/AddFeatureToProjectTool.d.ts +1 -1
  151. package/mcp-server/tools/project/AddFeatureToProjectTool.js +9 -3
  152. package/mcp-server/tools/project/CreateProjectTool.js +8 -2
  153. package/mcp-server/tools/project/CreateTestAccountTool.d.ts +41 -0
  154. package/mcp-server/tools/project/CreateTestAccountTool.js +150 -0
  155. package/mcp-server/tools/project/DeployProjectTool.d.ts +1 -1
  156. package/mcp-server/tools/project/DeployProjectTool.js +8 -2
  157. package/mcp-server/tools/project/DocFetchTool.d.ts +1 -1
  158. package/mcp-server/tools/project/DocFetchTool.js +9 -5
  159. package/mcp-server/tools/project/DocsSearchTool.d.ts +1 -1
  160. package/mcp-server/tools/project/DocsSearchTool.js +12 -8
  161. package/mcp-server/tools/project/GetApiUsagePatternsByAppIdTool.d.ts +1 -1
  162. package/mcp-server/tools/project/GetApiUsagePatternsByAppIdTool.js +11 -7
  163. package/mcp-server/tools/project/GetApplicationInfoTool.d.ts +1 -1
  164. package/mcp-server/tools/project/GetApplicationInfoTool.js +11 -7
  165. package/mcp-server/tools/project/GetBuildStatusTool.d.ts +26 -0
  166. package/mcp-server/tools/project/GetBuildStatusTool.js +164 -0
  167. package/mcp-server/tools/project/GetConfigValuesTool.d.ts +1 -1
  168. package/mcp-server/tools/project/GetConfigValuesTool.js +11 -7
  169. package/mcp-server/tools/project/GuidedWalkthroughTool.d.ts +1 -1
  170. package/mcp-server/tools/project/GuidedWalkthroughTool.js +7 -3
  171. package/mcp-server/tools/project/UploadProjectTools.d.ts +9 -3
  172. package/mcp-server/tools/project/UploadProjectTools.js +51 -5
  173. package/mcp-server/tools/project/ValidateProjectTool.d.ts +1 -1
  174. package/mcp-server/tools/project/ValidateProjectTool.js +7 -3
  175. package/mcp-server/tools/project/__tests__/CreateTestAccountTool.test.d.ts +1 -0
  176. package/mcp-server/tools/project/__tests__/CreateTestAccountTool.test.js +454 -0
  177. package/mcp-server/tools/project/__tests__/DocFetchTool.test.js +5 -1
  178. package/mcp-server/tools/project/__tests__/DocsSearchTool.test.js +25 -13
  179. package/mcp-server/tools/project/__tests__/GetApiUsagePatternsByAppIdTool.test.js +7 -5
  180. package/mcp-server/tools/project/__tests__/GetApplicationInfoTool.test.js +7 -5
  181. package/mcp-server/tools/project/__tests__/GetBuildStatusTool.test.d.ts +1 -0
  182. package/mcp-server/tools/project/__tests__/GetBuildStatusTool.test.js +240 -0
  183. package/mcp-server/tools/project/__tests__/GetConfigValuesTool.test.js +8 -6
  184. package/mcp-server/tools/project/__tests__/UploadProjectTools.test.js +56 -4
  185. package/mcp-server/utils/__tests__/content.test.js +21 -20
  186. package/mcp-server/utils/__tests__/feedbackTracking.test.js +33 -28
  187. package/mcp-server/utils/content.d.ts +1 -1
  188. package/mcp-server/utils/content.js +2 -2
  189. package/mcp-server/utils/feedbackTracking.d.ts +1 -1
  190. package/mcp-server/utils/feedbackTracking.js +3 -3
  191. package/mcp-server/utils/toolUsageTracking.js +4 -3
  192. package/package.json +8 -7
  193. package/mcp-server/utils/__tests__/cliConfig.test.js +0 -110
  194. package/mcp-server/utils/cliConfig.d.ts +0 -1
  195. package/mcp-server/utils/cliConfig.js +0 -12
  196. /package/{mcp-server/utils/__tests__/cliConfig.test.d.ts → lib/mcp/__tests__/setup.test.d.ts} +0 -0
@@ -18,7 +18,7 @@ export class DocFetchTool extends Tool {
18
18
  constructor(mcpServer) {
19
19
  super(mcpServer);
20
20
  }
21
- async handler({ docUrl, absoluteCurrentWorkingDirectory, }) {
21
+ async handler({ docUrl }) {
22
22
  await trackToolUsage(toolName);
23
23
  try {
24
24
  // Append .md extension to the URL
@@ -28,16 +28,16 @@ export class DocFetchTool extends Tool {
28
28
  });
29
29
  const content = response.data;
30
30
  if (!content || content.trim().length === 0) {
31
- return formatTextContents(absoluteCurrentWorkingDirectory, 'Document is empty or contains no content.');
31
+ return formatTextContents('Document is empty or contains no content.');
32
32
  }
33
- return formatTextContents(absoluteCurrentWorkingDirectory, content);
33
+ return formatTextContents(content);
34
34
  }
35
35
  catch (error) {
36
36
  if (isHubSpotHttpError(error)) {
37
- return formatTextContents(absoluteCurrentWorkingDirectory, error.toString());
37
+ return formatTextContents(error.toString());
38
38
  }
39
39
  const errorMessage = `Error fetching documentation: ${error instanceof Error ? error.message : String(error)}`;
40
- return formatTextContents(absoluteCurrentWorkingDirectory, errorMessage);
40
+ return formatTextContents(errorMessage);
41
41
  }
42
42
  }
43
43
  register() {
@@ -45,6 +45,10 @@ export class DocFetchTool extends Tool {
45
45
  title: 'Fetch HubSpot Developer Documentation (single file)',
46
46
  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.',
47
47
  inputSchema,
48
+ annotations: {
49
+ readOnlyHint: true,
50
+ openWorldHint: true,
51
+ },
48
52
  }, this.handler);
49
53
  }
50
54
  }
@@ -23,7 +23,7 @@ export interface DocsSearchResponse {
23
23
  type InputSchemaType = z.infer<typeof inputSchemaZodObject>;
24
24
  export declare class DocsSearchTool extends Tool<InputSchemaType> {
25
25
  constructor(mcpServer: McpServer);
26
- handler({ absoluteCurrentWorkingDirectory, docsSearchQuery, }: InputSchemaType): Promise<TextContentResponse>;
26
+ handler({ docsSearchQuery, }: InputSchemaType): Promise<TextContentResponse>;
27
27
  register(): RegisteredTool;
28
28
  }
29
29
  export {};
@@ -5,7 +5,7 @@ import { formatTextContents } from '../../utils/content.js';
5
5
  import { trackToolUsage } from '../../utils/toolUsageTracking.js';
6
6
  import { absoluteCurrentWorkingDirectory, docsSearchQuery, } from './constants.js';
7
7
  import { isHubSpotHttpError } from '@hubspot/local-dev-lib/errors/index';
8
- import { getAccountIdFromCliConfig } from '../../utils/cliConfig.js';
8
+ import { getConfigDefaultAccountIfExists } from '@hubspot/local-dev-lib/config';
9
9
  const inputSchema = {
10
10
  absoluteCurrentWorkingDirectory,
11
11
  docsSearchQuery,
@@ -19,12 +19,12 @@ export class DocsSearchTool extends Tool {
19
19
  constructor(mcpServer) {
20
20
  super(mcpServer);
21
21
  }
22
- async handler({ absoluteCurrentWorkingDirectory, docsSearchQuery, }) {
22
+ async handler({ docsSearchQuery, }) {
23
23
  await trackToolUsage(toolName, { mode: docsSearchQuery });
24
- const accountId = getAccountIdFromCliConfig(absoluteCurrentWorkingDirectory);
24
+ const accountId = getConfigDefaultAccountIfExists()?.accountId;
25
25
  if (!accountId) {
26
26
  const authErrorMessage = `No account ID found. Please run \`hs account auth\` to configure an account, or set a default account with \`hs account use <account>\``;
27
- return formatTextContents(absoluteCurrentWorkingDirectory, authErrorMessage);
27
+ return formatTextContents(authErrorMessage);
28
28
  }
29
29
  try {
30
30
  const response = await http.post(accountId, {
@@ -35,21 +35,21 @@ export class DocsSearchTool extends Tool {
35
35
  });
36
36
  const results = response.data.results;
37
37
  if (!results || results.length === 0) {
38
- return formatTextContents(absoluteCurrentWorkingDirectory, 'No documentation found for your query.');
38
+ return formatTextContents('No documentation found for your query.');
39
39
  }
40
40
  const formattedResults = results
41
41
  .map(result => `**${result.title}**\n${result.description}\nURL: ${result.url}\nScore: ${result.score}\n\n${result.content}\n---\n`)
42
42
  .join('\n');
43
43
  const successMessage = `Found ${results.length} documentation results:\n\n${formattedResults}`;
44
- return formatTextContents(absoluteCurrentWorkingDirectory, successMessage);
44
+ return formatTextContents(successMessage);
45
45
  }
46
46
  catch (error) {
47
47
  if (isHubSpotHttpError(error)) {
48
48
  // Handle different status codes
49
- return formatTextContents(absoluteCurrentWorkingDirectory, error.toString());
49
+ return formatTextContents(error.toString());
50
50
  }
51
51
  const errorMessage = `Error searching documentation: ${error instanceof Error ? error.message : String(error)}`;
52
- return formatTextContents(absoluteCurrentWorkingDirectory, errorMessage);
52
+ return formatTextContents(errorMessage);
53
53
  }
54
54
  }
55
55
  register() {
@@ -57,6 +57,10 @@ export class DocsSearchTool extends Tool {
57
57
  title: 'Search HubSpot Developer Documentation',
58
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
+ annotations: {
61
+ readOnlyHint: true,
62
+ openWorldHint: true,
63
+ },
60
64
  }, this.handler);
61
65
  }
62
66
  }
@@ -20,7 +20,7 @@ declare const inputSchemaZodObject: z.ZodObject<{
20
20
  export type GetApiUsagePatternsByAppIdInputSchema = z.infer<typeof inputSchemaZodObject>;
21
21
  export declare class GetApiUsagePatternsByAppIdTool extends Tool<GetApiUsagePatternsByAppIdInputSchema> {
22
22
  constructor(mcpServer: McpServer);
23
- handler({ absoluteCurrentWorkingDirectory, appId, startDate, endDate, }: GetApiUsagePatternsByAppIdInputSchema): Promise<TextContentResponse>;
23
+ handler({ appId, startDate, endDate, }: GetApiUsagePatternsByAppIdInputSchema): Promise<TextContentResponse>;
24
24
  register(): RegisteredTool;
25
25
  }
26
26
  export {};
@@ -4,7 +4,7 @@ import { trackToolUsage } from '../../utils/toolUsageTracking.js';
4
4
  import { http } from '@hubspot/local-dev-lib/http';
5
5
  import { formatTextContents } from '../../utils/content.js';
6
6
  import { isHubSpotHttpError } from '@hubspot/local-dev-lib/errors/index';
7
- import { getAccountId } from '@hubspot/local-dev-lib/config';
7
+ import { getConfigDefaultAccountIfExists } from '@hubspot/local-dev-lib/config';
8
8
  import { absoluteCurrentWorkingDirectory } from './constants.js';
9
9
  const inputSchema = {
10
10
  absoluteCurrentWorkingDirectory,
@@ -30,14 +30,14 @@ export class GetApiUsagePatternsByAppIdTool extends Tool {
30
30
  constructor(mcpServer) {
31
31
  super(mcpServer);
32
32
  }
33
- async handler({ absoluteCurrentWorkingDirectory, appId, startDate, endDate, }) {
33
+ async handler({ appId, startDate, endDate, }) {
34
34
  await trackToolUsage(toolName);
35
35
  try {
36
36
  // Get account ID from CLI config
37
- const accountId = getAccountId();
37
+ const accountId = getConfigDefaultAccountIfExists()?.accountId;
38
38
  if (!accountId) {
39
39
  const authErrorMessage = `No account ID found. Please run \`hs account auth\` to configure an account, or set a default account with \`hs account use <account>\``;
40
- return formatTextContents(absoluteCurrentWorkingDirectory, authErrorMessage);
40
+ return formatTextContents(authErrorMessage);
41
41
  }
42
42
  const response = await http.get(accountId, {
43
43
  url: `app/feature/utilization/public/v3/insights/app/${appId}/usage-patterns`,
@@ -49,15 +49,15 @@ export class GetApiUsagePatternsByAppIdTool extends Tool {
49
49
  // Format the response for display
50
50
  const { data } = response;
51
51
  const formattedResult = JSON.stringify(data, null, 2);
52
- return formatTextContents(absoluteCurrentWorkingDirectory, formattedResult);
52
+ return formatTextContents(formattedResult);
53
53
  }
54
54
  catch (error) {
55
55
  if (isHubSpotHttpError(error)) {
56
56
  // Handle HubSpot-specific HTTP errors
57
- return formatTextContents(absoluteCurrentWorkingDirectory, error.toString());
57
+ return formatTextContents(error.toString());
58
58
  }
59
59
  const errorMessage = `${error instanceof Error ? error.message : String(error)}`;
60
- return formatTextContents(absoluteCurrentWorkingDirectory, errorMessage);
60
+ return formatTextContents(errorMessage);
61
61
  }
62
62
  }
63
63
  register() {
@@ -65,6 +65,10 @@ export class GetApiUsagePatternsByAppIdTool extends Tool {
65
65
  title: 'Get API Usage Patterns by App ID',
66
66
  description: 'Retrieves detailed API usage pattern analytics for a specific HubSpot application. Requires an appId (string) to identify the target application. Optionally accepts startDate and endDate parameters in YYYY-MM-DD format to filter results within a specific time range. Returns patternSummaries object containing usage statistics including portalPercentage (percentage of portals using this pattern) and numOfPortals (total count of portals) for different usage patterns. This data helps analyze how the application is being used across different HubSpot portals and can inform optimization decisions.',
67
67
  inputSchema,
68
+ annotations: {
69
+ readOnlyHint: true,
70
+ openWorldHint: true,
71
+ },
68
72
  }, this.handler);
69
73
  }
70
74
  }
@@ -11,7 +11,7 @@ declare const inputSchemaZodObject: z.ZodObject<{
11
11
  export type GetApplicationInfoInputSchema = z.infer<typeof inputSchemaZodObject>;
12
12
  export declare class GetApplicationInfoTool extends Tool<GetApplicationInfoInputSchema> {
13
13
  constructor(mcpServer: McpServer);
14
- handler({ absoluteCurrentWorkingDirectory, }: GetApplicationInfoInputSchema): Promise<TextContentResponse>;
14
+ handler({}: GetApplicationInfoInputSchema): Promise<TextContentResponse>;
15
15
  register(): RegisteredTool;
16
16
  }
17
17
  export {};
@@ -4,7 +4,7 @@ import { trackToolUsage } from '../../utils/toolUsageTracking.js';
4
4
  import { http } from '@hubspot/local-dev-lib/http';
5
5
  import { formatTextContents } from '../../utils/content.js';
6
6
  import { isHubSpotHttpError } from '@hubspot/local-dev-lib/errors/index';
7
- import { getAccountId } from '@hubspot/local-dev-lib/config';
7
+ import { getConfigDefaultAccountIfExists } from '@hubspot/local-dev-lib/config';
8
8
  import { absoluteCurrentWorkingDirectory } from './constants.js';
9
9
  const inputSchema = { absoluteCurrentWorkingDirectory };
10
10
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -14,14 +14,14 @@ export class GetApplicationInfoTool extends Tool {
14
14
  constructor(mcpServer) {
15
15
  super(mcpServer);
16
16
  }
17
- async handler({ absoluteCurrentWorkingDirectory, }) {
17
+ async handler({}) {
18
18
  await trackToolUsage(toolName);
19
19
  try {
20
20
  // Get account ID from CLI config
21
- const accountId = getAccountId();
21
+ const accountId = getConfigDefaultAccountIfExists()?.accountId;
22
22
  if (!accountId) {
23
23
  const authErrorMessage = `No account ID found. Please run \`hs account auth\` to configure an account, or set a default account with \`hs account use <account>\``;
24
- return formatTextContents(absoluteCurrentWorkingDirectory, authErrorMessage);
24
+ return formatTextContents(authErrorMessage);
25
25
  }
26
26
  const response = await http.get(accountId, {
27
27
  url: `app/feature/utilization/public/v3/insights/apps`,
@@ -29,15 +29,15 @@ export class GetApplicationInfoTool extends Tool {
29
29
  // Format the response for display
30
30
  const { data } = response;
31
31
  const formattedResult = JSON.stringify(data, null, 2);
32
- return formatTextContents(absoluteCurrentWorkingDirectory, formattedResult);
32
+ return formatTextContents(formattedResult);
33
33
  }
34
34
  catch (error) {
35
35
  if (isHubSpotHttpError(error)) {
36
36
  // Handle HubSpot-specific HTTP errors
37
- return formatTextContents(absoluteCurrentWorkingDirectory, error.toString());
37
+ return formatTextContents(error.toString());
38
38
  }
39
39
  const errorMessage = `${error instanceof Error ? error.message : String(error)}`;
40
- return formatTextContents(absoluteCurrentWorkingDirectory, errorMessage);
40
+ return formatTextContents(errorMessage);
41
41
  }
42
42
  }
43
43
  register() {
@@ -45,6 +45,10 @@ export class GetApplicationInfoTool extends Tool {
45
45
  title: 'Get Applications Information',
46
46
  description: 'Retrieves a list of all HubSpot applications available in the current account. Returns an array of applications, where each application contains an appId (numeric identifier) and appName (string). This information is useful for identifying available applications before using other tools that require specific application IDs, such as getting API usage patterns. No input parameters are required - this tool fetches all applications from the HubSpot Insights API.',
47
47
  inputSchema,
48
+ annotations: {
49
+ readOnlyHint: true,
50
+ openWorldHint: true,
51
+ },
48
52
  }, this.handler);
49
53
  }
50
54
  }
@@ -0,0 +1,26 @@
1
+ import { TextContentResponse, Tool } from '../../types.js';
2
+ import { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
3
+ import { z } from 'zod';
4
+ declare const inputSchemaZodObject: z.ZodObject<{
5
+ absoluteProjectPath: z.ZodString;
6
+ absoluteCurrentWorkingDirectory: z.ZodString;
7
+ buildId: z.ZodOptional<z.ZodNumber>;
8
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ limit: number;
11
+ absoluteProjectPath: string;
12
+ absoluteCurrentWorkingDirectory: string;
13
+ buildId?: number | undefined;
14
+ }, {
15
+ absoluteProjectPath: string;
16
+ absoluteCurrentWorkingDirectory: string;
17
+ limit?: number | undefined;
18
+ buildId?: number | undefined;
19
+ }>;
20
+ export type GetBuildStatusInputSchema = z.infer<typeof inputSchemaZodObject>;
21
+ export declare class GetBuildStatusTool extends Tool<GetBuildStatusInputSchema> {
22
+ constructor(mcpServer: McpServer);
23
+ handler({ absoluteProjectPath, absoluteCurrentWorkingDirectory, buildId, limit, }: GetBuildStatusInputSchema): Promise<TextContentResponse>;
24
+ register(): RegisteredTool;
25
+ }
26
+ export {};
@@ -0,0 +1,164 @@
1
+ import { Tool } from '../../types.js';
2
+ import { z } from 'zod';
3
+ import { trackToolUsage } from '../../utils/toolUsageTracking.js';
4
+ import { formatTextContents } from '../../utils/content.js';
5
+ import { isHubSpotHttpError } from '@hubspot/local-dev-lib/errors/index';
6
+ import { fetchProjectBuilds, getBuildStatus, } from '@hubspot/local-dev-lib/api/projects';
7
+ import { getProjectConfig, validateProjectConfig, } from '../../../lib/projects/config.js';
8
+ import moment from 'moment';
9
+ import { absoluteCurrentWorkingDirectory, absoluteProjectPath, } from './constants.js';
10
+ import { getConfigDefaultAccountIfExists } from '@hubspot/local-dev-lib/config';
11
+ const TOOL_NAME = 'get-build-status';
12
+ const inputSchema = {
13
+ absoluteProjectPath,
14
+ absoluteCurrentWorkingDirectory,
15
+ buildId: z
16
+ .number()
17
+ .optional()
18
+ .describe('Optional: Specific build ID to inspect. If omitted, shows recent builds to help identify the latest build.'),
19
+ limit: z
20
+ .number()
21
+ .optional()
22
+ .default(3)
23
+ .describe('Number of recent builds to fetch when buildId is not specified.'),
24
+ };
25
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
26
+ const inputSchemaZodObject = z.object({ ...inputSchema });
27
+ function getStatusIcon(status) {
28
+ return status === 'SUCCESS' ? '✓' : '⚠️';
29
+ }
30
+ function formatDuration(startedAt, finishedAt) {
31
+ const duration = moment.duration(moment(finishedAt).diff(moment(startedAt)));
32
+ const days = Math.floor(duration.asDays());
33
+ const hours = duration.hours();
34
+ const minutes = duration.minutes();
35
+ const seconds = duration.seconds();
36
+ const parts = [];
37
+ if (days > 0)
38
+ parts.push(`${days}d`);
39
+ if (hours > 0)
40
+ parts.push(`${hours}h`);
41
+ if (minutes > 0)
42
+ parts.push(`${minutes}m`);
43
+ if (seconds > 0 || parts.length === 0)
44
+ parts.push(`${seconds}s`);
45
+ return parts.join(' ');
46
+ }
47
+ function formatSubbuilds(subbuilds, indent = ' ') {
48
+ const lines = [];
49
+ subbuilds.forEach(sub => {
50
+ const icon = getStatusIcon(sub.status);
51
+ lines.push(`${indent}${icon} ${sub.buildName} (${sub.buildType}): ${sub.status}`);
52
+ if (sub.errorMessage) {
53
+ lines.push(`${indent} Error: ${sub.errorMessage}`);
54
+ }
55
+ });
56
+ return lines;
57
+ }
58
+ function formatBuildList(builds) {
59
+ const lines = [];
60
+ builds.forEach((build, index) => {
61
+ const icon = getStatusIcon(build.status);
62
+ const timeAgo = moment(build.finishedAt).fromNow();
63
+ const duration = formatDuration(build.startedAt, build.finishedAt);
64
+ lines.push(`Build #${build.buildId} - ${build.status} ${icon}`);
65
+ lines.push(` Finished: ${timeAgo} (Duration: ${duration})`);
66
+ if (build.uploadMessage) {
67
+ lines.push(` Message: ${build.uploadMessage}`);
68
+ }
69
+ if (build.status === 'FAILURE' && build.buildErrorMessage) {
70
+ lines.push(` Error: ${build.buildErrorMessage}`);
71
+ }
72
+ if (build.subbuildStatuses.length > 0) {
73
+ lines.push(` Subbuilds:`);
74
+ lines.push(...formatSubbuilds(build.subbuildStatuses, ' '));
75
+ }
76
+ if (index < builds.length - 1) {
77
+ lines.push('');
78
+ }
79
+ });
80
+ return lines.join('\n');
81
+ }
82
+ function formatBuildDetails(build) {
83
+ const lines = [];
84
+ const icon = getStatusIcon(build.status);
85
+ lines.push(`Build #${build.buildId} Details\n`);
86
+ lines.push(`Status: ${build.status} ${icon}`);
87
+ lines.push(`Platform Version: ${build.platformVersion}`);
88
+ lines.push(`Started: ${moment(build.startedAt).format('YYYY-MM-DD HH:mm:ss UTC')}`);
89
+ lines.push(`Finished: ${moment(build.finishedAt).format('YYYY-MM-DD HH:mm:ss UTC')}`);
90
+ lines.push(`Duration: ${formatDuration(build.startedAt, build.finishedAt)}`);
91
+ if (build.uploadMessage) {
92
+ lines.push(`\nUpload Message:\n${build.uploadMessage}`);
93
+ }
94
+ if (build.buildErrorMessage) {
95
+ lines.push(`\nBuild Error:\n${build.buildErrorMessage}`);
96
+ }
97
+ if (build.subbuildStatuses.length > 0) {
98
+ lines.push(`\nSubbuilds:`);
99
+ lines.push(...formatSubbuilds(build.subbuildStatuses));
100
+ }
101
+ else {
102
+ lines.push(`\nSubbuilds: None`);
103
+ }
104
+ return lines.join('\n');
105
+ }
106
+ export class GetBuildStatusTool extends Tool {
107
+ constructor(mcpServer) {
108
+ super(mcpServer);
109
+ }
110
+ async handler({ absoluteProjectPath, absoluteCurrentWorkingDirectory, buildId, limit, }) {
111
+ await trackToolUsage(TOOL_NAME);
112
+ try {
113
+ const accountId = getConfigDefaultAccountIfExists()?.accountId;
114
+ if (!accountId) {
115
+ return formatTextContents(absoluteCurrentWorkingDirectory, 'No account ID found. Please run `hs account auth` to configure an account, or set a default account with `hs account use <account>`');
116
+ }
117
+ const { projectConfig, projectDir } = await getProjectConfig(absoluteProjectPath);
118
+ validateProjectConfig(projectConfig, projectDir);
119
+ const projectName = projectConfig.name;
120
+ let output;
121
+ if (buildId) {
122
+ const response = await getBuildStatus(accountId, projectName, buildId);
123
+ const build = response.data;
124
+ output = formatBuildDetails(build);
125
+ }
126
+ else {
127
+ const response = await fetchProjectBuilds(accountId, projectName, {
128
+ limit,
129
+ });
130
+ const { results } = response.data;
131
+ if (!results || results.length === 0) {
132
+ return formatTextContents(absoluteCurrentWorkingDirectory, `No builds found for project '${projectName}'.`);
133
+ }
134
+ output = `Recent builds for '${projectName}':\n\n${formatBuildList(results)}`;
135
+ }
136
+ return formatTextContents(absoluteCurrentWorkingDirectory, output);
137
+ }
138
+ catch (error) {
139
+ let errorMessage;
140
+ if (isHubSpotHttpError(error)) {
141
+ errorMessage = error.toString();
142
+ }
143
+ else if (error instanceof Error) {
144
+ errorMessage = error.message;
145
+ }
146
+ else {
147
+ errorMessage = String(error);
148
+ }
149
+ return formatTextContents(absoluteCurrentWorkingDirectory, errorMessage);
150
+ }
151
+ }
152
+ register() {
153
+ return this.mcpServer.registerTool(TOOL_NAME, {
154
+ title: 'Get HubSpot Projects Build Status and Errors',
155
+ description: 'Retrieves build status and error messages for HubSpot projects. When buildId is omitted, shows recent builds with their status(default 3) - use this to find the latest builds when troubleshooting. When buildId is provided, shows detailed error information for that specific build. Displays buildErrorMessage and subbuild failures to help diagnose build issues.',
156
+ inputSchema,
157
+ annotations: {
158
+ readOnlyHint: true,
159
+ openWorldHint: true,
160
+ idempotentHint: true,
161
+ },
162
+ }, this.handler);
163
+ }
164
+ }
@@ -17,7 +17,7 @@ declare const inputSchemaZodObject: z.ZodObject<{
17
17
  type InputSchemaType = z.infer<typeof inputSchemaZodObject>;
18
18
  export declare class GetConfigValuesTool extends Tool<InputSchemaType> {
19
19
  constructor(mcpServer: McpServer);
20
- handler({ absoluteCurrentWorkingDirectory, platformVersion, featureType, }: InputSchemaType): Promise<TextContentResponse>;
20
+ handler({ platformVersion, featureType, }: InputSchemaType): Promise<TextContentResponse>;
21
21
  register(): RegisteredTool;
22
22
  }
23
23
  export {};
@@ -4,7 +4,7 @@ import { formatTextContents } from '../../utils/content.js';
4
4
  import { absoluteCurrentWorkingDirectory } from './constants.js';
5
5
  import { getIntermediateRepresentationSchema, mapToInternalType, } from '@hubspot/project-parsing-lib';
6
6
  import { isV2Project } from '../../../lib/projects/platformVersion.js';
7
- import { getAccountIdFromCliConfig } from '../../utils/cliConfig.js';
7
+ import { getConfigDefaultAccountIfExists } from '@hubspot/local-dev-lib/config';
8
8
  const inputSchema = {
9
9
  absoluteCurrentWorkingDirectory,
10
10
  platformVersion: z
@@ -23,15 +23,15 @@ export class GetConfigValuesTool extends Tool {
23
23
  constructor(mcpServer) {
24
24
  super(mcpServer);
25
25
  }
26
- async handler({ absoluteCurrentWorkingDirectory, platformVersion, featureType, }) {
26
+ async handler({ platformVersion, featureType, }) {
27
27
  try {
28
28
  if (!isV2Project(platformVersion)) {
29
- return formatTextContents(absoluteCurrentWorkingDirectory, `Can only be used on projects with a minimum platformVersion of 2025.2`);
29
+ return formatTextContents(`Can only be used on projects with a minimum platformVersion of 2025.2`);
30
30
  }
31
- const accountId = getAccountIdFromCliConfig(absoluteCurrentWorkingDirectory);
31
+ const accountId = getConfigDefaultAccountIfExists()?.accountId;
32
32
  if (!accountId) {
33
33
  const authErrorMessage = `No account ID found. Please run \`hs account auth\` to configure an account, or set a default account with \`hs account use <account>\``;
34
- return formatTextContents(absoluteCurrentWorkingDirectory, authErrorMessage);
34
+ return formatTextContents(authErrorMessage);
35
35
  }
36
36
  const schema = await getIntermediateRepresentationSchema({
37
37
  platformVersion,
@@ -40,11 +40,11 @@ export class GetConfigValuesTool extends Tool {
40
40
  });
41
41
  const internalComponentType = mapToInternalType(featureType);
42
42
  if (schema[internalComponentType]) {
43
- return formatTextContents(absoluteCurrentWorkingDirectory, JSON.stringify({ config: schema[internalComponentType] }));
43
+ return formatTextContents(JSON.stringify({ config: schema[internalComponentType] }));
44
44
  }
45
45
  }
46
46
  catch (error) { }
47
- return formatTextContents(absoluteCurrentWorkingDirectory, `Unable to locate JSON schema for type ${featureType}`);
47
+ return formatTextContents(`Unable to locate JSON schema for type ${featureType}`);
48
48
  }
49
49
  register() {
50
50
  return this.mcpServer.registerTool(toolName, {
@@ -53,6 +53,10 @@ export class GetConfigValuesTool extends Tool {
53
53
  This should be called before editing a '-hsmeta.json' file to get the list of possible values and restrictions on those values.
54
54
  This will only work for projects with platformVersion 2025.2 and beyond`,
55
55
  inputSchema,
56
+ annotations: {
57
+ readOnlyHint: true,
58
+ openWorldHint: false,
59
+ },
56
60
  }, this.handler);
57
61
  }
58
62
  }
@@ -14,7 +14,7 @@ declare const inputSchemaZodObject: z.ZodObject<{
14
14
  type InputSchemaType = z.infer<typeof inputSchemaZodObject>;
15
15
  export declare class GuidedWalkthroughTool extends Tool<InputSchemaType> {
16
16
  constructor(mcpServer: McpServer);
17
- handler({ absoluteCurrentWorkingDirectory, command, }: InputSchemaType): Promise<TextContentResponse>;
17
+ handler({ command }: InputSchemaType): Promise<TextContentResponse>;
18
18
  register(): RegisteredTool;
19
19
  }
20
20
  export {};
@@ -31,19 +31,23 @@ export class GuidedWalkthroughTool extends Tool {
31
31
  constructor(mcpServer) {
32
32
  super(mcpServer);
33
33
  }
34
- async handler({ absoluteCurrentWorkingDirectory, command, }) {
34
+ async handler({ command }) {
35
35
  await trackToolUsage(toolName);
36
36
  if (command) {
37
37
  const { stdout } = await execAsync(`${command} --help`);
38
- return formatTextContents(absoluteCurrentWorkingDirectory, `Display this help output for the user amd wait for them to acknowledge: ${stdout}. ${nextCommands[command] ? `Once they are ready, A good command to look at next is ${nextCommands[command]}` : ''}`);
38
+ return formatTextContents(`Display this help output for the user amd wait for them to acknowledge: ${stdout}. ${nextCommands[command] ? `Once they are ready, A good command to look at next is ${nextCommands[command]}` : ''}`);
39
39
  }
40
- return formatTextContents(absoluteCurrentWorkingDirectory, 'Is there another command you would like to learn more about?');
40
+ return formatTextContents('Is there another command you would like to learn more about?');
41
41
  }
42
42
  register() {
43
43
  return this.mcpServer.registerTool(toolName, {
44
44
  title: 'Guided walkthrough of the CLI',
45
45
  description: 'Give the user a guided walkthrough of the HubSpot CLI.',
46
46
  inputSchema,
47
+ annotations: {
48
+ readOnlyHint: true,
49
+ openWorldHint: false,
50
+ },
47
51
  }, this.handler);
48
52
  }
49
53
  }
@@ -1,20 +1,26 @@
1
- import { TextContentResponse, Tool } from '../../types.js';
2
- import { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
3
1
  import z from 'zod';
2
+ import { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
3
+ import { TextContentResponse, Tool } from '../../types.js';
4
4
  declare const inputSchemaZodObject: z.ZodObject<{
5
5
  absoluteProjectPath: z.ZodString;
6
6
  absoluteCurrentWorkingDirectory: z.ZodString;
7
+ uploadMessage: z.ZodString;
8
+ profile: z.ZodOptional<z.ZodString>;
7
9
  }, "strip", z.ZodTypeAny, {
10
+ uploadMessage: string;
8
11
  absoluteProjectPath: string;
9
12
  absoluteCurrentWorkingDirectory: string;
13
+ profile?: string | undefined;
10
14
  }, {
15
+ uploadMessage: string;
11
16
  absoluteProjectPath: string;
12
17
  absoluteCurrentWorkingDirectory: string;
18
+ profile?: string | undefined;
13
19
  }>;
14
20
  type InputSchemaType = z.infer<typeof inputSchemaZodObject>;
15
21
  export declare class UploadProjectTools extends Tool<InputSchemaType> {
16
22
  constructor(mcpServer: McpServer);
17
- handler({ absoluteProjectPath, absoluteCurrentWorkingDirectory, }: InputSchemaType): Promise<TextContentResponse>;
23
+ handler({ absoluteProjectPath, profile, uploadMessage, }: InputSchemaType): Promise<TextContentResponse>;
18
24
  register(): RegisteredTool;
19
25
  }
20
26
  export {};
@@ -1,12 +1,22 @@
1
+ import path from 'path';
2
+ import z from 'zod';
3
+ import { getAllHsProfiles } from '@hubspot/project-parsing-lib';
4
+ import { getProjectConfig } from '../../../lib/projects/config.js';
1
5
  import { Tool } from '../../types.js';
2
6
  import { runCommandInDir } from '../../utils/project.js';
3
7
  import { absoluteCurrentWorkingDirectory, absoluteProjectPath, } from './constants.js';
4
- import z from 'zod';
5
- import { formatTextContents } from '../../utils/content.js';
8
+ import { formatTextContent, formatTextContents } from '../../utils/content.js';
6
9
  import { trackToolUsage } from '../../utils/toolUsageTracking.js';
10
+ import { addFlag } from '../../utils/command.js';
7
11
  const inputSchema = {
8
12
  absoluteProjectPath,
9
13
  absoluteCurrentWorkingDirectory,
14
+ uploadMessage: z
15
+ .string()
16
+ .describe('A 1 sentence message that concisely describes the changes that are being uploaded.'),
17
+ profile: z
18
+ .optional(z.string())
19
+ .describe('CRITICAL: If the user has not explicitly specified a profile name, you MUST ask them which profile to use. NEVER automatically choose a profile based on files you see in the directory (e.g., seeing "hsprofile.prod.json" does NOT mean you should use "prod"). The profile to be used for the upload. All projects configured to use profiles must specify a profile when uploading. Profile files have the following format: "hsprofile.<profile>.json".'),
10
20
  };
11
21
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
12
22
  const inputSchemaZodObject = z.object({
@@ -17,16 +27,52 @@ export class UploadProjectTools extends Tool {
17
27
  constructor(mcpServer) {
18
28
  super(mcpServer);
19
29
  }
20
- async handler({ absoluteProjectPath, absoluteCurrentWorkingDirectory, }) {
30
+ async handler({ absoluteProjectPath, profile, uploadMessage, }) {
21
31
  await trackToolUsage(toolName);
22
- const { stdout, stderr } = await runCommandInDir(absoluteProjectPath, `hs project upload --force-create`);
23
- return formatTextContents(absoluteCurrentWorkingDirectory, stdout, stderr);
32
+ let command = addFlag('hs project upload', 'force-create', true);
33
+ const content = [];
34
+ if (uploadMessage) {
35
+ command = addFlag(command, 'message', uploadMessage);
36
+ }
37
+ if (profile) {
38
+ command = addFlag(command, 'profile', profile);
39
+ }
40
+ else {
41
+ let hasProfiles = false;
42
+ try {
43
+ const { projectConfig } = await getProjectConfig(absoluteProjectPath);
44
+ if (projectConfig) {
45
+ const profiles = await getAllHsProfiles(path.join(absoluteProjectPath, projectConfig.srcDir));
46
+ hasProfiles = profiles.length > 0;
47
+ }
48
+ }
49
+ catch (e) {
50
+ // If any of these checks fail, the safest thing to do is to assume there are no profiles.
51
+ hasProfiles = false;
52
+ }
53
+ if (hasProfiles) {
54
+ content.push(formatTextContent(`Ask the user which profile they would like to use for the upload.`));
55
+ }
56
+ }
57
+ if (content.length > 0) {
58
+ return {
59
+ content,
60
+ };
61
+ }
62
+ const { stdout, stderr } = await runCommandInDir(absoluteProjectPath, command);
63
+ return formatTextContents(stdout, stderr);
24
64
  }
25
65
  register() {
26
66
  return this.mcpServer.registerTool(toolName, {
27
67
  title: 'Upload HubSpot Project',
28
68
  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.',
29
69
  inputSchema,
70
+ annotations: {
71
+ readOnlyHint: false,
72
+ destructiveHint: true,
73
+ idempotentHint: true,
74
+ openWorldHint: true,
75
+ },
30
76
  }, this.handler);
31
77
  }
32
78
  }