@lvce-editor/rpc-registry 9.2.0 → 9.4.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/ChatToolWorker/ChatToolWorker.d.ts +3 -0
- package/dist/parts/ChatToolWorker/ChatToolWorker.js +8 -0
- package/dist/parts/Main/Main.d.ts +7 -4
- package/dist/parts/Main/Main.js +7 -4
- package/dist/parts/RendererWorker/RendererWorker.d.ts +1 -0
- package/dist/parts/RendererWorker/RendererWorker.js +3 -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
|
+
};
|
|
@@ -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(6005);
|
|
3
|
+
export const save = async (options) => {
|
|
4
|
+
return invoke('ChatStorage.getTools', options);
|
|
5
|
+
};
|
|
6
|
+
export const get = async (options) => {
|
|
7
|
+
return invoke('ChatStorage.executeTool', options);
|
|
8
|
+
};
|
|
@@ -1,4 +1,7 @@
|
|
|
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';
|
|
4
|
+
export * as ChatToolWorker from '../ChatToolWorker/ChatToolWorker.ts';
|
|
2
5
|
export * as ClipBoardProcess from '../ClipBoardProcess/ClipBoardProcess.ts';
|
|
3
6
|
export * as ClipBoardWorker from '../ClipBoardWorker/ClipBoardWorker.ts';
|
|
4
7
|
export * as DebugWorker from '../DebugWorker/DebugWorker.ts';
|
|
@@ -7,22 +10,22 @@ export * as EmbedsProcess from '../EmbedsProcess/EmbedsProcess.ts';
|
|
|
7
10
|
export * as ErrorWorker from '../ErrorWorker/ErrorWorker.ts';
|
|
8
11
|
export * as ExtensionHost from '../ExtensionHost/ExtensionHost.ts';
|
|
9
12
|
export * as ExtensionManagementWorker from '../ExtensionManagementWorker/ExtensionManagementWorker.ts';
|
|
13
|
+
export * as FileSearchWorker from '../FileSearchWorker/FileSearchWorker.ts';
|
|
10
14
|
export * as FileSystemProcess from '../FileSystemProcess/FileSystemProcess.ts';
|
|
11
15
|
export * as FileSystemWorker from '../FileSystemWorker/FileSystemWorker.ts';
|
|
12
16
|
export * as IconThemeWorker from '../IconThemeWorker/IconThemeWorker.ts';
|
|
13
17
|
export * as IpcType from '../IpcType/IpcType.ts';
|
|
18
|
+
export * as MainAreaWorker from '../MainAreaWorker/MainAreaWorker.ts';
|
|
14
19
|
export * as MainProcess from '../MainProcess/MainProcess.ts';
|
|
15
20
|
export * as MarkdownWorker from '../MarkdownWorker/MarkdownWorker.ts';
|
|
16
|
-
export * as
|
|
21
|
+
export * as OpenerWorker from '../OpenerWorker/OpenerWorker.ts';
|
|
22
|
+
export * as PreviewSandBoxWorker from '../PreviewSandBoxWorker/PreviewSandBoxWorker.ts';
|
|
17
23
|
export * as PreviewWorker from '../PreviewWorker/PreviewWorker.ts';
|
|
18
24
|
export * as QuickPickWorker from '../QuickPickWorker/QuickPickWorker.ts';
|
|
19
|
-
export * as PreviewSandBoxWorker from '../PreviewSandBoxWorker/PreviewSandBoxWorker.ts';
|
|
20
25
|
export * as RendererProcess from '../RendererProcess/RendererProcess.ts';
|
|
21
26
|
export * as RendererWorker from '../RendererWorker/RendererWorker.ts';
|
|
22
27
|
export * as SourceControlWorker from '../SourceControlWorker/SourceControlWorker.ts';
|
|
23
|
-
export * as OpenerWorker from '../OpenerWorker/OpenerWorker.ts';
|
|
24
28
|
export * as TextMeasurementWorker from '../TextMeasurementWorker/TextMeasurementWorker.ts';
|
|
25
|
-
export * as MainAreaWorker from '../MainAreaWorker/MainAreaWorker.ts';
|
|
26
29
|
export { RpcId } from '@lvce-editor/constants';
|
|
27
30
|
export * as SearchProcess from '../SearchProcess/SearchProcess.ts';
|
|
28
31
|
export * as SharedProcess from '../SharedProcess/SharedProcess.ts';
|
package/dist/parts/Main/Main.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * as ChatStorageWorker from "../ChatStorageWorker/ChatStorageWorker.js";
|
|
2
|
+
export * as ChatNetworkWorker from "../ChatNetworkWorker/ChatNetworkWorker.js";
|
|
3
|
+
export * as ChatToolWorker from "../ChatToolWorker/ChatToolWorker.js";
|
|
1
4
|
export * as ClipBoardProcess from "../ClipBoardProcess/ClipBoardProcess.js";
|
|
2
5
|
export * as ClipBoardWorker from "../ClipBoardWorker/ClipBoardWorker.js";
|
|
3
6
|
export * as DebugWorker from "../DebugWorker/DebugWorker.js";
|
|
@@ -6,22 +9,22 @@ export * as EmbedsProcess from "../EmbedsProcess/EmbedsProcess.js";
|
|
|
6
9
|
export * as ErrorWorker from "../ErrorWorker/ErrorWorker.js";
|
|
7
10
|
export * as ExtensionHost from "../ExtensionHost/ExtensionHost.js";
|
|
8
11
|
export * as ExtensionManagementWorker from "../ExtensionManagementWorker/ExtensionManagementWorker.js";
|
|
12
|
+
export * as FileSearchWorker from "../FileSearchWorker/FileSearchWorker.js";
|
|
9
13
|
export * as FileSystemProcess from "../FileSystemProcess/FileSystemProcess.js";
|
|
10
14
|
export * as FileSystemWorker from "../FileSystemWorker/FileSystemWorker.js";
|
|
11
15
|
export * as IconThemeWorker from "../IconThemeWorker/IconThemeWorker.js";
|
|
12
16
|
export * as IpcType from "../IpcType/IpcType.js";
|
|
17
|
+
export * as MainAreaWorker from "../MainAreaWorker/MainAreaWorker.js";
|
|
13
18
|
export * as MainProcess from "../MainProcess/MainProcess.js";
|
|
14
19
|
export * as MarkdownWorker from "../MarkdownWorker/MarkdownWorker.js";
|
|
15
|
-
export * as
|
|
20
|
+
export * as OpenerWorker from "../OpenerWorker/OpenerWorker.js";
|
|
21
|
+
export * as PreviewSandBoxWorker from "../PreviewSandBoxWorker/PreviewSandBoxWorker.js";
|
|
16
22
|
export * as PreviewWorker from "../PreviewWorker/PreviewWorker.js";
|
|
17
23
|
export * as QuickPickWorker from "../QuickPickWorker/QuickPickWorker.js";
|
|
18
|
-
export * as PreviewSandBoxWorker from "../PreviewSandBoxWorker/PreviewSandBoxWorker.js";
|
|
19
24
|
export * as RendererProcess from "../RendererProcess/RendererProcess.js";
|
|
20
25
|
export * as RendererWorker from "../RendererWorker/RendererWorker.js";
|
|
21
26
|
export * as SourceControlWorker from "../SourceControlWorker/SourceControlWorker.js";
|
|
22
|
-
export * as OpenerWorker from "../OpenerWorker/OpenerWorker.js";
|
|
23
27
|
export * as TextMeasurementWorker from "../TextMeasurementWorker/TextMeasurementWorker.js";
|
|
24
|
-
export * as MainAreaWorker from "../MainAreaWorker/MainAreaWorker.js";
|
|
25
28
|
export { RpcId } from '@lvce-editor/constants';
|
|
26
29
|
export * as SearchProcess from "../SearchProcess/SearchProcess.js";
|
|
27
30
|
export * as SharedProcess from "../SharedProcess/SharedProcess.js";
|
|
@@ -50,6 +50,7 @@ export declare const resizeViewlet: (uid: number, dimensions: any) => Promise<re
|
|
|
50
50
|
export declare const sendMessagePortToFileSearchWorker: (port: MessagePort, rpcId?: number) => Promise<void>;
|
|
51
51
|
export declare const sendMessagePortToQuickPickWorker: (port: MessagePort, rpcId?: number) => Promise<void>;
|
|
52
52
|
export declare const sendMessagePortToSearchProcess: (port: MessagePort) => Promise<void>;
|
|
53
|
+
export declare const sendMessagePortToChatNetworkWorker: (port: MessagePort) => Promise<void>;
|
|
53
54
|
export declare const confirm: (message: string, options?: any) => Promise<boolean>;
|
|
54
55
|
export declare const getRecentlyOpened: () => Promise<readonly string[]>;
|
|
55
56
|
export declare const getKeyBindings: () => Promise<readonly any[]>;
|
|
@@ -165,6 +165,9 @@ export const sendMessagePortToQuickPickWorker = async (port, rpcId = 0) => {
|
|
|
165
165
|
export const sendMessagePortToSearchProcess = async (port) => {
|
|
166
166
|
await invokeAndTransfer('SendMessagePortToElectron.sendMessagePortToElectron', port, 'HandleMessagePortForSearchProcess.handleMessagePortForSearchProcess');
|
|
167
167
|
};
|
|
168
|
+
export const sendMessagePortToChatNetworkWorker = async (port) => {
|
|
169
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToChatNetworkWorker', port, 'HandleMessagePort.handleMessagePort');
|
|
170
|
+
};
|
|
168
171
|
export const confirm = async (message, options) => {
|
|
169
172
|
const result = await invoke('ConfirmPrompt.prompt', message, options);
|
|
170
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.4.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",
|