Skip to content

Commit d3942db

Browse files
committed
cli improvements
1 parent a6ffd54 commit d3942db

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

packages/cli/src/server/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ export class AgentServer {
110110
// Only continue with server initialization after database is ready
111111
await this.initializeServer(options);
112112

113+
// wait 250 ms
114+
await new Promise((resolve) => setTimeout(resolve, 250));
115+
113116
// Move this message here to be more accurate
114117
console.log(
115118
`\x1b[32mStartup successful!\nGo to the dashboard at \x1b[1m${AGENT_RUNTIME_URL}\x1b[22m\x1b[0m`

packages/client/src/lib/socketio-manager.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1+
import { USER_NAME } from '@/constants';
12
import { SOCKET_MESSAGE_TYPE } from '@elizaos/core';
23
import EventEmitter from 'eventemitter3';
34
import { io, type Socket } from 'socket.io-client';
4-
import { apiClient } from './api';
55
import { WorldManager } from './world-manager';
6-
import { USER_NAME } from '@/constants';
76

87
const BASE_URL = `http://localhost:${import.meta.env.VITE_SERVER_PORT}`;
98

10-
type MessagePayload = Record<string, any>;
11-
129
/**
1310
* SocketIOManager handles real-time communication between the client and server
1411
* using Socket.io. It maintains a single connection to the server and allows

packages/plugin-starter/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
"prettier": "3.5.3"
3434
},
3535
"scripts": {
36-
"start": "npx @elizaos/cli@alpha start",
36+
"start": "npx @elizaos/cli start",
3737
"test-with-cli": "cd ../cli && bun run build && cd ../plugin-starter && elizaos test",
38-
"dev": "npx @elizaos/cli@alpha dev",
38+
"dev": "npx @elizaos/cli dev",
3939
"build": "tsup",
4040
"lint": "prettier --write ./src",
41-
"test": "npx @elizaos/cli@alpha test",
42-
"publish": "npx @elizaos/cli@alpha plugin publish",
41+
"test": "npx @elizaos/cli test",
42+
"publish": "npx @elizaos/cli plugin publish",
4343
"format": "prettier --write ./src",
4444
"format:check": "prettier --check ./src"
4545
},

packages/project-starter/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
"prettier": "3.5.3"
3333
},
3434
"scripts": {
35-
"start": "npx @elizaos/cli@alpha start",
36-
"dev": "npx @elizaos/cli@alpha dev",
35+
"start": "npx @elizaos/cli start",
36+
"dev": "npx @elizaos/cli dev",
3737
"build": "tsup",
3838
"lint": "prettier --write ./src",
39-
"test": "npx @elizaos/cli@alpha test",
40-
"deploy": "npx @elizaos/cli@alpha deploy",
39+
"test": "npx @elizaos/cli test",
40+
"deploy": "npx @elizaos/cli deploy",
4141
"format": "prettier --write ./src",
4242
"format:check": "prettier --check ./src"
4343
},

0 commit comments

Comments
 (0)