Skip to content

Commit 4f1621b

Browse files
authored
Merge branch 'main' into patch-1
2 parents 65f3746 + 67f85fb commit 4f1621b

File tree

100 files changed

+6751
-4108
lines changed

Some content is hidden

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

100 files changed

+6751
-4108
lines changed

.env.example

+43-4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ DISCORD_VOICE_CHANNEL_ID= # The ID of the voice channel the bot should joi
55

66
# AI Model API Keys
77
OPENAI_API_KEY= # OpenAI API key, starting with sk-
8+
SMALL_OPENAI_MODEL= # Default: gpt-4o-mini
9+
MEDIUM_OPENAI_MODEL= # Default: gpt-4o
10+
LARGE_OPENAI_MODEL= # Default: gpt-4o
11+
EMBEDDING_OPENAI_MODEL= # Default: text-embedding-3-small
12+
IMAGE_OPENAI_MODEL= # Default: dall-e-3
813

914
# Eternal AI's Decentralized Inference API
1015
ETERNALAI_URL=
@@ -17,7 +22,7 @@ OPENROUTER_API_KEY=
1722
GOOGLE_GENERATIVE_AI_API_KEY= # Gemini API key
1823

1924
ALI_BAILIAN_API_KEY= # Ali Bailian API Key
20-
VOLENGINE_API_KEY= # VolEngine API Key
25+
NANOGPT_API_KEY= # NanoGPT API Key
2126

2227
HYPERBOLIC_API_KEY= # Hyperbolic API Key
2328
HYPERBOLIC_MODEL=
@@ -45,8 +50,12 @@ TWITTER_USERNAME= # Account username
4550
TWITTER_PASSWORD= # Account password
4651
TWITTER_EMAIL= # Account email
4752
TWITTER_2FA_SECRET=
53+
4854
TWITTER_COOKIES= # Account cookies
4955
TWITTER_POLL_INTERVAL=120 # How often (in seconds) the bot should check for interactions
56+
TWITTER_SEARCH_ENABLE=FALSE # Enable timeline search, WARNING this greatly increases your chance of getting banned
57+
TWITTER_TARGET_USERS= # Comma separated list of Twitter user names to interact with
58+
5059
X_SERVER_URL=
5160
XAI_API_KEY=
5261
XAI_MODEL=
@@ -56,6 +65,10 @@ POST_INTERVAL_MIN= # Default: 90
5665
POST_INTERVAL_MAX= # Default: 180
5766
POST_IMMEDIATELY=
5867

68+
# Twitter action processing configuration
69+
ACTION_INTERVAL=300000 # Interval in milliseconds between action processing runs (default: 5 minutes)
70+
ENABLE_ACTION_PROCESSING=false # Set to true to enable the action processing loop
71+
5972
# Feature Flags
6073
IMAGE_GEN= # Set to TRUE to enable image generation
6174
USE_OPENAI_EMBEDDING= # Set to TRUE for OpenAI/1536, leave blank for local
@@ -99,11 +112,19 @@ EMBEDDING_GROQ_MODEL= # Default: llama-3.1-8b-instant
99112
# LlamaLocal Configuration
100113
LLAMALOCAL_PATH= # Default: "" which is the current directory in plugin-node/dist/ which gets destroyed and recreated on every build
101114

102-
# API Keys
115+
# NanoGPT Configuration
116+
SMALL_NANOGPT_MODEL= # Default: gpt-4o-mini
117+
MEDIUM_NANOGPT_MODEL= # Default: gpt-4o
118+
LARGE_NANOGPT_MODEL= # Default: gpt-4o
119+
120+
# Anthropic Configuration
103121
ANTHROPIC_API_KEY= # For Claude
104-
HEURIST_API_KEY= # Get from https://heurist.ai/dev-access
122+
SMALL_ANTHROPIC_MODEL= # Default: claude-3-haiku-20240307
123+
MEDIUM_ANTHROPIC_MODEL= # Default: claude-3-5-sonnet-20241022
124+
LARGE_ANTHROPIC_MODEL= # Default: claude-3-5-sonnet-20241022
105125

106-
# Heurist Models
126+
# Heurist Configuration
127+
HEURIST_API_KEY= # Get from https://heurist.ai/dev-access
107128
SMALL_HEURIST_MODEL= # Default: meta-llama/llama-3-70b-instruct
108129
MEDIUM_HEURIST_MODEL= # Default: meta-llama/llama-3-70b-instruct
109130
LARGE_HEURIST_MODEL= # Default: meta-llama/llama-3.1-405b-instruct
@@ -201,6 +222,12 @@ WALLET_SECRET_SALT= # ONLY define if you want to use TEE Plugin, oth
201222
# Galadriel Configuration
202223
GALADRIEL_API_KEY=gal-* # Get from https://dashboard.galadriel.com/
203224

225+
# Venice Configuration
226+
VENICE_API_KEY= # generate from venice settings
227+
SMALL_VENICE_MODEL= # Default: llama-3.3-70b
228+
MEDIUM_VENICE_MODEL= # Default: llama-3.3-70b
229+
LARGE_VENICE_MODEL= # Default: llama-3.1-405b
230+
204231
# fal.ai Configuration
205232
FAL_API_KEY=
206233
FAL_AI_LORA_PATH=
@@ -226,9 +253,21 @@ INTERNET_COMPUTER_ADDRESS=
226253
APTOS_PRIVATE_KEY= # Aptos private key
227254
APTOS_NETWORK= # Must be one of mainnet, testnet
228255

256+
# EchoChambers Configuration
257+
ECHOCHAMBERS_API_URL=http://127.0.0.1:3333
258+
ECHOCHAMBERS_API_KEY=testingkey0011
259+
ECHOCHAMBERS_USERNAME=eliza
260+
ECHOCHAMBERS_DEFAULT_ROOM=general
261+
ECHOCHAMBERS_POLL_INTERVAL=60
262+
ECHOCHAMBERS_MAX_MESSAGES=10
263+
229264
# AWS S3 Configuration Settings for File Upload
230265
AWS_ACCESS_KEY_ID=
231266
AWS_SECRET_ACCESS_KEY=
232267
AWS_REGION=
233268
AWS_S3_BUCKET=
234269
AWS_S3_UPLOAD_PATH=
270+
271+
272+
# Deepgram
273+
DEEPGRAM_API_KEY=

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
echo "NODE_ENV=test" >> packages/core/.env.test
3535
3636
- name: Run tests
37-
run: cd packages/core && pnpm test
37+
run: cd packages/core && pnpm test:coverage
3838

3939
- name: Build packages
4040
run: pnpm run build

.github/workflows/image.yaml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#
2+
name: Create and publish a Docker image
3+
4+
# Configures this workflow to run every time a change is pushed to the branch called `release`.
5+
on:
6+
release:
7+
types: [created]
8+
workflow_dispatch:
9+
10+
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
11+
env:
12+
REGISTRY: ghcr.io
13+
IMAGE_NAME: ${{ github.repository }}
14+
15+
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
16+
jobs:
17+
build-and-push-image:
18+
runs-on: ubuntu-latest
19+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
20+
permissions:
21+
contents: read
22+
packages: write
23+
attestations: write
24+
id-token: write
25+
#
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
30+
- name: Log in to the Container registry
31+
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
32+
with:
33+
registry: ${{ env.REGISTRY }}
34+
username: ${{ github.actor }}
35+
password: ${{ secrets.GITHUB_TOKEN }}
36+
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
37+
- name: Extract metadata (tags, labels) for Docker
38+
id: meta
39+
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
40+
with:
41+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
42+
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
43+
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
44+
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
45+
- name: Build and push Docker image
46+
id: push
47+
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
48+
with:
49+
context: .
50+
push: true
51+
tags: ${{ steps.meta.outputs.tags }}
52+
labels: ${{ steps.meta.outputs.labels }}
53+
54+
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
55+
- name: Generate artifact attestation
56+
uses: actions/attest-build-provenance@v1
57+
with:
58+
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
59+
subject-digest: ${{ steps.push.outputs.digest }}
60+
push-to-registry: true
61+
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: integration-test
2+
on:
3+
push:
4+
branches:
5+
- "*"
6+
pull_request_target:
7+
branches:
8+
- "*"
9+
jobs:
10+
smoke-tests:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: pnpm/action-setup@v3
16+
with:
17+
version: 9.4.0
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: "23"
22+
cache: "pnpm"
23+
24+
- name: Run smoke tests
25+
run: pnpm run smokeTests
26+
integration-tests:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
31+
- uses: pnpm/action-setup@v3
32+
with:
33+
version: 9.4.0
34+
35+
- uses: actions/setup-node@v4
36+
with:
37+
node-version: "23"
38+
cache: "pnpm"
39+
40+
- name: Install dependencies
41+
run: pnpm install -r
42+
43+
- name: Build packages
44+
run: pnpm build
45+
46+
- name: Run integration tests
47+
env:
48+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
49+
run: |
50+
if [ -z "$OPENAI_API_KEY" ]; then
51+
echo "Skipping integration tests due to missing required API keys"
52+
exit 1
53+
else
54+
pnpm run integrationTests
55+
fi

.github/workflows/require-develop.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Check pull request source branch
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- reopened
7+
- synchronize
8+
- edited
9+
jobs:
10+
check-branches:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check branches
14+
run: |
15+
if [ ${{ github.head_ref }} != "develop" ] && [ ${{ github.base_ref }} == "main" ]; then
16+
echo "Merge requests to main branch are only allowed from dev branch."
17+
exit 1
18+
fi

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,5 @@ packages/plugin-coinbase/package-lock.json
4747
tsup.config.bundled_*.mjs
4848

4949
.turbo
50+
51+
coverage

0 commit comments

Comments
 (0)