@nine-lab/nine-mu 0.1.78 → 0.1.80

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 CHANGED
@@ -87,10 +87,10 @@ class NineMuService {
87
87
  /**
88
88
  * 초기 경로 정보 로드
89
89
  */
90
- async fetchRoutes(routeUrl2) {
91
- if (!routeUrl2) return [];
90
+ async fetchRoutes(routeUrl) {
91
+ if (!routeUrl) return [];
92
92
  try {
93
- const res = await fetch(routeUrl2);
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,16 @@ 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);
123
+ const res2 = await api.post("/nine-mu/source/readFile", { path: routeUrl });
124
+ trace.log(res2);
122
125
  const r = await fetch(routeUrl);
123
126
  if (!r.ok) {
124
127
  throw new Error(`HTTP error! status: ${r.status}`);
125
128
  }
126
129
  const asisSource = await r.json();
127
- console.log(asisSource);
130
+ trace.log(asisSource);
128
131
  __privateSet(this, _routes, await __privateGet(this, _service).fetchRoutes(this.getAttribute("route-url")));
129
132
  }
130
133
  }
@@ -191,7 +194,7 @@ render_fn = function() {
191
194
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
192
195
  this.shadowRoot.innerHTML = `
193
196
  <style>
194
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.77"}/dist/css/nine-mu.css";
197
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.79"}/dist/css/nine-mu.css";
195
198
  ${customImport}
196
199
  </style>
197
200
  <div class="wrapper">
@@ -26407,7 +26410,7 @@ class NineDiff extends HTMLElement {
26407
26410
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
26408
26411
  this.shadowRoot.innerHTML = `
26409
26412
  <style>
26410
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.77"}/dist/css/nine-mu.css";
26413
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.79"}/dist/css/nine-mu.css";
26411
26414
  ${customImport}
26412
26415
  </style>
26413
26416
 
@@ -26517,7 +26520,7 @@ render_fn2 = function() {
26517
26520
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
26518
26521
  this.shadowRoot.innerHTML = `
26519
26522
  <style>
26520
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.77"}/dist/css/nine-mu.css";
26523
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.79"}/dist/css/nine-mu.css";
26521
26524
  ${customImport}
26522
26525
  </style>
26523
26526
 
@@ -26556,7 +26559,7 @@ handleCancel_fn = function() {
26556
26559
  };
26557
26560
  customElements.define("nine-diff-popup", NineDiffPopup);
26558
26561
  const NineMu = {
26559
- version: "0.1.77",
26562
+ version: "0.1.79",
26560
26563
  init: (config) => {
26561
26564
  trace.log("🛠️ Nine-Mu Engine initialized", config);
26562
26565
  }