源码快照 @ 2026-09-02 (source-only, 剔除非源码素材)

This commit is contained in:
agent-radar
2026-09-02 01:05:41 +08:00
commit 04bac1f6e2
2200 changed files with 489415 additions and 0 deletions
@@ -0,0 +1,13 @@
import { describe, expect, test } from "bun:test";
import { toolCallIdsKey } from "../src/components/chat/current-tool-lifecycle-context";
describe("current tool lifecycle context", () => {
test("gives reordered tool identifiers the same context key", () => {
expect(toolCallIdsKey(new Set(["tool-a", "tool-b"]))).toBe(toolCallIdsKey(new Set(["tool-b", "tool-a"])));
});
test("changes the context key when membership changes", () => {
expect(toolCallIdsKey(new Set(["tool-a"]))).not.toBe(toolCallIdsKey(new Set(["tool-b"])));
});
});