@@ -1048,106 +1048,8 @@ export async function createAgent(
1048
1048
character,
1049
1049
// character.plugins are handled when clients are added
1050
1050
plugins : [
1051
- // parseBooleanFromText(getSecret(character, "BITMIND")) &&
1052
- // getSecret(character, "BITMIND_API_TOKEN")
1053
- // ? bittensorPlugin
1054
- // : null,
1055
- // parseBooleanFromText(
1056
- // getSecret(character, "EMAIL_AUTOMATION_ENABLED")
1057
- // )
1058
- // ? emailAutomationPlugin
1059
- // : null,
1060
- // getSecret(character, "IQ_WALLET_ADDRESS") &&
1061
- // getSecret(character, "IQSOlRPC")
1062
- // ? elizaCodeinPlugin
1063
- // : null,
1064
1051
bootstrapPlugin ,
1065
- // getSecret(character, "CDP_API_KEY_NAME") &&
1066
- // getSecret(character, "CDP_API_KEY_PRIVATE_KEY") &&
1067
- // getSecret(character, "CDP_AGENT_KIT_NETWORK")
1068
- // ? agentKitPlugin
1069
- // : null,
1070
- // getSecret(character, "DEXSCREENER_API_KEY")
1071
- // ? dexScreenerPlugin
1072
- // : null,
1073
- // getSecret(character, "FOOTBALL_API_KEY") ? footballPlugin : null,
1074
- // getSecret(character, "CONFLUX_CORE_PRIVATE_KEY")
1075
- // ? confluxPlugin
1076
- // : null,
1077
1052
nodePlugin ,
1078
- // getSecret(character, "ROUTER_NITRO_EVM_PRIVATE_KEY") &&
1079
- // getSecret(character, "ROUTER_NITRO_EVM_ADDRESS")
1080
- // ? nitroPlugin
1081
- // : null,
1082
- // getSecret(character, "TAVILY_API_KEY") ? webSearchPlugin : null,
1083
- // getSecret(character, "SOLANA_PUBLIC_KEY") ||
1084
- // (getSecret(character, "WALLET_PUBLIC_KEY") &&
1085
- // !getSecret(character, "WALLET_PUBLIC_KEY")?.startsWith("0x"))
1086
- // ? [solanaPlugin, solanaPluginV2]
1087
- // : null,
1088
- // getSecret(character, "SOLANA_PRIVATE_KEY")
1089
- // ? solanaAgentkitPlugin
1090
- // : null,
1091
- // getSecret(character, "AUTONOME_JWT_TOKEN") ? autonomePlugin : null,
1092
- // (getSecret(character, "NEAR_ADDRESS") ||
1093
- // getSecret(character, "NEAR_WALLET_PUBLIC_KEY")) &&
1094
- // getSecret(character, "NEAR_WALLET_SECRET_KEY")
1095
- // ? nearPlugin
1096
- // : null,
1097
- // getSecret(character, "EVM_PUBLIC_KEY") ||
1098
- // (getSecret(character, "WALLET_PUBLIC_KEY") &&
1099
- // getSecret(character, "WALLET_PUBLIC_KEY")?.startsWith("0x"))
1100
- // ? evmPlugin
1101
- // : null,
1102
- // (getSecret(character, "EVM_PRIVATE_KEY") ||
1103
- // getSecret(character, "SOLANA_PRIVATE_KEY"))
1104
- // ? edwinPlugin
1105
- // : null,
1106
- // (getSecret(character, "EVM_PUBLIC_KEY") ||
1107
- // getSecret(character, "INJECTIVE_PUBLIC_KEY")) &&
1108
- // getSecret(character, "INJECTIVE_PRIVATE_KEY")
1109
- // ? injectivePlugin
1110
- // : null,
1111
- // getSecret(character, "COSMOS_RECOVERY_PHRASE") &&
1112
- // getSecret(character, "COSMOS_AVAILABLE_CHAINS") &&
1113
- // createCosmosPlugin(),
1114
- // (getSecret(character, "SOLANA_PUBLIC_KEY") ||
1115
- // (getSecret(character, "WALLET_PUBLIC_KEY") &&
1116
- // !getSecret(character, "WALLET_PUBLIC_KEY")?.startsWith(
1117
- // "0x"
1118
- // ))) &&
1119
- // getSecret(character, "SOLANA_ADMIN_PUBLIC_KEY") &&
1120
- // getSecret(character, "SOLANA_PRIVATE_KEY") &&
1121
- // getSecret(character, "SOLANA_ADMIN_PRIVATE_KEY")
1122
- // ? nftGenerationPlugin
1123
- // : null,
1124
- // getSecret(character, "ZEROG_PRIVATE_KEY") ? zgPlugin : null,
1125
- // getSecret(character, "COINMARKETCAP_API_KEY")
1126
- // ? coinmarketcapPlugin
1127
- // : null,
1128
- // getSecret(character, "ZERION_API_KEY") ? zerionPlugin : null,
1129
- // getSecret(character, "COINBASE_COMMERCE_KEY")
1130
- // ? coinbaseCommercePlugin
1131
- // : null,
1132
- // getSecret(character, "FAL_API_KEY") ||
1133
- // getSecret(character, "OPENAI_API_KEY") ||
1134
- // getSecret(character, "VENICE_API_KEY") ||
1135
- // getSecret(character, "NVIDIA_API_KEY") ||
1136
- // getSecret(character, "NINETEEN_AI_API_KEY") ||
1137
- // getSecret(character, "HEURIST_API_KEY") ||
1138
- // getSecret(character, "LIVEPEER_GATEWAY_URL")
1139
- // ? imageGenerationPlugin
1140
- // : null,
1141
- // getSecret(character, "FAL_API_KEY") ? threeDGenerationPlugin : null,
1142
- // ...(getSecret(character, "COINBASE_API_KEY") &&
1143
- // getSecret(character, "COINBASE_PRIVATE_KEY")
1144
- // ? [
1145
- // coinbaseMassPaymentsPlugin,
1146
- // tradePlugin,
1147
- // tokenContractPlugin,
1148
- // advancedTradePlugin,
1149
- // ]
1150
- // : []),
1151
1053
...( teeMode !== TEEMode . OFF && walletSecretSalt ? [ teePlugin ] : [ ] ) ,
1152
1054
teeMode !== TEEMode . OFF &&
1153
1055
walletSecretSalt &&
@@ -1160,181 +1062,8 @@ export async function createAgent(
1160
1062
getSecret ( character , "SGX" ) )
1161
1063
? teeLogPlugin
1162
1064
: null ,
1163
- // getSecret(character, "OMNIFLIX_API_URL") &&
1164
- // getSecret(character, "OMNIFLIX_MNEMONIC")
1165
- // ? OmniflixPlugin
1166
- // : null,
1167
- // getSecret(character, "COINBASE_API_KEY") &&
1168
- // getSecret(character, "COINBASE_PRIVATE_KEY") &&
1169
- // getSecret(character, "COINBASE_NOTIFICATION_URI")
1170
- // ? webhookPlugin
1171
- // : null,
1172
1065
goatPlugin ,
1173
1066
zilliqaPlugin ,
1174
- // getSecret(character, "COINGECKO_API_KEY") ||
1175
- // getSecret(character, "COINGECKO_PRO_API_KEY")
1176
- // ? coingeckoPlugin
1177
- // : null,
1178
- // getSecret(character, "MORALIS_API_KEY") ? moralisPlugin : null,
1179
- // getSecret(character, "EVM_PROVIDER_URL") ? goatPlugin : null,
1180
- // getSecret(character, "ABSTRACT_PRIVATE_KEY")
1181
- // ? abstractPlugin
1182
- // : null,
1183
- // getSecret(character, "B2_PRIVATE_KEY") ? b2Plugin : null,
1184
- // getSecret(character, "BINANCE_API_KEY") &&
1185
- // getSecret(character, "BINANCE_SECRET_KEY")
1186
- // ? binancePlugin
1187
- // : null,
1188
- // getSecret(character, "FLOW_ADDRESS") &&
1189
- // getSecret(character, "FLOW_PRIVATE_KEY")
1190
- // ? flowPlugin
1191
- // : null,
1192
- // getSecret(character, "LENS_ADDRESS") &&
1193
- // getSecret(character, "LENS_PRIVATE_KEY")
1194
- // ? lensPlugin
1195
- // : null,
1196
- // getSecret(character, "APTOS_PRIVATE_KEY") ? aptosPlugin : null,
1197
- // getSecret(character, "MIND_COLD_WALLET_ADDRESS")
1198
- // ? mindNetworkPlugin
1199
- // : null,
1200
- // getSecret(character, "MVX_PRIVATE_KEY") ? multiversxPlugin : null,
1201
- // getSecret(character, "ZKSYNC_PRIVATE_KEY") ? zksyncEraPlugin : null,
1202
- // getSecret(character, "CRONOSZKEVM_PRIVATE_KEY")
1203
- // ? cronosZkEVMPlugin
1204
- // : null,
1205
- // getSecret(character, "TEE_MARLIN") ? teeMarlinPlugin : null,
1206
- // getSecret(character, "TON_PRIVATE_KEY") ? tonPlugin : null,
1207
- // getSecret(character, "THIRDWEB_SECRET_KEY") ? thirdwebPlugin : null,
1208
- // getSecret(character, "SUI_PRIVATE_KEY") ? suiPlugin : null,
1209
- // getSecret(character, "STORY_PRIVATE_KEY") ? storyPlugin : null,
1210
- // getSecret(character, "SQUID_SDK_URL") &&
1211
- // getSecret(character, "SQUID_INTEGRATOR_ID") &&
1212
- // getSecret(character, "SQUID_EVM_ADDRESS") &&
1213
- // getSecret(character, "SQUID_EVM_PRIVATE_KEY") &&
1214
- // getSecret(character, "SQUID_API_THROTTLE_INTERVAL")
1215
- // ? squidRouterPlugin
1216
- // : null,
1217
- // getSecret(character, "FUEL_PRIVATE_KEY") ? fuelPlugin : null,
1218
- // getSecret(character, "AVALANCHE_PRIVATE_KEY")
1219
- // ? avalanchePlugin
1220
- // : null,
1221
- // getSecret(character, "BIRDEYE_API_KEY") ? birdeyePlugin : null,
1222
- // getSecret(character, "ECHOCHAMBERS_API_URL") &&
1223
- // getSecret(character, "ECHOCHAMBERS_API_KEY")
1224
- // ? echoChambersPlugin
1225
- // : null,
1226
- // getSecret(character, "LETZAI_API_KEY") ? letzAIPlugin : null,
1227
- // getSecret(character, "STARGAZE_ENDPOINT") ? stargazePlugin : null,
1228
- // getSecret(character, "GIPHY_API_KEY") ? giphyPlugin : null,
1229
- // getSecret(character, "PASSPORT_API_KEY")
1230
- // ? gitcoinPassportPlugin
1231
- // : null,
1232
- // getSecret(character, "GENLAYER_PRIVATE_KEY")
1233
- // ? genLayerPlugin
1234
- // : null,
1235
- // getSecret(character, "AVAIL_SEED") &&
1236
- // getSecret(character, "AVAIL_APP_ID")
1237
- // ? availPlugin
1238
- // : null,
1239
- // getSecret(character, "OPEN_WEATHER_API_KEY")
1240
- // ? openWeatherPlugin
1241
- // : null,
1242
- // getSecret(character, "OBSIDIAN_API_TOKEN") ? obsidianPlugin : null,
1243
- // getSecret(character, "ARTHERA_PRIVATE_KEY")?.startsWith("0x")
1244
- // ? artheraPlugin
1245
- // : null,
1246
- // getSecret(character, "ALLORA_API_KEY") ? alloraPlugin : null,
1247
- // getSecret(character, "HYPERLIQUID_PRIVATE_KEY")
1248
- // ? hyperliquidPlugin
1249
- // : null,
1250
- // getSecret(character, "HYPERLIQUID_TESTNET")
1251
- // ? hyperliquidPlugin
1252
- // : null,
1253
- // getSecret(character, "AKASH_MNEMONIC") &&
1254
- // getSecret(character, "AKASH_WALLET_ADDRESS")
1255
- // ? akashPlugin
1256
- // : null,
1257
- // getSecret(character, "CHAINBASE_API_KEY") ? chainbasePlugin : null,
1258
- // getSecret(character, "QUAI_PRIVATE_KEY") ? quaiPlugin : null,
1259
- // getSecret(character, "RESERVOIR_API_KEY")
1260
- // ? createNFTCollectionsPlugin()
1261
- // : null,
1262
- // getSecret(character, "ZERO_EX_API_KEY") ? zxPlugin : null,
1263
- // getSecret(character, "DKG_PRIVATE_KEY") ? dkgPlugin : null,
1264
- // getSecret(character, "PYTH_TESTNET_PROGRAM_KEY") ||
1265
- // getSecret(character, "PYTH_MAINNET_PROGRAM_KEY")
1266
- // ? pythDataPlugin
1267
- // : null,
1268
- // getSecret(character, "LND_TLS_CERT") &&
1269
- // getSecret(character, "LND_MACAROON") &&
1270
- // getSecret(character, "LND_SOCKET")
1271
- // ? lightningPlugin
1272
- // : null,
1273
- // getSecret(character, "OPENAI_API_KEY") &&
1274
- // parseBooleanFromText(
1275
- // getSecret(character, "ENABLE_OPEN_AI_COMMUNITY_PLUGIN")
1276
- // )
1277
- // ? openaiPlugin
1278
- // : null,
1279
- // getSecret(character, "DEVIN_API_TOKEN") ? devinPlugin : null,
1280
- // getSecret(character, "INITIA_PRIVATE_KEY") ? initiaPlugin : null,
1281
- // getSecret(character, "HOLDSTATION_PRIVATE_KEY")
1282
- // ? holdstationPlugin
1283
- // : null,
1284
- // getSecret(character, "NVIDIA_NIM_API_KEY") ||
1285
- // getSecret(character, "NVIDIA_NGC_API_KEY")
1286
- // ? nvidiaNimPlugin
1287
- // : null,
1288
- // getSecret(character, "BNB_PRIVATE_KEY") ||
1289
- // getSecret(character, "BNB_PUBLIC_KEY")?.startsWith("0x")
1290
- // ? bnbPlugin
1291
- // : null,
1292
- // (getSecret(character, "EMAIL_INCOMING_USER") &&
1293
- // getSecret(character, "EMAIL_INCOMING_PASS")) ||
1294
- // (getSecret(character, "EMAIL_OUTGOING_USER") &&
1295
- // getSecret(character, "EMAIL_OUTGOING_PASS"))
1296
- // ? emailPlugin
1297
- // : null,
1298
- // getSecret(character, "SEI_PRIVATE_KEY") ? seiPlugin : null,
1299
- // getSecret(character, "HYPERBOLIC_API_KEY")
1300
- // ? hyperbolicPlugin
1301
- // : null,
1302
- // getSecret(character, "SUNO_API_KEY") ? sunoPlugin : null,
1303
- // getSecret(character, "UDIO_AUTH_TOKEN") ? udioPlugin : null,
1304
- // getSecret(character, "IMGFLIP_USERNAME") &&
1305
- // getSecret(character, "IMGFLIP_PASSWORD")
1306
- // ? imgflipPlugin
1307
- // : null,
1308
- // getSecret(character, "FUNDING_PRIVATE_KEY") &&
1309
- // getSecret(character, "EVM_RPC_URL")
1310
- // ? litPlugin
1311
- // : null,
1312
- // getSecret(character, "ETHSTORAGE_PRIVATE_KEY")
1313
- // ? ethstoragePlugin
1314
- // : null,
1315
- // getSecret(character, "MINA_PRIVATE_KEY") ? minaPlugin : null,
1316
- // getSecret(character, "FORM_PRIVATE_KEY") ? formPlugin : null,
1317
- // getSecret(character, "ANKR_WALLET") ? ankrPlugin : null,
1318
- // getSecret(character, "DCAP_EVM_PRIVATE_KEY") &&
1319
- // getSecret(character, "DCAP_MODE")
1320
- // ? dcapPlugin
1321
- // : null,
1322
- // getSecret(character, "QUICKINTEL_API_KEY")
1323
- // ? quickIntelPlugin
1324
- // : null,
1325
- // getSecret(character, "GELATO_RELAY_API_KEY") ? gelatoPlugin : null,
1326
- // getSecret(character, "TRIKON_WALLET_ADDRESS") ? trikonPlugin : null,
1327
- // getSecret(character, "ARBITRAGE_EVM_PRIVATE_KEY") &&
1328
- // (getSecret(character, "ARBITRAGE_EVM_PROVIDER_URL") ||
1329
- // getSecret(character, "ARBITRAGE_ETHEREUM_WS_URL")) &&
1330
- // getSecret(character, "ARBITRAGE_FLASHBOTS_RELAY_SIGNING_KEY") &&
1331
- // getSecret(character, "ARBITRAGE_BUNDLE_EXECUTOR_ADDRESS")
1332
- // ? arbitragePlugin
1333
- // : null,
1334
- // getSecret(character, "DESK_EXCHANGE_PRIVATE_KEY") ||
1335
- // getSecret(character, "DESK_EXCHANGE_NETWORK")
1336
- // ? deskExchangePlugin
1337
- // : null,
1338
1067
]
1339
1068
. flat ( )
1340
1069
. filter ( Boolean ) ,
0 commit comments