mirror of
https://github.com/rememberber/MooTool.git
synced 2026-12-01 03:18:19 +08:00
将 Vault/Git/MCP/AI、壳层主题密度、25 工具真实闭环与 desktopTest 638 项及 DIFF-065–471 文档/证据一并纳入仓库,便于持续对齐验收;产品窗 IME/冲突与三平台发行仍待验。 Co-authored-by: Cursor <cursoragent@cursor.com>
1.2 KiB
1.2 KiB
DIFF-148:SQLite P5(HTTP/Host/翻译)迁移
背景
Electron legacyMigrationService 的 sharedTableMigrations 覆盖 t_msg_http、t_http_request_history、t_host、t_translation_word、t_translation_history。next-compose 在 DIFF-147 后仍缺这些表。
行为
t_msg_http→HttpCollectionStore(解析 JSON params/headers/cookies,保留响应快照与时间戳)。t_http_request_history→HistoryRepository(tool_id=http,URL 经HistoryPrivacy.httpUrl遮蔽密码)。t_host→HostProfileStore(按方案名去重)。t_translation_word/t_translation_history→TranslationStore.mergeImport*(语言对经TranslationEngine.normalizeLanguagePair)。- 设置迁移页增加 P5 预览行;完成 toast 含 HTTP/Host/翻译计数。
- 单表最多读取 5000 行。
证据
./gradlew :composeApp:desktopTest --offline(CrossProductImporterTest含 P5 表)。
未覆盖
- Electron 侧
legacySettingsPatch、Vault 文件迁移幂等表、t_next_migration_run语义仍不同。 - HTTP 历史不还原为完整
SavedHttpRequest集合项,仅进入通用历史列表(与 Compose HTTP 工具现状一致)。