Restrict wordgrain to single file selection - #228
Merged
Merged
Conversation
added 2 commits
March 23, 2026 06:24
Change wordgrainFiles (string array) to wordgrainFile (single string) across config, services, and UI. Multiple wordgrain files dilute the persona concept of speaking with a rapper's vocabulary. Migrate existing users: old wordgrainFiles array takes first element. Old key is cleaned up on next config save. Changes: - Config types: wordgrainFiles[] → wordgrainFile string - ConfigFile: read/write single file, migrate old array format - WordgrainManager: single-file APIs (getWordgrainFileInfo, validateWordgrainFile, getWordgrainStats) - VocabularyExtractor: accept single WordgrainFile instead of array - Remove loadWordgrainFiles (no longer needed) - UI: single file display, set/clear instead of add/remove - Update all tests for new signatures and migration Closes #226
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
Closes #226
Change
wordgrainFiles(string array) towordgrainFile(single string) across config, services, and UI. Multiple wordgrain files dilute the persona concept — one rapper's vocabulary per session.wordgrainFiles?: string[]→wordgrainFile?: stringgetWordgrainFileInfo,validateWordgrainFile,getWordgrainStats)WordgrainFileinstead of array, remove cross-file deduploadWordgrainFilesfunctionChanges
wordgrainFile?: stringin bothMumblConfigandResolvedConfigwordgrainFilesarray, takes[0], cleans up old key on savewordgrainFileTest plan
pnpm type-checkpassespnpm ci:allpasses (type-check + lint + 967 tests)wordgrainFilesarray format correctly picks first elementwordgrainFileformat takes priority over oldwordgrainFilesif both present