@lvce-editor/test-worker 13.12.0 → 13.14.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 +15 -5
- package/dist/testWorkerMain.js +530 -466
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -53,6 +53,11 @@ export interface UpdateConfig {
|
|
|
53
53
|
readonly state: number;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
export interface DroppedFileHandle {
|
|
57
|
+
readonly file: File;
|
|
58
|
+
readonly id: number;
|
|
59
|
+
}
|
|
60
|
+
|
|
56
61
|
export interface MockOpenAiResponseOptions {
|
|
57
62
|
readonly status: number;
|
|
58
63
|
readonly value: any;
|
|
@@ -67,11 +72,6 @@ export interface Diagnostic {
|
|
|
67
72
|
readonly type: "error" | "warning";
|
|
68
73
|
}
|
|
69
74
|
|
|
70
|
-
export interface DroppedFileHandle {
|
|
71
|
-
readonly file: File;
|
|
72
|
-
readonly id: number;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
75
|
export interface FileSystemTmpDirOptions {
|
|
76
76
|
readonly scheme?: string;
|
|
77
77
|
}
|
|
@@ -132,12 +132,18 @@ interface Chat {
|
|
|
132
132
|
readonly deleteSessionAtIndex: (index: number) => Promise<void>;
|
|
133
133
|
readonly enterNewLine: () => Promise<void>;
|
|
134
134
|
readonly getSelectedSessionId: () => Promise<string>;
|
|
135
|
+
readonly handleChatListContextMenu: (eventX: number, eventY: number) => Promise<void>;
|
|
135
136
|
readonly handleClickBack: () => Promise<void>;
|
|
136
137
|
readonly handleClickClose: () => Promise<void>;
|
|
137
138
|
readonly handleClickDelete: () => Promise<void>;
|
|
138
139
|
readonly handleClickNew: () => Promise<void>;
|
|
139
140
|
readonly handleClickSettings: () => Promise<void>;
|
|
141
|
+
readonly handleDropFiles: (file: DroppedFileHandle) => Promise<void>;
|
|
140
142
|
readonly handleInput: (text: string) => Promise<void>;
|
|
143
|
+
readonly handleInputCopy: () => Promise<void>;
|
|
144
|
+
readonly handleInputCut: () => Promise<void>;
|
|
145
|
+
readonly handleInputFocus: () => Promise<void>;
|
|
146
|
+
readonly handleInputPaste: () => Promise<void>;
|
|
141
147
|
readonly handleModelChange: (modelId: string) => Promise<void>;
|
|
142
148
|
readonly handleSubmit: () => Promise<void>;
|
|
143
149
|
readonly mockBackendAuthResponse: (response: any) => Promise<void>;
|
|
@@ -147,10 +153,14 @@ interface Chat {
|
|
|
147
153
|
readonly mockOpenApiStreamFinish: () => Promise<void>;
|
|
148
154
|
readonly mockOpenApiStreamPushChunk: (chunk: string) => Promise<void>;
|
|
149
155
|
readonly mockOpenApiStreamReset: () => Promise<void>;
|
|
156
|
+
readonly openMockSession: (sessionId: string, messages: readonly any[]) => Promise<void>;
|
|
150
157
|
readonly rerender: () => Promise<void>;
|
|
151
158
|
readonly reset: () => Promise<void>;
|
|
152
159
|
readonly selectIndex: (index: number) => Promise<void>;
|
|
153
160
|
readonly setAuthEnabled: (enabled: boolean) => Promise<void>;
|
|
161
|
+
readonly setBackendUrl: (url: string) => Promise<void>;
|
|
162
|
+
readonly setNewChatModelPickerEnabled: (enabled: boolean) => Promise<void>;
|
|
163
|
+
readonly setSearchEnabled: (enabled: boolean) => Promise<void>;
|
|
154
164
|
readonly setStreamingEnabled: (enabled: boolean) => Promise<void>;
|
|
155
165
|
readonly show: () => Promise<void>;
|
|
156
166
|
readonly useMockApi: () => Promise<void>;
|