Update some SillyTavern.getContext() fields
| @@ -160,7 +160,7 @@ import { | |||
| 160 | import { debounce_timeout } from './scripts/constants.js'; | 160 | import { debounce_timeout } from './scripts/constants.js'; |
| 161 | 161 | ||
| 162 | import { ModuleWorkerWrapper, doDailyExtensionUpdatesCheck, extension_settings, getContext, loadExtensionSettings, renderExtensionTemplate, renderExtensionTemplateAsync, runGenerationInterceptors, saveMetadataDebounced, writeExtensionField } from './scripts/extensions.js'; | 162 | import { ModuleWorkerWrapper, doDailyExtensionUpdatesCheck, extension_settings, getContext, loadExtensionSettings, renderExtensionTemplate, renderExtensionTemplateAsync, runGenerationInterceptors, saveMetadataDebounced, writeExtensionField } from './scripts/extensions.js'; |
| 163 | import { COMMENT_NAME_DEFAULT, executeSlashCommands, executeSlashCommandsOnChatInput, getSlashCommandsHelp, initDefaultSlashCommands, isExecutingCommandsFromChatInput, pauseScriptExecution, processChatSlashCommands, registerSlashCommand, stopScriptExecution } from './scripts/slash-commands.js'; | 163 | import { COMMENT_NAME_DEFAULT, executeSlashCommands, executeSlashCommandsOnChatInput, executeSlashCommandsWithOptions, getSlashCommandsHelp, initDefaultSlashCommands, isExecutingCommandsFromChatInput, pauseScriptExecution, processChatSlashCommands, registerSlashCommand, stopScriptExecution } from './scripts/slash-commands.js'; |
| 164 | import { | 164 | import { |
| 165 | tag_map, | 165 | tag_map, |
| 166 | tags, | 166 | tags, |
| @@ -7863,22 +7863,23 @@ window['SillyTavern'].getContext = function () { | |||
| 7863 | saveReply, | 7863 | saveReply, |
| 7864 | substituteParams, | 7864 | substituteParams, |
| 7865 | substituteParamsExtended, | 7865 | substituteParamsExtended, |
| 7866 | SlashCommandParser, | ||
| 7867 | executeSlashCommandsWithOptions, | ||
| 7868 | /** @deprecated Use SlashCommandParser.addCommandObject() instead */ | ||
| 7866 | registerSlashCommand: registerSlashCommand, | 7869 | registerSlashCommand: registerSlashCommand, |
| 7870 | /** @deprecated Use executeSlashCommandWithOptions instead */ | ||
| 7867 | executeSlashCommands: executeSlashCommands, | 7871 | executeSlashCommands: executeSlashCommands, |
| 7868 | timestampToMoment: timestampToMoment, | 7872 | timestampToMoment: timestampToMoment, |
| 7869 | /** | 7873 | /** @deprecated Handlebars for extensions are no longer supported. */ |
| 7870 | * @deprecated Handlebars for extensions are no longer supported. | ||
| 7871 | */ | ||
| 7872 | registerHelper: () => { }, | 7874 | registerHelper: () => { }, |
| 7873 | registerMacro: MacrosParser.registerMacro.bind(MacrosParser), | 7875 | registerMacro: MacrosParser.registerMacro.bind(MacrosParser), |
| 7874 | unregisterMacro: MacrosParser.unregisterMacro.bind(MacrosParser), | 7876 | unregisterMacro: MacrosParser.unregisterMacro.bind(MacrosParser), |
| 7875 | registedDebugFunction: registerDebugFunction, | 7877 | registedDebugFunction: registerDebugFunction, |
| 7876 | /** | 7878 | /** @deprecated Use renderExtensionTemplateAsync instead. */ |
| 7877 | * @deprecated Use renderExtensionTemplateAsync instead. | ||
| 7878 | */ | ||
| 7879 | renderExtensionTemplate: renderExtensionTemplate, | 7879 | renderExtensionTemplate: renderExtensionTemplate, |
| 7880 | renderExtensionTemplateAsync: renderExtensionTemplateAsync, | 7880 | renderExtensionTemplateAsync: renderExtensionTemplateAsync, |
| 7881 | registerDataBankScraper: ScraperManager.registerDataBankScraper, | 7881 | registerDataBankScraper: ScraperManager.registerDataBankScraper, |
| 7882 | /** @deprecated Use callGenericPopup or Popup instead. */ | ||
| 7882 | callPopup: callPopup, | 7883 | callPopup: callPopup, |
| 7883 | callGenericPopup: callGenericPopup, | 7884 | callGenericPopup: callGenericPopup, |
| 7884 | showLoader: showLoader, | 7885 | showLoader: showLoader, |
| @@ -7900,10 +7901,9 @@ window['SillyTavern'].getContext = function () { | |||
| 7900 | tagMap: tag_map, | 7901 | tagMap: tag_map, |
| 7901 | menuType: menu_type, | 7902 | menuType: menu_type, |
| 7902 | createCharacterData: create_save, | 7903 | createCharacterData: create_save, |
| 7903 | /** | 7904 | /** @deprecated Legacy snake-case naming, compatibility with old extensions */ |
| 7904 | * @deprecated Legacy snake-case naming, compatibility with old extensions | ||
| 7905 | */ | ||
| 7906 | event_types: event_types, | 7905 | event_types: event_types, |
| 7906 | Popup: Popup, | ||
| 7907 | POPUP_TYPE: POPUP_TYPE, | 7907 | POPUP_TYPE: POPUP_TYPE, |
| 7908 | POPUP_RESULT: POPUP_RESULT, | 7908 | POPUP_RESULT: POPUP_RESULT, |
| 7909 | }; | 7909 | }; |