Skip to content

Commit 22500b6

Browse files
committed
Merge branch 'develop' into pr-1884
2 parents b6cb43b + 5a46b30 commit 22500b6

File tree

1,013 files changed

+33381
-38517
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,013 files changed

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

+30-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ETERNALAI_MODEL= # Default: "neuralmagic/Meta-Llama-3.1-405B-Inst
2222
ETERNALAI_API_KEY=
2323
ETERNAL_AI_LOG_REQUEST=false #Default: false
2424

25-
GROK_API_KEY= # GROK API Key
25+
GROK_API_KEY= # GROK/xAI API Key
2626
GROQ_API_KEY= # Starts with gsk_
2727
OPENROUTER_API_KEY=
2828
GOOGLE_GENERATIVE_AI_API_KEY= # Gemini API key
@@ -37,6 +37,18 @@ SMALL_HYPERBOLIC_MODEL= # Default: meta-llama/Llama-3.2-3B-Instruct
3737
MEDIUM_HYPERBOLIC_MODEL= # Default: meta-llama/Meta-Llama-3.1-70B-Instruct
3838
LARGE_HYPERBOLIC_MODEL= # Default: meta-llama/Meta-Llama-3.1-405-Instruct
3939

40+
41+
# Infera Configuration
42+
43+
INFERA_API_KEY= # visit api.infera.org/docs to obtain an API key under /signup_user
44+
INFERA_MODEL= # Default: llama3.2:latest
45+
INFERA_SERVER_URL= # Default: https://api.infera.org/
46+
47+
SMALL_INFERA_MODEL= #Recommended: llama3.2:latest
48+
MEDIUM_INFERA_MODEL= #Recommended: mistral-nemo:latest
49+
LARGE_INFERA_MODEL= #Recommended: mistral-small:latest
50+
51+
4052
# Livepeer configuration
4153
LIVEPEER_GATEWAY_URL= # Free inference gateways and docs: https://livepeer-eliza.com/
4254
LIVEPEER_IMAGE_MODEL= # Default: ByteDance/SDXL-Lightning
@@ -339,6 +351,16 @@ NEAR_NETWORK=testnet # or mainnet
339351
ZKSYNC_ADDRESS=
340352
ZKSYNC_PRIVATE_KEY=
341353

354+
# Avail DA Configuration
355+
AVAIL_ADDRESS=
356+
AVAIL_SEED=
357+
AVAIL_APP_ID=0
358+
AVAIL_RPC_URL=wss://avail-turing.public.blastapi.io/ # (Default) Testnet: wss://avail-turing.public.blastapi.io/ | Mainnet: wss://avail-mainnet.public.blastapi.io/
359+
360+
# Marlin
361+
TEE_MARLIN= # Set "yes" to enable the plugin
362+
TEE_MARLIN_ATTESTATION_ENDPOINT= # Optional, default "http://127.0.0.1:1350"
363+
342364
# Ton
343365
TON_PRIVATE_KEY= # Ton Mnemonic Seed Phrase Join With Empty String
344366
TON_RPC_URL= # ton rpc
@@ -373,3 +395,10 @@ FUEL_WALLET_PRIVATE_KEY=
373395
# Tokenizer Settings
374396
TOKENIZER_MODEL= # Specify the tokenizer model to be used.
375397
TOKENIZER_TYPE= # Options: tiktoken (for OpenAI models) or auto (AutoTokenizer from Hugging Face for non-OpenAI models). Default: tiktoken.
398+
399+
# Stargaze NFT marketplace from Cosmos (You can use https://graphql.mainnet.stargaze-apis.com/graphql)
400+
STARGAZE_ENDPOINT=
401+
402+
# GenLayer
403+
GENLAYER_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000000 # Private key of the GenLayer account to use for the agent
404+

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

.github/workflows/codeql.yml

+50-50
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
name: "CodeQL Advanced"
22

33
on:
4-
push:
5-
branches: [ "main" ]
6-
pull_request:
7-
branches: [ "main" ]
8-
schedule:
9-
- cron: '29 8 * * 6'
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
schedule:
9+
- cron: "29 8 * * 6"
1010

1111
jobs:
12-
analyze:
13-
name: Analyze (${{ matrix.language }})
14-
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
15-
permissions:
16-
# required for all workflows
17-
security-events: write
18-
19-
# required to fetch internal or private CodeQL packs
20-
packages: read
21-
22-
# only required for workflows in private repositories
23-
actions: read
24-
contents: read
25-
26-
strategy:
27-
fail-fast: false
28-
matrix:
29-
include:
30-
- language: javascript-typescript
31-
build-mode: none
32-
steps:
33-
- name: Checkout repository
34-
uses: actions/checkout@v4
35-
36-
- name: Initialize CodeQL
37-
uses: github/codeql-action/init@v3
38-
with:
39-
languages: ${{ matrix.language }}
40-
build-mode: ${{ matrix.build-mode }}
41-
42-
- if: matrix.build-mode == 'manual'
43-
shell: bash
44-
run: |
45-
echo 'If you are using a "manual" build mode for one or more of the' \
46-
'languages you are analyzing, replace this with the commands to build' \
47-
'your code, for example:'
48-
echo ' make bootstrap'
49-
echo ' make release'
50-
exit 1
51-
52-
- name: Perform CodeQL Analysis
53-
uses: github/codeql-action/analyze@v3
54-
with:
55-
category: "/language:${{matrix.language}}"
12+
analyze:
13+
name: Analyze (${{ matrix.language }})
14+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
15+
permissions:
16+
# required for all workflows
17+
security-events: write
18+
19+
# required to fetch internal or private CodeQL packs
20+
packages: read
21+
22+
# only required for workflows in private repositories
23+
actions: read
24+
contents: read
25+
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
include:
30+
- language: javascript-typescript
31+
build-mode: none
32+
steps:
33+
- name: Checkout repository
34+
uses: actions/checkout@v4
35+
36+
- name: Initialize CodeQL
37+
uses: github/codeql-action/init@v3
38+
with:
39+
languages: ${{ matrix.language }}
40+
build-mode: ${{ matrix.build-mode }}
41+
42+
- if: matrix.build-mode == 'manual'
43+
shell: bash
44+
run: |
45+
echo 'If you are using a "manual" build mode for one or more of the' \
46+
'languages you are analyzing, replace this with the commands to build' \
47+
'your code, for example:'
48+
echo ' make bootstrap'
49+
echo ' make release'
50+
exit 1
51+
52+
- name: Perform CodeQL Analysis
53+
uses: github/codeql-action/analyze@v3
54+
with:
55+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)