feat: add AI insight debug log export toggle

This commit is contained in:
Jason
2026-04-12 15:45:43 +08:00
parent 5da98ddc8a
commit a734cedac1
4 changed files with 194 additions and 42 deletions

View File

@@ -102,6 +102,8 @@ interface ConfigSchema {
// AI 足迹
aiFootprintEnabled: boolean
aiFootprintSystemPrompt: string
/** 是否将 AI 见解调试日志输出到桌面 */
aiInsightDebugLogEnabled: boolean
}
// 需要 safeStorage 加密的字段(普通模式)
@@ -204,7 +206,8 @@ export class ConfigService {
aiInsightTelegramToken: '',
aiInsightTelegramChatIds: '',
aiFootprintEnabled: false,
aiFootprintSystemPrompt: ''
aiFootprintSystemPrompt: '',
aiInsightDebugLogEnabled: false
}
const storeOptions: any = {