@nine-lab/nine-mu 0.1.269 → 0.1.270

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
@@ -17141,12 +17141,28 @@ class NineChatManager {
17141
17141
  __privateAdd(this, _notiHandler);
17142
17142
  __publicField(this, "handleChatSubmit", async (userInput) => {
17143
17143
  trace.log(window.location.pathname, __privateGet(this, _owner2).config.packageName);
17144
- const src = await api.post("/nine-mu/source/read", {
17144
+ const currentSrc = await api.post("/nine-mu/source/read", {
17145
17145
  menuUrl: window.location.pathname,
17146
17146
  feProjectName: __privateGet(this, _owner2).config.packageName
17147
17147
  });
17148
- console.log(src);
17149
- return;
17148
+ __privateGet(this, _chatHistory).push({ role: "user", text: userInput });
17149
+ const formattedHistory = __privateGet(this, _chatHistory).map((chat) => {
17150
+ return chat.role === "user" ? `User: ${chat.text}` : `AI: ${chat.text}`;
17151
+ }).join("\n");
17152
+ const currentPath = window.location.pathname;
17153
+ const routes = await this.getRoutes();
17154
+ const unmappedRoutes = await this.getUnmappedRoutes(routes);
17155
+ return await __privateMethod(this, _NineChatManager_instances, callTool_fn).call(this, "system-brain", {
17156
+ base_package: __privateGet(this, _owner2).config.basePackage,
17157
+ // nine.edu
17158
+ user_input: userInput,
17159
+ chat_history: formattedHistory,
17160
+ routes,
17161
+ unmapped_routes: unmappedRoutes,
17162
+ // 미개발된 해당 라우트 정보 객체
17163
+ current_path: currentPath,
17164
+ current_src: currentSrc
17165
+ });
17150
17166
  });
17151
17167
  /** 백엔드 통신 */
17152
17168
  __publicField(this, "analyzeUnmappedRoutes", async (routes) => {
@@ -17505,7 +17521,7 @@ render_fn = function() {
17505
17521
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
17506
17522
  this.shadowRoot.innerHTML = `
17507
17523
  <style>
17508
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.268"}/dist/css/nine-mu.css";
17524
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.269"}/dist/css/nine-mu.css";
17509
17525
  ${customImport}
17510
17526
  </style>
17511
17527
  <div class="wrapper">
@@ -43722,7 +43738,7 @@ class NineDiff extends HTMLElement {
43722
43738
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43723
43739
  this.shadowRoot.innerHTML = `
43724
43740
  <style>
43725
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.268"}/dist/css/nine-mu.css";
43741
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.269"}/dist/css/nine-mu.css";
43726
43742
  ${customImport}
43727
43743
  </style>
43728
43744
 
@@ -43832,7 +43848,7 @@ render_fn2 = function() {
43832
43848
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43833
43849
  this.shadowRoot.innerHTML = `
43834
43850
  <style>
43835
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.268"}/dist/css/nine-mu.css";
43851
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.269"}/dist/css/nine-mu.css";
43836
43852
  ${customImport}
43837
43853
  </style>
43838
43854
 
@@ -44158,7 +44174,7 @@ class ChatMessageBody extends HTMLElement {
44158
44174
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44159
44175
  this.shadowRoot.innerHTML = `
44160
44176
  <style>
44161
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.268"}/dist/css/nine-mu.css";
44177
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.269"}/dist/css/nine-mu.css";
44162
44178
  ${customImport}
44163
44179
  </style>
44164
44180
 
@@ -44252,7 +44268,7 @@ if (!customElements.get("nine-chat-progress")) {
44252
44268
  customElements.define("nine-chat-progress", ProgressMessage);
44253
44269
  }
44254
44270
  const NineMu = {
44255
- version: "0.1.268",
44271
+ version: "0.1.269",
44256
44272
  init: (config2) => {
44257
44273
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
44258
44274
  }