@adhdev/daemon-core 0.8.77 → 0.8.78
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/index.mjs
CHANGED
|
@@ -16348,10 +16348,15 @@ function checkSize() {
|
|
|
16348
16348
|
}
|
|
16349
16349
|
var SKIP_COMMANDS = /* @__PURE__ */ new Set([
|
|
16350
16350
|
"heartbeat",
|
|
16351
|
-
"status_report"
|
|
16351
|
+
"status_report",
|
|
16352
|
+
"read_chat",
|
|
16353
|
+
"mark_session_seen"
|
|
16352
16354
|
]);
|
|
16355
|
+
function shouldLogCommand(cmd) {
|
|
16356
|
+
return !SKIP_COMMANDS.has(cmd);
|
|
16357
|
+
}
|
|
16353
16358
|
function logCommand(entry) {
|
|
16354
|
-
if (
|
|
16359
|
+
if (!shouldLogCommand(entry.cmd)) return;
|
|
16355
16360
|
try {
|
|
16356
16361
|
if (++writeCount2 % 500 === 0) {
|
|
16357
16362
|
checkRotation();
|