refactor: remove transform_llm_output hook registration #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor/remove-hook-registration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Removes the
transform_llm_outputhook registration from em-dash-sub.The new
barnacleboy-outputwrapper plugin now owns the hook. It importstransform_em_dashesfrom this module andtransform_vocabularyfromspongebob-vocab, applying them in sequence. This solves two problems:Mutual exclusion: Two plugins were fighting over a single
transform_llm_outputslot. Only the first registered callback's result was used. Now the wrapper composes both transforms.Wrong order: If SpongeBob vocab ran first (hypothetically), it would add words like "Tartar sauce!" that then got split by em dash replacement. Now em dashes are always cleaned first, then vocab applies on clean text.
The
register()function is kept as a no-op for backward compatibility.