mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-26 16:06:16 +00:00
fix: normalize manifest plugin ids during install
This commit is contained in:
@@ -158,7 +158,9 @@ async function installPluginFromPackageDir(params: {
|
||||
// uses the manifest id as the authoritative key, so the config entry must match it.
|
||||
const ocManifestResult = loadPluginManifest(params.packageDir);
|
||||
const manifestPluginId =
|
||||
ocManifestResult.ok && ocManifestResult.manifest.id ? ocManifestResult.manifest.id : undefined;
|
||||
ocManifestResult.ok && ocManifestResult.manifest.id
|
||||
? unscopedPackageName(ocManifestResult.manifest.id)
|
||||
: undefined;
|
||||
|
||||
const pluginId = manifestPluginId ?? npmPluginId;
|
||||
const pluginIdError = validatePluginId(pluginId);
|
||||
|
||||
Reference in New Issue
Block a user