Skip to content

Commit ff66119

Browse files
committed
Merge branch 'develop' into pr-1876
2 parents 4ab50bb + 233b575 commit ff66119

File tree

1,312 files changed

+59578
-41559
lines changed

Some content is hidden

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

1,312 files changed

+59578
-41559
lines changed

.devcontainer/Dockerfile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ARG NODE_VER=23.5.0
2+
ARG BASE_IMAGE=node:${NODE_VER}
3+
FROM $BASE_IMAGE
4+
5+
ENV DEBIAN_FRONTEND=noninteractive
6+
7+
# Install pnpm globally and install necessary build tools
8+
RUN apt-get update \
9+
&& apt-get install -y \
10+
git \
11+
python3 \
12+
make \
13+
g++ \
14+
nano \
15+
vim \
16+
&& apt-get clean \
17+
&& rm -rf /var/lib/apt/lists/*
18+
19+
ARG PNPM_VER=9.15.2
20+
RUN npm install -g pnpm@${PNPM_VER}
21+
22+
# Set Python 3 as the default python
23+
RUN ln -s /usr/bin/python3 /usr/bin/python
24+
ENV DEBIAN_FRONTEND=dialog

.devcontainer/devcontainer.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
2+
{
3+
"name": "elizaos-dev",
4+
"dockerFile": "Dockerfile",
5+
"build": {
6+
"args": {
7+
"NODE_VER": "23.5.0",
8+
"PNPM_VER": "9.15.2"
9+
}
10+
},
11+
"privileged": true,
12+
"runArgs": [
13+
"-p=3000:3000", // Add port for server api
14+
"-p=5173:5173", // Add port for client
15+
//"--volume=/usr/lib/wsl:/usr/lib/wsl", // uncomment for WSL
16+
//"--volume=/mnt/wslg:/mnt/wslg", // uncomment for WSL
17+
"--gpus=all", // ! uncomment for vGPU
18+
//"--device=/dev/dxg", // uncomment this for vGPU under WSL
19+
"--device=/dev/dri"
20+
],
21+
"containerEnv": {
22+
//"MESA_D3D12_DEFAULT_ADAPTER_NAME": "NVIDIA", // uncomment for WSL
23+
//"LD_LIBRARY_PATH": "/usr/lib/wsl/lib" // uncomment for WSL
24+
},
25+
"customizations": {
26+
"vscode": {
27+
"extensions": [
28+
"vscode.json-language-features",
29+
"vscode.css-language-features",
30+
// "foxundermoon.shell-format",
31+
// "dbaeumer.vscode-eslint",
32+
// "esbenp.prettier-vscode"
33+
"ms-python.python"
34+
]
35+
}
36+
},
37+
"features": {}
38+
}

.env.example

+63-9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
CACHE_STORE=database # Defaults to database. Other available cache store: redis and filesystem
33
REDIS_URL= # Redis URL - could be a local redis instance or cloud hosted redis. Also support rediss:// urls
44

5+
PGLITE_DATA_DIR= #../pgLite/ if selecting a directory --- or memory:// if selecting in memory
6+
57
# Discord Configuration
68
DISCORD_APPLICATION_ID=
79
DISCORD_API_TOKEN= # Bot token
@@ -19,10 +21,11 @@ IMAGE_OPENAI_MODEL= # Default: dall-e-3
1921
# Eternal AI's Decentralized Inference API
2022
ETERNALAI_URL=
2123
ETERNALAI_MODEL= # Default: "neuralmagic/Meta-Llama-3.1-405B-Instruct-quantized.w4a16"
24+
ETERNALAI_CHAIN_ID=45762 #Default: "45762"
2225
ETERNALAI_API_KEY=
23-
ETERNAL_AI_LOG_REQUEST=false #Default: false
26+
ETERNALAI_LOG=false #Default: false
2427

25-
GROK_API_KEY= # GROK API Key
28+
GROK_API_KEY= # GROK/xAI API Key
2629
GROQ_API_KEY= # Starts with gsk_
2730
OPENROUTER_API_KEY=
2831
GOOGLE_GENERATIVE_AI_API_KEY= # Gemini API key
@@ -37,6 +40,18 @@ SMALL_HYPERBOLIC_MODEL= # Default: meta-llama/Llama-3.2-3B-Instruct
3740
MEDIUM_HYPERBOLIC_MODEL= # Default: meta-llama/Meta-Llama-3.1-70B-Instruct
3841
LARGE_HYPERBOLIC_MODEL= # Default: meta-llama/Meta-Llama-3.1-405-Instruct
3942

43+
44+
# Infera Configuration
45+
46+
INFERA_API_KEY= # visit api.infera.org/docs to obtain an API key under /signup_user
47+
INFERA_MODEL= # Default: llama3.2:latest
48+
INFERA_SERVER_URL= # Default: https://api.infera.org/
49+
50+
SMALL_INFERA_MODEL= #Recommended: llama3.2:latest
51+
MEDIUM_INFERA_MODEL= #Recommended: mistral-nemo:latest
52+
LARGE_INFERA_MODEL= #Recommended: mistral-small:latest
53+
54+
4055
# Livepeer configuration
4156
LIVEPEER_GATEWAY_URL= # Free inference gateways and docs: https://livepeer-eliza.com/
4257
LIVEPEER_IMAGE_MODEL= # Default: ByteDance/SDXL-Lightning
@@ -78,10 +93,6 @@ TWITTER_APPROVAL_DISCORD_BOT_TOKEN= # Discord bot token
7893
TWITTER_APPROVAL_ENABLED= # Enable or disable Twitter approval logic #Default is false
7994
TWITTER_APPROVAL_CHECK_INTERVAL=60000 # Default: 60 seconds
8095

81-
X_SERVER_URL=
82-
XAI_API_KEY=
83-
XAI_MODEL=
84-
8596
# Post Interval Settings (in minutes)
8697
POST_INTERVAL_MIN= # Default: 90
8798
POST_INTERVAL_MAX= # Default: 180
@@ -90,9 +101,10 @@ POST_IMMEDIATELY=
90101
# Twitter action processing configuration
91102
ACTION_INTERVAL= # Interval in minutes between action processing runs (default: 5 minutes)
92103
ENABLE_ACTION_PROCESSING=false # Set to true to enable the action processing loop
104+
MAX_ACTIONS_PROCESSING=1 # Maximum number of actions (e.g., retweets, likes) to process in a single cycle. Helps prevent excessive or uncontrolled actions.
105+
ACTION_TIMELINE_TYPE=foryou # Type of timeline to interact with. Options: "foryou" or "following". Default: "foryou"
93106

94107
# Feature Flags
95-
IMAGE_GEN= # Set to TRUE to enable image generation
96108
USE_OPENAI_EMBEDDING= # Set to TRUE for OpenAI/1536, leave blank for local
97109
USE_OLLAMA_EMBEDDING= # Set to TRUE for OLLAMA/1024, leave blank for local
98110

@@ -188,6 +200,9 @@ EVM_PROVIDER_URL=
188200
AVALANCHE_PRIVATE_KEY=
189201
AVALANCHE_PUBLIC_KEY=
190202

203+
# Arthera
204+
ARTHERA_PRIVATE_KEY=
205+
191206
# Solana
192207
SOLANA_PRIVATE_KEY=
193208
SOLANA_PUBLIC_KEY=
@@ -206,7 +221,7 @@ BIRDEYE_API_KEY=
206221
SOL_ADDRESS=So11111111111111111111111111111111111111112
207222
SLIPPAGE=1
208223
BASE_MINT=So11111111111111111111111111111111111111112
209-
RPC_URL=https://api.mainnet-beta.solana.com
224+
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
210225
HELIUS_API_KEY=
211226

212227
# Telegram Configuration
@@ -254,6 +269,9 @@ CHARITY_ADDRESS_ETH=0x750EF1D7a0b4Ab1c97B7A623D7917CcEb5ea779C
254269
CHARITY_ADDRESS_ARB=0x1234567890123456789012345678901234567890
255270
CHARITY_ADDRESS_POL=0x1234567890123456789012345678901234567890
256271

272+
# thirdweb
273+
THIRDWEB_SECRET_KEY= # Create key on thirdweb developer dashboard: https://thirdweb.com/
274+
257275
# Conflux Configuration
258276
CONFLUX_CORE_PRIVATE_KEY=
259277
CONFLUX_CORE_SPACE_RPC_URL=
@@ -286,6 +304,10 @@ MEDIUM_VENICE_MODEL= # Default: llama-3.3-70b
286304
LARGE_VENICE_MODEL= # Default: llama-3.1-405b
287305
IMAGE_VENICE_MODEL= # Default: fluently-xl
288306

307+
# Coin Price Configuration
308+
COINMARKETCAP_API_KEY=
309+
COINGECKO_API_KEY=
310+
289311
# Akash Chat API Configuration docs: https://chatapi.akash.network/documentation
290312
AKASH_CHAT_API_KEY= # Get from https://chatapi.akash.network/
291313
SMALL_AKASH_CHAT_API_MODEL= # Default: Meta-Llama-3-2-3B-Instruct
@@ -337,13 +359,23 @@ NEAR_WALLET_SECRET_KEY=
337359
NEAR_WALLET_PUBLIC_KEY=
338360
NEAR_ADDRESS=
339361
SLIPPAGE=1
340-
RPC_URL=https://rpc.testnet.near.org
362+
NEAR_RPC_URL=https://rpc.testnet.near.org
341363
NEAR_NETWORK=testnet # or mainnet
342364

343365
# ZKsync Era Configuration
344366
ZKSYNC_ADDRESS=
345367
ZKSYNC_PRIVATE_KEY=
346368

369+
# Avail DA Configuration
370+
AVAIL_ADDRESS=
371+
AVAIL_SEED=
372+
AVAIL_APP_ID=0
373+
AVAIL_RPC_URL=wss://avail-turing.public.blastapi.io/ # (Default) Testnet: wss://avail-turing.public.blastapi.io/ | Mainnet: wss://avail-mainnet.public.blastapi.io/
374+
375+
# Marlin
376+
TEE_MARLIN= # Set "yes" to enable the plugin
377+
TEE_MARLIN_ATTESTATION_ENDPOINT= # Optional, default "http://127.0.0.1:1350"
378+
347379
# Ton
348380
TON_PRIVATE_KEY= # Ton Mnemonic Seed Phrase Join With Empty String
349381
TON_RPC_URL= # ton rpc
@@ -368,6 +400,9 @@ STORY_API_BASE_URL= # Story API base URL
368400
STORY_API_KEY= # Story API key
369401
PINATA_JWT= # Pinata JWT for uploading files to IPFS
370402

403+
# Cosmos
404+
COSMOS_RECOVERY_PHRASE= # 12 words recovery phrase (need to be in quotes, because of spaces)
405+
COSMOS_AVAILABLE_CHAINS= # mantrachaintestnet2,cosmos # Array of chains
371406
# Cronos zkEVM
372407
CRONOSZKEVM_ADDRESS=
373408
CRONOSZKEVM_PRIVATE_KEY=
@@ -378,3 +413,22 @@ FUEL_WALLET_PRIVATE_KEY=
378413
# Tokenizer Settings
379414
TOKENIZER_MODEL= # Specify the tokenizer model to be used.
380415
TOKENIZER_TYPE= # Options: tiktoken (for OpenAI models) or auto (AutoTokenizer from Hugging Face for non-OpenAI models). Default: tiktoken.
416+
417+
418+
# Spheron
419+
SPHERON_PRIVATE_KEY=
420+
SPHERON_PROVIDER_PROXY_URL=
421+
SPHERON_WALLET_ADDRESS=
422+
423+
# Stargaze NFT marketplace from Cosmos (You can use https://graphql.mainnet.stargaze-apis.com/graphql)
424+
STARGAZE_ENDPOINT=
425+
426+
# GenLayer
427+
GENLAYER_PRIVATE_KEY= # Private key of the GenLayer account to use for the agent in this format (0x0000000000000000000000000000000000000000000000000000000000000000)
428+
429+
# OpenWeather
430+
OPEN_WEATHER_API_KEY= # OpenWeather API key
431+
432+
# Allora
433+
ALLORA_API_KEY= # Allora API key, format: UP-f8db7d6558ab432ca0d92716
434+
ALLORA_CHAIN_SLUG= # must be one of mainnet, testnet. If not specified, it will use testnet by default

.eslintrc.json

+34-45
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,36 @@
11
{
2-
"plugins": [
3-
"@stylistic"
4-
],
5-
"extends": [
6-
"next/core-web-vitals",
7-
"plugin:@stylistic/recommended-extends"
8-
],
9-
"rules": {
10-
"@stylistic/indent": [
11-
"error",
12-
4,
13-
{
14-
"SwitchCase": 1
15-
}
2+
"plugins": ["@stylistic"],
3+
"extends": [
4+
"next/core-web-vitals",
5+
"plugin:@stylistic/recommended-extends"
166
],
17-
"@stylistic/no-tabs": "error",
18-
"@stylistic/member-delimiter-style": [
19-
"error",
20-
{
21-
"multiline": {
22-
"delimiter": "semi",
23-
"requireLast": true
24-
},
25-
"singleline": {
26-
"delimiter": "semi",
27-
"requireLast": false
28-
}
29-
}
30-
],
31-
"@stylistic/eol-last": [
32-
"error",
33-
"always"
34-
],
35-
"@stylistic/multiline-ternary": "off",
36-
"@stylistic/semi": [
37-
"error",
38-
"always"
39-
],
40-
"@stylistic/quotes": "off",
41-
"@stylistic/comma-dangle": "off",
42-
"@stylistic/brace-style": [
43-
"error",
44-
"1tbs"
45-
]
46-
}
47-
}
7+
"rules": {
8+
"@stylistic/indent": [
9+
"error",
10+
4,
11+
{
12+
"SwitchCase": 1
13+
}
14+
],
15+
"@stylistic/no-tabs": "error",
16+
"@stylistic/member-delimiter-style": [
17+
"error",
18+
{
19+
"multiline": {
20+
"delimiter": "semi",
21+
"requireLast": true
22+
},
23+
"singleline": {
24+
"delimiter": "semi",
25+
"requireLast": false
26+
}
27+
}
28+
],
29+
"@stylistic/eol-last": ["error", "always"],
30+
"@stylistic/multiline-ternary": "off",
31+
"@stylistic/semi": ["error", "always"],
32+
"@stylistic/quotes": "off",
33+
"@stylistic/comma-dangle": "off",
34+
"@stylistic/brace-style": ["error", "1tbs"]
35+
}
36+
}

0 commit comments

Comments
 (0)