@nine-lab/nine-mu 0.1.238 → 0.1.240

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
@@ -9,7 +9,7 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
9
9
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
10
10
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
11
11
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
12
- var _mcpClient, _onAction, _onStatus, _onMessage, _owner, _routeUrl, _chatHistory, _NineChatManager_instances, connect_fn, updateStatus_fn, callTool_fn, _getSourcePath, _service, _routes, _packageName, _routesPath, _connectorUrl, _manager, _$nineChatMessage, _NineChat_instances, initInteractions_fn, initActions_fn, render_fn, _makeMenuHandler, _sourceGenHandler, _showDiff, _asisEditorView, _tobeEditorView, _asisEditorEl, _tobeEditorEl, _languageCompartment, _isScrollSyncActive, _initCodeMirror, _setupScrollSync, _applyDiffDecorations, _dialog, _diffView, _asisBackup, _host, _NineDiffPopup_instances, render_fn2, handleConfirm_fn, handleCancel_fn, _message, _data, _unique, _init, _message2, _init2, _progressData, _progressElements, _animationIntervals, _ProgressMessage_instances, updateCurrentActiveProgress_fn, renderProgress_fn, updateProgressItemVisuals_fn, startAnimation_fn, updateProgressItem_fn, _renderer, _init3;
12
+ var _mcpClient, _onAction, _onStatus, _onMessage, _owner, _routeUrl, _chatHistory, _NineChatManager_instances, connect_fn, updateStatus_fn, callTool_fn, _getSourcePath, _service, _packageName, _routesPath, _connectorUrl, _manager, _$nineChatMessage, _NineChat_instances, initInteractions_fn, initActions_fn, render_fn, _makeMenuHandler, _sourceGenHandler, _showDiff, _asisEditorView, _tobeEditorView, _asisEditorEl, _tobeEditorEl, _languageCompartment, _isScrollSyncActive, _initCodeMirror, _setupScrollSync, _applyDiffDecorations, _dialog, _diffView, _asisBackup, _host, _NineDiffPopup_instances, render_fn2, handleConfirm_fn, handleCancel_fn, _message, _data, _unique, _init, _message2, _init2, _progressData, _progressElements, _animationIntervals, _ProgressMessage_instances, updateCurrentActiveProgress_fn, renderProgress_fn, updateProgressItemVisuals_fn, startAnimation_fn, updateProgressItem_fn, _renderer, _init3;
13
13
  import { trace as trace$1, api, nine } from "@nine-lab/nine-util";
14
14
  class Trace extends trace$1.constructor {
15
15
  constructor() {
@@ -17100,6 +17100,11 @@ class NineChatManager {
17100
17100
  current_path: currentPath
17101
17101
  });
17102
17102
  });
17103
+ /** 백엔드 통신 */
17104
+ __publicField(this, "analyzeUnmappedRoutes", async (routes) => {
17105
+ const res = await api.post("/nine-mu/config/getUnmappedRoutes", { routes });
17106
+ console.log(res);
17107
+ });
17103
17108
  __privateSet(this, _owner, owner);
17104
17109
  __privateSet(this, _routeUrl, __privateGet(this, _owner).getAttribute("route-url"));
17105
17110
  __privateSet(this, _onAction, callbacks.onAction);
@@ -17287,7 +17292,6 @@ class NineChat extends HTMLElement {
17287
17292
  super();
17288
17293
  __privateAdd(this, _NineChat_instances);
17289
17294
  __privateAdd(this, _service, null);
17290
- __privateAdd(this, _routes, []);
17291
17295
  __privateAdd(this, _packageName);
17292
17296
  __privateAdd(this, _routesPath);
17293
17297
  __privateAdd(this, _connectorUrl);
@@ -17313,17 +17317,8 @@ class NineChat extends HTMLElement {
17313
17317
  }
17314
17318
  });
17315
17319
  __privateAdd(this, _sourceGenHandler, async (e) => {
17316
- const command2 = "";
17317
- const targets = "";
17318
- try {
17319
- const result = await __privateGet(this, _service).generateAll(command2, targets, __privateGet(this, _routes));
17320
- $status.textContent = "✅ 완료";
17321
- nine.alert("소스 생성 성공").rgb();
17322
- this.dispatchEvent(new CustomEvent("nine-mu-completed", { detail: result, bubbles: true }));
17323
- } catch (err) {
17324
- $status.textContent = "❌ 실패";
17325
- nine.alert(err.message).rgb().shake();
17326
- }
17320
+ const routes = await __privateGet(this, _manager).getRoutes();
17321
+ await __privateGet(this, _manager).analyzeUnmappedRoutes(routes);
17327
17322
  });
17328
17323
  __privateAdd(this, _showDiff, (asis, tobe, lang) => {
17329
17324
  const oldPopup = this.shadowRoot.querySelector("nine-diff-popup");
@@ -17346,12 +17341,10 @@ class NineChat extends HTMLElement {
17346
17341
  __privateMethod(this, _NineChat_instances, initActions_fn).call(this);
17347
17342
  const res = await api.post("/nine-mu/config/get", {});
17348
17343
  __privateSet(this, _routesPath, (res == null ? void 0 : res.userDir) + "/" + __privateGet(this, _packageName) + "/public/prompts/data/routes.json");
17349
- __privateSet(this, _routes, await __privateGet(this, _service).fetchRoutes(this.getAttribute("route-url")));
17350
17344
  __privateSet(this, _manager, new NineChatManager(this));
17351
17345
  }
17352
17346
  }
17353
17347
  _service = new WeakMap();
17354
- _routes = new WeakMap();
17355
17348
  _packageName = new WeakMap();
17356
17349
  _routesPath = new WeakMap();
17357
17350
  _connectorUrl = new WeakMap();
@@ -17431,7 +17424,7 @@ render_fn = function() {
17431
17424
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
17432
17425
  this.shadowRoot.innerHTML = `
17433
17426
  <style>
17434
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.237"}/dist/css/nine-mu.css";
17427
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.239"}/dist/css/nine-mu.css";
17435
17428
  ${customImport}
17436
17429
  </style>
17437
17430
  <div class="wrapper">
@@ -43648,7 +43641,7 @@ class NineDiff extends HTMLElement {
43648
43641
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43649
43642
  this.shadowRoot.innerHTML = `
43650
43643
  <style>
43651
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.237"}/dist/css/nine-mu.css";
43644
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.239"}/dist/css/nine-mu.css";
43652
43645
  ${customImport}
43653
43646
  </style>
43654
43647
 
@@ -43758,7 +43751,7 @@ render_fn2 = function() {
43758
43751
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43759
43752
  this.shadowRoot.innerHTML = `
43760
43753
  <style>
43761
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.237"}/dist/css/nine-mu.css";
43754
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.239"}/dist/css/nine-mu.css";
43762
43755
  ${customImport}
43763
43756
  </style>
43764
43757
 
@@ -44084,7 +44077,7 @@ class ChatMessageBody extends HTMLElement {
44084
44077
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44085
44078
  this.shadowRoot.innerHTML = `
44086
44079
  <style>
44087
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.237"}/dist/css/nine-mu.css";
44080
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.239"}/dist/css/nine-mu.css";
44088
44081
  ${customImport}
44089
44082
  </style>
44090
44083
 
@@ -44178,7 +44171,7 @@ if (!customElements.get("nine-chat-progress")) {
44178
44171
  customElements.define("nine-chat-progress", ProgressMessage);
44179
44172
  }
44180
44173
  const NineMu = {
44181
- version: "0.1.237",
44174
+ version: "0.1.239",
44182
44175
  init: (config2) => {
44183
44176
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
44184
44177
  }