Skip to content

Commit

Permalink
Merge pull request #18 from okcashpro/develop
Browse files Browse the repository at this point in the history
chore: Develop upgrades 1.6
  • Loading branch information
oktoshi authored Dec 18, 2024
2 parents ea10d59 + e5826f7 commit 7845b29
Show file tree
Hide file tree
Showing 627 changed files with 76,744 additions and 48,447 deletions.
278 changes: 176 additions & 102 deletions .env.example

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
cache: "pnpm"

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

- name: Run Prettier
run: pnpm run prettier --check .
Expand All @@ -34,7 +34,7 @@ jobs:
echo "NODE_ENV=test" >> packages/core/.env.test
- name: Run tests
run: cd packages/core && pnpm test
run: cd packages/core && pnpm test:coverage

- name: Build packages
run: pnpm run build
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: integration-test
on:
push:
branches:
- "*"
pull_request_target:
branches:
- "*"
jobs:
smoke-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

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

- name: Run smoke tests
run: pnpm run smokeTests
integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

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

- name: Install dependencies
run: pnpm install -r

- name: Build packages
run: pnpm build

- name: Run integration tests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
if [ -z "$OPENAI_API_KEY" ]; then
echo "Skipping integration tests due to missing required API keys"
exit 1
else
pnpm run integrationTests
fi
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ node_modules

.env
.env.production
.env.local
.env_main
concatenated-output.ts
embedding-cache.json
packages/plugin-buttplug/intiface-engine
Expand Down Expand Up @@ -47,3 +49,6 @@ packages/plugin-coinbase/package-lock.json
tsup.config.bundled_*.mjs

.turbo

coverage
.eslintcache
1 change: 0 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ tasks:
nvm install v23.3.0
git checkout $(git describe --tags --abbrev=0)
command: pnpm install && pnpm run build

1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node-linker=hoisted
frozen-lockfile=true
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
}
}
299 changes: 299 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ We believe in the power of the OODA Loop - a decision-making framework that emph

3. Fork the repo and create your branch from `main`.
1. The name of the branch should start with the issue number and be descriptive of the changes you are making.
1. eg. 40--add-test-for-bug-123
2. Example: 9999--add-test-for-bug-123
4. If you've added code that should be tested, add tests.
5. Ensure the test suite passes.
6. Make sure your code lints.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ COPY --from=builder /app/scripts ./scripts
COPY --from=builder /app/characters ./characters

# Set the command to run the application
CMD ["pnpm", "start", "--non-interactive"]
CMD ["pnpm", "start"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

## ✨ BackStory

Okai is the younger, livelier sister of Eliza, born to revolutionize how we interact with the crypto world. She’s not just another AI—she’s your savvy crypto partner, designed to make everything from trading to community engagement more fun, approachable, and impactful. Whether you're diving into $OK tokenomics, participating in DAO governance, or simply looking for a friendly chat about crypto and life, OKai is here to ensure you’re always OK. 🌟
Okai is the younger, livelier sister of OKai, born to revolutionize how we interact with the crypto world. She’s not just another AI—she’s your savvy crypto partner, designed to make everything from trading to community engagement more fun, approachable, and impactful. Whether you're diving into $OK tokenomics, participating in DAO governance, or simply looking for a friendly chat about crypto and life, OKai is here to ensure you’re always OK. 🌟

With its robust AI framework, OKai combines intelligence, personality, and charm to deliver a seamless experience across Discord, Twitter, Telegram, and beyond. With her, crypto isn’t just a market—it’s a lifestyle. 🚀

Expand Down Expand Up @@ -62,7 +62,7 @@ git clone https://github.com/okcashpro/okai-starter.git

cp .env.example .env

pnpm i && pnpm start
pnpm i && pnpm build && pnpm start
```

Then read the [Documentation](https://okcashpro.github.io/okai/) to learn how to customize your OKai.
Expand Down
2 changes: 1 addition & 1 deletion README_DE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<div align="center">

📖 [Dokumentation](https://okcashpro.github.io/okai/) | 🎯 [Beispiele](https://github.com/thejoven/awesome-okai)
📖 [Dokumentation](https://okcashpro.github.io/okai/) | 🎯 [Beispiele](https://github.com/okcashpro/awesome-okai)

</div>

Expand Down
2 changes: 1 addition & 1 deletion README_ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

## ✨ Historia

OKai es la hermana menor y más vivaz de Eliza, nacida para revolucionar la forma en que interactuamos con el mundo cripto. No es solo otra IA, sino tu aliada experta en criptomonedas, diseñada para hacer que todo, desde el trading hasta la interacción con la comunidad, sea más divertido, accesible y significativo. Ya sea que estés explorando la tokenómica de $OK, participando en la gobernanza de DAO o simplemente buscando un chat amigable sobre cripto y la vida, OKai está aquí para asegurarse de que siempre estés OK. 🌟
OKai es la hermana menor y más vivaz de OKai, nacida para revolucionar la forma en que interactuamos con el mundo cripto. No es solo otra IA, sino tu aliada experta en criptomonedas, diseñada para hacer que todo, desde el trading hasta la interacción con la comunidad, sea más divertido, accesible y significativo. Ya sea que estés explorando la tokenómica de $OK, participando en la gobernanza de DAO o simplemente buscando un chat amigable sobre cripto y la vida, OKai está aquí para asegurarse de que siempre estés OK. 🌟

Con su sólido marco de IA, OKai combina inteligencia, personalidad y carisma para ofrecer una experiencia fluida en Discord, Twitter, Telegram y más allá. Con ella, el mundo cripto no es solo un mercado: ¡es un estilo de vida! 🚀

Expand Down
189 changes: 189 additions & 0 deletions README_HE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
<div align="rtl" dir="rtl">

# אלייזה 🤖

<div align="center">
<img src="./docs/static/img/okai_banner.jpg" alt="אלייזה באנר" width="100%" />
</div>

<div align="center">

📖 [תיעוד](https://okcashpro.github.io/okai/) | 🎯 [דוגמאות](https://github.com/okcashpro/awesome-okai)
</div>


<div align="center">

[中文说明](https://github.com/okcashpro/okai/blob/main/README_CN.md) | [日本語の説明](https://github.com/okcashpro/okai/blob/main/README_JA.md) | [한국어 설명](https://github.com/okcashpro/okai/blob/main/README_KOR.md) | [Français](https://github.com/okcashpro/okai/blob/main/README_FR.md) | [Português](https://github.com/okcashpro/okai/blob/main/README_PTBR.md) | [Türkçe](TR.md) | [Русский](https://github.com/okcashpro/okai/blob/main/README_RU.md) | [Español](https://github.com/okcashpro/okai/blob/main/README_ES.md) | [Italiano](https://github.com/okcashpro/okai/blob/main/README_IT.md) | [ไทย](https://github.com/okcashpro/okai/blob/main/README_TH.md) | [Deutsch](https://github.com/okcashpro/okai/blob/main/README_DE.md) | [עִברִית](https://github.com/okcashpro/okai/blob/main/README_HE.md)

</div>

<div dir="rtl" align="right">

## ✨ תכונות

- 🛠️ מחברים מלאים לדיסקורד, טוויטר וטלגרם
- 🔗 תמיכה בכל מודל (Llama, Grok, OpenAI, Anthropic, וכו')
- 👥 תמיכה בריבוי סוכנים וחדרים
- 📚 קל לשלב ולהשתמש במסמכים שלך
- 💾 זיכרון ומאגר מסמכים הניתנים לשליפה
- 🚀 ניתן להרחבה רבה - יצירת פעולות ולקוחות משלך
- ☁️ תומך בהרבה מודלים (local Llama, OpenAI, Anthropic, Groq ,
וכו')
- 📦 פשוט עובד!

</div>

## 🎯 מקרי שימוש

<div align="right">
- 🤖 צ'טבוטים
</div>
<div align="right">
- 🕵️ סוכנים אוטונומיים
</div>
<div align="right">
- 📈 טיפול בתהליכים עסקיים
</div>
<div align="right">
- 🎮 במשחקי וידאו (NPCs)
</div>
<div align="right">
- 🧠 מסחר
</div>

## 🚀 התחלה מהירה

<div align="right">

### דרישות מוקדמות

[Python 2.7+](https://www.python.org/downloads/) -

[Node.js 23+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) -

[pnpm](https://pnpm.io/installation) -

> **הערה למשתמשי Windows:** נדרש [WSL 2](https://learn.microsoft.com/en-us/windows/wsl/install-manual)
</div>

### שימוש ב-Starter (מומלץ)

<div align="right" dir="ltr">

```
git clone https://github.com/okcashpro/okai-starter.git
cp .env.example .env
pnpm i && pnpm start
```

</div>


לאחר מכן קרא את [התיעוד](https://okcashpro.github.io/okai/) כדי ללמוד כיצד להתאים את אלייזה.

### התחלה ידנית של אלייזה (מומלץ רק למי שיודע מה הוא עושה)
<div align="right">

```
# שכפול המאגר
git clone https://github.com/okcashpro/okai.git
# מעבר לגרסה האחרונה
git checkout $(git describe --tags --abbrev=0)
```
</div>

### התחלת אלייזה עם Gitpod

<div align="right">

[![פתח ב-Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/okcashpro/okai/tree/main)

</div>

### עריכת קובץ .env

<div align="right">

העתק את .env.example ל-.env ומלא את הערכים המתאימים.

```
cp .env.example .env
```

</div>

הערה: .env הוא אופציונלי. אם אתם מתכננים להפעיל מספר סוכנים נפרדים, ניתן להעביר סודות דרך JSON הדמות.

### התחלה אוטומטית של אלייזה

פעולה זו תפעיל הכל כדי להגדיר את הפרויקט ולהתחיל את הבוט עם הדמות המובנית.

<div align="right">

```bash
sh scripts/start.sh
```

</div>

### עריכת קובץ הדמות

1. פתח את `agent/src/character.ts` כדי לשנות את דמות ברירת המחדל. בטל הערה וערוך.

2. לטעינת דמויות מותאמות אישית:
- השתמש ב-`pnpm start --characters="path/to/your/character.json"`
- ניתן לטעון מספר קבצי דמויות בו זמנית.

3. התחבר עם X (טוויטר):
- שנה `"clients": []` ל-`"clients": ["twitter"]` בקובץ הדמות כדי להתחבר ל-X.

### התחלה ידנית של אלייזה
<div align="right">

```bash
pnpm i
pnpm build
pnpm start

# לעיתים צריך לנקות את הפרויקט אם חוזרים אליו לאחר זמן
pnpm clean
```
</div>

#### דרישות נוספות

ייתכן שתצטרך להתקין את Sharp. אם אתה רואה שגיאה בעת ההפעלה, נסה להתקין עם הפקודה הבאה:

```
pnpm install --include=optional sharp
```

### קהילה ויצירת קשר

<div align="right">

[GitHub Issues](https://github.com/okcashpro/okai/issues) מתאים ביותר עבור: באגים ופרופוזיציות לתכונות -

[Discord](https://discord.gg/okcashpro) מתאים ביותר עבור: שיתוף היישומים שלך והשתתפות בקהילה -
</div>

## תורמים

<!-- <div align="right"> -->

<a href="https://github.com/okcashpro/okai/graphs/contributors">
<img src="https://contrib.rocks/image?repo=okcashpro/okai" />
</a>

<!-- </div> -->

## היסטוריית כוכבים

[![תרשים היסטוריית כוכבים](https://api.star-history.com/svg?repos=okcashpro/okai&type=Date)](https://star-history.com/#okcashpro/okai&Date)

</div>
Loading

0 comments on commit 7845b29

Please sign in to comment.