Plugins: allow unsafe-force override on update

This commit is contained in:
huntharo
2026-04-03 00:20:16 -04:00
committed by Peter Steinberger
parent 824ff335c6
commit c4f40c3f7d
10 changed files with 193 additions and 12 deletions

View File

@@ -89,7 +89,7 @@ function resolveHookPackUpdateSelection(params: {
export async function runPluginUpdateCommand(params: {
id?: string;
opts: { all?: boolean; dryRun?: boolean };
opts: { all?: boolean; dryRun?: boolean; dangerouslyForceUnsafeInstall?: boolean };
}) {
const sourceSnapshotPromise = readConfigFileSnapshot().catch(() => null);
const cfg = loadConfig();
@@ -122,6 +122,7 @@ export async function runPluginUpdateCommand(params: {
pluginIds: pluginSelection.pluginIds,
specOverrides: pluginSelection.specOverrides,
dryRun: params.opts.dryRun,
dangerouslyForceUnsafeInstall: params.opts.dangerouslyForceUnsafeInstall,
logger,
onIntegrityDrift: async (drift) => {
const specLabel = drift.resolvedSpec ?? drift.spec;