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

@@ -53,6 +53,7 @@ export type PluginInspectOptions = {
export type PluginUpdateOptions = {
all?: boolean;
dryRun?: boolean;
dangerouslyForceUnsafeInstall?: boolean;
};
export type PluginMarketplaceListOptions = {
@@ -799,6 +800,11 @@ export function registerPluginsCli(program: Command) {
.argument("[id]", "Plugin or hook-pack id (omit with --all)")
.option("--all", "Update all tracked plugins and hook packs", false)
.option("--dry-run", "Show what would change without writing", false)
.option(
"--dangerously-force-unsafe-install",
"Bypass built-in dangerous-code update blocking for plugins (plugin hooks may still block)",
false,
)
.action(async (id: string | undefined, opts: PluginUpdateOptions) => {
await runPluginUpdateCommand({ id, opts });
});