feat: 添加YAML智能解析支持到容错JSON解析器

修复tolerant_json_parser无法处理retrievedContext.text中YAML结构的问题
 新增process_yaml_in_json_value方法,递归检查JSON字符串字段中的YAML内容
 即使标准JSON解析成功,也会自动检测并解析YAML字符串字段
 添加YamlStringParsing恢复策略,提供详细的解析统计信息
 更新前端功能特性描述,添加YAML支持说明
 新增完整的测试用例验证YAML解析功能
 支持复杂的YAML嵌套结构、数组和对象解析
 遵循promptx/tauri-desktop-app-expert开发规范
This commit is contained in:
imeepos
2025-07-21 18:35:21 +08:00
parent a8c8f2a085
commit a8ed7ed007
5 changed files with 788 additions and 36 deletions

View File

@@ -24,6 +24,7 @@ tauri-plugin-fs = "2"
tauri-plugin-dialog = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
rusqlite = { version = "0.31", features = ["bundled", "chrono"] }
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1.0", features = ["v4", "serde"] }