mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 08:17:11 +00:00
Replace permissive JSON Schema Draft-07 whitelist with strict Gemini-compatible field set (22 fields). The "examples" field in Claude Code tool schemas caused 400 errors from Gemini API. Also strips other unsupported fields: $ref, $defs, oneOf, allOf, additionalProperties, const, if/then/else, etc. Safe change — sanitizer only runs for CLIProxy profiles (Gemini, Codex, Antigravity), never for direct Anthropic API requests. Closes #155