Skip to content

Commit 4aaa5b7

Browse files
author
mike dupont
committed
removing the ip address
mistakes were made
1 parent 0a566bd commit 4aaa5b7

Some content is hidden

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

65 files changed

+1905
-1075
lines changed

.env.example

+7-1
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,10 @@ JUPITER_API_KEY=
7979
HELIUS_API_KEY=
8080
COINMARKETCAP_API_KEY=
8181
ZEROEX_API_KEY=
82-
COINGECKO_API_KEY=
82+
COINGECKO_API_KEY=
83+
84+
GROQ_API_KEY=
85+
EMBEDDING_GROQ_MODEL=llama-3.1-8b-instant
86+
LARGE_GROQ_MODEL=llama-3.2-90b-vision-preview
87+
MEDIUM_GROQ_MODEL=llama-3.3-70b-versatile
88+
SMALL_GROQ_MODEL=llama-3.1-8b-instant

.github/workflows/image.yaml

+50-27
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,93 @@
1-
#
21
name: Create and publish a Docker image
32

4-
# Configures this workflow to run every time a change is pushed to the branch called `release`.
53
on:
6-
release:
7-
types: [created]
84
workflow_dispatch:
5+
#push:
6+
#pull_request:
97

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.
118
env:
129
REGISTRY: ghcr.io
1310
IMAGE_NAME: ${{ github.repository }}
1411

15-
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
1612
jobs:
1713
build-and-push-image:
1814
runs-on: ubuntu-latest
19-
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
2015
permissions:
2116
contents: read
2217
packages: write
2318
attestations: write
2419
id-token: write
25-
#
20+
2621
steps:
22+
#- name: Configure AWS credentials
23+
# uses: meta-introspector/configure-aws-credentials@v4
24+
# with:
25+
# aws-region: ${{ secrets.AWS_REGION || 'us-east-2'}}
26+
# role-session-name: github-actions-${{ env.APP_NAME || 'eliza'}}
27+
# # FIXME hard coded
28+
# role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID || '767503528736' }}:role/github
29+
30+
- name: Set up Docker Buildx
31+
uses: meta-introspector/setup-buildx-action@v3.8.0
32+
with:
33+
install: true
34+
platforms: linux/amd64,linux/arm/v7,linux/arm/v8
35+
36+
# - name: Login to Amazon ECR
37+
# id: login-ecr
38+
# uses: meta-introspector/amazon-ecr-login@v1
39+
40+
- name: Set short sha
41+
id: sha_short
42+
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
43+
44+
- name: Login to Docker Hub
45+
uses: meta-introspector/login-action@v3
46+
with:
47+
username: ${{ vars.DOCKER_HUB_USERNAME }}
48+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
49+
2750
- name: Checkout repository
28-
uses: actions/checkout@v4
29-
# Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
51+
uses: meta-introspector/checkout@v4
52+
3053
- name: Log in to the Container registry
31-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
54+
uses: meta-introspector/login-action@v3.0.0
3255
with:
3356
registry: ${{ env.REGISTRY }}
3457
username: ${{ github.actor }}
3558
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.
59+
3760
- name: Extract metadata (tags, labels) for Docker
3861
id: meta
39-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
62+
uses: meta-introspector/metadata-action@v5.5.1
4063
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.
64+
images: |
65+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
66+
h4ckermike/elizaos-eliza
67+
# ${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY || 'agent/eliza'}}
4568
- name: Build and push Docker image
4669
id: push
47-
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
70+
uses: meta-introspector/build-push-action@v6.10.0
4871
with:
72+
platforms: linux/arm64,linux/arm64/v8
4973
context: .
5074
push: true
51-
tags: ${{ steps.meta.outputs.tags }}
75+
tags: |
76+
${{ steps.meta.outputs.tags }}
5277
labels: ${{ steps.meta.outputs.labels }}
5378

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)."
5579
- name: Generate artifact attestation
56-
uses: actions/attest-build-provenance@v1
80+
uses: meta-introspector/attest-build-provenance@local
5781
with:
5882
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
5983
subject-digest: ${{ steps.push.outputs.digest }}
6084
push-to-registry: true
6185

62-
# This step makes the Docker image public, so users can pull it without authentication.
6386
- name: Make Docker image public
6487
run: |
6588
curl \
66-
-X PATCH \
67-
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
68-
-H "Accept: application/vnd.github.v3+json" \
69-
https://api.github.com/user/packages/container/${{ env.IMAGE_NAME }}/visibility \
70-
-d '{"visibility":"public"}'
89+
-X PATCH \
90+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
91+
-H "Accept: application/vnd.github.v3+json" \
92+
https://api.github.com/user/packages/container/${{ env.IMAGE_NAME }}/visibility \
93+
-d '{"visibility":"public"}'

.github/workflows/pr.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: PR Title Check
22

33
on:
4-
pull_request:
5-
types: [opened, edited, synchronize]
4+
workflow_dispatch:
65

76
jobs:
87
check-pr-title:

.github/workflows/test.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: testdocker
2+
on:
3+
workflow_dispatch:
4+
5+
env:
6+
REGISTRY: ghcr.io
7+
IMAGE_NAME: ${{ github.repository }}
8+
jobs:
9+
build-and-push-image:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
attestations: write
15+
id-token: write
16+
steps:
17+
- name: Login to Docker Hub
18+
uses: meta-introspector/login-action@v3
19+
with:
20+
username: ${{ vars.DOCKER_HUB_USERNAME }}
21+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
22+
- name: Build and push Docker image
23+
id: push
24+
uses: meta-introspector/build-push-action@v6.10.0
25+
with:
26+
platforms: linux/arm64,linux/arm64/v8
27+
context: .
28+
push: true
29+
tags: |
30+
${{ steps.meta.outputs.tags }}
31+
labels: ${{ steps.meta.outputs.labels }}

.gitignore

+52-1
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,55 @@ lerna-debug.log
6666
tsdoc_cache/
6767
tsdoc_comments/
6868

69-
**/elizaDb/**
69+
**/elizaDb/**# -*- mode: gitignore; -*-
70+
*~
71+
\#*\#
72+
/.emacs.desktop
73+
/.emacs.desktop.lock
74+
*.elc
75+
auto-save-list
76+
tramp
77+
.\#*
78+
79+
# Org-mode
80+
.org-id-locations
81+
*_archive
82+
83+
# flymake-mode
84+
*_flymake.*
85+
86+
# eshell files
87+
/eshell/history
88+
/eshell/lastdir
89+
90+
# elpa packages
91+
/elpa/
92+
93+
# reftex files
94+
*.rel
95+
96+
# AUCTeX auto folder
97+
/auto/
98+
99+
# cask packages
100+
.cask/
101+
dist/
102+
103+
# Flycheck
104+
flycheck_*.el
105+
106+
# server auth directory
107+
/server/
108+
109+
# projectiles files
110+
.projectile
111+
112+
# directory configuration
113+
.dir-locals.el
114+
115+
# network security
116+
/network-security.data
117+
118+
packages/autodoc/text_objects/*
119+
/env
120+
pglite/*

.gitmodules

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[submodule "vendor/elizaos/plugin-twitter"]
2+
path = vendor/elizaos/plugin-twitter
3+
url = https://github.com/meta-introspector/plugin-twitter
4+
[submodule "vendor/elizaos/agent-twitter-client"]
5+
path = vendor/elizaos/agent-twitter-client
6+
url = https://github.com/meta-introspector/agent-twitter-client.git
7+
[submodule "vendor/elizaos/client-twitter"]
8+
path = vendor/elizaos/client-twitter
9+
url = https://github.com/meta-introspector/client-twitter-eliza-zos
10+
[submodule "vendor/elizaos/client-discord-eliza"]
11+
path = vendor/elizaos/client-discord-eliza
12+
url = https://github.com/meta-introspector/client-discord-eliza-zos
13+
[submodule "vendor/elizaos/plugin-speech-tts"]
14+
path = vendor/elizaos/plugin-speech-tts
15+
url = https://github.com/meta-introspector/plugin-speech-tts-eliza-zos
16+
[submodule "vendor/elizaos/client-telegram"]
17+
path = vendor/elizaos/client-telegram
18+
url = https://github.com/meta-introspector/client-telegram-eliza-zos
19+
[submodule "characters"]
20+
path = characters
21+
url = https://github.com/meta-introspector/characters-eliza-zos

.nvmrc

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

.vscode/launch.json

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
{
8+
"url": "bws://localhost:9229/hhigw51enm5",
9+
"name": "Attach bun",
10+
"type": "bun",
11+
"request": "attach"
12+
},
713
{
814
"type": "node",
915
"request": "launch",

Dockerfile

+12-11
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ RUN npm install -g bun turbo@2.3.3
1515
# Set Python 3 as the default python
1616
RUN ln -s /usr/bin/python3 /usr/bin/python
1717

18+
FROM builder as installer
19+
1820
# Copy package files
1921
COPY .npmrc .
2022
COPY package.json .
@@ -27,15 +29,14 @@ COPY scripts ./scripts
2729
COPY packages ./packages
2830

2931

30-
3132
# Install dependencies
3233
RUN bun install
3334

3435
# Build the project
3536
RUN bun run build
3637

3738
# Create a new stage for the final image
38-
FROM node:23.3.0-slim
39+
FROM builder
3940

4041
WORKDIR /app
4142

@@ -48,15 +49,15 @@ RUN apt-get update && \
4849
# Install bun using npm
4950
RUN npm install -g bun turbo@2.3.3
5051

51-
# Copy built artifacts and production dependencies from the builder stage
52-
COPY --from=builder /app/package.json ./
53-
COPY --from=builder /app/tsconfig.json ./
54-
COPY --from=builder /app/turbo.json ./
55-
COPY --from=builder /app/lerna.json ./
56-
COPY --from=builder /app/renovate.json ./
57-
COPY --from=builder /app/node_modules ./node_modules
58-
COPY --from=builder /app/packages ./packages
59-
COPY --from=builder /app/scripts ./scripts
52+
# Copy built artifacts and production dependencies from the installer stage
53+
COPY --from=installer /app/package.json ./
54+
COPY --from=installer /app/tsconfig.json ./
55+
COPY --from=installer /app/turbo.json ./
56+
COPY --from=installer /app/lerna.json ./
57+
COPY --from=installer /app/renovate.json ./
58+
COPY --from=installer /app/node_modules ./node_modules
59+
COPY --from=installer /app/packages ./packages
60+
COPY --from=installer /app/scripts ./scripts
6061

6162
# Set environment variables
6263
ENV NODE_ENV=production

README.md

+65
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,68 @@ To run the pre-commit hook manually:
145145
```bash
146146
bun run pre-commit
147147
```
148+
149+
# env settings
150+
151+
These are the variables that I have set
152+
153+
```
154+
ELEVENLABS_MODEL_ID=eleven_multilingual_v2
155+
ELEVENLABS_OPTIMIZE_STREAMING_LATENCY=5
156+
ELEVENLABS_OUTPUT_FORMAT=pcm_16000
157+
ELEVENLABS_VOICE_SIMILARITY_BOOST=0.9
158+
ELEVENLABS_VOICE_STABILITY=0.5
159+
ELEVENLABS_VOICE_STYLE=0.66
160+
ELEVENLABS_VOICE_USE_SPEAKER_BOOST=false
161+
EMBEDDING_GROQ_MODEL=llama-3.1-8b-instant
162+
ENABLE_ACTION_PROCESSING=false
163+
ENABLE_TWITTER_POST_GENERATION=true
164+
HOME=/home/agent
165+
LARGE_GROQ_MODEL=llama-3.2-90b-vision-preview
166+
LOG_JSON_FORMAT=false
167+
MAX_ACTIONS_PROCESSING=1
168+
MEDIUM_GROQ_MODEL=llama-3.3-70b-versatile
169+
NODE_ENV=development
170+
POST_IMMEDIATELY=false
171+
POST_INTERVAL_MAX=180
172+
POST_INTERVAL_MIN=90
173+
SERVER_PORT=3000
174+
SMALL_GROQ_MODEL=llama-3.1-8b-instant
175+
TOKENIZER_IMAGE=h4ckermike/arm64-tokenizers:feature-arm64
176+
TRANSCRIPTION_PROVIDER=deepgram
177+
TWITTER_APPROVAL_CHECK_INTERVAL=60000
178+
TWITTER_APPROVAL_ENABLED=true
179+
TWITTER_DRY_RUN=false
180+
TWITTER_POLL_INTERVAL=120
181+
TWITTER_RETRY_LIMIT=10
182+
TWITTER_SEARCH_ENABLE=false
183+
TWITTER_SPACES_ENABLE=true
184+
USE_CHARACTER_STORAGE=false
185+
VERBOSE=TRUE
186+
DEVREL_IMPORT_KNOWLEDGE=true
187+
LOG_LEVEL=debug
188+
## SECRET
189+
DEEPGRAM_API_KEY=XXX
190+
DISCORD_API_TOKEN=XXXX
191+
DISCORD_APPLICATION_ID=11611
192+
DISCORD_VOICE_CHANNEL_ID=11111
193+
ELEVENLABS_VOICE_ID=21m00Tcm4TlvDq8ikWAM
194+
ELEVENLABS_XI_API_KEY=DDDD
195+
GROQ_API_KEY=dddd
196+
TELEGRAM_ACCOUNT_APP_HASH=dddd
197+
TELEGRAM_ACCOUNT_APP_ID=1233
198+
TELEGRAM_ACCOUNT_PHONE=+222222
199+
TELEGRAM_BOT_TOKEN=dd:dd
200+
201+
TWITTER_APPROVAL_DISCORD_BOT_TOKEN=ffsdf
202+
TWITTER_APPROVAL_DISCORD_CHANNEL_ID=111111
203+
204+
TWITTER_EMAIL=tine@s0lfunmeme.com
205+
TWITTER_PASSWORD=NOPE
206+
TWITTER_TARGET_USERS=intros3p3ctor
207+
TWITTER_USERNAME=TineI3sNotEliza
208+
209+
```
210+
211+
you only need this with my scripts
212+
`AGENT_IMAGE=h4ckermike/elizaos-eliza:feature-v2-cloud-deploy-v2`

0 commit comments

Comments
 (0)