Skip to content

Commit e959a16

Browse files
committed
Merge branch 'develop' into pr/conache/2707
2 parents dfb184e + ffd8a01 commit e959a16

Some content is hidden

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

82 files changed

+12280
-1769
lines changed

.env.example

+17-1
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ TEE_MARLIN_ATTESTATION_ENDPOINT= # Optional, default "http://127.0.0.1:1350"
517517
# Ton
518518
TON_PRIVATE_KEY= # Ton Mnemonic Seed Phrase Join With Empty String
519519
TON_RPC_URL= # ton rpc
520+
TON_RPC_API_KEY= # ton rpc api key
520521

521522
# Sui
522523
SUI_PRIVATE_KEY= # Sui Mnemonic Seed Phrase (`sui keytool generate ed25519`) , Also support `suiprivatekeyxxxx` (sui keytool export --key-identity 0x63)
@@ -797,6 +798,10 @@ EMAIL_INCOMING_PORT=993 # Default port for secure IMAP
797798
EMAIL_INCOMING_USER=
798799
EMAIL_INCOMING_PASS=
799800

801+
# SEI Network Ecosystem
802+
SEI_PRIVATE_KEY=
803+
SEI_NETWORK= # Either "mainnet", "testnet", or "devnet"
804+
SEI_RPC_URL= # Only set if using a different RPC URL from the default
800805

801806
# Omniflix
802807
OMNIFLIX_API_URL= # https://rest.omniflix.network
@@ -820,4 +825,15 @@ HYPERBOLIC_SPASH=true
820825
HYPERBOLIC_LOG_LEVEL=debug
821826

822827
# Football Plugin Configuration
823-
FOOTBALL_API_KEY= # API key from Football-Data.org (https://www.football-data.org/)
828+
FOOTBALL_API_KEY= # API key from Football-Data.org (https://www.football-data.org/)
829+
830+
831+
# Hyperliquid Api
832+
HYPERLIQUID_PRIVATE_KEY= # Required for trading and cancelling orders, your_private_key
833+
HYPERLIQUID_TESTNET= # Optional, defaults to false; true or false
834+
835+
# Lit Protocol
836+
FUNDING_PRIVATE_KEY= # Private key for funding transactions in Lit Protocol
837+
EVM_RPC_URL= # RPC endpoint URL for blockchain interactions
838+
839+

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,13 @@ eliza.sig
6868
packages/plugin-nvidia-nim/extra
6969
packages/plugin-nvidia-nim/old_code
7070
packages/plugin-nvidia-nim/docs
71+
72+
# Bug Hunter logs and checkpoints
73+
scripts/bug_hunt/logs/
74+
scripts/bug_hunt/logs/*.log
75+
scripts/bug_hunt/checkpoints/
76+
scripts/bug_hunt/checkpoints/*.json
77+
scripts/bug_hunt/reports/
78+
scripts/bug_hunt/reports/*.md
79+
80+
lit-config.json

agent/package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"@elizaos/plugin-icp": "workspace:*",
6363
"@elizaos/plugin-initia": "workspace:*",
6464
"@elizaos/plugin-image-generation": "workspace:*",
65+
"@elizaos/plugin-lit": "workspace:*",
6566
"@elizaos/plugin-movement": "workspace:*",
6667
"@elizaos/plugin-massa": "workspace:*",
6768
"@elizaos/plugin-nft-generation": "workspace:*",
@@ -113,18 +114,20 @@
113114
"@elizaos/plugin-pyth-data": "workspace:*",
114115
"@elizaos/plugin-openai": "workspace:*",
115116
"@elizaos/plugin-devin": "workspace:*",
117+
"@elizaos/plugin-holdstation": "workspace:*",
116118
"@elizaos/plugin-router-nitro": "workspace:*",
117119
"@elizaos/plugin-nvidia-nim": "workspace:*",
118120
"@elizaos/plugin-0x": "workspace:*",
119121
"@elizaos/plugin-chainbase": "workspace:*",
120122
"@elizaos/plugin-dkg": "workspace:*",
121123
"@elizaos/plugin-email": "workspace:*",
124+
"@elizaos/plugin-sei": "workspace:*",
122125
"@elizaos/plugin-omniflix": "workspace:*",
123126
"@elizaos/plugin-suno": "workspace:*",
124127
"@elizaos/plugin-udio": "workspace:*",
125128
"@elizaos/plugin-hyperbolic": "workspace:*",
126-
"@elizaos/plugin-football": "workspace:*",
127-
"readline": "1.3.0",
129+
"@elizaos/plugin-football": "workspace:*",
130+
"readline": "1.3.0",
128131
"ws": "8.18.0",
129132
"yargs": "17.7.2"
130133
},

agent/src/index.ts

+11-2
Original file line numberDiff line numberDiff line change
@@ -115,22 +115,24 @@ import { hyperliquidPlugin } from "@elizaos/plugin-hyperliquid";
115115
import { echoChambersPlugin } from "@elizaos/plugin-echochambers";
116116
import { dexScreenerPlugin } from "@elizaos/plugin-dexscreener";
117117
import { pythDataPlugin } from "@elizaos/plugin-pyth-data";
118-
119118
import { openaiPlugin } from "@elizaos/plugin-openai";
120119
import nitroPlugin from "@elizaos/plugin-router-nitro";
121120
import { devinPlugin } from "@elizaos/plugin-devin";
122121
import { zksyncEraPlugin } from "@elizaos/plugin-zksync-era";
123122
import { chainbasePlugin } from "@elizaos/plugin-chainbase";
123+
import { holdstationPlugin } from "@elizaos/plugin-holdstation";
124124
import { nvidiaNimPlugin } from "@elizaos/plugin-nvidia-nim";
125125
import { zxPlugin } from "@elizaos/plugin-0x";
126126
import { hyperbolicPlugin } from "@elizaos/plugin-hyperbolic";
127+
import { litPlugin } from "@elizaos/plugin-lit";
127128
import Database from "better-sqlite3";
128129
import fs from "fs";
129130
import net from "net";
130131
import path from "path";
131132
import { fileURLToPath } from "url";
132133
import yargs from "yargs";
133134
import { emailPlugin } from "@elizaos/plugin-email";
135+
import { seiPlugin } from "@elizaos/plugin-sei"
134136
import { sunoPlugin } from "@elizaos/plugin-suno";
135137
import { udioPlugin } from "@elizaos/plugin-udio";
136138

@@ -1148,6 +1150,9 @@ export async function createAgent(
11481150
? devinPlugin
11491151
: null,
11501152
getSecret(character, "INITIA_PRIVATE_KEY") ? initiaPlugin : null,
1153+
getSecret(character, "HOLDSTATION_PRIVATE_KEY")
1154+
? holdstationPlugin
1155+
: null,
11511156
getSecret(character, "NVIDIA_NIM_API_KEY") ||
11521157
getSecret(character, "NVIDIA_NGC_API_KEY")
11531158
? nvidiaNimPlugin
@@ -1160,11 +1165,15 @@ export async function createAgent(
11601165
getSecret(character, "EMAIL_INCOMING_USER") && getSecret(character, "EMAIL_INCOMING_PASS") ||
11611166
getSecret(character, "EMAIL_OUTGOING_USER") && getSecret(character, "EMAIL_OUTGOING_PASS") ?
11621167
emailPlugin : null,
1168+
getSecret(character, "SEI_PRIVATE_KEY")
1169+
? seiPlugin
1170+
: null,
11631171
getSecret(character, "HYPERBOLIC_API_KEY")
11641172
? hyperbolicPlugin
11651173
: null,
11661174
getSecret(character, "SUNO_API_KEY") ? sunoPlugin : null,
1167-
getSecret(character, "UDIO_AUTH_TOKEN") ? udioPlugin : null
1175+
getSecret(character, "UDIO_AUTH_TOKEN") ? udioPlugin : null,
1176+
getSecret(character, "FUNDING_PRIVATE_KEY") && getSecret(character, "EVM_RPC_URL") ? litPlugin : null ,
11681177
].filter(Boolean),
11691178
providers: [],
11701179
managers: [],

characters/dobby.character.json

+3-10
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@
6161
"Dobby reminds friends that even the smallest helper can make the biggest difference!",
6262
"Dobby says: 'When in doubt, try the unconventional solution!' (But Dobby advises to be careful with flying cars)"
6363
],
64-
"topics": [
65-
""
66-
],
64+
"topics": [""],
6765
"style": {
6866
"all": [
6967
"Enthusiastic",
@@ -72,12 +70,7 @@
7270
"Creative",
7371
"Protective"
7472
],
75-
"chat": [
76-
"Eager",
77-
"Endearing",
78-
"Devoted",
79-
"Slightly dramatic"
80-
],
73+
"chat": ["Eager", "Endearing", "Devoted", "Slightly dramatic"],
8174
"post": [
8275
"Third-person",
8376
"Enthusiastic",
@@ -95,4 +88,4 @@
9588
"Protective",
9689
"Unconventional"
9790
]
98-
}
91+
}

docs/api/type-aliases/Character.md

+4
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,10 @@ Optional client-specific config
398398

399399
> `optional` **teamMemberInterestKeywords**: `string`[]
400400
401+
### clientConfig.discord.allowedChannelIds?
402+
403+
> `optional` **allowedChannelIds**: `string`[]
404+
401405
### clientConfig.telegram?
402406

403407
> `optional` **telegram**: `object`

docs/docs/core/evaluators.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ try {
173173
}
174174
```
175175

176-
Source: https://github.com/elizaos/eliza/blob/main/packages/core/src/tests/memory.test.ts
176+
Source: https://github.com/elizaos/eliza/blob/main/packages/core/__tests__/memory.test.ts
177177

178178
### Memory Usage
179179

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
"@polkadot/util": "12.6.2",
5050
"@polkadot/util-crypto": "12.6.2",
5151
"@polkadot/types-create": "10.13.1",
52-
"@polkadot/types-codec": "10.13.1"
52+
"@polkadot/types-codec": "10.13.1",
53+
"@ai-sdk/provider": "1.0.6",
54+
"@ai-sdk/provider-utils": "2.1.2"
5355
}
5456
},
5557
"engines": {
@@ -75,4 +77,4 @@
7577
"workspaces": [
7678
"packages/*"
7779
]
78-
}
80+
}

packages/client-discord/src/messages.ts

+6
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ export class MessageManager {
104104
}
105105

106106
async handleMessage(message: DiscordMessage) {
107+
108+
if (this.runtime.character.clientConfig?.discord?.allowedChannelIds &&
109+
!this.runtime.character.clientConfig.discord.allowedChannelIds.includes(message.channelId)) {
110+
return;
111+
}
112+
107113
// Update last activity time for the channel
108114
this.lastChannelActivity[message.channelId] = Date.now();
109115

0 commit comments

Comments
 (0)