@nine-lab/nine-mu 0.1.78 → 0.1.79
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 +10 -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 +3 -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(routeUrl) {
|
|
91
|
+
if (!routeUrl) return [];
|
|
92
92
|
try {
|
|
93
|
-
const res = await fetch(
|
|
93
|
+
const res = await fetch(routeUrl);
|
|
94
94
|
return await res.json();
|
|
95
95
|
} catch (err) {
|
|
96
96
|
trace.error("Route load fail", err);
|
|
@@ -118,13 +118,14 @@ class NineChat extends HTMLElement {
|
|
|
118
118
|
__privateMethod(this, _NineChat_instances, initInteractions_fn).call(this);
|
|
119
119
|
__privateMethod(this, _NineChat_instances, initActions_fn).call(this);
|
|
120
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";
|
|
121
|
+
const routeUrl = (res == null ? void 0 : res.userDir) + "/" + this.getAttribute("package-name") + "/public/prompts/data/routes.json";
|
|
122
|
+
trace.log(routeUrl);
|
|
122
123
|
const r = await fetch(routeUrl);
|
|
123
124
|
if (!r.ok) {
|
|
124
125
|
throw new Error(`HTTP error! status: ${r.status}`);
|
|
125
126
|
}
|
|
126
127
|
const asisSource = await r.json();
|
|
127
|
-
|
|
128
|
+
trace.log(asisSource);
|
|
128
129
|
__privateSet(this, _routes, await __privateGet(this, _service).fetchRoutes(this.getAttribute("route-url")));
|
|
129
130
|
}
|
|
130
131
|
}
|
|
@@ -191,7 +192,7 @@ render_fn = function() {
|
|
|
191
192
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
192
193
|
this.shadowRoot.innerHTML = `
|
|
193
194
|
<style>
|
|
194
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
195
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.78"}/dist/css/nine-mu.css";
|
|
195
196
|
${customImport}
|
|
196
197
|
</style>
|
|
197
198
|
<div class="wrapper">
|
|
@@ -26407,7 +26408,7 @@ class NineDiff extends HTMLElement {
|
|
|
26407
26408
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
26408
26409
|
this.shadowRoot.innerHTML = `
|
|
26409
26410
|
<style>
|
|
26410
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
26411
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.78"}/dist/css/nine-mu.css";
|
|
26411
26412
|
${customImport}
|
|
26412
26413
|
</style>
|
|
26413
26414
|
|
|
@@ -26517,7 +26518,7 @@ render_fn2 = function() {
|
|
|
26517
26518
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
26518
26519
|
this.shadowRoot.innerHTML = `
|
|
26519
26520
|
<style>
|
|
26520
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
26521
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.78"}/dist/css/nine-mu.css";
|
|
26521
26522
|
${customImport}
|
|
26522
26523
|
</style>
|
|
26523
26524
|
|
|
@@ -26556,7 +26557,7 @@ handleCancel_fn = function() {
|
|
|
26556
26557
|
};
|
|
26557
26558
|
customElements.define("nine-diff-popup", NineDiffPopup);
|
|
26558
26559
|
const NineMu = {
|
|
26559
|
-
version: "0.1.
|
|
26560
|
+
version: "0.1.78",
|
|
26560
26561
|
init: (config) => {
|
|
26561
26562
|
trace.log("🛠️ Nine-Mu Engine initialized", config);
|
|
26562
26563
|
}
|