Preserving the entry extensions field through v2 char exports and imports

3e9bad6845c5f63cf5fe452e5cd83b18a5b278ff

Honey Tree <kalakanlogs@proton.me>

2 files changed, +2 -0Showing whitespace changes
public/scripts/world-info.js+1 -0
@@ -4565,6 +4565,7 @@ function convertCharacterBook(characterBook) {
45654565 sticky: entry.extensions?.sticky ?? null,
45664566 cooldown: entry.extensions?.cooldown ?? null,
45674567 delay: entry.extensions?.delay ?? null,
4568+ extensions: entry.extensions ?? {},
45684569 };
45694570 });
45704571
src/endpoints/characters.js+1 -0
@@ -468,6 +468,7 @@ function convertWorldInfoToCharacterBook(name, entries) {
468468 position: entry.position == 0 ? 'before_char' : 'after_char',
469469 use_regex: true, // ST keys are always regex
470470 extensions: {
471+ ...entry.extensions,
471472 position: entry.position,
472473 exclude_recursion: entry.excludeRecursion,
473474 display_index: entry.displayIndex,