mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 01:05:30 +08:00
feat: 完成 TraceMemo v2.2.0 品牌身份与数据迁移升级
- 将 WechatExplorer 产品身份升级为 TraceMemo - 更新 appId、Runtime Identity、Reader Skill 和 API 环境变量 - 增加旧用户数据、Knowledge、Token 与 AI Provider 安全迁移 - 保留 Windows WeFlow 和旧版配置兼容 - 完善首次启动迁移测试及 v2.2.0 发布文档 - 移除 macOS Intel x64 构建与发布支持
This commit is contained in:
1 parent
b490dc4098
commit
3f019faa38
39 files changed
+1837
-545
No files matched your search
@@ -3,7 +3,8 @@ import path from 'path'
|
||||
|
||||
export const LEGACY_USER_DATA_NAME = 'WechatExplorer'
|
||||
export const LEGACY_PACKAGE_USER_DATA_NAME = 'wechatexplorer'
|
||||
export const CURRENT_USER_DATA_NAME = 'tracememo'
|
||||
export const CURRENT_USER_DATA_NAME = 'TraceMemo'
|
||||
export const TRACE_MEMO_RUNTIME_NAME = 'TraceMemo'
|
||||
|
||||
export interface UserDataRoots {
|
||||
legacy: string
|
||||
@@ -97,7 +98,7 @@ function hasKnowledgeDatabase(root: string): boolean {
|
||||
}
|
||||
}
|
||||
|
||||
function isExistingDirectory(directoryPath: string): boolean {
|
||||
export function isExistingDirectory(directoryPath: string): boolean {
|
||||
try {
|
||||
return fs.statSync(directoryPath).isDirectory()
|
||||
} catch {
|
||||
@@ -105,7 +106,7 @@ function isExistingDirectory(directoryPath: string): boolean {
|
||||
}
|
||||
}
|
||||
|
||||
function areSameExistingDirectory(firstPath: string, secondPath: string): boolean {
|
||||
export function areSameExistingDirectory(firstPath: string, secondPath: string): boolean {
|
||||
try {
|
||||
const first = fs.statSync(firstPath)
|
||||
const second = fs.statSync(secondPath)
|
||||
|
||||
Reference in new issue
Block a user