@nine-lab/nine-mu 0.1.77 → 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 CHANGED
@@ -118,7 +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
- console.log(res);
121
+ const routeUrl = (res == null ? void 0 : res.userDir) + "/" + this.getAttribute("package-name") + "/public/prompts/data/routes.json";
122
+ trace.log(routeUrl);
123
+ const r = await fetch(routeUrl);
124
+ if (!r.ok) {
125
+ throw new Error(`HTTP error! status: ${r.status}`);
126
+ }
127
+ const asisSource = await r.json();
128
+ trace.log(asisSource);
122
129
  __privateSet(this, _routes, await __privateGet(this, _service).fetchRoutes(this.getAttribute("route-url")));
123
130
  }
124
131
  }
@@ -185,7 +192,7 @@ render_fn = function() {
185
192
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
186
193
  this.shadowRoot.innerHTML = `
187
194
  <style>
188
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.76"}/dist/css/nine-mu.css";
195
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.78"}/dist/css/nine-mu.css";
189
196
  ${customImport}
190
197
  </style>
191
198
  <div class="wrapper">
@@ -26401,7 +26408,7 @@ class NineDiff extends HTMLElement {
26401
26408
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
26402
26409
  this.shadowRoot.innerHTML = `
26403
26410
  <style>
26404
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.76"}/dist/css/nine-mu.css";
26411
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.78"}/dist/css/nine-mu.css";
26405
26412
  ${customImport}
26406
26413
  </style>
26407
26414
 
@@ -26511,7 +26518,7 @@ render_fn2 = function() {
26511
26518
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
26512
26519
  this.shadowRoot.innerHTML = `
26513
26520
  <style>
26514
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.76"}/dist/css/nine-mu.css";
26521
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.78"}/dist/css/nine-mu.css";
26515
26522
  ${customImport}
26516
26523
  </style>
26517
26524
 
@@ -26550,7 +26557,7 @@ handleCancel_fn = function() {
26550
26557
  };
26551
26558
  customElements.define("nine-diff-popup", NineDiffPopup);
26552
26559
  const NineMu = {
26553
- version: "0.1.76",
26560
+ version: "0.1.78",
26554
26561
  init: (config) => {
26555
26562
  trace.log("🛠️ Nine-Mu Engine initialized", config);
26556
26563
  }