feat: added syntax-aware tool example rendering across catalog, AI, and agent modules

- Added model-to-syntax mapping in catalog with preferred tool-call syntax API.
- Added `ToolExample` typing and `ToolCallSyntax` exports across tool/grammar interfaces.
- Added syntax-aware tool example rendering through provider-specific grammar invocations.
- Added `exampleSyntax` context flow and example metadata so rendered prompts include examples.
This commit is contained in:
can1357
2026-06-15 07:32:11 +02:00
parent 52f2ade900
commit 7687810c5d
52 changed files with 963 additions and 239 deletions
@@ -72,7 +72,7 @@ describe("InputController.presentLargePasteMenu actions", () => {
await controller.presentLargePasteMenu("payload", 1);
const options = spies.showHookSelector.mock.calls[0][1] as Array<{ label: string }>;
expect(options.map((option) => option.label)).toEqual([
expect(options.map(option => option.label)).toEqual([
"Attach as a wrapped block",
"Attach as local file",
"Paste inline",