From adc30217b6fa5773f9fb96c6fb106102cd865a89 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 15 Dec 2025 22:34:33 +0900 Subject: feat(anki): add Note/Card mapping to Kioku format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add mapAnkiToKioku function that converts parsed Anki packages to Kioku's internal data format. Includes: - HTML stripping and entity decoding for card fields - Anki factor to FSRS difficulty conversion - Anki interval to FSRS stability estimation - Due date conversion for different card types - Option to skip default Anki deck 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/server/anki/index.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/server/anki/index.ts') diff --git a/src/server/anki/index.ts b/src/server/anki/index.ts index 67e81de..13e6aa0 100644 --- a/src/server/anki/index.ts +++ b/src/server/anki/index.ts @@ -4,6 +4,10 @@ export { type AnkiModel, type AnkiNote, type AnkiPackage, + type KiokuCard, + type KiokuDeck, + type KiokuImportData, listAnkiPackageContents, + mapAnkiToKioku, parseAnkiPackage, } from "./parser.js"; -- cgit v1.2.3-70-g09d2