@nine-lab/nine-mu 0.1.79 → 0.1.81
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/nine-mu.js +7 -9
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineChat.js +4 -5
package/dist/nine-mu.js
CHANGED
|
@@ -120,11 +120,9 @@ class NineChat extends HTMLElement {
|
|
|
120
120
|
const res = await api.post("/nine-mu/config/get", {});
|
|
121
121
|
const routeUrl = (res == null ? void 0 : res.userDir) + "/" + this.getAttribute("package-name") + "/public/prompts/data/routes.json";
|
|
122
122
|
trace.log(routeUrl);
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
const asisSource = await r.json();
|
|
123
|
+
const res2 = await api.post("/nine-mu/source/readFile", { path: routeUrl });
|
|
124
|
+
trace.log(res2);
|
|
125
|
+
const asisSource = res2.contents;
|
|
128
126
|
trace.log(asisSource);
|
|
129
127
|
__privateSet(this, _routes, await __privateGet(this, _service).fetchRoutes(this.getAttribute("route-url")));
|
|
130
128
|
}
|
|
@@ -192,7 +190,7 @@ render_fn = function() {
|
|
|
192
190
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
193
191
|
this.shadowRoot.innerHTML = `
|
|
194
192
|
<style>
|
|
195
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
193
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.80"}/dist/css/nine-mu.css";
|
|
196
194
|
${customImport}
|
|
197
195
|
</style>
|
|
198
196
|
<div class="wrapper">
|
|
@@ -26408,7 +26406,7 @@ class NineDiff extends HTMLElement {
|
|
|
26408
26406
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
26409
26407
|
this.shadowRoot.innerHTML = `
|
|
26410
26408
|
<style>
|
|
26411
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
26409
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.80"}/dist/css/nine-mu.css";
|
|
26412
26410
|
${customImport}
|
|
26413
26411
|
</style>
|
|
26414
26412
|
|
|
@@ -26518,7 +26516,7 @@ render_fn2 = function() {
|
|
|
26518
26516
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
26519
26517
|
this.shadowRoot.innerHTML = `
|
|
26520
26518
|
<style>
|
|
26521
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
26519
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.80"}/dist/css/nine-mu.css";
|
|
26522
26520
|
${customImport}
|
|
26523
26521
|
</style>
|
|
26524
26522
|
|
|
@@ -26557,7 +26555,7 @@ handleCancel_fn = function() {
|
|
|
26557
26555
|
};
|
|
26558
26556
|
customElements.define("nine-diff-popup", NineDiffPopup);
|
|
26559
26557
|
const NineMu = {
|
|
26560
|
-
version: "0.1.
|
|
26558
|
+
version: "0.1.80",
|
|
26561
26559
|
init: (config) => {
|
|
26562
26560
|
trace.log("🛠️ Nine-Mu Engine initialized", config);
|
|
26563
26561
|
}
|