@inerrata-corporation/errata 2.0.2-dev.223 → 2.0.2-dev.226
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/errata.mjs +13 -1
- package/package.json +1 -1
package/errata.mjs
CHANGED
|
@@ -52391,7 +52391,7 @@ function startLoopLagMonitor(thresholdMs = 1e3) {
|
|
|
52391
52391
|
}
|
|
52392
52392
|
|
|
52393
52393
|
// src/engine.ts
|
|
52394
|
-
var DAEMON_VERSION = true ? "2.0.2-dev.
|
|
52394
|
+
var DAEMON_VERSION = true ? "2.0.2-dev.226" : "2.0.0-alpha.0";
|
|
52395
52395
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
52396
52396
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
52397
52397
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -58728,7 +58728,19 @@ async function cmdConsent(args2) {
|
|
|
58728
58728
|
console.log(" note: run `errata login` to actually upload (no cloud credential yet).");
|
|
58729
58729
|
}
|
|
58730
58730
|
}
|
|
58731
|
+
function installLogTimestamps() {
|
|
58732
|
+
const ISO_AT_START = /^\[?\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/;
|
|
58733
|
+
for (const level of ["log", "warn", "error"]) {
|
|
58734
|
+
const original = console[level].bind(console);
|
|
58735
|
+
console[level] = (...args2) => {
|
|
58736
|
+
const first = args2[0];
|
|
58737
|
+
if (typeof first === "string" && ISO_AT_START.test(first)) return original(...args2);
|
|
58738
|
+
original(`[${(/* @__PURE__ */ new Date()).toISOString()}]`, ...args2);
|
|
58739
|
+
};
|
|
58740
|
+
}
|
|
58741
|
+
}
|
|
58731
58742
|
async function cmdDash(args2) {
|
|
58743
|
+
installLogTimestamps();
|
|
58732
58744
|
const portIdx = args2.indexOf("--port");
|
|
58733
58745
|
const port = portIdx >= 0 && args2[portIdx + 1] ? Number(args2[portIdx + 1]) : 7891;
|
|
58734
58746
|
const reindexOnStart = !args2.includes("--no-reindex");
|