mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-23 14:45:46 +00:00
fix(matrix): resolve crypto bootstrap failure and multi-extension idHint warning (#53298)
Merged via squash.
Prepared head SHA: 6f5813ffff
Co-authored-by: keithce <2086282+keithce@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
This commit is contained in:
@@ -638,6 +638,7 @@ describe("loadPluginManifestRegistry", () => {
|
||||
{ name: "provider-style", manifestId: "openai", idHint: "openai-provider" },
|
||||
{ name: "plugin-style", manifestId: "brave", idHint: "brave-plugin" },
|
||||
{ name: "sandbox-style", manifestId: "openshell", idHint: "openshell-sandbox" },
|
||||
{ name: "multi-entry-style", manifestId: "matrix", idHint: "matrix/index" },
|
||||
{
|
||||
name: "media-understanding-style",
|
||||
manifestId: "groq",
|
||||
|
||||
@@ -195,6 +195,10 @@ function isCompatiblePluginIdHint(idHint: string | undefined, manifestId: string
|
||||
if (normalizedHint === manifestId) {
|
||||
return true;
|
||||
}
|
||||
// Generated idHint for multi-extension plugins takes the form "id/entryBase".
|
||||
if (normalizedHint.startsWith(`${manifestId}/`)) {
|
||||
return true;
|
||||
}
|
||||
return (
|
||||
normalizedHint === `${manifestId}-provider` ||
|
||||
normalizedHint === `${manifestId}-plugin` ||
|
||||
|
||||
Reference in New Issue
Block a user