@lvce-editor/test-worker 14.10.0 → 14.11.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 +16 -0
- package/dist/testWorkerMain.js +68 -4
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -284,13 +284,25 @@ interface ChatDebug {
|
|
|
284
284
|
readonly appendStoredEventForTest: (event: any) => Promise<void>;
|
|
285
285
|
readonly closeDetails: () => Promise<void>;
|
|
286
286
|
readonly handleClickRefresh: () => Promise<void>;
|
|
287
|
+
readonly handleHeaderContextMenu: (x: number, y: number) => Promise<void>;
|
|
287
288
|
readonly handleInput: (name: ChatDebugInputName, value: string, checked: boolean) => Promise<void>;
|
|
289
|
+
readonly handlePreviewTextPointerDown: (x: number, y: number) => Promise<void>;
|
|
290
|
+
readonly handleRootContextMenu: () => Promise<void>;
|
|
291
|
+
readonly handleTableBodyContextMenu: (x: number, y: number) => Promise<void>;
|
|
292
|
+
readonly handleTableFocus: () => Promise<void>;
|
|
293
|
+
readonly handleTimelineDoubleClick: () => Promise<void>;
|
|
294
|
+
readonly handleTimelinePointerDown: (name: string, x: number, y: number) => Promise<void>;
|
|
295
|
+
readonly handleTimelinePointerMove: (x: number) => Promise<void>;
|
|
296
|
+
readonly handleTimelinePointerUp: (x: number) => Promise<void>;
|
|
288
297
|
readonly open: (sessionId: string) => Promise<void>;
|
|
289
298
|
readonly open2: ({ events, sessionId, useDevtoolsLayout }: OpenChatDebugOptions) => Promise<void>;
|
|
299
|
+
readonly openTab: (id: string) => Promise<void>;
|
|
300
|
+
readonly openTabHeaders: () => Promise<void>;
|
|
290
301
|
readonly openTabPayload: () => Promise<void>;
|
|
291
302
|
readonly openTabPreview: () => Promise<void>;
|
|
292
303
|
readonly openTabResponse: () => Promise<void>;
|
|
293
304
|
readonly openTabTiming: () => Promise<void>;
|
|
305
|
+
readonly openTabTokens: () => Promise<void>;
|
|
294
306
|
readonly resetIndexedDbSupportForTest: () => Promise<void>;
|
|
295
307
|
readonly selectEventRow: (index: number) => Promise<void>;
|
|
296
308
|
readonly setEventCategoryFilter: (value: string) => Promise<void>;
|
|
@@ -302,6 +314,7 @@ interface ChatDebug {
|
|
|
302
314
|
readonly setShowInputEvents: (enabled: boolean) => Promise<void>;
|
|
303
315
|
readonly setShowResponsePartEvents: (enabled: boolean) => Promise<void>;
|
|
304
316
|
readonly setTimelineRangePreset: (value: string) => Promise<void>;
|
|
317
|
+
readonly toggleHeadersSection: (sectionId: string) => Promise<void>;
|
|
305
318
|
readonly useDevtoolsLayout: () => Promise<void>;
|
|
306
319
|
}
|
|
307
320
|
|
|
@@ -641,6 +654,9 @@ interface LanguageModels {
|
|
|
641
654
|
|
|
642
655
|
interface Layout {
|
|
643
656
|
readonly handleWorkspaceRefresh: () => Promise<void>;
|
|
657
|
+
readonly hideSecondarySideBar: () => Promise<void>;
|
|
658
|
+
readonly hideSideBar: () => Promise<void>;
|
|
659
|
+
readonly showSecondarySideBar: () => Promise<void>;
|
|
644
660
|
readonly showSideBar: () => Promise<void>;
|
|
645
661
|
}
|
|
646
662
|
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -2144,12 +2144,21 @@ const open2 = async ({
|
|
|
2144
2144
|
await handleInput$7('useDevtoolsLayout', '', true);
|
|
2145
2145
|
}
|
|
2146
2146
|
};
|
|
2147
|
+
const handleTimelineDoubleClick = async () => {
|
|
2148
|
+
await invoke('ChatDebug.handleTimelineDoubleClick');
|
|
2149
|
+
};
|
|
2147
2150
|
const setEvents = async events => {
|
|
2148
2151
|
await invoke('ChatDebug.setEvents', events);
|
|
2149
2152
|
};
|
|
2153
|
+
const toggleHeadersSection = async sectionId => {
|
|
2154
|
+
await invoke('ChatDebug.handleInput', 'toggleHeadersSection', sectionId, false);
|
|
2155
|
+
};
|
|
2150
2156
|
const setIndexedDbSupportForTest = async supported => {
|
|
2151
2157
|
await invoke('ChatDebug.setIndexedDbSupportForTest', supported);
|
|
2152
2158
|
};
|
|
2159
|
+
const handleRootContextMenu = async () => {
|
|
2160
|
+
await invoke('ChatDebug.handleRootContextMenu');
|
|
2161
|
+
};
|
|
2153
2162
|
const resetIndexedDbSupportForTest = async () => {
|
|
2154
2163
|
await invoke('ChatDebug.setIndexedDbSupportForTest');
|
|
2155
2164
|
};
|
|
@@ -2162,9 +2171,15 @@ const handleInput$7 = async (name, value, checked) => {
|
|
|
2162
2171
|
const useDevtoolsLayout = async () => {
|
|
2163
2172
|
await handleInput$7('useDevtoolsLayout', '', true);
|
|
2164
2173
|
};
|
|
2174
|
+
const handleHeaderContextMenu = async (x, y) => {
|
|
2175
|
+
await invoke('ChatDebug.handleHeaderContextMenu', x, y);
|
|
2176
|
+
};
|
|
2165
2177
|
const setFilter = async value => {
|
|
2166
2178
|
await handleInput$7('filter', value, false);
|
|
2167
2179
|
};
|
|
2180
|
+
const handlePreviewTextPointerDown = async (x, y) => {
|
|
2181
|
+
await invoke('ChatDebug.handlePreviewTextPointerDown', x, y);
|
|
2182
|
+
};
|
|
2168
2183
|
const setEventCategoryFilter = async value => {
|
|
2169
2184
|
await handleInput$7('eventCategoryFilter', value, false);
|
|
2170
2185
|
};
|
|
@@ -2177,23 +2192,44 @@ const setShowInputEvents = async enabled => {
|
|
|
2177
2192
|
const setShowResponsePartEvents = async enabled => {
|
|
2178
2193
|
await handleInput$7('showResponsePartEvents', '', enabled);
|
|
2179
2194
|
};
|
|
2195
|
+
const handleTableFocus = async () => {
|
|
2196
|
+
await invoke('ChatDebug.handleTableFocus');
|
|
2197
|
+
};
|
|
2180
2198
|
const setShowEventStreamFinishedEvents = async enabled => {
|
|
2181
2199
|
await handleInput$7('showEventStreamFinishedEvents', '', enabled);
|
|
2182
2200
|
};
|
|
2183
2201
|
const closeDetails = async () => {
|
|
2184
2202
|
await handleInput$7('closeDetails', 'close', false);
|
|
2185
2203
|
};
|
|
2204
|
+
const openTab = async id => {
|
|
2205
|
+
await invoke('ChatDebug.handleInput', 'detailTab', id, false);
|
|
2206
|
+
};
|
|
2186
2207
|
const openTabPreview = async () => {
|
|
2187
|
-
await
|
|
2208
|
+
await openTab('preview');
|
|
2188
2209
|
};
|
|
2189
2210
|
const openTabPayload = async () => {
|
|
2190
|
-
await
|
|
2211
|
+
await openTab('payload');
|
|
2191
2212
|
};
|
|
2192
2213
|
const openTabResponse = async () => {
|
|
2193
|
-
await
|
|
2214
|
+
await openTab('response');
|
|
2215
|
+
};
|
|
2216
|
+
const handleTimelinePointerDown = async (name, x, y) => {
|
|
2217
|
+
await invoke('ChatDebug.handleTimelinePointerDown', name, x, y);
|
|
2218
|
+
};
|
|
2219
|
+
const handleTimelinePointerMove = async x => {
|
|
2220
|
+
await invoke('ChatDebug.handleTimelinePointerMove', x);
|
|
2221
|
+
};
|
|
2222
|
+
const handleTimelinePointerUp = async x => {
|
|
2223
|
+
await invoke('ChatDebug.handleTimelinePointerUp', x);
|
|
2224
|
+
};
|
|
2225
|
+
const openTabTokens = async () => {
|
|
2226
|
+
await openTab('tokens');
|
|
2194
2227
|
};
|
|
2195
2228
|
const openTabTiming = async () => {
|
|
2196
|
-
await
|
|
2229
|
+
await openTab('timing');
|
|
2230
|
+
};
|
|
2231
|
+
const openTabHeaders = async () => {
|
|
2232
|
+
await openTab('headers');
|
|
2197
2233
|
};
|
|
2198
2234
|
const setSessionId = async sessionId => {
|
|
2199
2235
|
await invoke('ChatDebug.setSessionId', sessionId);
|
|
@@ -2204,18 +2240,33 @@ const appendStoredEventForTest = async event => {
|
|
|
2204
2240
|
const handleClickRefresh = async () => {
|
|
2205
2241
|
await invoke('ChatDebug.handleClickRefresh');
|
|
2206
2242
|
};
|
|
2243
|
+
const handleTableBodyContextMenu = async (x, y) => {
|
|
2244
|
+
await invoke('ChatDebug.handleTableBodyContextMenu', x, y);
|
|
2245
|
+
};
|
|
2207
2246
|
|
|
2208
2247
|
const ChatDebug = {
|
|
2209
2248
|
appendStoredEventForTest,
|
|
2210
2249
|
closeDetails,
|
|
2211
2250
|
handleClickRefresh,
|
|
2251
|
+
handleHeaderContextMenu,
|
|
2212
2252
|
handleInput: handleInput$7,
|
|
2253
|
+
handlePreviewTextPointerDown,
|
|
2254
|
+
handleRootContextMenu,
|
|
2255
|
+
handleTableBodyContextMenu,
|
|
2256
|
+
handleTableFocus,
|
|
2257
|
+
handleTimelineDoubleClick,
|
|
2258
|
+
handleTimelinePointerDown,
|
|
2259
|
+
handleTimelinePointerMove,
|
|
2260
|
+
handleTimelinePointerUp,
|
|
2213
2261
|
open: open$a,
|
|
2214
2262
|
open2,
|
|
2263
|
+
openTab,
|
|
2264
|
+
openTabHeaders,
|
|
2215
2265
|
openTabPayload,
|
|
2216
2266
|
openTabPreview,
|
|
2217
2267
|
openTabResponse,
|
|
2218
2268
|
openTabTiming,
|
|
2269
|
+
openTabTokens,
|
|
2219
2270
|
resetIndexedDbSupportForTest,
|
|
2220
2271
|
selectEventRow,
|
|
2221
2272
|
setEventCategoryFilter,
|
|
@@ -2227,6 +2278,7 @@ const ChatDebug = {
|
|
|
2227
2278
|
setShowInputEvents,
|
|
2228
2279
|
setShowResponsePartEvents,
|
|
2229
2280
|
setTimelineRangePreset,
|
|
2281
|
+
toggleHeadersSection,
|
|
2230
2282
|
useDevtoolsLayout
|
|
2231
2283
|
};
|
|
2232
2284
|
|
|
@@ -3897,12 +3949,24 @@ const LanguageModels = {
|
|
|
3897
3949
|
const showSideBar = async () => {
|
|
3898
3950
|
await execute$1('Layout.showSideBar');
|
|
3899
3951
|
};
|
|
3952
|
+
const hideSideBar = async () => {
|
|
3953
|
+
await execute$1('Layout.hideSideBar');
|
|
3954
|
+
};
|
|
3955
|
+
const showSecondarySideBar = async () => {
|
|
3956
|
+
await execute$1('Layout.showSecondarySideBar');
|
|
3957
|
+
};
|
|
3958
|
+
const hideSecondarySideBar = async () => {
|
|
3959
|
+
await execute$1('Layout.hideSecondarySideBar');
|
|
3960
|
+
};
|
|
3900
3961
|
const handleWorkspaceRefresh = async () => {
|
|
3901
3962
|
await invoke('Layout.handleWorkspaceRefresh');
|
|
3902
3963
|
};
|
|
3903
3964
|
|
|
3904
3965
|
const Layout = {
|
|
3905
3966
|
handleWorkspaceRefresh,
|
|
3967
|
+
hideSecondarySideBar,
|
|
3968
|
+
hideSideBar,
|
|
3969
|
+
showSecondarySideBar,
|
|
3906
3970
|
showSideBar
|
|
3907
3971
|
};
|
|
3908
3972
|
|