@elizaos/cli 1.5.10-beta.0 → 1.5.11-alpha.1

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":"dev-server.d.ts","sourceRoot":"","sources":["../../../../src/commands/dev/actions/dev-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAkRtC;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CA8OrE"}
1
+ {"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../../../src/commands/dev/actions/dev-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAuStC;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAiPrE"}
package/dist/index.js CHANGED
@@ -4688,7 +4688,7 @@ __export(exports_version, {
4688
4688
  BUILD_TIME: () => BUILD_TIME,
4689
4689
  BUILD_ENV: () => BUILD_ENV
4690
4690
  });
4691
- var CLI_VERSION = "1.5.10-beta.0", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-09-17T22:27:55.283Z", BUILD_ENV = "production", version_default;
4691
+ var CLI_VERSION = "1.5.11-alpha.1", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-09-19T04:43:42.482Z", BUILD_ENV = "production", version_default;
4692
4692
  var init_version = __esm(() => {
4693
4693
  version_default = {
4694
4694
  version: CLI_VERSION,
@@ -274346,6 +274346,7 @@ async function stopServer() {
274346
274346
 
274347
274347
  // src/commands/dev/actions/dev-server.ts
274348
274348
  init_utils();
274349
+ init_port_handling();
274349
274350
  init_dependency_manager();
274350
274351
  init_source();
274351
274352
  import { logger as logger28 } from "@elizaos/core";
@@ -274488,6 +274489,16 @@ async function stopClientDevServer() {
274488
274489
  await new Promise((resolve2) => setTimeout(resolve2, 500));
274489
274490
  }
274490
274491
  }
274492
+ async function waitForPortToBeFree(port, host, timeoutMs = 15000) {
274493
+ const start = Date.now();
274494
+ if (await isPortFree(port, host))
274495
+ return;
274496
+ while (Date.now() - start < timeoutMs) {
274497
+ await new Promise((resolve2) => setTimeout(resolve2, 150));
274498
+ if (await isPortFree(port, host))
274499
+ return;
274500
+ }
274501
+ }
274491
274502
  async function getClientPort(cwd) {
274492
274503
  const possibleClientDirs = [
274493
274504
  cwd,
@@ -274596,6 +274607,7 @@ async function startDevMode(options) {
274596
274607
  }
274597
274608
  await performRebuild(context);
274598
274609
  console.log("\u2713 Rebuild successful, restarting...");
274610
+ await waitForPortToBeFree(serverPort, serverHost);
274599
274611
  await serverManager2.start(cliArgs);
274600
274612
  if (shouldStartClient2) {
274601
274613
  await new Promise((resolve2) => setTimeout(resolve2, 2000));
@@ -299358,5 +299370,5 @@ main2().catch((error2) => {
299358
299370
  process.exit(1);
299359
299371
  });
299360
299372
 
299361
- //# debugId=94048DB08A0F57E064756E2164756E21
299373
+ //# debugId=BABC633CD10056DB64756E2164756E21
299362
299374
  //# sourceMappingURL=index.js.map