Skip to content

feat: enable import character cards from SillyTavern#19

Merged
MinimaxLanbo merged 2 commits intoMiniMax-AI:mainfrom
creasexul:feat/st-card-import
Mar 21, 2026
Merged

feat: enable import character cards from SillyTavern#19
MinimaxLanbo merged 2 commits intoMiniMax-AI:mainfrom
creasexul:feat/st-card-import

Conversation

@creasexul
Copy link

Summary

  • Add SillyTavern character card import with PNG/ZIP file upload support
  • Extract character data from ST card format and auto-generate mods via LLM
  • Include extract preview modal, batch processing, and CLI import command

Changes

  • New cardExtractor library for parsing ST character card formats (PNG metadata + ZIP archives)
  • Upload modal UI in Shell component with drag-and-drop file selection
  • Mod generation pipeline: extract character → build prompt → LLM response → save mod
  • CLI import command (.claude/commands/import.md) for batch card importing

Test plan

  • Upload a .png ST character card and verify extraction
  • Upload a .zip ST character card archive and verify extraction
  • Verify mod is generated and saved correctly after card import
  • Test error handling for invalid/corrupted card files

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.
@creasexul creasexul force-pushed the feat/st-card-import branch from 544fec1 to f112df0 Compare March 21, 2026 08:54
…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
@MinimaxLanbo MinimaxLanbo merged commit cfcb3c2 into MiniMax-AI:main Mar 21, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants