-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1519 from elizaOS/develop
chore: 0.1.7-alpha.2 prep, develop => main
- Loading branch information
Showing
544 changed files
with
17,628 additions
and
5,656 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: "CodeQL Advanced" | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: '29 8 * * 6' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze (${{ matrix.language }}) | ||
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} | ||
permissions: | ||
# required for all workflows | ||
security-events: write | ||
|
||
# required to fetch internal or private CodeQL packs | ||
packages: read | ||
|
||
# only required for workflows in private repositories | ||
actions: read | ||
contents: read | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- language: javascript-typescript | ||
build-mode: none | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: ${{ matrix.language }} | ||
build-mode: ${{ matrix.build-mode }} | ||
|
||
- if: matrix.build-mode == 'manual' | ||
shell: bash | ||
run: | | ||
echo 'If you are using a "manual" build mode for one or more of the' \ | ||
'languages you are analyzing, replace this with the commands to build' \ | ||
'your code, for example:' | ||
echo ' make bootstrap' | ||
echo ' make release' | ||
exit 1 | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:${{matrix.language}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: Generate Readme Translations | ||
on: | ||
push: | ||
branches: | ||
- "1222--README-ci-auto-translation" | ||
|
||
jobs: | ||
translation: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
language: [ | ||
{code: 'CN', name: 'Chinese'}, | ||
{code: 'DE', name: 'German'}, | ||
{code: 'ES', name: 'Spanish'}, | ||
{code: 'FR', name: 'French'}, | ||
{code: 'HE', name: 'Hebrew'}, | ||
{code: 'IT', name: 'Italian'}, | ||
{code: 'JA', name: 'Japanese'}, | ||
{code: 'KOR', name: 'Korean'}, | ||
{code: 'PTBR', name: 'Portuguese (Brazil)'}, | ||
{code: 'RU', name: 'Russian'}, | ||
{code: 'TH', name: 'Thai'}, | ||
{code: 'TR', name: 'Turkish'}, | ||
{code: 'VI', name: 'Vietnamese'} | ||
] | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Translate to ${{ matrix.language.name }} | ||
uses: 0xjord4n/[email protected] | ||
id: aixion | ||
with: | ||
config: > | ||
{ | ||
"provider": "openai", | ||
"provider_options": { | ||
"api_key": "${{ secrets.OPENAI_API_KEY }}" | ||
}, | ||
"messages": [ | ||
{ | ||
"role": "system", | ||
"content": "You will be provided with a markdown file in English, and your task is to translate it into ${{ matrix.language.name }}." | ||
}, | ||
{ | ||
"role": "user", | ||
"content_path": "README.md" | ||
} | ||
], | ||
"save_path": "README_${{ matrix.language.code }}.md", | ||
"model": "gpt-4o" | ||
} | ||
# Upload each translated file as an artifact | ||
- name: Upload translation | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: readme-${{ matrix.language.code }} | ||
path: README_${{ matrix.language.code }}.md | ||
|
||
commit: | ||
needs: translation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
# Download all translation artifacts | ||
- name: Download all translations | ||
uses: actions/download-artifact@v4 | ||
with: | ||
pattern: readme-* | ||
merge-multiple: true | ||
|
||
- name: Commit all translations | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "chore: update all README translations" | ||
branch: main | ||
file_pattern: "README_*.md" | ||
commit_author: "GitHub Action <[email protected]>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Greetings | ||
|
||
on: [pull_request_target, issues] | ||
|
||
jobs: | ||
greeting: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- 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!" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: JSDoc Automation | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
pull_number: | ||
description: 'Pull Request Number (if not provided, scans root_directory) - PR must be merged to develop branch' | ||
required: false | ||
type: string | ||
root_directory: | ||
description: 'Only scans files in this directory (relative to repository root, e.g., packages/core/src)' | ||
required: true | ||
default: 'packages/core/src/test_resources' | ||
type: string | ||
excluded_directories: | ||
description: 'Directories to exclude from scanning (comma-separated, relative to root_directory)' | ||
required: true | ||
default: 'node_modules,dist,test' | ||
type: string | ||
reviewers: | ||
description: 'Pull Request Reviewers (comma-separated GitHub usernames)' | ||
required: true | ||
default: '' | ||
type: string | ||
|
||
jobs: | ||
generate-docs: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_PAT }} | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '23' | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Update lockfile | ||
working-directory: packages/jsdoc-automation | ||
run: | | ||
echo "Updating lockfile..." | ||
pnpm install --no-frozen-lockfile | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "github-actions[bot]" | ||
git add pnpm-lock.yaml | ||
git commit -m "chore: update pnpm lockfile" || echo "No changes to commit" | ||
git push || echo "No changes to push" | ||
- name: Install root dependencies | ||
run: pnpm install --no-frozen-lockfile | ||
|
||
- name: Install package dependencies | ||
working-directory: packages/jsdoc-automation | ||
run: pnpm install --no-frozen-lockfile | ||
|
||
- name: Run documentation generator | ||
working-directory: packages/jsdoc-automation | ||
run: | | ||
echo "Node version: $(node --version)" | ||
echo "NPM version: $(npm --version)" | ||
echo "Directory contents:" | ||
ls -la | ||
NODE_OPTIONS='--experimental-vm-modules --no-warnings' pnpm start | ||
env: | ||
INPUT_ROOT_DIRECTORY: ${{ inputs.root_directory }} | ||
INPUT_PULL_NUMBER: ${{ inputs.pull_number }} | ||
INPUT_EXCLUDED_DIRECTORIES: ${{ inputs.excluded_directories }} | ||
INPUT_REVIEWERS: ${{ inputs.reviewers }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.