@lvce-editor/rpc-registry 9.1.0 → 9.3.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/parts/ChatNetworkWorker/ChatNetworkWorker.d.ts +3 -0
- package/dist/parts/ChatNetworkWorker/ChatNetworkWorker.js +8 -0
- package/dist/parts/ChatStorageWorker/ChatStorageWorker.d.ts +3 -0
- package/dist/parts/ChatStorageWorker/ChatStorageWorker.js +8 -0
- package/dist/parts/Main/Main.d.ts +7 -4
- package/dist/parts/Main/Main.js +7 -4
- package/dist/parts/QuickPickWorker/QuickPickWorker.d.ts +2 -0
- package/dist/parts/QuickPickWorker/QuickPickWorker.js +5 -0
- package/dist/parts/RendererWorker/RendererWorker.d.ts +2 -0
- package/dist/parts/RendererWorker/RendererWorker.js +7 -0
- package/package.json +2 -2
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const dispose: () => Promise<void>, invoke: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer: (method: string, ...params: readonly unknown[]) => Promise<any>, registerMockRpc: (commandMap: Record<string, any>) => import("../DisposableMockRpc/DisposableMockRpc.ts").DisposableMockRpc, set: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
2
|
+
export declare const makeApiRequest: (options: any) => Promise<any>;
|
|
3
|
+
export declare const makeStreamingApiRequest: (options: any) => Promise<any>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as RpcFactory from "../RpcFactory/RpcFactory.js";
|
|
2
|
+
export const { dispose, invoke, invokeAndTransfer, registerMockRpc, set } = RpcFactory.create(6002);
|
|
3
|
+
export const makeApiRequest = async (options) => {
|
|
4
|
+
return invoke('ChatNetwork.makeApiRequest', options);
|
|
5
|
+
};
|
|
6
|
+
export const makeStreamingApiRequest = async (options) => {
|
|
7
|
+
return invoke('ChatNetwork.makeStreamingApiRequest', options);
|
|
8
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const dispose: () => Promise<void>, invoke: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer: (method: string, ...params: readonly unknown[]) => Promise<any>, registerMockRpc: (commandMap: Record<string, any>) => import("../DisposableMockRpc/DisposableMockRpc.ts").DisposableMockRpc, set: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
2
|
+
export declare const save: (options: any) => Promise<any>;
|
|
3
|
+
export declare const get: (options: any) => Promise<any>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as RpcFactory from "../RpcFactory/RpcFactory.js";
|
|
2
|
+
export const { dispose, invoke, invokeAndTransfer, registerMockRpc, set } = RpcFactory.create(6003);
|
|
3
|
+
export const save = async (options) => {
|
|
4
|
+
return invoke('ChatStorage.save', options);
|
|
5
|
+
};
|
|
6
|
+
export const get = async (options) => {
|
|
7
|
+
return invoke('ChatStorage.get', options);
|
|
8
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type { Rpc, MockRpc } from '@lvce-editor/rpc';
|
|
2
|
+
export * as ChatStorageWorker from '../ChatStorageWorker/ChatStorageWorker.ts';
|
|
3
|
+
export * as ChatNetworkWorker from '../ChatNetworkWorker/ChatNetworkWorker.ts';
|
|
2
4
|
export * as ClipBoardProcess from '../ClipBoardProcess/ClipBoardProcess.ts';
|
|
3
5
|
export * as ClipBoardWorker from '../ClipBoardWorker/ClipBoardWorker.ts';
|
|
4
6
|
export * as DebugWorker from '../DebugWorker/DebugWorker.ts';
|
|
@@ -7,21 +9,22 @@ export * as EmbedsProcess from '../EmbedsProcess/EmbedsProcess.ts';
|
|
|
7
9
|
export * as ErrorWorker from '../ErrorWorker/ErrorWorker.ts';
|
|
8
10
|
export * as ExtensionHost from '../ExtensionHost/ExtensionHost.ts';
|
|
9
11
|
export * as ExtensionManagementWorker from '../ExtensionManagementWorker/ExtensionManagementWorker.ts';
|
|
12
|
+
export * as FileSearchWorker from '../FileSearchWorker/FileSearchWorker.ts';
|
|
10
13
|
export * as FileSystemProcess from '../FileSystemProcess/FileSystemProcess.ts';
|
|
11
14
|
export * as FileSystemWorker from '../FileSystemWorker/FileSystemWorker.ts';
|
|
12
15
|
export * as IconThemeWorker from '../IconThemeWorker/IconThemeWorker.ts';
|
|
13
16
|
export * as IpcType from '../IpcType/IpcType.ts';
|
|
17
|
+
export * as MainAreaWorker from '../MainAreaWorker/MainAreaWorker.ts';
|
|
14
18
|
export * as MainProcess from '../MainProcess/MainProcess.ts';
|
|
15
19
|
export * as MarkdownWorker from '../MarkdownWorker/MarkdownWorker.ts';
|
|
16
|
-
export * as
|
|
17
|
-
export * as PreviewWorker from '../PreviewWorker/PreviewWorker.ts';
|
|
20
|
+
export * as OpenerWorker from '../OpenerWorker/OpenerWorker.ts';
|
|
18
21
|
export * as PreviewSandBoxWorker from '../PreviewSandBoxWorker/PreviewSandBoxWorker.ts';
|
|
22
|
+
export * as PreviewWorker from '../PreviewWorker/PreviewWorker.ts';
|
|
23
|
+
export * as QuickPickWorker from '../QuickPickWorker/QuickPickWorker.ts';
|
|
19
24
|
export * as RendererProcess from '../RendererProcess/RendererProcess.ts';
|
|
20
25
|
export * as RendererWorker from '../RendererWorker/RendererWorker.ts';
|
|
21
26
|
export * as SourceControlWorker from '../SourceControlWorker/SourceControlWorker.ts';
|
|
22
|
-
export * as OpenerWorker from '../OpenerWorker/OpenerWorker.ts';
|
|
23
27
|
export * as TextMeasurementWorker from '../TextMeasurementWorker/TextMeasurementWorker.ts';
|
|
24
|
-
export * as MainAreaWorker from '../MainAreaWorker/MainAreaWorker.ts';
|
|
25
28
|
export { RpcId } from '@lvce-editor/constants';
|
|
26
29
|
export * as SearchProcess from '../SearchProcess/SearchProcess.ts';
|
|
27
30
|
export * as SharedProcess from '../SharedProcess/SharedProcess.ts';
|
package/dist/parts/Main/Main.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * as ChatStorageWorker from "../ChatStorageWorker/ChatStorageWorker.js";
|
|
2
|
+
export * as ChatNetworkWorker from "../ChatNetworkWorker/ChatNetworkWorker.js";
|
|
1
3
|
export * as ClipBoardProcess from "../ClipBoardProcess/ClipBoardProcess.js";
|
|
2
4
|
export * as ClipBoardWorker from "../ClipBoardWorker/ClipBoardWorker.js";
|
|
3
5
|
export * as DebugWorker from "../DebugWorker/DebugWorker.js";
|
|
@@ -6,21 +8,22 @@ export * as EmbedsProcess from "../EmbedsProcess/EmbedsProcess.js";
|
|
|
6
8
|
export * as ErrorWorker from "../ErrorWorker/ErrorWorker.js";
|
|
7
9
|
export * as ExtensionHost from "../ExtensionHost/ExtensionHost.js";
|
|
8
10
|
export * as ExtensionManagementWorker from "../ExtensionManagementWorker/ExtensionManagementWorker.js";
|
|
11
|
+
export * as FileSearchWorker from "../FileSearchWorker/FileSearchWorker.js";
|
|
9
12
|
export * as FileSystemProcess from "../FileSystemProcess/FileSystemProcess.js";
|
|
10
13
|
export * as FileSystemWorker from "../FileSystemWorker/FileSystemWorker.js";
|
|
11
14
|
export * as IconThemeWorker from "../IconThemeWorker/IconThemeWorker.js";
|
|
12
15
|
export * as IpcType from "../IpcType/IpcType.js";
|
|
16
|
+
export * as MainAreaWorker from "../MainAreaWorker/MainAreaWorker.js";
|
|
13
17
|
export * as MainProcess from "../MainProcess/MainProcess.js";
|
|
14
18
|
export * as MarkdownWorker from "../MarkdownWorker/MarkdownWorker.js";
|
|
15
|
-
export * as
|
|
16
|
-
export * as PreviewWorker from "../PreviewWorker/PreviewWorker.js";
|
|
19
|
+
export * as OpenerWorker from "../OpenerWorker/OpenerWorker.js";
|
|
17
20
|
export * as PreviewSandBoxWorker from "../PreviewSandBoxWorker/PreviewSandBoxWorker.js";
|
|
21
|
+
export * as PreviewWorker from "../PreviewWorker/PreviewWorker.js";
|
|
22
|
+
export * as QuickPickWorker from "../QuickPickWorker/QuickPickWorker.js";
|
|
18
23
|
export * as RendererProcess from "../RendererProcess/RendererProcess.js";
|
|
19
24
|
export * as RendererWorker from "../RendererWorker/RendererWorker.js";
|
|
20
25
|
export * as SourceControlWorker from "../SourceControlWorker/SourceControlWorker.js";
|
|
21
|
-
export * as OpenerWorker from "../OpenerWorker/OpenerWorker.js";
|
|
22
26
|
export * as TextMeasurementWorker from "../TextMeasurementWorker/TextMeasurementWorker.js";
|
|
23
|
-
export * as MainAreaWorker from "../MainAreaWorker/MainAreaWorker.js";
|
|
24
27
|
export { RpcId } from '@lvce-editor/constants';
|
|
25
28
|
export * as SearchProcess from "../SearchProcess/SearchProcess.js";
|
|
26
29
|
export * as SharedProcess from "../SharedProcess/SharedProcess.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const dispose: () => Promise<void>, invoke: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer: (method: string, ...params: readonly unknown[]) => Promise<any>, set: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
2
|
+
export declare const showQuickInput: (options: any) => Promise<any>;
|
|
@@ -48,7 +48,9 @@ export declare const saveEditor: () => Promise<void>;
|
|
|
48
48
|
export declare const togglePanelView: (id: string) => Promise<void>;
|
|
49
49
|
export declare const resizeViewlet: (uid: number, dimensions: any) => Promise<readonly any[]>;
|
|
50
50
|
export declare const sendMessagePortToFileSearchWorker: (port: MessagePort, rpcId?: number) => Promise<void>;
|
|
51
|
+
export declare const sendMessagePortToQuickPickWorker: (port: MessagePort, rpcId?: number) => Promise<void>;
|
|
51
52
|
export declare const sendMessagePortToSearchProcess: (port: MessagePort) => Promise<void>;
|
|
53
|
+
export declare const sendMessagePortToChatNetworkWorker: (port: MessagePort) => Promise<void>;
|
|
52
54
|
export declare const confirm: (message: string, options?: any) => Promise<boolean>;
|
|
53
55
|
export declare const getRecentlyOpened: () => Promise<readonly string[]>;
|
|
54
56
|
export declare const getKeyBindings: () => Promise<readonly any[]>;
|
|
@@ -158,9 +158,16 @@ export const sendMessagePortToFileSearchWorker = async (port, rpcId = 0) => {
|
|
|
158
158
|
const command = 'QuickPick.handleMessagePort';
|
|
159
159
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSearchWorker', port, command, rpcId);
|
|
160
160
|
};
|
|
161
|
+
export const sendMessagePortToQuickPickWorker = async (port, rpcId = 0) => {
|
|
162
|
+
const command = 'QuickPick.handleMessagePort';
|
|
163
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToQuickPickWorker', port, command, rpcId);
|
|
164
|
+
};
|
|
161
165
|
export const sendMessagePortToSearchProcess = async (port) => {
|
|
162
166
|
await invokeAndTransfer('SendMessagePortToElectron.sendMessagePortToElectron', port, 'HandleMessagePortForSearchProcess.handleMessagePortForSearchProcess');
|
|
163
167
|
};
|
|
168
|
+
export const sendMessagePortToChatNetworkWorker = async (port) => {
|
|
169
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToChatNetworkWorker', port, 'HandleMessagePort.handleMessagePort');
|
|
170
|
+
};
|
|
164
171
|
export const confirm = async (message, options) => {
|
|
165
172
|
const result = await invoke('ConfirmPrompt.prompt', message, options);
|
|
166
173
|
return result;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/rpc-registry",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.3.0",
|
|
4
4
|
"description": "Rpc Registry",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@lvce-editor/assert": "^1.5.1",
|
|
16
|
-
"@lvce-editor/constants": "^
|
|
16
|
+
"@lvce-editor/constants": "^5.0.0",
|
|
17
17
|
"@lvce-editor/rpc": "^5.5.0"
|
|
18
18
|
},
|
|
19
19
|
"exports": "./dist/index.js",
|