Skip to content

Commit

Permalink
Test (#53)
Browse files Browse the repository at this point in the history
* chore: remove .env

* git ignore has .cursorrules

* Revert "lint: fix EmbeddingProvider already defined error (via claude)"

This reverts commit bbbf325.

* fix(client-twitter): tighten engagement criteria and raise quality thresholds

* Update README.md

* Update README_CN - Model Configuration

The original model configuration guide is misleading, it tells readers to configure model provider by change the `XAI_MODEL` parameters.

But this is for the XAI configurations, i update the description completely with the right configuration steps.

* Added Polish Readme file

* Fixed polish's readme typo's

* Rename Readme_PL.md to README_PL.md

* feat: fix chat client to autoscroll

* chore: update changelog

* feat: improve messages

Improve message so criteria is displayed

* fix number prefixed username, add X brand in messaging

* refactor: reorganize imports in video service

* fix: improve clarity and grammar in pull request template

* fix tg markdown issue.

* fix: update jsdoc automation workflow

* fix: update jsdoc automation workflow

* docs: Add JSDoc documentation to constants.ts

* docs: Add JSDoc documentation to createRuntime.ts

* docs: Add JSDoc documentation to testSetup.ts

* docs: Add JSDoc documentation to types.ts

* docs: Add JSDoc documentation to constants.ts

* docs: Add JSDoc documentation to createRuntime.ts

* docs: Add JSDoc documentation to testSetup.ts

* docs: Add JSDoc documentation to types.ts

* feat: Twitter spaces integration

* Adding pnpm-lock.yaml

* add character file script to make system prompt and templates easier to add to existing character files or generate a new one

* feat: add theme toggle functionality with dark and light mode support

- Imported ThemeToggle component in AppSidebar
- Added ThemeToggle to SidebarFooter in AppSidebar
- Initialized theme based on localStorage and system preferences in main.tsx to support dark and light modes

* docs: Add "What Did You Get Done This Week? 7" notes

* Adding back comments and documentation

* add TEE plugin-env support

* fix

* fix

* fix: init 768 dimension in database for gaianet

* chore: parse files through prettier

* Update README.md

* Add files via upload

* feat: add optional TRANSCRIPTION_PROVIDER setting with fallback logic, moving twitter spaces plugins to Eliza repo

* Updates for web search and timeout

* Cleanup on packages/client-twitter/src/plugins/SttTtsPlugin.ts

* Update agents.md

Minor update to correct "should"

* add an client-direct endpoint to get memories by agentid and roomid

* docs: fix Contributing Guide

* feat: add docs for image generation plugin

* fix: fix the image redirection

* update volcengine model

* feat: Add Spanish Translation for Documentation README

* added README files to all plugins

* use tavily sdk

* file updates

* tweak of evm transfer template

* refactor(plugin-conflux): output detailed invalid content

* add experimental telemetry model option

* chore: console -> elizaLogger

* chore: pnpm lock file

* chore: fix conflicts

* chore: add readme

* fix: set publishedDate to optional as stated by the docs.

* chore: move tavily package to the core

* chore: pnpm lock file

* feat: add error handling for TAVILY_API_KEY key

* chore: remove conflicting files

* chore: README files

* chore: Update local-development.md

* fix continue double responses

* fix google api key

* feat: include priority to plugin-tee build

* chore: remove build cache with clean command

* chore: changes to settings

* fix: add @tavily/core to external libs (almost took my life)

* chore: remove logs

* chore: console -> elizaLogger

* add plugins to the key components section of the faq

during a recent discussion on discord it was not clear to some folks the conceptual difference between clients and plugins. this just adds a bit more high level info up top on the FAQ for future creators.

* re-build fx

* Fix double spaced tweets in Post.ts

Currently, despite the prompting stating to use "\\n\\n (double spaces" between statements the tweets always output new statements with just a single newline, making tweets look blocky. 

For example, tweets previous would look like (despite the prompt): 
"Dobby is so excited to start this new year, full of possibilities and chances to make a difference!
Dobby has big plans to help his dear friends and make the wizarding world an even brighter place."

This ensures the double spaces requested in prompting is applied to the tweets with the tweets now looking like: 
"Dobby must remind all friends to be cautious of dark magic lurking in the shadows.

Dobby's heart aches at the thought of anyone falling prey to its deceitful powers."

This allows agents to tweet better-formatted posts that ease visilibty.

* add TranscriptionProvider

* select transcription provider based on character setting

* clean code

* fix evm deps

* fix bad merge

* remove claude changes

* corrected path for image upload

* Add README_AR.md

Add Arabic language for readme.

* chore: update viem dependency version in plugin-evm and plugin-goat

* Update README.md

add Arabic language reference

* Update package.json

* Update package.json

* fix: remove unwanted gitignore

* chore: add enable web search variable

* chore: pnpm lock file

* fix: import web search plugin only on when enabled

* fix: lockfile

* testing

* update

* Added Hungarian README

* update clean.sh to include deleting lock file to really reset the repo

* update integreation test

* run on pull request not pull request target

* update to use pnpm command

* trigger re-run of workflows

* fix

* revert

* actually need to revert

* Fix bug in plugin-bootstrap/src/evaluators/facts.ts

{{user1}} should be {{user2}} :

-------
in factEvaluator, in the examples template,

{{user1}} should be {{user2}} instead

                {
                    user: "{{user1}}",
                    content: { text: "Which city?" },
                },
                {
                    user: "{{user2}}",
                    content: { text: "Oakland" },
                },
                {
                    user: "{{user1}}",
                    content: {
                        text: "Oh, I've never been there, but I know it's in California",
                    },
                }

* standardize viem dependency so project builds now

* missing depdencies

* revert to target due to https://github.com/ai16z/eliza/pull/993/files#r1883351009

* remove submodule

* Solve Issue 1643, imageDescriptionService not working with other providers than OpenAI

* Update schema.sql

There is an extra semicolon that causes a syntax error when trying to upload the schema to supabase.

* Solve Issue 1643, imageDescriptionService not working with other providers than OpenAI

* Seperated imageModelProvider and imageVisionModelProvider for ImageDescriptionService

* modelVisionProvider Added to IagentRuntime interface type.ts

* Feature/full plugin docs (#52)

* feat: add support for agentic plugin documentation

* feat: add support for agentic plugin documentation (#5)

* feat: add support for agentic plugin documentation

* Feature/full plugin docs (#7)

* feat: add support for agentic plugin documentation

* feat: add support for agentic plugin documentation

* feat: add support for agentic plugin documentation

* feat: add support for agentic plugin documentation

* feat: add support for agentic plugin documentation

* feat: add support for agentic plugin documentation

* feat: add support for agentic plugin documentation

* feat: add support for agentic plugin documentation

---------

Co-authored-by: J. Brandon Johnson <bjohnson@swizzmagik.com>
Co-authored-by: E.FU <e-fu@users.noreply.github.com>
Co-authored-by: odilitime <janesmith@airmail.cc>
Co-authored-by: SK1989sL <91366180+SK1989sL@users.noreply.github.com>
Co-authored-by: JOMOKING <83915728+RedHorse823@users.noreply.github.com>
Co-authored-by: Judasz <yanushevitz@gmail.com>
Co-authored-by: yanushevitz <75587556+yanushevitz@users.noreply.github.com>
Co-authored-by: Monil Patel <monilpat@gmail.com>
Co-authored-by: Matt Gunnin <mgunnin@esports.one>
Co-authored-by: azep-ninja <anthony@quickintel.io>
Co-authored-by: jin <32600939+madjin@users.noreply.github.com>
Co-authored-by: Shakker Nerd <165377636+shakkernerd@users.noreply.github.com>
Co-authored-by: slkzgm <contact@slkzgm.com>
Co-authored-by: HashWarlock <hashwarlock@protonmail.com>
Co-authored-by: zkfriendly <zkfriendly@proton.me>
Co-authored-by: Phlo <dev@phlo.info>
Co-authored-by: Shakker Nerd <shakkerdroid@gmail.com>
Co-authored-by: Sam <samuv.eth@gmail.com>
Co-authored-by: csh <458761603@qq.com>
Co-authored-by: tomguluson92 <314913739@qq.com>
Co-authored-by: Chanddeep Madaan <c.madaan@karmiclabs.com>
Co-authored-by: Yorke E. Rhodes III <yorke.rhodes@microsoft.com>
Co-authored-by: treppers <90061012+treppers@users.noreply.github.com>
Co-authored-by: twilwa <spywarezzz@proton.me>
Co-authored-by: 0xFloyd <arfloyd7@gmail.com>
Co-authored-by: chandiniv1 <velamalachandini9@gmail.com>
Co-authored-by: Sebastián Salazar Solano <112297389+salazarsebas@users.noreply.github.com>
Co-authored-by: zhourunlai <xiaorun95@gmail.com>
Co-authored-by: CheddarQueso <cheddarqueso3d@gmail.com>
Co-authored-by: zkvm <kevin.zhuang@bit.com>
Co-authored-by: bendanzhentan <455462586@qq.com>
Co-authored-by: Ninja Dev (QI) <142059473+azep-ninja@users.noreply.github.com>
Co-authored-by: Cole Gillespie <745064+cole-gillespie@users.noreply.github.com>
Co-authored-by: Suicidal Goofy <tr.ipsie.boom@gmail.com>
Co-authored-by: Ting Chien Meng <tcm390@nyu.edu>
Co-authored-by: Shaw <shawmakesmagic@gmail.com>
Co-authored-by: ShreyGanatra <ganatrashrey2002@gmail.com>
Co-authored-by: Mariem Mohamed <63235508+xMariem@users.noreply.github.com>
Co-authored-by: Arthera Node <node@arthera.bask.guru>
Co-authored-by: mdominikd <154684992+mdominikd@users.noreply.github.com>
Co-authored-by: metakai1 <km711@protonmail.com>
Co-authored-by: nusk0 <guillaume1938@hotmail.com>
Co-authored-by: 0xRider <134025586+0xRider@users.noreply.github.com>
Co-authored-by: Your Name <denizekiz93@gmail.com>
  • Loading branch information
Show file tree
Hide file tree
Showing 135 changed files with 14,259 additions and 3,068 deletions.
15 changes: 15 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ LIVEPEER_IMAGE_MODEL= # Default: ByteDance/SDXL-Lightning
# Speech Synthesis
ELEVENLABS_XI_API_KEY= # API key from elevenlabs

# Transcription Provider
TRANSCRIPTION_PROVIDER= # Default: local (possible values: openai, deepgram, local)

# Direct Client Setting
EXPRESS_MAX_PAYLOAD= # Default: 100kb

Expand All @@ -67,6 +70,7 @@ TWITTER_POLL_INTERVAL=120 # How often (in seconds) the bot should check fo
TWITTER_SEARCH_ENABLE=FALSE # Enable timeline search, WARNING this greatly increases your chance of getting banned
TWITTER_TARGET_USERS= # Comma separated list of Twitter user names to interact with
TWITTER_RETRY_LIMIT= # Maximum retry attempts for Twitter login
TWITTER_SPACES_ENABLE=false # Enable or disable Twitter Spaces logic

X_SERVER_URL=
XAI_API_KEY=
Expand Down Expand Up @@ -162,6 +166,14 @@ LARGE_GAIANET_SERVER_URL= # Default: https://qwen72b.gaia.domains/v1
GAIANET_EMBEDDING_MODEL=
USE_GAIANET_EMBEDDING= # Set to TRUE for GAIANET/768, leave blank for local

# Volcengine Configuration
VOLENGINE_API_URL= # Volcengine API Endpoint, Default: https://open.volcengineapi.com/api/v3/
VOLENGINE_MODEL=
SMALL_VOLENGINE_MODEL= # Default: doubao-lite-128k
MEDIUM_VOLENGINE_MODEL= # Default: doubao-pro-128k
LARGE_VOLENGINE_MODEL= # Default: doubao-pro-256k
VOLENGINE_EMBEDDING_MODEL= # Default: doubao-embedding

# EVM
EVM_PRIVATE_KEY=
EVM_PROVIDER_URL=
Expand Down Expand Up @@ -200,6 +212,9 @@ TOGETHER_API_KEY=
# Server Configuration
SERVER_PORT=3000

# Web Search Config
ENABLE_WEBSEARCH=false # boolean value, defaults to false

# Abstract Configuration
ABSTRACT_ADDRESS=
ABSTRACT_PRIVATE_KEY=
Expand Down
24 changes: 12 additions & 12 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!-- Use this template by filling in information and copy and pasting relevant items out of the html comments. -->
<!-- Use this template by filling in information and copying and pasting relevant items out of the HTML comments. -->

# Relates to:
# Relates to

<!-- LINK TO ISSUE OR TICKET -->

<!-- This risks section is to be filled out before final review and merge. -->
<!-- This risks section must be filled out before the final review and merge. -->

# Risks

<!--
Low, medium, large. List what kind of risks, and what could be effected.
Low, medium, large. List what kind of risks and what could be affected.
-->

# Background
Expand All @@ -25,7 +25,7 @@ Features (non-breaking change which adds functionality)
Updates (new versions of included code)
-->

<!-- This "Why" section is most relevant if there is no linked issue explaining why. If there is a related issue it might make sense to skip this why section. -->
<!-- This "Why" section is most relevant if there are no linked issues explaining why. If there is a related issue, it might make sense to skip this why section. -->
<!--
## Why are we doing this? Any context or related work?
-->
Expand All @@ -35,10 +35,10 @@ Updates (new versions of included code)
<!--
My changes do not require a change to the project documentation.
My changes require a change to the project documentation.
If a docs change is needed: I have updated the documentation accordingly.
If documentation change is needed: I have updated the documentation accordingly.
-->

<!-- Please show how you tested the PR. This will really help if the PR needs to be retested, and probably help the PR get merged quicker. -->
<!-- Please show how you tested the PR. This will really help if the PR needs to be retested and probably help the PR get merged quicker. -->

# Testing

Expand All @@ -47,7 +47,7 @@ If a docs change is needed: I have updated the documentation accordingly.
## Detailed testing steps

<!--
None, automated tests are fine.
None: Automated tests are acceptable.
-->

<!--
Expand All @@ -63,22 +63,22 @@ None, automated tests are fine.
### After
-->

<!-- If there is anything about the deploy, please make a note. -->
<!-- If there is anything about the deployment, please make a note. -->
<!--
# Deploy Notes
-->

<!--  Copy and paste commandline output. -->
<!--  Copy and paste command line output. -->
<!--
## Database changes
-->

<!--  If there is something more than the automated steps, please specifiy deploy instructions. -->
<!--  Please specify deploy instructions if there is something more than the automated steps. -->
<!--
## Deployment instructions
-->

<!-- If you are on Discord, please join https://discord.gg/ai16z and state your Discord username here for contribute role and join us in #development-feed -->
<!-- If you are on Discord, please join https://discord.gg/ai16z and state your Discord username here for the contributor role and join us in #development-feed -->
<!--
## Discord username
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ jobs:
node-version: "23"
cache: "pnpm"

- name: Clean up
run: pnpm clean

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

- name: Build packages
run: pnpm build
Expand Down
33 changes: 27 additions & 6 deletions .github/workflows/jsdoc-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,45 @@ name: JSDoc Automation
on:
workflow_dispatch:
inputs:
jsdoc:
description: 'Generate JSDoc comments (T/F)'
required: true
default: 'T'
type: string
readme:
description: 'Generate README documentation (T/F)'
required: true
default: 'T'
type: string
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'
default: 'packages/plugin-near/'
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)'
description: 'Pull Request Reviewers (Must be collaborator on the repository) comma-separated GitHub usernames'
required: true
default: ''
type: string
branch:
description: 'Target branch for PR (defaults to develop)'
required: false
default: 'develop'
type: string
language:
description: 'Documentation language (e.g., English, Spanish, French)'
required: true
default: 'English'
type: string

jobs:
generate-docs:
Expand Down Expand Up @@ -49,7 +69,7 @@ jobs:
run_install: false

- name: Update lockfile
working-directory: packages/jsdoc-automation
working-directory: scripts/jsdoc-automation
run: |
echo "Updating lockfile..."
pnpm install --no-frozen-lockfile
Expand All @@ -63,11 +83,11 @@ jobs:
run: pnpm install --no-frozen-lockfile

- name: Install package dependencies
working-directory: packages/jsdoc-automation
working-directory: scripts/jsdoc-automation
run: pnpm install --no-frozen-lockfile

- name: Run documentation generator
working-directory: packages/jsdoc-automation
working-directory: scripts/jsdoc-automation
run: |
echo "Node version: $(node --version)"
echo "NPM version: $(npm --version)"
Expand All @@ -78,4 +98,5 @@ jobs:
INPUT_ROOT_DIRECTORY: ${{ inputs.root_directory }}
INPUT_PULL_NUMBER: ${{ inputs.pull_number }}
INPUT_EXCLUDED_DIRECTORIES: ${{ inputs.excluded_directories }}
INPUT_REVIEWERS: ${{ inputs.reviewers }}
INPUT_REVIEWERS: ${{ inputs.reviewers }}
INPUT_BRANCH: ${{ inputs.branch }}
18 changes: 14 additions & 4 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,23 @@ jobs:
issues: write
pull-requests: write

env:
DAYS_BEFORE_STALE: 30 # Define the days-before-stale value
DAYS_BEFORE_CLOSE: 7 # Define the days-before-close value

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue has been automatically marked as stale due to inactivity.'
stale-pr-message: 'This pull request has been automatically marked as stale due to inactivity.'
stale-issue-message: |
This issue has been automatically marked as stale due to ${{
env.DAYS_BEFORE_STALE }} days of inactivity.
If no further activity occurs within ${{ env.DAYS_BEFORE_CLOSE }} days, it will be closed automatically. Please take action if this issue is still relevant.
stale-pr-message: |
This pull request has been automatically marked as stale due to ${{
env.DAYS_BEFORE_STALE }} days of inactivity.
If no further activity occurs within ${{ env.DAYS_BEFORE_CLOSE }} days, it will be closed automatically. Please take action if this pull request is still relevant.
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
days-before-stale: 30 # Marks issues and PRs as stale after X days of inactivity
days-before-close: 7 # Closes issues and PRs X days after being marked as stale
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
days-before-close: ${{ env.DAYS_BEFORE_CLOSE }}
113 changes: 57 additions & 56 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,56 +1,57 @@
node_modules
/out

.env
.env.production
.env.local
.env_main
concatenated-output.ts
embedding-cache.json
packages/plugin-buttplug/intiface-engine

.idea
.DS_Store

dist/
# Allow models directory but ignore model files
models/*.gguf

cookies.json

db.sqlite
searches/
tweets/

*.gguf
*.onnx
*.wav
*.mp3

logs/

test-report.json
content_cache/
test_data/
tokencache/
tweetcache/
twitter_cookies.json
timeline_cache.json

*.sqlite

characters/

packages/core/src/providers/cache
packages/core/src/providers/cache/*
cache/*
packages/plugin-coinbase/src/plugins/transactions.csv

tsup.config.bundled_*.mjs

.turbo

coverage
.eslintcache

agent/content
node_modules
/out

.env
.env.production
.env.local
.env_main
concatenated-output.ts
embedding-cache.json
packages/plugin-buttplug/intiface-engine

.idea
.DS_Store

dist/
# Allow models directory but ignore model files
models/*.gguf

cookies.json

db.sqlite
searches/
tweets/

*.gguf
*.onnx
*.wav
*.mp3

logs/

test-report.json
content_cache/
test_data/
tokencache/
tweetcache/
twitter_cookies.json
timeline_cache.json

*.sqlite

characters/

packages/core/src/providers/cache
packages/core/src/providers/cache/*
cache/*
packages/plugin-coinbase/src/plugins/transactions.csv

tsup.config.bundled_*.mjs

.turbo
.cursorrules

coverage
.eslintcache

agent/content
Loading

0 comments on commit 15a948a

Please sign in to comment.