Skip to content

Commit 9abeb1c

Browse files
committed
integrate goat plugin
1 parent 8d3ed88 commit 9abeb1c

File tree

5 files changed

+76
-200
lines changed

5 files changed

+76
-200
lines changed

agent/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@ai16z/plugin-node": "workspace:*",
3333
"@ai16z/plugin-solana": "workspace:*",
3434
"@ai16z/plugin-0g": "workspace:*",
35+
"@ai16z/plugin-goat": "workspace:*",
3536
"@ai16z/plugin-starknet": "workspace:*",
3637
"@ai16z/plugin-icp": "workspace:*",
3738
"@ai16z/plugin-tee": "workspace:*",

agent/src/index.ts

+2-18
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
validateCharacterConfig,
2424
} from "@ai16z/eliza";
2525
import { zgPlugin } from "@ai16z/plugin-0g";
26+
import { goatPlugin } from "@ai16z/plugin-goat";
2627
import { bootstrapPlugin } from "@ai16z/plugin-bootstrap";
2728
// import { buttplugPlugin } from "@ai16z/plugin-buttplug";
2829
import {
@@ -90,24 +91,6 @@ export async function loadCharacters(
9091
.map((filePath) => filePath.trim());
9192
const loadedCharacters = [];
9293

93-
// Add logging here
94-
elizaLogger.info("Character loading details:", {
95-
characterPaths,
96-
cwd: process.cwd(),
97-
dirname: __dirname,
98-
fullPath: path.resolve(
99-
process.cwd(),
100-
"characters/8bitoracle.laozi.character.json"
101-
),
102-
exists: fs.existsSync(
103-
path.resolve(
104-
process.cwd(),
105-
"characters/8bitoracle.laozi.character.json"
106-
)
107-
),
108-
dirContents: fs.readdirSync(process.cwd()),
109-
});
110-
11194
if (characterPaths?.length > 0) {
11295
for (const characterPath of characterPaths) {
11396
let content = null;
@@ -393,6 +376,7 @@ export function createAgent(
393376
? [coinbaseMassPaymentsPlugin, tradePlugin]
394377
: []),
395378
getSecret(character, "WALLET_SECRET_SALT") ? teePlugin : null,
379+
getSecret(character, "ALCHEMY_API_KEY") ? goatPlugin : null,
396380
].filter(Boolean),
397381
providers: [],
398382
actions: [],

packages/plugin-goat/tsconfig.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../core/tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
55
"rootDir": "./src",
66
"declaration": true
77
},
8-
"include": ["src"]
9-
}
8+
"include": [
9+
"src"
10+
]
11+
}

pnpm-lock.yaml

+68-57
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)