Skip to content

refactor: CorruptionManager → DecryptReveal (narrow to decryption-only)#23

Merged
whykusanagi merged 1 commit into
mainfrom
fix/decrypt-reveal-rename
May 18, 2026
Merged

refactor: CorruptionManager → DecryptReveal (narrow to decryption-only)#23
whykusanagi merged 1 commit into
mainfrom
fix/decrypt-reveal-rename

Conversation

@whykusanagi
Copy link
Copy Markdown
Owner

Summary

Disambiguates two corruption patterns that were conflated in plan #2's port:

  • TypingAnimation — streaming/typed reveal (string grows over time, char-by-char, with phrase-buffer flicker)
  • DecryptReveal — fixed-length decryption (string is final length, scrambled, progressively resolves)

The `.flicker()` and `.hybrid()` methods on CorruptionManager were a port artifact from celeste-tts-bot's unified lifecycle helper. They conceptually overlap with TypingAnimation's streaming-buffer pattern, causing user/LLM confusion in docs and example pages.

API changes (breaking, pre-1.0)

  • `src/core/corruption-manager.js` → `src/core/decrypt-reveal.js`
  • `CorruptionManager` → `DecryptReveal`
  • `.decode` / `.start` / `.stop` / `.destroy` retained
  • `.flicker` / `.hybrid` removed
  • Standalone `decodeText` retained; `phraseFlicker` / `hybridDecode` removed
  • package.json export `./corruption-manager` → `./decrypt-reveal`
  • `examples/advanced/corruption-manager.html` → `examples/advanced/decrypt-reveal.html`

Files updated

README, CHANGELOG, COMPONENTS_REFERENCE, COMPONENT_LIBRARY, COMPONENT_MAPPING, NPM_PACKAGE, WEB_IMPLEMENTATION, all demo HTML pages (index/examples/showcase pair, plus crt-effects, particles-background, animation-blocks/index, all components/* pages with nav submenus).

Test plan

  • `npm test` passes — 155 pass, 0 fail (3 flicker/hybrid tests dropped; 8 DecryptReveal tests remain)
  • Grep returns clean — no remaining references to `CorruptionManager` or `corruption-manager` outside memory/plans
  • Example page demos ONLY decode variations (3 cards: short/katakana, long/intense, kanji/slow)
  • README description of DecryptReveal makes the streaming-vs-fixed distinction crisp
  • CHANGELOG entry is explicit about the breaking rename

🤖 Generated with Claude Code

…ion-only

Disambiguates the two corruption patterns:
- TypingAnimation = streaming/typed reveal (string grows over time)
- DecryptReveal = fixed-length decryption (string is final length,
  scrambled with chars from charset, progressively resolves)

The .flicker() and .hybrid() methods were a port artifact from
celeste-tts-bot's unified lifecycle helper. They conceptually overlap
with TypingAnimation's streaming-buffer pattern, causing user/LLM
confusion. Dropped in favor of crisp single-purpose classes.

API changes (breaking, pre-1.0):
- src/core/corruption-manager.js → src/core/decrypt-reveal.js
- Class CorruptionManager → DecryptReveal
- Methods .decode/.start/.stop/.destroy retained
- Methods .flicker/.hybrid removed
- Standalone exports decodeText retained
- Standalone exports phraseFlicker/hybridDecode removed
- package.json export ./corruption-manager → ./decrypt-reveal

Updated: README, CHANGELOG, COMPONENTS_REFERENCE, COMPONENT_LIBRARY,
COMPONENT_MAPPING, NPM_PACKAGE, WEB_IMPLEMENTATION, all demo HTML pages
(index, examples/index, showcase, showcase-complete, crt-effects,
particles-background, animation-blocks/index, components/*), and renamed
example examples/advanced/corruption-manager.html → decrypt-reveal.html.

Tests: 155 pass, 0 fail (dropped 3 flicker/hybrid tests, count was 158).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@whykusanagi whykusanagi merged commit 8f484f1 into main May 18, 2026
1 check was pending
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.

1 participant