Skip to content

Commit cc0c7be

Browse files
committed
v1.0.0-alpha.35
1 parent ec8ca4c commit cc0c7be

File tree

24 files changed

+51
-49
lines changed

24 files changed

+51
-49
lines changed

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.0-alpha.34",
2+
"version": "1.0.0-alpha.35",
33
"packages": [
44
"packages/*"
55
],

packages/app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/app",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"publishConfig": {
55
"access": "public"
66
},

packages/cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/cli",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"description": "elizaOS CLI - Manage your AI agents and plugins",
55
"publishConfig": {
66
"access": "public"

packages/cli/src/commands/start.ts

-11
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ export async function promptForProjectPlugins(
8181
}
8282
}
8383

84-
// Always prompt for database configuration
85-
pluginsToPrompt.add("pglite");
86-
8784
// Prompt for each identified plugin
8885
for (const pluginName of pluginsToPrompt) {
8986
try {
@@ -278,13 +275,6 @@ const startAgents = async (options: {
278275
dotenv.config({ path: envFilePath });
279276
}
280277

281-
// Always ensure database configuration is set
282-
try {
283-
await promptForEnvVars("pglite");
284-
} catch (error) {
285-
logger.warn(`Error configuring database: ${error}`);
286-
}
287-
288278
// Load existing configuration
289279
const existingConfig = loadConfig();
290280
const pluginStatus = getPluginStatus();
@@ -331,7 +321,6 @@ const startAgents = async (options: {
331321
// Now handle environment variables for the selected plugins
332322
// Prompt for environment variables for selected services and AI models
333323
const pluginsToPrompt = [
334-
"pglite",
335324
...selectedServices,
336325
...selectedAiModels,
337326
].filter((plugin, index, self) => self.indexOf(plugin) === index); // Remove duplicates

packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/core",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"description": "",
55
"type": "module",
66
"main": "dist/index.js",

packages/core/src/import.ts

+26-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import path from "node:path";
2+
import fs from "node:fs";
13
import logger from "./logger";
24

35
const registrations = new Map<string, any>();
@@ -25,14 +27,34 @@ export async function handlePluginImporting(plugins: string[]) {
2527
logger.debug("Imported are: ", plugins);
2628
const importedPlugins = await Promise.all(
2729
plugins.map(async (plugin) => {
30+
const functionName = `${plugin
31+
.replace("@elizaos/plugin-", "")
32+
.replace("@elizaos-plugins/", "")
33+
.replace(/-./g, (x) => x[1].toUpperCase())}Plugin`; // Assumes plugin function is camelCased with Plugin suffix
34+
2835
try {
2936
const importedPlugin = await import(plugin);
30-
const functionName = `${plugin
31-
.replace("@elizaos/plugin-", "")
32-
.replace("@elizaos-plugins/", "")
33-
.replace(/-./g, (x) => x[1].toUpperCase())}Plugin`; // Assumes plugin function is camelCased with Plugin suffix
3437
return importedPlugin.default || importedPlugin[functionName];
3538
} catch (importError) {
39+
40+
// check if there is a node_modules folder in the current directory
41+
const nodeModulesPath = path.join(process.cwd(), "node_modules");
42+
if (fs.existsSync(nodeModulesPath)) {
43+
// check if the plugin is in the node_modules folder
44+
const pluginPath = path.join(nodeModulesPath, plugin);
45+
if (fs.existsSync(pluginPath)) {
46+
try {
47+
48+
// import the plugin from the node_modules folder
49+
const importedPlugin = await import(pluginPath);
50+
return importedPlugin.default || importedPlugin[functionName];
51+
} catch (importError) {
52+
logger.error(`Failed to import plugin: ${plugin}`, importError);
53+
return []; // Return null for failed imports
54+
}
55+
}
56+
}
57+
3658
logger.error(`Failed to import plugin: ${plugin}`, importError);
3759
return []; // Return null for failed imports
3860
}

packages/create-eliza/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-eliza",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"description": "Initialize an Eliza project",
55
"type": "module",
66
"publishConfig": {

packages/plugin-anthropic/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-anthropic",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

packages/plugin-browser/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-browser",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

packages/plugin-discord/package.json

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-discord",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",
@@ -22,14 +22,9 @@
2222
"dist"
2323
],
2424
"dependencies": {
25-
"@discordjs/opus": "github:discordjs/opus",
2625
"@discordjs/rest": "2.4.0",
27-
"@discordjs/voice": "0.17.0",
2826
"discord.js": "14.16.3",
29-
"fluent-ffmpeg": "^2.1.3",
3027
"get-func-name": "^3.0.0",
31-
"libsodium-wrappers": "0.7.15",
32-
"prism-media": "1.3.5",
3328
"zod": "3.23.8"
3429
},
3530
"devDependencies": {
@@ -43,10 +38,6 @@
4338
"lint": "biome check ./src --config-path=./ --apply-unsafe && biome format ./ --config-path=./ --write",
4439
"clean": "rm -rf dist .turbo node_modules .turbo-tsconfig.json tsconfig.tsbuildinfo"
4540
},
46-
"trustedDependencies": [
47-
"@discordjs/opus",
48-
"@discordjs/voice"
49-
],
5041
"peerDependencies": {
5142
"whatwg-url": "7.1.0"
5243
},

packages/plugin-elevenlabs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-elevenlabs",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

packages/plugin-local-ai/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-local-ai",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

packages/plugin-openai/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-openai",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

packages/plugin-pdf/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-pdf",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

packages/plugin-solana/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-solana",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

packages/plugin-sql/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-sql",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

packages/plugin-starter/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@elizaos/plugin-starter",
33
"description": "Plugin starter for elizaOS",
4-
"version": "1.0.0-alpha.34",
4+
"version": "1.0.0-alpha.35",
55
"type": "module",
66
"main": "dist/index.js",
77
"module": "dist/index.js",

packages/plugin-storage-s3/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-storage-s3",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

packages/plugin-tee/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-tee",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"main": "dist/index.js",
55
"type": "module",
66
"types": "dist/index.d.ts",

packages/plugin-telegram/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-telegram",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

packages/plugin-twitter/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-twitter",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

packages/plugin-video-understanding/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/plugin-video-understanding",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

packages/project-starter/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@elizaos/project-starter",
33
"description": "Project starter for elizaOS",
4-
"version": "1.0.0-alpha.34",
4+
"version": "1.0.0-alpha.35",
55
"type": "module",
66
"main": "dist/index.js",
77
"module": "dist/index.js",

packages/the-org/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elizaos/the-org",
3-
"version": "1.0.0-alpha.34",
3+
"version": "1.0.0-alpha.35",
44
"main": "dist/index.js",
55
"module": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -9,11 +9,11 @@
99
"access": "public"
1010
},
1111
"scripts": {
12-
"start": "../cli/dist/index.js start",
12+
"start": "npx elizaos start",
1313
"build": "vite build && tsup",
1414
"lint": "biome check --config-path=./ --write",
15-
"dev": "../cli/dist/index.js dev",
16-
"test": "../cli/dist/index.js test",
15+
"dev": "npx elizaos dev",
16+
"test": "npx elizaos test",
1717
"clean": "rm -rf dist .turbo node_modules .turbo-tsconfig.json tsconfig.tsbuildinfo"
1818
},
1919
"nodemonConfig": {

0 commit comments

Comments
 (0)