mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-16 03:20:19 +08:00
46 lines
1.5 KiB
TypeScript
46 lines
1.5 KiB
TypeScript
/**
|
|
* 格式模块注册
|
|
* 导出所有支持的格式
|
|
*/
|
|
|
|
import type { FormatModule } from '../types'
|
|
|
|
// 导入所有格式模块
|
|
import chatlab from './chatlab'
|
|
import chatlabJsonl from './chatlab-jsonl'
|
|
import shuakamiQqExporter from './shuakami-qq-exporter'
|
|
import shuakamiQqExporterChunked from './shuakami-qq-exporter-chunked'
|
|
import yccccccyEchotrace from './ycccccccy-echotrace'
|
|
import tyrrrzDiscordExporter from './tyrrrz-discord-exporter'
|
|
import whatsappNativeTxt from './whatsapp-native-txt'
|
|
import qqNativeTxt from './qq-native-txt'
|
|
import instagramNative from './instagram-native'
|
|
|
|
/**
|
|
* 所有支持的格式模块(按优先级排序)
|
|
*/
|
|
export const formats: FormatModule[] = [
|
|
chatlab, // 优先级 1 - ChatLab JSON
|
|
chatlabJsonl, // 优先级 2 - ChatLab JSONL(流式格式,支持超大文件)
|
|
shuakamiQqExporterChunked, // 优先级 5 - shuakami/qq-chat-exporter chunked-jsonl
|
|
shuakamiQqExporter, // 优先级 10 - shuakami/qq-chat-exporter
|
|
yccccccyEchotrace, // 优先级 15 - ycccccccy/echotrace
|
|
tyrrrzDiscordExporter, // 优先级 20 - Tyrrrz/DiscordChatExporter
|
|
instagramNative, // 优先级 25 - Instagram 官方导出
|
|
whatsappNativeTxt, // 优先级 26 - WhatsApp 官方导出 TXT
|
|
qqNativeTxt, // 优先级 30 - QQ 官方导出 TXT
|
|
]
|
|
|
|
// 按名称导出,方便单独使用
|
|
export {
|
|
chatlab,
|
|
chatlabJsonl,
|
|
shuakamiQqExporter,
|
|
shuakamiQqExporterChunked,
|
|
yccccccyEchotrace,
|
|
tyrrrzDiscordExporter,
|
|
instagramNative,
|
|
whatsappNativeTxt,
|
|
qqNativeTxt,
|
|
}
|