@nine-lab/nine-mu 0.1.227 → 0.1.229

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