mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
Removes the legacy apps/cli/src/import/importer.ts (hand-rolled FTS, dedup, session-ID generation) and apps/cli/src/import/chatlab-reader.ts (buffered in-memory JSON/JSONL parser). DirectImporter in sync/adapters.ts now calls streamImport / incrementalImport from stream-import.ts, which use the @openchatlab/parser streaming pipeline and node-runtime shared logic. Changes: - Add sessionId? to StreamImportOptions so callers can fix the target session ID instead of auto-generating one (needed by pull engine full-import path) - Rewrite DirectImporter.incrementalImportFile and fullImportFile to use the shared importers; map IncrementalImportResult fields to ImportResult - Remove legacy exports from apps/cli/src/import/index.ts - Rewrite importer.test.ts to use streamImport + a temp ChatLab JSON file (same two data-dir compatibility gate assertions as before) - Delete importer.ts and chatlab-reader.ts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>