feat: 完善两阶段 Agent 自进化 Pipeline、Skills 与 Benchmark (#129)

This commit is contained in:
Jingzhe Xu
2026-07-30 15:59:58 +08:00
committed by GitHub
parent 3bd0a7208a
commit 081fe2d172
34 changed files with 2093 additions and 763 deletions
+9
View File
@@ -12,12 +12,21 @@ import {
formatPercent,
formatRelativeDate,
formatRelativeDays,
formatScore,
formatTps,
humanizeDuration,
humanizeTokens,
signedDelta,
} from "../src/lib/format";
describe("formatScore", () => {
it("keeps up to the stored two decimal places", () => {
expect(formatScore(72)).toBe("72");
expect(formatScore(72.5)).toBe("72.5");
expect(formatScore(72.35)).toBe("72.35");
});
});
describe("humanizeTokens", () => {
it("below 1000 unchanged", () => {
expect(humanizeTokens(0)).toBe("0");