@leuria/docusaurus 0.1.0 → 0.1.1
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/client/index.js +3 -3
- package/package.json +6 -6
package/dist/client/index.js
CHANGED
|
@@ -26,15 +26,15 @@ var leuria = new Promise((resolve) => {
|
|
|
26
26
|
started = resolve;
|
|
27
27
|
});
|
|
28
28
|
async function start(settings) {
|
|
29
|
-
const [{ bridge,
|
|
29
|
+
const [{ bridge, promptAPI, createAI, server }, { setDefaultAppearance, setDefaultClient }, { createDocs, setupDocs }] = await Promise.all([
|
|
30
30
|
import("@leuria/client"),
|
|
31
31
|
import("@leuria/connect"),
|
|
32
32
|
import("@leuria/docs")
|
|
33
33
|
]);
|
|
34
|
-
const providers = [bridge({ app: settings.app, needs: settings.needs }),
|
|
34
|
+
const providers = [bridge({ app: settings.app, needs: settings.needs }), promptAPI()];
|
|
35
35
|
if (loadEmbedder) providers.push(await loadEmbedder());
|
|
36
36
|
if (settings.server) providers.push(server({ url: settings.server.url }));
|
|
37
|
-
const ai =
|
|
37
|
+
const ai = createAI({ providers, fallback: settings.fallback });
|
|
38
38
|
setDefaultClient(ai);
|
|
39
39
|
followTheme(setDefaultAppearance);
|
|
40
40
|
const docs = createDocs(ai, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leuria/docusaurus",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Ask AI for any Docusaurus site, on the reader's own AI: no API keys, nothing to pay per question. Plus the Connect button and WebMCP tools for the browser's agents.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "git+https://github.com/leur-ia/leuria.git",
|
|
10
10
|
"directory": "packages/docusaurus"
|
|
11
11
|
},
|
|
12
|
-
"homepage": "https://leuria.dev",
|
|
12
|
+
"homepage": "https://leuria.dev/docs/developers/docusaurus",
|
|
13
13
|
"keywords": [
|
|
14
14
|
"docusaurus",
|
|
15
15
|
"docusaurus-plugin",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@leuria/
|
|
38
|
-
"@leuria/connect": "^0.1.
|
|
39
|
-
"@leuria/
|
|
37
|
+
"@leuria/docs": "^0.1.0",
|
|
38
|
+
"@leuria/connect": "^0.1.4",
|
|
39
|
+
"@leuria/client": "^0.1.4"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@docusaurus/core": "^3.6.0",
|
|
43
|
-
"@leuria/web-embed": "^0.1.
|
|
43
|
+
"@leuria/web-embed": "^0.1.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"@leuria/web-embed": {
|