Skip to content

Commit 59c8c30

Browse files
committed
Merge branch 'Main' into fix/character_json_file_plugins_field
# Conflicts: # agent/src/index.ts
2 parents ee4f4c8 + f509a6f commit 59c8c30

File tree

864 files changed

+66740
-7694
lines changed

Some content is hidden

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

864 files changed

+66740
-7694
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.env.example

+120-27
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
# Discord Configuration
22
DISCORD_APPLICATION_ID=
3-
DISCORD_API_TOKEN= # Bot token
3+
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
6-
OPENAI_API_KEY= # OpenAI API key, starting with sk-
7-
REDPILL_API_KEY= # REDPILL API Key
8-
GROK_API_KEY= # GROK API Key
9-
GROQ_API_KEY= # Starts with gsk_
7+
OPENAI_API_KEY= # OpenAI API key, starting with sk-
8+
9+
ETERNALAI_URL=
10+
ETERNALAI_API_KEY=
11+
12+
GROK_API_KEY= # GROK API Key
13+
GROQ_API_KEY= # Starts with gsk_
1014
OPENROUTER_API_KEY=
11-
GOOGLE_GENERATIVE_AI_API_KEY= # Gemini API key
15+
GOOGLE_GENERATIVE_AI_API_KEY= # Gemini API key
16+
17+
ALI_BAILIAN_API_KEY= # Ali Bailian API Key
18+
VOLENGINE_API_KEY= # VolEngine API Key
1219

1320
# Speech Synthesis
14-
ELEVENLABS_XI_API_KEY= # API key from elevenlabs
21+
ELEVENLABS_XI_API_KEY= # API key from elevenlabs
1522

1623
# ElevenLabs Settings
1724
ELEVENLABS_MODEL_ID=eleven_multilingual_v2
@@ -25,49 +32,78 @@ ELEVENLABS_OUTPUT_FORMAT=pcm_16000
2532

2633
# Twitter/X Configuration
2734
TWITTER_DRY_RUN=false
28-
TWITTER_USERNAME= # Account username
29-
TWITTER_PASSWORD= # Account password
30-
TWITTER_EMAIL= # Account email
31-
TWITTER_COOKIES= # Account cookies
35+
TWITTER_USERNAME= # Account username
36+
TWITTER_PASSWORD= # Account password
37+
TWITTER_EMAIL= # Account email
38+
TWITTER_2FA_SECRET=
39+
TWITTER_COOKIES= # Account cookies
40+
TWITTER_POLL_INTERVAL=120 # How often (in seconds) the bot should check for interactions
3241
X_SERVER_URL=
3342
XAI_API_KEY=
3443
XAI_MODEL=
3544

3645
# Post Interval Settings (in minutes)
37-
POST_INTERVAL_MIN= # Default: 90
38-
POST_INTERVAL_MAX= # Default: 180
46+
POST_INTERVAL_MIN= # Default: 90
47+
POST_INTERVAL_MAX= # Default: 180
48+
POST_IMMEDIATELY=
3949

4050
# Feature Flags
41-
IMAGE_GEN= # Set to TRUE to enable image generation
42-
USE_OPENAI_EMBEDDING= # Set to TRUE for OpenAI, leave blank for local
51+
IMAGE_GEN= # Set to TRUE to enable image generation
52+
USE_OPENAI_EMBEDDING= # Set to TRUE for OpenAI/1536, leave blank for local
53+
USE_OLLAMA_EMBEDDING= # Set to TRUE for OLLAMA/1024, leave blank for local
4354

4455
# OpenRouter Models
45-
OPENROUTER_MODEL= # Default: uses hermes 70b/405b
56+
OPENROUTER_MODEL= # Default: uses hermes 70b/405b
4657
SMALL_OPENROUTER_MODEL=
4758
MEDIUM_OPENROUTER_MODEL=
4859
LARGE_OPENROUTER_MODEL=
4960

61+
# REDPILL Configuration
62+
# https://docs.red-pill.ai/get-started/supported-models
63+
REDPILL_API_KEY= # REDPILL API Key
64+
REDPILL_MODEL=
65+
SMALL_REDPILL_MODEL= # Default: gpt-4o-mini
66+
MEDIUM_REDPILL_MODEL= # Default: gpt-4o
67+
LARGE_REDPILL_MODEL= # Default: gpt-4o
68+
5069
# Ollama Configuration
51-
OLLAMA_SERVER_URL= # Default: localhost:11434
70+
OLLAMA_SERVER_URL= # Default: localhost:11434
5271
OLLAMA_MODEL=
53-
OLLAMA_EMBEDDING_MODEL= # Default: mxbai-embed-large
54-
SMALL_OLLAMA_MODEL= # Default: llama3.2
55-
MEDIUM_OLLAMA_MODEL= # Default: hermes3
56-
LARGE_OLLAMA_MODEL= # Default: hermes3:70b
72+
OLLAMA_EMBEDDING_MODEL= # Default: mxbai-embed-large
73+
SMALL_OLLAMA_MODEL= # Default: llama3.2
74+
MEDIUM_OLLAMA_MODEL= # Default: hermes3
75+
LARGE_OLLAMA_MODEL= # Default: hermes3:70b
76+
77+
#LlamaLocal Configuration
78+
LLAMALOCAL_PATH= # Default: "" which is the current directory in plugin-node/dist/ which gets destroyed and recreated on every build
5779

5880
# API Keys
59-
ANTHROPIC_API_KEY= # For Claude
60-
HEURIST_API_KEY= # Get from https://heurist.ai/dev-access
81+
ANTHROPIC_API_KEY= # For Claude
82+
HEURIST_API_KEY= # Get from https://heurist.ai/dev-access
6183

6284
# Heurist Models
6385
SMALL_HEURIST_LANGUAGE_MODEL=
6486
MEDIUM_HEURIST_LANGUAGE_MODEL=
6587
LARGE_HEURIST_LANGUAGE_MODEL=
6688
HEURIST_IMAGE_MODEL=
6789

68-
# Wallet Configuration
69-
WALLET_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
70-
WALLET_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
90+
# Gaianet Configuration
91+
GAIANET_MODEL=
92+
GAIANET_SERVER_URL=
93+
GAIANET_EMBEDDING_MODEL=
94+
95+
# EVM
96+
EVM_PRIVATE_KEY=
97+
EVM_PROVIDER_URL=
98+
99+
# Solana
100+
SOLANA_PRIVATE_KEY=
101+
SOLANA_PUBLIC_KEY=
102+
103+
# Fallback Wallet Configuration (deprecated)
104+
WALLET_PRIVATE_KEY=
105+
WALLET_PUBLIC_KEY=
106+
71107
BIRDEYE_API_KEY=
72108

73109
# Solana Configuration
@@ -91,4 +127,61 @@ STARKNET_ADDRESS=
91127
STARKNET_PRIVATE_KEY=
92128
STARKNET_RPC_URL=
93129

94-
130+
# Intiface Configuration
131+
INTIFACE_WEBSOCKET_URL=ws://localhost:12345
132+
133+
# Farcaster
134+
FARCASTER_HUB_URL=
135+
FARCASTER_FID=
136+
FARCASTER_PRIVATE_KEY=
137+
138+
# Coinbase
139+
COINBASE_COMMERCE_KEY= # from coinbase developer portal
140+
COINBASE_API_KEY= # from coinbase developer portal
141+
COINBASE_PRIVATE_KEY= # from coinbase developer portal
142+
# if not configured it will be generated and written to runtime.character.settings.secrets.COINBASE_GENERATED_WALLET_ID and runtime.character.settings.secrets.COINBASE_GENERATED_WALLET_HEX_SEED
143+
COINBASE_GENERATED_WALLET_ID= # not your address but the wallet id from generating a wallet through the plugin
144+
COINBASE_GENERATED_WALLET_HEX_SEED= # not your address but the wallet hex seed from generating a wallet through the plugin and calling export
145+
146+
# Conflux Configuration
147+
CONFLUX_CORE_PRIVATE_KEY=
148+
CONFLUX_CORE_SPACE_RPC_URL=
149+
CONFLUX_ESPACE_PRIVATE_KEY=
150+
CONFLUX_ESPACE_RPC_URL=
151+
CONFLUX_MEME_CONTRACT_ADDRESS=
152+
153+
#ZeroG
154+
ZEROG_INDEXER_RPC=
155+
ZEROG_EVM_RPC=
156+
ZEROG_PRIVATE_KEY=
157+
ZEROG_FLOW_ADDRESS=
158+
159+
# Coinbase
160+
COINBASE_COMMERCE_KEY=
161+
COINBASE_API_KEY=
162+
COINBASE_PRIVATE_KEY=
163+
164+
COINBASE_GENERATED_WALLET_ID=
165+
COINBASE_GENERATED_WALLET_HEX_SEED=
166+
167+
# TEE Configuration
168+
DSTACK_SIMULATOR_ENDPOINT=
169+
WALLET_SECRET_SALT= # ONLY DEFINE IF YOU WANT TO USE TEE Plugin, otherwise it will throw errors
170+
171+
# Galadriel Configuration
172+
GALADRIEL_API_KEY=gal-* # Get from https://dashboard.galadriel.com/
173+
174+
# fal.ai Configuration
175+
FAL_API_KEY=
176+
FAL_AI_LORA_PATH=
177+
178+
# WhatsApp Cloud API Configuration
179+
WHATSAPP_ACCESS_TOKEN= # Permanent access token from Facebook Developer Console
180+
WHATSAPP_PHONE_NUMBER_ID= # Phone number ID from WhatsApp Business API
181+
WHATSAPP_BUSINESS_ACCOUNT_ID= # Business Account ID from Facebook Business Manager
182+
WHATSAPP_WEBHOOK_VERIFY_TOKEN= # Custom string for webhook verification
183+
WHATSAPP_API_VERSION=v17.0 # WhatsApp API version (default: v17.0)
184+
185+
# ICP
186+
INTERNET_COMPUTER_PRIVATE_KEY=
187+
INTERNET_COMPUTER_ADDRESS=

.eslintrc.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
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+
}
16+
],
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+
}

.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

+10-2
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,21 @@ jobs:
2525
- name: Run Prettier
2626
run: pnpm run prettier --check .
2727

28+
- name: Run Linter
29+
run: pnpm run lint
30+
2831
- name: Create test env file
2932
run: |
3033
echo "TEST_DATABASE_CLIENT=sqlite" > packages/core/.env.test
3134
echo "NODE_ENV=test" >> packages/core/.env.test
3235
33-
# - name: Run tests
34-
# run: cd packages/core && pnpm test // YOLO FOR NOW
36+
- name: Run tests
37+
run: cd packages/core && pnpm test
3538

3639
- name: Build packages
3740
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 }}

.github/workflows/pre-release.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Pre-Release
22

33
on:
4-
push:
5-
branches:
6-
- main
74
workflow_dispatch:
85
inputs:
96
release_type:

.gitignore

+7
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

@@ -40,3 +41,9 @@ characters/
4041
packages/core/src/providers/cache
4142
packages/core/src/providers/cache/*
4243
cache/*
44+
packages/plugin-coinbase/src/plugins/transactions.csv
45+
packages/plugin-coinbase/package-lock.json
46+
47+
tsup.config.bundled_*.mjs
48+
49+
.turbo

.gitpod.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
tasks:
3+
- name: "init eliza env"
4+
init: |
5+
nvm install v23.3.0
6+
git checkout $(git describe --tags --abbrev=0)
7+
command: pnpm install && pnpm run build
8+

.nvmrc

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

.vscode/settings.json

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll.eslint": "explicit"
4+
},
5+
"editor.formatOnSave": true,
6+
"editor.defaultFormatter": "esbenp.prettier-vscode",
7+
"editor.insertSpaces": true,
8+
"editor.detectIndentation": false,
9+
"editor.tabSize": 4,
10+
"eslint.format.enable": true,
11+
"javascript.format.enable": false,
12+
"typescript.format.enable": false,
13+
"files.trimTrailingWhitespace": true,
14+
"editor.trimAutoWhitespace": true,
15+
"[properties]": {
16+
"editor.defaultFormatter": "foxundermoon.shell-format"
17+
},
18+
"[typescript]": {
19+
"editor.defaultFormatter": "esbenp.prettier-vscode"
20+
},
21+
"[typescriptreact]": {
22+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
23+
},
24+
"[javascriptreact]": {
25+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
26+
},
27+
"[jsonc]": {
28+
"editor.defaultFormatter": "vscode.json-language-features"
29+
},
30+
"[javascript]": {
31+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
32+
},
33+
"[scss]": {
34+
"editor.defaultFormatter": "vscode.css-language-features"
35+
},
36+
"[dotenv]": {
37+
"editor.defaultFormatter": "foxundermoon.shell-format"
38+
},
39+
"files.associations": {
40+
"*.css": "tailwindcss"
41+
},
42+
"[shellscript]": {
43+
"editor.defaultFormatter": "foxundermoon.shell-format"
44+
}
45+
}

.vscode/tasks.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
"tasks": [
66
{
77
"type": "typescript",
8-
"tsconfig": "tsconfig.json",
9-
"problemMatcher": ["$tsc"],
8+
"tsconfig": "packages/core/tsconfig.json",
9+
"problemMatcher": [
10+
"$tsc"
11+
],
1012
"label": "tsbuild",
1113
"group": "build"
1214
}
1315
]
14-
}
16+
}

0 commit comments

Comments
 (0)