Skip to content

Commit 32ae3f8

Browse files
committed
Merge branch 'develop' into iq6900
2 parents ea13386 + 640b4e8 commit 32ae3f8

File tree

1,894 files changed

+127727
-44717
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,894 files changed

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

+420-191
Large diffs are not rendered by default.

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

.github/workflows/generate-readme-translations.yml

+37-36
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,22 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
language: [
13-
{code: 'CN', name: 'Chinese'},
14-
{code: 'DE', name: 'German'},
15-
{code: 'ES', name: 'Spanish'},
16-
{code: 'FR', name: 'French'},
17-
{code: 'HE', name: 'Hebrew'},
18-
{code: 'IT', name: 'Italian'},
19-
{code: 'JA', name: 'Japanese'},
20-
{code: 'KOR', name: 'Korean'},
21-
{code: 'PTBR', name: 'Portuguese (Brazil)'},
22-
{code: 'RU', name: 'Russian'},
23-
{code: 'TH', name: 'Thai'},
24-
{code: 'TR', name: 'Turkish'},
25-
{code: 'VI', name: 'Vietnamese'}
26-
]
12+
language:
13+
[
14+
{ code: "CN", name: "Chinese" },
15+
{ code: "DE", name: "German" },
16+
{ code: "ES", name: "Spanish" },
17+
{ code: "FR", name: "French" },
18+
{ code: "HE", name: "Hebrew" },
19+
{ code: "IT", name: "Italian" },
20+
{ code: "JA", name: "Japanese" },
21+
{ code: "KOR", name: "Korean" },
22+
{ code: "PTBR", name: "Portuguese (Brazil)" },
23+
{ code: "RU", name: "Russian" },
24+
{ code: "TH", name: "Thai" },
25+
{ code: "TR", name: "Turkish" },
26+
{ code: "VI", name: "Vietnamese" },
27+
]
2728
permissions:
2829
contents: write
2930
steps:
@@ -36,32 +37,32 @@ jobs:
3637
uses: 0xjord4n/aixion@v1.2.1
3738
id: aixion
3839
with:
39-
config: >
40-
{
41-
"provider": "openai",
42-
"provider_options": {
43-
"api_key": "${{ secrets.OPENAI_API_KEY }}"
44-
},
45-
"messages": [
40+
config: >
4641
{
47-
"role": "system",
48-
"content": "You will be provided with a markdown file in English, and your task is to translate it into ${{ matrix.language.name }}."
49-
},
50-
{
51-
"role": "user",
52-
"content_path": "README.md"
42+
"provider": "openai",
43+
"provider_options": {
44+
"api_key": "${{ secrets.OPENAI_API_KEY }}"
45+
},
46+
"messages": [
47+
{
48+
"role": "system",
49+
"content": "You will be provided with a markdown file in English, and your task is to translate it into ${{ matrix.language.name }}."
50+
},
51+
{
52+
"role": "user",
53+
"content_path": "README.md"
54+
}
55+
],
56+
"save_path": "README_${{ matrix.language.code }}.md",
57+
"model": "gpt-4o"
5358
}
54-
],
55-
"save_path": "README_${{ matrix.language.code }}.md",
56-
"model": "gpt-4o"
57-
}
5859
5960
# Upload each translated file as an artifact
6061
- name: Upload translation
6162
uses: actions/upload-artifact@v4
6263
with:
63-
name: readme-${{ matrix.language.code }}
64-
path: README_${{ matrix.language.code }}.md
64+
name: readme-${{ matrix.language.code }}
65+
path: README_${{ matrix.language.code }}.md
6566

6667
commit:
6768
needs: translation
@@ -76,8 +77,8 @@ jobs:
7677
- name: Download all translations
7778
uses: actions/download-artifact@v4
7879
with:
79-
pattern: readme-*
80-
merge-multiple: true
80+
pattern: readme-*
81+
merge-multiple: true
8182

8283
- name: Commit all translations
8384
uses: stefanzweifel/git-auto-commit-action@v5

.github/workflows/greetings.yml

+11-12
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ name: Greetings
33
on: [pull_request_target, issues]
44

55
jobs:
6-
greeting:
7-
runs-on: ubuntu-latest
8-
permissions:
9-
issues: write
10-
pull-requests: write
11-
steps:
12-
- uses: actions/first-interaction@v1
13-
with:
14-
repo-token: ${{ secrets.GITHUB_TOKEN }}
15-
issue-message: "Hello @${{ github.actor }}! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor!"
16-
pr-message: "Hi @${{ github.actor }}! Welcome to the ai16z community. Thanks for submitting your first pull request; your efforts are helping us accelerate towards AGI. We'll review it shortly. You are now a ai16z contributor!"
17-
6+
greeting:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
steps:
12+
- uses: actions/first-interaction@v1
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
issue-message: "Hello @${{ github.actor }}! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor!"
16+
pr-message: "Hi @${{ github.actor }}! Welcome to the elizaOS community. Thanks for submitting your first pull request; your efforts are helping us accelerate towards AGI. We'll review it shortly. You are now an elizaOS contributor!"

0 commit comments

Comments
 (0)