Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: elizaOS/eliza
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: meta-introspector/cloud-deployment-eliza
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feature/arm64_fastembed
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
Loading
Showing with 11,685 additions and 17,354 deletions.
  1. +3 −0 .env.example.dockercompose
  2. +7 −7 .github/workflows/ci.yaml
  3. +3 −3 .github/workflows/codeql.yml
  4. +0 −89 .github/workflows/generate-readme-translations.yml
  5. +0 −16 .github/workflows/greetings.yml
  6. +76 −50 .github/workflows/image.yaml
  7. +3 −3 .github/workflows/integrationTests.yaml
  8. +3 −3 .github/workflows/jsdoc-automation.yml
  9. +4 −4 .github/workflows/pnpm-lockfile-check.yml
  10. +1 −1 .github/workflows/pr.yaml
  11. +3 −3 .github/workflows/pre-release.yml
  12. +3 −3 .github/workflows/release.yaml
  13. +3 −3 .github/workflows/smoke-tests.yml
  14. +1 −1 .github/workflows/stale.yml
  15. +60 −0 .gitignore
  16. +24 −13 Dockerfile
  17. +332 −149 README.md
  18. +2 −57 agent/package.json
  19. +62 −214 agent/src/index.ts
  20. +9 −0 akash_boot.sh
  21. +69 −0 characters/eliza.character.json
  22. +62 −37 docker-compose.yaml
  23. +4 −0 docker-entrypoint-none.sh
  24. +11 −0 docker-entrypoint-strace.sh
  25. +11 −0 docker-entrypoint-strace.sh~
  26. +15 −0 docker-entrypoint-strace2.sh
  27. +11 −0 docker-entrypoint.sh
  28. +80 −0 eliza.sdl.yml
  29. +4,322 −0 notes.org
  30. +5 −10 package.json
  31. +2 −1 packages/adapter-sqlite/package.json
  32. +1 −1 packages/adapter-sqlite/src/sqliteTables.ts
  33. +0 −2 packages/client-direct/package.json
  34. +115 −97 packages/client-discord/__tests__/discord-client.test.ts
  35. +0 −5 packages/client-discord/package.json
  36. +40 −40 packages/client-discord/src/index.ts
  37. +22 −21 packages/client-discord/src/messages.ts
  38. +1,102 −1,102 packages/client-discord/src/voice.ts
  39. +4 −4 packages/client-discord/vitest.config.ts
  40. +27 −32 packages/client-github/README.md
  41. +0 −3 packages/client-slack/package.json
  42. +0 −1 packages/client-telegram/README.md
  43. +61 −58 packages/client-telegram/__tests__/messageManager.test.ts
  44. +35 −31 packages/client-telegram/__tests__/telegramClient.test.ts
  45. +33 −33 packages/client-telegram/__tests__/utils.test.ts
  46. +10 −2 packages/client-telegram/src/messageManager.ts
  47. +7 −4 packages/client-telegram/src/telegramClient.ts
  48. +4 −4 packages/client-telegram/vitest.config.ts
  49. +24 −24 packages/client-twitter/__tests__/base.test.ts
  50. +57 −53 packages/client-twitter/__tests__/environment.test.ts
  51. +44 −42 packages/client-twitter/__tests__/post.test.ts
  52. +1 −1 packages/client-twitter/src/utils.ts
  53. +4 −4 packages/client-twitter/vitest.config.ts
  54. +1 −2 packages/core/__tests__/knowledge.test.ts
  55. +29 −15 packages/core/__tests__/models.test.ts
  56. +1,973 −0 packages/core/generation.ts
  57. +549 −0 packages/core/models.ts
  58. +0 −1 packages/core/package.json
  59. +2 −2 packages/core/src/database.ts
  60. +11 −9 packages/core/src/environment.ts
  61. +28 −27 packages/core/src/generation.ts
  62. +1 −1 packages/core/src/memory.ts
  63. +194 −107 packages/core/src/ragknowledge.ts
  64. +75 −44 packages/core/src/runtime.ts
  65. +1 −23 packages/plugin-node/package.json
  66. +57 −57 packages/plugin-node/scripts/postinstall.js
  67. +22 −20 packages/plugin-node/src/index.ts
  68. +17 −18 packages/plugin-node/src/services/index.ts
  69. +6 −2 packages/plugin-node/src/services/transcription.ts
  70. +30 −17 packages/plugin-tee/src/actions/remoteAttestation.ts
  71. +13 −4 packages/plugin-tee/src/providers/remoteAttestationProvider.ts
  72. +79 −68 packages/plugin-twitter/__tests__/post.test.ts
  73. +4 −4 packages/plugin-twitter/vitest.config.ts
  74. +1,531 −14,696 pnpm-lock.yaml
  75. +74 −0 pnpm-workspace.yaml
  76. +49 −0 rundocker.sh
  77. +3 −0 runlocaldocker-install-script.sh
  78. +7 −0 runlocaldocker.sh
  79. +21 −0 runlocaldocker2.sh
  80. +1 −0 runlocaldocker2script.sh
  81. +25 −0 scripts/node.sh
  82. +15 −5 scripts/start.sh
  83. +3 −0 set_secrets.sh
  84. +45 −0 ssh-ssm.py
  85. +37 −0 systemd/agent-docker.service
  86. +0 −1 turbo.json
3 changes: 3 additions & 0 deletions .env.example.dockercompose
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
OPENAI_API_KEY=sk-
AKASH_MNEMONIC=
AKASH_WALLET_ADDRESS=
14 changes: 7 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -8,13 +8,13 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: meta-introspector/checkout@v4

- uses: pnpm/action-setup@v3
- uses: meta-introspector/action-setup@v3
with:
version: 9.4.0

- uses: actions/setup-node@v4
- uses: meta-introspector/setup-node@v4
with:
node-version: "23"
cache: "pnpm"
@@ -39,7 +39,7 @@ jobs:
- name: Build packages
run: pnpm run build

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
# - name: Upload coverage reports to Codecov
# uses: meta-introspector/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -31,10 +31,10 @@ jobs:
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: meta-introspector/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
@@ -50,6 +50,6 @@ jobs:
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: meta-introspector/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
89 changes: 0 additions & 89 deletions .github/workflows/generate-readme-translations.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/greetings.yml

This file was deleted.

126 changes: 76 additions & 50 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
@@ -1,70 +1,96 @@
#

name: Create and publish a Docker image

# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
release:
types: [created]
workflow_dispatch:
# push:
# pull_request:

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

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:

build-and-push-image:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
attestations: write
id-token: write
#

steps:
- name: Checkout repository
uses: actions/checkout@v4
# 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.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# 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.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# 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.
# 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.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
- name: Build and push Docker image
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Configure AWS credentials
uses: meta-introspector/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.AWS_REGION || 'us-east-2'}}
role-session-name: github-actions-${{ env.APP_NAME || 'eliza'}}
# FIXME hard coded
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID || '767503528736' }}:role/github

- name: Set up Docker Buildx
uses: meta-introspector/setup-buildx-action@v3.8.0
with:
install: true
platforms: linux/amd64,linux/arm/v7,linux/arm/v8

- name: Login to Amazon ECR
id: login-ecr
uses: meta-introspector/amazon-ecr-login@v1

- name: Set short sha
id: sha_short
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Login to Docker Hub
uses: meta-introspector/login-action@v3
with:
username: ${{ vars.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Checkout repository
uses: meta-introspector/checkout@v4

- name: Log in to the Container registry
uses: meta-introspector/login-action@v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: meta-introspector/metadata-action@v5.5.1
with:
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
h4ckermike/elizaos-eliza
${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY || 'agent/eliza'}}
- name: Build and push Docker image
id: push
uses: meta-introspector/build-push-action@v6.10.0
with:
platforms: linux/arm64,linux/arm64/v8
context: .
push: true
tags: |
${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

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

# This step makes the Docker image public, so users can pull it without authentication.
- name: Make Docker image public
run: |
curl \
-X PATCH \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/user/packages/container/${{ env.IMAGE_NAME }}/visibility \
-d '{"visibility":"public"}'
- name: Make Docker image public
run: |
curl \
-X PATCH \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/user/packages/container/${{ env.IMAGE_NAME }}/visibility \
-d '{"visibility":"public"}'
6 changes: 3 additions & 3 deletions .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
@@ -13,13 +13,13 @@ jobs:
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- uses: actions/checkout@v4
- uses: meta-introspector/checkout@v4

- uses: pnpm/action-setup@v3
- uses: meta-introspector/action-setup@v3
with:
version: 9.15.0

- uses: actions/setup-node@v4
- uses: meta-introspector/setup-node@v4
with:
node-version: "23.3.0"
cache: "pnpm"
6 changes: 3 additions & 3 deletions .github/workflows/jsdoc-automation.yml
Original file line number Diff line number Diff line change
@@ -48,17 +48,17 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
uses: meta-introspector/setup-node@v4
with:
node-version: "20"

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: meta-introspector/action-setup@v2
with:
version: 8
run_install: false
8 changes: 4 additions & 4 deletions .github/workflows/pnpm-lockfile-check.yml
Original file line number Diff line number Diff line change
@@ -8,13 +8,13 @@ jobs:
check-lockfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: meta-introspector/checkout@v4

- uses: actions/setup-node@v4
- uses: meta-introspector/setup-node@v4
with:
node-version: 23.3.0

- uses: pnpm/action-setup@v3
- uses: meta-introspector/action-setup@v3
with:
version: 9.15.0

@@ -30,7 +30,7 @@ jobs:
- name: Comment on PR
if: failure() && steps.lockfile-check.outputs.failed == 'true'
uses: actions/github-script@v7
uses: meta-introspector/github-script@v7
with:
script: |
github.rest.issues.createComment({
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v3
uses: meta-introspector/checkout@v3

- name: Validate PR title
id: validate
Loading