@elizaos/cli 1.6.2-alpha.6 → 1.6.2-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/start/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,eAAO,MAAM,KAAK,SA+Nd,CAAC;AAGL,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/start/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,eAAO,MAAM,KAAK,SAgPd,CAAC;AAGL,cAAc,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -4727,7 +4727,7 @@ __export(exports_version, {
4727
4727
  BUILD_TIME: () => BUILD_TIME,
4728
4728
  BUILD_ENV: () => BUILD_ENV
4729
4729
  });
4730
- var CLI_VERSION = "1.6.2-alpha.6", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-10-07T06:20:41.334Z", BUILD_ENV = "production", version_default;
4730
+ var CLI_VERSION = "1.6.2-alpha.8", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-10-07T11:35:50.833Z", BUILD_ENV = "production", version_default;
4731
4731
  var init_version = __esm(() => {
4732
4732
  version_default = {
4733
4733
  version: CLI_VERSION,
@@ -307267,7 +307267,23 @@ var start = new Command().name("start").description("Build and start the Eliza a
307267
307267
  dataDir: process.env.PGLITE_DATA_DIR,
307268
307268
  postgresUrl: process.env.POSTGRES_URL
307269
307269
  });
307270
- await server2.start(options.port || 3000);
307270
+ let port;
307271
+ if (options.port !== undefined) {
307272
+ port = options.port;
307273
+ } else {
307274
+ const envPort = process.env.SERVER_PORT;
307275
+ if (envPort) {
307276
+ try {
307277
+ port = validatePort(envPort);
307278
+ } catch {
307279
+ logger42.warn(`Invalid SERVER_PORT "${envPort}", falling back to 3000`);
307280
+ port = 3000;
307281
+ }
307282
+ } else {
307283
+ port = 3000;
307284
+ }
307285
+ }
307286
+ await server2.start(port);
307271
307287
  if (projectAgents && projectAgents.length > 0) {
307272
307288
  const runtimes = [];
307273
307289
  const agentRuntimeMap = new Map;
@@ -309529,5 +309545,5 @@ main().catch((error47) => {
309529
309545
  process.exit(1);
309530
309546
  });
309531
309547
 
309532
- //# debugId=B190C7F8CED7969664756E2164756E21
309548
+ //# debugId=C079AC502957C6F464756E2164756E21
309533
309549
  //# sourceMappingURL=index.js.map