@cerefox/memory 1.1.0 → 1.1.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.
@@ -7438,7 +7438,7 @@ var exports_meta = {};
7438
7438
  __export(exports_meta, {
7439
7439
  PKG_VERSION: () => PKG_VERSION
7440
7440
  });
7441
- var PKG_VERSION = "1.1.0";
7441
+ var PKG_VERSION = "1.1.1";
7442
7442
  var init_meta = () => {};
7443
7443
 
7444
7444
  // ../../_shared/config/paths.ts
@@ -75610,7 +75610,7 @@ import { homedir as homedir6 } from "node:os";
75610
75610
  import { join as join9 } from "node:path";
75611
75611
 
75612
75612
  // ../../_shared/ef-meta/index.ts
75613
- var EF_VERSION = "1.1.0";
75613
+ var EF_VERSION = "1.1.1";
75614
75614
  var EF_LAST_CHANGED = "1.1.0-beta.7";
75615
75615
 
75616
75616
  // src/cli/util/checks.ts
@@ -79020,6 +79020,7 @@ init_sync_self_docs();
79020
79020
 
79021
79021
  // src/cli/commands/web.ts
79022
79022
  init_cli_core();
79023
+ import { readFileSync as readFileSync19 } from "node:fs";
79023
79024
 
79024
79025
  // ../../node_modules/.bun/@hono+node-server@2.0.12+19b9adbcbc3b652f/node_modules/@hono/node-server/dist/constants-BLSFu_RU.mjs
79025
79026
  var X_ALREADY_SENT = "x-hono-already-sent";
@@ -84462,6 +84463,17 @@ async function runForeground(host, port, watch) {
84462
84463
  process.exit(1);
84463
84464
  }
84464
84465
  }
84466
+ function readStartupRefusal() {
84467
+ try {
84468
+ const tail = readFileSync19(daemonPaths.logFile, "utf8").slice(-4000);
84469
+ const idx = tail.lastIndexOf("Refusing to start:");
84470
+ if (idx === -1)
84471
+ return null;
84472
+ return tail.slice(idx).trim();
84473
+ } catch {
84474
+ return null;
84475
+ }
84476
+ }
84465
84477
  function registerWeb(program2) {
84466
84478
  const web = program2.command("web").description("Start the local web UI / API server (foreground; see `web start` for daemon).").option("--host <host>", "Bind host.", "127.0.0.1").option("--port <port>", "Bind port.", "8000").option("--watch", "Enable hot-reload (dev mode; reserved).").action(async (rawOpts) => {
84467
84479
  await runForeground(rawOpts.host, parsePort(rawOpts.port), rawOpts.watch);
@@ -84492,8 +84504,15 @@ function registerWeb(program2) {
84492
84504
  println(c.dim(` Logs: ${daemonPaths.logFile}`));
84493
84505
  println(c.dim(` Stop: cerefox web stop`));
84494
84506
  } else {
84495
- eprintln(`Started (pid ${outcome.pid}) but it is not responding on :${port} yet.
84507
+ const refusal = readStartupRefusal();
84508
+ if (refusal) {
84509
+ eprintln(refusal);
84510
+ eprintln(`
84511
+ Full log: ${daemonPaths.logFile}`);
84512
+ } else {
84513
+ eprintln(`Started (pid ${outcome.pid}) but it is not responding on :${port} yet.
84496
84514
  ` + `Check the log for errors: ${daemonPaths.logFile}`);
84515
+ }
84497
84516
  process.exit(1);
84498
84517
  }
84499
84518
  break;