Fix undefined type references

af0939038b9cd15cc595d4734c5362047b0bc83e

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +5 -3Showing whitespace changes
public/scripts/PromptManager.js+1 -1
@@ -4,7 +4,7 @@ import { DOMPurify, Popper } from '../lib.js';
44
55import { event_types, eventSource, is_send_press, main_api, substituteParams } from '../script.js';
66import { is_group_generating } from './group-chats.js';
77import { Message, MessageCollection, TokenHandler } from './openai.js';
88import { power_user } from './power-user.js';
99import { debounce, waitUntilCondition, escapeHtml } from './utils.js';
1010import { debounce_timeout } from './constants.js';
public/scripts/slash-commands.js+4 -2
@@ -75,6 +75,8 @@ import { SlashCommandBreakController } from './slash-commands/SlashCommandBreakC
7575import { SlashCommandExecutionError } from './slash-commands/SlashCommandExecutionError.js';
7676import { slashCommandReturnHelper } from './slash-commands/SlashCommandReturnHelper.js';
7777import { accountStorage } from './util/AccountStorage.js';
78+import { SlashCommandDebugController } from './slash-commands/SlashCommandDebugController.js';
79+import { SlashCommandScope } from './slash-commands/SlashCommandScope.js';
7880export {
7981 executeSlashCommands, executeSlashCommandsWithOptions, getSlashCommandsHelp, registerSlashCommand,
8082};
@@ -4345,7 +4347,7 @@ const clearCommandProgressDebounced = debounce(clearCommandProgress);
43454347 * @prop {boolean} [handleParserErrors] (true) Whether to handle parser errors (show toast on error) or throw.
43464348 * @prop {SlashCommandScope} [scope] (null) The scope to be used when executing the commands.
43474349 * @prop {boolean} [handleExecutionErrors] (false) Whether to handle execution errors (show toast on error) or throw
43484350 * @prop {{[id:PARSER_FLAG]:boolean}import('./slash-commands/SlashCommandParser.js').ParserFlags} [parserFlags] (null) Parser flags to apply
43494351 * @prop {SlashCommandAbortController} [abortController] (null) Controller used to abort or pause command execution
43504352 * @prop {SlashCommandDebugController} [debugController] (null) Controller used to control debug execution
43514353 * @prop {(done:number, total:number)=>void} [onProgress] (null) Callback to handle progress events
@@ -4355,7 +4357,7 @@ const clearCommandProgressDebounced = debounce(clearCommandProgress);
43554357/**
43564358 * @typedef ExecuteSlashCommandsOnChatInputOptions
43574359 * @prop {SlashCommandScope} [scope] (null) The scope to be used when executing the commands.
43584360 * @prop {{[id:PARSER_FLAG]:boolean}import('./slash-commands/SlashCommandParser.js').ParserFlags} [parserFlags] (null) Parser flags to apply
43594361 * @prop {boolean} [clearChatInput] (false) Whether to clear the chat input textarea
43604362 * @prop {string} [source] (null) String indicating where the code come from (e.g., QR name)
43614363 */