Feat - Export SlashCommandEnumValue for extensions through getContext (#5191)

162d45a2416812a66e306d458dc7699bdfc90f19

Leandro Jofré <leandrotomasjofre@gmail.com>

Signed
1 files changed, +2 -0Showing whitespace changes
public/scripts/st-context.js+2 -0
@@ -90,6 +90,7 @@ import { ScraperManager } from './scrapers.js';
9090import { executeSlashCommands, executeSlashCommandsWithOptions, registerSlashCommand } from './slash-commands.js';
9191import { SlashCommand } from './slash-commands/SlashCommand.js';
9292import { ARGUMENT_TYPE, SlashCommandArgument, SlashCommandNamedArgument } from './slash-commands/SlashCommandArgument.js';
93+import { SlashCommandEnumValue } from './slash-commands/SlashCommandEnumValue.js';
9394import { SlashCommandParser } from './slash-commands/SlashCommandParser.js';
9495import { tag_map, tags, importTags } from './tags.js';
9596import { getTextGenServer, textgenerationwebui_settings } from './textgen-settings.js';
@@ -159,6 +160,7 @@ export function getContext() {
159160 SlashCommand,
160161 SlashCommandArgument,
161162 SlashCommandNamedArgument,
163+ SlashCommandEnumValue,
162164 ARGUMENT_TYPE,
163165 executeSlashCommandsWithOptions,
164166 /** @deprecated Use SlashCommandParser.addCommandObject() instead */