feat: enable import character cards from SillyTavern#19
Merged
MinimaxLanbo merged 2 commits intoMiniMax-AI:mainfrom Mar 21, 2026
Merged
feat: enable import character cards from SillyTavern#19MinimaxLanbo merged 2 commits intoMiniMax-AI:mainfrom
MinimaxLanbo merged 2 commits intoMiniMax-AI:mainfrom
Conversation
Add ST card import functionality with PNG/ZIP file upload, character data extraction, and automatic mod generation via LLM. Includes CLI import command, extract preview modal, and batch processing support.
544fec1 to
f112df0
Compare
…rove types
- Replace window.location.reload() with CustomEvent('open-mod-editor')
for cross-component communication after mod generation
- Extract appGeneratorPlugin (~440 lines) from vite.config.ts into
standalone module, accept explicit paths instead of __dirname
- Fix _index type hack in cardExtractor: return { entry, index } tuple
instead of sneaking undeclared field via double type assertion
- Remove unused ExtractPreviewModal (replaced by inline upload flow)
- Remove emoji from server-side console logs
- Use logger consistently (replace stray console.warn)
- Clean up duplicate setExtracting(false) in handleUploadSubmit
- Revert unrelated liveWallpaper default change
- Move prompt_generate_mod_en.md to .claude/
- Remove unused @types/jszip dependency
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
cardExtractorlibrary for parsing ST character card formats (PNG metadata + ZIP archives).claude/commands/import.md) for batch card importingTest plan
.pngST character card and verify extraction.zipST character card archive and verify extraction