feat(secrets): finalize external secrets runtime and migration hardening

This commit is contained in:
joshavant
2026-02-24 19:34:29 -06:00
committed by Peter Steinberger
parent c5b89fbaea
commit 0e69660c41
22 changed files with 442 additions and 38 deletions

View File

@@ -29,6 +29,7 @@ const PLUGIN_REQUIRED_COMMANDS = new Set([
"configure",
"onboard",
]);
const CONFIG_GUARD_BYPASS_COMMANDS = new Set(["doctor", "completion", "secrets"]);
function getRootCommand(command: Command): Command {
let current = command;
@@ -75,7 +76,7 @@ export function registerPreActionHooks(program: Command, programVersion: string)
if (!verbose) {
process.env.NODE_NO_WARNINGS ??= "1";
}
if (commandPath[0] === "doctor" || commandPath[0] === "completion") {
if (CONFIG_GUARD_BYPASS_COMMANDS.has(commandPath[0])) {
return;
}
const { ensureConfigReady } = await import("./config-guard.js");