mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user