#255: Read plugins manifest from CDN
This commit is contained in:
parent
b9dcdb737c
commit
6bf5b7d906
@ -65,7 +65,10 @@ export async function getActive() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
const plgList = await window.pluggableElectronIpc.getActive();
|
const plgList = await window.pluggableElectronIpc?.getActive() ??
|
||||||
|
import(
|
||||||
|
/* webpackIgnore: true */ PLUGIN_CATALOG + `?t=${Date.now()}`
|
||||||
|
).then((data) => data.default.filter((e) => e.supportCloudNative));
|
||||||
return plgList.map(
|
return plgList.map(
|
||||||
(plugin) =>
|
(plugin) =>
|
||||||
new Plugin(
|
new Plugin(
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
"module": "dist/cjs/module.js",
|
"module": "dist/cjs/module.js",
|
||||||
"author": "Jan <service@jan.ai>",
|
"author": "Jan <service@jan.ai>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"supportCloudNative": true,
|
||||||
|
"url": "/plugins/data-plugin/index.js",
|
||||||
"activationPoints": [
|
"activationPoints": [
|
||||||
"init"
|
"init"
|
||||||
],
|
],
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
"module": "dist/module.js",
|
"module": "dist/module.js",
|
||||||
"author": "Jan <service@jan.ai>",
|
"author": "Jan <service@jan.ai>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"supportCloudNative": true,
|
||||||
|
"url": "/plugins/inference-plugin/index.js",
|
||||||
"activationPoints": [
|
"activationPoints": [
|
||||||
"init"
|
"init"
|
||||||
],
|
],
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
"module": "dist/module.js",
|
"module": "dist/module.js",
|
||||||
"author": "Jan <service@jan.ai>",
|
"author": "Jan <service@jan.ai>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"supportCloudNative": true,
|
||||||
|
"url": "/plugins/model-management-plugin/index.js",
|
||||||
"activationPoints": [
|
"activationPoints": [
|
||||||
"init"
|
"init"
|
||||||
],
|
],
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
"module": "dist/module.js",
|
"module": "dist/module.js",
|
||||||
"author": "Jan <service@jan.ai>",
|
"author": "Jan <service@jan.ai>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"supportCloudNative": true,
|
||||||
|
"url": "/plugins/monitoring-plugin/index.js",
|
||||||
"activationPoints": [
|
"activationPoints": [
|
||||||
"init"
|
"init"
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user