Commit 6ca17f4
authored
更新版本号至2.1.0; 实现AI驱动的浏览器指纹分析 (#54)
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds an AI-driven diagnosis panel to detect.html for browser fingerprint
analysis with OpenAI-compatible providers and an interactive chat.
Updates the extension to 2.1.0, with streaming stability, privacy, and
accessibility improvements.
- **New Features**
- Diagnosis panel: multi-turn chat, message copy, Markdown export.
- Provider presets with per-provider local config (OpenAI, OpenRouter,
DeepSeek, Gemini, Qwen, etc.).
- Streaming chat and snapshot collector to feed structured detection
data; safe Markdown rendering; new en/zh i18n.
- **Refactors**
- Reworked detect.js to expose detection snapshots and session state;
added detect-ai.js; updated detect.html; shared modules: ai-chat-client,
ai-provider-presets, copy-button.
- Extracted provider select population into AIProviderPresetUtils;
improved streaming buffer handling and [DONE] processing; switched to
ResourceManager.setTimeout; reduced config writes by using change events
only.
- Privacy safeguards and accessibility improvements in the diagnosis
panel.
- Docs updated with AI diagnosis notes and project structure; README
streamlined.
<sup>Written for commit 8a22fcc.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
- AI Diagnosis panel with multiple provider presets, per-provider local
config, API key handling, and real-time streamed responses
- Interactive multi-turn chat with follow-ups, start/stop/clear
controls, and abort support
- Export conversations to Markdown and copy individual messages
* **Improvements**
- Refactored detection flow with refresh control and a stable detection
snapshot used by AI diagnosis
- Full English and Chinese UI text for the AI workflow
* **Chores**
- Version bumped to 2.1.0
<!-- end of auto-generated comment: release notes by coderabbit.ai -->16 files changed
Lines changed: 2921 additions & 600 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
134 | 146 | | |
135 | 147 | | |
136 | 148 | | |
| |||
0 commit comments