Skip to content

Commit be74341

Browse files
committed
Merge remote-tracking branch 'ai16z/develop' into jure/integration-tests
2 parents 969db65 + 855c029 commit be74341

File tree

59 files changed

+1922
-1490
lines changed

Some content is hidden

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

59 files changed

+1922
-1490
lines changed

CHANGELOG.md

+186-3
Large diffs are not rendered by default.

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ COPY --from=builder /app/scripts ./scripts
5252
COPY --from=builder /app/characters ./characters
5353

5454
# Set the command to run the application
55-
CMD ["pnpm", "start", "--non-interactive"]
55+
CMD ["pnpm", "start"]

agent/package.json

+59-59
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
{
2-
"name": "@ai16z/agent",
3-
"version": "0.1.5-alpha.6",
4-
"main": "src/index.ts",
5-
"type": "module",
6-
"scripts": {
7-
"start": "node --loader ts-node/esm src/index.ts",
8-
"dev": "node --loader ts-node/esm src/index.ts",
9-
"check-types": "tsc --noEmit"
10-
},
11-
"nodemonConfig": {
12-
"watch": [
13-
"src",
14-
"../core/dist"
15-
],
16-
"ext": "ts,json",
17-
"exec": "node --enable-source-maps --loader ts-node/esm src/index.ts"
18-
},
19-
"dependencies": {
20-
"@ai16z/adapter-postgres": "workspace:*",
21-
"@ai16z/adapter-sqlite": "workspace:*",
22-
"@ai16z/client-auto": "workspace:*",
23-
"@ai16z/client-direct": "workspace:*",
24-
"@ai16z/client-discord": "workspace:*",
25-
"@ai16z/client-farcaster": "workspace:*",
26-
"@ai16z/client-lens": "workspace:*",
27-
"@ai16z/client-telegram": "workspace:*",
28-
"@ai16z/client-twitter": "workspace:*",
29-
"@ai16z/client-slack": "workspace:*",
30-
"@ai16z/eliza": "workspace:*",
31-
"@ai16z/plugin-0g": "workspace:*",
32-
"@ai16z/plugin-aptos": "workspace:*",
33-
"@ai16z/plugin-bootstrap": "workspace:*",
34-
"@ai16z/plugin-intiface": "workspace:*",
35-
"@ai16z/plugin-coinbase": "workspace:*",
36-
"@ai16z/plugin-conflux": "workspace:*",
37-
"@ai16z/plugin-evm": "workspace:*",
38-
"@ai16z/plugin-flow": "workspace:*",
39-
"@ai16z/plugin-story": "workspace:*",
40-
"@ai16z/plugin-goat": "workspace:*",
41-
"@ai16z/plugin-icp": "workspace:*",
42-
"@ai16z/plugin-image-generation": "workspace:*",
43-
"@ai16z/plugin-nft-generation": "workspace:*",
44-
"@ai16z/plugin-node": "workspace:*",
45-
"@ai16z/plugin-solana": "workspace:*",
46-
"@ai16z/plugin-starknet": "workspace:*",
47-
"@ai16z/plugin-ton": "workspace:*",
48-
"@ai16z/plugin-sui": "workspace:*",
49-
"@ai16z/plugin-tee": "workspace:*",
50-
"@ai16z/plugin-multiversx": "workspace:*",
51-
"@ai16z/plugin-near": "workspace:*",
52-
"@ai16z/plugin-zksync-era": "workspace:*",
53-
"readline": "1.3.0",
54-
"ws": "8.18.0",
55-
"yargs": "17.7.2"
56-
},
57-
"devDependencies": {
58-
"ts-node": "10.9.2",
59-
"tsup": "8.3.5"
60-
}
2+
"name": "@ai16z/agent",
3+
"version": "0.1.6-alpha.4",
4+
"main": "src/index.ts",
5+
"type": "module",
6+
"scripts": {
7+
"start": "node --loader ts-node/esm src/index.ts",
8+
"dev": "node --loader ts-node/esm src/index.ts",
9+
"check-types": "tsc --noEmit"
10+
},
11+
"nodemonConfig": {
12+
"watch": [
13+
"src",
14+
"../core/dist"
15+
],
16+
"ext": "ts,json",
17+
"exec": "node --enable-source-maps --loader ts-node/esm src/index.ts"
18+
},
19+
"dependencies": {
20+
"@ai16z/adapter-postgres": "workspace:*",
21+
"@ai16z/adapter-sqlite": "workspace:*",
22+
"@ai16z/client-auto": "workspace:*",
23+
"@ai16z/client-direct": "workspace:*",
24+
"@ai16z/client-discord": "workspace:*",
25+
"@ai16z/client-farcaster": "workspace:*",
26+
"@ai16z/client-lens": "workspace:*",
27+
"@ai16z/client-telegram": "workspace:*",
28+
"@ai16z/client-twitter": "workspace:*",
29+
"@ai16z/client-slack": "workspace:*",
30+
"@ai16z/eliza": "workspace:*",
31+
"@ai16z/plugin-0g": "workspace:*",
32+
"@ai16z/plugin-aptos": "workspace:*",
33+
"@ai16z/plugin-bootstrap": "workspace:*",
34+
"@ai16z/plugin-intiface": "workspace:*",
35+
"@ai16z/plugin-coinbase": "workspace:*",
36+
"@ai16z/plugin-conflux": "workspace:*",
37+
"@ai16z/plugin-evm": "workspace:*",
38+
"@ai16z/plugin-flow": "workspace:*",
39+
"@ai16z/plugin-story": "workspace:*",
40+
"@ai16z/plugin-goat": "workspace:*",
41+
"@ai16z/plugin-icp": "workspace:*",
42+
"@ai16z/plugin-image-generation": "workspace:*",
43+
"@ai16z/plugin-nft-generation": "workspace:*",
44+
"@ai16z/plugin-node": "workspace:*",
45+
"@ai16z/plugin-solana": "workspace:*",
46+
"@ai16z/plugin-starknet": "workspace:*",
47+
"@ai16z/plugin-ton": "workspace:*",
48+
"@ai16z/plugin-sui": "workspace:*",
49+
"@ai16z/plugin-tee": "workspace:*",
50+
"@ai16z/plugin-multiversx": "workspace:*",
51+
"@ai16z/plugin-near": "workspace:*",
52+
"@ai16z/plugin-zksync-era": "workspace:*",
53+
"readline": "1.3.0",
54+
"ws": "8.18.0",
55+
"yargs": "17.7.2"
56+
},
57+
"devDependencies": {
58+
"ts-node": "10.9.2",
59+
"tsup": "8.3.5"
60+
}
6161
}

agent/src/index.ts

+10-4
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ export const wait = (minTime: number = 1000, maxTime: number = 3000) => {
6969
};
7070

7171
const logFetch = async (url: string, options: any) => {
72-
elizaLogger.info(`Fetching ${url}`);
72+
elizaLogger.debug(`Fetching ${url}`);
7373
// Disabled to avoid disclosure of sensitive information such as API keys
74-
// elizaLogger.info(JSON.stringify(options, null, 2));
74+
// elizaLogger.debug(JSON.stringify(options, null, 2));
7575
return fetch(url, options);
7676
};
7777

@@ -648,10 +648,16 @@ const startAgents = async () => {
648648
elizaLogger.error("Error starting agents:", error);
649649
}
650650

651+
// upload some agent functionality into directClient
652+
directClient.startAgent = async (character) => {
653+
// wrap it so we don't have to inject directClient later
654+
return startAgent(character, directClient);
655+
};
651656
directClient.start(serverPort);
652657

653-
elizaLogger.log("Visit the following URL to chat with your agents:");
654-
elizaLogger.log(`http://localhost:5173`);
658+
elizaLogger.log(
659+
"Run `pnpm start:client` to start the client and visit the outputted URL (http://localhost:5173) to chat with your agents"
660+
);
655661
};
656662

657663
startAgents().catch((error) => {

client/package.json

+45-45
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
{
2-
"name": "eliza-client",
3-
"private": true,
4-
"version": "0.1.5-alpha.1",
5-
"type": "module",
6-
"scripts": {
7-
"dev": "vite",
8-
"build": "vite build",
9-
"check-types": "tsc --noEmit",
10-
"lint": "eslint .",
11-
"preview": "vite preview"
12-
},
13-
"dependencies": {
14-
"@ai16z/eliza": "workspace:*",
15-
"@radix-ui/react-dialog": "1.1.2",
16-
"@radix-ui/react-separator": "1.1.0",
17-
"@radix-ui/react-slot": "1.1.0",
18-
"@radix-ui/react-tooltip": "1.1.4",
19-
"@tanstack/react-query": "5.61.0",
20-
"class-variance-authority": "0.7.1",
21-
"clsx": "2.1.1",
22-
"lucide-react": "0.460.0",
23-
"react": "18.3.1",
24-
"react-dom": "18.3.1",
25-
"react-router-dom": "6.22.1",
26-
"tailwind-merge": "2.5.5",
27-
"tailwindcss-animate": "1.0.7",
28-
"vite-plugin-top-level-await": "1.4.4",
29-
"vite-plugin-wasm": "3.3.0"
30-
},
31-
"devDependencies": {
32-
"@eslint/js": "9.16.0",
33-
"@types/node": "22.8.4",
34-
"@types/react": "18.3.12",
35-
"@types/react-dom": "18.3.1",
36-
"@vitejs/plugin-react": "4.3.3",
37-
"autoprefixer": "10.4.20",
38-
"eslint-plugin-react-hooks": "5.0.0",
39-
"eslint-plugin-react-refresh": "0.4.14",
40-
"globals": "15.11.0",
41-
"postcss": "8.4.49",
42-
"tailwindcss": "3.4.15",
43-
"typescript": "5.6.3",
44-
"typescript-eslint": "8.11.0",
45-
"vite": "link:@tanstack/router-plugin/vite"
46-
}
2+
"name": "eliza-client",
3+
"private": true,
4+
"version": "0.1.6-alpha.4",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"check-types": "tsc --noEmit",
10+
"lint": "eslint .",
11+
"preview": "vite preview"
12+
},
13+
"dependencies": {
14+
"@ai16z/eliza": "workspace:*",
15+
"@radix-ui/react-dialog": "1.1.2",
16+
"@radix-ui/react-separator": "1.1.0",
17+
"@radix-ui/react-slot": "1.1.0",
18+
"@radix-ui/react-tooltip": "1.1.4",
19+
"@tanstack/react-query": "5.61.0",
20+
"class-variance-authority": "0.7.1",
21+
"clsx": "2.1.1",
22+
"lucide-react": "0.460.0",
23+
"react": "18.3.1",
24+
"react-dom": "18.3.1",
25+
"react-router-dom": "6.22.1",
26+
"tailwind-merge": "2.5.5",
27+
"tailwindcss-animate": "1.0.7",
28+
"vite-plugin-top-level-await": "1.4.4",
29+
"vite-plugin-wasm": "3.3.0"
30+
},
31+
"devDependencies": {
32+
"@eslint/js": "9.16.0",
33+
"@types/node": "22.8.4",
34+
"@types/react": "18.3.12",
35+
"@types/react-dom": "18.3.1",
36+
"@vitejs/plugin-react": "4.3.3",
37+
"autoprefixer": "10.4.20",
38+
"eslint-plugin-react-hooks": "5.0.0",
39+
"eslint-plugin-react-refresh": "0.4.14",
40+
"globals": "15.11.0",
41+
"postcss": "8.4.49",
42+
"tailwindcss": "3.4.15",
43+
"typescript": "5.6.3",
44+
"typescript-eslint": "8.11.0",
45+
"vite": "link:@tanstack/router-plugin/vite"
46+
}
4747
}

0 commit comments

Comments
 (0)