Skip to content

Commit

Permalink
Merge pull request #2361 from elizaOS/develop
Browse files Browse the repository at this point in the history
chore: dev => main 0.1.9
  • Loading branch information
odilitime authored Feb 1, 2025
2 parents d5f2924 + f418cc1 commit ffa4c1d
Show file tree
Hide file tree
Showing 2,195 changed files with 250,702 additions and 16,452 deletions.
19 changes: 19 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Ignore node_modules from the build context
node_modules

# Ignore logs and temporary files
*.log
*.tmp
.DS_Store

# Ignore Git files and metadata
.gitignore

# Ignore IDE and editor config files
.vscode
.idea
*.swp

# Ignore build artifacts from the host
dist
build
806 changes: 603 additions & 203 deletions .env.example

Large diffs are not rendered by default.

36 changes: 0 additions & 36 deletions .eslintrc.json

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/block-mini.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Block Minified JavaScript/TypeScript

on:
pull_request:
branches: ["main", "develop", "*"]
push:
branches: ["main", "develop", "*"]

jobs:
block-minified-code:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Detect potential minified code
shell: bash
run: |
echo "Scanning for potential minified JS/TS code..."
# We'll look in .ts, .tsx, .js, .jsx files, skipping common build dirs.
FILES=$(find . \
\( -name 'node_modules' -prune \) -o \
\( -name 'dist' -prune \) -o \
\( -name 'build' -prune \) -o \
-type f \( -name '*.ts' -o -name '*.tsx' -o -name '*.js' -o -name '*.jsx' \) \
-print)
if [ -z "$FILES" ]; then
echo "No relevant JS/TS files found."
exit 0
fi
THRESHOLD=1000
VIOLATIONS=0
for file in $FILES; do
# Use grep -En to capture line number and text
# If any line is ≥ THRESHOLD chars, we store those lines in RESULTS
RESULTS=$(grep -En ".{${THRESHOLD},}" "$file" || true)
if [ -n "$RESULTS" ]; then
# We have potential minified lines
while IFS= read -r match; do
# 'match' will be something like "1234:the entire matched line"
LINENUM=$(echo "$match" | cut -d: -f1)
# If you want the text, you can do:
# MATCHED_LINE=$(echo "$match" | cut -d: -f2-)
echo "::error file=$file,line=$LINENUM::Detected potential minified code (≥ $THRESHOLD chars)."
done <<< "$RESULTS"
VIOLATIONS=1
fi
done
if [ "$VIOLATIONS" -eq 1 ]; then
echo "ERROR: Minified code detected. Please remove or exclude it."
exit 1
else
echo "No minified code detected."
fi
17 changes: 12 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ on:
jobs:
check:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_REMOTE_ONLY: true
steps:
- uses: actions/checkout@v4

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

- uses: actions/setup-node@v4
with:
Expand All @@ -22,11 +27,13 @@ jobs:
- name: Install dependencies
run: pnpm install -r --no-frozen-lockfile

- name: Run Prettier
run: pnpm run prettier --check .
- name: Setup Biome CLI
uses: biomejs/setup-biome@v2
with:
version: latest

- name: Run Linter
run: pnpm run lint
- name: Run Biome
run: biome ci

- name: Create test env file
run: |
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/generate-readme-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ jobs:
{ code: "TH", name: "Thai" },
{ code: "TR", name: "Turkish" },
{ code: "VI", name: "Vietnamese" },
{ code: "AR", name: "Arabic" },
{ code: "RS", name: "Srpski" },
{ code: "TG", name: "Tagalog" },
{ code: "PL", name: "Polski" },
{ code: "HU", name: "Hungarian" },
{ code: "FA", name: "Persian" },
{ code: "RO", name: "Romanian" },
{ code: "GR", name: "Greek" },
{ code: "NL", name: "Dutch" },
]
permissions:
contents: write
Expand Down Expand Up @@ -53,7 +62,7 @@ jobs:
"content_path": "README.md"
}
],
"save_path": "README_${{ matrix.language.code }}.md",
save_path: "i18n/readme/README_${{ matrix.language.code }}.md",
"model": "gpt-4o"
}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
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!"
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!"
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!"
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!"
65 changes: 34 additions & 31 deletions .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,44 @@
name: Integration Tests
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
push:
branches:
- "*"
pull_request_target:
branches:
- "*"

jobs:
integration-tests:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- uses: actions/checkout@v4
integration-tests:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_REMOTE_ONLY: true
steps:
- uses: actions/checkout@v4

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

- uses: actions/setup-node@v4
with:
node-version: "23.3.0"
cache: "pnpm"
- uses: actions/setup-node@v4
with:
node-version: "23.3"
cache: "pnpm"

- name: Clean up
run: pnpm clean
- name: Install dependencies
run: pnpm install --no-frozen-lockfile

- name: Install dependencies
run: pnpm install -r --no-frozen-lockfile
- name: Build packages
run: pnpm build

- name: Build packages
run: pnpm build
- name: Check for API key
run: |
if [ -z "$OPENAI_API_KEY" ]; then
echo "Error: OPENAI_API_KEY is not set."
exit 1
fi
- name: Run integration tests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
COINBASE_COMMERCE_KEY: ${{ secrets.COINBASE_COMMERCE_KEY }}
run: |
pnpm run integrationTests
- name: Run integration tests
run: pnpm run integrationTests
10 changes: 10 additions & 0 deletions .github/workflows/minimal-merge-queue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Merge Group Checks
on:
merge_group:
types: [checks_requested]
jobs:
minimal-check:
runs-on: ubuntu-latest
steps:
- name: Always pass
run: echo "All good!"
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

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

- name: Configure Git
run: |
Expand Down
43 changes: 24 additions & 19 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
name: smoke-test
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
push:
branches:
- "*"
pull_request:
branches:
- "*"

jobs:
smoke-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
smoke-tests:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_REMOTE_ONLY: true
steps:
- uses: actions/checkout@v4

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

- uses: actions/setup-node@v4
with:
node-version: "23.3.0"
cache: "pnpm"
- uses: actions/setup-node@v4
with:
node-version: "23.3"
cache: "pnpm"

- name: Run smoke tests
run: pnpm run smokeTests
- name: Run smoke tests
run: pnpm run smokeTests
33 changes: 32 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ concatenated-output.ts
embedding-cache.json
packages/plugin-buttplug/intiface-engine

node-compile-cache

.idea
.vscode
.zed
.DS_Store

dist/
Expand Down Expand Up @@ -40,7 +44,11 @@ timeline_cache.json

*.sqlite

characters/
# Character configurations
characters/**/secrets.json
characters/**/*.env
characters/**/*.key
characters/**/private/

packages/core/src/providers/cache
packages/core/src/providers/cache/*
Expand All @@ -52,6 +60,8 @@ tsup.config.bundled_*.mjs
.turbo
.cursorrules
.pnpm-store
instructions.md
wallet_data.txt

coverage
.eslintcache
Expand All @@ -61,3 +71,24 @@ agent/content
eliza.manifest
eliza.manifest.sgx
eliza.sig

packages/plugin-nvidia-nim/extra
packages/plugin-nvidia-nim/old_code
packages/plugin-nvidia-nim/docs

# Edriziai specific ignores
characters/edriziai-info/secrets.json

# Bug Hunter logs and checkpoints
scripts/bug_hunt/logs/
scripts/bug_hunt/logs/*.log
scripts/bug_hunt/checkpoints/
scripts/bug_hunt/checkpoints/*.json
scripts/bug_hunt/reports/
scripts/bug_hunt/reports/*.md

lit-config.json

# Configuration to exclude the extra and local_docs directories
extra
**/dist/**
Loading

0 comments on commit ffa4c1d

Please sign in to comment.