@lvce-editor/rpc-registry 9.19.0 → 9.21.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/AuthProcess/AuthProcess.d.ts +4 -0
- package/dist/parts/AuthProcess/AuthProcess.js +11 -0
- package/dist/parts/ChatViewModelWorker/ChatViewModelWorker.d.ts +3 -0
- package/dist/parts/ChatViewModelWorker/ChatViewModelWorker.js +8 -0
- package/dist/parts/DiffWorker/DiffWorker.d.ts +3 -0
- package/dist/parts/DiffWorker/DiffWorker.js +8 -0
- package/dist/parts/Main/Main.d.ts +3 -0
- package/dist/parts/Main/Main.js +3 -0
- package/dist/parts/RendererWorker/RendererWorker.d.ts +2 -1
- package/dist/parts/RendererWorker/RendererWorker.js +5 -2
- package/package.json +2 -2
|
@@ -0,0 +1,4 @@
|
|
|
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 createOauthServer: (options: any) => Promise<any>;
|
|
3
|
+
export declare const disposeOauthServer: (options: any) => Promise<any>;
|
|
4
|
+
export declare const getCode: () => Promise<void>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as RpcFactory from "../RpcFactory/RpcFactory.js";
|
|
2
|
+
export const { dispose, invoke, invokeAndTransfer, registerMockRpc, set } = RpcFactory.create(6040);
|
|
3
|
+
export const createOauthServer = async (options) => {
|
|
4
|
+
return invoke('OAuthServer.create', options);
|
|
5
|
+
};
|
|
6
|
+
export const disposeOauthServer = async (options) => {
|
|
7
|
+
return invoke('OAuthServer.dispose', options);
|
|
8
|
+
};
|
|
9
|
+
export const getCode = async () => {
|
|
10
|
+
return invoke('OAuthServer.getCode');
|
|
11
|
+
};
|
|
@@ -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(6022);
|
|
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 execute: (name: string, rawArguments: unknown, options: any) => Promise<any>;
|
|
3
|
+
export declare const getTools: () => Promise<readonly any[]>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as RpcFactory from "../RpcFactory/RpcFactory.js";
|
|
2
|
+
export const { dispose, invoke, invokeAndTransfer, registerMockRpc, set } = RpcFactory.create(218_933);
|
|
3
|
+
export const execute = async (name, rawArguments, options) => {
|
|
4
|
+
return invoke('Diff.execute', name, rawArguments, options);
|
|
5
|
+
};
|
|
6
|
+
export const getTools = async () => {
|
|
7
|
+
return invoke('Diff.getTools');
|
|
8
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { Rpc } from '@lvce-editor/rpc';
|
|
2
2
|
export * as AuthWorker from '../AuthWorker/AuthWorker.ts';
|
|
3
|
+
export * as AuthProcess from '../AuthProcess/AuthProcess.ts';
|
|
3
4
|
export * as BlobWorker from '../BlobWorker/BlobWorker.ts';
|
|
4
5
|
export * as ChatCoordinatorWorker from '../ChatCoordinatorWorker/ChatCoordinatorWorker.ts';
|
|
5
6
|
export * as ChatDebugWorker from '../ChatDebugWorker/ChatDebugWorker.ts';
|
|
@@ -8,9 +9,11 @@ export * as ChatMessageParsingWorker from '../ChatMessageParsingWorker/ChatMessa
|
|
|
8
9
|
export * as ChatNetworkWorker from '../ChatNetworkWorker/ChatNetworkWorker.ts';
|
|
9
10
|
export * as ChatStorageWorker from '../ChatStorageWorker/ChatStorageWorker.ts';
|
|
10
11
|
export * as ChatToolWorker from '../ChatToolWorker/ChatToolWorker.ts';
|
|
12
|
+
export * as ChatViewModelWorker from '../ChatViewModelWorker/ChatViewModelWorker.ts';
|
|
11
13
|
export * as ClipBoardProcess from '../ClipBoardProcess/ClipBoardProcess.ts';
|
|
12
14
|
export * as ClipBoardWorker from '../ClipBoardWorker/ClipBoardWorker.ts';
|
|
13
15
|
export * as DebugWorker from '../DebugWorker/DebugWorker.ts';
|
|
16
|
+
export * as DiffWorker from '../DiffWorker/DiffWorker.ts';
|
|
14
17
|
export * as EditorWorker from '../EditorWorker/EditorWorker.ts';
|
|
15
18
|
export * as EmbedsProcess from '../EmbedsProcess/EmbedsProcess.ts';
|
|
16
19
|
export * as ErrorWorker from '../ErrorWorker/ErrorWorker.ts';
|
package/dist/parts/Main/Main.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as AuthWorker from "../AuthWorker/AuthWorker.js";
|
|
2
|
+
export * as AuthProcess from "../AuthProcess/AuthProcess.js";
|
|
2
3
|
export * as BlobWorker from "../BlobWorker/BlobWorker.js";
|
|
3
4
|
export * as ChatCoordinatorWorker from "../ChatCoordinatorWorker/ChatCoordinatorWorker.js";
|
|
4
5
|
export * as ChatDebugWorker from "../ChatDebugWorker/ChatDebugWorker.js";
|
|
@@ -7,9 +8,11 @@ export * as ChatMessageParsingWorker from "../ChatMessageParsingWorker/ChatMessa
|
|
|
7
8
|
export * as ChatNetworkWorker from "../ChatNetworkWorker/ChatNetworkWorker.js";
|
|
8
9
|
export * as ChatStorageWorker from "../ChatStorageWorker/ChatStorageWorker.js";
|
|
9
10
|
export * as ChatToolWorker from "../ChatToolWorker/ChatToolWorker.js";
|
|
11
|
+
export * as ChatViewModelWorker from "../ChatViewModelWorker/ChatViewModelWorker.js";
|
|
10
12
|
export * as ClipBoardProcess from "../ClipBoardProcess/ClipBoardProcess.js";
|
|
11
13
|
export * as ClipBoardWorker from "../ClipBoardWorker/ClipBoardWorker.js";
|
|
12
14
|
export * as DebugWorker from "../DebugWorker/DebugWorker.js";
|
|
15
|
+
export * as DiffWorker from "../DiffWorker/DiffWorker.js";
|
|
13
16
|
export * as EditorWorker from "../EditorWorker/EditorWorker.js";
|
|
14
17
|
export * as EmbedsProcess from "../EmbedsProcess/EmbedsProcess.js";
|
|
15
18
|
export * as ErrorWorker from "../ErrorWorker/ErrorWorker.js";
|
|
@@ -57,9 +57,10 @@ export declare const resizeViewlet: (uid: number, dimensions: any) => Promise<re
|
|
|
57
57
|
export declare const sendMessagePortToFileSearchWorker: (port: MessagePort, rpcId?: number) => Promise<void>;
|
|
58
58
|
export declare const sendMessagePortToQuickPickWorker: (port: MessagePort, rpcId?: number) => Promise<void>;
|
|
59
59
|
export declare const sendMessagePortToSearchProcess: (port: MessagePort) => Promise<void>;
|
|
60
|
+
export declare const sendMessagePortToChatViewModel: (port: MessagePort) => Promise<void>;
|
|
60
61
|
export declare const sendMessagePortToChatNetworkWorker: (port: MessagePort) => Promise<void>;
|
|
61
62
|
export declare const sendMessagePortToChatToolWorker: (port: MessagePort) => Promise<void>;
|
|
62
|
-
export declare const sendMessagePortToChatStorageWorker: (port: MessagePort) => Promise<void>;
|
|
63
|
+
export declare const sendMessagePortToChatStorageWorker: (port: MessagePort, rpcId?: number) => Promise<void>;
|
|
63
64
|
export declare const sendMessagePortToChatDebugViewWorker: (port: MessagePort) => Promise<void>;
|
|
64
65
|
export declare const confirm: (message: string, options?: any) => Promise<boolean>;
|
|
65
66
|
export declare const getRecentlyOpened: () => Promise<readonly string[]>;
|
|
@@ -196,14 +196,17 @@ export const sendMessagePortToQuickPickWorker = async (port, rpcId = 0) => {
|
|
|
196
196
|
export const sendMessagePortToSearchProcess = async (port) => {
|
|
197
197
|
await invokeAndTransfer('SendMessagePortToElectron.sendMessagePortToElectron', port, 'HandleMessagePortForSearchProcess.handleMessagePortForSearchProcess');
|
|
198
198
|
};
|
|
199
|
+
export const sendMessagePortToChatViewModel = async (port) => {
|
|
200
|
+
await invokeAndTransfer('SendMessagePortToElectron.sendMessagePortToChatViewModel', port, 'ViewModel.handleMessagePort');
|
|
201
|
+
};
|
|
199
202
|
export const sendMessagePortToChatNetworkWorker = async (port) => {
|
|
200
203
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToChatNetworkWorker', port, 'HandleMessagePort.handleMessagePort');
|
|
201
204
|
};
|
|
202
205
|
export const sendMessagePortToChatToolWorker = async (port) => {
|
|
203
206
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToChatToolWorker', port, 'HandleMessagePort.handleMessagePort');
|
|
204
207
|
};
|
|
205
|
-
export const sendMessagePortToChatStorageWorker = async (port) => {
|
|
206
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToChatStorageWorker', port, 'HandleMessagePort.handleMessagePort');
|
|
208
|
+
export const sendMessagePortToChatStorageWorker = async (port, rpcId) => {
|
|
209
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToChatStorageWorker', port, 'HandleMessagePort.handleMessagePort', rpcId);
|
|
207
210
|
};
|
|
208
211
|
export const sendMessagePortToChatDebugViewWorker = async (port) => {
|
|
209
212
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToChatDebugViewWorker', port, 'HandleMessagePort.handleMessagePort');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/rpc-registry",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.21.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": "^5.
|
|
16
|
+
"@lvce-editor/constants": "^5.11.0",
|
|
17
17
|
"@lvce-editor/rpc": "^6.4.0"
|
|
18
18
|
},
|
|
19
19
|
"exports": "./dist/index.js",
|