Releases: paradox460/ST-MessageSplit
Releases · paradox460/ST-MessageSplit
v0.3.0
-
Slash commands renamed to avoid conflicts with SillyTavern's built-in
commands:/mergeis now/msg-mergeand/splitis now/msg-split. -
Author attribution on
/msg-split: an optionalauthor=<name>named
argument re-attributes the message below the split to a group member or the
user persona (fuzzy-matched viaFuse). Omit it to keep the original author.
The argument's autocomplete dropdown is populated with the current group
members plus the user persona.
v0.2.1
v0.2.1
Minor releae, forgot to build last time
v0.2.0
Added
- Authorship re-attribution on split: during the interactive overlay, each divider now carries a dropdown that re-attributes the resulting message below it. Pick No Change to keep the original author, the user persona, or any member of the current group (group chats only). Solo chats see the user persona option only. The underlying
applyParagraphSplitaccepts an optionalcharOverridesarray ('__user__'for the user persona, an avatar filename for a character,nullomitted to keep the clone's original authorship) — the slash command path continues to keep the original author.
Changed
- Build target bumped from ES2020 to ES2022 in
tsconfig.jsonto support the top-levelawaitin the newsrc/util.ts. - Types refactored: the in-repo
src/sillytavern.d.tsshim is gone.src/global.d.tsnow imports SillyTavern core'sglobal.d.tsdirectly to pull in upstream types (ChatMessage,Character,STGroup,STEventSource, …) and augments only theSTContextfields this extension actually consumes, plus adeclare globalblock fortoastr. Everything that previously referencedSTChatMessagenow uses the upstreamChatMessage.
Internal
- New
src/util.ts: top-level-await helper that dynamic-importsdefault_avatarfrom ST's/script.js(with/* webpackIgnore: true */), used for the avatar="none"fallback during re-attribution. - New
test/preload.ts+bunfig.toml: registers amock.module(...)forsrc/util.tsso tests do not attempt to fetch/script.jsat module load time. - Five new unit tests on
applyParagraphSplitcover group-character reattribution, user-persona reattribution,nulloverride passthrough,undefinedoverrides, and mixed multi-override splits.
v0.1.0
v0.1.0
Initial release