源码快照 @ 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
+20
View File
@@ -0,0 +1,20 @@
import { describe, expect, test } from "bun:test";
import { appMentionInstruction } from "../src/react-app/domains/session/surface/composer/app-mentions";
import { decodeComposerMentionValue, encodeComposerMentionValue } from "../src/react-app/domains/session/surface/composer/mention-encoding";
describe("app-mentions", () => {
test("instruction names the app and steers to a computer-use snapshot", () => {
const instruction = appMentionInstruction("Music");
expect(instruction).toContain('"Music"');
expect(instruction).toContain("computer-use");
expect(instruction).toContain('snapshot {"app": "Music"}');
});
test("app names with spaces round-trip through mention encoding", () => {
const value = "Visual Studio Code";
const encoded = encodeComposerMentionValue(value);
expect(encoded).toBe("Visual%20Studio%20Code");
expect(decodeComposerMentionValue(encoded)).toBe(value);
});
});