feat: improve Claude agent model normalization and tool mapping
This commit is contained in:
@@ -244,6 +244,24 @@ describe("claude tool-call mapper", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("normalizes namespaced voice MCP speak tools", () => {
|
||||
const item = expectMapped(
|
||||
mapClaudeCompletedToolCall({
|
||||
callId: "claude-speak-2",
|
||||
name: "mcp__paseo_voice__speak",
|
||||
input: { text: "Hey! I can hear you." },
|
||||
output: { ok: true },
|
||||
})
|
||||
);
|
||||
|
||||
expect(item.name).toBe("speak");
|
||||
expect(item.detail).toEqual({
|
||||
type: "unknown",
|
||||
input: "Hey! I can hear you.",
|
||||
output: null,
|
||||
});
|
||||
});
|
||||
|
||||
it("drops tool calls when callId is missing", () => {
|
||||
const item = mapClaudeCompletedToolCall({
|
||||
callId: null,
|
||||
|
||||
Reference in New Issue
Block a user