Preset manifest.json silently ignores custom transformer path
Author: Hibrix-netCreated Apr 25, 2026Updated Sep 24, 2026
Description
When I define a custom transformer using the "path" attribute inside my global config.json, it loads and works perfectly.
However, if I put that exact same configuration inside a preset's manifest.json, CCR completely ignores the path. It doesn't load the .js file, and it doesn't print any "file not found" errors in the server logs. It just silently falls back to the default built-in transformer.
Steps to reproduce:
- Create a preset manifest.json with a custom transformer path:
"transformers":[
{
"name": "gemini-custom",
"provider": "gemini",
"path": "C:/path/to/custom-script.js"
}
]- Activate the preset and make a request.
- The custom script is never executed. (Even putting a throw new Error() at the very top of the .js file does nothing).
Expected:
The preset engine should load the .js file exactly like the global config does, or throw a clear error in the console if the path fails to resolve.
Environment:
Windows 11 I've tried absolute paths, relative paths (./script.js), and file:/// URIs. None work inside presets.
Source: musistudio/claude-code-router