@elizaos/core 1.0.0-beta.18 → 1.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1138,9 +1138,12 @@ async function handlePluginImporting(plugins) {
|
|
|
1138
1138
|
try {
|
|
1139
1139
|
const importedPlugin = await import(plugin);
|
|
1140
1140
|
const functionName = `${plugin.replace("@elizaos/plugin-", "").replace("@elizaos-plugins/", "").replace(/-./g, (x) => x[1].toUpperCase())}Plugin`;
|
|
1141
|
+
if (functionName === "localAiPlugin") {
|
|
1142
|
+
return importedPlugin["localAIPlugin"];
|
|
1143
|
+
}
|
|
1141
1144
|
return importedPlugin.default || importedPlugin[functionName];
|
|
1142
1145
|
} catch (importError) {
|
|
1143
|
-
logger_default.error(`Failed to import plugin: ${plugin}
|
|
1146
|
+
logger_default.error(`Failed to import plugin: ${plugin} during runtime dynamic import`);
|
|
1144
1147
|
return [];
|
|
1145
1148
|
}
|
|
1146
1149
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/core",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "9179074304d8c069004baa05e55c632898e06601"
|
|
80
80
|
}
|