fix(plugins): narrow channel install defaults

This commit is contained in:
Vincent Koc
2026-05-02 07:38:34 -07:00
parent 16e3316beb
commit d228b0dc58

View File

@@ -222,7 +222,7 @@ function resolveInstallInfo(params: {
localPath = path.relative(params.workspaceDir, params.packageDir) || undefined;
}
const requestedDefaultChoice = params.install?.defaultChoice;
const defaultChoice =
const defaultChoice: NonNullable<PluginPackageInstall["defaultChoice"]> =
requestedDefaultChoice === "clawhub" && clawhubSpec
? "clawhub"
: requestedDefaultChoice === "npm" && npmSpec