@nine-lab/nine-mu 0.1.76 → 0.1.78
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 +15 -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 +13 -2
package/dist/nine-mu.js
CHANGED
|
@@ -87,10 +87,10 @@ class NineMuService {
|
|
|
87
87
|
/**
|
|
88
88
|
* 초기 경로 정보 로드
|
|
89
89
|
*/
|
|
90
|
-
async fetchRoutes(
|
|
91
|
-
if (!
|
|
90
|
+
async fetchRoutes(routeUrl2) {
|
|
91
|
+
if (!routeUrl2) return [];
|
|
92
92
|
try {
|
|
93
|
-
const res = await fetch(
|
|
93
|
+
const res = await fetch(routeUrl2);
|
|
94
94
|
return await res.json();
|
|
95
95
|
} catch (err) {
|
|
96
96
|
trace.error("Route load fail", err);
|
|
@@ -117,8 +117,14 @@ class NineChat extends HTMLElement {
|
|
|
117
117
|
__privateMethod(this, _NineChat_instances, render_fn).call(this);
|
|
118
118
|
__privateMethod(this, _NineChat_instances, initInteractions_fn).call(this);
|
|
119
119
|
__privateMethod(this, _NineChat_instances, initActions_fn).call(this);
|
|
120
|
-
const res = await api.
|
|
121
|
-
|
|
120
|
+
const res = await api.post("/nine-mu/config/get", {});
|
|
121
|
+
(res == null ? void 0 : res.userDir) + "/" + this.getAttribute("package-name") + "/public/prompts/data/routes.json";
|
|
122
|
+
const r = await fetch(routeUrl);
|
|
123
|
+
if (!r.ok) {
|
|
124
|
+
throw new Error(`HTTP error! status: ${r.status}`);
|
|
125
|
+
}
|
|
126
|
+
const asisSource = await r.json();
|
|
127
|
+
console.log(asisSource);
|
|
122
128
|
__privateSet(this, _routes, await __privateGet(this, _service).fetchRoutes(this.getAttribute("route-url")));
|
|
123
129
|
}
|
|
124
130
|
}
|
|
@@ -185,7 +191,7 @@ render_fn = function() {
|
|
|
185
191
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
186
192
|
this.shadowRoot.innerHTML = `
|
|
187
193
|
<style>
|
|
188
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
194
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.77"}/dist/css/nine-mu.css";
|
|
189
195
|
${customImport}
|
|
190
196
|
</style>
|
|
191
197
|
<div class="wrapper">
|
|
@@ -26401,7 +26407,7 @@ class NineDiff extends HTMLElement {
|
|
|
26401
26407
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
26402
26408
|
this.shadowRoot.innerHTML = `
|
|
26403
26409
|
<style>
|
|
26404
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
26410
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.77"}/dist/css/nine-mu.css";
|
|
26405
26411
|
${customImport}
|
|
26406
26412
|
</style>
|
|
26407
26413
|
|
|
@@ -26511,7 +26517,7 @@ render_fn2 = function() {
|
|
|
26511
26517
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
26512
26518
|
this.shadowRoot.innerHTML = `
|
|
26513
26519
|
<style>
|
|
26514
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
26520
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.77"}/dist/css/nine-mu.css";
|
|
26515
26521
|
${customImport}
|
|
26516
26522
|
</style>
|
|
26517
26523
|
|
|
@@ -26550,7 +26556,7 @@ handleCancel_fn = function() {
|
|
|
26550
26556
|
};
|
|
26551
26557
|
customElements.define("nine-diff-popup", NineDiffPopup);
|
|
26552
26558
|
const NineMu = {
|
|
26553
|
-
version: "0.1.
|
|
26559
|
+
version: "0.1.77",
|
|
26554
26560
|
init: (config) => {
|
|
26555
26561
|
trace.log("🛠️ Nine-Mu Engine initialized", config);
|
|
26556
26562
|
}
|