Skip to content

Commit 8f4738e

Browse files
committed
refactor: update TypeScript configuration and clean up unused plugin imports in agent
1 parent 84a8a39 commit 8f4738e

File tree

3 files changed

+499
-463
lines changed

3 files changed

+499
-463
lines changed

agent/src/index.ts

+22-22
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ import createGoatPlugin from "@elizaos/plugin-goat";
4343
// import { alloraPlugin } from "@elizaos/plugin-allora";
4444
// import { aptosPlugin } from "@elizaos/plugin-aptos";
4545
// import { artheraPlugin } from "@elizaos/plugin-arthera";
46-
import { autonomePlugin } from "@elizaos/plugin-autonome";
47-
import { availPlugin } from "@elizaos/plugin-avail";
46+
// import { autonomePlugin } from "@elizaos/plugin-autonome";
47+
// import { availPlugin } from "@elizaos/plugin-avail";
4848
// import { avalanchePlugin } from "@elizaos/plugin-avalanche";
4949
import { binancePlugin } from "@elizaos/plugin-binance";
5050
// import {
@@ -57,7 +57,7 @@ import { binancePlugin } from "@elizaos/plugin-binance";
5757
// } from "@elizaos/plugin-coinbase";
5858
import { coingeckoPlugin } from "@elizaos/plugin-coingecko";
5959
import { coinmarketcapPlugin } from "@elizaos/plugin-coinmarketcap";
60-
//import { confluxPlugin } from "@elizaos/plugin-conflux";
60+
// import { confluxPlugin } from "@elizaos/plugin-conflux";
6161
// import { createCosmosPlugin } from "@elizaos/plugin-cosmos";
6262
// import { cronosZkEVMPlugin } from "@elizaos/plugin-cronoszkevm";
6363
import { echoChambersPlugin } from "@elizaos/plugin-echochambers";
@@ -71,7 +71,7 @@ import { lensPlugin } from "@elizaos/plugin-lensNetwork";
7171
// import { nearPlugin } from "@elizaos/plugin-near";
7272
import { nftGenerationPlugin } from "@elizaos/plugin-nft-generation";
7373
import { createNodePlugin } from "@elizaos/plugin-node";
74-
import { obsidianPlugin } from "@elizaos/plugin-obsidian";
74+
// import { obsidianPlugin } from "@elizaos/plugin-obsidian";
7575
import { sgxPlugin } from "@elizaos/plugin-sgx";
7676
import { solanaPlugin } from "@elizaos/plugin-solana";
7777
import { solanaAgentkitPlguin } from "@elizaos/plugin-solana-agentkit";
@@ -89,7 +89,7 @@ import { letzAIPlugin } from "@elizaos/plugin-letzai";
8989
import { thirdwebPlugin } from "@elizaos/plugin-thirdweb";
9090
// import { zksyncEraPlugin } from "@elizaos/plugin-zksync-era";
9191

92-
import { akashPlugin } from "@elizaos/plugin-akash";
92+
// import { akashPlugin } from "@elizaos/plugin-akash";
9393
import { OpacityAdapter } from "@elizaos/plugin-opacity";
9494
import { openWeatherPlugin } from "@elizaos/plugin-open-weather";
9595
import { quaiPlugin } from "@elizaos/plugin-quai";
@@ -102,8 +102,8 @@ import path from "path";
102102
import { fileURLToPath } from "url";
103103
import yargs from "yargs";
104104

105-
import { whaleDataEvaluator } from "./whaleDataEvaluator";
106-
import { whaleDataProvider } from "./whaleDataProvider";
105+
import { whaleDataEvaluator } from "./whaleDataEvaluator.js";
106+
import { whaleDataProvider } from "./whaleDataProvider.js";
107107

108108
const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file
109109
const __dirname = path.dirname(__filename); // get the name of the directory
@@ -771,7 +771,7 @@ export async function createAgent(
771771
getSecret(character, "SOLANA_PRIVATE_KEY")
772772
? solanaAgentkitPlguin
773773
: null,
774-
getSecret(character, "AUTONOME_JWT_TOKEN") ? autonomePlugin : null,
774+
// getSecret(character, "AUTONOME_JWT_TOKEN") ? autonomePlugin : null,
775775
// (getSecret(character, "NEAR_ADDRESS") ||
776776
// getSecret(character, "NEAR_WALLET_PUBLIC_KEY")) &&
777777
// getSecret(character, "NEAR_WALLET_SECRET_KEY")
@@ -827,11 +827,11 @@ export async function createAgent(
827827
getSecret(character, "SGX"))
828828
? teeLogPlugin
829829
: null,
830-
getSecret(character, "COINBASE_API_KEY") &&
831-
getSecret(character, "COINBASE_PRIVATE_KEY") &&
832-
getSecret(character, "COINBASE_NOTIFICATION_URI")
833-
? webhookPlugin
834-
: null,
830+
// getSecret(character, "COINBASE_API_KEY") &&
831+
// getSecret(character, "COINBASE_PRIVATE_KEY") &&
832+
// getSecret(character, "COINBASE_NOTIFICATION_URI")
833+
// ? webhookPlugin
834+
// : null,
835835
goatPlugin,
836836
rabbiPlugin,
837837
getSecret(character, "COINGECKO_API_KEY") ||
@@ -879,14 +879,14 @@ export async function createAgent(
879879
getSecret(character, "GENLAYER_PRIVATE_KEY")
880880
? genLayerPlugin
881881
: null,
882-
getSecret(character, "AVAIL_SEED") &&
883-
getSecret(character, "AVAIL_APP_ID")
884-
? availPlugin
885-
: null,
882+
// getSecret(character, "AVAIL_SEED") &&
883+
// getSecret(character, "AVAIL_APP_ID")
884+
// ? availPlugin
885+
// : null,
886886
getSecret(character, "OPEN_WEATHER_API_KEY")
887887
? openWeatherPlugin
888888
: null,
889-
getSecret(character, "OBSIDIAN_API_TOKEN") ? obsidianPlugin : null,
889+
// getSecret(character, "OBSIDIAN_API_TOKEN") ? obsidianPlugin : null,
890890
//getSecret(character, "ARTHERA_PRIVATE_KEY")?.startsWith("0x")
891891
// ? artheraPlugin
892892
// : null,
@@ -897,10 +897,10 @@ export async function createAgent(
897897
getSecret(character, "HYPERLIQUID_TESTNET")
898898
? hyperliquidPlugin
899899
: null,
900-
getSecret(character, "AKASH_MNEMONIC") &&
901-
getSecret(character, "AKASH_WALLET_ADDRESS")
902-
? akashPlugin
903-
: null,
900+
// getSecret(character, "AKASH_MNEMONIC") &&
901+
// getSecret(character, "AKASH_WALLET_ADDRESS")
902+
// ? akashPlugin
903+
// : null,
904904
getSecret(character, "QUAI_PRIVATE_KEY") ? quaiPlugin : null,
905905
].filter(Boolean),
906906
providers: [whaleDataProvider],

agent/tsconfig.json

+10-5
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@
33
"compilerOptions": {
44
"outDir": "dist",
55
"rootDir": ".",
6-
"module": "ESNext",
7-
"moduleResolution": "Bundler",
8-
"types": ["node", "jest"]
6+
"module": "NodeNext",
7+
"moduleResolution": "NodeNext",
8+
"types": [
9+
"node",
10+
"jest"
11+
]
912
},
1013
"ts-node": {
1114
"experimentalSpecifierResolution": "node",
1215
"transpileOnly": true,
1316
"esm": true
1417
},
15-
"include": ["src"]
16-
}
18+
"include": [
19+
"src"
20+
]
21+
}

0 commit comments

Comments
 (0)