improve: warn before non-ClawHub plugin installs (#102197)

Merged via squash.

Prepared head SHA: e08d9e737d
Co-authored-by: jesse-merhi <79823012+jesse-merhi@users.noreply.github.com>
Co-authored-by: jesse-merhi <79823012+jesse-merhi@users.noreply.github.com>
Reviewed-by: @jesse-merhi
This commit is contained in:
Jesse Merhi
2026-07-15 03:25:36 +10:00
committed by GitHub
parent 13a2b0707d
commit 00364ee777
43 changed files with 2079 additions and 780 deletions
+6 -1
View File
@@ -15,6 +15,7 @@ type PluginUpdateOptions = {
};
type CommanderClawHubRiskOptions = Record<string, unknown> & {
acknowledgeClawHubRisk?: boolean;
acknowledgeClawhubRisk?: boolean;
};
@@ -172,7 +173,11 @@ export function registerPluginsCli(program: Command) {
"Path (.ts/.js/.zip/.tgz/.tar.gz), npm package spec, or marketplace plugin name",
)
.option("-l, --link", "Link a local path instead of copying", false)
.option("--force", "Overwrite an existing installed plugin or hook pack", false)
.option(
"--force",
"Confirm non-ClawHub sources and overwrite an existing plugin or hook pack",
false,
)
.option("--pin", "Record npm installs as exact resolved <name>@<version>", false)
.option(
"--dangerously-force-unsafe-install",