@nine-lab/nine-mu 0.1.264 → 0.1.266

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
@@ -17139,21 +17139,13 @@ class NineChatManager {
17139
17139
  // 💡 이전 대화들을 저장할 메모리 창고
17140
17140
  __privateAdd(this, _notiHandler);
17141
17141
  __publicField(this, "handleChatSubmit", async (userInput) => {
17142
- __privateGet(this, _chatHistory).push({ role: "user", text: userInput });
17143
- const formattedHistory = __privateGet(this, _chatHistory).map((chat) => {
17144
- return chat.role === "user" ? `User: ${chat.text}` : `AI: ${chat.text}`;
17145
- }).join("\n");
17146
- const currentPath = window.location.pathname;
17147
- const routes = await this.getRoutes();
17148
- const unmappedRoutes = await this.getUnmappedRoutes(routes);
17149
- return await __privateMethod(this, _NineChatManager_instances, callTool_fn).call(this, "system-brain", {
17150
- user_input: userInput,
17151
- chat_history: formattedHistory,
17152
- routes,
17153
- unmapped_routes: unmappedRoutes,
17154
- // 미개발된 해당 라우트 정보 객체
17155
- current_path: currentPath
17142
+ trace.log(window.location.pathname, __privateGet(this, _owner2).config.packageName);
17143
+ const src = await api.post("/nine-ai/source/read", {
17144
+ menuUrl: window.location.pathname,
17145
+ feProjectName: __privateGet(this, _owner2).config.packageName
17156
17146
  });
17147
+ console.log(src);
17148
+ return;
17157
17149
  });
17158
17150
  /** 백엔드 통신 */
17159
17151
  __publicField(this, "analyzeUnmappedRoutes", async (routes) => {
@@ -17426,6 +17418,7 @@ class NineChat extends HTMLElement {
17426
17418
  __privateMethod(this, _NineChat_instances, initActions_fn).call(this);
17427
17419
  const res = await api.post("/nine-mu/config/get", {});
17428
17420
  __privateSet(this, _config, res);
17421
+ __privateGet(this, _config).packageName = __privateGet(this, _packageName);
17429
17422
  __privateSet(this, _routesPath, (res == null ? void 0 : res.userDir) + "/" + __privateGet(this, _packageName) + "/public/prompts/data/routes.json");
17430
17423
  __privateSet(this, _manager, new NineChatManager(this));
17431
17424
  }
@@ -17511,7 +17504,7 @@ render_fn = function() {
17511
17504
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
17512
17505
  this.shadowRoot.innerHTML = `
17513
17506
  <style>
17514
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.263"}/dist/css/nine-mu.css";
17507
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.265"}/dist/css/nine-mu.css";
17515
17508
  ${customImport}
17516
17509
  </style>
17517
17510
  <div class="wrapper">
@@ -43728,7 +43721,7 @@ class NineDiff extends HTMLElement {
43728
43721
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43729
43722
  this.shadowRoot.innerHTML = `
43730
43723
  <style>
43731
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.263"}/dist/css/nine-mu.css";
43724
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.265"}/dist/css/nine-mu.css";
43732
43725
  ${customImport}
43733
43726
  </style>
43734
43727
 
@@ -43838,7 +43831,7 @@ render_fn2 = function() {
43838
43831
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43839
43832
  this.shadowRoot.innerHTML = `
43840
43833
  <style>
43841
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.263"}/dist/css/nine-mu.css";
43834
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.265"}/dist/css/nine-mu.css";
43842
43835
  ${customImport}
43843
43836
  </style>
43844
43837
 
@@ -44164,7 +44157,7 @@ class ChatMessageBody extends HTMLElement {
44164
44157
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44165
44158
  this.shadowRoot.innerHTML = `
44166
44159
  <style>
44167
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.263"}/dist/css/nine-mu.css";
44160
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.265"}/dist/css/nine-mu.css";
44168
44161
  ${customImport}
44169
44162
  </style>
44170
44163
 
@@ -44258,7 +44251,7 @@ if (!customElements.get("nine-chat-progress")) {
44258
44251
  customElements.define("nine-chat-progress", ProgressMessage);
44259
44252
  }
44260
44253
  const NineMu = {
44261
- version: "0.1.263",
44254
+ version: "0.1.265",
44262
44255
  init: (config2) => {
44263
44256
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
44264
44257
  }