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