@nine-lab/nine-mu 0.1.226 → 0.1.228

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, _diffPopup, _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, _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;
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() {
@@ -17147,12 +17147,9 @@ connect_fn = async function() {
17147
17147
  capabilities: {
17148
17148
  tools: {},
17149
17149
  logging: {}
17150
- },
17151
- timeout: 3e5
17152
- // 5분
17150
+ }
17153
17151
  }));
17154
- trace.log(__privateGet(this, _mcpClient));
17155
- __privateGet(this, _mcpClient).connect(transport).then(async () => {
17152
+ __privateGet(this, _mcpClient).connect(transport, { timeout: 3e5 }).then(async () => {
17156
17153
  __privateMethod(this, _NineChatManager_instances, updateStatus_fn).call(this, "✅ MCP Connected");
17157
17154
  try {
17158
17155
  await __privateGet(this, _mcpClient).request(
@@ -17285,7 +17282,6 @@ class NineChat extends HTMLElement {
17285
17282
  __privateAdd(this, _NineChat_instances);
17286
17283
  __privateAdd(this, _service, null);
17287
17284
  __privateAdd(this, _routes, []);
17288
- __privateAdd(this, _diffPopup);
17289
17285
  __privateAdd(this, _packageName);
17290
17286
  __privateAdd(this, _routesPath);
17291
17287
  __privateAdd(this, _connectorUrl);
@@ -17324,7 +17320,14 @@ class NineChat extends HTMLElement {
17324
17320
  }
17325
17321
  });
17326
17322
  __privateAdd(this, _showDiff, (asis, tobe, lang) => {
17327
- __privateGet(this, _diffPopup).popup().data(asis, tobe, lang);
17323
+ const oldPopup = this.shadowRoot.querySelector("nine-diff-popup");
17324
+ if (oldPopup) {
17325
+ oldPopup.remove();
17326
+ }
17327
+ const $diffPopup = document.createElement("nine-diff-popup");
17328
+ const container = this.shadowRoot.querySelector(".wrapper") || this.shadowRoot;
17329
+ container.appendChild($diffPopup);
17330
+ $diffPopup.popup().data(asis, tobe, lang);
17328
17331
  });
17329
17332
  this.attachShadow({ mode: "open" });
17330
17333
  }
@@ -17343,7 +17346,6 @@ class NineChat extends HTMLElement {
17343
17346
  }
17344
17347
  _service = new WeakMap();
17345
17348
  _routes = new WeakMap();
17346
- _diffPopup = new WeakMap();
17347
17349
  _packageName = new WeakMap();
17348
17350
  _routesPath = new WeakMap();
17349
17351
  _connectorUrl = new WeakMap();
@@ -17418,7 +17420,7 @@ render_fn = function() {
17418
17420
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
17419
17421
  this.shadowRoot.innerHTML = `
17420
17422
  <style>
17421
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.225"}/dist/css/nine-mu.css";
17423
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.227"}/dist/css/nine-mu.css";
17422
17424
  ${customImport}
17423
17425
  </style>
17424
17426
  <div class="wrapper">
@@ -17452,9 +17454,7 @@ render_fn = function() {
17452
17454
  </div>
17453
17455
  </div>
17454
17456
  <div class="expand-icon"></div>
17455
- <nine-diff-popup></nine-diff-popup>
17456
17457
  `;
17457
- __privateSet(this, _diffPopup, this.shadowRoot.querySelector("nine-diff-popup"));
17458
17458
  __privateSet(this, _$nineChatMessage, this.shadowRoot.querySelector("nine-chat-message"));
17459
17459
  };
17460
17460
  _makeMenuHandler = new WeakMap();
@@ -43637,7 +43637,7 @@ class NineDiff extends HTMLElement {
43637
43637
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43638
43638
  this.shadowRoot.innerHTML = `
43639
43639
  <style>
43640
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.225"}/dist/css/nine-mu.css";
43640
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.227"}/dist/css/nine-mu.css";
43641
43641
  ${customImport}
43642
43642
  </style>
43643
43643
 
@@ -43747,7 +43747,7 @@ render_fn2 = function() {
43747
43747
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43748
43748
  this.shadowRoot.innerHTML = `
43749
43749
  <style>
43750
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.225"}/dist/css/nine-mu.css";
43750
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.227"}/dist/css/nine-mu.css";
43751
43751
  ${customImport}
43752
43752
  </style>
43753
43753
 
@@ -44074,7 +44074,7 @@ class ChatMessageBody extends HTMLElement {
44074
44074
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44075
44075
  this.shadowRoot.innerHTML = `
44076
44076
  <style>
44077
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.225"}/dist/css/nine-mu.css";
44077
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.227"}/dist/css/nine-mu.css";
44078
44078
  ${customImport}
44079
44079
  </style>
44080
44080
 
@@ -44168,7 +44168,7 @@ if (!customElements.get("nine-chat-progress")) {
44168
44168
  customElements.define("nine-chat-progress", ProgressMessage);
44169
44169
  }
44170
44170
  const NineMu = {
44171
- version: "0.1.225",
44171
+ version: "0.1.227",
44172
44172
  init: (config2) => {
44173
44173
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
44174
44174
  }