From dc09d871ed25a3b71d69aecfbc850246ec7093aa Mon Sep 17 00:00:00 2001 From: Sander Declerck Date: Tue, 17 Feb 2026 12:33:25 +0100 Subject: [PATCH 1/3] Remove ultimate commands (not ready yet) --- packages/safe-chain/bin/safe-chain.js | 72 --------------------------- 1 file changed, 72 deletions(-) diff --git a/packages/safe-chain/bin/safe-chain.js b/packages/safe-chain/bin/safe-chain.js index 2913d28..3bc8a5a 100755 --- a/packages/safe-chain/bin/safe-chain.js +++ b/packages/safe-chain/bin/safe-chain.js @@ -70,39 +70,6 @@ if (tool) { process.exit(0); } else if (command === "setup") { setup(); -} else if (command === "ultimate") { - const cliArgs = initializeCliArguments(process.argv.slice(2)); - const subCommand = cliArgs[1]; - if (subCommand === "uninstall") { - guardCliArgsMaxLenght(2, cliArgs, "safe-chain ultimate uninstall"); - (async () => { - await uninstallUltimate(); - })(); - } else if (subCommand === "troubleshooting-logs") { - guardCliArgsMaxLenght( - 2, - cliArgs, - "safe-chain ultimate troubleshooting-logs", - ); - (async () => { - await printUltimateLogs(); - })(); - } else if (subCommand === "troubleshooting-export") { - guardCliArgsMaxLenght( - 2, - cliArgs, - "safe-chain ultimate troubleshooting-export", - ); - (async () => { - await troubleshootingExport(); - })(); - } else { - guardCliArgsMaxLenght(1, cliArgs, "safe-chain ultimate"); - // Install command = when no subcommand is provided (safe-chain ultimate) - (async () => { - await installUltimate(); - })(); - } } else if (command === "teardown") { teardown(); teardownDirectories(); @@ -121,22 +88,6 @@ if (tool) { process.exit(1); } -/** - * @param {Number} maxLength - * @param {String[]} args - * @param {String} command - */ -function guardCliArgsMaxLenght(maxLength, args, command) { - if (args.length > maxLength) { - ui.writeError(`Unexpected number of arguments for command ${command}.`); - ui.emptyLine(); - - writeHelp(); - - process.exit(1); - } -} - function writeHelp() { ui.writeInformation( chalk.bold("Usage: ") + chalk.cyan("safe-chain "), @@ -171,29 +122,6 @@ function writeHelp() { )}): Display the current version of safe-chain.`, ); ui.emptyLine(); - ui.writeInformation(chalk.bold("Ultimate commands:")); - ui.emptyLine(); - ui.writeInformation( - `- ${chalk.cyan( - "safe-chain ultimate", - )}: Install the ultimate version of safe-chain, enabling protection for more eco-systems.`, - ); - ui.writeInformation( - `- ${chalk.cyan( - "safe-chain ultimate troubleshooting-logs", - )}: Prints standard and error logs for safe-chain ultimate and it's proxy.`, - ); - ui.writeInformation( - `- ${chalk.cyan( - "safe-chain ultimate troubleshooting-export", - )}: Creates a zip archive of useful data for troubleshooting safe-chain ultimate, that can be shared with our support team.`, - ); - ui.writeInformation( - `- ${chalk.cyan( - "safe-chain ultimate uninstall", - )}: Uninstall the ultimate version of safe-chain.`, - ); - ui.emptyLine(); } async function getVersion() { From 688f017d3c22033a89f528da956144fd64e083f8 Mon Sep 17 00:00:00 2001 From: Sander Declerck Date: Tue, 17 Feb 2026 12:35:16 +0100 Subject: [PATCH 2/3] Fix linting issues --- packages/safe-chain/bin/safe-chain.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/safe-chain/bin/safe-chain.js b/packages/safe-chain/bin/safe-chain.js index 3bc8a5a..86a154d 100755 --- a/packages/safe-chain/bin/safe-chain.js +++ b/packages/safe-chain/bin/safe-chain.js @@ -16,14 +16,6 @@ import path from "path"; import { fileURLToPath } from "url"; import fs from "fs"; import { knownAikidoTools } from "../src/shell-integration/helpers.js"; -import { - installUltimate, - uninstallUltimate, -} from "../src/installation/installUltimate.js"; -import { - printUltimateLogs, - troubleshootingExport, -} from "../src/ultimate/ultimateTroubleshooting.js"; /** @type {string} */ // This checks the current file's dirname in a way that's compatible with: From e6a58ef5ae7f53df81d0c7c4414fe0039b7cd449 Mon Sep 17 00:00:00 2001 From: Sander Declerck Date: Tue, 17 Feb 2026 12:36:32 +0100 Subject: [PATCH 3/3] Remove ultimate from list of available commands --- packages/safe-chain/bin/safe-chain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/safe-chain/bin/safe-chain.js b/packages/safe-chain/bin/safe-chain.js index 86a154d..8d942e4 100755 --- a/packages/safe-chain/bin/safe-chain.js +++ b/packages/safe-chain/bin/safe-chain.js @@ -88,7 +88,7 @@ function writeHelp() { ui.writeInformation( `Available commands: ${chalk.cyan("setup")}, ${chalk.cyan( "teardown", - )}, ${chalk.cyan("setup-ci")}, ${chalk.cyan("ultimate")}, ${chalk.cyan("help")}, ${chalk.cyan( + )}, ${chalk.cyan("setup-ci")}, ${chalk.cyan("help")}, ${chalk.cyan( "--version", )}`, );