mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
refactor(parser): standardize format identifiers
This commit is contained in:
1 parent
fdd0856b5d
commit
d5f34af445
47 files changed
+251
-120
No files matched your search
@@ -12,6 +12,7 @@ import {
|
||||
importDemoSessions,
|
||||
type DatabaseManager,
|
||||
} from '@openchatlab/node-runtime'
|
||||
import { PARSER_FORMAT_IDS } from '@openchatlab/parser'
|
||||
import {
|
||||
autoImport,
|
||||
autoImportBatch,
|
||||
@@ -84,7 +85,7 @@ export function registerImportRoutes(
|
||||
options.runPreparedImport ??
|
||||
(async (manifestPath: string, onProgress: (progress: unknown) => void, sessionGapThreshold?: number) => {
|
||||
const result = await runAutoImport(manifestPath, {
|
||||
formatId: 'google-chat-takeout',
|
||||
formatId: PARSER_FORMAT_IDS.GOOGLE_CHAT_NATIVE,
|
||||
sessionGapThreshold,
|
||||
nativeBinding: resolveNativeBinding(),
|
||||
onProgress: onProgress as any,
|
||||
|
||||
Reference in new issue
Block a user