* 构建默认配置
()
| 219 | * 构建默认配置 |
| 220 | */ |
| 221 | function defaultConfig(): AppConfig { |
| 222 | return { |
| 223 | port: 3010, |
| 224 | timeout: 120, |
| 225 | cursorModel: 'anthropic/claude-sonnet-4.6', |
| 226 | maxAutoContinue: 0, |
| 227 | maxHistoryMessages: -1, |
| 228 | maxHistoryTokens: 150000, |
| 229 | sanitizeEnabled: false, // 默认关闭响应内容清洗 |
| 230 | fingerprint: { |
| 231 | userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36', |
| 232 | }, |
| 233 | }; |
| 234 | } |
| 235 | |
| 236 | /** |
| 237 | * 检测配置变更并返回变更描述列表 |
no outgoing calls
no test coverage detected