Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/ai16z/eliza
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Nov 20, 2024
2 parents 6627e79 + a3e7ba6 commit 4235f84
Show file tree
Hide file tree
Showing 32 changed files with 59 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
- name: Set status
if: failure()
run: |
gh pr comment ${{ github.event.pull_request.number }} --body "❌ PR title does not match the required pattern. Please use the format: 'type: description' (e.g., 'feat: add new feature')."
gh pr comment ${{ github.event.pull_request.number }} --body "❌ PR title does not match the required pattern. Please use the format: 'type: description' (e.g., 'feat|fix|docs|style|refactor|test|chore: title')."
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## [v0.1.3-alpha.2](https://github.com/ai16z/eliza/tree/v0.1.3-alpha.2) (2024-11-20)

[Full Changelog](https://github.com/ai16z/eliza/compare/v0.1.3-alpha.1...v0.1.3-alpha.2)

**Merged pull requests:**

- fix: imports [\#435](https://github.com/ai16z/eliza/pull/435) ([ponderingdemocritus](https://github.com/ponderingdemocritus))

## [v0.1.3-alpha.1](https://github.com/ai16z/eliza/tree/v0.1.3-alpha.1) (2024-11-20)

[Full Changelog](https://github.com/ai16z/eliza/compare/v0.1.3-alpha.0...v0.1.3-alpha.1)

**Merged pull requests:**

- chore: Update pr.yaml to show actual condition so easier to follow [\#429](https://github.com/ai16z/eliza/pull/429) ([monilpat](https://github.com/monilpat))
- feat: don't require .env to exist [\#427](https://github.com/ai16z/eliza/pull/427) ([odilitime](https://github.com/odilitime))

## [v0.1.3-alpha.0](https://github.com/ai16z/eliza/tree/v0.1.3-alpha.0) (2024-11-20)

[Full Changelog](https://github.com/ai16z/eliza/compare/v0.1.2...v0.1.3-alpha.0)
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@
### Edit the .env file

Copy .env.example to .env and fill in the appropriate values
Copy .env.example to .env and fill in the appropriate values.

```
cp .env.example .env
```

Note: .env is optional. If your planning to run multiple distinct agents, you can pass secrets through the character JSON

### Automatically Start Eliza

This will run everything to setup the project and start the bot with the default character.
Expand Down
3 changes: 0 additions & 3 deletions docs/docs/community/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ By internalizing the OODA Loop, you can quickly identify areas where you can mak
- Leverage AI assistants to help with tasks like code generation, document summarization, and content creation.
- Collaborate with other community members to divide and conquer larger initiatives.


---

## Contributing Guidelines
Expand Down Expand Up @@ -199,5 +198,3 @@ Note: we're still finalizing details on the creator/dev fund that seeks to retro
4. Share your ideas and initiatives with the community - we're excited to see what you'll build!

Lets push the boundaries of what's possible with autonomous AI agents. Welcome aboard!


2 changes: 1 addition & 1 deletion docs/docs/packages/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const character = {
Create a new plugin by implementing the Plugin interface:

```typescript
import { Plugin, Action, Evaluator, Provider } from "@ai16z/eliza/src/types";
import { Plugin, Action, Evaluator, Provider } from "@ai16z/eliza";

const myCustomPlugin: Plugin = {
name: "my-custom-plugin",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"packages": ["packages/*"],
"npmClient": "pnpm"
}
2 changes: 1 addition & 1 deletion packages/adapter-postgres/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/adapter-postgres",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-sqlite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/adapter-sqlite",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-sqljs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/adapter-sqljs",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-supabase/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/adapter-supabase",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/client-auto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/client-auto",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/client-direct/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/client-direct",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/client-discord/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/client-discord",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/client-discord/src/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
TextChannel,
ThreadChannel,
} from "discord.js";
import { elizaLogger } from "@ai16z/eliza/src/logger.ts";
import { elizaLogger } from "@ai16z/eliza";
import { AttachmentManager } from "./attachments.ts";
import { VoiceManager } from "./voice.ts";

Expand Down
5 changes: 2 additions & 3 deletions packages/client-discord/src/voice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ import {
UUID,
} from "@ai16z/eliza";
import { stringToUuid } from "@ai16z/eliza";
import { messageCompletionFooter } from "@ai16z/eliza";
import { DiscordClient } from "./index.ts";

export function getWavHeader(
audioLength: number,
Expand Down Expand Up @@ -63,9 +65,6 @@ export function getWavHeader(
return wavHeader;
}

import { messageCompletionFooter } from "@ai16z/eliza/src/parsing.ts";
import { DiscordClient } from ".";

const discordVoiceHandlerTemplate =
`# Task: Generate conversational voice dialog for {{agentName}}.
About {{agentName}}:
Expand Down
2 changes: 1 addition & 1 deletion packages/client-telegram/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/client-telegram",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/client-twitter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/client-twitter",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/eliza",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"description": "",
"main": "dist/index.js",
"type": "module",
Expand Down
14 changes: 4 additions & 10 deletions packages/core/src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,12 @@ export function loadEnvConfig(): Settings {
// Node.js environment: load from .env file
const envPath = findNearestEnvFile();

if (!envPath) {
throw new Error("No .env file found in current or parent directories.");
}

// Load the .env file
const result = config({ path: envPath });
// attempt to Load the .env file into process.env
const result = config(envPath ? { path: envPath } : {});

if (result.error) {
throw new Error(`Error loading .env file: ${result.error}`);
if (!result.error) {
console.log(`Loaded .env file from: ${envPath}`);
}

console.log(`Loaded .env file from: ${envPath}`);
return process.env as Settings;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/test_resources/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type UUID } from "@ai16z/eliza/src/types.ts";
import { type UUID } from "@ai16z/eliza";

export const SERVER_URL = "http://localhost:7998";
export const SUPABASE_URL = "https://pronvzrzfwsptkojvudd.supabase.co";
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-bootstrap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/plugin-bootstrap",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-bootstrap/src/evaluators/fact.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { composeContext } from "@ai16z/eliza/src/context.ts";
import { generateObjectArray } from "@ai16z/eliza/src/generation.ts";
import { composeContext } from "@ai16z/eliza";
import { generateObjectArray } from "@ai16z/eliza";
import { MemoryManager } from "@ai16z/eliza";
import {
ActionExample,
Expand Down
8 changes: 4 additions & 4 deletions packages/plugin-bootstrap/src/evaluators/goal.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { composeContext } from "@ai16z/eliza/src/context.ts";
import { generateText } from "@ai16z/eliza/src/generation.ts";
import { getGoals } from "@ai16z/eliza/src/goals.ts";
import { parseJsonArrayFromText } from "@ai16z/eliza/src/parsing.ts";
import { composeContext } from "@ai16z/eliza";
import { generateText } from "@ai16z/eliza";
import { getGoals } from "@ai16z/eliza";
import { parseJsonArrayFromText } from "@ai16z/eliza";
import {
IAgentRuntime,
Memory,
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-bootstrap/src/providers/facts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { embed } from "@ai16z/eliza/src/embedding.ts";
import { embed } from "@ai16z/eliza";
import { MemoryManager } from "@ai16z/eliza";
import { formatMessages } from "@ai16z/eliza/src/messages.ts";
import { formatMessages } from "@ai16z/eliza";
import { IAgentRuntime, Memory, Provider, State } from "@ai16z/eliza";
import { formatFacts } from "../evaluators/fact.ts";

Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-image-generation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/plugin-image-generation",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-image-generation/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { elizaLogger } from "@ai16z/eliza/src/logger.ts";
import { elizaLogger } from "@ai16z/eliza";
import {
Action,
HandlerCallback,
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/plugin-node",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-solana/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/plugin-solana",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-starknet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/plugin-starknet",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-trustdb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/plugin-trustdb",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-video-generation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai16z/plugin-video-generation",
"version": "0.1.3-alpha.0",
"version": "0.1.3-alpha.2",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-video-generation/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { elizaLogger } from "@ai16z/eliza/src/logger.ts";
import { elizaLogger } from "@ai16z/eliza";
import {
Action,
HandlerCallback,
IAgentRuntime,
Memory,
Plugin,
State,
} from "@ai16z/eliza/src/types.ts";
} from "@ai16z/eliza";
import fs from "fs";
import { LUMA_CONSTANTS } from "./constants";

Expand Down

0 comments on commit 4235f84

Please sign in to comment.