feat(plugins): add dangerous unsafe install override

This commit is contained in:
Peter Steinberger
2026-03-31 23:16:01 +09:00
parent 59866dd253
commit 44b9936136
15 changed files with 337 additions and 7 deletions

View File

@@ -740,13 +740,28 @@ export function registerPluginsCli(program: Command) {
)
.option("-l, --link", "Link a local path instead of copying", false)
.option("--pin", "Record npm installs as exact resolved <name>@<version>", false)
.option(
"--dangerously-force-unsafe-install",
"Bypass built-in dangerous-code install blocking (plugin hooks may still block)",
false,
)
.option(
"--marketplace <source>",
"Install a Claude marketplace plugin from a local repo/path or git/GitHub source",
)
.action(async (raw: string, opts: { link?: boolean; pin?: boolean; marketplace?: string }) => {
await runPluginInstallCommand({ raw, opts });
});
.action(
async (
raw: string,
opts: {
dangerouslyForceUnsafeInstall?: boolean;
link?: boolean;
pin?: boolean;
marketplace?: string;
},
) => {
await runPluginInstallCommand({ raw, opts });
},
);
plugins
.command("update")