@hubspot/cli 8.3.0-beta.1 → 8.3.0-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/api/migrate.js +3 -3
- package/api/releases.d.ts +39 -0
- package/api/releases.js +41 -0
- package/bin/cli.js +18 -7
- package/bin/hs.js +1 -0
- package/bin/hscms.js +1 -0
- package/bin/setupColor.d.ts +2 -0
- package/bin/setupColor.js +10 -0
- package/commands/account/auth.d.ts +6 -3
- package/commands/account/auth.js +48 -29
- package/commands/account/clean.js +7 -6
- package/commands/account/createOverride.js +10 -7
- package/commands/account/info.js +36 -17
- package/commands/account/link.d.ts +4 -0
- package/commands/account/link.js +87 -0
- package/commands/account/list.js +32 -76
- package/commands/account/remove.js +4 -3
- package/commands/account/removeOverride.js +11 -10
- package/commands/account/rename.js +5 -6
- package/commands/account/unlink.d.ts +4 -0
- package/commands/account/unlink.js +68 -0
- package/commands/account/use.js +79 -20
- package/commands/account.js +4 -0
- package/commands/api.d.ts +13 -0
- package/commands/api.js +161 -0
- package/commands/app/logDetails.d.ts +9 -0
- package/commands/app/logDetails.js +86 -0
- package/commands/app/logs.d.ts +13 -0
- package/commands/app/logs.js +126 -0
- package/commands/app/migrate.js +12 -12
- package/commands/app/secret/add.js +6 -7
- package/commands/app/secret/delete.js +9 -10
- package/commands/app/secret/list.js +6 -7
- package/commands/app/secret/update.js +8 -9
- package/commands/app.js +8 -1
- package/commands/auth.js +13 -13
- package/commands/cms/app/create.js +9 -5
- package/commands/cms/convertFields.js +8 -8
- package/commands/cms/delete.js +2 -3
- package/commands/cms/fetch.js +7 -7
- package/commands/cms/function/create.js +9 -5
- package/commands/cms/function/deploy.js +2 -3
- package/commands/cms/function/list.js +11 -7
- package/commands/cms/function/logs.js +17 -23
- package/commands/cms/function/server.js +16 -10
- package/commands/cms/getReactModule.js +7 -8
- package/commands/cms/lighthouseScore.js +25 -24
- package/commands/cms/lint.js +4 -5
- package/commands/cms/list.js +5 -6
- package/commands/cms/module/create.js +15 -5
- package/commands/cms/module/marketplace-validate.js +7 -8
- package/commands/cms/mv.js +2 -3
- package/commands/cms/template/create.js +10 -6
- package/commands/cms/theme/create.js +5 -5
- package/commands/cms/theme/generate-selectors.js +5 -4
- package/commands/cms/theme/marketplace-validate.js +8 -9
- package/commands/cms/theme/preview.js +24 -9
- package/commands/cms/upload.js +15 -12
- package/commands/cms/watch.js +5 -5
- package/commands/cms/webpack/create.js +5 -5
- package/commands/completion.js +3 -5
- package/commands/config/migrate.js +6 -7
- package/commands/config/set.js +29 -11
- package/commands/customObject/create.js +4 -5
- package/commands/customObject/createSchema.js +6 -8
- package/commands/customObject/deleteSchema.js +4 -5
- package/commands/customObject/fetchAllSchemas.js +2 -3
- package/commands/customObject/fetchSchema.js +2 -3
- package/commands/customObject/listSchemas.js +2 -3
- package/commands/customObject/updateSchema.js +6 -8
- package/commands/doctor.js +8 -8
- package/commands/feedback.js +6 -4
- package/commands/filemanager/fetch.js +5 -6
- package/commands/filemanager/upload.js +5 -5
- package/commands/getStarted.js +34 -38
- package/commands/hubdb/clear.js +5 -6
- package/commands/hubdb/create.js +4 -5
- package/commands/hubdb/delete.js +8 -9
- package/commands/hubdb/fetch.js +5 -6
- package/commands/hubdb/list.d.ts +1 -1
- package/commands/hubdb/list.js +23 -22
- package/commands/init.js +17 -18
- package/commands/mcp/setup.d.ts +2 -0
- package/commands/mcp/setup.js +35 -8
- package/commands/mcp/start.js +2 -3
- package/commands/open.js +4 -5
- package/commands/project/add.d.ts +3 -2
- package/commands/project/add.js +26 -18
- package/commands/project/appInstallStatus.d.ts +5 -0
- package/commands/project/appInstallStatus.js +139 -0
- package/commands/project/create.d.ts +4 -2
- package/commands/project/create.js +64 -23
- package/commands/project/delete.d.ts +7 -0
- package/commands/project/delete.js +74 -0
- package/commands/project/deploy.d.ts +2 -1
- package/commands/project/deploy.js +72 -50
- package/commands/project/dev/index.d.ts +3 -3
- package/commands/project/dev/index.js +47 -90
- package/commands/project/dev/unifiedFlow.js +81 -22
- package/commands/project/download.d.ts +3 -2
- package/commands/project/download.js +26 -14
- package/commands/project/info.d.ts +5 -0
- package/commands/project/info.js +73 -0
- package/commands/project/installApp.d.ts +8 -0
- package/commands/project/installApp.js +185 -0
- package/commands/project/installDeps.js +17 -11
- package/commands/project/lint.js +57 -19
- package/commands/project/list.d.ts +3 -2
- package/commands/project/list.js +34 -15
- package/commands/project/listBuilds.d.ts +3 -2
- package/commands/project/listBuilds.js +50 -19
- package/commands/project/logs.js +7 -10
- package/commands/project/migrate.js +26 -31
- package/commands/project/open.js +20 -13
- package/commands/project/profile/add.d.ts +2 -1
- package/commands/project/profile/add.js +42 -13
- package/commands/project/profile/delete.d.ts +1 -1
- package/commands/project/profile/delete.js +23 -15
- package/commands/project/release/create.d.ts +8 -0
- package/commands/project/release/create.js +160 -0
- package/commands/project/release/info.d.ts +7 -0
- package/commands/project/release/info.js +148 -0
- package/commands/project/release/list.d.ts +7 -0
- package/commands/project/release/list.js +119 -0
- package/commands/project/release/preview.d.ts +9 -0
- package/commands/project/release/preview.js +167 -0
- package/commands/project/release.d.ts +3 -0
- package/commands/project/release.js +26 -0
- package/commands/project/updateDeps.js +15 -11
- package/commands/project/upload.d.ts +7 -1
- package/commands/project/upload.js +159 -35
- package/commands/project/validate.d.ts +3 -2
- package/commands/project/validate.js +73 -103
- package/commands/project/watch.js +27 -29
- package/commands/project.js +17 -4
- package/commands/sandbox/create.js +15 -15
- package/commands/sandbox/delete.js +15 -17
- package/commands/secret/addSecret.js +6 -7
- package/commands/secret/deleteSecret.js +5 -6
- package/commands/secret/listSecret.js +2 -3
- package/commands/secret/updateSecret.js +4 -5
- package/commands/testAccount/create.d.ts +3 -2
- package/commands/testAccount/create.js +29 -25
- package/commands/testAccount/createConfig.js +7 -8
- package/commands/testAccount/delete.js +27 -18
- package/commands/testAccount/importData.d.ts +1 -1
- package/commands/testAccount/importData.js +6 -7
- package/commands/upgrade.js +11 -10
- package/lang/en.d.ts +597 -52
- package/lang/en.js +637 -76
- package/lib/CLIWebSocketServer.d.ts +5 -3
- package/lib/CLIWebSocketServer.js +31 -4
- package/lib/accountAuth.d.ts +3 -1
- package/lib/accountAuth.js +45 -19
- package/lib/accountTargetDiscovery.d.ts +15 -0
- package/lib/accountTargetDiscovery.js +175 -0
- package/lib/api/usageTracking.d.ts +30 -0
- package/lib/api/usageTracking.js +11 -0
- package/lib/app/install.d.ts +22 -0
- package/lib/app/install.js +42 -0
- package/lib/app/logs.d.ts +38 -0
- package/lib/app/logs.js +225 -0
- package/lib/app/migrate.js +13 -7
- package/lib/app/urls.d.ts +2 -0
- package/lib/app/urls.js +7 -1
- package/lib/auth/awaitPersonalAccessKeyOverWebsocket.d.ts +4 -0
- package/lib/auth/awaitPersonalAccessKeyOverWebsocket.js +146 -0
- package/lib/buildAccount.js +4 -4
- package/lib/cms/serverlessDevRuntime.d.ts +1 -0
- package/lib/cms/serverlessDevRuntime.js +72 -0
- package/lib/commonOpts.js +6 -2
- package/lib/configOptions.d.ts +10 -10
- package/lib/configOptions.js +10 -11
- package/lib/constants.d.ts +14 -2
- package/lib/constants.js +16 -2
- package/lib/dependencyManagement.js +10 -17
- package/lib/doctor/Diagnosis.js +5 -5
- package/lib/doctor/DiagnosticInfoBuilder.d.ts +2 -2
- package/lib/doctor/DiagnosticInfoBuilder.js +8 -8
- package/lib/doctor/Doctor.d.ts +1 -0
- package/lib/doctor/Doctor.js +40 -16
- package/lib/errorHandlers/index.js +4 -3
- package/lib/errorHandlers/suppressError.js +4 -0
- package/lib/errors/ProjectErrors.d.ts +0 -6
- package/lib/errors/ProjectErrors.js +0 -12
- package/lib/errors/ProjectValidationError.d.ts +2 -1
- package/lib/errors/ProjectValidationError.js +3 -1
- package/lib/errors/PromptExitError.d.ts +4 -2
- package/lib/errors/PromptExitError.js +3 -0
- package/lib/filesystem.d.ts +6 -0
- package/lib/filesystem.js +9 -0
- package/lib/getStartedV2Actions.js +18 -21
- package/lib/hasFeature.js +1 -2
- package/lib/importData.js +3 -4
- package/lib/jsonOutput/accountAuth.d.ts +7 -0
- package/lib/jsonOutput/accountAuth.js +6 -0
- package/lib/jsonOutput/projectAdd.d.ts +9 -0
- package/lib/jsonOutput/projectAdd.js +10 -0
- package/lib/jsonOutput/projectAppInstallStatus.d.ts +14 -0
- package/lib/jsonOutput/projectAppInstallStatus.js +14 -0
- package/lib/jsonOutput/projectCreate.d.ts +8 -0
- package/lib/jsonOutput/projectCreate.js +7 -0
- package/lib/jsonOutput/projectDeploy.d.ts +5 -0
- package/lib/jsonOutput/projectDeploy.js +4 -0
- package/lib/jsonOutput/projectDownload.d.ts +7 -0
- package/lib/jsonOutput/projectDownload.js +6 -0
- package/lib/jsonOutput/projectInfo.d.ts +21 -0
- package/lib/jsonOutput/projectInfo.js +19 -0
- package/lib/jsonOutput/projectInstallApp.d.ts +11 -0
- package/lib/jsonOutput/projectInstallApp.js +10 -0
- package/lib/jsonOutput/projectList.d.ts +29 -0
- package/lib/jsonOutput/projectList.js +28 -0
- package/lib/jsonOutput/projectListBuilds.d.ts +75 -0
- package/lib/jsonOutput/projectListBuilds.js +65 -0
- package/lib/jsonOutput/projectRelease.d.ts +49 -0
- package/lib/jsonOutput/projectRelease.js +44 -0
- package/lib/jsonOutput/projectUpload.d.ts +29 -0
- package/lib/jsonOutput/projectUpload.js +23 -0
- package/lib/jsonOutput/projectValidate.d.ts +36 -0
- package/lib/jsonOutput/projectValidate.js +20 -0
- package/lib/jsonOutput/testAccountCreate.d.ts +7 -0
- package/lib/jsonOutput/testAccountCreate.js +6 -0
- package/lib/link/accountTableUtils.d.ts +10 -0
- package/lib/link/accountTableUtils.js +39 -0
- package/lib/link/index.d.ts +18 -0
- package/lib/link/index.js +185 -0
- package/lib/link/linkUtils.d.ts +5 -0
- package/lib/link/linkUtils.js +49 -0
- package/lib/link/prompts.d.ts +7 -0
- package/lib/link/prompts.js +126 -0
- package/lib/link/renderLinkedAccountsTable.d.ts +2 -0
- package/lib/link/renderLinkedAccountsTable.js +14 -0
- package/lib/link/warnIfLinkedDirectory.d.ts +1 -0
- package/lib/link/warnIfLinkedDirectory.js +9 -0
- package/lib/links.js +6 -5
- package/lib/mcp/clients.d.ts +13 -0
- package/lib/mcp/clients.js +62 -0
- package/lib/mcp/promotion.d.ts +3 -0
- package/lib/mcp/promotion.js +109 -0
- package/lib/mcp/setup.d.ts +8 -2
- package/lib/mcp/setup.js +134 -39
- package/lib/middleware/autoUpdateMiddleware.js +6 -3
- package/lib/middleware/commandTargetingUtils.js +1 -0
- package/lib/npm/npmCli.d.ts +1 -0
- package/lib/npm/npmCli.js +13 -0
- package/lib/npm/packageJson.js +1 -1
- package/lib/process.d.ts +1 -1
- package/lib/process.js +10 -3
- package/lib/projects/ProjectLogsManager.js +7 -7
- package/lib/projects/add/legacyAddComponent.d.ts +2 -1
- package/lib/projects/add/legacyAddComponent.js +3 -0
- package/lib/projects/add/v2AddComponent.d.ts +2 -1
- package/lib/projects/add/v2AddComponent.js +7 -1
- package/lib/projects/builds.d.ts +2 -0
- package/lib/projects/builds.js +22 -0
- package/lib/projects/config.d.ts +6 -5
- package/lib/projects/config.js +7 -38
- package/lib/projects/create/index.js +2 -2
- package/lib/projects/create/legacy.js +2 -2
- package/lib/projects/create/tracking.d.ts +1 -0
- package/lib/projects/create/tracking.js +27 -0
- package/lib/projects/create/v2.js +4 -4
- package/lib/projects/delete.d.ts +13 -0
- package/lib/projects/delete.js +206 -0
- package/lib/projects/deploy.d.ts +1 -1
- package/lib/projects/deploy.js +2 -2
- package/lib/projects/installApp.d.ts +58 -0
- package/lib/projects/installApp.js +283 -0
- package/lib/projects/localDev/AppDevModeInterface.d.ts +0 -3
- package/lib/projects/localDev/AppDevModeInterface.js +33 -55
- package/lib/projects/localDev/DevSessionManager.d.ts +8 -5
- package/lib/projects/localDev/DevSessionManager.js +35 -49
- package/lib/projects/localDev/LocalDevLogger.d.ts +4 -0
- package/lib/projects/localDev/LocalDevLogger.js +18 -0
- package/lib/projects/localDev/LocalDevProcess.d.ts +11 -1
- package/lib/projects/localDev/LocalDevProcess.js +104 -19
- package/lib/projects/localDev/LocalDevState.d.ts +9 -2
- package/lib/projects/localDev/LocalDevState.js +21 -1
- package/lib/projects/localDev/LocalDevWatcher.js +1 -1
- package/lib/projects/localDev/LocalDevWebsocketServer.d.ts +1 -0
- package/lib/projects/localDev/LocalDevWebsocketServer.js +24 -2
- package/lib/projects/localDev/UIExtensionsDevModeInterface.js +2 -0
- package/lib/projects/localDev/helpers/account.d.ts +1 -7
- package/lib/projects/localDev/helpers/account.js +8 -90
- package/lib/projects/localDev/helpers/process.d.ts +1 -1
- package/lib/projects/localDev/helpers/process.js +4 -10
- package/lib/projects/localDev/helpers/project.d.ts +8 -6
- package/lib/projects/localDev/helpers/project.js +80 -29
- package/lib/projects/localDev/localDevWebsocketServerUtils.d.ts +2 -1
- package/lib/projects/localDev/localDevWebsocketServerUtils.js +3 -0
- package/lib/projects/npmAuditOnUpload.d.ts +10 -0
- package/lib/projects/npmAuditOnUpload.js +73 -0
- package/lib/projects/pollProjectBuildAndDeploy.d.ts +5 -1
- package/lib/projects/pollProjectBuildAndDeploy.js +3 -2
- package/lib/projects/preview.d.ts +7 -0
- package/lib/projects/preview.js +48 -0
- package/lib/projects/projectInfo.d.ts +5 -0
- package/lib/projects/projectInfo.js +82 -0
- package/lib/projects/projectProfiles.d.ts +3 -3
- package/lib/projects/projectProfiles.js +11 -18
- package/lib/projects/release.d.ts +4 -0
- package/lib/projects/release.js +90 -0
- package/lib/projects/ui.d.ts +1 -0
- package/lib/projects/ui.js +14 -0
- package/lib/projects/uieLinting.d.ts +23 -3
- package/lib/projects/uieLinting.js +134 -28
- package/lib/projects/upload.d.ts +17 -3
- package/lib/projects/upload.js +65 -14
- package/lib/projects/urls.d.ts +0 -1
- package/lib/projects/urls.js +6 -13
- package/lib/projects/validate.d.ts +18 -0
- package/lib/projects/validate.js +142 -0
- package/lib/projects/validateLintConfigOnUpload.d.ts +9 -0
- package/lib/projects/validateLintConfigOnUpload.js +46 -0
- package/lib/projects/workspaces.d.ts +60 -0
- package/lib/projects/workspaces.js +404 -0
- package/lib/prompts/createApiSamplePrompt.js +4 -0
- package/lib/prompts/personalAccessKeyPrompt.d.ts +2 -5
- package/lib/prompts/personalAccessKeyPrompt.js +7 -5
- package/lib/prompts/projectDevTargetAccountPrompt.d.ts +1 -0
- package/lib/prompts/projectDevTargetAccountPrompt.js +13 -2
- package/lib/prompts/projectProfilePrompt.d.ts +2 -0
- package/lib/prompts/projectProfilePrompt.js +46 -0
- package/lib/prompts/projectsLogsPrompt.js +3 -0
- package/lib/prompts/promptUtils.js +4 -2
- package/lib/prompts/selectAppPrompt.js +1 -0
- package/lib/prompts/selectHubDBTablePrompt.js +2 -2
- package/lib/prompts/selectPublicAppForMigrationPrompt.js +2 -2
- package/lib/prompts/setAsDefaultAccountPrompt.js +2 -1
- package/lib/serverlessLogs.js +2 -2
- package/lib/testUtils.d.ts +1 -0
- package/lib/testUtils.js +14 -0
- package/lib/theme/cmsDevServerProcess.d.ts +2 -0
- package/lib/theme/cmsDevServerProcess.js +8 -7
- package/lib/theme/migrate.js +1 -4
- package/lib/ui/SpinniesManager.d.ts +2 -0
- package/lib/ui/SpinniesManager.js +34 -10
- package/lib/ui/accountTable.d.ts +8 -0
- package/lib/ui/accountTable.js +67 -0
- package/lib/ui/appLogs.d.ts +32 -0
- package/lib/ui/appLogs.js +175 -0
- package/lib/ui/index.js +2 -2
- package/lib/ui/spinniesUtils.d.ts +0 -1
- package/lib/ui/spinniesUtils.js +6 -16
- package/lib/ui/supportsColor.d.ts +4 -0
- package/lib/ui/supportsColor.js +25 -6
- package/lib/usageTracking.d.ts +10 -20
- package/lib/usageTracking.js +77 -30
- package/lib/yargs/makeWrappedYargsHandler.d.ts +7 -0
- package/lib/yargs/makeWrappedYargsHandler.js +179 -0
- package/lib/yargs/makeYargsBuilder.d.ts +13 -0
- package/lib/yargs/makeYargsBuilder.js +33 -0
- package/lib/yargs/parseYargsOrExit.d.ts +4 -0
- package/lib/yargs/parseYargsOrExit.js +25 -0
- package/lib/yargs/strictEnforceBoolean.d.ts +1 -0
- package/lib/yargs/strictEnforceBoolean.js +13 -0
- package/lib/yargsUtils.d.ts +3 -16
- package/lib/yargsUtils.js +3 -48
- package/mcp-server/Tool.d.ts +25 -0
- package/mcp-server/Tool.js +83 -0
- package/mcp-server/server.js +63 -3
- package/mcp-server/tools/cms/HsCreateFunctionTool.d.ts +5 -3
- package/mcp-server/tools/cms/HsCreateFunctionTool.js +18 -23
- package/mcp-server/tools/cms/HsCreateModuleTool.d.ts +5 -3
- package/mcp-server/tools/cms/HsCreateModuleTool.js +21 -26
- package/mcp-server/tools/cms/HsCreateTemplateTool.d.ts +5 -3
- package/mcp-server/tools/cms/HsCreateTemplateTool.js +16 -16
- package/mcp-server/tools/cms/HsFunctionLogsTool.d.ts +5 -3
- package/mcp-server/tools/cms/HsFunctionLogsTool.js +17 -16
- package/mcp-server/tools/cms/HsListFunctionsTool.d.ts +5 -3
- package/mcp-server/tools/cms/HsListFunctionsTool.js +15 -14
- package/mcp-server/tools/cms/HsListTool.d.ts +5 -3
- package/mcp-server/tools/cms/HsListTool.js +14 -16
- package/mcp-server/tools/index.d.ts +3 -2
- package/mcp-server/tools/index.js +28 -22
- package/mcp-server/tools/project/AddFeatureToProjectTool.d.ts +8 -5
- package/mcp-server/tools/project/AddFeatureToProjectTool.js +38 -37
- package/mcp-server/tools/project/AuthAccountTool.d.ts +18 -0
- package/mcp-server/tools/project/AuthAccountTool.js +88 -0
- package/mcp-server/tools/project/CreateProjectTool.d.ts +8 -5
- package/mcp-server/tools/project/CreateProjectTool.js +33 -20
- package/mcp-server/tools/project/CreateTestAccountTool.d.ts +5 -3
- package/mcp-server/tools/project/CreateTestAccountTool.js +42 -31
- package/mcp-server/tools/project/DeployProjectTool.d.ts +5 -3
- package/mcp-server/tools/project/DeployProjectTool.js +23 -17
- package/mcp-server/tools/project/DocFetchTool.d.ts +5 -3
- package/mcp-server/tools/project/DocFetchTool.js +8 -6
- package/mcp-server/tools/project/DocsSearchTool.d.ts +9 -3
- package/mcp-server/tools/project/DocsSearchTool.js +39 -15
- package/mcp-server/tools/project/FindProjectsTool.d.ts +15 -0
- package/mcp-server/tools/project/FindProjectsTool.js +60 -0
- package/mcp-server/tools/project/GetApiUsagePatternsByAppIdTool.d.ts +6 -3
- package/mcp-server/tools/project/GetApiUsagePatternsByAppIdTool.js +16 -13
- package/mcp-server/tools/project/GetApplicationInfoTool.d.ts +6 -3
- package/mcp-server/tools/project/GetApplicationInfoTool.js +19 -14
- package/mcp-server/tools/project/GetBuildLogsTool.d.ts +5 -3
- package/mcp-server/tools/project/GetBuildLogsTool.js +19 -14
- package/mcp-server/tools/project/GetBuildStatusTool.d.ts +6 -3
- package/mcp-server/tools/project/GetBuildStatusTool.js +58 -15
- package/mcp-server/tools/project/GetConfigValuesTool.d.ts +6 -3
- package/mcp-server/tools/project/GetConfigValuesTool.js +20 -13
- package/mcp-server/tools/project/GuidedWalkthroughTool.d.ts +5 -3
- package/mcp-server/tools/project/GuidedWalkthroughTool.js +4 -6
- package/mcp-server/tools/project/KnowledgeSearchTool.d.ts +29 -0
- package/mcp-server/tools/project/KnowledgeSearchTool.js +79 -0
- package/mcp-server/tools/project/UploadProjectTools.d.ts +5 -3
- package/mcp-server/tools/project/UploadProjectTools.js +28 -20
- package/mcp-server/tools/project/ValidateProjectTool.d.ts +5 -3
- package/mcp-server/tools/project/ValidateProjectTool.js +32 -13
- package/mcp-server/tools/project/constants.d.ts +4 -2
- package/mcp-server/tools/project/constants.js +5 -1
- package/mcp-server/types.d.ts +3 -8
- package/mcp-server/types.js +1 -13
- package/mcp-server/utils/command.d.ts +26 -2
- package/mcp-server/utils/command.js +75 -15
- package/mcp-server/utils/config.js +6 -0
- package/mcp-server/utils/content.d.ts +3 -2
- package/mcp-server/utils/content.js +6 -1
- package/mcp-server/utils/elicitation.d.ts +9 -0
- package/mcp-server/utils/elicitation.js +35 -0
- package/mcp-server/utils/json.d.ts +3 -0
- package/mcp-server/utils/json.js +29 -0
- package/mcp-server/utils/logger.d.ts +13 -0
- package/mcp-server/utils/logger.js +59 -0
- package/mcp-server/utils/toolUsageTracking.js +28 -11
- package/package.json +37 -28
- package/types/AccountTargets.d.ts +37 -0
- package/types/AccountTargets.js +12 -0
- package/types/Link.d.ts +32 -0
- package/types/Link.js +5 -0
- package/types/LocalDev.d.ts +15 -2
- package/types/PackageJson.d.ts +1 -0
- package/types/ProjectComponents.d.ts +2 -1
- package/types/Projects.d.ts +25 -5
- package/types/Prompts.d.ts +1 -0
- package/types/Yargs.d.ts +23 -2
- package/ui/components/ActionSection.d.ts +1 -1
- package/ui/components/InputField.d.ts +1 -1
- package/ui/components/SelectInput.d.ts +1 -1
- package/ui/components/StatusIcon.d.ts +1 -1
- package/ui/components/Table.d.ts +13 -13
- package/ui/components/getStarted/GetStartedFlow.d.ts +1 -1
- package/ui/components/getStarted/screens/InstallationScreen.d.ts +1 -1
- package/ui/components/getStarted/screens/ProjectSetupScreen.d.ts +1 -1
- package/ui/components/getStarted/screens/UploadScreen.d.ts +1 -1
- package/api/__tests__/migrate.test.d.ts +0 -1
- package/api/__tests__/migrate.test.js +0 -199
- package/commands/__tests__/account.test.d.ts +0 -1
- package/commands/__tests__/account.test.js +0 -69
- package/commands/__tests__/auth.test.d.ts +0 -1
- package/commands/__tests__/auth.test.js +0 -43
- package/commands/__tests__/cms.test.d.ts +0 -1
- package/commands/__tests__/cms.test.js +0 -87
- package/commands/__tests__/config.test.d.ts +0 -1
- package/commands/__tests__/config.test.js +0 -44
- package/commands/__tests__/customObject.test.d.ts +0 -1
- package/commands/__tests__/customObject.test.js +0 -68
- package/commands/__tests__/doctor.test.d.ts +0 -1
- package/commands/__tests__/doctor.test.js +0 -132
- package/commands/__tests__/feedback.test.d.ts +0 -1
- package/commands/__tests__/feedback.test.js +0 -24
- package/commands/__tests__/filemanager.test.d.ts +0 -1
- package/commands/__tests__/filemanager.test.js +0 -45
- package/commands/__tests__/getStarted.test.d.ts +0 -1
- package/commands/__tests__/getStarted.test.js +0 -173
- package/commands/__tests__/hubdb.test.d.ts +0 -1
- package/commands/__tests__/hubdb.test.js +0 -50
- package/commands/__tests__/init.test.d.ts +0 -1
- package/commands/__tests__/init.test.js +0 -42
- package/commands/__tests__/mcp.test.d.ts +0 -1
- package/commands/__tests__/mcp.test.js +0 -46
- package/commands/__tests__/open.test.d.ts +0 -1
- package/commands/__tests__/open.test.js +0 -58
- package/commands/__tests__/project.test.d.ts +0 -1
- package/commands/__tests__/project.test.js +0 -125
- package/commands/__tests__/sandbox.test.d.ts +0 -1
- package/commands/__tests__/sandbox.test.js +0 -44
- package/commands/__tests__/secret.test.d.ts +0 -1
- package/commands/__tests__/secret.test.js +0 -49
- package/commands/__tests__/testAccount.test.d.ts +0 -1
- package/commands/__tests__/testAccount.test.js +0 -57
- package/commands/__tests__/upgrade.test.d.ts +0 -1
- package/commands/__tests__/upgrade.test.js +0 -309
- package/commands/account/__tests__/auth.test.d.ts +0 -1
- package/commands/account/__tests__/auth.test.js +0 -206
- package/commands/account/__tests__/clean.test.d.ts +0 -1
- package/commands/account/__tests__/clean.test.js +0 -28
- package/commands/account/__tests__/createOverride.test.d.ts +0 -1
- package/commands/account/__tests__/createOverride.test.js +0 -32
- package/commands/account/__tests__/info.test.d.ts +0 -1
- package/commands/account/__tests__/info.test.js +0 -28
- package/commands/account/__tests__/list.test.d.ts +0 -1
- package/commands/account/__tests__/list.test.js +0 -153
- package/commands/account/__tests__/remove.test.d.ts +0 -1
- package/commands/account/__tests__/remove.test.js +0 -36
- package/commands/account/__tests__/removeOverride.d.ts +0 -1
- package/commands/account/__tests__/removeOverride.js +0 -25
- package/commands/account/__tests__/rename.test.d.ts +0 -1
- package/commands/account/__tests__/rename.test.js +0 -82
- package/commands/account/__tests__/use.test.d.ts +0 -1
- package/commands/account/__tests__/use.test.js +0 -170
- package/commands/app/__tests__/migrate.test.d.ts +0 -1
- package/commands/app/__tests__/migrate.test.js +0 -111
- package/commands/app/secret/__tests__/add.test.d.ts +0 -1
- package/commands/app/secret/__tests__/add.test.js +0 -140
- package/commands/app/secret/__tests__/delete.test.d.ts +0 -1
- package/commands/app/secret/__tests__/delete.test.js +0 -28
- package/commands/app/secret/__tests__/list.test.d.ts +0 -1
- package/commands/app/secret/__tests__/list.test.js +0 -25
- package/commands/app/secret/__tests__/update.test.d.ts +0 -1
- package/commands/app/secret/__tests__/update.test.js +0 -28
- package/commands/cms/__tests__/delete.test.d.ts +0 -1
- package/commands/cms/__tests__/delete.test.js +0 -39
- package/commands/cms/__tests__/fetch.test.d.ts +0 -1
- package/commands/cms/__tests__/fetch.test.js +0 -156
- package/commands/cms/__tests__/function.test.d.ts +0 -1
- package/commands/cms/__tests__/function.test.js +0 -50
- package/commands/cms/__tests__/lint.test.d.ts +0 -1
- package/commands/cms/__tests__/lint.test.js +0 -33
- package/commands/cms/__tests__/list.test.d.ts +0 -1
- package/commands/cms/__tests__/list.test.js +0 -42
- package/commands/cms/__tests__/module.test.d.ts +0 -1
- package/commands/cms/__tests__/module.test.js +0 -45
- package/commands/cms/__tests__/mv.test.d.ts +0 -1
- package/commands/cms/__tests__/mv.test.js +0 -46
- package/commands/cms/__tests__/theme.test.d.ts +0 -1
- package/commands/cms/__tests__/theme.test.js +0 -54
- package/commands/cms/__tests__/upload.test.d.ts +0 -1
- package/commands/cms/__tests__/upload.test.js +0 -312
- package/commands/cms/__tests__/watch.test.d.ts +0 -1
- package/commands/cms/__tests__/watch.test.js +0 -204
- package/commands/cms/function/__tests__/logs.test.d.ts +0 -1
- package/commands/cms/function/__tests__/logs.test.js +0 -70
- package/commands/cms/theme/__tests__/generate-selectors.test.d.ts +0 -1
- package/commands/cms/theme/__tests__/generate-selectors.test.js +0 -28
- package/commands/cms/theme/__tests__/marketplace-validate.test.d.ts +0 -1
- package/commands/cms/theme/__tests__/marketplace-validate.test.js +0 -36
- package/commands/cms/theme/__tests__/preview.test.d.ts +0 -1
- package/commands/cms/theme/__tests__/preview.test.js +0 -54
- package/commands/customObject/__tests__/create.test.d.ts +0 -1
- package/commands/customObject/__tests__/create.test.js +0 -40
- package/commands/customObject/__tests__/createSchema.test.d.ts +0 -1
- package/commands/customObject/__tests__/createSchema.test.js +0 -28
- package/commands/customObject/__tests__/deleteSchema.test.d.ts +0 -1
- package/commands/customObject/__tests__/deleteSchema.test.js +0 -42
- package/commands/customObject/__tests__/fetch-all-schemas.test.d.ts +0 -1
- package/commands/customObject/__tests__/fetch-all-schemas.test.js +0 -41
- package/commands/customObject/__tests__/fetchSchema.test.d.ts +0 -1
- package/commands/customObject/__tests__/fetchSchema.test.js +0 -45
- package/commands/customObject/__tests__/listSchemas.test.d.ts +0 -1
- package/commands/customObject/__tests__/listSchemas.test.js +0 -29
- package/commands/customObject/__tests__/updateSchema.test.d.ts +0 -1
- package/commands/customObject/__tests__/updateSchema.test.js +0 -40
- package/commands/filemanager/__tests__/fetch.test.d.ts +0 -1
- package/commands/filemanager/__tests__/fetch.test.js +0 -32
- package/commands/filemanager/__tests__/upload.test.d.ts +0 -1
- package/commands/filemanager/__tests__/upload.test.js +0 -191
- package/commands/hubdb/__tests__/clear.test.d.ts +0 -1
- package/commands/hubdb/__tests__/clear.test.js +0 -28
- package/commands/hubdb/__tests__/create.test.d.ts +0 -1
- package/commands/hubdb/__tests__/create.test.js +0 -28
- package/commands/hubdb/__tests__/delete.test.d.ts +0 -1
- package/commands/hubdb/__tests__/delete.test.js +0 -28
- package/commands/hubdb/__tests__/fetch.test.d.ts +0 -1
- package/commands/hubdb/__tests__/fetch.test.js +0 -28
- package/commands/hubdb/__tests__/list.test.d.ts +0 -1
- package/commands/hubdb/__tests__/list.test.js +0 -88
- package/commands/mcp/__tests__/setup.test.d.ts +0 -1
- package/commands/mcp/__tests__/setup.test.js +0 -26
- package/commands/mcp/__tests__/start.test.d.ts +0 -1
- package/commands/mcp/__tests__/start.test.js +0 -144
- package/commands/project/__tests__/add.test.d.ts +0 -1
- package/commands/project/__tests__/add.test.js +0 -107
- package/commands/project/__tests__/create.test.d.ts +0 -1
- package/commands/project/__tests__/create.test.js +0 -97
- package/commands/project/__tests__/deploy.test.d.ts +0 -1
- package/commands/project/__tests__/deploy.test.js +0 -307
- package/commands/project/__tests__/dev.test.d.ts +0 -1
- package/commands/project/__tests__/dev.test.js +0 -273
- package/commands/project/__tests__/devUnifiedFlow.test.d.ts +0 -1
- package/commands/project/__tests__/devUnifiedFlow.test.js +0 -434
- package/commands/project/__tests__/download.test.d.ts +0 -1
- package/commands/project/__tests__/download.test.js +0 -39
- package/commands/project/__tests__/installDeps.test.d.ts +0 -1
- package/commands/project/__tests__/installDeps.test.js +0 -140
- package/commands/project/__tests__/lint.test.d.ts +0 -1
- package/commands/project/__tests__/lint.test.js +0 -704
- package/commands/project/__tests__/list.test.d.ts +0 -1
- package/commands/project/__tests__/list.test.js +0 -31
- package/commands/project/__tests__/listBuilds.test.d.ts +0 -1
- package/commands/project/__tests__/listBuilds.test.js +0 -38
- package/commands/project/__tests__/logs.test.d.ts +0 -1
- package/commands/project/__tests__/logs.test.js +0 -202
- package/commands/project/__tests__/migrate.test.d.ts +0 -1
- package/commands/project/__tests__/migrate.test.js +0 -106
- package/commands/project/__tests__/open.test.d.ts +0 -1
- package/commands/project/__tests__/open.test.js +0 -39
- package/commands/project/__tests__/profile.test.d.ts +0 -1
- package/commands/project/__tests__/profile.test.js +0 -42
- package/commands/project/__tests__/updateDeps.test.d.ts +0 -1
- package/commands/project/__tests__/updateDeps.test.js +0 -140
- package/commands/project/__tests__/upload.test.d.ts +0 -1
- package/commands/project/__tests__/upload.test.js +0 -234
- package/commands/project/__tests__/validate.test.d.ts +0 -1
- package/commands/project/__tests__/validate.test.js +0 -381
- package/commands/project/__tests__/watch.test.d.ts +0 -1
- package/commands/project/__tests__/watch.test.js +0 -35
- package/commands/project/dev/deprecatedFlow.d.ts +0 -11
- package/commands/project/dev/deprecatedFlow.js +0 -135
- package/commands/sandbox/__tests__/create.test.d.ts +0 -1
- package/commands/sandbox/__tests__/create.test.js +0 -198
- package/commands/sandbox/__tests__/delete.test.d.ts +0 -1
- package/commands/sandbox/__tests__/delete.test.js +0 -31
- package/commands/secret/__tests__/addSecret.test.d.ts +0 -1
- package/commands/secret/__tests__/addSecret.test.js +0 -162
- package/commands/secret/__tests__/deleteSecret.test.d.ts +0 -1
- package/commands/secret/__tests__/deleteSecret.test.js +0 -41
- package/commands/secret/__tests__/listSecret.test.d.ts +0 -1
- package/commands/secret/__tests__/listSecret.test.js +0 -29
- package/commands/secret/__tests__/updateSecret.test.d.ts +0 -1
- package/commands/secret/__tests__/updateSecret.test.js +0 -29
- package/commands/testAccount/__tests__/create.test.d.ts +0 -1
- package/commands/testAccount/__tests__/create.test.js +0 -106
- package/commands/testAccount/__tests__/createConfig.test.d.ts +0 -1
- package/commands/testAccount/__tests__/createConfig.test.js +0 -32
- package/commands/testAccount/__tests__/delete.test.d.ts +0 -1
- package/commands/testAccount/__tests__/delete.test.js +0 -29
- package/commands/testAccount/__tests__/importData.test.d.ts +0 -1
- package/commands/testAccount/__tests__/importData.test.js +0 -92
- package/lib/__tests__/CLIWebSocketServer.test.d.ts +0 -1
- package/lib/__tests__/CLIWebSocketServer.test.js +0 -252
- package/lib/__tests__/accountAuth.test.d.ts +0 -1
- package/lib/__tests__/accountAuth.test.js +0 -258
- package/lib/__tests__/accountTypes.test.d.ts +0 -1
- package/lib/__tests__/accountTypes.test.js +0 -98
- package/lib/__tests__/buildAccount.test.d.ts +0 -1
- package/lib/__tests__/buildAccount.test.js +0 -211
- package/lib/__tests__/cliUpgradeUtils.test.d.ts +0 -1
- package/lib/__tests__/cliUpgradeUtils.test.js +0 -131
- package/lib/__tests__/commandSuggestion.test.d.ts +0 -1
- package/lib/__tests__/commandSuggestion.test.js +0 -121
- package/lib/__tests__/commonOpts.test.d.ts +0 -1
- package/lib/__tests__/commonOpts.test.js +0 -80
- package/lib/__tests__/dependencyManagement.test.d.ts +0 -1
- package/lib/__tests__/dependencyManagement.test.js +0 -1067
- package/lib/__tests__/developerTestAccounts.test.d.ts +0 -1
- package/lib/__tests__/developerTestAccounts.test.js +0 -156
- package/lib/__tests__/hasFeature.test.d.ts +0 -1
- package/lib/__tests__/hasFeature.test.js +0 -167
- package/lib/__tests__/http.test.d.ts +0 -1
- package/lib/__tests__/http.test.js +0 -40
- package/lib/__tests__/importData.test.d.ts +0 -1
- package/lib/__tests__/importData.test.js +0 -98
- package/lib/__tests__/npmCli.test.d.ts +0 -1
- package/lib/__tests__/npmCli.test.js +0 -84
- package/lib/__tests__/oauth.test.d.ts +0 -1
- package/lib/__tests__/oauth.test.js +0 -109
- package/lib/__tests__/parsing.test.d.ts +0 -1
- package/lib/__tests__/parsing.test.js +0 -34
- package/lib/__tests__/polling.test.d.ts +0 -1
- package/lib/__tests__/polling.test.js +0 -76
- package/lib/__tests__/process.test.d.ts +0 -1
- package/lib/__tests__/process.test.js +0 -89
- package/lib/__tests__/sandboxes.test.d.ts +0 -1
- package/lib/__tests__/sandboxes.test.js +0 -128
- package/lib/__tests__/serverlessLogs.test.d.ts +0 -1
- package/lib/__tests__/serverlessLogs.test.js +0 -163
- package/lib/__tests__/usageTracking.test.d.ts +0 -1
- package/lib/__tests__/usageTracking.test.js +0 -197
- package/lib/__tests__/validation.test.d.ts +0 -1
- package/lib/__tests__/validation.test.js +0 -143
- package/lib/__tests__/yargsUtils.test.d.ts +0 -1
- package/lib/__tests__/yargsUtils.test.js +0 -124
- package/lib/app/__tests__/migrate.test.d.ts +0 -1
- package/lib/app/__tests__/migrate.test.js +0 -638
- package/lib/doctor/__tests__/Diagnosis.test.d.ts +0 -1
- package/lib/doctor/__tests__/Diagnosis.test.js +0 -84
- package/lib/doctor/__tests__/DiagnosticInfoBuilder.test.d.ts +0 -1
- package/lib/doctor/__tests__/DiagnosticInfoBuilder.test.js +0 -177
- package/lib/doctor/__tests__/Doctor.test.d.ts +0 -1
- package/lib/doctor/__tests__/Doctor.test.js +0 -560
- package/lib/errorHandlers/__tests__/index.test.d.ts +0 -1
- package/lib/errorHandlers/__tests__/index.test.js +0 -278
- package/lib/mcp/__tests__/setup.test.d.ts +0 -1
- package/lib/mcp/__tests__/setup.test.js +0 -523
- package/lib/middleware/__tests__/commandTargetingUtils.test.d.ts +0 -1
- package/lib/middleware/__tests__/commandTargetingUtils.test.js +0 -99
- package/lib/middleware/__tests__/configMiddleware.test.d.ts +0 -1
- package/lib/middleware/__tests__/configMiddleware.test.js +0 -118
- package/lib/middleware/__tests__/gitMiddleware.test.d.ts +0 -1
- package/lib/middleware/__tests__/gitMiddleware.test.js +0 -43
- package/lib/middleware/__tests__/requestMiddleware.test.d.ts +0 -1
- package/lib/middleware/__tests__/requestMiddleware.test.js +0 -15
- package/lib/middleware/__tests__/usageTrackingMiddleware.test.d.ts +0 -1
- package/lib/middleware/__tests__/usageTrackingMiddleware.test.js +0 -44
- package/lib/middleware/__tests__/yargsChecksMiddleware.test.d.ts +0 -1
- package/lib/middleware/__tests__/yargsChecksMiddleware.test.js +0 -39
- package/lib/projects/__tests__/AppDevModeInterface.test.d.ts +0 -1
- package/lib/projects/__tests__/AppDevModeInterface.test.js +0 -541
- package/lib/projects/__tests__/DevServerManager.test.d.ts +0 -1
- package/lib/projects/__tests__/DevServerManager.test.js +0 -185
- package/lib/projects/__tests__/DevSessionManager.test.d.ts +0 -1
- package/lib/projects/__tests__/DevSessionManager.test.js +0 -250
- package/lib/projects/__tests__/LocalDevProcess.test.d.ts +0 -1
- package/lib/projects/__tests__/LocalDevProcess.test.js +0 -481
- package/lib/projects/__tests__/LocalDevWebsocketServer.test.d.ts +0 -1
- package/lib/projects/__tests__/LocalDevWebsocketServer.test.js +0 -231
- package/lib/projects/__tests__/ProjectLogsManager.test.d.ts +0 -1
- package/lib/projects/__tests__/ProjectLogsManager.test.js +0 -302
- package/lib/projects/__tests__/UIExtensionsDevModeInterface.test.d.ts +0 -1
- package/lib/projects/__tests__/UIExtensionsDevModeInterface.test.js +0 -160
- package/lib/projects/__tests__/components.test.d.ts +0 -1
- package/lib/projects/__tests__/components.test.js +0 -440
- package/lib/projects/__tests__/deploy.test.d.ts +0 -1
- package/lib/projects/__tests__/deploy.test.js +0 -231
- package/lib/projects/__tests__/localDevProjectHelpers.test.d.ts +0 -1
- package/lib/projects/__tests__/localDevProjectHelpers.test.js +0 -120
- package/lib/projects/__tests__/platformVersion.test.d.ts +0 -1
- package/lib/projects/__tests__/platformVersion.test.js +0 -63
- package/lib/projects/__tests__/pollProjectBuildAndDeploy.test.d.ts +0 -1
- package/lib/projects/__tests__/pollProjectBuildAndDeploy.test.js +0 -328
- package/lib/projects/__tests__/projectProfiles.test.d.ts +0 -1
- package/lib/projects/__tests__/projectProfiles.test.js +0 -441
- package/lib/projects/__tests__/projects.test.d.ts +0 -1
- package/lib/projects/__tests__/projects.test.js +0 -58
- package/lib/projects/__tests__/structure.test.d.ts +0 -1
- package/lib/projects/__tests__/structure.test.js +0 -210
- package/lib/projects/__tests__/uieLinting.test.d.ts +0 -1
- package/lib/projects/__tests__/uieLinting.test.js +0 -631
- package/lib/projects/__tests__/upload.test.d.ts +0 -1
- package/lib/projects/__tests__/upload.test.js +0 -183
- package/lib/projects/add/__tests__/legacyAddComponent.test.d.ts +0 -1
- package/lib/projects/add/__tests__/legacyAddComponent.test.js +0 -245
- package/lib/projects/add/__tests__/v2AddComponent.test.d.ts +0 -1
- package/lib/projects/add/__tests__/v2AddComponent.test.js +0 -343
- package/lib/projects/create/__tests__/legacy.test.d.ts +0 -1
- package/lib/projects/create/__tests__/legacy.test.js +0 -72
- package/lib/projects/create/__tests__/v2.test.d.ts +0 -1
- package/lib/projects/create/__tests__/v2.test.js +0 -257
- package/lib/projects/localDev/DevServerManager_DEPRECATED.d.ts +0 -40
- package/lib/projects/localDev/DevServerManager_DEPRECATED.js +0 -128
- package/lib/projects/localDev/LocalDevManager_DEPRECATED.d.ts +0 -59
- package/lib/projects/localDev/LocalDevManager_DEPRECATED.js +0 -387
- package/lib/projects/platformVersion.d.ts +0 -9
- package/lib/projects/platformVersion.js +0 -39
- package/lib/prompts/__tests__/createDeveloperTestAccountConfigPrompt.test.d.ts +0 -1
- package/lib/prompts/__tests__/createDeveloperTestAccountConfigPrompt.test.js +0 -157
- package/lib/prompts/__tests__/createFunctionPrompt.test.d.ts +0 -1
- package/lib/prompts/__tests__/createFunctionPrompt.test.js +0 -129
- package/lib/prompts/__tests__/createModulePrompt.test.d.ts +0 -1
- package/lib/prompts/__tests__/createModulePrompt.test.js +0 -187
- package/lib/prompts/__tests__/createTemplatePrompt.test.d.ts +0 -1
- package/lib/prompts/__tests__/createTemplatePrompt.test.js +0 -102
- package/lib/prompts/__tests__/downloadProjectPrompt.test.d.ts +0 -1
- package/lib/prompts/__tests__/downloadProjectPrompt.test.js +0 -31
- package/lib/prompts/__tests__/projectAddPrompt.test.d.ts +0 -1
- package/lib/prompts/__tests__/projectAddPrompt.test.js +0 -143
- package/lib/prompts/__tests__/projectsLogsPrompt.test.d.ts +0 -1
- package/lib/prompts/__tests__/projectsLogsPrompt.test.js +0 -37
- package/lib/prompts/__tests__/selectProjectTemplatePrompt.test.d.ts +0 -1
- package/lib/prompts/__tests__/selectProjectTemplatePrompt.test.js +0 -160
- package/lib/theme/__tests__/migrate.test.d.ts +0 -1
- package/lib/theme/__tests__/migrate.test.js +0 -247
- package/lib/ui/__tests__/SpinniesManager.test.d.ts +0 -1
- package/lib/ui/__tests__/SpinniesManager.test.js +0 -488
- package/lib/ui/__tests__/removeAnsiCodes.test.d.ts +0 -1
- package/lib/ui/__tests__/removeAnsiCodes.test.js +0 -84
- package/mcp-server/tools/cms/__tests__/HsCreateFunctionTool.test.d.ts +0 -1
- package/mcp-server/tools/cms/__tests__/HsCreateFunctionTool.test.js +0 -254
- package/mcp-server/tools/cms/__tests__/HsCreateModuleTool.test.d.ts +0 -1
- package/mcp-server/tools/cms/__tests__/HsCreateModuleTool.test.js +0 -227
- package/mcp-server/tools/cms/__tests__/HsCreateTemplateTool.test.d.ts +0 -1
- package/mcp-server/tools/cms/__tests__/HsCreateTemplateTool.test.js +0 -208
- package/mcp-server/tools/cms/__tests__/HsFunctionLogsTool.test.d.ts +0 -1
- package/mcp-server/tools/cms/__tests__/HsFunctionLogsTool.test.js +0 -186
- package/mcp-server/tools/cms/__tests__/HsListFunctionsTool.test.d.ts +0 -1
- package/mcp-server/tools/cms/__tests__/HsListFunctionsTool.test.js +0 -124
- package/mcp-server/tools/cms/__tests__/HsListTool.test.d.ts +0 -1
- package/mcp-server/tools/cms/__tests__/HsListTool.test.js +0 -124
- package/mcp-server/tools/project/__tests__/AddFeatureToProjectTool.test.d.ts +0 -1
- package/mcp-server/tools/project/__tests__/AddFeatureToProjectTool.test.js +0 -157
- package/mcp-server/tools/project/__tests__/CreateProjectTool.test.d.ts +0 -1
- package/mcp-server/tools/project/__tests__/CreateProjectTool.test.js +0 -131
- package/mcp-server/tools/project/__tests__/CreateTestAccountTool.test.d.ts +0 -1
- package/mcp-server/tools/project/__tests__/CreateTestAccountTool.test.js +0 -461
- package/mcp-server/tools/project/__tests__/DeployProjectTool.test.d.ts +0 -1
- package/mcp-server/tools/project/__tests__/DeployProjectTool.test.js +0 -125
- package/mcp-server/tools/project/__tests__/DocFetchTool.test.d.ts +0 -1
- package/mcp-server/tools/project/__tests__/DocFetchTool.test.js +0 -125
- package/mcp-server/tools/project/__tests__/DocsSearchTool.test.d.ts +0 -1
- package/mcp-server/tools/project/__tests__/DocsSearchTool.test.js +0 -210
- package/mcp-server/tools/project/__tests__/GetApiUsagePatternsByAppIdTool.test.d.ts +0 -1
- package/mcp-server/tools/project/__tests__/GetApiUsagePatternsByAppIdTool.test.js +0 -146
- package/mcp-server/tools/project/__tests__/GetApplicationInfoTool.test.d.ts +0 -1
- package/mcp-server/tools/project/__tests__/GetApplicationInfoTool.test.js +0 -124
- package/mcp-server/tools/project/__tests__/GetBuildLogsTool.test.d.ts +0 -1
- package/mcp-server/tools/project/__tests__/GetBuildLogsTool.test.js +0 -307
- package/mcp-server/tools/project/__tests__/GetBuildStatusTool.test.d.ts +0 -1
- package/mcp-server/tools/project/__tests__/GetBuildStatusTool.test.js +0 -242
- package/mcp-server/tools/project/__tests__/GetConfigValuesTool.test.d.ts +0 -1
- package/mcp-server/tools/project/__tests__/GetConfigValuesTool.test.js +0 -209
- package/mcp-server/tools/project/__tests__/GuidedWalkthroughTool.test.d.ts +0 -1
- package/mcp-server/tools/project/__tests__/GuidedWalkthroughTool.test.js +0 -158
- package/mcp-server/tools/project/__tests__/UploadProjectTools.test.d.ts +0 -1
- package/mcp-server/tools/project/__tests__/UploadProjectTools.test.js +0 -187
- package/mcp-server/tools/project/__tests__/ValidateProjectTool.test.d.ts +0 -1
- package/mcp-server/tools/project/__tests__/ValidateProjectTool.test.js +0 -118
- package/mcp-server/utils/__tests__/command.test.d.ts +0 -1
- package/mcp-server/utils/__tests__/command.test.js +0 -275
- package/mcp-server/utils/__tests__/content.test.d.ts +0 -1
- package/mcp-server/utils/__tests__/content.test.js +0 -164
- package/mcp-server/utils/__tests__/feedbackTracking.test.d.ts +0 -1
- package/mcp-server/utils/__tests__/feedbackTracking.test.js +0 -69
package/lang/en.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { mapToUserFriendlyName } from '@hubspot/project-parsing-lib/transform';
|
|
3
|
-
import { PLATFORM_VERSIONS } from '@hubspot/
|
|
3
|
+
import { PLATFORM_VERSIONS } from '@hubspot/project-parsing-lib/constants';
|
|
4
4
|
import { PERSONAL_ACCESS_KEY_AUTH_METHOD } from '@hubspot/local-dev-lib/constants/auth';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { APP_AUTH_TYPES, APP_DISTRIBUTION_TYPES, LEGACY_PUBLIC_APP_FILE, LOCAL_DEV_DEFAULT_PORT, PROJECT_CONFIG_FILE, PROJECT_WITH_APP, } from '../lib/constants.js';
|
|
6
|
+
import { ARCHIVED_HUBSPOT_CONFIG_YAML_FILE_NAME, DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME, GLOBAL_CONFIG_PATH, } from '@hubspot/local-dev-lib/constants/config';
|
|
7
|
+
import { indent, UI_COLORS, uiAccountDescription, uiAuthCommandReference, uiBetaTag, uiCommandReference, uiDeprecatedTag, uiLink, } from '../lib/ui/index.js';
|
|
8
|
+
import { getLocalDevUiUrl, getProjectDetailUrl, getProjectSettingsUrl, } from '../lib/projects/urls.js';
|
|
8
9
|
import { getProductUpdatesUrl } from '../lib/links.js';
|
|
9
|
-
import { APP_DISTRIBUTION_TYPES, APP_AUTH_TYPES, PROJECT_CONFIG_FILE, PROJECT_WITH_APP, LEGACY_PUBLIC_APP_FILE, } from '../lib/constants.js';
|
|
10
10
|
export const commands = {
|
|
11
11
|
generalErrors: {
|
|
12
12
|
srcIsProject: (src, command) => `"${src}" is in a project folder. Did you mean "hs project ${command}"?`,
|
|
@@ -123,6 +123,9 @@ export const commands = {
|
|
|
123
123
|
options: {
|
|
124
124
|
account: 'HubSpot account to authenticate',
|
|
125
125
|
personalAccessKey: 'Enter existing personal access key',
|
|
126
|
+
default: 'Set the authenticated account as the default account',
|
|
127
|
+
name: 'Set a name for the account in the CLI config',
|
|
128
|
+
useDefaultName: 'Use the account name derived from the HubSpot portal name',
|
|
126
129
|
},
|
|
127
130
|
errors: {
|
|
128
131
|
invalidAccountIdProvided: `--account must be a number.`,
|
|
@@ -137,8 +140,12 @@ export const commands = {
|
|
|
137
140
|
},
|
|
138
141
|
list: {
|
|
139
142
|
accounts: `${chalk.bold('Accounts')}:`,
|
|
143
|
+
allAccounts: `${chalk.bold('All Accounts')}:`,
|
|
144
|
+
linkedAccounts: `${chalk.bold('Linked Accounts')}:`,
|
|
140
145
|
defaultAccountTitle: `${chalk.bold('Default Account')}`,
|
|
146
|
+
linkedDefaultTitle: `${chalk.bold('Linked Default Account')}`,
|
|
141
147
|
currentResolvedDefaultAccount: (accountId) => `Account: ${uiAccountDescription(accountId)}`,
|
|
148
|
+
directory: (dir) => `Directory: ${dir}`,
|
|
142
149
|
describe: 'List names of accounts defined in config.',
|
|
143
150
|
configPath: (configPath) => `Source: ${configPath}`,
|
|
144
151
|
overrideFilePathTitle: `${chalk.bold('Default Account Override')}`,
|
|
@@ -185,6 +192,70 @@ export const commands = {
|
|
|
185
192
|
success: {
|
|
186
193
|
defaultAccountUpdated: (accountName) => `Default account updated to "${accountName}"`,
|
|
187
194
|
},
|
|
195
|
+
linked: {
|
|
196
|
+
editingLinkedDefault: (dir) => `Editing the default linked account for this directory (not the global default):\n${indent(1)}${dir}`,
|
|
197
|
+
alreadyDefault: (accountId) => `${uiAccountDescription(accountId)} is the only linked account and is already the default.`,
|
|
198
|
+
setLinkedDefault: (account) => `Linked default set to ${chalk.cyan(account)}`,
|
|
199
|
+
accountNotLinked: (account) => `${account} is not linked to this directory.`,
|
|
200
|
+
promptToLink: (account) => `Would you like to link ${account} to this directory?`,
|
|
201
|
+
settingGlobalDefault: 'Setting global default instead.',
|
|
202
|
+
nonInteractiveNotLinked: (account) => `${account} is not linked to this directory. Setting global default instead.`,
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
link: {
|
|
206
|
+
describe: 'Link authenticated HubSpot accounts to the current directory',
|
|
207
|
+
verboseDescribe: `Link one or more authenticated HubSpot accounts to the current directory. Linked accounts are saved in a local ${chalk.bold('.hs/settings.json')} file (added to .gitignore automatically).\n\nThis lets the CLI know which account to use when you run commands from this directory, without changing the global default. Run ${uiCommandReference('hs account current')} to see the active configuration.`,
|
|
208
|
+
shared: {
|
|
209
|
+
noLinkedAccounts: 'No HubSpot accounts are linked in this directory.',
|
|
210
|
+
globalAccountsAvailable: (count) => `You have ${chalk.cyan(count.toString())} ${count === 1 ? 'account' : 'accounts'} in your global config.`,
|
|
211
|
+
configurePrompt: `To configure this directory, run:\n${indent(1)}${uiCommandReference('hs account link')}`,
|
|
212
|
+
deprecatedConfigNotSupported: (command) => `${uiCommandReference(command)} does not support deprecated config. Run ${uiCommandReference('hs config migrate')} to migrate to global config. Then re-run ${uiCommandReference(command)}`,
|
|
213
|
+
writeSettingsFailed: (path, err) => `Failed to write to ${path}: ${err}`,
|
|
214
|
+
savedToSettings: (path) => `Saved to ${path}`,
|
|
215
|
+
usingLinkedAccounts: (settingsPath) => `This directory has linked accounts via ${settingsPath}. Only linked accounts will be available for this command. To manage linked accounts, run ${uiCommandReference('hs account link')}.`,
|
|
216
|
+
accountAutoLinked: (accountId) => `Automatically linked ${uiAccountDescription(accountId)} to this directory.`,
|
|
217
|
+
accountAutoLinkFailed: (accountId) => `Could not automatically link ${uiAccountDescription(accountId)} to this directory. Run ${uiCommandReference('hs account link')} to link it manually.`,
|
|
218
|
+
},
|
|
219
|
+
linkingDirectory: (dir) => `Linking HubSpot account(s) for directory:\n${indent(1)}${dir}`,
|
|
220
|
+
managingLinkedAccounts: (dir) => `Managing linked accounts for:\n${indent(1)}${dir}`,
|
|
221
|
+
settingsInfo: (path) => `\u2139 Accounts linked here are saved in ${path}`,
|
|
222
|
+
success: {
|
|
223
|
+
created: (path) => `Linked to ${path} (created .hs and added to .gitignore).\n${indent(1)}Now when you work within this directory, the CLI will use the linked account(s).`,
|
|
224
|
+
},
|
|
225
|
+
errors: {
|
|
226
|
+
authFailed: `Authentication failed to complete`,
|
|
227
|
+
},
|
|
228
|
+
events: {
|
|
229
|
+
accountsLinked: (count) => `Linked ${count} account${count !== 1 ? 's' : ''}`,
|
|
230
|
+
accountsUnlinked: (count) => `Unlinked ${count} account${count !== 1 ? 's' : ''}`,
|
|
231
|
+
overrideAccountDetected: (accountId) => `\nCurrent default account (from .hsaccount):\n${indent(1)}${uiAccountDescription(accountId)}`,
|
|
232
|
+
defaultAccountSet: (accountId) => `Linked default account set to ${chalk.cyan(uiAccountDescription(accountId))}`,
|
|
233
|
+
defaultAccountRemoved: (isSelectionRequired) => `The linked default account was removed. ${isSelectionRequired ? 'A linked default account is required.\n' : ''}`,
|
|
234
|
+
defaultAccountRemains: (accountId) => `Linked default account remains ${chalk.cyan(uiAccountDescription(accountId))}`,
|
|
235
|
+
updatedLinkedAccounts: 'Updated linked accounts',
|
|
236
|
+
noAccountsLinked: `All accounts have been unlinked. Your global config accounts will be used.\n${indent(1)}The ${chalk.bold('.hs')} directory is no longer needed and can be safely deleted.`,
|
|
237
|
+
overrideFileRemoved: '.hsaccount file removed',
|
|
238
|
+
invalidDefaultAccount: (accountId) => `Default account ${uiAccountDescription(accountId)} is not in the linked accounts list and has been reset. Please select a new default.`,
|
|
239
|
+
},
|
|
240
|
+
prompts: {
|
|
241
|
+
howToProceed: 'How would you like to link an account?',
|
|
242
|
+
whatToDo: 'Which action would you like to perform?',
|
|
243
|
+
linkExisting: 'Link existing authenticated account(s)',
|
|
244
|
+
authenticateNew: 'Authenticate and link a new account',
|
|
245
|
+
cancel: 'Cancel',
|
|
246
|
+
selectDefault: 'Select a linked default account',
|
|
247
|
+
selectToLink: 'Select authenticated account(s) to link:',
|
|
248
|
+
selectToUnlink: 'Select account(s) to unlink',
|
|
249
|
+
alreadyLinked: '- Already linked',
|
|
250
|
+
fromHsAccount: '(from .hsaccount)',
|
|
251
|
+
newlyAuthenticated: '(just authenticated)',
|
|
252
|
+
mustSelectOne: 'You must select at least one account to link',
|
|
253
|
+
keepAsDefault: 'Keep this as the default?',
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
unlink: {
|
|
257
|
+
describe: 'Unlink HubSpot account(s) from the current directory',
|
|
258
|
+
verboseDescribe: `Remove one or more linked accounts from this directory's ${chalk.bold('.hs/settings.json')}. If the default account is removed, you will be prompted to select a new one.\n\nThis does not delete the account from the global config - it only removes the local association.`,
|
|
188
259
|
},
|
|
189
260
|
remove: {
|
|
190
261
|
describe: 'Remove an account from the config.',
|
|
@@ -253,6 +324,9 @@ export const commands = {
|
|
|
253
324
|
},
|
|
254
325
|
name: (name) => `${chalk.bold('Account name')}: ${name}`,
|
|
255
326
|
scopeGroups: `${chalk.bold('Scopes available')}:`,
|
|
327
|
+
linkedDefaultTitle: `${chalk.bold('Linked Default Account')}`,
|
|
328
|
+
settingsPath: (path) => `Source: ${path}`,
|
|
329
|
+
linkedDefault: (account) => `Account: ${account}`,
|
|
256
330
|
},
|
|
257
331
|
clean: {
|
|
258
332
|
describe: 'Check for inactive accounts and removes them from the CLI config.',
|
|
@@ -1251,22 +1325,34 @@ export const commands = {
|
|
|
1251
1325
|
},
|
|
1252
1326
|
mcp: {
|
|
1253
1327
|
describe: 'Commands for managing HubSpot MCP servers.',
|
|
1328
|
+
promotion: {
|
|
1329
|
+
activeNudge: `${chalk.bold('Tip:')} Work faster with AI coding tools. Run ${uiCommandReference('hs mcp setup')} to connect HubSpot developer context to supported clients.`,
|
|
1330
|
+
},
|
|
1254
1331
|
setup: {
|
|
1255
|
-
describe: '
|
|
1332
|
+
describe: `Run ${uiCommandReference('hs mcp setup')} to connect the HubSpot Dev MCP and work faster with your AI coding tools.`,
|
|
1256
1333
|
installingDocSearch: 'Adding the docs-search mcp server',
|
|
1257
1334
|
codex: 'Codex CLI',
|
|
1258
1335
|
claudeCode: 'Claude Code',
|
|
1259
1336
|
cursor: 'Cursor',
|
|
1337
|
+
devin: 'Devin',
|
|
1260
1338
|
gemini: 'Gemini CLI',
|
|
1261
|
-
|
|
1339
|
+
opencode: 'OpenCode',
|
|
1262
1340
|
vsCode: 'VSCode',
|
|
1341
|
+
other: 'Other (manual setup)',
|
|
1263
1342
|
args: {
|
|
1264
1343
|
client: 'Target apps to configure',
|
|
1344
|
+
standalone: 'Use npx for all of the hs commands run by the MCP server. This allows you to use the MCP server without having the CLI globally installed.',
|
|
1345
|
+
cliVersion: 'Pin a specific CLI version for standalone mode',
|
|
1265
1346
|
docsSearch: 'Should the docs search mcp server be installed',
|
|
1266
1347
|
},
|
|
1348
|
+
examples: {
|
|
1349
|
+
nonInteractive: 'Configure Claude Code without prompts',
|
|
1350
|
+
standalone: 'Configure Cursor in standalone mode with a pinned CLI version',
|
|
1351
|
+
},
|
|
1267
1352
|
success: (derivedTargets) => `You can now use the HubSpot CLI MCP Server in ${derivedTargets.join(', ')}. ${chalk.bold('You may need to restart these tools to apply the changes')}.`,
|
|
1268
1353
|
errors: {
|
|
1269
1354
|
errorParsingJsonFIle: (filename, errorMessage) => `Unable to update ${chalk.bold(filename)} due to invalid JSON: ${errorMessage}`,
|
|
1355
|
+
cliVersionRequiresStandalone: '`--cli-version` requires `--standalone`. Pass `--standalone` to use a specific CLI version.',
|
|
1270
1356
|
},
|
|
1271
1357
|
spinners: {
|
|
1272
1358
|
failedToConfigure: 'Failed to configure the HubSpot mcp server.',
|
|
@@ -1291,16 +1377,28 @@ export const commands = {
|
|
|
1291
1377
|
geminiNotFound: "Gemini CLI is not installed (missing 'gemini' command). Install it and re-run hs mcp setup.",
|
|
1292
1378
|
geminiInstallFailed: 'Failed to configure Gemini CLI',
|
|
1293
1379
|
alreadyInstalled: 'HubSpot CLI mcp server already installed, reinstalling',
|
|
1294
|
-
//
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1380
|
+
// Devin
|
|
1381
|
+
configuringDevin: 'Configuring Devin...',
|
|
1382
|
+
devinNotFound: 'Devin is not installed. Install it and re-run hs mcp setup.',
|
|
1383
|
+
failedToConfigureDevin: 'Failed to configure Devin',
|
|
1384
|
+
configuredDevin: 'Configured Devin',
|
|
1385
|
+
// OpenCode
|
|
1386
|
+
configuringOpenCode: 'Configuring OpenCode...',
|
|
1387
|
+
openCodeNotFound: "OpenCode is not installed (missing 'opencode' command). Install it and re-run hs mcp setup.",
|
|
1388
|
+
openCodeInstallFailed: 'Failed to configure OpenCode',
|
|
1389
|
+
configuredOpenCode: 'Configured OpenCode',
|
|
1299
1390
|
// VS Code
|
|
1300
1391
|
configuringVsCode: 'Configuring VSCode...',
|
|
1301
1392
|
failedToConfigureVsCode: 'Failed to configure VSCode',
|
|
1302
1393
|
configuredVsCode: 'Configured VSCode',
|
|
1303
1394
|
vsCodeNotFound: "VSCode CLI is not installed (missing 'code' command). Install it and re-run hs mcp setup.",
|
|
1395
|
+
vsCodeVersionUnsupported: 'VSCode 1.99 or later is required for MCP server support. Please update VSCode and try again.',
|
|
1396
|
+
},
|
|
1397
|
+
otherInstructions: {
|
|
1398
|
+
header: 'To connect the HubSpot MCP server to another tool, add the following MCP server configuration.',
|
|
1399
|
+
docsNote: "Each tool handles MCP setup differently. Check your tool's documentation for how to add an MCP server using a command or JSON config.",
|
|
1400
|
+
commandLabel: 'Command:',
|
|
1401
|
+
jsonLabel: 'JSON configuration (for tools that use a config file):',
|
|
1304
1402
|
},
|
|
1305
1403
|
prompts: {
|
|
1306
1404
|
targets: '[--client] Which tools would you like to add the HubSpot CLI MCP server to?',
|
|
@@ -1320,6 +1418,30 @@ export const commands = {
|
|
|
1320
1418
|
shuttingDown: 'Shutting down MCP server...',
|
|
1321
1419
|
},
|
|
1322
1420
|
},
|
|
1421
|
+
api: {
|
|
1422
|
+
describe: 'Make an authenticated HTTP request to any HubSpot API endpoint that supports PAKs.',
|
|
1423
|
+
verboseDescribe: `Make an authenticated HTTP request to any HubSpot API that supports PAKs using your CLI authentication.\n\nThis command is intended for testing and exploration of HubSpot APIs. It uses the authentication credentials configured in the CLI to make requests on your behalf.\n\nThe endpoint should be the API path, e.g. ${chalk.bold('/crm/v3/objects/contacts')}. The request will be authenticated using the account specified by ${uiCommandReference('--account')} or the default account.\n\nNote: The available endpoints depend on the scopes granted to your personal access key. If you receive a 403 error, check that your key includes the required scopes for the endpoint you are trying to reach. ${uiLink('Learn more about the HubSpot API', 'https://developers.hubspot.com/docs/api-reference/latest/overview')}`,
|
|
1424
|
+
positionals: {
|
|
1425
|
+
endpoint: {
|
|
1426
|
+
describe: 'API endpoint path (e.g. /crm/v3/objects/contacts)',
|
|
1427
|
+
},
|
|
1428
|
+
},
|
|
1429
|
+
options: {
|
|
1430
|
+
method: {
|
|
1431
|
+
describe: 'HTTP method to use. Defaults to GET, or POST if --data is provided',
|
|
1432
|
+
},
|
|
1433
|
+
data: {
|
|
1434
|
+
describe: 'JSON-formatted request body for POST, PUT, and PATCH requests',
|
|
1435
|
+
},
|
|
1436
|
+
},
|
|
1437
|
+
requestLog: (method, url) => `${chalk.bold(method)} ${url}`,
|
|
1438
|
+
requestBodyLog: (body) => `Request body: ${body}`,
|
|
1439
|
+
responseLog: 'Response:',
|
|
1440
|
+
errors: {
|
|
1441
|
+
invalidJson: 'The value passed to --data is not valid JSON. Please provide a valid JSON string.',
|
|
1442
|
+
statusLine: (status, statusText) => `${chalk.red(`${status} ${statusText}`)}`,
|
|
1443
|
+
},
|
|
1444
|
+
},
|
|
1323
1445
|
open: {
|
|
1324
1446
|
describe: 'Open a HubSpot page in your browser.',
|
|
1325
1447
|
options: {
|
|
@@ -1343,6 +1465,7 @@ export const commands = {
|
|
|
1343
1465
|
describe: 'Add a new project profile',
|
|
1344
1466
|
verboseDescribe: `Add a new project profile\n\nProfiles enable you to reference variables in your component configuration files. Use the syntax ${chalk.bold('\${VARIABLE_NAME}')} to reference profile variables in your component configuration files. Then target the profile using the ${uiCommandReference('--profile')} flag when you upload your project.`,
|
|
1345
1467
|
example: 'Add a new project profile named hsprofile.qa.json',
|
|
1468
|
+
exampleCopyFrom: 'Add a profile and copy variables from the staging profile',
|
|
1346
1469
|
logs: {
|
|
1347
1470
|
copyExistingProfile: (profileName) => `Found an existing profile. We can copy the variables from ${chalk.bold(profileName)} into your new profile.`,
|
|
1348
1471
|
copyExistingProfiles: 'We can copy the variables from one of your existing profiles into your new profile.',
|
|
@@ -1360,11 +1483,12 @@ export const commands = {
|
|
|
1360
1483
|
duplicateTargetAccount: (targetAccountId) => `The account ${uiAccountDescription(targetAccountId)} is being used in an existing profile. Make sure to edit your project's name between uploads if you do not want to overwrite the existing project in this account.`,
|
|
1361
1484
|
},
|
|
1362
1485
|
errors: {
|
|
1363
|
-
|
|
1486
|
+
unsupportedPlatformVersion: 'This command is only available for projects 2025.2 and later.',
|
|
1364
1487
|
profileExists: (profileName) => `Profile ${chalk.bold(profileName)} already exists. Please choose a different name.`,
|
|
1365
1488
|
invalidTargetAccount: 'Target account is not configured in the CLI',
|
|
1366
1489
|
noAccountsConfigured: 'No accounts configured in the CLI',
|
|
1367
1490
|
failedToLoadProfile: (profileName) => `Unable to copy variables. Failed to load profile ${chalk.bold(profileName)}`,
|
|
1491
|
+
copyFromProfileNotFound: (profileName) => `Profile ${chalk.bold(profileName)} does not exist. Available profiles can be found in your project source directory.`,
|
|
1368
1492
|
failedToCreateProfile: 'Failed to create profile',
|
|
1369
1493
|
},
|
|
1370
1494
|
positionals: {
|
|
@@ -1372,6 +1496,7 @@ export const commands = {
|
|
|
1372
1496
|
},
|
|
1373
1497
|
options: {
|
|
1374
1498
|
targetAccount: 'The target account ID for this profile',
|
|
1499
|
+
copyFrom: 'Copy variables from an existing profile',
|
|
1375
1500
|
},
|
|
1376
1501
|
},
|
|
1377
1502
|
delete: {
|
|
@@ -1390,7 +1515,7 @@ export const commands = {
|
|
|
1390
1515
|
deleteProjectPrompt: (accountId) => `Would you like to delete this project from ${uiAccountDescription(accountId)}?`,
|
|
1391
1516
|
},
|
|
1392
1517
|
errors: {
|
|
1393
|
-
|
|
1518
|
+
unsupportedPlatformVersion: 'This command is only available for projects 2025.2 and later.',
|
|
1394
1519
|
noProfileFound: (profileName) => `No profile with filename ${chalk.bold(profileName)} found in your project.`,
|
|
1395
1520
|
noProfilesFound: 'No profiles found in your project.',
|
|
1396
1521
|
failedToDeleteProfile: (profileName) => `Unable to delete profile ${chalk.bold(profileName)}. Please try again.`,
|
|
@@ -1405,27 +1530,20 @@ export const commands = {
|
|
|
1405
1530
|
describe: 'Start local dev for the current project.',
|
|
1406
1531
|
logs: {
|
|
1407
1532
|
header: 'HubSpot projects local development',
|
|
1408
|
-
placeholderAccountSelection: 'Using default account as target account (for now)',
|
|
1409
|
-
accountTypeInformation: 'Testing in a developer test account is strongly recommended, but you can use a sandbox account if your plan allows you to create one.',
|
|
1410
1533
|
learnMoreMessageV2: `Learn more about ${uiLink('HubSpot projects local dev', 'https://developers.hubspot.com/docs/developer-tooling/local-development/hubspot-cli/project-commands#start-a-local-development-server')} | ${uiLink('HubSpot account types', 'https://developers.hubspot.com/docs/getting-started/account-types')}`,
|
|
1411
|
-
learnMoreMessageLegacy: uiLink('Learn more about the projects local dev server', 'https://developers.hubspot.com/docs/developer-tooling/local-development/hubspot-cli/project-commands#start-a-local-development-server'),
|
|
1412
1534
|
profileProjectAccountExplanation: (accountId, profileName) => `Using account ${uiAccountDescription(accountId)} from profile ${chalk.bold(profileName)} for project upload`,
|
|
1413
1535
|
defaultProjectAccountExplanation: (accountId) => `Using default account ${uiAccountDescription(accountId)} for project upload`,
|
|
1414
1536
|
projectAccountFlagExplanation: (accountId) => `Using account ${uiAccountDescription(accountId)} provided by the --project-account flag for project upload`,
|
|
1415
|
-
accountFlagExplanation: (accountId) => `Using account ${uiAccountDescription(accountId)} provided by the --account flag for project upload`,
|
|
1416
1537
|
defaultSandboxOrDevTestTestingAccountExplanation: (accountId) => `Using default account ${uiAccountDescription(accountId)} for testing`,
|
|
1417
1538
|
testingAccountFlagExplanation: (accountId) => `Using account ${uiAccountDescription(accountId)} provided by the --testing-account flag for testing`,
|
|
1418
1539
|
},
|
|
1419
1540
|
errors: {
|
|
1420
|
-
noProjectConfig: 'No project detected. Please run this command again from a project directory.',
|
|
1421
1541
|
noAccount: (accountId) => `An error occurred while reading account ${uiAccountDescription(accountId)} from your config. Run ${uiAuthCommandReference()} to re-auth this account.`,
|
|
1422
|
-
|
|
1423
|
-
invalidProjectComponents: 'Projects cannot contain both private and public apps. Move your apps to separate projects before attempting local development.',
|
|
1542
|
+
unsupportedPlatformVersion: (platformVersion) => `Local development is not supported for platform version ${chalk.bold(platformVersion)}. Please upgrade to 2025.2 or later.`,
|
|
1424
1543
|
noRunnableComponents: `No supported components were found in this project. Run ${uiCommandReference('hs project add')} to see a list of available components and add one to your project.`,
|
|
1425
1544
|
accountNotCombined: `\nLocal development of unified apps is currently only compatible with accounts that are opted into the unified apps beta. Make sure that this account is opted in or switch accounts using ${uiCommandReference('hs account use')}.`,
|
|
1426
|
-
unsupportedAccountFlagLegacy: 'The --project-account and --testing-account flags are not supported for projects with platform versions earlier than 2025.2.',
|
|
1427
|
-
unsupportedAccountFlagV2: 'The --account flag is is not supported supported for projects with platform versions 2025.2 and newer. Use --testing-account and --project-account flags to specify accounts to use for local dev',
|
|
1428
1545
|
localDevAlreadyRunning: `Another ${uiCommandReference('hs project dev')} process is already running. To proceed with local development of this project, stop the existing process and re-run ${uiCommandReference('hs project dev')}.`,
|
|
1546
|
+
autoUploadRequiresAutoDeploy: `${uiCommandReference('hs project dev --auto-upload')} requires auto-deploy to be enabled for this project, since auto-upload deploys every change. Enable auto-deploy in your project settings, or run ${uiCommandReference('hs project dev')} without it.`,
|
|
1429
1547
|
},
|
|
1430
1548
|
examples: {
|
|
1431
1549
|
default: 'Start local dev for the current project',
|
|
@@ -1435,9 +1553,10 @@ export const commands = {
|
|
|
1435
1553
|
},
|
|
1436
1554
|
options: {
|
|
1437
1555
|
profile: 'The profile to target during local dev',
|
|
1438
|
-
projectAccount: 'The id of the account to upload your project to. Must be used with --testing-account.
|
|
1439
|
-
testingAccount: 'The id of the account to install apps and test on. Must be used with --project-account.
|
|
1440
|
-
|
|
1556
|
+
projectAccount: 'The id of the account to upload your project to. Must be used with --testing-account.',
|
|
1557
|
+
testingAccount: 'The id of the account to install apps and test on. Must be used with --project-account.',
|
|
1558
|
+
port: `The port for the local dev server. Defaults to ${LOCAL_DEV_DEFAULT_PORT}.`,
|
|
1559
|
+
autoUpload: 'Automatically upload local changes to HubSpot as you edit files, instead of uploading manually from the Local Dev Panel.',
|
|
1441
1560
|
},
|
|
1442
1561
|
},
|
|
1443
1562
|
create: {
|
|
@@ -1448,6 +1567,9 @@ export const commands = {
|
|
|
1448
1567
|
failedToFetchProjectList: 'Failed to fetch the list of available project templates. Please try again later.',
|
|
1449
1568
|
cannotNestProjects: (projectDir) => `A project already exists at ${projectDir}. Projects cannot be nested within other projects. Please choose a different destination and try again.`,
|
|
1450
1569
|
},
|
|
1570
|
+
warnings: {
|
|
1571
|
+
betaPlatformVersion: (platformVersion) => `Your portal must be enrolled in the beta to use platform version ${platformVersion}. If you are not enrolled in the beta, your upload will fail. ${uiLink('Enroll in the beta', getProductUpdatesUrl('286886'))}`,
|
|
1572
|
+
},
|
|
1451
1573
|
logs: {
|
|
1452
1574
|
success: (projectName, projectDest) => `Project ${chalk.bold(projectName)} was successfully created in ${projectDest}`,
|
|
1453
1575
|
},
|
|
@@ -1541,7 +1663,6 @@ export const commands = {
|
|
|
1541
1663
|
describe: 'Migrate an existing project to the new version of the projects framework.',
|
|
1542
1664
|
errors: {
|
|
1543
1665
|
noProjectConfig: (command) => `No project detected. Please run this command again from a project directory. If you are trying to migrate an app, run ${command}`,
|
|
1544
|
-
noThemeMigrationAccess: (accountId) => `This project contains a CMS theme. You must opt in to theme migration beta to continue updating it on ${uiAccountDescription(accountId)}. Try again with a different account or ${uiLink('join the beta now', getProductUpdatesUrl('253920', accountId))}`,
|
|
1545
1666
|
},
|
|
1546
1667
|
examples: {
|
|
1547
1668
|
default: 'Migrate an existing project to the new version of the projects framework.',
|
|
@@ -1614,13 +1735,16 @@ export const commands = {
|
|
|
1614
1735
|
deploy: {
|
|
1615
1736
|
describe: 'Deploy a project build.',
|
|
1616
1737
|
deployBuildIdPrompt: '[--build] Deploy which build?',
|
|
1738
|
+
profileMessage: (profileName, accountId) => `Deploying with ${chalk.bold(profileName)} profile: ${uiAccountDescription(accountId)}`,
|
|
1617
1739
|
debug: {
|
|
1618
1740
|
deploying: (path) => `Deploying project at path: ${path}`,
|
|
1619
1741
|
},
|
|
1620
1742
|
errors: {
|
|
1621
1743
|
deploy: 'Deploy error: an unknown error occurred.',
|
|
1622
1744
|
noBuilds: 'Deploy error: no builds for this project were found.',
|
|
1745
|
+
noSuccessfulBuilds: 'Deploy error: no successful builds for this project were found.',
|
|
1623
1746
|
noBuildId: 'You must specify a build to deploy',
|
|
1747
|
+
notSupportedForBuildVersion: `This build's platform version does not support deploy. Run ${uiCommandReference('hs project release create')} to create a release instead.`,
|
|
1624
1748
|
projectNotFound: (accountId, projectName) => `The project ${chalk.bold(projectName)} does not exist in account ${uiAccountDescription(accountId)}. Run ${uiCommandReference('hs project upload')} to upload your project files to HubSpot.`,
|
|
1625
1749
|
buildIdDoesNotExist: (accountId, buildId, projectName) => `Build ${buildId} does not exist for project ${chalk.bold(projectName)}. Run ${uiCommandReference('hs project list-builds')} to view existing builds for this project.`,
|
|
1626
1750
|
buildAlreadyDeployed: (accountId, buildId, projectName) => `Build ${buildId} is already deployed. ${uiLink('View project builds in HubSpot', getProjectDetailUrl(projectName, accountId))}`,
|
|
@@ -1631,7 +1755,7 @@ export const commands = {
|
|
|
1631
1755
|
deployIssueComponentWarning: (uid, componentTypeName, message) => `- [${mapToUserFriendlyName(componentTypeName)}] ${chalk.bold('(' + uid + ')')} ${message}`,
|
|
1632
1756
|
},
|
|
1633
1757
|
examples: {
|
|
1634
|
-
default: 'Deploy the
|
|
1758
|
+
default: 'Deploy the last successful build of the current project',
|
|
1635
1759
|
withOptions: 'Deploy build 5 of the project my-project',
|
|
1636
1760
|
withProfile: 'Deploy using the provided profile',
|
|
1637
1761
|
},
|
|
@@ -1640,7 +1764,96 @@ export const commands = {
|
|
|
1640
1764
|
project: 'Project name',
|
|
1641
1765
|
profile: 'The profile to target with this deploy',
|
|
1642
1766
|
force: 'Skip warnings and force deploy. Use this carefully as it will bypass warnings for destructive actions.',
|
|
1643
|
-
deployLatestBuild: 'Deploy the
|
|
1767
|
+
deployLatestBuild: 'Deploy the last successful build of the current project',
|
|
1768
|
+
},
|
|
1769
|
+
},
|
|
1770
|
+
release: {
|
|
1771
|
+
describe: 'Manage project releases.',
|
|
1772
|
+
create: {
|
|
1773
|
+
describe: 'Create a release for a project build.',
|
|
1774
|
+
verboseDescribe: `Create a release for a project build\n\nReleases mark an uploaded build with an auto-generated semantic version tag (e.g. v1.0.0).\n\nBy default, the latest build is used. Use ${uiCommandReference('--build')} to specify a different build ID.`,
|
|
1775
|
+
confirmPrompt: (projectName, buildId) => `Create a release for project ${chalk.bold(projectName)} using build ${chalk.bold(String(buildId))}?`,
|
|
1776
|
+
success: (releaseTag, buildId) => `Release ${chalk.bold(releaseTag)} created for build ${chalk.bold(String(buildId))}.`,
|
|
1777
|
+
successNoTag: (buildId) => `Released build ${chalk.bold(String(buildId))}. Your project is now live.`,
|
|
1778
|
+
cancelled: 'Release creation cancelled.',
|
|
1779
|
+
buildIdPrompt: '[--build] Select a successful build to release:',
|
|
1780
|
+
noUploadMessage: 'No upload message',
|
|
1781
|
+
buildStatus: {
|
|
1782
|
+
BUILDING: 'Build in progress',
|
|
1783
|
+
FAILURE: 'Build failed',
|
|
1784
|
+
PENDING: 'Pending',
|
|
1785
|
+
PREPARING: 'Preparing',
|
|
1786
|
+
},
|
|
1787
|
+
uploadPrompt: (projectName) => `No successful builds for project ${chalk.bold(projectName)}. Would you like to upload it?`,
|
|
1788
|
+
errors: {
|
|
1789
|
+
projectNotFound: (accountId, projectName) => `The project ${chalk.bold(projectName)} does not exist in account ${uiAccountDescription(accountId)}. Run ${uiCommandReference('hs project upload')} to upload your project files to HubSpot.`,
|
|
1790
|
+
buildNotFound: (buildId, projectName) => `Build ${chalk.bold(String(buildId))} was not found for project ${chalk.bold(projectName)}. Run ${uiCommandReference('hs project list-builds')} to view existing builds or ${uiCommandReference('hs project upload')} to upload a build first.`,
|
|
1791
|
+
noSuccessfulBuilds: (projectName) => `No successful builds found for project ${chalk.bold(projectName)}. Run ${uiCommandReference('hs project upload')} to create a new build.`,
|
|
1792
|
+
incompatibleBuildVersion: `This build's platform version does not support releases. Upgrade your project to a newer platform version to use releases.`,
|
|
1793
|
+
},
|
|
1794
|
+
options: {
|
|
1795
|
+
build: 'Build ID to release. Defaults to the latest build.',
|
|
1796
|
+
force: 'Skip all confirmation prompts, including automatic upload when no build exists.',
|
|
1797
|
+
},
|
|
1798
|
+
examples: {
|
|
1799
|
+
default: 'Create a release for the latest build',
|
|
1800
|
+
withBuild: 'Create a release for a specific build',
|
|
1801
|
+
},
|
|
1802
|
+
},
|
|
1803
|
+
list: {
|
|
1804
|
+
describe: 'List releases for the current project.',
|
|
1805
|
+
verboseDescribe: `List releases for the current project\n\nDisplays all releases in sorted order, newest first. Includes the version tag, build ID, and creation date. Use ${uiCommandReference('--limit')} to control how many results are shown.`,
|
|
1806
|
+
noReleases: 'No releases found for this project.',
|
|
1807
|
+
showingReleases: (count, projectName) => `Showing ${count} release${count === 1 ? '' : 's'} for ${chalk.bold(projectName)}:`,
|
|
1808
|
+
continueOrExitPrompt: 'Press <enter> to load more, or ctrl+c to exit',
|
|
1809
|
+
errors: {
|
|
1810
|
+
projectNotFound: (accountId, projectName) => `The project ${chalk.bold(projectName)} does not exist in account ${uiAccountDescription(accountId)}. Run ${uiCommandReference('hs project upload')} to upload your project files to HubSpot.`,
|
|
1811
|
+
},
|
|
1812
|
+
options: {
|
|
1813
|
+
limit: 'Number of releases to show',
|
|
1814
|
+
},
|
|
1815
|
+
examples: {
|
|
1816
|
+
default: 'List releases for the current project',
|
|
1817
|
+
withLimit: 'Show only the 5 most recent releases',
|
|
1818
|
+
},
|
|
1819
|
+
},
|
|
1820
|
+
info: {
|
|
1821
|
+
describe: 'Show details about a specific release.',
|
|
1822
|
+
verboseDescribe: `Show details about a specific release\n\nDisplays the release tag, build ID, creation date, and list of components included in the release. Use ${uiCommandReference('--json')} for machine-readable output.`,
|
|
1823
|
+
releaseDetails: (releaseTag, projectName) => `Release ${chalk.bold(releaseTag)} for ${chalk.bold(projectName)}:`,
|
|
1824
|
+
components: 'Components:',
|
|
1825
|
+
noComponents: 'No components found for this release.',
|
|
1826
|
+
moreReleasesHint: `Not all releases are shown. Use ${uiCommandReference('--tag')} to look up an older release directly.`,
|
|
1827
|
+
selectRelease: (projectName) => `Select a release for ${chalk.bold(projectName)}`,
|
|
1828
|
+
errors: {
|
|
1829
|
+
releaseNotFound: (releaseTag, projectName) => `Release ${chalk.bold(releaseTag)} was not found for project ${chalk.bold(projectName)}. Verify the project has been uploaded and the release tag exists. Run ${uiCommandReference('hs project release list')} to view existing releases.`,
|
|
1830
|
+
noReleases: 'No releases found for this project.',
|
|
1831
|
+
},
|
|
1832
|
+
options: {
|
|
1833
|
+
tag: 'Release tag to look up (e.g. v1.0.0)',
|
|
1834
|
+
},
|
|
1835
|
+
examples: {
|
|
1836
|
+
default: 'Show details about a specific release',
|
|
1837
|
+
json: 'Output release details as JSON',
|
|
1838
|
+
},
|
|
1839
|
+
},
|
|
1840
|
+
preview: {
|
|
1841
|
+
describe: 'Build and preview a project on a target portal.',
|
|
1842
|
+
verboseDescribe: `Build and preview a project on a target portal\n\nUploads the current project (unless ${uiCommandReference('--build')} is passed), then deploys that build to the target portal so you can try it before releasing it. Use ${uiCommandReference('--target')} to choose the portal.`,
|
|
1843
|
+
uploadPrompt: (projectName) => `No successful builds for project ${chalk.bold(projectName)}. Would you like to upload it?`,
|
|
1844
|
+
errors: {
|
|
1845
|
+
targetRequired: `${uiCommandReference('--target=<portalId>')} is required to specify the portal to preview on.`,
|
|
1846
|
+
previewFailed: 'The preview failed. You can try again or preview this build from the project UI.',
|
|
1847
|
+
},
|
|
1848
|
+
options: {
|
|
1849
|
+
build: 'Build ID to preview. Defaults to the latest build.',
|
|
1850
|
+
target: 'Portal ID to preview the build on.',
|
|
1851
|
+
force: 'Skip all confirmation prompts, including automatic upload when no build exists.',
|
|
1852
|
+
},
|
|
1853
|
+
examples: {
|
|
1854
|
+
default: 'Build and preview the current project on a target portal',
|
|
1855
|
+
withBuild: 'Preview a specific build on a target portal',
|
|
1856
|
+
},
|
|
1644
1857
|
},
|
|
1645
1858
|
},
|
|
1646
1859
|
listBuilds: {
|
|
@@ -1663,6 +1876,8 @@ export const commands = {
|
|
|
1663
1876
|
},
|
|
1664
1877
|
examples: {
|
|
1665
1878
|
default: 'List the builds for the current project',
|
|
1879
|
+
withLimit: 'List the five most recent builds for the current project',
|
|
1880
|
+
json: 'Output the builds for the current project as JSON',
|
|
1666
1881
|
},
|
|
1667
1882
|
},
|
|
1668
1883
|
logs: {
|
|
@@ -1673,6 +1888,7 @@ export const commands = {
|
|
|
1673
1888
|
noFunctionsLinkText: 'Visit developer docs',
|
|
1674
1889
|
noFunctionsInProject: `There aren't any functions in this project\n\t- Run ${uiCommandReference('hs project logs --help')} to learn more about logs\n\t- ${uiLink('Visit developer docs', 'https://developers.hubspot.com/docs/platform/serverless-functions')} to learn more about serverless functions`,
|
|
1675
1890
|
noFunctionWithName: (name) => `No function with name "${name}"`,
|
|
1891
|
+
functionNameRequired: `A function name is required. Pass ${uiCommandReference('--function=<name>')} or run without it to select one interactively.`,
|
|
1676
1892
|
functionNotDeployed: (name) => `The function with name "${name}" is not deployed`,
|
|
1677
1893
|
projectLogsManagerNotInitialized: 'Function called on ProjectLogsManager before initialization',
|
|
1678
1894
|
noDeployedBuild: 'This project has not been deployed yet. Deploy the project first, then try again.',
|
|
@@ -1718,19 +1934,31 @@ export const commands = {
|
|
|
1718
1934
|
examples: {
|
|
1719
1935
|
default: 'Upload a project into your HubSpot account',
|
|
1720
1936
|
withProfile: 'Upload a project into your HubSpot account when using profiles',
|
|
1937
|
+
withPreview: 'Upload and preview the build on a target portal',
|
|
1721
1938
|
},
|
|
1722
1939
|
logs: {
|
|
1940
|
+
forceCreateDeprecated: `The ${uiCommandReference('--force-create')} flag is deprecated. Use ${uiCommandReference('--force')} instead.`,
|
|
1723
1941
|
buildSucceeded: (buildId) => `Build #${buildId} succeeded\n`,
|
|
1724
1942
|
readyToGoLive: '🚀 Ready to take your project live?',
|
|
1725
1943
|
runCommand: (command) => `Run \`${uiCommandReference(command)}\``,
|
|
1726
1944
|
autoDeployDisabled: (deployCommand) => `Automatic deploys are disabled for this project. Run ${uiCommandReference(deployCommand)} to deploy this build.`,
|
|
1945
|
+
autoDeploySkipped: (deployCommand) => `Auto-deploy was skipped for this build. Run ${uiCommandReference(deployCommand)} to deploy this build.`,
|
|
1946
|
+
releaseManagementRequired: (releaseCommand) => `This build is not live yet. Run ${uiCommandReference(releaseCommand)} to make it live.`,
|
|
1947
|
+
uploadingWithProfile: (profileName, accountId) => `Initializing project upload with ${chalk.bold(profileName)} profile: ${uiAccountDescription(accountId)}`,
|
|
1948
|
+
uploadingToAccount: (accountId) => `Initializing project upload to account ${uiAccountDescription(accountId)}`,
|
|
1949
|
+
uploadedToAccount: (accountId) => `Project uploaded to ${uiAccountDescription(accountId)}`,
|
|
1727
1950
|
},
|
|
1728
1951
|
errors: {
|
|
1729
1952
|
projectLockedError: `Your project is locked. This may mean that another user is running the ${uiCommandReference('hs project dev')} command for this project. If this is you, unlock the project in Projects UI.`,
|
|
1953
|
+
previewRequiresTarget: `${uiCommandReference('--preview')} requires ${uiCommandReference('--target=<portalId>')} to specify the portal to preview on.`,
|
|
1954
|
+
targetRequiresPreview: `${uiCommandReference('--target')} can only be used with ${uiCommandReference('--preview')}.`,
|
|
1730
1955
|
},
|
|
1731
1956
|
options: {
|
|
1957
|
+
force: {
|
|
1958
|
+
describe: 'Skip confirmation prompts and force the upload.',
|
|
1959
|
+
},
|
|
1732
1960
|
forceCreate: {
|
|
1733
|
-
describe:
|
|
1961
|
+
describe: uiDeprecatedTag(`Automatically create project if it does not exist. Use ${uiCommandReference('--force')} instead.`, false),
|
|
1734
1962
|
},
|
|
1735
1963
|
message: {
|
|
1736
1964
|
describe: 'Add a message when you upload your project and create a build',
|
|
@@ -1738,6 +1966,18 @@ export const commands = {
|
|
|
1738
1966
|
profile: {
|
|
1739
1967
|
describe: 'Profile to target for this upload',
|
|
1740
1968
|
},
|
|
1969
|
+
skipNpmAudit: {
|
|
1970
|
+
describe: 'Skip the npm audit security check before uploading',
|
|
1971
|
+
},
|
|
1972
|
+
skipAutoDeploy: {
|
|
1973
|
+
describe: 'Skip automatic deployment after a successful build',
|
|
1974
|
+
},
|
|
1975
|
+
preview: {
|
|
1976
|
+
describe: 'Preview the build on a target portal after a successful upload',
|
|
1977
|
+
},
|
|
1978
|
+
target: {
|
|
1979
|
+
describe: 'Portal ID to preview the build on',
|
|
1980
|
+
},
|
|
1741
1981
|
},
|
|
1742
1982
|
},
|
|
1743
1983
|
watch: {
|
|
@@ -1770,7 +2010,6 @@ export const commands = {
|
|
|
1770
2010
|
fileAlreadyQueued: (filePath) => `File "${filePath}" is already queued for upload`,
|
|
1771
2011
|
},
|
|
1772
2012
|
errors: {
|
|
1773
|
-
projectConfigNotFound: 'No project config found. Please ensure that you are in a project directory.',
|
|
1774
2013
|
projectLockedError: `Your project is locked. This may mean that another user is running the ${chalk.bold(`hs project dev`)} command for this project. If this is you, unlock the project in Projects UI.`,
|
|
1775
2014
|
uploadFailed: (remotePath, filePath) => `Failed to upload file "${filePath}" to "${remotePath}"`,
|
|
1776
2015
|
deleteFileFailed: (remotePath) => `Failed to delete file "${remotePath}"`,
|
|
@@ -1782,6 +2021,7 @@ export const commands = {
|
|
|
1782
2021
|
describe: 'Download your project files from HubSpot.',
|
|
1783
2022
|
examples: {
|
|
1784
2023
|
default: 'Download the project myProject into myProjectFolder folder',
|
|
2024
|
+
json: 'Output the download result as JSON for scripting',
|
|
1785
2025
|
},
|
|
1786
2026
|
logs: {
|
|
1787
2027
|
downloadCancelled: 'Cancelling project download',
|
|
@@ -1837,7 +2077,6 @@ export const commands = {
|
|
|
1837
2077
|
installationSuccessful: (directory) => `Installed dependencies in ${directory}`,
|
|
1838
2078
|
addingDependenciesToLocation: (dependencies, directory) => `Installing ${dependencies} in ${directory}`,
|
|
1839
2079
|
installingDependenciesFailed: (directory) => `Installing dependencies for ${directory} failed`,
|
|
1840
|
-
noProjectConfig: 'No project detected. Run this command from a project directory.',
|
|
1841
2080
|
noPackageJsonInProject: (projectName) => `No dependencies to install. The project ${projectName} folder might be missing component or subcomponent files. ${uiLink('Learn how to create a project from scratch', 'https://developers.hubspot.com/docs/apps/developer-platform/build-apps/create-an-app#customize-a-new-project-using-the-cli')}`,
|
|
1842
2081
|
packageManagerNotInstalled: (packageManager) => `This command depends on ${packageManager}, install ${uiLink(packageManager, 'https://docs.npmjs.com/downloading-and-installing-node-js-and-npm')}`,
|
|
1843
2082
|
},
|
|
@@ -1852,15 +2091,16 @@ export const commands = {
|
|
|
1852
2091
|
loading: {
|
|
1853
2092
|
checking: 'Checking lint packages and configuration…',
|
|
1854
2093
|
creatingConfig: 'Creating ESLint configuration files…',
|
|
2094
|
+
addingLintScripts: 'Adding lint scripts to package.json files…',
|
|
1855
2095
|
linting: 'Linting…',
|
|
1856
2096
|
},
|
|
1857
|
-
noProjectConfig: 'No project detected. Run this command from a project directory.',
|
|
1858
2097
|
failedToReadPackageJson: (packageJsonPath) => `Failed to read package.json at ${packageJsonPath}`,
|
|
1859
2098
|
installLintPackagesPrompt: (directories, missingPackages) => {
|
|
1860
2099
|
const uniquePackages = Array.from(new Set(missingPackages)).sort();
|
|
1861
2100
|
return `The dependencies required for linting are missing or outdated.\n\nDependencies:\n${uniquePackages.map(p => ` - ${p}`).join('\n')}\n\n${directories.length === 1 ? 'Directory' : 'Directories'}:\n${directories.map(d => ` - ${d}`).join('\n')}\n\nWould you like to install the required dependencies?`;
|
|
1862
2101
|
},
|
|
1863
2102
|
skippingDirectoriesWarning: (directories) => `Skipping linting for the following ${directories.length === 1 ? 'directory' : 'directories'}:\n${directories.map(d => ` - ${d}`).join('\n')}`,
|
|
2103
|
+
skippedDirectoriesError: (directoryCount) => `Linting could not run for ${directoryCount === 1 ? 'the directory' : 'the directories'} above because the required dependencies are missing. Run ${uiCommandReference('hs project lint --install-missing-deps')} to install them.`,
|
|
1864
2104
|
deprecatedEslintConfigWarning: (details) => {
|
|
1865
2105
|
const dirCount = details.length;
|
|
1866
2106
|
const header = `Deprecated ESLint configuration file${dirCount === 1 ? '' : 's'} detected in the following ${dirCount === 1 ? 'directory' : 'directories'}:`;
|
|
@@ -1871,8 +2111,17 @@ export const commands = {
|
|
|
1871
2111
|
},
|
|
1872
2112
|
createEslintConfigPrompt: (directories) => `ESLint configuration file not found in the following ${directories.length === 1 ? 'directory' : 'directories'}:\n${directories.map(d => ` - ${d}`).join('\n')}\n\nWould you like to set up the required ESLint configuration?`,
|
|
1873
2113
|
eslintConfigCreated: (configPath) => `ESLint configuration created at ${configPath}`,
|
|
2114
|
+
createEslintConfigRequiresV2Platform: (platformVersion) => {
|
|
2115
|
+
if (!platformVersion) {
|
|
2116
|
+
return 'Automatic ESLint configuration requires a Developer Platform project (2025.2 or later) with platformVersion set in hsproject.json. Add an eslint.config.js file manually, or set platformVersion and try again.';
|
|
2117
|
+
}
|
|
2118
|
+
return `Automatic ESLint configuration is not available for platform version ${platformVersion}. Use Developer Platform 2025.2 or later, or add eslint.config.js manually.`;
|
|
2119
|
+
},
|
|
2120
|
+
failedToFetchRemoteEslintConfig: (platformVersion) => `Could not download the ESLint config from HubSpot project components for platform version ${platformVersion}. Check your network connection and try again, or add eslint.config.js manually.`,
|
|
1874
2121
|
failedToCreateEslintConfig: (configPath) => `Failed to create ESLint configuration at ${configPath}`,
|
|
1875
2122
|
eslintConfigRequired: 'ESLint configuration is required to run the lint command. Run the command again to create the configuration.',
|
|
2123
|
+
lintScriptsAdded: (scriptNames, packageJsonPath) => `Added ${scriptNames.map(s => `"${s}"`).join(' and ')} to ${packageJsonPath}`,
|
|
2124
|
+
failedToAddLintScripts: (packageJsonPath) => `Failed to add lint scripts to ${packageJsonPath}`,
|
|
1876
2125
|
},
|
|
1877
2126
|
updateDeps: {
|
|
1878
2127
|
help: {
|
|
@@ -1886,7 +2135,6 @@ export const commands = {
|
|
|
1886
2135
|
updateSuccessful: (directory) => `Updated dependencies in ${directory}`,
|
|
1887
2136
|
updatingDependenciesToLocation: (dependencies, directory) => `Updating ${dependencies} in ${directory}`,
|
|
1888
2137
|
updatingDependenciesFailed: (directory) => `Updating dependencies for ${directory} failed`,
|
|
1889
|
-
noProjectConfig: 'No project detected. Run this command from a project directory.',
|
|
1890
2138
|
noPackageJsonInProject: (projectName) => `No dependencies to update. The project ${projectName} folder might be missing component or subcomponent files. ${uiLink('Learn how to create a project from scratch', 'https://developers.hubspot.com/docs/apps/developer-platform/build-apps/create-an-app#customize-a-new-project-using-the-cli')}`,
|
|
1891
2139
|
packageManagerNotInstalled: (packageManager) => `This command depends on ${packageManager}, install ${uiLink(packageManager, 'https://docs.npmjs.com/downloading-and-installing-node-js-and-npm')}`,
|
|
1892
2140
|
},
|
|
@@ -1897,6 +2145,7 @@ export const commands = {
|
|
|
1897
2145
|
examples: {
|
|
1898
2146
|
default: 'Validate the project before uploading',
|
|
1899
2147
|
withProfile: 'Validate the project with a profile before uploading.',
|
|
2148
|
+
json: 'Output validation results as JSON for scripting',
|
|
1900
2149
|
},
|
|
1901
2150
|
success: (projectName) => `Project ${projectName} is valid and ready to upload`,
|
|
1902
2151
|
failure: (projectName, profileName) => `Project ${projectName} is invalid${profileName ? ` with profile "${profileName}" applied` : ''}`,
|
|
@@ -1923,10 +2172,145 @@ export const commands = {
|
|
|
1923
2172
|
name: 'Name',
|
|
1924
2173
|
platformVersion: 'Platform Version',
|
|
1925
2174
|
},
|
|
2175
|
+
examples: {
|
|
2176
|
+
default: 'List projects in the target account',
|
|
2177
|
+
json: 'Output as JSON for scripting',
|
|
2178
|
+
},
|
|
1926
2179
|
errors: {
|
|
1927
2180
|
noProjectsFound: (accountId) => `No projects found for account ${uiAccountDescription(accountId)}`,
|
|
1928
2181
|
},
|
|
1929
2182
|
},
|
|
2183
|
+
info: {
|
|
2184
|
+
describe: 'Display information about a project, its app, and its components',
|
|
2185
|
+
verboseDescribe: `Display information about a project, its app, and its components\n\nShows the project's platform version, deployed build ID, auto-deploy status, app metadata, and a list of components.\n\nRun ${uiCommandReference('hs project info --json')} to output the result as JSON for scripting.`,
|
|
2186
|
+
project: {
|
|
2187
|
+
title: (name) => `Project: ${name}`,
|
|
2188
|
+
platformVersion: (version) => `Platform Version: ${version}`,
|
|
2189
|
+
id: (id) => `Project ID: ${id}`,
|
|
2190
|
+
deployedBuild: (buildId) => `Deployed Build: #${buildId}`,
|
|
2191
|
+
autoDeploy: (enabled) => `Auto-deploy: ${enabled ? 'Enabled' : 'Disabled'}`,
|
|
2192
|
+
},
|
|
2193
|
+
app: {
|
|
2194
|
+
title: 'App',
|
|
2195
|
+
name: (name) => `Name: ${name}`,
|
|
2196
|
+
id: (id) => `App ID: ${id}`,
|
|
2197
|
+
uid: (uid) => `UID: ${uid}`,
|
|
2198
|
+
authType: (authType) => `Auth Type: ${authType}`,
|
|
2199
|
+
distributionType: (distributionType) => `Distribution: ${distributionType}`,
|
|
2200
|
+
},
|
|
2201
|
+
examples: {
|
|
2202
|
+
default: 'Display project information',
|
|
2203
|
+
json: 'Output as JSON for scripting',
|
|
2204
|
+
},
|
|
2205
|
+
viewProjectLink: 'View project in HubSpot',
|
|
2206
|
+
componentsHeader: 'Components',
|
|
2207
|
+
labels: {
|
|
2208
|
+
type: 'Type',
|
|
2209
|
+
uid: 'UID',
|
|
2210
|
+
},
|
|
2211
|
+
errors: {
|
|
2212
|
+
projectNotFound: (projectName, accountId) => `Project "${projectName}" was not found in account ${uiAccountDescription(accountId)}. Make sure the project has been uploaded at least once.`,
|
|
2213
|
+
noDeployedBuild: `This project has not been deployed yet.\n\nRun ${uiCommandReference('hs project deploy')} to deploy your project.`,
|
|
2214
|
+
unsupportedPlatformVersion: (platformVersion) => `This command is not supported for platform version ${chalk.bold(platformVersion)}. Please upgrade to 2025.2 or later.`,
|
|
2215
|
+
},
|
|
2216
|
+
},
|
|
2217
|
+
delete: {
|
|
2218
|
+
describe: 'Delete a project from the current target account',
|
|
2219
|
+
verboseDescribe: `Delete a project from the current target account\n\nThis will permanently delete the project, all deployed components, and any app installations associated with it. Your local project files will not be affected.`,
|
|
2220
|
+
warnings: {
|
|
2221
|
+
irreversibleTitle: 'Warning: This will permanently delete your project',
|
|
2222
|
+
irreversible: 'Deleting this project will also delete all deployed components and app installations. This action cannot be undone. Your local project files will not be affected.',
|
|
2223
|
+
},
|
|
2224
|
+
prompts: {
|
|
2225
|
+
selectProject: (accountId) => `Select a project to delete in ${uiAccountDescription(accountId)}`,
|
|
2226
|
+
confirmDelete: (projectName, accountId) => `[--force] Delete ${chalk.bold(projectName)} from ${uiAccountDescription(accountId)}? This cannot be undone.`,
|
|
2227
|
+
validation: {
|
|
2228
|
+
projectRequired: 'Please select a project to delete',
|
|
2229
|
+
},
|
|
2230
|
+
},
|
|
2231
|
+
logs: {
|
|
2232
|
+
deleting: (projectName) => `Deleting project ${chalk.bold(projectName)}...`,
|
|
2233
|
+
deleted: (projectName, accountId) => `Deleted project ${chalk.bold(projectName)} from ${uiAccountDescription(accountId)}`,
|
|
2234
|
+
cancelled: 'Deletion cancelled',
|
|
2235
|
+
componentsToDeleteUnified: (components) => `The following deployed components will be deleted:\n${components.map(c => ` - ${chalk.bold(c.componentId)} (${mapToUserFriendlyName(c.componentType)})`).join('\n')}`,
|
|
2236
|
+
componentsToDeleteLegacy: (components) => `The following deployed components will be deleted:\n${components.map(c => ` - ${chalk.bold(c)}`).join('\n')}`,
|
|
2237
|
+
deletingComponents: (projectName) => `Deleting deployed components from ${chalk.bold(projectName)}...`,
|
|
2238
|
+
componentsDeleted: (projectName) => `Deleted deployed components from ${chalk.bold(projectName)}`,
|
|
2239
|
+
unableToDetermineIfComponentsWereDeleted: (projectName) => `Unable to determine if components were successfully deleted from ${chalk.bold(projectName)}. Please try again.`,
|
|
2240
|
+
installWarning: (installCount) => `This project has ${chalk.bold(String(installCount))} active app ${installCount === 1 ? 'installation' : 'installations'} that will be deleted.`,
|
|
2241
|
+
installCountUnknown: 'Unable to determine the number of active app installations for this project.',
|
|
2242
|
+
},
|
|
2243
|
+
errors: {
|
|
2244
|
+
noProjectsFound: (accountId) => `No projects found for account ${uiAccountDescription(accountId)}`,
|
|
2245
|
+
projectNotFound: (projectName, accountId) => `Project ${chalk.bold(projectName)} not found in ${uiAccountDescription(accountId)}`,
|
|
2246
|
+
deleteFailed: (projectName) => `Failed to delete project ${chalk.bold(projectName)}. Run with --debug for details or try again.`,
|
|
2247
|
+
cannotDelete: (projectName, reason) => `Cannot delete project ${chalk.bold(projectName)}: ${reason}`,
|
|
2248
|
+
noPlatformVersion: 'Unable to determine platform version for project',
|
|
2249
|
+
componentDeletionFailed: (projectName) => `Failed to delete deployed components from ${chalk.bold(projectName)}. The project was not deleted.`,
|
|
2250
|
+
},
|
|
2251
|
+
options: {
|
|
2252
|
+
project: 'name of the project to delete',
|
|
2253
|
+
force: 'skip confirmation prompt',
|
|
2254
|
+
},
|
|
2255
|
+
},
|
|
2256
|
+
installApp: {
|
|
2257
|
+
describe: 'Install a static auth app from the current project into the target account',
|
|
2258
|
+
verboseDescribe: `Install a static auth app from the current project into the target account.\n\nRun this command from within the project directory. The project must contain a privately distributed static auth app and must already be uploaded to the target account.`,
|
|
2259
|
+
examples: {
|
|
2260
|
+
default: 'Install the static auth app from the current project',
|
|
2261
|
+
withAccount: 'Install the app into a specific account',
|
|
2262
|
+
withProfile: 'Install the app into the account targeted by a profile',
|
|
2263
|
+
json: 'Output install result as JSON',
|
|
2264
|
+
},
|
|
2265
|
+
options: {
|
|
2266
|
+
force: 'Skip confirmation prompts',
|
|
2267
|
+
profile: 'The profile to target with this install',
|
|
2268
|
+
},
|
|
2269
|
+
errors: {
|
|
2270
|
+
unsupportedPlatformVersion: (platformVersion) => `This command is only supported for projects on platform version 2025.2 or later (detected: ${platformVersion}).`,
|
|
2271
|
+
failedToParseProject: 'Failed to parse the project. Check your project configuration is valid and try again.',
|
|
2272
|
+
noAppInProject: 'No app was found in the local project. This command requires a project that contains an app.',
|
|
2273
|
+
unsupportedAuthType: (authType) => `This command only supports static auth apps. Detected auth type: ${authType}.`,
|
|
2274
|
+
unsupportedDistribution: (distribution) => `This command only supports privately distributed apps. Detected distribution: ${distribution}.`,
|
|
2275
|
+
invalidAppDeveloperAccount: (accountId) => `Static auth apps can't be installed into the app developer account ${uiAccountDescription(accountId)}. Switch to a standard, sandbox, or developer test account with ${uiCommandReference('hs account use')}, or pass ${uiCommandReference('--account')}.`,
|
|
2276
|
+
projectNotFound: (accountId, projectName) => `The project ${chalk.bold(projectName)} does not exist in ${uiAccountDescription(accountId)}. Run ${uiCommandReference('hs project upload')} to upload your project files to HubSpot.`,
|
|
2277
|
+
appNotDeployed: (appName, accountId) => `The app ${chalk.bold(appName)} has not been deployed to ${uiAccountDescription(accountId)}. Upload the project with ${uiCommandReference('hs project upload')} and ensure the build succeeds, then try again.`,
|
|
2278
|
+
automaticInstallUnavailable: (appName, accountId) => `${chalk.bold(appName)} could not be installed automatically in ${uiAccountDescription(accountId)}.`,
|
|
2279
|
+
installFailed: (appName, accountId) => `Failed to install ${chalk.bold(appName)} in ${uiAccountDescription(accountId)}.`,
|
|
2280
|
+
},
|
|
2281
|
+
jsonErrors: {
|
|
2282
|
+
automaticInstallUnavailable: 'Automatic install is unavailable for this account.',
|
|
2283
|
+
installFailed: (appName, accountId) => `Failed to install ${appName} in account ${accountId}.`,
|
|
2284
|
+
},
|
|
2285
|
+
profileMessage: (profileName, accountId) => `Installing with ${chalk.bold(profileName)} profile: ${uiAccountDescription(accountId)}`,
|
|
2286
|
+
appDeveloperAccountNotice: (accountId) => `${uiAccountDescription(accountId)} is an app developer account, which can't have apps installed into it.`,
|
|
2287
|
+
selectInstallAccountPrompt: 'Select an account to install the app into',
|
|
2288
|
+
uploadAndDeployPrompt: (accountId) => `The app isn't deployed to ${uiAccountDescription(accountId)} yet. Upload and deploy the project now?`,
|
|
2289
|
+
alreadyInstalled: (appName, accountId) => `${chalk.bold(appName)} is already installed in ${uiAccountDescription(accountId)}.`,
|
|
2290
|
+
outdatedScopes: (appName, accountId) => `${chalk.bold(appName)} is installed in ${uiAccountDescription(accountId)} with outdated scopes.`,
|
|
2291
|
+
reinstallPrompt: 'Reinstall the app to grant the latest scopes?',
|
|
2292
|
+
installPrompt: (appName, accountId) => `Install ${chalk.bold(appName)} in ${uiAccountDescription(accountId)}?`,
|
|
2293
|
+
installFromBrowser: (installUrl) => `Install the app in HubSpot: ${uiLink('Open install page', installUrl)}`,
|
|
2294
|
+
success: (appName, accountId) => `${chalk.bold(appName)} installed in ${uiAccountDescription(accountId)}.`,
|
|
2295
|
+
},
|
|
2296
|
+
installStatus: {
|
|
2297
|
+
describe: 'Check whether a static auth app in the current project is installed in the target account. This command must be run from within a HubSpot project directory.',
|
|
2298
|
+
examples: {
|
|
2299
|
+
default: 'Check install status for the static auth app in the current project',
|
|
2300
|
+
json: 'Output install status as JSON',
|
|
2301
|
+
},
|
|
2302
|
+
errors: {
|
|
2303
|
+
unsupportedPlatformVersion: (platformVersion) => `This command is only supported for projects on platform version 2025.2 or later (detected: ${platformVersion}).`,
|
|
2304
|
+
failedToParseProject: 'Failed to parse the project. Check your project configuration is valid and try again.',
|
|
2305
|
+
noAppInProject: 'No app was found in the local project. Install status is only available for projects that contain an app.',
|
|
2306
|
+
unsupportedAuthType: (authType) => `This command only supports static auth apps. Detected auth type: ${authType}.`,
|
|
2307
|
+
},
|
|
2308
|
+
success: {
|
|
2309
|
+
installed: (appName, accountId) => `${chalk.bold(appName)} is installed in ${uiAccountDescription(accountId)}.`,
|
|
2310
|
+
installedWithOutdatedScopes: (appName, accountId) => `${chalk.bold(appName)} is installed in ${uiAccountDescription(accountId)} with outdated scopes. Reinstall the app to grant the latest scopes.`,
|
|
2311
|
+
},
|
|
2312
|
+
notInstalled: (appName, accountId) => `${chalk.bold(appName)} is not installed in ${uiAccountDescription(accountId)}.`,
|
|
2313
|
+
},
|
|
1930
2314
|
},
|
|
1931
2315
|
sandbox: {
|
|
1932
2316
|
describe: 'Commands for managing sandboxes.',
|
|
@@ -2121,6 +2505,111 @@ export const commands = {
|
|
|
2121
2505
|
},
|
|
2122
2506
|
},
|
|
2123
2507
|
},
|
|
2508
|
+
logs: {
|
|
2509
|
+
describe: 'View recent application logs.',
|
|
2510
|
+
verboseDescribe: `View recent application logs for a specific log type.\n\nFilter by time range with ${uiCommandReference('--since')} (e.g. 1h, 30m, 2d, or an ISO timestamp). Use ${uiCommandReference('--tail')} to follow logs in real-time, ${uiCommandReference('--compact')} for one-line-per-log output, or ${uiCommandReference('--json')} for machine-readable output.\n\nRun ${uiCommandReference('hs app log-details <logId>')} to inspect a specific log entry.`,
|
|
2511
|
+
options: {
|
|
2512
|
+
appId: 'App ID',
|
|
2513
|
+
type: 'Log type',
|
|
2514
|
+
json: 'Output logs as JSON',
|
|
2515
|
+
limit: 'Maximum number of logs to return',
|
|
2516
|
+
since: 'Filter logs by time ago (1h, 30m, 2d, or ISO timestamp)',
|
|
2517
|
+
tail: 'Follow logs in real-time',
|
|
2518
|
+
errorsOnly: 'Only show error logs',
|
|
2519
|
+
compact: 'Display logs in compact format (one line per log)',
|
|
2520
|
+
},
|
|
2521
|
+
errors: {
|
|
2522
|
+
noLogs: 'No logs found. Try a wider time range (--since) or remove --errors-only to see all logs.',
|
|
2523
|
+
noApps: `No apps found. Create an app with ${uiCommandReference('hs project create')}.`,
|
|
2524
|
+
},
|
|
2525
|
+
prompts: {
|
|
2526
|
+
selectType: '[--type] Select the type of logs to view:',
|
|
2527
|
+
},
|
|
2528
|
+
examples: {
|
|
2529
|
+
basic: 'Fetch webhook logs for app 123456',
|
|
2530
|
+
since: 'Fetch logs from the last hour',
|
|
2531
|
+
tail: 'Follow logs in real-time',
|
|
2532
|
+
json: 'Output logs as JSON',
|
|
2533
|
+
compact: 'Display logs in compact format',
|
|
2534
|
+
},
|
|
2535
|
+
outputMessages: {
|
|
2536
|
+
viewInHubSpot: (url) => uiLink('View in HubSpot', url),
|
|
2537
|
+
tableHeaders: {
|
|
2538
|
+
appId: 'App ID',
|
|
2539
|
+
type: 'Type',
|
|
2540
|
+
logsFound: 'Logs Found',
|
|
2541
|
+
},
|
|
2542
|
+
logDetails: {
|
|
2543
|
+
id: 'ID',
|
|
2544
|
+
duration: 'Duration',
|
|
2545
|
+
portal: 'Portal',
|
|
2546
|
+
trace: 'Trace',
|
|
2547
|
+
error: 'Error',
|
|
2548
|
+
viewDetails: (logId, appId, systemType) => `To view more details, run: ${uiCommandReference(`hs app log-details ${logId} --app=${appId} --type=${systemType}`)}`,
|
|
2549
|
+
viewInUI: (url) => uiLink('View details in UI', url),
|
|
2550
|
+
},
|
|
2551
|
+
tailMessages: {
|
|
2552
|
+
following: (appId) => `Following logs for app ${appId}`,
|
|
2553
|
+
stop: `> Press ${chalk.bold('q')} to stop following`,
|
|
2554
|
+
},
|
|
2555
|
+
},
|
|
2556
|
+
},
|
|
2557
|
+
logDetails: {
|
|
2558
|
+
describe: 'View details for a specific log entry.',
|
|
2559
|
+
verboseDescribe: `View full details for a specific app log entry, including request/response bodies, context information, and error details.\n\nUse ${uiCommandReference('--json')} for machine-readable output.`,
|
|
2560
|
+
positionals: {
|
|
2561
|
+
logId: 'The log ID to fetch details for',
|
|
2562
|
+
},
|
|
2563
|
+
options: {
|
|
2564
|
+
appId: 'App ID',
|
|
2565
|
+
type: 'Log type',
|
|
2566
|
+
json: 'Output details as JSON',
|
|
2567
|
+
},
|
|
2568
|
+
errors: {
|
|
2569
|
+
noApps: `No apps found. Create an app with ${uiCommandReference('hs project create')}.`,
|
|
2570
|
+
},
|
|
2571
|
+
prompts: {
|
|
2572
|
+
selectType: '[--type] Select the log type:',
|
|
2573
|
+
},
|
|
2574
|
+
examples: {
|
|
2575
|
+
basic: 'Fetch details for log abc-123',
|
|
2576
|
+
json: 'Output log details as JSON',
|
|
2577
|
+
},
|
|
2578
|
+
outputMessages: {
|
|
2579
|
+
viewInHubSpot: (url) => uiLink('View in HubSpot', url),
|
|
2580
|
+
logDetailsHeader: 'Log Details',
|
|
2581
|
+
basicInfo: {
|
|
2582
|
+
id: 'Log ID',
|
|
2583
|
+
timestamp: 'Timestamp',
|
|
2584
|
+
status: 'Status',
|
|
2585
|
+
duration: 'Duration',
|
|
2586
|
+
systemType: 'Type',
|
|
2587
|
+
},
|
|
2588
|
+
contextInfo: {
|
|
2589
|
+
header: 'Context',
|
|
2590
|
+
portalId: 'Portal ID',
|
|
2591
|
+
traceId: 'Trace ID',
|
|
2592
|
+
function: 'Function',
|
|
2593
|
+
location: 'Location',
|
|
2594
|
+
card: 'Card',
|
|
2595
|
+
userId: 'User ID',
|
|
2596
|
+
},
|
|
2597
|
+
requestResponse: {
|
|
2598
|
+
header: 'Request/Response',
|
|
2599
|
+
requestBody: 'Request Body',
|
|
2600
|
+
responseBody: 'Response Body',
|
|
2601
|
+
},
|
|
2602
|
+
errorInfo: {
|
|
2603
|
+
header: 'Error Details',
|
|
2604
|
+
errorType: 'Type',
|
|
2605
|
+
errorMessage: 'Message',
|
|
2606
|
+
stackTrace: 'Stack Trace',
|
|
2607
|
+
},
|
|
2608
|
+
additionalInfo: {
|
|
2609
|
+
header: 'Additional Information',
|
|
2610
|
+
},
|
|
2611
|
+
},
|
|
2612
|
+
},
|
|
2124
2613
|
},
|
|
2125
2614
|
},
|
|
2126
2615
|
secret: {
|
|
@@ -2222,7 +2711,7 @@ export const commands = {
|
|
|
2222
2711
|
configPathPrompt: '[--config-path] Enter the path to the test account config: ',
|
|
2223
2712
|
createTestAccountFromConfigPrompt: 'How would you like to create your test account?',
|
|
2224
2713
|
createFromConfigOption: 'Create test account from config file',
|
|
2225
|
-
createFromScratchOption: '
|
|
2714
|
+
createFromScratchOption: 'Select hub tiers manually',
|
|
2226
2715
|
errors: {
|
|
2227
2716
|
configFileNotFound: (configPath) => `No test account config file exists at ${configPath}. Create a test account config file with the ${uiCommandReference('hs test-account create-config')} command.`,
|
|
2228
2717
|
configFileParseFailed: (configPath) => `Failed to parse test account config file at ${configPath}`,
|
|
@@ -2242,8 +2731,8 @@ export const commands = {
|
|
|
2242
2731
|
opsLevel: 'Operations Hub tier. Options: FREE, STARTER, PROFESSIONAL, ENTERPRISE',
|
|
2243
2732
|
serviceLevel: 'Service Hub tier. Options: FREE, STARTER, PROFESSIONAL, ENTERPRISE',
|
|
2244
2733
|
salesLevel: 'Sales Hub tier. Options: FREE, STARTER, PROFESSIONAL, ENTERPRISE',
|
|
2245
|
-
contentLevel: '
|
|
2246
|
-
commerceLevel: '
|
|
2734
|
+
contentLevel: 'Content Hub tier. Options: FREE, STARTER, PROFESSIONAL, ENTERPRISE',
|
|
2735
|
+
commerceLevel: 'Revenue Hub tier. Options: FREE, PROFESSIONAL, ENTERPRISE',
|
|
2247
2736
|
},
|
|
2248
2737
|
example: (configPath) => `Create a test account from the config file at ${configPath}`,
|
|
2249
2738
|
examples: {
|
|
@@ -2895,15 +3384,30 @@ export const commands = {
|
|
|
2895
3384
|
},
|
|
2896
3385
|
};
|
|
2897
3386
|
export const lib = {
|
|
3387
|
+
linkedDirectory: {
|
|
3388
|
+
warning: (action, settingsPath) => `This directory has linked accounts via ${settingsPath}. ${uiCommandReference(action)} modifies your global config, not the linked directory settings. Use ${uiCommandReference('hs account link')} to manage linked accounts.\n`,
|
|
3389
|
+
},
|
|
2898
3390
|
parsing: {
|
|
2899
3391
|
unableToParseStringToNumber: 'Unable to parse string to number',
|
|
2900
3392
|
},
|
|
2901
3393
|
configMiddleWare: {
|
|
2902
3394
|
invalidAccountIdEnvironmentVariable: 'Unable to parse `HUBSPOT_ACCOUNT_ID` environment variable into a number',
|
|
2903
3395
|
},
|
|
3396
|
+
accountTargetDiscovery: {
|
|
3397
|
+
errors: {
|
|
3398
|
+
explicitAccountNotFound: (account) => `Account ${chalk.bold(String(account))} was not found in your config. Run ${uiCommandReference('hs account list')} to see available accounts.`,
|
|
3399
|
+
},
|
|
3400
|
+
},
|
|
2904
3401
|
process: {
|
|
2905
3402
|
exitDebug: (signal) => `Attempting to gracefully exit. Triggered by ${signal}`,
|
|
2906
3403
|
},
|
|
3404
|
+
handlerLogFile: {
|
|
3405
|
+
saved: (filePath) => `Debug logs can be viewed at ${filePath}`,
|
|
3406
|
+
},
|
|
3407
|
+
jsonSchema: {
|
|
3408
|
+
noSchemaForCommand: 'No schema defined for this command',
|
|
3409
|
+
validationFailed: 'JSON output may be missing or malformed fields. The output schema may be out of date.',
|
|
3410
|
+
},
|
|
2907
3411
|
DevServerManager: {
|
|
2908
3412
|
portConflict: (port) => `The port ${port} is already in use.`,
|
|
2909
3413
|
notInitialized: 'The Dev Server Manager must be initialized before it is started.',
|
|
@@ -2918,6 +3422,7 @@ export const lib = {
|
|
|
2918
3422
|
learnMoreLocalDevServer: uiLink('Learn more about the projects local dev server', 'https://developers.hubspot.com/docs/developer-tooling/local-development/hubspot-cli/project-commands'),
|
|
2919
3423
|
running: (projectName, accountIdentifier) => chalk.hex(UI_COLORS.SORBET)(`Running ${chalk.bold(projectName)} locally on ${accountIdentifier}, waiting for changes ...`),
|
|
2920
3424
|
quitHelper: `Press ${chalk.bold('q')} to stop the local dev server`,
|
|
3425
|
+
autoUploadEnabled: `${chalk.bold('Auto-upload is on.')} Changes you make locally will be uploaded to HubSpot automatically.`,
|
|
2921
3426
|
viewProjectLink: (name, accountId) => uiLink('View project in HubSpot', getProjectDetailUrl(name, accountId) || ''),
|
|
2922
3427
|
viewLocalDevUILink: (accountId, showWelcomeScreen) => uiLink('View local dev session in HubSpot', getLocalDevUiUrl(accountId, showWelcomeScreen)),
|
|
2923
3428
|
localDevUIAutoMessage: (accountId, showWelcomeScreen) => `Opening your ${uiLink('local dev session in HubSpot', getLocalDevUiUrl(accountId, showWelcomeScreen))}...`,
|
|
@@ -2986,6 +3491,13 @@ export const lib = {
|
|
|
2986
3491
|
appDataNotFound: 'An error occurred while fetching data for your app.',
|
|
2987
3492
|
oauthAppRedirectUrlError: (redirectUrl) => `${chalk.bold('No reponse from your OAuth service:')} ${redirectUrl}\nYour app needs a valid OAuth2 service to be installed for local dev. ${uiLink('Learn more', 'https://developers.hubspot.com/docs/apps/developer-platform/build-apps/authentication/oauth/working-with-oauth')}`,
|
|
2988
3493
|
},
|
|
3494
|
+
accountAuthWebsocket: {
|
|
3495
|
+
logs: {
|
|
3496
|
+
openingWebBrowser: (url) => `Opening ${uiLink('HubSpot', url)} in your web browser\n`,
|
|
3497
|
+
spinner: 'Waiting for HubSpot to send your personal access key... (press any key to enter it manually)',
|
|
3498
|
+
received: 'Personal access key received',
|
|
3499
|
+
},
|
|
3500
|
+
},
|
|
2989
3501
|
CLIWebsocketServer: {
|
|
2990
3502
|
errors: {
|
|
2991
3503
|
portManagerNotRunning: (prefix) => `${prefix ? `${prefix} ` : ''}PortManagerServing must be running before starting WebsocketServer.`,
|
|
@@ -2993,6 +3505,7 @@ export const lib = {
|
|
|
2993
3505
|
missingTypeField: (data) => `Unsupported message received. Missing type field: ${data}`,
|
|
2994
3506
|
invalidJSON: (data) => `Unsupported message received. Invalid JSON: ${data}`,
|
|
2995
3507
|
unknownMessageType: (type) => `Unsupported message received. Unknown message type: ${type}`,
|
|
3508
|
+
failedToBindEphemeralPort: (prefix) => `${prefix ? `${prefix} ` : ''}Failed to determine the assigned port for the WebsocketServer.`,
|
|
2996
3509
|
},
|
|
2997
3510
|
logs: {
|
|
2998
3511
|
startup: (port) => `WebsocketServer running on port ${port}`,
|
|
@@ -3000,8 +3513,14 @@ export const lib = {
|
|
|
3000
3513
|
},
|
|
3001
3514
|
LocalDevProcess: {
|
|
3002
3515
|
projectConfigMismatch: `Unable to upload project. The project config has been modified since starting ${uiCommandReference('hs project dev')}.`,
|
|
3003
|
-
uploadInitiated: 'Project upload initiated
|
|
3004
|
-
|
|
3516
|
+
uploadInitiated: 'Project upload initiated.',
|
|
3517
|
+
autoUploadScheduled: (filePath) => `Auto-upload: detected change to ${filePath}, upload scheduled.`,
|
|
3518
|
+
autoUploadTriggered: 'Auto-upload: debounce elapsed, uploading now.',
|
|
3519
|
+
autoUploadInProgress: 'Auto-upload: an upload is already running, will re-run after it finishes.',
|
|
3520
|
+
autoUploadToggled: (enabled) => enabled
|
|
3521
|
+
? `${chalk.bold('Auto-upload turned on')} from the Local Dev Panel. Changes you make locally will be uploaded to HubSpot automatically.`
|
|
3522
|
+
: `${chalk.bold('Auto-upload turned off')} from the Local Dev Panel. Upload manually from the Local Dev Panel to push your changes.`,
|
|
3523
|
+
deployInitiated: 'Project deploy initiated from the Local Dev Panel.',
|
|
3005
3524
|
uploadFailed: 'Project upload failed. To proceed with local development, fix any necessary errors, then re-upload your project.',
|
|
3006
3525
|
deployFailed: 'Project deploy failed. To proceed with local development, fix any necessary errors, then re-deploy your project.',
|
|
3007
3526
|
uploadSuccess: 'Project upload completed successfully. Resuming local dev...',
|
|
@@ -3016,7 +3535,21 @@ export const lib = {
|
|
|
3016
3535
|
checking: 'Checking if your deployed build is up to date...',
|
|
3017
3536
|
upToDate: 'Deployed build is up to date.',
|
|
3018
3537
|
notUpToDate: `Your project contains undeployed local changes.`,
|
|
3538
|
+
changedFiles: (changed) => {
|
|
3539
|
+
const sections = [];
|
|
3540
|
+
if (changed.added.length > 0) {
|
|
3541
|
+
sections.push(`${chalk.bold('Features Added:')}\n${changed.added.map(f => ` - ${f}`).join('\n')}`);
|
|
3542
|
+
}
|
|
3543
|
+
if (changed.updated.length > 0) {
|
|
3544
|
+
sections.push(`${chalk.bold('Features Modified:')}\n${changed.updated.map(f => ` - ${f}`).join('\n')}`);
|
|
3545
|
+
}
|
|
3546
|
+
if (changed.removed.length > 0) {
|
|
3547
|
+
sections.push(`${chalk.bold('Features Removed:')}\n${changed.removed.map(f => ` - ${f}`).join('\n')}`);
|
|
3548
|
+
}
|
|
3549
|
+
return sections.join('\n\n');
|
|
3550
|
+
},
|
|
3019
3551
|
notUpToDateExplanation: (profile) => `Run ${uiCommandReference(`hs project upload${profile ? ` --profile ${profile}` : ''}`)} to upload these changes to HubSpot, then re-run ${uiCommandReference(`hs project dev${profile ? ` --profile ${profile}` : ''}`)} to continue local development.`,
|
|
3552
|
+
unableToCompare: `Unable to check if local *-hsmeta.json files match the deployed build. Run ${uiCommandReference('hs project upload')} to upload any local changes before continuing.`,
|
|
3020
3553
|
},
|
|
3021
3554
|
createNewProjectForLocalDev: {
|
|
3022
3555
|
projectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in the target account ${uiAccountDescription(accountId)}. This command requires the project to exist in the target account.`,
|
|
@@ -3039,19 +3572,6 @@ export const lib = {
|
|
|
3039
3572
|
},
|
|
3040
3573
|
},
|
|
3041
3574
|
account: {
|
|
3042
|
-
checkIfDefaultAccountIsSupported: {
|
|
3043
|
-
publicApp: `This project contains a public app. Local development of public apps is only supported on developer accounts and developer test accounts. Change your default account using ${uiCommandReference('hs account use')}, or link a new account with ${uiAuthCommandReference()}.`,
|
|
3044
|
-
privateApp: `This project contains a private app. Local development of private apps is not supported in developer accounts. Change your default account using ${uiCommandReference('hs account use')}, or link a new account with ${uiAuthCommandReference()}.`,
|
|
3045
|
-
},
|
|
3046
|
-
validateAccountOption: {
|
|
3047
|
-
invalidPublicAppAccount: `This project contains a public app. The "--account" flag must point to a developer test account to develop this project locally. Alternatively, change your default account to an app developer account using ${uiCommandReference('hs account use')} and run ${uiCommandReference('hs project dev')} to set up a new developer test account.`,
|
|
3048
|
-
invalidPrivateAppAccount: `This project contains a private app. The account specified with the "--account" flag points to a developer account, which do not support the local development of private apps. Update the "--account" flag to point to a standard, sandbox, or developer test account, or change your default account by running ${uiCommandReference('hs account use')}.`,
|
|
3049
|
-
nonSandboxWarning: `Testing in a sandbox is strongly recommended. To switch the target account, select an option below or run ${uiCommandReference('hs account use')} before running the command again.`,
|
|
3050
|
-
publicAppNonDeveloperTestAccountWarning: `Local development of public apps is only supported in ${chalk.bold('developer test accounts')}.`,
|
|
3051
|
-
},
|
|
3052
|
-
checkIfParentAccountIsAuthed: {
|
|
3053
|
-
notAuthedError: (parentAccountId, accountIdentifier) => `To develop this project locally, run ${uiAuthCommandReference({ accountId: parentAccountId })} to authenticate the App Developer Account ${parentAccountId} associated with ${accountIdentifier}.`,
|
|
3054
|
-
},
|
|
3055
3575
|
selectAccountTypePrompt: {
|
|
3056
3576
|
message: 'Choose the type of account to test on',
|
|
3057
3577
|
developerTestAccountOption: 'Test on a developer test account (recommended)',
|
|
@@ -3059,10 +3579,7 @@ export const lib = {
|
|
|
3059
3579
|
sandboxAccountOptionDisabled: 'Disabled - requires access to sandbox accounts',
|
|
3060
3580
|
productionAccountOption: (accountId) => `<${chalk.red('!')} Test on your project account: ${uiAccountDescription(accountId, false)} ${chalk.red('!')}>`,
|
|
3061
3581
|
},
|
|
3062
|
-
|
|
3063
|
-
configError: `An error occurred while reading the default account from your config. Run ${uiAuthCommandReference()} to re-auth this account`,
|
|
3064
|
-
declineDefaultAccountExplanation: `To develop on a different account, run ${uiCommandReference('hs account use')} to change your default account, then re-run ${uiCommandReference('hs project dev')}.`,
|
|
3065
|
-
},
|
|
3582
|
+
declineDefaultAccountExplanation: `To develop on a different account, run ${uiCommandReference('hs account use')} to change your default account, then re-run ${uiCommandReference('hs project dev')}.`,
|
|
3066
3583
|
},
|
|
3067
3584
|
},
|
|
3068
3585
|
middleware: {
|
|
@@ -3085,14 +3602,8 @@ export const lib = {
|
|
|
3085
3602
|
profileTargetAccount: (accountId) => `Targeting ${uiAccountDescription(accountId)}`,
|
|
3086
3603
|
profileVariables: 'Profile variables',
|
|
3087
3604
|
},
|
|
3088
|
-
exitIfUsingProfiles: {
|
|
3089
|
-
errors: {
|
|
3090
|
-
noProfileSpecified: `This project is configured to use profiles, but no profile was specified. Target a profile using the ${uiCommandReference('--profile')} flag.`,
|
|
3091
|
-
},
|
|
3092
|
-
},
|
|
3093
3605
|
loadProfile: {
|
|
3094
3606
|
errors: {
|
|
3095
|
-
noProjectConfig: 'No project config found. Please run this command from a project directory.',
|
|
3096
3607
|
profileNotFound: (profileName) => `Profile ${chalk.bold(profileName)} not found.`,
|
|
3097
3608
|
missingAccountId: (profileName) => `Profile ${chalk.bold(profileName)} is missing an account id.`,
|
|
3098
3609
|
listedAccountNotFound: (accountId, profileName) => `The account ${uiAccountDescription(accountId)} is defined in your profile ${chalk.bold(profileName)}, but is missing in your config file`,
|
|
@@ -3134,12 +3645,6 @@ export const lib = {
|
|
|
3134
3645
|
},
|
|
3135
3646
|
validateProjectConfig: {
|
|
3136
3647
|
configNotFound: `Unable to locate a project configuration file. Try running again from a project directory, or run ${uiCommandReference('hs project create')} to create a new project.`,
|
|
3137
|
-
configMissingFields: (missingFields) => `The project configuration file is missing required field${missingFields.length > 1 ? 's' : ''}: ${missingFields.map(f => chalk.bold(f)).join(', ')}`,
|
|
3138
|
-
srcDirNotFound: (srcDir, projectDir) => `Project source directory ${chalk.bold(srcDir)} could not be found in ${chalk.bold(projectDir)}.`,
|
|
3139
|
-
srcOutsideProjectDir: (projectConfig, srcDir) => `Invalid value for 'srcDir' in ${projectConfig}: ${chalk.bold(`srcDir: "${srcDir}"`)}\n\t'srcDir' must be a relative path to a folder under the project root, such as "." or "./src"`,
|
|
3140
|
-
},
|
|
3141
|
-
getProjectConfig: {
|
|
3142
|
-
error: 'Could not read from project config',
|
|
3143
3648
|
},
|
|
3144
3649
|
platformVersion: {
|
|
3145
3650
|
unsupported: (currentCliVersion, latestSupported, platformVersion) => `Platform version${platformVersion ? ' ' + chalk.bold(platformVersion) : ''} is not officially supported by this version of the CLI (${chalk.bold(currentCliVersion)}).\n\nUpdate your CLI to the latest version with ${uiCommandReference('hs upgrade')} or use a compatible platform version (${chalk.bold(latestSupported)} or earlier).`,
|
|
@@ -3157,6 +3662,11 @@ export const lib = {
|
|
|
3157
3662
|
feedbackHeader: "We'd love to hear your feedback!",
|
|
3158
3663
|
feedbackMessage: `How are you liking the new projects and developer tools? \n > Run ${uiCommandReference('hs feedback')} to let us know what you think!\n`,
|
|
3159
3664
|
},
|
|
3665
|
+
skippedHsMetaFiles: {
|
|
3666
|
+
warning: (files) => `The following *-hsmeta.json files will be skipped.\nThis CLI version doesn't support the features they require:\n${files.map(f => ` ${chalk.bold(f)}`).join('\n')}\nRun ${uiCommandReference('hs upgrade')} to update the CLI, which may add support for these features.`,
|
|
3667
|
+
uploadWarning: (files) => `The following *-hsmeta.json files will be skipped during upload.\nThis CLI version doesn't support the features they require:\n${files.map(f => ` ${chalk.bold(f)}`).join('\n')}\nRun ${uiCommandReference('hs upgrade')} to update the CLI, which may add support for these features.`,
|
|
3668
|
+
prompt: '[--force] Continue anyway?',
|
|
3669
|
+
},
|
|
3160
3670
|
components: {
|
|
3161
3671
|
unableToGetUidFromHsmeta: 'Unable to get UID from hsmeta',
|
|
3162
3672
|
buildSuccessMessage: {
|
|
@@ -3164,9 +3674,9 @@ export const lib = {
|
|
|
3164
3674
|
docsUrl: 'https://developers.hubspot.com/docs/apps/developer-platform/build-apps/overview',
|
|
3165
3675
|
headerCreated: (projectName, projectDest) => `${chalk.bold(projectName)} was successfully created in ${projectDest}`,
|
|
3166
3676
|
headerAdded: (featureText, uid, plural) => `${featureText} ${plural ? 'were' : 'was'} successfully added to ${uid}:`,
|
|
3167
|
-
docsDetails: (docsLink) =>
|
|
3168
|
-
uploadPrompt:
|
|
3169
|
-
devPrompt:
|
|
3677
|
+
docsDetails: (docsLink) => `${docsLink} for more details about building and testing these features.`,
|
|
3678
|
+
uploadPrompt: `Run ${uiCommandReference('hs project upload')} when you're ready to deploy.`,
|
|
3679
|
+
devPrompt: `Run ${uiCommandReference('hs project dev')} to start local development.`,
|
|
3170
3680
|
},
|
|
3171
3681
|
},
|
|
3172
3682
|
},
|
|
@@ -3202,8 +3712,33 @@ export const lib = {
|
|
|
3202
3712
|
fileFiltered: (filename) => `Ignore rule triggered for "${filename}"`,
|
|
3203
3713
|
legacyFileDetected: (filename, platformVersion) => `The ${chalk.bold(filename)} file is not supported on platform version ${chalk.bold(platformVersion)} and will be ignored.`,
|
|
3204
3714
|
projectDoesNotExist: (accountId) => `Upload cancelled. Run ${uiCommandReference('hs project upload')} again to create the project in ${uiAccountDescription(accountId)}.`,
|
|
3715
|
+
workspaceIncluded: (workspaceDir, archivePath) => `Including workspace: ${workspaceDir} → ${archivePath}`,
|
|
3716
|
+
fileDependencyIncluded: (packageName, localPath, archivePath) => `Including file: dependency ${packageName}: ${localPath} → ${archivePath}`,
|
|
3717
|
+
malformedPackageJson: (packageJsonPath, error) => `Skipping malformed package.json at ${packageJsonPath}: ${error}`,
|
|
3718
|
+
workspaceCollision: (archivePath, workspaceDir, existingWorkspace) => `Workspace collision: ${archivePath} from ${workspaceDir} and ${existingWorkspace}`,
|
|
3719
|
+
fileDependencyAlreadyIncluded: (packageName, archivePath) => `file: dependency ${packageName} already included as workspace: ${archivePath}`,
|
|
3720
|
+
updatingLockfile: (lockfilePath) => `Updating package-lock.json in archive: ${lockfilePath}`,
|
|
3721
|
+
updatingPackageJsonWorkspaces: (packageJsonPath) => `Updating package.json workspaces in archive: ${packageJsonPath}`,
|
|
3722
|
+
updatedWorkspaces: (workspaces) => ` Updated workspaces: ${workspaces}`,
|
|
3723
|
+
updatedFileDependency: (packageName, relativePath) => ` Updated dependencies.${packageName}: file:${relativePath}`,
|
|
3724
|
+
lintPackagesNotConfigured: (packageRoot) => `Project lint: lint packages not installed for ${chalk.bold(packageRoot)}. Run ${uiCommandReference('hs project lint')} to install them.`,
|
|
3725
|
+
lintConfigNotFound: (packageRoot) => `Project lint: ESLint configuration not found for ${chalk.bold(packageRoot)}. Run ${uiCommandReference('hs project lint')} to create an ESLint config.`,
|
|
3726
|
+
lintHubSpotRulesNotActive: (packageRoot) => `Project lint: HubSpot ESLint rules not active for ${chalk.bold(packageRoot)}. Configure ${chalk.bold('@hubspot/eslint-config-ui-extensions')} — see ${uiLink('setup instructions', 'https://www.npmjs.com/package/@hubspot/eslint-config-ui-extensions')}.`,
|
|
3727
|
+
npmAuditClean: (packageRoot) => `npm audit: No npm dependency issues found for ${chalk.bold(packageRoot)}`,
|
|
3728
|
+
npmAuditIssues: (packageRoot, details) => `npm audit: security issues found for ${chalk.bold(packageRoot)}: ${details}`,
|
|
3729
|
+
npmAuditNpmUnavailable: (packageRoot) => `npm audit: skipped for ${chalk.bold(packageRoot)} (npm not available in PATH)`,
|
|
3730
|
+
npmAuditNonZeroExit: (packageRoot, exitCode) => `npm audit: ${chalk.bold(packageRoot)} exited with code ${exitCode}`,
|
|
3205
3731
|
},
|
|
3206
3732
|
},
|
|
3733
|
+
projectPreview: {
|
|
3734
|
+
triggeringPreview: (buildId, targetPortalId) => `Previewing build #${buildId} on ${uiAccountDescription(targetPortalId)}`,
|
|
3735
|
+
pollingStatus: (releaseTag, targetPortalId) => `Previewing ${chalk.bold(releaseTag)} on ${uiAccountDescription(targetPortalId)}`,
|
|
3736
|
+
succeeded: (releaseTag, targetPortalId) => `Previewed ${chalk.bold(releaseTag)} on ${uiAccountDescription(targetPortalId)}`,
|
|
3737
|
+
triggerFailed: 'Failed to trigger preview',
|
|
3738
|
+
pollFailed: 'Failed to poll preview status',
|
|
3739
|
+
warning: 'The build succeeded but the preview failed. You can manually preview this build from the project UI.',
|
|
3740
|
+
missingProjectId: 'Unable to preview: could not resolve the project ID.',
|
|
3741
|
+
},
|
|
3207
3742
|
importData: {
|
|
3208
3743
|
errors: {
|
|
3209
3744
|
incorrectAccountType: (derivedAccountId) => `The account ${uiAccountDescription(derivedAccountId)} is not a standard account, developer test account, or app developer account.`,
|
|
@@ -3312,6 +3847,9 @@ export const lib = {
|
|
|
3312
3847
|
pakFailure: 'Failed to generate personal access key for developer test account',
|
|
3313
3848
|
},
|
|
3314
3849
|
},
|
|
3850
|
+
usageTracking: {
|
|
3851
|
+
transparencyMessage: `HubSpot CLI collects anonymous usage data to improve the product. Run ${uiCommandReference('hs config set --enable-usage-tracking=false', false)} to opt out.\n`,
|
|
3852
|
+
},
|
|
3315
3853
|
configOptions: {
|
|
3316
3854
|
enableOrDisableBooleanFieldPrompt: {
|
|
3317
3855
|
message: (fieldName) => `Choose to enable or disable ${fieldName}`,
|
|
@@ -3357,7 +3895,9 @@ export const lib = {
|
|
|
3357
3895
|
qa: 'Run command in QA mode',
|
|
3358
3896
|
useEnv: 'Use environment variable config',
|
|
3359
3897
|
jsonOutput: 'Format output as JSON',
|
|
3898
|
+
jsonSchema: 'Print the JSON output schema and exit',
|
|
3360
3899
|
debug: 'Set log level to debug',
|
|
3900
|
+
color: 'Enable colored output (use --no-color to disable)',
|
|
3361
3901
|
},
|
|
3362
3902
|
},
|
|
3363
3903
|
configMigrate: {
|
|
@@ -3400,8 +3940,14 @@ export const lib = {
|
|
|
3400
3940
|
promptUtils: {
|
|
3401
3941
|
errors: {
|
|
3402
3942
|
noSelectableChoices: 'Exiting prompt because no selectable choices are available',
|
|
3943
|
+
userCancelled: 'User cancelled prompt',
|
|
3403
3944
|
},
|
|
3404
3945
|
},
|
|
3946
|
+
projectProfilePrompt: {
|
|
3947
|
+
message: '[--profile] This project is configured to use profiles. Select a profile to use:',
|
|
3948
|
+
exitMessage: `This project is configured to use profiles, but no profile was specified. Try again using ${uiCommandReference('--profile')}`,
|
|
3949
|
+
noValidProfilesMessage: 'There are no valid profiles in this project. Ensure the accounts they are targeting are authenticated and try again.',
|
|
3950
|
+
},
|
|
3405
3951
|
importDataFilePathPrompt: {
|
|
3406
3952
|
promptContext: `To view the JSON schema for data imports, visit ${uiLink('the docs', 'https://developers.hubspot.com/docs/guides/api/crm/imports')}`,
|
|
3407
3953
|
promptMessage: '[--file-path] Select the JSON file that will be used to import your data.',
|
|
@@ -3425,13 +3971,15 @@ export const lib = {
|
|
|
3425
3971
|
developerTestAccountLimit: (limit) => `Your account reached the limit of ${limit} developer test accounts.`,
|
|
3426
3972
|
confirmDefaultAccount: (accountName, accountType) => `Continue testing on ${chalk.bold(`${accountName} (${accountType})`)}? (Y/n)`,
|
|
3427
3973
|
confirmUseExistingDeveloperTestAccount: (accountName) => `Continue with ${accountName}? This account isn't currently connected to the HubSpot CLI. By continuing, you'll be prompted to generate a personal access key and connect it.`,
|
|
3974
|
+
confirmLinkExistingDeveloperTestAccount: (accountName) => `${accountName} is not linked to this directory. Would you like to link it?`,
|
|
3428
3975
|
noAccountId: 'No account ID found for the selected account. Please try again.',
|
|
3976
|
+
fetchDeveloperTestAccountsError: 'Unable to fetch developer test accounts. Please try again.',
|
|
3429
3977
|
},
|
|
3430
3978
|
projectLogsPrompt: {
|
|
3431
3979
|
functionName: (projectName) => `[--function] Select function in ${chalk.bold(projectName)} project`,
|
|
3432
3980
|
},
|
|
3433
3981
|
setAsDefaultAccountPrompt: {
|
|
3434
|
-
setAsDefaultAccountMessage:
|
|
3982
|
+
setAsDefaultAccountMessage: (accountName) => `Set ${accountName} as your default account? [--default]`,
|
|
3435
3983
|
setAsDefaultAccount: (accountName) => `Account "${accountName}" set as the default account`,
|
|
3436
3984
|
keepingCurrentDefault: (accountName) => `Account "${accountName}" will continue to be the default account`,
|
|
3437
3985
|
},
|
|
@@ -3830,6 +4378,11 @@ export const lib = {
|
|
|
3830
4378
|
installed: (npmVersion) => `npm v${npmVersion} is installed`,
|
|
3831
4379
|
unableToDetermine: 'Unable to determine if npm is installed',
|
|
3832
4380
|
},
|
|
4381
|
+
mcpChecks: {
|
|
4382
|
+
configured: (clients) => `HubSpot MCP server configured in ${clients.join(', ')}`,
|
|
4383
|
+
notConfigured: (clients) => `HubSpot MCP server not configured in ${clients.join(', ')}`,
|
|
4384
|
+
notConfiguredSecondary: `Run ${uiCommandReference('hs mcp setup')} to connect AI coding tools to HubSpot developer context`,
|
|
4385
|
+
},
|
|
3833
4386
|
hsChecks: {
|
|
3834
4387
|
notLatest: (hsVersion) => `Version ${hsVersion} outdated`,
|
|
3835
4388
|
notLatestSecondary: (command, hsVersion) => `Run ${uiCommandReference(command)} to upgrade to the latest version ${hsVersion}`,
|
|
@@ -3848,9 +4401,9 @@ export const lib = {
|
|
|
3848
4401
|
validJson: 'JSON files valid',
|
|
3849
4402
|
},
|
|
3850
4403
|
port: {
|
|
3851
|
-
inUse: (port) => `
|
|
3852
|
-
inUseSecondary: `Make sure it is available before running ${uiCommandReference('hs project dev')}`,
|
|
3853
|
-
available: (port) => `
|
|
4404
|
+
inUse: (port) => `Default port ${port} is in use`,
|
|
4405
|
+
inUseSecondary: `Make sure it is available before running ${uiCommandReference('hs project dev')}, or use ${uiCommandReference('--port')} to specify a different port`,
|
|
4406
|
+
available: (port) => `Default port ${port} available for local development`,
|
|
3854
4407
|
},
|
|
3855
4408
|
projectValidation: {
|
|
3856
4409
|
valid: 'Project configuration and structure is valid',
|
|
@@ -3941,6 +4494,7 @@ export const lib = {
|
|
|
3941
4494
|
migrate: {
|
|
3942
4495
|
componentsToBeMigrated: (components) => `${chalk.bold('The following features will be migrated:')} ${components}`,
|
|
3943
4496
|
componentsThatWillNotBeMigrated: (components) => `[NOTE] These features are not yet supported for migration but will be available later: ${components}`,
|
|
4497
|
+
legacyCrmCardMigrationDocs: () => `For more information on migrating legacy-crm-card components, follow ${uiLink('these docs', 'https://developers.hubspot.com/docs/apps/developer-platform/build-apps/migrate-an-app/migrate-legacy-crm-cards-to-app-cards')}`,
|
|
3944
4498
|
sourceContentsMoved: (newLocation) => `The contents of your old source directory have been moved to ${newLocation}, move any required files to the new source directory.`,
|
|
3945
4499
|
projectMigrationWarningTitle: (platformVersion) => `Important: Migrating to platformVersion ${platformVersion} is irreversible`,
|
|
3946
4500
|
projectMigrationWarning: (platformVersion) => uiBetaTag(`Running the ${uiCommandReference('hs project migrate')} command will permanently upgrade your project to platformVersion ${platformVersion}. This action cannot be undone. To ensure you have access to your original files, they will be copied to a new directory (archive) for safekeeping.\n\nThis command will guide you through the process, prompting you to enter the required fields and will download the new project source code into your project source directory.`, false),
|
|
@@ -3955,7 +4509,7 @@ export const lib = {
|
|
|
3955
4509
|
doesNotExist: (account) => `Project does not exist in ${uiAccountDescription(account)}. Migrations are only supported for existing projects.`,
|
|
3956
4510
|
themesAlreadyMigrated: 'This project has already been migrated to the latest platform version.',
|
|
3957
4511
|
noProjectForThemesMigration: 'Theme migrations are only supported for projects. Please try again from a project directory.',
|
|
3958
|
-
themesAndAppsNotAllowed: '
|
|
4512
|
+
themesAndAppsNotAllowed: 'Projects containing both themes and apps cannot be migrated together. To migrate, split the project into separate theme-only and app-only projects, then run migrate on each individually.',
|
|
3959
4513
|
multipleApps: 'Multiple apps found in project, this is not allowed in 2025.2',
|
|
3960
4514
|
alreadyExists: (projectName) => `A project with name ${projectName} already exists. Please choose another name.`,
|
|
3961
4515
|
failedToMigrateThemes: 'Failed to migrate project themes. Please verify that your themes are properly formatted before trying again.',
|
|
@@ -4000,6 +4554,13 @@ export const lib = {
|
|
|
4000
4554
|
copyingProjectFilesFailed: 'Unable to copy migrated project files',
|
|
4001
4555
|
},
|
|
4002
4556
|
},
|
|
4557
|
+
cms: {
|
|
4558
|
+
serverlessDevRuntime: {
|
|
4559
|
+
installStarted: (targetVersion) => `Installing serverless-dev-runtime ${targetVersion}...`,
|
|
4560
|
+
installSucceeded: 'serverless-dev-runtime setup complete',
|
|
4561
|
+
installFailed: 'Failed to install serverless-dev-runtime',
|
|
4562
|
+
},
|
|
4563
|
+
},
|
|
4003
4564
|
theme: {
|
|
4004
4565
|
cmsDevServerProcess: {
|
|
4005
4566
|
installStarted: (targetVersion) => `Installing cms-dev-server ${targetVersion}...`,
|