@lvce-editor/test-worker 13.14.0 → 13.16.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 CHANGED
@@ -129,14 +129,21 @@ interface BaseUrl {
129
129
  }
130
130
 
131
131
  interface Chat {
132
+ readonly clearInput: () => Promise<void>;
133
+ readonly closeGitBranchPicker: () => Promise<void>;
132
134
  readonly deleteSessionAtIndex: (index: number) => Promise<void>;
133
135
  readonly enterNewLine: () => Promise<void>;
136
+ readonly getAuthState: () => Promise<any>;
134
137
  readonly getSelectedSessionId: () => Promise<string>;
138
+ readonly handleAgentModeChange: (newAgentMode: string) => Promise<void>;
139
+ readonly handleChatHeaderContextMenu: () => Promise<void>;
135
140
  readonly handleChatListContextMenu: (eventX: number, eventY: number) => Promise<void>;
136
141
  readonly handleClickBack: () => Promise<void>;
137
142
  readonly handleClickClose: () => Promise<void>;
138
143
  readonly handleClickDelete: () => Promise<void>;
144
+ readonly handleClickFileName: (fileName: string) => Promise<void>;
139
145
  readonly handleClickNew: () => Promise<void>;
146
+ readonly handleClickSessionDebug: () => Promise<void>;
140
147
  readonly handleClickSettings: () => Promise<void>;
141
148
  readonly handleDropFiles: (file: DroppedFileHandle) => Promise<void>;
142
149
  readonly handleInput: (text: string) => Promise<void>;
@@ -144,7 +151,10 @@ interface Chat {
144
151
  readonly handleInputCut: () => Promise<void>;
145
152
  readonly handleInputFocus: () => Promise<void>;
146
153
  readonly handleInputPaste: () => Promise<void>;
154
+ readonly handleMessagesScroll: (id: number, x: number, y: number) => Promise<void>;
147
155
  readonly handleModelChange: (modelId: string) => Promise<void>;
156
+ readonly handleModelInputBlur: () => Promise<void>;
157
+ readonly handleProjectListContextMenu: (id: number, x: number, y: number) => Promise<void>;
148
158
  readonly handleSubmit: () => Promise<void>;
149
159
  readonly mockBackendAuthResponse: (response: any) => Promise<void>;
150
160
  readonly mockOpenAiResponse: (options: MockOpenAiResponseOptions) => Promise<void>;
@@ -153,16 +163,25 @@ interface Chat {
153
163
  readonly mockOpenApiStreamFinish: () => Promise<void>;
154
164
  readonly mockOpenApiStreamPushChunk: (chunk: string) => Promise<void>;
155
165
  readonly mockOpenApiStreamReset: () => Promise<void>;
166
+ readonly openAgentModePicker: () => Promise<void>;
167
+ readonly openGitBranchPicker: () => Promise<void>;
156
168
  readonly openMockSession: (sessionId: string, messages: readonly any[]) => Promise<void>;
169
+ readonly openModelPicker: () => Promise<void>;
157
170
  readonly rerender: () => Promise<void>;
158
171
  readonly reset: () => Promise<void>;
159
172
  readonly selectIndex: (index: number) => Promise<void>;
173
+ readonly setAddContextButtonEnabled: (enabled: boolean) => Promise<void>;
160
174
  readonly setAuthEnabled: (enabled: boolean) => Promise<void>;
161
175
  readonly setBackendUrl: (url: string) => Promise<void>;
162
176
  readonly setNewChatModelPickerEnabled: (enabled: boolean) => Promise<void>;
177
+ readonly setQuestionToolEnabled: (enabled: boolean) => Promise<void>;
178
+ readonly setReasoningEffort: (effort: string) => Promise<void>;
179
+ readonly setReasoningPickerEnabled: (enabled: boolean) => Promise<void>;
180
+ readonly setScrollDownButtonEnabled: (enabled: boolean) => Promise<void>;
163
181
  readonly setSearchEnabled: (enabled: boolean) => Promise<void>;
164
182
  readonly setStreamingEnabled: (enabled: boolean) => Promise<void>;
165
183
  readonly show: () => Promise<void>;
184
+ readonly showComposerAttachmentPreviewOverlay: (attachmentId: string) => Promise<void>;
166
185
  readonly useMockApi: () => Promise<void>;
167
186
  }
168
187
 
@@ -1736,6 +1736,12 @@ const Command = {
1736
1736
  };
1737
1737
 
1738
1738
  /* eslint-disable @typescript-eslint/prefer-readonly-parameter-types */
1739
+ const setReasoningPickerEnabled = async enabled => {
1740
+ await invoke$1('Chat.setReasoningPickerEnabled', enabled);
1741
+ };
1742
+ const setReasoningEffort = async effort => {
1743
+ await invoke$1('Chat.setReasoningEffort', effort);
1744
+ };
1739
1745
  const handleChatListContextMenu = async (eventX, eventY) => {
1740
1746
  await invoke$1('Chat.handleChatListContextMenu', eventX, eventY);
1741
1747
  };
@@ -1748,6 +1754,9 @@ const handleClickBack = async () => {
1748
1754
  const setNewChatModelPickerEnabled = async enabled => {
1749
1755
  await invoke$1('Chat.setNewChatModelPickerEnabled', enabled);
1750
1756
  };
1757
+ const openAgentModePicker = async () => {
1758
+ await invoke$1('Chat.openAgentModePicker');
1759
+ };
1751
1760
  const handleClickSettings = async () => {
1752
1761
  await invoke$1('Chat.handleClickSettings');
1753
1762
  };
@@ -1763,6 +1772,9 @@ const handleClickNew = async () => {
1763
1772
  const enterNewLine = async () => {
1764
1773
  await invoke$1('Chat.enterNewLine');
1765
1774
  };
1775
+ const setScrollDownButtonEnabled = async enabled => {
1776
+ await invoke$1('Chat.setScrollDownButtonEnabled', enabled);
1777
+ };
1766
1778
  const show$6 = async () => {
1767
1779
  await invoke$1('Layout.showSecondarySideBar');
1768
1780
  await invoke$1('Chat.reset');
@@ -1776,9 +1788,21 @@ const handleInput$7 = async text => {
1776
1788
  const handleDropFiles = async file => {
1777
1789
  await execute$1('Chat.handleDropFiles', 'composer-drop-target', [file]);
1778
1790
  };
1791
+ const showComposerAttachmentPreviewOverlay = async attachmentId => {
1792
+ await execute$1('Chat.showComposerAttachmentPreviewOverlay', attachmentId);
1793
+ };
1794
+ const handleClickSessionDebug = async () => {
1795
+ await execute$1('Chat.handleClickSessionDebug');
1796
+ };
1797
+ const handleChatHeaderContextMenu = async () => {
1798
+ await execute$1('Chat.handleChatHeaderContextMenu', 0, 0);
1799
+ };
1779
1800
  const reset = async () => {
1780
1801
  await invoke$1('Chat.reset');
1781
1802
  };
1803
+ const handleMessagesScroll = async (id, x, y) => {
1804
+ await invoke$1('Chat.handleMessagesScroll', id, x, y);
1805
+ };
1782
1806
  const mockOpenApiStreamFinish = async () => {
1783
1807
  await invoke$1('Chat.mockOpenApiStreamFinish');
1784
1808
  };
@@ -1797,6 +1821,12 @@ const setStreamingEnabled = async enabled => {
1797
1821
  const useMockApi = async () => {
1798
1822
  await invoke$1('Chat.useMockApi', true);
1799
1823
  };
1824
+ const openGitBranchPicker = async () => {
1825
+ await invoke$1('Chat.openGitBranchPicker');
1826
+ };
1827
+ const closeGitBranchPicker = async () => {
1828
+ await invoke$1('Chat.closeGitBranchPicker');
1829
+ };
1800
1830
  const setAuthEnabled = async enabled => {
1801
1831
  await invoke$1('Chat.setAuthEnabled', enabled);
1802
1832
  };
@@ -1818,40 +1848,74 @@ const mockOpenApiRequestReset = async () => {
1818
1848
  const mockOpenApiStreamReset = async () => {
1819
1849
  await invoke$1('Chat.mockOpenApiStreamReset');
1820
1850
  };
1851
+ const openModelPicker = async () => {
1852
+ await invoke$1('Chat.openModelPicker');
1853
+ };
1821
1854
  const handleClickDelete = async () => {
1822
1855
  await invoke$1('Chat.handleClickDelete');
1823
1856
  };
1857
+ const setAddContextButtonEnabled = async enabled => {
1858
+ await invoke$1('Chat.setAddContextButtonEnabled', enabled);
1859
+ };
1824
1860
  const deleteSessionAtIndex = async index => {
1825
1861
  await invoke$1('Chat.deleteSessionAtIndex', index);
1826
1862
  };
1827
1863
  const handleModelChange = async modelId => {
1828
1864
  await invoke$1('Chat.handleModelChange', modelId);
1829
1865
  };
1866
+ const handleModelInputBlur = async () => {
1867
+ await execute$1('Chat.handleModelInputBlur');
1868
+ };
1830
1869
  const handleInputPaste$1 = async () => {
1831
1870
  await invoke$1('Chat.handleInputPaste');
1832
1871
  };
1872
+ const setQuestionToolEnabled = async enabled => {
1873
+ await invoke$1('Chat.setQuestionToolEnabled', enabled);
1874
+ };
1833
1875
  const handleInputCopy$1 = async () => {
1834
1876
  await invoke$1('Chat.handleInputCopy');
1835
1877
  };
1878
+ const handleClickFileName = async fileName => {
1879
+ await invoke$1('Chat.handleClickFileName', fileName);
1880
+ };
1836
1881
  const handleInputCut$1 = async () => {
1837
1882
  await invoke$1('Chat.handleInputCut');
1838
1883
  };
1884
+ const clearInput$1 = async () => {
1885
+ await execute$1('Chat.clearInput');
1886
+ };
1887
+ const handleProjectListContextMenu = async (id, x, y) => {
1888
+ await execute$1('Chat.handleProjectListContextMenu', id, x, y);
1889
+ };
1839
1890
  const mockOpenAiResponse = async options => {
1840
1891
  return invoke$1('Chat.mockOpenAiResponse', options);
1841
1892
  };
1842
1893
  const handleInputFocus = async () => {
1843
- return invoke$1('Chat.handleInputFocus');
1894
+ return execute$1('Chat.handleInputFocus', 'chat-list');
1895
+ };
1896
+ const getAuthState = async () => {
1897
+ return invoke$1('Chat.getAuthState');
1898
+ };
1899
+ const handleAgentModeChange = async newAgentMode => {
1900
+ return invoke$1('Chat.handleAgentModeChange', newAgentMode);
1844
1901
  };
1845
1902
 
1846
1903
  const Chat = {
1904
+ clearInput: clearInput$1,
1905
+ closeGitBranchPicker,
1847
1906
  deleteSessionAtIndex,
1848
1907
  enterNewLine,
1908
+ getAuthState,
1849
1909
  getSelectedSessionId,
1910
+ handleAgentModeChange,
1911
+ handleChatHeaderContextMenu,
1850
1912
  handleChatListContextMenu,
1851
1913
  handleClickBack,
1852
1914
  handleClickClose,
1853
1915
  handleClickDelete,
1916
+ handleClickFileName,
1854
1917
  handleClickNew,
1918
+ handleClickSessionDebug,
1855
1919
  handleClickSettings,
1856
1920
  handleDropFiles,
1857
1921
  handleInput: handleInput$7,
@@ -1859,7 +1923,10 @@ const Chat = {
1859
1923
  handleInputCut: handleInputCut$1,
1860
1924
  handleInputFocus,
1861
1925
  handleInputPaste: handleInputPaste$1,
1926
+ handleMessagesScroll,
1862
1927
  handleModelChange,
1928
+ handleModelInputBlur,
1929
+ handleProjectListContextMenu,
1863
1930
  handleSubmit,
1864
1931
  mockBackendAuthResponse,
1865
1932
  mockOpenAiResponse,
@@ -1868,16 +1935,25 @@ const Chat = {
1868
1935
  mockOpenApiStreamFinish,
1869
1936
  mockOpenApiStreamPushChunk,
1870
1937
  mockOpenApiStreamReset,
1938
+ openAgentModePicker,
1939
+ openGitBranchPicker,
1871
1940
  openMockSession,
1941
+ openModelPicker,
1872
1942
  rerender,
1873
1943
  reset,
1874
1944
  selectIndex: selectIndex$7,
1945
+ setAddContextButtonEnabled,
1875
1946
  setAuthEnabled,
1876
1947
  setBackendUrl,
1877
1948
  setNewChatModelPickerEnabled,
1949
+ setQuestionToolEnabled,
1950
+ setReasoningEffort,
1951
+ setReasoningPickerEnabled,
1952
+ setScrollDownButtonEnabled,
1878
1953
  setSearchEnabled,
1879
1954
  setStreamingEnabled,
1880
1955
  show: show$6,
1956
+ showComposerAttachmentPreviewOverlay,
1881
1957
  useMockApi
1882
1958
  };
1883
1959
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "13.14.0",
3
+ "version": "13.16.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",