@lvce-editor/test-worker 14.6.0 → 14.7.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
|
@@ -176,6 +176,10 @@ interface BaseUrl {
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
interface Chat {
|
|
179
|
+
readonly chatListFocusFirst: () => Promise<void>;
|
|
180
|
+
readonly chatListFocusLast: () => Promise<void>;
|
|
181
|
+
readonly chatListFocusNext: () => Promise<void>;
|
|
182
|
+
readonly chatListFocusPrevious: () => Promise<void>;
|
|
179
183
|
readonly clearInput: () => Promise<void>;
|
|
180
184
|
readonly closeGitBranchPicker: () => Promise<void>;
|
|
181
185
|
readonly deleteSessionAtIndex: (index: number) => Promise<void>;
|
|
@@ -194,6 +198,7 @@ interface Chat {
|
|
|
194
198
|
readonly handleClickSettings: () => Promise<void>;
|
|
195
199
|
readonly handleContextMenuChatImageAttachment: (id: string, x: number, y: number) => Promise<void>;
|
|
196
200
|
readonly handleDropFiles: (file: DroppedFileHandle) => Promise<void>;
|
|
201
|
+
readonly handleErrorComposerAttachmentPreviewOverlay: () => Promise<void>;
|
|
197
202
|
readonly handleInput: (text: string) => Promise<void>;
|
|
198
203
|
readonly handleInputCopy: () => Promise<void>;
|
|
199
204
|
readonly handleInputCut: () => Promise<void>;
|
|
@@ -223,6 +228,7 @@ interface Chat {
|
|
|
223
228
|
readonly setAuthEnabled: (enabled: boolean) => Promise<void>;
|
|
224
229
|
readonly setBackendUrl: (url: string) => Promise<void>;
|
|
225
230
|
readonly setNewChatModelPickerEnabled: (enabled: boolean) => Promise<void>;
|
|
231
|
+
readonly setNowForTest: (now: number) => Promise<void>;
|
|
226
232
|
readonly setQuestionToolEnabled: (enabled: boolean) => Promise<void>;
|
|
227
233
|
readonly setReasoningEffort: (effort: string) => Promise<void>;
|
|
228
234
|
readonly setReasoningPickerEnabled: (enabled: boolean) => Promise<void>;
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1907,6 +1907,9 @@ const handleDropFiles = async file => {
|
|
|
1907
1907
|
const showComposerAttachmentPreviewOverlay = async attachmentId => {
|
|
1908
1908
|
await execute$1('Chat.showComposerAttachmentPreviewOverlay', attachmentId);
|
|
1909
1909
|
};
|
|
1910
|
+
const handleErrorComposerAttachmentPreviewOverlay = async () => {
|
|
1911
|
+
await execute$1('Chat.handleErrorComposerAttachmentPreviewOverlay');
|
|
1912
|
+
};
|
|
1910
1913
|
const handleClickSessionDebug = async () => {
|
|
1911
1914
|
await execute$1('Chat.handleClickSessionDebug');
|
|
1912
1915
|
};
|
|
@@ -2015,6 +2018,21 @@ const mockOpenAiResponse = async options => {
|
|
|
2015
2018
|
const handleInputFocus = async () => {
|
|
2016
2019
|
return execute$1('Chat.handleInputFocus', 'chat-list');
|
|
2017
2020
|
};
|
|
2021
|
+
const chatListFocusPrevious = async () => {
|
|
2022
|
+
return execute$1('Chat.chatListFocusPrevious');
|
|
2023
|
+
};
|
|
2024
|
+
const chatListFocusFirst = async () => {
|
|
2025
|
+
return execute$1('Chat.chatListFocusFirst');
|
|
2026
|
+
};
|
|
2027
|
+
const chatListFocusLast = async () => {
|
|
2028
|
+
return execute$1('Chat.chatListFocusLast');
|
|
2029
|
+
};
|
|
2030
|
+
const chatListFocusNext = async () => {
|
|
2031
|
+
return execute$1('Chat.chatListFocusNext');
|
|
2032
|
+
};
|
|
2033
|
+
const setNowForTest = async now => {
|
|
2034
|
+
await execute$1('Chat.setNowForTest', now);
|
|
2035
|
+
};
|
|
2018
2036
|
const getAuthState = async () => {
|
|
2019
2037
|
return invoke('Chat.getAuthState');
|
|
2020
2038
|
};
|
|
@@ -2023,6 +2041,10 @@ const handleAgentModeChange = async newAgentMode => {
|
|
|
2023
2041
|
};
|
|
2024
2042
|
|
|
2025
2043
|
const Chat = {
|
|
2044
|
+
chatListFocusFirst,
|
|
2045
|
+
chatListFocusLast,
|
|
2046
|
+
chatListFocusNext,
|
|
2047
|
+
chatListFocusPrevious,
|
|
2026
2048
|
clearInput: clearInput$1,
|
|
2027
2049
|
closeGitBranchPicker,
|
|
2028
2050
|
deleteSessionAtIndex,
|
|
@@ -2041,6 +2063,7 @@ const Chat = {
|
|
|
2041
2063
|
handleClickSettings,
|
|
2042
2064
|
handleContextMenuChatImageAttachment,
|
|
2043
2065
|
handleDropFiles,
|
|
2066
|
+
handleErrorComposerAttachmentPreviewOverlay,
|
|
2044
2067
|
handleInput: handleInput$8,
|
|
2045
2068
|
handleInputCopy: handleInputCopy$1,
|
|
2046
2069
|
handleInputCut: handleInputCut$1,
|
|
@@ -2070,6 +2093,7 @@ const Chat = {
|
|
|
2070
2093
|
setAuthEnabled,
|
|
2071
2094
|
setBackendUrl,
|
|
2072
2095
|
setNewChatModelPickerEnabled,
|
|
2096
|
+
setNowForTest,
|
|
2073
2097
|
setQuestionToolEnabled,
|
|
2074
2098
|
setReasoningEffort,
|
|
2075
2099
|
setReasoningPickerEnabled,
|