fix(coding-agent): support dynamic tool registration and tool prompt snippets closes #1720

This commit is contained in:
Mario Zechner 2026-03-02 22:32:07 +01:00
parent ca5510158d
commit bc2fa8d6d0
12 changed files with 285 additions and 47 deletions

View file

@ -37,4 +37,19 @@ describe("buildSystemPrompt", () => {
expect(prompt).toContain("- write:");
});
});
describe("custom tool snippets", () => {
test("includes custom tools in available tools section", () => {
const prompt = buildSystemPrompt({
selectedTools: ["read", "dynamic_tool"],
toolSnippets: {
dynamic_tool: "Run dynamic test behavior",
},
contextFiles: [],
skills: [],
});
expect(prompt).toContain("- dynamic_tool: Run dynamic test behavior");
});
});
});