feat: cron agent binding + doctor UI refresh

This commit is contained in:
Peter Steinberger committed 2026-01-13 04:25:41 +00:00
1 parent bfdbaa5ab6
commit b41e75a15d
19 files changed
+127 -32

No files matched your search

+5 -2
View File
@@ -1,6 +1,9 @@
import { describe, expect, it } from "vitest";
import { stripHeartbeatToken } from "./heartbeat.js";
import {
DEFAULT_HEARTBEAT_ACK_MAX_CHARS,
stripHeartbeatToken,
} from "./heartbeat.js";
import { HEARTBEAT_TOKEN } from "./tokens.js";
describe("stripHeartbeatToken", () => {
@@ -52,7 +55,7 @@ describe("stripHeartbeatToken", () => {
});
it("keeps heartbeat replies when remaining content exceeds threshold", () => {
const long = "A".repeat(400);
const long = "A".repeat(DEFAULT_HEARTBEAT_ACK_MAX_CHARS + 1);
expect(
stripHeartbeatToken(`${long} ${HEARTBEAT_TOKEN}`, { mode: "heartbeat" }),
).toEqual({