@cerefox/memory 1.1.0-beta.8 → 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.
- package/dist/bin/cerefox.js +25 -6
- package/dist/frontend/assets/{index-DD7DDGGU.js → index-B1pgikxA.js} +2 -2
- package/dist/frontend/assets/{index-DD7DDGGU.js.map → index-B1pgikxA.js.map} +1 -1
- package/dist/frontend/index.html +1 -1
- package/dist/server-assets/_shared/ef-meta/index.ts +1 -1
- package/dist/server-assets/db/migrations/0017_retention_default_120h.sql +28 -0
- package/dist/server-assets/db/rpcs.sql +5 -3
- package/dist/server-assets/db/schema.sql +1 -1
- package/docs/guides/configuration.md +9 -10
- package/docs/guides/setup-local.md +3 -1
- package/docs/guides/upgrading.md +48 -11
- package/package.json +1 -1
package/dist/bin/cerefox.js
CHANGED
|
@@ -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.
|
|
7441
|
+
var PKG_VERSION = "1.1.1";
|
|
7442
7442
|
var init_meta = () => {};
|
|
7443
7443
|
|
|
7444
7444
|
// ../../_shared/config/paths.ts
|
|
@@ -25858,7 +25858,7 @@ async function checkServerCompatibility(opts) {
|
|
|
25858
25858
|
var COMPATIBILITY;
|
|
25859
25859
|
var init_compatibility = __esm(() => {
|
|
25860
25860
|
COMPATIBILITY = {
|
|
25861
|
-
minSchema: "0.3
|
|
25861
|
+
minSchema: "0.10.3",
|
|
25862
25862
|
minEdgeFunctions: "0.6.0"
|
|
25863
25863
|
};
|
|
25864
25864
|
});
|
|
@@ -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.
|
|
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";
|
|
@@ -82495,9 +82496,9 @@ var CONFIG_CATALOG = [
|
|
|
82495
82496
|
},
|
|
82496
82497
|
{
|
|
82497
82498
|
key: "version_retention_hours",
|
|
82498
|
-
description: "How long to keep archived versions of a document. The most recent version and any explicitly archived one are always kept, whatever this says.",
|
|
82499
|
+
description: "How long to keep archived versions of a document (hours). The most recent version and any explicitly archived one are always kept, whatever this says.",
|
|
82499
82500
|
kind: "number",
|
|
82500
|
-
defaultValue: "
|
|
82501
|
+
defaultValue: "120",
|
|
82501
82502
|
min: 0,
|
|
82502
82503
|
group: "Retention"
|
|
82503
82504
|
},
|
|
@@ -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
|
-
|
|
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;
|