v1.10.2
What's Changed
Ultrathink Plugin v2.0.2
Auto-correct shell escaped quotes in JSON arguments
Fixed a common issue where LLMs would pass incorrectly escaped JSON arguments to the ultrathink CLI, causing validation errors.
Features
- Auto-correct shell escaping mistakes like
'[{\"id\":\"A1\"}]'to valid JSON - Handle nested escaping where text contains escaped quotes (e.g.,
'[{\"text\":\"has \\\"quotes\\\"\"}]') - Refactored
_parse_json_list()for cleaner code and better maintainability
Technical Details
- Added
_fix_shell_escaped_quotes()function to detect and fix common shell escaping patterns - Added
_ParseResultclass and_try_parse_as_list()helper for cleaner parsing logic - All 134 tests passing
🤖 Generated with Claude Code