Fix character card lorebook imports / exports

d7780ee4bbf0a654b620027c8e7fecc6842c7b2a

Crow <bismuthglass@protonmail.com>

2 files changed, +12 -0Showing whitespace changes
public/scripts/world-info.js+6 -0
@@ -4925,6 +4925,12 @@ export function convertCharacterBook(characterBook) {
49254925 sticky: entry.extensions?.sticky ?? null,
49264926 cooldown: entry.extensions?.cooldown ?? null,
49274927 delay: entry.extensions?.delay ?? null,
4928+ matchPersonaDescription: entry.extensions?.matchPersonaDescription ?? false,
4929+ matchCharacterDescription: entry.extensions?.matchCharacterDescription ?? false,
4930+ matchCharacterPersonality: entry.extensions?.matchCharacterPersonality ?? false,
4931+ matchCharacterDepthPrompt: entry.extensions?.matchCharacterDepthPrompt ?? false,
4932+ matchScenario: entry.extensions?.matchScenario ?? false,
4933+ matchCreatorNotes: entry.extensions?.matchCreatorNotes ?? false,
49284934 extensions: entry.extensions ?? {},
49294935 };
49304936 });
src/endpoints/characters.js+6 -0
@@ -702,6 +702,12 @@ function convertWorldInfoToCharacterBook(name, entries) {
702702 sticky: entry.sticky ?? null,
703703 cooldown: entry.cooldown ?? null,
704704 delay: entry.delay ?? null,
705+ matchPersonaDescription: entry.matchPersonaDescription ?? false,
706+ matchCharacterDescription: entry.matchCharacterDescription ?? false,
707+ matchCharacterPersonality: entry.matchCharacterPersonality ?? false,
708+ matchCharacterDepthPrompt: entry.matchCharacterDepthPrompt ?? false,
709+ matchScenario: entry.matchScenario ?? false,
710+ matchCreatorNotes: entry.matchCreatorNotes ?? false,
705711 },
706712 };
707713