@lvce-editor/test-worker 13.14.0 → 13.15.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 +5 -0
- package/dist/testWorkerMain.js +21 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -129,9 +129,12 @@ interface BaseUrl {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
interface Chat {
|
|
132
|
+
readonly clearInput: () => Promise<void>;
|
|
132
133
|
readonly deleteSessionAtIndex: (index: number) => Promise<void>;
|
|
133
134
|
readonly enterNewLine: () => Promise<void>;
|
|
135
|
+
readonly getAuthState: () => Promise<any>;
|
|
134
136
|
readonly getSelectedSessionId: () => Promise<string>;
|
|
137
|
+
readonly handleChatHeaderContextMenu: () => Promise<void>;
|
|
135
138
|
readonly handleChatListContextMenu: (eventX: number, eventY: number) => Promise<void>;
|
|
136
139
|
readonly handleClickBack: () => Promise<void>;
|
|
137
140
|
readonly handleClickClose: () => Promise<void>;
|
|
@@ -145,6 +148,7 @@ interface Chat {
|
|
|
145
148
|
readonly handleInputFocus: () => Promise<void>;
|
|
146
149
|
readonly handleInputPaste: () => Promise<void>;
|
|
147
150
|
readonly handleModelChange: (modelId: string) => Promise<void>;
|
|
151
|
+
readonly handleModelInputBlur: () => Promise<void>;
|
|
148
152
|
readonly handleSubmit: () => Promise<void>;
|
|
149
153
|
readonly mockBackendAuthResponse: (response: any) => Promise<void>;
|
|
150
154
|
readonly mockOpenAiResponse: (options: MockOpenAiResponseOptions) => Promise<void>;
|
|
@@ -153,6 +157,7 @@ interface Chat {
|
|
|
153
157
|
readonly mockOpenApiStreamFinish: () => Promise<void>;
|
|
154
158
|
readonly mockOpenApiStreamPushChunk: (chunk: string) => Promise<void>;
|
|
155
159
|
readonly mockOpenApiStreamReset: () => Promise<void>;
|
|
160
|
+
readonly openAgentModePicker: () => Promise<void>;
|
|
156
161
|
readonly openMockSession: (sessionId: string, messages: readonly any[]) => Promise<void>;
|
|
157
162
|
readonly rerender: () => Promise<void>;
|
|
158
163
|
readonly reset: () => Promise<void>;
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1748,6 +1748,9 @@ const handleClickBack = async () => {
|
|
|
1748
1748
|
const setNewChatModelPickerEnabled = async enabled => {
|
|
1749
1749
|
await invoke$1('Chat.setNewChatModelPickerEnabled', enabled);
|
|
1750
1750
|
};
|
|
1751
|
+
const openAgentModePicker = async () => {
|
|
1752
|
+
await invoke$1('Chat.openAgentModePicker');
|
|
1753
|
+
};
|
|
1751
1754
|
const handleClickSettings = async () => {
|
|
1752
1755
|
await invoke$1('Chat.handleClickSettings');
|
|
1753
1756
|
};
|
|
@@ -1776,6 +1779,9 @@ const handleInput$7 = async text => {
|
|
|
1776
1779
|
const handleDropFiles = async file => {
|
|
1777
1780
|
await execute$1('Chat.handleDropFiles', 'composer-drop-target', [file]);
|
|
1778
1781
|
};
|
|
1782
|
+
const handleChatHeaderContextMenu = async () => {
|
|
1783
|
+
await execute$1('Chat.handleChatHeaderContextMenu', 0, 0);
|
|
1784
|
+
};
|
|
1779
1785
|
const reset = async () => {
|
|
1780
1786
|
await invoke$1('Chat.reset');
|
|
1781
1787
|
};
|
|
@@ -1827,6 +1833,9 @@ const deleteSessionAtIndex = async index => {
|
|
|
1827
1833
|
const handleModelChange = async modelId => {
|
|
1828
1834
|
await invoke$1('Chat.handleModelChange', modelId);
|
|
1829
1835
|
};
|
|
1836
|
+
const handleModelInputBlur = async () => {
|
|
1837
|
+
await execute$1('Chat.handleModelInputBlur');
|
|
1838
|
+
};
|
|
1830
1839
|
const handleInputPaste$1 = async () => {
|
|
1831
1840
|
await invoke$1('Chat.handleInputPaste');
|
|
1832
1841
|
};
|
|
@@ -1836,17 +1845,26 @@ const handleInputCopy$1 = async () => {
|
|
|
1836
1845
|
const handleInputCut$1 = async () => {
|
|
1837
1846
|
await invoke$1('Chat.handleInputCut');
|
|
1838
1847
|
};
|
|
1848
|
+
const clearInput$1 = async () => {
|
|
1849
|
+
await execute$1('Chat.clearInput');
|
|
1850
|
+
};
|
|
1839
1851
|
const mockOpenAiResponse = async options => {
|
|
1840
1852
|
return invoke$1('Chat.mockOpenAiResponse', options);
|
|
1841
1853
|
};
|
|
1842
1854
|
const handleInputFocus = async () => {
|
|
1843
|
-
return
|
|
1855
|
+
return execute$1('Chat.handleInputFocus', 'chat-list');
|
|
1856
|
+
};
|
|
1857
|
+
const getAuthState = async () => {
|
|
1858
|
+
return invoke$1('Chat.getAuthState');
|
|
1844
1859
|
};
|
|
1845
1860
|
|
|
1846
1861
|
const Chat = {
|
|
1862
|
+
clearInput: clearInput$1,
|
|
1847
1863
|
deleteSessionAtIndex,
|
|
1848
1864
|
enterNewLine,
|
|
1865
|
+
getAuthState,
|
|
1849
1866
|
getSelectedSessionId,
|
|
1867
|
+
handleChatHeaderContextMenu,
|
|
1850
1868
|
handleChatListContextMenu,
|
|
1851
1869
|
handleClickBack,
|
|
1852
1870
|
handleClickClose,
|
|
@@ -1860,6 +1878,7 @@ const Chat = {
|
|
|
1860
1878
|
handleInputFocus,
|
|
1861
1879
|
handleInputPaste: handleInputPaste$1,
|
|
1862
1880
|
handleModelChange,
|
|
1881
|
+
handleModelInputBlur,
|
|
1863
1882
|
handleSubmit,
|
|
1864
1883
|
mockBackendAuthResponse,
|
|
1865
1884
|
mockOpenAiResponse,
|
|
@@ -1868,6 +1887,7 @@ const Chat = {
|
|
|
1868
1887
|
mockOpenApiStreamFinish,
|
|
1869
1888
|
mockOpenApiStreamPushChunk,
|
|
1870
1889
|
mockOpenApiStreamReset,
|
|
1890
|
+
openAgentModePicker,
|
|
1871
1891
|
openMockSession,
|
|
1872
1892
|
rerender,
|
|
1873
1893
|
reset,
|