@nine-lab/nine-mu 0.1.263 → 0.1.265

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
@@ -17144,10 +17144,16 @@ class NineChatManager {
17144
17144
  return chat.role === "user" ? `User: ${chat.text}` : `AI: ${chat.text}`;
17145
17145
  }).join("\n");
17146
17146
  const currentPath = window.location.pathname;
17147
+ const routes = await this.getRoutes();
17148
+ const unmappedRoutes = await this.getUnmappedRoutes(routes);
17147
17149
  return await __privateMethod(this, _NineChatManager_instances, callTool_fn).call(this, "system-brain", {
17150
+ base_package: __privateGet(this, _owner2).config.basePackage,
17151
+ // nine.edu
17148
17152
  user_input: userInput,
17149
17153
  chat_history: formattedHistory,
17150
- routes: await this.getRoutes(),
17154
+ routes,
17155
+ unmapped_routes: unmappedRoutes,
17156
+ // 미개발된 해당 라우트 정보 객체
17151
17157
  current_path: currentPath
17152
17158
  });
17153
17159
  });
@@ -17169,7 +17175,7 @@ class NineChatManager {
17169
17175
  base_package: __privateGet(this, _owner2).config.basePackage,
17170
17176
  // nine.edu
17171
17177
  //chat_history: "",
17172
- routes: unmappedRoutes
17178
+ unmapped_routes: unmappedRoutes
17173
17179
  // 미개발된 해당 라우트 정보 객체
17174
17180
  //current_path: route.path, // 현재 생성 기준 패스 명시
17175
17181
  });
@@ -17199,6 +17205,13 @@ class NineChatManager {
17199
17205
  const res = await fetch(__privateGet(this, _routeUrl));
17200
17206
  return res.ok ? await res.json() : [];
17201
17207
  }
17208
+ async getUnmappedRoutes(routes) {
17209
+ var _a2;
17210
+ const res = await api.post("/nine-mu/config/getUnmappedRoutes", {
17211
+ routes
17212
+ });
17213
+ return ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.unmappedRoutes) || (res == null ? void 0 : res.unmappedRoutes) || [];
17214
+ }
17202
17215
  addChatHistory(message) {
17203
17216
  __privateGet(this, _chatHistory).push({ role: "ai", text: message });
17204
17217
  }
@@ -17500,7 +17513,7 @@ render_fn = function() {
17500
17513
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
17501
17514
  this.shadowRoot.innerHTML = `
17502
17515
  <style>
17503
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.262"}/dist/css/nine-mu.css";
17516
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.264"}/dist/css/nine-mu.css";
17504
17517
  ${customImport}
17505
17518
  </style>
17506
17519
  <div class="wrapper">
@@ -43717,7 +43730,7 @@ class NineDiff extends HTMLElement {
43717
43730
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43718
43731
  this.shadowRoot.innerHTML = `
43719
43732
  <style>
43720
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.262"}/dist/css/nine-mu.css";
43733
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.264"}/dist/css/nine-mu.css";
43721
43734
  ${customImport}
43722
43735
  </style>
43723
43736
 
@@ -43827,7 +43840,7 @@ render_fn2 = function() {
43827
43840
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43828
43841
  this.shadowRoot.innerHTML = `
43829
43842
  <style>
43830
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.262"}/dist/css/nine-mu.css";
43843
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.264"}/dist/css/nine-mu.css";
43831
43844
  ${customImport}
43832
43845
  </style>
43833
43846
 
@@ -44153,7 +44166,7 @@ class ChatMessageBody extends HTMLElement {
44153
44166
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44154
44167
  this.shadowRoot.innerHTML = `
44155
44168
  <style>
44156
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.262"}/dist/css/nine-mu.css";
44169
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.264"}/dist/css/nine-mu.css";
44157
44170
  ${customImport}
44158
44171
  </style>
44159
44172
 
@@ -44247,7 +44260,7 @@ if (!customElements.get("nine-chat-progress")) {
44247
44260
  customElements.define("nine-chat-progress", ProgressMessage);
44248
44261
  }
44249
44262
  const NineMu = {
44250
- version: "0.1.262",
44263
+ version: "0.1.264",
44251
44264
  init: (config2) => {
44252
44265
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
44253
44266
  }