@hubspot/cli 8.3.1-experimental.0 → 8.3.1-experimental.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/feedback.d.ts +10 -0
- package/api/feedback.js +9 -0
- package/bin/cli.js +19 -1
- package/commands/account/auth.js +2 -2
- package/commands/account/createOverride.js +2 -0
- package/commands/account/removeOverride.js +2 -0
- package/commands/app/secret/add.js +1 -1
- package/commands/app/secret/delete.js +1 -1
- package/commands/app/secret/list.js +1 -1
- package/commands/app/secret/update.js +1 -1
- package/commands/app/secret.js +1 -1
- package/commands/auth.js +3 -2
- package/commands/cms/function/create.js +5 -37
- package/commands/cms/function/deploy.js +8 -1
- package/commands/cms/function/list.js +4 -0
- package/commands/cms/function/logs.js +2 -0
- package/commands/cms/function/server.js +6 -0
- package/commands/cms/lighthouseScore.js +1 -1
- package/commands/cms/upload.js +6 -0
- package/commands/cms/watch.js +2 -0
- package/commands/cms/webpack/create.js +5 -32
- package/commands/customObject.js +2 -2
- package/commands/feedback.d.ts +6 -2
- package/commands/feedback.js +82 -8
- package/commands/getStarted.js +4 -4
- package/commands/hubdb/list.js +2 -2
- package/commands/init.js +3 -2
- package/commands/mcp/setup.d.ts +1 -0
- package/commands/mcp/setup.js +11 -3
- package/commands/project/dev/index.js +2 -2
- package/commands/project/download.d.ts +2 -0
- package/commands/project/download.js +56 -16
- package/commands/project/logs.js +2 -2
- package/commands/project/upload.js +6 -2
- package/commands/project/watch.js +2 -2
- package/commands/sandbox/create.js +3 -3
- package/commands/sandbox/delete.js +1 -1
- package/commands/sandbox.js +1 -1
- package/lang/en.d.ts +111 -6
- package/lang/en.js +275 -51
- package/lib/accountAuth.js +12 -0
- package/lib/accountCredentials.d.ts +1 -0
- package/lib/accountCredentials.js +25 -0
- package/lib/agentHelp.d.ts +17 -0
- package/lib/agentHelp.js +90 -0
- package/lib/app/logSystemTypes.d.ts +4 -0
- package/lib/app/logSystemTypes.js +17 -0
- package/lib/app/logs.d.ts +2 -4
- package/lib/app/logs.js +2 -17
- package/lib/app/migrate.js +5 -8
- package/lib/commonOpts.js +4 -0
- package/lib/constants.d.ts +4 -0
- package/lib/constants.js +6 -0
- package/lib/crossPlatformSpawn/escape.d.ts +2 -0
- package/lib/crossPlatformSpawn/escape.js +38 -0
- package/lib/crossPlatformSpawn/index.d.ts +7 -0
- package/lib/crossPlatformSpawn/index.js +43 -0
- package/lib/crossPlatformSpawn/resolveCommand.d.ts +1 -0
- package/lib/crossPlatformSpawn/resolveCommand.js +69 -0
- package/lib/errorHandlers/suppressError.js +3 -3
- package/lib/feedback.d.ts +3 -0
- package/lib/feedback.js +13 -0
- package/lib/jsonOutput/projectDownload.d.ts +1 -0
- package/lib/jsonOutput/projectDownload.js +1 -0
- package/lib/jsonOutput/projectUpload.d.ts +1 -0
- package/lib/jsonOutput/projectUpload.js +1 -0
- package/lib/mcp/clients.d.ts +2 -1
- package/lib/mcp/clients.js +7 -7
- package/lib/mcp/setup.d.ts +7 -2
- package/lib/mcp/setup.js +22 -37
- package/lib/mcp/skills.d.ts +8 -0
- package/lib/mcp/skills.js +64 -0
- package/lib/projects/archive.d.ts +8 -0
- package/lib/projects/archive.js +104 -0
- package/lib/projects/archiveDiff.d.ts +12 -0
- package/lib/projects/archiveDiff.js +68 -0
- package/lib/projects/config.js +1 -1
- package/lib/projects/download.d.ts +37 -0
- package/lib/projects/download.js +123 -0
- package/lib/projects/localDev/AppDevModeInterface.js +3 -3
- package/lib/projects/localDev/LocalDevLogger.js +5 -5
- package/lib/projects/localDev/LocalDevWatcher.js +2 -1
- package/lib/projects/localDev/helpers/project.js +3 -3
- package/lib/projects/pollProjectBuildAndDeploy.js +4 -4
- package/lib/projects/projectInfo.js +4 -4
- package/lib/projects/projectProfiles.js +3 -3
- package/lib/projects/ui.js +3 -3
- package/lib/projects/upload.d.ts +3 -1
- package/lib/projects/upload.js +23 -6
- package/lib/projects/watch.js +4 -2
- package/lib/projects/workspaces.js +4 -4
- package/lib/prompts/importDataTestAccountSelectPrompt.js +1 -1
- package/lib/prompts/personalAccessKeyPrompt.js +2 -2
- package/lib/prompts/selectPublicAppForMigrationPrompt.js +3 -3
- package/lib/serverlessSunset.d.ts +6 -0
- package/lib/serverlessSunset.js +32 -0
- package/lib/testUtils.d.ts +5 -1
- package/lib/testUtils.js +2 -2
- package/lib/ui/appLogs.js +4 -4
- package/lib/ui/formatting.d.ts +13 -0
- package/lib/ui/formatting.js +39 -0
- package/lib/ui/git.js +3 -3
- package/lib/ui/index.d.ts +9 -23
- package/lib/ui/index.js +36 -69
- package/lib/ui/uiMessages.js +1 -1
- package/lib/validation.js +16 -1
- package/lib/yargs/makeWrappedYargsHandler.d.ts +1 -0
- package/lib/yargs/makeWrappedYargsHandler.js +7 -0
- package/mcp-server/Tool.d.ts +1 -0
- package/mcp-server/Tool.js +4 -1
- package/mcp-server/server.js +16 -5
- package/mcp-server/skills/hubspot-fix-build/SKILL.md +61 -0
- package/mcp-server/skills/hubspot-new-app/SKILL.md +84 -0
- package/mcp-server/tools/cms/HsFunctionLogsTool.js +2 -2
- package/mcp-server/tools/cms/HsListFunctionsTool.js +1 -1
- package/mcp-server/tools/cms/HsListTool.js +4 -1
- package/mcp-server/tools/index.js +2 -2
- package/mcp-server/tools/project/DocFetchTool.d.ts +4 -1
- package/mcp-server/tools/project/DocFetchTool.js +53 -12
- package/mcp-server/tools/project/DocsSearchTool.js +2 -7
- package/mcp-server/tools/project/FindProjectsTool.js +4 -1
- package/mcp-server/tools/project/GetApiUsagePatternsByAppIdTool.js +2 -7
- package/mcp-server/tools/project/GetApplicationInfoTool.js +2 -7
- package/mcp-server/tools/project/GetBuildLogsTool.d.ts +1 -1
- package/mcp-server/tools/project/GetBuildLogsTool.js +2 -12
- package/mcp-server/tools/project/GetBuildStatusTool.js +2 -12
- package/mcp-server/tools/project/KnowledgeSearchTool.js +2 -5
- package/mcp-server/tools/project/SubmitFeedbackTool.d.ts +25 -0
- package/mcp-server/tools/project/SubmitFeedbackTool.js +73 -0
- package/mcp-server/utils/command.js +16 -5
- package/mcp-server/utils/errors.d.ts +1 -0
- package/mcp-server/utils/errors.js +9 -0
- package/mcp-server/utils/feedbackTracking.js +3 -1
- package/package.json +12 -14
- package/mcp-server/tools/cms/HsCreateFunctionTool.d.ts +0 -26
- package/mcp-server/tools/cms/HsCreateFunctionTool.js +0 -100
package/lib/mcp/clients.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export const MCP_SERVER_NAME = 'HubSpotDev';
|
|
2
|
+
const SHARED_SKILLS_PATH_SEGMENTS = ['.agents', 'skills'];
|
|
2
3
|
function getVsCodeMcpConfigPathSegments() {
|
|
3
4
|
if (process.platform === 'darwin') {
|
|
4
5
|
return ['Library', 'Application Support', 'Code', 'User', 'mcp.json'];
|
|
@@ -15,21 +16,17 @@ export const MCP_CLIENTS = [
|
|
|
15
16
|
type: 'text',
|
|
16
17
|
pathSegments: ['.codex', 'config.toml'],
|
|
17
18
|
},
|
|
19
|
+
skillsPathSegments: SHARED_SKILLS_PATH_SEGMENTS,
|
|
18
20
|
},
|
|
19
21
|
{
|
|
20
22
|
id: 'claude',
|
|
21
23
|
detection: { type: 'json', pathSegments: ['.claude.json'] },
|
|
24
|
+
skillsPathSegments: ['.claude', 'skills'],
|
|
22
25
|
},
|
|
23
26
|
{
|
|
24
27
|
id: 'cursor',
|
|
25
28
|
detection: { type: 'json', pathSegments: ['.cursor', 'mcp.json'] },
|
|
26
|
-
|
|
27
|
-
{
|
|
28
|
-
id: 'gemini',
|
|
29
|
-
detection: {
|
|
30
|
-
type: 'json',
|
|
31
|
-
pathSegments: ['.gemini', 'settings.json'],
|
|
32
|
-
},
|
|
29
|
+
skillsPathSegments: SHARED_SKILLS_PATH_SEGMENTS,
|
|
33
30
|
},
|
|
34
31
|
{
|
|
35
32
|
id: 'vscode',
|
|
@@ -37,6 +34,7 @@ export const MCP_CLIENTS = [
|
|
|
37
34
|
type: 'json',
|
|
38
35
|
pathSegments: getVsCodeMcpConfigPathSegments(),
|
|
39
36
|
},
|
|
37
|
+
skillsPathSegments: SHARED_SKILLS_PATH_SEGMENTS,
|
|
40
38
|
},
|
|
41
39
|
{
|
|
42
40
|
id: 'devin',
|
|
@@ -44,6 +42,7 @@ export const MCP_CLIENTS = [
|
|
|
44
42
|
type: 'json',
|
|
45
43
|
pathSegments: ['.codeium', 'windsurf', 'mcp_config.json'],
|
|
46
44
|
},
|
|
45
|
+
skillsPathSegments: SHARED_SKILLS_PATH_SEGMENTS,
|
|
47
46
|
},
|
|
48
47
|
{
|
|
49
48
|
id: 'opencode',
|
|
@@ -51,6 +50,7 @@ export const MCP_CLIENTS = [
|
|
|
51
50
|
type: 'json',
|
|
52
51
|
pathSegments: ['.config', 'opencode', 'config.json'],
|
|
53
52
|
},
|
|
53
|
+
skillsPathSegments: SHARED_SKILLS_PATH_SEGMENTS,
|
|
54
54
|
},
|
|
55
55
|
];
|
|
56
56
|
export function getMcpClientPathSegments(id) {
|
package/lib/mcp/setup.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { McpClientId } from './clients.js';
|
|
1
2
|
export declare const supportedTools: {
|
|
2
3
|
name: string;
|
|
3
4
|
value: string;
|
|
@@ -11,13 +12,17 @@ interface ConfigureMcpServerOptions {
|
|
|
11
12
|
targets?: string[];
|
|
12
13
|
standalone?: boolean;
|
|
13
14
|
cliVersion?: string;
|
|
15
|
+
skills?: string[];
|
|
14
16
|
}
|
|
15
|
-
|
|
17
|
+
interface ConfigureMcpServerResult {
|
|
18
|
+
configuredTargets: McpClientId[];
|
|
19
|
+
selectedSkills: string[];
|
|
20
|
+
}
|
|
21
|
+
export declare function configureMcpServer(options: ConfigureMcpServerOptions): Promise<ConfigureMcpServerResult>;
|
|
16
22
|
export declare function setupVsCode(mcpCommand?: McpCommand): Promise<boolean>;
|
|
17
23
|
export declare function setupClaudeCode(mcpCommand?: McpCommand): Promise<boolean>;
|
|
18
24
|
export declare function setupCursor(mcpCommand?: McpCommand): boolean;
|
|
19
25
|
export declare function setupDevin(mcpCommand?: McpCommand): boolean;
|
|
20
26
|
export declare function setupCodex(mcpCommand?: McpCommand): Promise<boolean>;
|
|
21
|
-
export declare function setupGemini(mcpCommand?: McpCommand): Promise<boolean>;
|
|
22
27
|
export declare function setupOpenCode(mcpCommand?: McpCommand): Promise<boolean>;
|
|
23
28
|
export {};
|
package/lib/mcp/setup.js
CHANGED
|
@@ -5,6 +5,7 @@ import SpinniesManager from '../ui/SpinniesManager.js';
|
|
|
5
5
|
import { logError, getErrorMessage } from '../errorHandlers/index.js';
|
|
6
6
|
import { execAsync } from '../../mcp-server/utils/command.js';
|
|
7
7
|
import { MCP_CLIENTS, MCP_SERVER_NAME, getMcpClientPathSegments, } from './clients.js';
|
|
8
|
+
import { MCP_SKILLS, SKILLS_SOURCE_DIR, installSkills } from './skills.js';
|
|
8
9
|
import path from 'path';
|
|
9
10
|
import os from 'os';
|
|
10
11
|
import fs from 'fs-extra';
|
|
@@ -16,7 +17,6 @@ const cursor = 'cursor';
|
|
|
16
17
|
const devin = 'devin';
|
|
17
18
|
const vscode = 'vscode';
|
|
18
19
|
const codex = 'codex';
|
|
19
|
-
const gemini = 'gemini';
|
|
20
20
|
const opencode = 'opencode';
|
|
21
21
|
const OTHER_TOOL = 'other';
|
|
22
22
|
const MINIMUM_VSCODE_VERSION = '1.99.0';
|
|
@@ -25,7 +25,6 @@ const clientLabels = {
|
|
|
25
25
|
claude: commands.mcp.setup.claudeCode,
|
|
26
26
|
cursor: commands.mcp.setup.cursor,
|
|
27
27
|
devin: commands.mcp.setup.devin,
|
|
28
|
-
gemini: commands.mcp.setup.gemini,
|
|
29
28
|
opencode: commands.mcp.setup.opencode,
|
|
30
29
|
vscode: commands.mcp.setup.vsCode,
|
|
31
30
|
};
|
|
@@ -42,7 +41,7 @@ const defaultMcpCommand = {
|
|
|
42
41
|
};
|
|
43
42
|
export async function configureMcpServer(options) {
|
|
44
43
|
try {
|
|
45
|
-
const { targets, standalone, cliVersion: cliVersionFlag } = options;
|
|
44
|
+
const { targets, standalone, cliVersion: cliVersionFlag, skills } = options;
|
|
46
45
|
let derivedTargets = [];
|
|
47
46
|
if (!targets || targets.length === 0) {
|
|
48
47
|
const { selectedTargets } = await promptUser({
|
|
@@ -90,6 +89,20 @@ export async function configureMcpServer(options) {
|
|
|
90
89
|
cliVersion = response.cliVersion;
|
|
91
90
|
}
|
|
92
91
|
}
|
|
92
|
+
const configuredTargets = derivedTargets.filter((target) => target !== OTHER_TOOL);
|
|
93
|
+
let selectedSkills = configuredTargets.length > 0 ? skills : [];
|
|
94
|
+
if (selectedSkills === undefined) {
|
|
95
|
+
const response = await promptUser({
|
|
96
|
+
name: 'selectedSkills',
|
|
97
|
+
type: 'checkbox',
|
|
98
|
+
message: commands.mcp.setup.prompts.selectSkills,
|
|
99
|
+
choices: MCP_SKILLS.map(skill => ({
|
|
100
|
+
name: `${skill.name} - ${skill.description}`,
|
|
101
|
+
value: skill.name,
|
|
102
|
+
})),
|
|
103
|
+
});
|
|
104
|
+
selectedSkills = response.selectedSkills;
|
|
105
|
+
}
|
|
93
106
|
const cliPackage = cliVersion
|
|
94
107
|
? `@hubspot/cli@${cliVersion}`
|
|
95
108
|
: '@hubspot/cli';
|
|
@@ -121,20 +134,19 @@ export async function configureMcpServer(options) {
|
|
|
121
134
|
if (derivedTargets.includes(codex)) {
|
|
122
135
|
await runSetupFunction(() => setupCodex(mcpCommand));
|
|
123
136
|
}
|
|
124
|
-
if (derivedTargets.includes(gemini)) {
|
|
125
|
-
await runSetupFunction(() => setupGemini(mcpCommand));
|
|
126
|
-
}
|
|
127
137
|
if (derivedTargets.includes(opencode)) {
|
|
128
138
|
await runSetupFunction(() => setupOpenCode(mcpCommand));
|
|
129
139
|
}
|
|
140
|
+
if (selectedSkills.length > 0) {
|
|
141
|
+
await runSetupFunction(() => installSkills(configuredTargets, selectedSkills));
|
|
142
|
+
}
|
|
130
143
|
if (derivedTargets.includes(OTHER_TOOL)) {
|
|
131
144
|
logOtherToolInstructions(mcpCommand);
|
|
132
145
|
}
|
|
133
|
-
const configuredTargets = derivedTargets.filter(t => t !== OTHER_TOOL);
|
|
134
146
|
if (configuredTargets.length > 0) {
|
|
135
147
|
uiLogger.info(commands.mcp.setup.success(configuredTargets));
|
|
136
148
|
}
|
|
137
|
-
return configuredTargets;
|
|
149
|
+
return { configuredTargets, selectedSkills };
|
|
138
150
|
}
|
|
139
151
|
catch (error) {
|
|
140
152
|
SpinniesManager.fail('mcpSetup', {
|
|
@@ -339,35 +351,6 @@ export async function setupCodex(mcpCommand = defaultMcpCommand) {
|
|
|
339
351
|
return false;
|
|
340
352
|
}
|
|
341
353
|
}
|
|
342
|
-
export async function setupGemini(mcpCommand = defaultMcpCommand) {
|
|
343
|
-
try {
|
|
344
|
-
SpinniesManager.add('geminiSpinner', {
|
|
345
|
-
text: commands.mcp.setup.spinners.configuringGemini,
|
|
346
|
-
});
|
|
347
|
-
try {
|
|
348
|
-
await execAsync('gemini --version');
|
|
349
|
-
}
|
|
350
|
-
catch (e) {
|
|
351
|
-
SpinniesManager.fail('geminiSpinner', {
|
|
352
|
-
text: commands.mcp.setup.spinners.geminiNotFound,
|
|
353
|
-
});
|
|
354
|
-
return false;
|
|
355
|
-
}
|
|
356
|
-
const mcpCommandWithAgent = buildCommandWithAgentString(mcpCommand, gemini);
|
|
357
|
-
await execAsync(`gemini mcp add -s user${buildEnvFlagString(mcpCommand)} "${mcpServerName}" ${mcpCommandWithAgent.command} ${mcpCommandWithAgent.args.join(' ')}`);
|
|
358
|
-
SpinniesManager.succeed('geminiSpinner', {
|
|
359
|
-
text: commands.mcp.setup.spinners.configuredGemini,
|
|
360
|
-
});
|
|
361
|
-
return true;
|
|
362
|
-
}
|
|
363
|
-
catch (error) {
|
|
364
|
-
SpinniesManager.fail('geminiSpinner', {
|
|
365
|
-
text: commands.mcp.setup.spinners.geminiInstallFailed,
|
|
366
|
-
});
|
|
367
|
-
logError(error);
|
|
368
|
-
return false;
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
354
|
export async function setupOpenCode(mcpCommand = defaultMcpCommand) {
|
|
372
355
|
try {
|
|
373
356
|
SpinniesManager.add('openCodeSpinner', {
|
|
@@ -419,6 +402,8 @@ function logOtherToolInstructions(mcpCommand) {
|
|
|
419
402
|
.join('\n');
|
|
420
403
|
uiLogger.log(indented);
|
|
421
404
|
uiLogger.log('');
|
|
405
|
+
uiLogger.log(otherInstructions.skillsNote(SKILLS_SOURCE_DIR));
|
|
406
|
+
uiLogger.log('');
|
|
422
407
|
}
|
|
423
408
|
function buildCommandWithAgentString(mcpCommand, agent) {
|
|
424
409
|
const mcpCommandCopy = structuredClone(mcpCommand);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { McpClientId } from './clients.js';
|
|
2
|
+
export declare const SKILLS_SOURCE_DIR: string;
|
|
3
|
+
export declare const MCP_SKILLS: {
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const MCP_SKILL_NAMES: string[];
|
|
8
|
+
export declare function installSkills(targets: McpClientId[], skillNames: string[]): boolean;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import os from 'os';
|
|
3
|
+
import fs from 'fs-extra';
|
|
4
|
+
import { fileURLToPath } from 'url';
|
|
5
|
+
import { commands } from '../../lang/en.js';
|
|
6
|
+
import SpinniesManager from '../ui/SpinniesManager.js';
|
|
7
|
+
import { logError } from '../errorHandlers/index.js';
|
|
8
|
+
import { MCP_CLIENTS } from './clients.js';
|
|
9
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
10
|
+
const __dirname = path.dirname(__filename);
|
|
11
|
+
export const SKILLS_SOURCE_DIR = path.join(__dirname, '..', '..', 'mcp-server', 'skills');
|
|
12
|
+
export const MCP_SKILLS = [
|
|
13
|
+
{
|
|
14
|
+
name: 'hubspot-new-app',
|
|
15
|
+
description: commands.mcp.setup.skillDescriptions.newApp,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'hubspot-fix-build',
|
|
19
|
+
description: commands.mcp.setup.skillDescriptions.fixBuild,
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
export const MCP_SKILL_NAMES = MCP_SKILLS.map(skill => skill.name);
|
|
23
|
+
const INSTALLED_SKILL_MARKER = '.installed-by-hubspot-cli';
|
|
24
|
+
function getInstalledSkillNames(targetDir) {
|
|
25
|
+
if (!fs.existsSync(targetDir)) {
|
|
26
|
+
return [];
|
|
27
|
+
}
|
|
28
|
+
return fs
|
|
29
|
+
.readdirSync(targetDir, { withFileTypes: true })
|
|
30
|
+
.filter(entry => entry.isDirectory())
|
|
31
|
+
.map(entry => entry.name)
|
|
32
|
+
.filter(name => fs.existsSync(path.join(targetDir, name, INSTALLED_SKILL_MARKER)));
|
|
33
|
+
}
|
|
34
|
+
function installSkillsInDir(targetDir, skillNames) {
|
|
35
|
+
new Set([...getInstalledSkillNames(targetDir), ...skillNames]).forEach(name => fs.rmSync(path.join(targetDir, name), { recursive: true, force: true }));
|
|
36
|
+
skillNames.forEach(skillName => {
|
|
37
|
+
const destination = path.join(targetDir, skillName);
|
|
38
|
+
fs.copySync(path.join(SKILLS_SOURCE_DIR, skillName), destination);
|
|
39
|
+
fs.writeFileSync(path.join(destination, INSTALLED_SKILL_MARKER), '');
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
export function installSkills(targets, skillNames) {
|
|
43
|
+
const skillsToInstall = MCP_SKILL_NAMES.filter(skillName => skillNames.includes(skillName));
|
|
44
|
+
const targetDirs = [
|
|
45
|
+
...new Set(MCP_CLIENTS.filter(client => targets.includes(client.id)).map(client => path.join(os.homedir(), ...client.skillsPathSegments))),
|
|
46
|
+
];
|
|
47
|
+
SpinniesManager.add('mcpSkills', {
|
|
48
|
+
text: commands.mcp.setup.spinners.installingSkills,
|
|
49
|
+
});
|
|
50
|
+
try {
|
|
51
|
+
targetDirs.forEach(targetDir => installSkillsInDir(targetDir, skillsToInstall));
|
|
52
|
+
SpinniesManager.succeed('mcpSkills', {
|
|
53
|
+
text: commands.mcp.setup.spinners.installedSkills(skillsToInstall, targetDirs),
|
|
54
|
+
});
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
58
|
+
SpinniesManager.fail('mcpSkills', {
|
|
59
|
+
text: commands.mcp.setup.spinners.failedToInstallSkills,
|
|
60
|
+
});
|
|
61
|
+
logError(error);
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const ARCHIVE_DIR_NAME = "archive";
|
|
2
|
+
export declare const ROOT_SRC_DIR = ".";
|
|
3
|
+
export declare function getArchiveDest(projectDir: string, srcDir: string): string;
|
|
4
|
+
export declare function archiveDestExists(archiveDest: string): boolean;
|
|
5
|
+
export declare function archiveProjectSource(projectDir: string, srcDir: string): string;
|
|
6
|
+
export declare function getProjectArchiveDest(projectDir: string): string;
|
|
7
|
+
export declare function moveSourceToProjectArchive(projectDir: string, srcDir: string): string;
|
|
8
|
+
export declare function restoreSourceFromProjectArchive(projectDir: string, srcDir: string): void;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import { lib } from '../../lang/en.js';
|
|
4
|
+
export const ARCHIVE_DIR_NAME = 'archive';
|
|
5
|
+
export const ROOT_SRC_DIR = '.';
|
|
6
|
+
const ROOT_ENTRIES_KEPT_IN_PLACE = new Set([
|
|
7
|
+
'.git',
|
|
8
|
+
'node_modules',
|
|
9
|
+
'dist',
|
|
10
|
+
'hsproject.json',
|
|
11
|
+
]);
|
|
12
|
+
export function getArchiveDest(projectDir, srcDir) {
|
|
13
|
+
if (srcDir === ROOT_SRC_DIR) {
|
|
14
|
+
return path.join(path.dirname(projectDir), `${path.basename(projectDir)}-${ARCHIVE_DIR_NAME}`);
|
|
15
|
+
}
|
|
16
|
+
return path.join(projectDir, ARCHIVE_DIR_NAME);
|
|
17
|
+
}
|
|
18
|
+
export function archiveDestExists(archiveDest) {
|
|
19
|
+
return fs.existsSync(archiveDest);
|
|
20
|
+
}
|
|
21
|
+
export function archiveProjectSource(projectDir, srcDir) {
|
|
22
|
+
const archiveDest = getArchiveDest(projectDir, srcDir);
|
|
23
|
+
fs.renameSync(path.join(projectDir, srcDir), archiveDest);
|
|
24
|
+
return archiveDest;
|
|
25
|
+
}
|
|
26
|
+
export function getProjectArchiveDest(projectDir) {
|
|
27
|
+
return path.join(projectDir, ARCHIVE_DIR_NAME);
|
|
28
|
+
}
|
|
29
|
+
function assertSrcDirOutsideArchive(projectDir, srcDir) {
|
|
30
|
+
const archiveDest = path.resolve(getProjectArchiveDest(projectDir));
|
|
31
|
+
const srcPath = path.resolve(projectDir, srcDir);
|
|
32
|
+
const isInsideArchive = srcPath === archiveDest || srcPath.startsWith(archiveDest + path.sep);
|
|
33
|
+
if (isInsideArchive) {
|
|
34
|
+
throw new Error(lib.projects.archive.errors.srcDirInsideArchive(srcDir));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function assertArchiveExists(archiveDest) {
|
|
38
|
+
if (!fs.existsSync(archiveDest)) {
|
|
39
|
+
throw new Error(lib.projects.archive.errors.archiveNotFound(archiveDest));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function getMovableRootEntries(projectDir) {
|
|
43
|
+
return fs
|
|
44
|
+
.readdirSync(projectDir)
|
|
45
|
+
.filter(name => name !== ARCHIVE_DIR_NAME && !ROOT_ENTRIES_KEPT_IN_PLACE.has(name));
|
|
46
|
+
}
|
|
47
|
+
function moveEntries(names, fromDir, toDir) {
|
|
48
|
+
const moved = [];
|
|
49
|
+
try {
|
|
50
|
+
names.forEach(name => {
|
|
51
|
+
fs.renameSync(path.join(fromDir, name), path.join(toDir, name));
|
|
52
|
+
moved.push(name);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
moved.forEach(name => {
|
|
57
|
+
fs.renameSync(path.join(toDir, name), path.join(fromDir, name));
|
|
58
|
+
});
|
|
59
|
+
throw error;
|
|
60
|
+
}
|
|
61
|
+
return moved;
|
|
62
|
+
}
|
|
63
|
+
function archiveRootEntries(projectDir, archiveDest) {
|
|
64
|
+
fs.mkdirSync(archiveDest);
|
|
65
|
+
try {
|
|
66
|
+
moveEntries(getMovableRootEntries(projectDir), projectDir, archiveDest);
|
|
67
|
+
}
|
|
68
|
+
catch (error) {
|
|
69
|
+
fs.rmdirSync(archiveDest);
|
|
70
|
+
throw error;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
export function moveSourceToProjectArchive(projectDir, srcDir) {
|
|
74
|
+
assertSrcDirOutsideArchive(projectDir, srcDir);
|
|
75
|
+
const archiveDest = getProjectArchiveDest(projectDir);
|
|
76
|
+
if (srcDir === ROOT_SRC_DIR) {
|
|
77
|
+
archiveRootEntries(projectDir, archiveDest);
|
|
78
|
+
return archiveDest;
|
|
79
|
+
}
|
|
80
|
+
fs.renameSync(path.join(projectDir, srcDir), archiveDest);
|
|
81
|
+
return archiveDest;
|
|
82
|
+
}
|
|
83
|
+
function restoreRootEntries(projectDir, archiveDest) {
|
|
84
|
+
getMovableRootEntries(projectDir).forEach(name => {
|
|
85
|
+
fs.rmSync(path.join(projectDir, name), { recursive: true, force: true });
|
|
86
|
+
});
|
|
87
|
+
fs.readdirSync(archiveDest).forEach(name => {
|
|
88
|
+
fs.cpSync(path.join(archiveDest, name), path.join(projectDir, name), {
|
|
89
|
+
recursive: true,
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
export function restoreSourceFromProjectArchive(projectDir, srcDir) {
|
|
94
|
+
const archiveDest = getProjectArchiveDest(projectDir);
|
|
95
|
+
assertArchiveExists(archiveDest);
|
|
96
|
+
assertSrcDirOutsideArchive(projectDir, srcDir);
|
|
97
|
+
if (srcDir === ROOT_SRC_DIR) {
|
|
98
|
+
restoreRootEntries(projectDir, archiveDest);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const srcPath = path.join(projectDir, srcDir);
|
|
102
|
+
fs.rmSync(srcPath, { recursive: true, force: true });
|
|
103
|
+
fs.cpSync(archiveDest, srcPath, { recursive: true });
|
|
104
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function getFilesOnlyInArchive(projectDir: string, srcDir: string): Promise<string[]>;
|
|
2
|
+
export declare function writeArchiveDiffFile(archiveDest: string, files: string[]): string;
|
|
3
|
+
type FailedFileCopy = {
|
|
4
|
+
file: string;
|
|
5
|
+
error: unknown;
|
|
6
|
+
};
|
|
7
|
+
type CopyArchivedFilesResult = {
|
|
8
|
+
copiedCount: number;
|
|
9
|
+
failures: FailedFileCopy[];
|
|
10
|
+
};
|
|
11
|
+
export declare function copyArchivedFilesToSource(projectDir: string, srcDir: string, files: string[]): CopyArchivedFilesResult;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import { ARCHIVE_DIR_NAME, ROOT_SRC_DIR, getProjectArchiveDest, } from './archive.js';
|
|
4
|
+
const DIFF_FILE_NAME = 'diff.json';
|
|
5
|
+
const IGNORED_DIR_NAMES = new Set(['node_modules', 'dist', '.git']);
|
|
6
|
+
function toPosixPath(filePath) {
|
|
7
|
+
return filePath.split(path.sep).join('/');
|
|
8
|
+
}
|
|
9
|
+
function isIgnoredDir(entry, { rootDir, currentDir, ignoredRootEntry }) {
|
|
10
|
+
const isIgnoredRootEntry = currentDir === rootDir && entry.name === ignoredRootEntry;
|
|
11
|
+
return isIgnoredRootEntry || IGNORED_DIR_NAMES.has(entry.name);
|
|
12
|
+
}
|
|
13
|
+
async function listEntryFiles(options, entry) {
|
|
14
|
+
const { rootDir, currentDir = rootDir } = options;
|
|
15
|
+
const entryPath = path.join(currentDir, entry.name);
|
|
16
|
+
if (entry.isDirectory() && !isIgnoredDir(entry, { ...options, currentDir })) {
|
|
17
|
+
return listFiles({ ...options, currentDir: entryPath });
|
|
18
|
+
}
|
|
19
|
+
if (entry.isFile()) {
|
|
20
|
+
return [toPosixPath(path.relative(rootDir, entryPath))];
|
|
21
|
+
}
|
|
22
|
+
return [];
|
|
23
|
+
}
|
|
24
|
+
async function listFiles(options) {
|
|
25
|
+
const { rootDir, currentDir = rootDir } = options;
|
|
26
|
+
if (!fs.existsSync(currentDir)) {
|
|
27
|
+
return [];
|
|
28
|
+
}
|
|
29
|
+
const entries = await fs.promises.readdir(currentDir, {
|
|
30
|
+
withFileTypes: true,
|
|
31
|
+
});
|
|
32
|
+
const nestedFiles = await Promise.all(entries.map(entry => listEntryFiles({ ...options, currentDir }, entry)));
|
|
33
|
+
return nestedFiles.flat();
|
|
34
|
+
}
|
|
35
|
+
export async function getFilesOnlyInArchive(projectDir, srcDir) {
|
|
36
|
+
const archiveFiles = await listFiles({
|
|
37
|
+
rootDir: getProjectArchiveDest(projectDir),
|
|
38
|
+
});
|
|
39
|
+
const downloadedFiles = new Set(await listFiles({
|
|
40
|
+
rootDir: path.join(projectDir, srcDir),
|
|
41
|
+
ignoredRootEntry: srcDir === ROOT_SRC_DIR ? ARCHIVE_DIR_NAME : undefined,
|
|
42
|
+
}));
|
|
43
|
+
return archiveFiles.filter(file => !downloadedFiles.has(file)).sort();
|
|
44
|
+
}
|
|
45
|
+
export function writeArchiveDiffFile(archiveDest, files) {
|
|
46
|
+
const diffFilePath = path.join(archiveDest, DIFF_FILE_NAME);
|
|
47
|
+
fs.writeFileSync(diffFilePath, `${JSON.stringify(files, null, 2)}\n`);
|
|
48
|
+
return diffFilePath;
|
|
49
|
+
}
|
|
50
|
+
function copyArchivedFile(archiveDest, srcPath, file) {
|
|
51
|
+
const destination = path.join(srcPath, file);
|
|
52
|
+
fs.mkdirSync(path.dirname(destination), { recursive: true });
|
|
53
|
+
fs.copyFileSync(path.join(archiveDest, file), destination, fs.constants.COPYFILE_EXCL);
|
|
54
|
+
}
|
|
55
|
+
export function copyArchivedFilesToSource(projectDir, srcDir, files) {
|
|
56
|
+
const archiveDest = getProjectArchiveDest(projectDir);
|
|
57
|
+
const srcPath = path.join(projectDir, srcDir);
|
|
58
|
+
const failures = [];
|
|
59
|
+
files.forEach(file => {
|
|
60
|
+
try {
|
|
61
|
+
copyArchivedFile(archiveDest, srcPath, file);
|
|
62
|
+
}
|
|
63
|
+
catch (error) {
|
|
64
|
+
failures.push({ file, error });
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
return { copiedCount: files.length - failures.length, failures };
|
|
68
|
+
}
|
package/lib/projects/config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from 'fs-extra';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import findup from 'findup
|
|
3
|
+
import { findup } from '@hubspot/local-dev-lib/findup';
|
|
4
4
|
import { getAbsoluteFilePath, getCwd } from '@hubspot/local-dev-lib/path';
|
|
5
5
|
import { parseProjectConfig, ProjectConfigValidationError, } from '@hubspot/project-parsing-lib/projects';
|
|
6
6
|
import { PROJECT_CONFIG_FILE } from '../constants.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type LocalProject = {
|
|
2
|
+
projectName: string;
|
|
3
|
+
projectDir: string;
|
|
4
|
+
srcDir: string;
|
|
5
|
+
};
|
|
6
|
+
export type ArchivePlan = {
|
|
7
|
+
projectDir: string;
|
|
8
|
+
srcDir: string;
|
|
9
|
+
archiveDest: string;
|
|
10
|
+
};
|
|
11
|
+
type DownloadDestination = {
|
|
12
|
+
absoluteDestPath: string;
|
|
13
|
+
archivePlan?: ArchivePlan;
|
|
14
|
+
};
|
|
15
|
+
type ResolveDownloadDestinationOptions = {
|
|
16
|
+
projectName: string;
|
|
17
|
+
dest?: string;
|
|
18
|
+
localProject?: LocalProject;
|
|
19
|
+
};
|
|
20
|
+
export declare function getLocalProject(): LocalProject | undefined;
|
|
21
|
+
export declare function resolveDownloadDestination({ projectName, dest, localProject, }: ResolveDownloadDestinationOptions): DownloadDestination;
|
|
22
|
+
export declare function getDisplayPath(absolutePath: string): string;
|
|
23
|
+
export declare function describeArchiveLocation({ archiveDest }: ArchivePlan): string;
|
|
24
|
+
type HandleArchivedSourceOptions = {
|
|
25
|
+
archivePlan: ArchivePlan;
|
|
26
|
+
keepLocalFiles?: boolean;
|
|
27
|
+
canPrompt: boolean;
|
|
28
|
+
};
|
|
29
|
+
export declare function handleArchivedSource({ archivePlan, keepLocalFiles, canPrompt, }: HandleArchivedSourceOptions): Promise<void>;
|
|
30
|
+
type ExtractBuildOptions = {
|
|
31
|
+
zippedProject: Buffer;
|
|
32
|
+
projectName: string;
|
|
33
|
+
absoluteDestPath: string;
|
|
34
|
+
archivePlan?: ArchivePlan;
|
|
35
|
+
};
|
|
36
|
+
export declare function extractBuild({ zippedProject, projectName, absoluteDestPath, archivePlan, }: ExtractBuildOptions): Promise<void>;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { getCwd, sanitizeFileName } from '@hubspot/local-dev-lib/path';
|
|
3
|
+
import { extractZipArchive } from '@hubspot/local-dev-lib/archive';
|
|
4
|
+
import { commands } from '../../lang/en.js';
|
|
5
|
+
import { debugError } from '../errorHandlers/index.js';
|
|
6
|
+
import { confirmPrompt } from '../prompts/promptUtils.js';
|
|
7
|
+
import { uiLogger } from '../ui/logger.js';
|
|
8
|
+
import { getIsInProject, getProjectConfig } from './config.js';
|
|
9
|
+
import { getProjectArchiveDest, restoreSourceFromProjectArchive, } from './archive.js';
|
|
10
|
+
import { copyArchivedFilesToSource, getFilesOnlyInArchive, writeArchiveDiffFile, } from './archiveDiff.js';
|
|
11
|
+
const MAX_LISTED_ARCHIVE_ONLY_FILES = 25;
|
|
12
|
+
export function getLocalProject() {
|
|
13
|
+
if (!getIsInProject()) {
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
const { projectConfig, projectDir } = getProjectConfig();
|
|
17
|
+
return {
|
|
18
|
+
projectName: projectConfig.name,
|
|
19
|
+
projectDir,
|
|
20
|
+
srcDir: projectConfig.srcDir,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export function resolveDownloadDestination({ projectName, dest, localProject, }) {
|
|
24
|
+
if (localProject && !dest && localProject.projectName === projectName) {
|
|
25
|
+
const { projectDir, srcDir } = localProject;
|
|
26
|
+
return {
|
|
27
|
+
absoluteDestPath: projectDir,
|
|
28
|
+
archivePlan: {
|
|
29
|
+
projectDir,
|
|
30
|
+
srcDir,
|
|
31
|
+
archiveDest: getProjectArchiveDest(projectDir),
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
const sanitizedProjectName = sanitizeFileName(projectName);
|
|
36
|
+
const absoluteDestPath = dest
|
|
37
|
+
? path.resolve(getCwd(), dest, sanitizedProjectName)
|
|
38
|
+
: path.resolve(getCwd(), sanitizedProjectName);
|
|
39
|
+
return { absoluteDestPath };
|
|
40
|
+
}
|
|
41
|
+
export function getDisplayPath(absolutePath) {
|
|
42
|
+
return path.relative(getCwd(), absolutePath) || '.';
|
|
43
|
+
}
|
|
44
|
+
export function describeArchiveLocation({ archiveDest }) {
|
|
45
|
+
return commands.project.download.archiveLocation(getDisplayPath(archiveDest));
|
|
46
|
+
}
|
|
47
|
+
function restoreArchivedSource({ projectDir, srcDir, archiveDest, }) {
|
|
48
|
+
try {
|
|
49
|
+
restoreSourceFromProjectArchive(projectDir, srcDir);
|
|
50
|
+
uiLogger.warn(commands.project.download.warnings.sourceRestored);
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
debugError(error);
|
|
54
|
+
uiLogger.error(commands.project.download.errors.restoreFailed(getDisplayPath(archiveDest)));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function tryWriteArchiveDiffFile(archiveDest, files) {
|
|
58
|
+
try {
|
|
59
|
+
return writeArchiveDiffFile(archiveDest, files);
|
|
60
|
+
}
|
|
61
|
+
catch (error) {
|
|
62
|
+
debugError(error);
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
async function logFilesOnlyInArchive({ projectDir, srcDir, archiveDest, }) {
|
|
67
|
+
let files;
|
|
68
|
+
try {
|
|
69
|
+
files = await getFilesOnlyInArchive(projectDir, srcDir);
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
debugError(error);
|
|
73
|
+
return [];
|
|
74
|
+
}
|
|
75
|
+
if (files.length === 0) {
|
|
76
|
+
return [];
|
|
77
|
+
}
|
|
78
|
+
const diffFilePath = tryWriteArchiveDiffFile(archiveDest, files);
|
|
79
|
+
uiLogger.log('');
|
|
80
|
+
uiLogger.log(commands.project.download.logs.filesOnlyInArchive(files.slice(0, MAX_LISTED_ARCHIVE_ONLY_FILES), Math.max(files.length - MAX_LISTED_ARCHIVE_ONLY_FILES, 0), diffFilePath ? getDisplayPath(diffFilePath) : undefined));
|
|
81
|
+
return files;
|
|
82
|
+
}
|
|
83
|
+
async function shouldCopyFilesBack({ files, keepLocalFiles, canPrompt, }) {
|
|
84
|
+
if (keepLocalFiles !== undefined) {
|
|
85
|
+
return keepLocalFiles;
|
|
86
|
+
}
|
|
87
|
+
if (!canPrompt) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
uiLogger.log('');
|
|
91
|
+
return confirmPrompt(commands.project.download.prompts.confirmCopyFilesBack(files.length));
|
|
92
|
+
}
|
|
93
|
+
async function copyFilesBack(options) {
|
|
94
|
+
const { archivePlan, files } = options;
|
|
95
|
+
if (files.length === 0 || !(await shouldCopyFilesBack(options))) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const { projectDir, srcDir } = archivePlan;
|
|
99
|
+
const { copiedCount, failures } = copyArchivedFilesToSource(projectDir, srcDir, files);
|
|
100
|
+
failures.forEach(({ error }) => debugError(error));
|
|
101
|
+
if (copiedCount > 0) {
|
|
102
|
+
uiLogger.success(commands.project.download.logs.filesCopiedBack(copiedCount, getDisplayPath(path.join(projectDir, srcDir))));
|
|
103
|
+
}
|
|
104
|
+
if (failures.length > 0) {
|
|
105
|
+
uiLogger.warn(commands.project.download.warnings.filesNotCopiedBack(failures.length));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
export async function handleArchivedSource({ archivePlan, keepLocalFiles, canPrompt, }) {
|
|
109
|
+
uiLogger.info(commands.project.download.logs.sourceContentsArchived(describeArchiveLocation(archivePlan)));
|
|
110
|
+
const files = await logFilesOnlyInArchive(archivePlan);
|
|
111
|
+
await copyFilesBack({ archivePlan, files, keepLocalFiles, canPrompt });
|
|
112
|
+
}
|
|
113
|
+
export async function extractBuild({ zippedProject, projectName, absoluteDestPath, archivePlan, }) {
|
|
114
|
+
try {
|
|
115
|
+
await extractZipArchive(zippedProject, sanitizeFileName(projectName), absoluteDestPath);
|
|
116
|
+
}
|
|
117
|
+
catch (error) {
|
|
118
|
+
if (archivePlan) {
|
|
119
|
+
restoreArchivedSource(archivePlan);
|
|
120
|
+
}
|
|
121
|
+
throw error;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -3,7 +3,7 @@ import { fetchAppMetadataBySourceId, fetchPublicAppProductionInstallCounts, inst
|
|
|
3
3
|
import { getConfigAccountById } from '@hubspot/local-dev-lib/config';
|
|
4
4
|
import { APP_AUTH_TYPES, APP_DISTRIBUTION_TYPES, APP_INSTALLATION_STATES, LOCAL_DEV_SERVER_MESSAGE_TYPES, } from '../../constants.js';
|
|
5
5
|
import { EXIT_CODES } from '../../enums/exitCodes.js';
|
|
6
|
-
import {
|
|
6
|
+
import { logUiLine } from '../../ui/index.js';
|
|
7
7
|
import { logError } from '../../errorHandlers/index.js';
|
|
8
8
|
import { isPromptExitError } from '../../errors/PromptExitError.js';
|
|
9
9
|
import { installAppAutoPrompt, installAppBrowserPrompt, } from '../../prompts/installAppPrompt.js';
|
|
@@ -118,9 +118,9 @@ class AppDevModeInterface {
|
|
|
118
118
|
text: lib.AppDevModeInterface.fetchAppData.activeInstallations(this.appNode?.config.name || '', this.marketplaceAppInstalls),
|
|
119
119
|
failColor: 'yellow',
|
|
120
120
|
});
|
|
121
|
-
|
|
121
|
+
logUiLine();
|
|
122
122
|
uiLogger.log(lib.LocalDevManager.activeInstallWarning.explanation);
|
|
123
|
-
|
|
123
|
+
logUiLine();
|
|
124
124
|
const proceed = await confirmPrompt(lib.LocalDevManager.activeInstallWarning.confirmationPrompt, { defaultAnswer: false });
|
|
125
125
|
if (!proceed) {
|
|
126
126
|
return this.localDevState.actions.exit(EXIT_CODES.SUCCESS);
|