Commit Graph

1 Commits

Author SHA1 Message Date
wdjwxh 1968f7fd3c feat: 改进变更配对算法,更新项目文档
## 主要变更

### wiki_sync.py
- 新增 `calculate_similarity()` 函数,使用 difflib.SequenceMatcher 计算文本相似度
- 改进 `group_changes_by_line()` 函数,基于内容相似度(阈值0.5)进行智能配对
- 修复了将不相关行错误配对为 replaced 的问题

### 文档更新
- README.md: 说明通过 Claude Code 和 /wiki-sync-translate skill 使用
- CLAUDE.md: Claude Code 配置和使用示例
- SKILL.md: 添加配对算法说明

### 其他
- 新增 requirements.txt: requests, python-dotenv
- 删除旧的 sync.py 和 target.txt

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-22 15:14:55 +08:00