refactor!: drop clawdis_ tool prefix

This commit is contained in:
Peter Steinberger
2026-01-03 12:39:52 +01:00
parent 772ada4308
commit 1ec3512925
11 changed files with 59 additions and 53 deletions

View File

@@ -24,6 +24,7 @@ describe("tool meta formatting", () => {
vi.stubEnv("HOME", "/Users/test");
expect(shortenMeta("/Users/test/a.txt")).toBe("~/a.txt");
expect(shortenMeta("/Users/test/a.txt:12")).toBe("~/a.txt:12");
expect(shortenMeta("cd /Users/test/dir && ls")).toBe("cd ~/dir && ls");
expect(shortenMeta("")).toBe("");
});
@@ -35,7 +36,7 @@ describe("tool meta formatting", () => {
"note",
"a→b",
]);
expect(out).toMatch(/^🛠️ fs/);
expect(out).toMatch(/^🧩 fs/);
expect(out).toContain("~/dir/{a.txt, b.txt}");
expect(out).toContain("note");
expect(out).toContain("a→b");
@@ -43,8 +44,8 @@ describe("tool meta formatting", () => {
it("formats prefixes with default labels", () => {
vi.stubEnv("HOME", "/Users/test");
expect(formatToolPrefix(undefined, undefined)).toBe("🛠️ tool");
expect(formatToolPrefix("x", "/Users/test/a.txt")).toBe("🛠️ x: ~/a.txt");
expect(formatToolPrefix(undefined, undefined)).toBe("🧩 tool");
expect(formatToolPrefix("x", "/Users/test/a.txt")).toBe("🧩 x: ~/a.txt");
});
});