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