Skip to content

Commit 7f79732

Browse files
committed
lint latest and revert client work
1 parent 92e55a4 commit 7f79732

29 files changed

+1536
-2745
lines changed

packages/cli/src/commands/start.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ import {
88
AgentRuntime,
99
type Character,
1010
type IAgentRuntime,
11-
ModelType,
1211
type Plugin,
1312
logger,
14-
settings,
1513
stringToUuid,
1614
} from '@elizaos/core';
1715
import { Command } from 'commander';
@@ -353,7 +351,7 @@ const startAgents = async (options: { configure?: boolean; port?: number; charac
353351
server.loadCharacterTryPath = loadCharacterTryPath;
354352
server.jsonToCharacter = jsonToCharacter;
355353

356-
const serverPort = options.port || Number.parseInt(settings.SERVER_PORT || '3000');
354+
const serverPort = options.port || Number.parseInt(process.env.SERVER_PORT || '3000');
357355

358356
// Try to find a project or plugin in the current directory
359357
let isProject = false;

packages/cli/src/commands/test.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
import { buildProject } from '@/src/utils/build-project';
2+
import { type IAgentRuntime, type ProjectAgent, logger } from '@elizaos/core';
3+
import { Command } from 'commander';
4+
import * as dotenv from 'dotenv';
15
import * as fs from 'node:fs';
26
import { existsSync } from 'node:fs';
37
import * as net from 'node:net';
48
import * as os from 'node:os';
59
import path from 'node:path';
6-
import { buildProject } from '@/src/utils/build-project';
7-
import { type IAgentRuntime, ModelType, type ProjectAgent, logger, settings } from '@elizaos/core';
8-
import { Command } from 'commander';
9-
import * as dotenv from 'dotenv';
1010
import { loadProject } from '../project.js';
1111
import { AgentServer } from '../server/index.js';
1212
import { jsonToCharacter, loadCharacterTryPath } from '../server/loader';
@@ -224,7 +224,7 @@ const runAgentTests = async (options: {
224224
server.jsonToCharacter = jsonToCharacter;
225225
logger.info('Server properties set up');
226226

227-
const serverPort = options.port || Number.parseInt(settings.SERVER_PORT || '3000');
227+
const serverPort = options.port || Number.parseInt(process.env.SERVER_PORT || '3000');
228228

229229
let project;
230230
try {

0 commit comments

Comments
 (0)