Skip to content

Commit 066cc98

Browse files
authored
Merge branch 'main' into add-image-provider
2 parents 1f2b4b6 + c31eddf commit 066cc98

File tree

208 files changed

+12509
-11630
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+12509
-11630
lines changed

.env.example

+33-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
# Discord Configuration
22
DISCORD_APPLICATION_ID=
33
DISCORD_API_TOKEN= # Bot token
4+
DISCORD_VOICE_CHANNEL_ID= # The ID of the voice channel the bot should join (optional)
45

56
# AI Model API Keys
67
OPENAI_API_KEY= # OpenAI API key, starting with sk-
8+
9+
ETERNALAI_URL=
10+
ETERNALAI_API_KEY=
11+
712
REDPILL_API_KEY= # REDPILL API Key
813
GROK_API_KEY= # GROK API Key
914
GROQ_API_KEY= # Starts with gsk_
@@ -28,6 +33,7 @@ TWITTER_DRY_RUN=false
2833
TWITTER_USERNAME= # Account username
2934
TWITTER_PASSWORD= # Account password
3035
TWITTER_EMAIL= # Account email
36+
TWITTER_2FA_SECRET=
3137
TWITTER_COOKIES= # Account cookies
3238
X_SERVER_URL=
3339
XAI_API_KEY=
@@ -36,6 +42,7 @@ XAI_MODEL=
3642
# Post Interval Settings (in minutes)
3743
POST_INTERVAL_MIN= # Default: 90
3844
POST_INTERVAL_MAX= # Default: 180
45+
POST_IMMEDIATELY=
3946

4047
# Feature Flags
4148
IMAGE_GEN= # Set to TRUE to enable image generation
@@ -59,6 +66,9 @@ SMALL_OLLAMA_MODEL= # Default: llama3.2
5966
MEDIUM_OLLAMA_MODEL= # Default: hermes3
6067
LARGE_OLLAMA_MODEL= # Default: hermes3:70b
6168

69+
#LlamaLocal Configuration
70+
LLAMALOCAL_PATH= # Default: "" which is the current directory in plugin-node/dist/ which gets destroyed and recreated on every build
71+
6272
# API Keys
6373
ANTHROPIC_API_KEY= # For Claude
6474
HEURIST_API_KEY= # Get from https://heurist.ai/dev-access
@@ -69,9 +79,18 @@ MEDIUM_HEURIST_LANGUAGE_MODEL=
6979
LARGE_HEURIST_LANGUAGE_MODEL=
7080
HEURIST_IMAGE_MODEL=
7181

72-
# Wallet Configuration
82+
# EVM
83+
EVM_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
84+
EVM_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
85+
86+
# Solana
87+
SOLANA_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
88+
SOLANA_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
89+
90+
# Fallback Wallet Configuration (deprecated)
7391
WALLET_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
7492
WALLET_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
93+
7594
BIRDEYE_API_KEY=
7695

7796
# Solana Configuration
@@ -96,6 +115,9 @@ STARKNET_ADDRESS=
96115
STARKNET_PRIVATE_KEY=
97116
STARKNET_RPC_URL=
98117

118+
# Intiface Configuration
119+
INTIFACE_WEBSOCKET_URL=ws://localhost:12345
120+
99121

100122
# Farcaster
101123
FARCASTER_HUB_URL=
@@ -124,6 +146,15 @@ ZEROG_PRIVATE_KEY=
124146
ZEROG_FLOW_ADDRESS=
125147

126148

127-
# Coinbase Commerce
149+
# Coinbase
128150
COINBASE_COMMERCE_KEY=
151+
COINBASE_API_KEY=
152+
COINBASE_PRIVATE_KEY=
153+
154+
COINBASE_GENERATED_WALLET_ID=
155+
COINBASE_GENERATED_WALLET_HEX_SEED=
156+
129157

158+
# TEE Configuration
159+
DSTACK_SIMULATOR_ENDPOINT=
160+
WALLET_SECRET_SALT=secret_salt

.github/pull_request_template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ If a docs change is needed: I have updated the documentation accordingly.
4747
## Detailed testing steps
4848

4949
<!--
50-
None, automtated tests are fine.
50+
None, automated tests are fine.
5151
-->
5252

5353
<!--

.github/workflows/ci.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ jobs:
3838

3939
- name: Build packages
4040
run: pnpm run build
41+
42+
- name: Upload coverage reports to Codecov
43+
uses: codecov/codecov-action@v5
44+
with:
45+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ node_modules
55
.env.production
66
concatenated-output.ts
77
embedding-cache.json
8+
packages/plugin-buttplug/intiface-engine
89

910
.DS_Store
1011

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v23.1.0
1+
v23.3.0

Dockerfile

+68-15
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
FROM node:23.1.0
2-
# Install pnpm globally
3-
RUN npm install -g pnpm@9.4.0
1+
# Stage 1: Build dependencies in a temporary stage
2+
FROM node:23.3.0 AS builder
43

5-
# Set the working directory
4+
# Install required global dependencies
5+
RUN apt-get update && apt-get install -y \
6+
python3 \
7+
build-essential \
8+
git \
9+
curl \
10+
sqlite3 && \
11+
apt-get clean \
12+
&& npm install -g pnpm@9.4.0
13+
14+
# Set working directory
615
WORKDIR /app
716

817
# Add configuration files and install dependencies
@@ -11,20 +20,64 @@ ADD package.json /app/package.json
1120
ADD .npmrc /app/.npmrc
1221
ADD tsconfig.json /app/tsconfig.json
1322
ADD pnpm-lock.yaml /app/pnpm-lock.yaml
14-
RUN pnpm i
1523

16-
# Add the documentation
17-
ADD docs /app/docs
18-
RUN pnpm i
24+
# Install dependencies
25+
RUN pnpm install
1926

20-
# Add the rest of the application code
27+
# Copy source code
28+
ADD docs /app/docs
2129
ADD packages /app/packages
22-
RUN pnpm i
23-
24-
# Add the environment variables
2530
ADD scripts /app/scripts
2631
ADD characters /app/characters
27-
ADD .env /app/.env
32+
ADD agent /app/agent
33+
34+
# Add dependencies to workspace root
35+
RUN pnpm add -w -D ts-node typescript @types/node
36+
37+
WORKDIR /app/packages/agent
38+
39+
# Add dependencies to the agent package specifically
40+
RUN pnpm add -D ts-node typescript @types/node --filter "@ai16z/agent"
41+
42+
WORKDIR /app/packages/core
43+
RUN pnpm add -D ts-node typescript @types/node --filter "@ai16z/eliza"
44+
45+
WORKDIR /app
46+
47+
# Optional: build step if using TypeScript or other build process
48+
RUN pnpm build
49+
50+
# Stage 2: Production image
51+
FROM node:23.3.0
52+
53+
# Install dependencies required for the final runtime
54+
RUN apt-get update && apt-get install -y \
55+
python3 \
56+
build-essential \
57+
git \
58+
curl \
59+
sqlite3 && \
60+
apt-get clean \
61+
&& npm install -g pnpm@9.4.0
62+
63+
# Set working directory
64+
WORKDIR /app
65+
66+
# Copy built files from the builder stage
67+
COPY --from=builder /app /app
68+
69+
# install playwright
70+
RUN pnpm exec playwright install
71+
RUN pnpm exec playwright install-deps
72+
73+
# Expose application port if running a web server
74+
EXPOSE 3000
75+
76+
# Add health check to ensure the app is running
77+
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s CMD curl -f http://localhost:3000 || exit 1
78+
79+
# Set environment variables to configure runtime model settings
80+
ENV NODE_ENV=production
2881

29-
# Command to run the container
30-
CMD ["tail", "-f", "/dev/null"]
82+
# Default command to run the application
83+
CMD ["pnpm", "start"]

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
### Prerequisites
3939

4040
- [Python 2.7+](https://www.python.org/downloads/)
41-
- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
41+
- [Node.js 23+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
4242
- [pnpm](https://pnpm.io/installation)
4343

4444
> **Note for Windows Users:** [WSL 2](https://learn.microsoft.com/en-us/windows/wsl/install-manual) is required.
@@ -91,6 +91,8 @@ sh scripts/start.sh
9191
2. To load custom characters:
9292
- Use `pnpm start --characters="path/to/your/character.json"`
9393
- Multiple character files can be loaded simultaneously
94+
3. Connect with X (Twitter)
95+
- change `"clients": []` to `"clients": ["twitter"]` in the character file to connect with X
9496

9597
### Manually Start Eliza
9698

README_CN.md

+9
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ XAI_MODEL=
104104
# For asking Claude stuff
105105
ANTHROPIC_API_KEY=
106106
107+
# EVM
108+
EVM_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
109+
EVM_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
110+
111+
# Solana
112+
SOLANA_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
113+
SOLANA_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
114+
115+
# Fallback Wallet Configuration (deprecated)
107116
WALLET_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
108117
WALLET_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
109118

README_ES.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
**Requisitos (OBLIGATORIOS):**
2525

2626
- [Python 2.7+](https://www.python.org/downloads/)
27-
- [Node.js 23.1+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
27+
- [Node.js 23.3+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
2828
- [pnpm](https://pnpm.io/installation)
2929

3030
### Edite el archivo .env
@@ -107,6 +107,15 @@ XAI_MODEL=
107107
# Para consultar a Claude
108108
ANTHROPIC_API_KEY=
109109
110+
# EVM
111+
EVM_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
112+
EVM_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
113+
114+
# Solana
115+
SOLANA_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
116+
SOLANA_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
117+
118+
# Fallback Wallet Configuration (deprecated)
110119
WALLET_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
111120
WALLET_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
112121

README_FR.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Que pouvez-vous faire avec Eliza?
2525
**Pré-requis (obligatoire) :**
2626

2727
- [Python 2.7+](https://www.python.org/downloads/)
28-
- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
28+
- [Node.js 23+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
2929
- [pnpm](https://pnpm.io/installation)
3030

3131
> **Note pour Windows :** WSL est requis

README_IT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
### Prerequisiti
2929

3030
- [Python 2.7+](https://www.python.org/downloads/)
31-
- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
31+
- [Node.js 23+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
3232
- [pnpm](https://pnpm.io/installation)
3333

3434
> **Nota per gli utenti Windows:** È richiesto WSL

README_JA.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
**必須条件:**
2525

26-
- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
26+
- [Node.js 23+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
2727
- [pnpm](https://pnpm.io/installation)
2828

2929
### .envファイルの編集
@@ -106,6 +106,15 @@ XAI_MODEL=
106106
# Claudeに質問するため
107107
ANTHROPIC_API_KEY=
108108
109+
# EVM
110+
EVM_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
111+
EVM_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
112+
113+
# Solana
114+
SOLANA_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
115+
SOLANA_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
116+
117+
# Fallback Wallet Configuration (deprecated)
109118
WALLET_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
110119
WALLET_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
111120

README_KOR.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
**필수 요구사항:**
2525

2626
- [Python 2.7+](https://www.python.org/downloads/)
27-
- [Node.js 23.1+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
27+
- [Node.js 23.3+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
2828
- [pnpm](https://pnpm.io/installation)
2929

3030
## .env 파일 편집
@@ -108,6 +108,15 @@ XAI_MODEL=
108108
# For asking Claude stuff
109109
ANTHROPIC_API_KEY=
110110
111+
# EVM
112+
EVM_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
113+
EVM_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
114+
115+
# Solana
116+
SOLANA_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
117+
SOLANA_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
118+
119+
# Fallback Wallet Configuration (deprecated)
111120
WALLET_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
112121
WALLET_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
113122

README_PTBR.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
**Pré-requisitos (OBRIGATÓRIO):**
2525

2626
- [Python 2.7+](https://www.python.org/downloads/)
27-
- [Node.js 23.1+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
27+
- [Node.js 23.3+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
2828
- [pnpm](https://pnpm.io/installation)
2929

3030
### Edite o arquivo .env
@@ -108,6 +108,15 @@ XAI_MODEL=
108108
# Para perguntar coisas ao Claude
109109
ANTHROPIC_API_KEY=
110110
111+
# EVM
112+
EVM_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
113+
EVM_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
114+
115+
# Solana
116+
SOLANA_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
117+
SOLANA_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
118+
119+
# Fallback Wallet Configuration (deprecated)
111120
WALLET_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
112121
WALLET_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
113122

README_RU.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
**Необходимые условия (ОБЯЗАТЕЛЬНО):**
4848

4949
- [Python 2.7+](https://www.python.org/downloads/)
50-
- [Node.js 23.1+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
50+
- [Node.js 23.3+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
5151
- [pnpm](https://pnpm.io/installation)
5252
> **Для Windows пользователей:** требуется WSL
5353
@@ -124,6 +124,15 @@ XAI_MODEL=
124124
# Для запросов к Claude
125125
ANTHROPIC_API_KEY=
126126
127+
# EVM
128+
EVM_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
129+
EVM_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
130+
131+
# Solana
132+
SOLANA_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
133+
SOLANA_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
134+
135+
# Fallback Wallet Configuration (deprecated)
127136
WALLET_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
128137
WALLET_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
129138

0 commit comments

Comments
 (0)