@nine-lab/nine-mu 0.1.214 → 0.1.216

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
@@ -17392,11 +17392,14 @@ initActions_fn = function() {
17392
17392
  trace.log(result);
17393
17393
  try {
17394
17394
  const rawText = (_b = (_a2 = result == null ? void 0 : result.content) == null ? void 0 : _a2[0]) == null ? void 0 : _b.text;
17395
- const parsedData = JSON.parse(rawText);
17396
- const aiMessage = parsedData.message || "처리가 완료되었습니다.";
17397
- __privateGet(this, _manager).addChatHistory(aiMessage);
17398
- __privateGet(this, _$nineChatMessage).add("ai", aiMessage);
17399
- } catch (parseErr) {
17395
+ trace.log(rawText);
17396
+ const parsed = JSON.parse(rawText);
17397
+ __privateGet(this, _manager).addChatHistory(parsed.message);
17398
+ __privateGet(this, _$nineChatMessage).add("ai", parsed.message);
17399
+ trace.log(parsed.action);
17400
+ trace.log(parsed.data);
17401
+ } catch (err2) {
17402
+ trace.error(err2);
17400
17403
  const fallbackMessage = ((_d = (_c = result == null ? void 0 : result.content) == null ? void 0 : _c[0]) == null ? void 0 : _d.text) || "응답 데이터를 해석하지 못했습니다.";
17401
17404
  __privateGet(this, _$nineChatMessage).add("ai", fallbackMessage);
17402
17405
  }
@@ -17409,7 +17412,7 @@ render_fn = function() {
17409
17412
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
17410
17413
  this.shadowRoot.innerHTML = `
17411
17414
  <style>
17412
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.213"}/dist/css/nine-mu.css";
17415
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.215"}/dist/css/nine-mu.css";
17413
17416
  ${customImport}
17414
17417
  </style>
17415
17418
  <div class="wrapper">
@@ -43628,7 +43631,7 @@ class NineDiff extends HTMLElement {
43628
43631
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43629
43632
  this.shadowRoot.innerHTML = `
43630
43633
  <style>
43631
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.213"}/dist/css/nine-mu.css";
43634
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.215"}/dist/css/nine-mu.css";
43632
43635
  ${customImport}
43633
43636
  </style>
43634
43637
 
@@ -43738,7 +43741,7 @@ render_fn2 = function() {
43738
43741
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43739
43742
  this.shadowRoot.innerHTML = `
43740
43743
  <style>
43741
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.213"}/dist/css/nine-mu.css";
43744
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.215"}/dist/css/nine-mu.css";
43742
43745
  ${customImport}
43743
43746
  </style>
43744
43747
 
@@ -44065,7 +44068,7 @@ class ChatMessageBody extends HTMLElement {
44065
44068
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44066
44069
  this.shadowRoot.innerHTML = `
44067
44070
  <style>
44068
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.213"}/dist/css/nine-mu.css";
44071
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.215"}/dist/css/nine-mu.css";
44069
44072
  ${customImport}
44070
44073
  </style>
44071
44074
 
@@ -44159,7 +44162,7 @@ if (!customElements.get("nine-chat-progress")) {
44159
44162
  customElements.define("nine-chat-progress", ProgressMessage);
44160
44163
  }
44161
44164
  const NineMu = {
44162
- version: "0.1.213",
44165
+ version: "0.1.215",
44163
44166
  init: (config2) => {
44164
44167
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
44165
44168
  }