@lvce-editor/test-worker 13.23.0 → 13.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +6 -0
- package/dist/testWorkerMain.js +24 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -198,15 +198,21 @@ interface Chat {
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
interface ChatDebug {
|
|
201
|
+
readonly appendStoredEventForTest: (event: any) => Promise<void>;
|
|
201
202
|
readonly closeDetails: () => Promise<void>;
|
|
203
|
+
readonly handleClickRefresh: () => Promise<void>;
|
|
202
204
|
readonly handleInput: (name: ChatDebugInputName, value: string, checked: boolean) => Promise<void>;
|
|
203
205
|
readonly open: (sessionId: string) => Promise<void>;
|
|
206
|
+
readonly openTabPreview: () => Promise<void>;
|
|
207
|
+
readonly openTabResponse: () => Promise<void>;
|
|
208
|
+
readonly openTabTiming: () => Promise<void>;
|
|
204
209
|
readonly resetIndexedDbSupportForTest: () => Promise<void>;
|
|
205
210
|
readonly selectEventRow: (index: number) => Promise<void>;
|
|
206
211
|
readonly setEventCategoryFilter: (value: string) => Promise<void>;
|
|
207
212
|
readonly setEvents: (events: readonly ChatDebugEvent[]) => Promise<void>;
|
|
208
213
|
readonly setFilter: (value: string) => Promise<void>;
|
|
209
214
|
readonly setIndexedDbSupportForTest: (supported: boolean) => Promise<void>;
|
|
215
|
+
readonly setSessionId: (sessionId: string) => Promise<void>;
|
|
210
216
|
readonly setShowEventStreamFinishedEvents: (enabled: boolean) => Promise<void>;
|
|
211
217
|
readonly setShowInputEvents: (enabled: boolean) => Promise<void>;
|
|
212
218
|
readonly setShowResponsePartEvents: (enabled: boolean) => Promise<void>;
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1998,17 +1998,41 @@ const setShowEventStreamFinishedEvents = async enabled => {
|
|
|
1998
1998
|
const closeDetails = async () => {
|
|
1999
1999
|
await handleInput$7('closeDetails', 'close', false);
|
|
2000
2000
|
};
|
|
2001
|
+
const openTabPreview = async () => {
|
|
2002
|
+
await invoke('ChatDebug.handleInput', 'detailTab', 'preview', false);
|
|
2003
|
+
};
|
|
2004
|
+
const openTabResponse = async () => {
|
|
2005
|
+
await invoke('ChatDebug.handleInput', 'detailTab', 'response', false);
|
|
2006
|
+
};
|
|
2007
|
+
const openTabTiming = async () => {
|
|
2008
|
+
await invoke('ChatDebug.handleInput', 'detailTab', 'timing', false);
|
|
2009
|
+
};
|
|
2010
|
+
const setSessionId = async sessionId => {
|
|
2011
|
+
await invoke('ChatDebug.setSessionId', sessionId);
|
|
2012
|
+
};
|
|
2013
|
+
const appendStoredEventForTest = async event => {
|
|
2014
|
+
await invoke('ChatDebug.appendStoredEventForTest', event);
|
|
2015
|
+
};
|
|
2016
|
+
const handleClickRefresh = async () => {
|
|
2017
|
+
await invoke('ChatDebug.handleClickRefresh');
|
|
2018
|
+
};
|
|
2001
2019
|
|
|
2002
2020
|
const ChatDebug = {
|
|
2021
|
+
appendStoredEventForTest,
|
|
2003
2022
|
closeDetails,
|
|
2023
|
+
handleClickRefresh,
|
|
2004
2024
|
handleInput: handleInput$7,
|
|
2005
2025
|
open: open$9,
|
|
2026
|
+
openTabPreview,
|
|
2027
|
+
openTabResponse,
|
|
2028
|
+
openTabTiming,
|
|
2006
2029
|
resetIndexedDbSupportForTest,
|
|
2007
2030
|
selectEventRow,
|
|
2008
2031
|
setEventCategoryFilter,
|
|
2009
2032
|
setEvents,
|
|
2010
2033
|
setFilter,
|
|
2011
2034
|
setIndexedDbSupportForTest,
|
|
2035
|
+
setSessionId,
|
|
2012
2036
|
setShowEventStreamFinishedEvents,
|
|
2013
2037
|
setShowInputEvents,
|
|
2014
2038
|
setShowResponsePartEvents,
|