@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.js
CHANGED
|
@@ -16481,10 +16481,15 @@ function checkSize() {
|
|
|
16481
16481
|
}
|
|
16482
16482
|
var SKIP_COMMANDS = /* @__PURE__ */ new Set([
|
|
16483
16483
|
"heartbeat",
|
|
16484
|
-
"status_report"
|
|
16484
|
+
"status_report",
|
|
16485
|
+
"read_chat",
|
|
16486
|
+
"mark_session_seen"
|
|
16485
16487
|
]);
|
|
16488
|
+
function shouldLogCommand(cmd) {
|
|
16489
|
+
return !SKIP_COMMANDS.has(cmd);
|
|
16490
|
+
}
|
|
16486
16491
|
function logCommand(entry) {
|
|
16487
|
-
if (
|
|
16492
|
+
if (!shouldLogCommand(entry.cmd)) return;
|
|
16488
16493
|
try {
|
|
16489
16494
|
if (++writeCount2 % 500 === 0) {
|
|
16490
16495
|
checkRotation();
|