Skip to content

Commit d1e4dc0

Browse files
authored
Merge branch 'main' into dev
2 parents cea632d + b4bf16a commit d1e4dc0

File tree

272 files changed

+19648
-3839
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

272 files changed

+19648
-3839
lines changed

.env.example

+59-46
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
# Required environment variables
1+
# Discord Configuration
22
DISCORD_APPLICATION_ID=
3-
DISCORD_API_TOKEN= # Bot token
4-
OPENAI_API_KEY=sk-* # OpenAI API key, starting with sk-
5-
REDPILL_API_KEY= # REDPILL API Key
6-
GROQ_API_KEY=gsk_*
3+
DISCORD_API_TOKEN= # Bot token
4+
5+
# AI Model API Keys
6+
OPENAI_API_KEY= # OpenAI API key, starting with sk-
7+
REDPILL_API_KEY= # REDPILL API Key
8+
GROK_API_KEY= # GROK API Key
9+
GROQ_API_KEY= # Starts with gsk_
710
OPENROUTER_API_KEY=
8-
GOOGLE_GENERATIVE_AI_API_KEY= # Gemini API key
11+
GOOGLE_GENERATIVE_AI_API_KEY= # Gemini API key
912

10-
ELEVENLABS_XI_API_KEY= # API key from elevenlabs
13+
# Speech Synthesis
14+
ELEVENLABS_XI_API_KEY= # API key from elevenlabs
1115

12-
# ELEVENLABS SETTINGS
16+
# ElevenLabs Settings
1317
ELEVENLABS_MODEL_ID=eleven_multilingual_v2
1418
ELEVENLABS_VOICE_ID=21m00Tcm4TlvDq8ikWAM
1519
ELEVENLABS_VOICE_STABILITY=0.5
@@ -19,63 +23,72 @@ ELEVENLABS_VOICE_USE_SPEAKER_BOOST=false
1923
ELEVENLABS_OPTIMIZE_STREAMING_LATENCY=4
2024
ELEVENLABS_OUTPUT_FORMAT=pcm_16000
2125

26+
# Twitter/X Configuration
2227
TWITTER_DRY_RUN=false
23-
TWITTER_USERNAME= # Account username
24-
TWITTER_PASSWORD= # Account password
25-
TWITTER_EMAIL= # Account email
26-
TWITTER_COOKIES= # Account cookies
27-
28+
TWITTER_USERNAME= # Account username
29+
TWITTER_PASSWORD= # Account password
30+
TWITTER_EMAIL= # Account email
31+
TWITTER_COOKIES= # Account cookies
2832
X_SERVER_URL=
2933
XAI_API_KEY=
3034
XAI_MODEL=
3135

32-
#USE IMAGE GEN
33-
IMAGE_GEN= #TRUE
34-
35-
#Leave blank to use local embeddings
36-
USE_OPENAI_EMBEDDING= #TRUE
37-
38-
#OpenRouter (Use one model for everything or set individual for small, medium, large tasks)
39-
#leave blank to use defaults hermes 70b for small tasks & 405b for medium/large tasks
40-
OPENROUTER_MODEL=
41-
SMALL_OPENROUTER_MODEL=
42-
MEDIUM_OLLAMA_MODEL=
43-
LARGE_OLLAMA_MODEL=
44-
45-
46-
#Set to Use for New OLLAMA provider
47-
OLLAMA_SERVER_URL= #Leave blank for default localhost:11434
48-
OLLAMA_MODEL=
49-
OLLAMA_EMBEDDING_MODEL= #default mxbai-embed-large
50-
#To use custom model types for different tasks set these
51-
SMALL_OLLAMA_MODEL= #default llama3.2
52-
MEDIUM_OLLAMA_MODEL= #default herems3
53-
LARGE_OLLAMA_MODEL= #default hermes3:70b
54-
55-
# For asking Claude stuff
56-
ANTHROPIC_API_KEY=
57-
58-
# Heurist API
59-
HEURIST_API_KEY=
60-
36+
# Post Interval Settings (in minutes)
37+
POST_INTERVAL_MIN= # Default: 90
38+
POST_INTERVAL_MAX= # Default: 180
39+
40+
# Feature Flags
41+
IMAGE_GEN= # Set to TRUE to enable image generation
42+
USE_OPENAI_EMBEDDING= # Set to TRUE for OpenAI, leave blank for local
43+
44+
# OpenRouter Models
45+
OPENROUTER_MODEL= # Default: uses hermes 70b/405b
46+
SMALL_OPENROUTER_MODEL=
47+
MEDIUM_OPENROUTER_MODEL=
48+
LARGE_OPENROUTER_MODEL=
49+
50+
# Ollama Configuration
51+
OLLAMA_SERVER_URL= # Default: localhost:11434
52+
OLLAMA_MODEL=
53+
OLLAMA_EMBEDDING_MODEL= # Default: mxbai-embed-large
54+
SMALL_OLLAMA_MODEL= # Default: llama3.2
55+
MEDIUM_OLLAMA_MODEL= # Default: hermes3
56+
LARGE_OLLAMA_MODEL= # Default: hermes3:70b
57+
58+
# API Keys
59+
ANTHROPIC_API_KEY= # For Claude
60+
HEURIST_API_KEY= # Get from https://heurist.ai/dev-access
61+
62+
# Heurist Models
63+
SMALL_HEURIST_LANGUAGE_MODEL=
64+
MEDIUM_HEURIST_LANGUAGE_MODEL=
65+
LARGE_HEURIST_LANGUAGE_MODEL=
66+
HEURIST_IMAGE_MODEL=
67+
68+
# Wallet Configuration
6169
WALLET_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
6270
WALLET_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
63-
6471
BIRDEYE_API_KEY=
6572

73+
# Solana Configuration
6674
SOL_ADDRESS=So11111111111111111111111111111111111111112
6775
SLIPPAGE=1
6876
BASE_MINT=So11111111111111111111111111111111111111112
6977
RPC_URL=https://api.mainnet-beta.solana.com
7078
HELIUS_API_KEY=
7179

72-
73-
## Telegram
80+
# Telegram Configuration
7481
TELEGRAM_BOT_TOKEN=
7582

83+
# Together Configuration
7684
TOGETHER_API_KEY=
85+
86+
# Server Configuration
7787
SERVER_PORT=3000
7888

79-
# Starknet
89+
# Starknet Configuration
8090
STARKNET_ADDRESS=
8191
STARKNET_PRIVATE_KEY=
92+
STARKNET_RPC_URL=
93+
94+

.github/pull_request_template.md

+6
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,9 @@ None, automtated tests are fine.
7777
<!--
7878
## Deployment instructions
7979
-->
80+
81+
<!-- 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 -->
82+
<!--
83+
## Discord username
84+
85+
-->

.github/workflows/pr.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ jobs:
2525
- name: Set status
2626
if: failure()
2727
run: |
28-
gh pr comment ${{ github.event.pull_request.number }} --body "❌ PR title does not match the required pattern. Please use the format: 'type: description' (e.g., 'feat: add new feature')."
28+
gh pr comment ${{ github.event.pull_request.number }} --body "❌ PR title does not match the required pattern. Please use the format: 'type: description' (e.g., 'feat|fix|docs|style|refactor|test|chore: title')."

.github/workflows/pre-release.yml

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Pre-Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
inputs:
9+
release_type:
10+
description: "Type of release (prerelease, prepatch, patch, minor, preminor, major)"
11+
required: true
12+
default: "prerelease"
13+
14+
jobs:
15+
release:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 22
25+
26+
- uses: pnpm/action-setup@v3
27+
with:
28+
version: 8
29+
30+
- name: Configure Git
31+
run: |
32+
git config user.name "${{ github.actor }}"
33+
git config user.email "${{ github.actor }}@users.noreply.github.com"
34+
35+
- name: "Setup npm for npmjs"
36+
run: |
37+
npm config set registry https://registry.npmjs.org/
38+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
39+
40+
- name: Install Protobuf Compiler
41+
run: sudo apt-get install -y protobuf-compiler
42+
43+
- name: Install dependencies
44+
run: pnpm install
45+
46+
- name: Build packages
47+
run: pnpm run build
48+
49+
- name: Tag and Publish Packages
50+
id: tag_publish
51+
run: |
52+
RELEASE_TYPE=${{ github.event_name == 'push' && 'prerelease' || github.event.inputs.release_type }}
53+
npx lerna version $RELEASE_TYPE --conventional-commits --yes --no-private --force-publish
54+
npx lerna publish from-git --yes --dist-tag next
55+
56+
- name: Get Version Tag
57+
id: get_tag
58+
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
59+
60+
- name: Generate Release Body
61+
id: release_body
62+
run: |
63+
if [ -f CHANGELOG.md ]; then
64+
echo "body=$(cat CHANGELOG.md)" >> $GITHUB_OUTPUT
65+
else
66+
echo "body=No changelog provided for this release." >> $GITHUB_OUTPUT
67+
fi
68+
69+
- name: Create GitHub Release
70+
uses: actions/create-release@v1
71+
env:
72+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
73+
PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
74+
with:
75+
tag_name: ${{ steps.get_tag.outputs.TAG }}
76+
release_name: Release
77+
body_path: CHANGELOG.md
78+
draft: false
79+
prerelease: ${{ github.event_name == 'push' }}

.github/workflows/release.yaml

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_type:
7+
description: "Type of release (prerelease, prepatch, patch, minor, preminor, major)"
8+
required: true
9+
default: "patch"
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 22
22+
23+
- uses: pnpm/action-setup@v3
24+
with:
25+
version: 8
26+
27+
- name: Configure Git
28+
run: |
29+
git config user.name "${{ github.actor }}"
30+
git config user.email "${{ github.actor }}@users.noreply.github.com"
31+
32+
- name: "Setup npm for npmjs"
33+
run: |
34+
npm config set registry https://registry.npmjs.org/
35+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
36+
37+
- name: Install Protobuf Compiler
38+
run: sudo apt-get install -y protobuf-compiler
39+
40+
- name: Install dependencies
41+
run: pnpm install
42+
43+
- name: Build packages
44+
run: pnpm run build
45+
46+
- name: Tag and Publish Packages
47+
id: tag_publish
48+
run: |
49+
npx lerna version ${{ github.event.inputs.release_type }} --conventional-commits --yes --no-private --force-publish
50+
npx lerna publish from-git --yes --dist-tag ${{ github.event.inputs.release_type == 'preminor' && 'next' || 'latest' }}
51+
52+
- name: Get Version Tag
53+
id: get_tag
54+
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
55+
56+
- name: Generate Release Body
57+
id: release_body
58+
run: |
59+
if [ -f CHANGELOG.md ]; then
60+
echo "body=$(cat CHANGELOG.md)" >> $GITHUB_OUTPUT
61+
else
62+
echo "body=No changelog provided for this release." >> $GITHUB_OUTPUT
63+
fi
64+
65+
- name: Create GitHub Release
66+
uses: actions/create-release@v1
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
69+
PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
70+
with:
71+
tag_name: ${{ steps.get_tag.outputs.TAG }}
72+
release_name: Release
73+
body_path: CHANGELOG.md
74+
draft: false
75+
prerelease: false

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ twitter_cookies.json
3434
timeline_cache.json
3535

3636
*.sqlite
37+
3738
characters/
3839

3940
packages/core/src/providers/cache

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v23.1.0

.prettierignore

-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
**/*/target
22
**/*/dist
3-
packages/torii-client/wasm
4-
packages/torii-client/pkg
5-
packages/torii-wasm/pkg/
6-
packages/utils-wasm/pkg/
7-
8-
worlds/dojo-starter
93

104
# ignore lock files
115
**/*-lock.yaml

0 commit comments

Comments
 (0)