Fix undefined type references
| @@ -4,7 +4,7 @@ import { DOMPurify, Popper } from '../lib.js'; | ||
| 4 | 4 | |
| 5 | 5 | import { event_types, eventSource, is_send_press, main_api, substituteParams } from '../script.js'; |
| 6 | 6 | import { is_group_generating } from './group-chats.js'; |
| 7 | 7 | import { Message, MessageCollection, TokenHandler } from './openai.js'; |
| 8 | 8 | import { power_user } from './power-user.js'; |
| 9 | 9 | import { debounce, waitUntilCondition, escapeHtml } from './utils.js'; |
| 10 | 10 | import { debounce_timeout } from './constants.js'; |
| @@ -75,6 +75,8 @@ import { SlashCommandBreakController } from './slash-commands/SlashCommandBreakC | ||
| 75 | 75 | import { SlashCommandExecutionError } from './slash-commands/SlashCommandExecutionError.js'; |
| 76 | 76 | import { slashCommandReturnHelper } from './slash-commands/SlashCommandReturnHelper.js'; |
| 77 | 77 | import { accountStorage } from './util/AccountStorage.js'; |
| 78 | +import { SlashCommandDebugController } from './slash-commands/SlashCommandDebugController.js'; | |
| 79 | +import { SlashCommandScope } from './slash-commands/SlashCommandScope.js'; | |
| 78 | 80 | export { |
| 79 | 81 | executeSlashCommands, executeSlashCommandsWithOptions, getSlashCommandsHelp, registerSlashCommand, |
| 80 | 82 | }; |
| @@ -4345,7 +4347,7 @@ const clearCommandProgressDebounced = debounce(clearCommandProgress); | ||
| 4345 | 4347 | * @prop {boolean} [handleParserErrors] (true) Whether to handle parser errors (show toast on error) or throw. |
| 4346 | 4348 | * @prop {SlashCommandScope} [scope] (null) The scope to be used when executing the commands. |
| 4347 | 4349 | * @prop {boolean} [handleExecutionErrors] (false) Whether to handle execution errors (show toast on error) or throw |
| 4348 | 4350 | * @prop {{[id:PARSER_FLAG]:boolean}import('./slash-commands/SlashCommandParser.js').ParserFlags} [parserFlags] (null) Parser flags to apply |
| 4349 | 4351 | * @prop {SlashCommandAbortController} [abortController] (null) Controller used to abort or pause command execution |
| 4350 | 4352 | * @prop {SlashCommandDebugController} [debugController] (null) Controller used to control debug execution |
| 4351 | 4353 | * @prop {(done:number, total:number)=>void} [onProgress] (null) Callback to handle progress events |
| @@ -4355,7 +4357,7 @@ const clearCommandProgressDebounced = debounce(clearCommandProgress); | ||
| 4355 | 4357 | /** |
| 4356 | 4358 | * @typedef ExecuteSlashCommandsOnChatInputOptions |
| 4357 | 4359 | * @prop {SlashCommandScope} [scope] (null) The scope to be used when executing the commands. |
| 4358 | 4360 | * @prop {{[id:PARSER_FLAG]:boolean}import('./slash-commands/SlashCommandParser.js').ParserFlags} [parserFlags] (null) Parser flags to apply |
| 4359 | 4361 | * @prop {boolean} [clearChatInput] (false) Whether to clear the chat input textarea |
| 4360 | 4362 | * @prop {string} [source] (null) String indicating where the code come from (e.g., QR name) |
| 4361 | 4363 | */ |