@lvce-editor/test-worker 13.18.0 → 13.20.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 +24 -0
- package/dist/testWorkerMain.js +678 -642
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -67,6 +67,10 @@ export interface MockOpenAiResponseOptions {
|
|
|
67
67
|
readonly value: any;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
export interface ChatDebugEvent {
|
|
71
|
+
readonly [key: string]: unknown;
|
|
72
|
+
}
|
|
73
|
+
|
|
70
74
|
export interface Diagnostic {
|
|
71
75
|
readonly columnIndex: number;
|
|
72
76
|
readonly endColumnIndex: number;
|
|
@@ -95,6 +99,8 @@ export interface SelectItem2Options {
|
|
|
95
99
|
readonly label: string;
|
|
96
100
|
}
|
|
97
101
|
|
|
102
|
+
export type ChatDebugInputName = "closeDetails" | "eventCategoryFilter" | "filter" | "showEventStreamFinishedEvents" | "showInputEvents" | "showResponsePartEvents" | "timelineRangePreset" | "useDevtoolsLayout";
|
|
103
|
+
|
|
98
104
|
export type TokenRow = readonly string[];
|
|
99
105
|
|
|
100
106
|
export type SearchInputType = "SearchValue" | "ReplaceValue" | "IncludeValue" | "ExcludeValue";
|
|
@@ -191,6 +197,23 @@ interface Chat {
|
|
|
191
197
|
readonly useMockApi: () => Promise<void>;
|
|
192
198
|
}
|
|
193
199
|
|
|
200
|
+
interface ChatDebug {
|
|
201
|
+
readonly closeDetails: () => Promise<void>;
|
|
202
|
+
readonly handleInput: (name: ChatDebugInputName, value: string, checked: boolean) => Promise<void>;
|
|
203
|
+
readonly open: (sessionId: string) => Promise<void>;
|
|
204
|
+
readonly resetIndexedDbSupportForTest: () => Promise<void>;
|
|
205
|
+
readonly selectEventRow: (index: number) => Promise<void>;
|
|
206
|
+
readonly setEventCategoryFilter: (value: string) => Promise<void>;
|
|
207
|
+
readonly setEvents: (events: readonly ChatDebugEvent[]) => Promise<void>;
|
|
208
|
+
readonly setFilter: (value: string) => Promise<void>;
|
|
209
|
+
readonly setIndexedDbSupportForTest: (supported: boolean) => Promise<void>;
|
|
210
|
+
readonly setShowEventStreamFinishedEvents: (enabled: boolean) => Promise<void>;
|
|
211
|
+
readonly setShowInputEvents: (enabled: boolean) => Promise<void>;
|
|
212
|
+
readonly setShowResponsePartEvents: (enabled: boolean) => Promise<void>;
|
|
213
|
+
readonly setTimelineRangePreset: (value: string) => Promise<void>;
|
|
214
|
+
readonly useDevtoolsLayout: () => Promise<void>;
|
|
215
|
+
}
|
|
216
|
+
|
|
194
217
|
interface ClipBoard {
|
|
195
218
|
readonly disableMemoryClipBoard: () => Promise<void>;
|
|
196
219
|
readonly enableMemoryClipBoard: () => Promise<void>;
|
|
@@ -750,6 +773,7 @@ export interface TestApi {
|
|
|
750
773
|
readonly ActivityBar: ActivityBar
|
|
751
774
|
readonly BaseUrl: BaseUrl
|
|
752
775
|
readonly Chat: Chat
|
|
776
|
+
readonly ChatDebug: ChatDebug
|
|
753
777
|
readonly ClipBoard: ClipBoard
|
|
754
778
|
readonly ColorPicker: ColorPicker
|
|
755
779
|
readonly Command: Command
|