@lvce-editor/chat-view 6.14.0 → 6.15.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/chatViewWorkerMain.js +15 -14
- package/package.json +1 -1
|
@@ -1118,14 +1118,14 @@ const create$2 = rpcId => {
|
|
|
1118
1118
|
};
|
|
1119
1119
|
|
|
1120
1120
|
const {
|
|
1121
|
-
invoke: invoke$
|
|
1121
|
+
invoke: invoke$6,
|
|
1122
1122
|
set: set$7
|
|
1123
1123
|
} = create$2(6007);
|
|
1124
1124
|
const getMathBlockDom = async node => {
|
|
1125
|
-
return invoke$
|
|
1125
|
+
return invoke$6('ChatMath.getMathBlockDom', node);
|
|
1126
1126
|
};
|
|
1127
1127
|
const getMathInlineDom = async node => {
|
|
1128
|
-
return invoke$
|
|
1128
|
+
return invoke$6('ChatMath.getMathInlineDom', node);
|
|
1129
1129
|
};
|
|
1130
1130
|
|
|
1131
1131
|
const Button$2 = 'button';
|
|
@@ -1218,23 +1218,27 @@ const SetPatches = 'Viewlet.setPatches';
|
|
|
1218
1218
|
const FocusChatInput = 8000;
|
|
1219
1219
|
|
|
1220
1220
|
const {
|
|
1221
|
-
invoke: invoke$
|
|
1221
|
+
invoke: invoke$5,
|
|
1222
1222
|
set: set$6
|
|
1223
1223
|
} = create$2(ChatNetworkWorker);
|
|
1224
1224
|
|
|
1225
1225
|
const {
|
|
1226
|
-
invoke: invoke$
|
|
1226
|
+
invoke: invoke$4,
|
|
1227
1227
|
set: set$5
|
|
1228
1228
|
} = create$2(ChatToolWorker);
|
|
1229
1229
|
|
|
1230
1230
|
const {
|
|
1231
|
-
invoke: invoke$
|
|
1231
|
+
invoke: invoke$3,
|
|
1232
1232
|
set: set$4
|
|
1233
1233
|
} = create$2(ExtensionHostWorker);
|
|
1234
1234
|
|
|
1235
1235
|
const {
|
|
1236
|
+
invoke: invoke$2,
|
|
1236
1237
|
set: set$3
|
|
1237
1238
|
} = create$2(OpenerWorker);
|
|
1239
|
+
const openExternal = async url => {
|
|
1240
|
+
return invoke$2('Open.openExternal', url);
|
|
1241
|
+
};
|
|
1238
1242
|
|
|
1239
1243
|
const {
|
|
1240
1244
|
invoke: invoke$1,
|
|
@@ -1275,9 +1279,6 @@ const activateByEvent$1 = (event, assetDir, platform) => {
|
|
|
1275
1279
|
const getPreference = async key => {
|
|
1276
1280
|
return await invoke$1('Preferences.get', key);
|
|
1277
1281
|
};
|
|
1278
|
-
const openExternal = async uri => {
|
|
1279
|
-
await invoke$1('Open.openExternal', uri);
|
|
1280
|
-
};
|
|
1281
1282
|
const measureTextBlockHeight$1 = async (actualInput, fontFamily, fontSize, lineHeightPx, width) => {
|
|
1282
1283
|
return invoke$1(`MeasureTextHeight.measureTextBlockHeight`, actualInput, fontFamily, fontSize, lineHeightPx, width);
|
|
1283
1284
|
};
|
|
@@ -3364,10 +3365,10 @@ const getAiResponse$1 = async options => {
|
|
|
3364
3365
|
};
|
|
3365
3366
|
|
|
3366
3367
|
const execute = async (name, rawArguments, options) => {
|
|
3367
|
-
return invoke$
|
|
3368
|
+
return invoke$4('ChatTool.execute', name, rawArguments, options);
|
|
3368
3369
|
};
|
|
3369
3370
|
const getTools = async () => {
|
|
3370
|
-
return invoke$
|
|
3371
|
+
return invoke$4('ChatTool.getTools');
|
|
3371
3372
|
};
|
|
3372
3373
|
|
|
3373
3374
|
const stringifyToolOutput = output => {
|
|
@@ -3867,7 +3868,7 @@ const executeProvider = async ({
|
|
|
3867
3868
|
}) => {
|
|
3868
3869
|
await activateByEvent(event, assetDir, platform);
|
|
3869
3870
|
// @ts-ignore
|
|
3870
|
-
const result = invoke$
|
|
3871
|
+
const result = invoke$3(method, ...params);
|
|
3871
3872
|
return result;
|
|
3872
3873
|
};
|
|
3873
3874
|
|
|
@@ -3999,10 +4000,10 @@ const getOpenApiApiEndpoint = openApiApiBaseUrl => {
|
|
|
3999
4000
|
};
|
|
4000
4001
|
|
|
4001
4002
|
const makeApiRequest = async options => {
|
|
4002
|
-
return invoke$
|
|
4003
|
+
return invoke$5('ChatNetwork.makeApiRequest', options);
|
|
4003
4004
|
};
|
|
4004
4005
|
const makeStreamingApiRequest = async options => {
|
|
4005
|
-
return invoke$
|
|
4006
|
+
return invoke$5('ChatNetwork.makeStreamingApiRequest', options);
|
|
4006
4007
|
};
|
|
4007
4008
|
|
|
4008
4009
|
const getTextContent = content => {
|