mage-remote-run 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/console.js +7 -0
- package/package.json +1 -1
package/lib/commands/console.js
CHANGED
|
@@ -178,6 +178,13 @@ export function registerConsoleCommand(program) {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
const firstWord = expandedArgs[0];
|
|
181
|
+
const blockedCommands = new Set(['console', 'mcp']);
|
|
182
|
+
if (blockedCommands.has(firstWord)) {
|
|
183
|
+
const blockedLabel = firstWord === 'console' ? 'console/repl' : firstWord;
|
|
184
|
+
console.error(chalk.red(`Command "${blockedLabel}" is not available inside the console.`));
|
|
185
|
+
callback(null);
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
181
188
|
const knownCommands = localProgram.commands.map(c => c.name());
|
|
182
189
|
|
|
183
190
|
if (knownCommands.includes(firstWord)) {
|