1
0

feat: 新增 memory checker,支持系统级内存和交换空间检测

This commit is contained in:
2026-05-27 00:05:06 +08:00
parent 358f8d011a
commit 145bb8fd04
22 changed files with 2348 additions and 14 deletions

View File

@@ -84,9 +84,22 @@ describe("CheckerRegistry", () => {
"dns",
"ws",
"cpu",
"memory",
"custom",
]);
expect(second.supportedTypes).toEqual(["http", "cmd", "db", "tcp", "icmp", "udp", "llm", "dns", "ws", "cpu"]);
expect(second.supportedTypes).toEqual([
"http",
"cmd",
"db",
"tcp",
"icmp",
"udp",
"llm",
"dns",
"ws",
"cpu",
"memory",
]);
expect(
first.definitions.every((checker) => checker.schemas.authoring.config && checker.schemas.normalized.expect),
).toBe(true);