refactor(parser): standardize format identifiers

This commit is contained in:
digua committed 2026-08-04 17:29:09 +08:00
1 parent fdd0856b5d
commit d5f34af445
47 files changed
+251 -120

No files matched your search

+2 -1
View File
@@ -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,