@nine-lab/nine-mu 0.1.280 → 0.1.282

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 _owner, _NotificationHandler_instances, handleLoggingMessage_fn, _modifySource, _generateSource, _mcpClient, _onAction, _onStatus, _onMessage, _owner2, _routeUrl, _chatHistory, _notiHandler, _NineChatManager_instances, connect_fn, updateStatus_fn, callTool_fn, _getSourcePath, _service, _packageName, _routesPath, _connectorUrl, _manager, _config, _$nineChatMessage, _NineChat_instances, initInteractions_fn, initActions_fn, render_fn, _makeMenuHandler, _sourceGenHandler, _showDiff, _asisEditorView, _tobeEditorView, _asisEditorEl, _tobeEditorEl, _languageCompartment, _isScrollSyncActive, _initCodeMirror, _setupScrollSync, _applyDiffDecorations, _dialog, _tabContainer, _filesMap, _host, _NineDiffPopup_instances, renderScaffolding_fn, handleConfirmAll_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 _owner, _collectedFiles, _NotificationHandler_instances, handleLoggingMessage_fn, _collectModifySource, _openDiffPopup, _generateSource, _mcpClient, _onAction, _onStatus, _onMessage, _owner2, _routeUrl, _chatHistory, _notiHandler, _NineChatManager_instances, connect_fn, updateStatus_fn, callTool_fn, _getSourcePath, _service, _packageName, _routesPath, _connectorUrl, _manager, _config, _$nineChatMessage, _NineChat_instances, initInteractions_fn, initActions_fn, render_fn, _makeMenuHandler, _sourceGenHandler, _showDiff, _asisEditorView, _tobeEditorView, _asisEditorEl, _tobeEditorEl, _languageCompartment, _isScrollSyncActive, _initCodeMirror, _setupScrollSync, _applyDiffDecorations, _dialog, _tabContainer, _filesMap, _host, _NineDiffPopup_instances, renderScaffolding_fn, handleConfirmAll_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 as nine$1 } from "@nine-lab/nine-util";
14
14
  class Trace extends trace$1.constructor {
15
15
  constructor() {
@@ -17080,8 +17080,33 @@ class NotificationHandler {
17080
17080
  constructor(owner) {
17081
17081
  __privateAdd(this, _NotificationHandler_instances);
17082
17082
  __privateAdd(this, _owner);
17083
- __privateAdd(this, _modifySource, async (data) => {
17084
- console.log(data);
17083
+ __privateAdd(this, _collectedFiles, []);
17084
+ /**
17085
+ * 레이어별로 순차 도착하는 파일들을 유실 없이 배열 버퍼에 수집
17086
+ */
17087
+ __privateAdd(this, _collectModifySource, (data) => {
17088
+ const filePayload = {
17089
+ layer: data.layer || "Unknown",
17090
+ full_path: data.full_path || "unknown_file",
17091
+ asis_source: data.asis_source || "",
17092
+ source: data.source || ""
17093
+ };
17094
+ __privateGet(this, _collectedFiles).push(filePayload);
17095
+ });
17096
+ /**
17097
+ * 최종 조립이 끝나 시그널이 도달했을 때 딱 한 번 팝업을 열어 일괄 주입
17098
+ */
17099
+ __privateAdd(this, _openDiffPopup, () => {
17100
+ if (__privateGet(this, _collectedFiles).length === 0) return;
17101
+ let $popup = document.querySelector("nine-diff-popup");
17102
+ if (!$popup) {
17103
+ $popup = document.createElement("nine-diff-popup");
17104
+ $popup.setAttribute("package-name", __privateGet(this, _owner).getAttribute("package-name") || "");
17105
+ document.body.appendChild($popup);
17106
+ }
17107
+ $popup.data([...__privateGet(this, _collectedFiles)]);
17108
+ $popup.popup();
17109
+ __privateSet(this, _collectedFiles, []);
17085
17110
  });
17086
17111
  /**
17087
17112
  * [분리 비즈니스 로직 2] 수신된 소스코드 데이터 유효성 검증 및 추후 파일 저장 연동
@@ -17113,6 +17138,7 @@ class NotificationHandler {
17113
17138
  }
17114
17139
  }
17115
17140
  _owner = new WeakMap();
17141
+ _collectedFiles = new WeakMap();
17116
17142
  _NotificationHandler_instances = new WeakSet();
17117
17143
  /**
17118
17144
  * [분리 비즈니스 로직 1] 로깅 및 UI 메시지 출력 제어
@@ -17131,12 +17157,16 @@ handleLoggingMessage_fn = function(params) {
17131
17157
  break;
17132
17158
  case "modify-source-brain":
17133
17159
  if (data && data.source) {
17134
- __privateGet(this, _modifySource).call(this, data);
17160
+ __privateGet(this, _collectModifySource).call(this, data);
17135
17161
  }
17136
17162
  break;
17163
+ case "modify-source-brain-completed":
17164
+ __privateGet(this, _openDiffPopup).call(this);
17165
+ break;
17137
17166
  }
17138
17167
  };
17139
- _modifySource = new WeakMap();
17168
+ _collectModifySource = new WeakMap();
17169
+ _openDiffPopup = new WeakMap();
17140
17170
  _generateSource = new WeakMap();
17141
17171
  class NineChatManager {
17142
17172
  constructor(owner, callbacks = {}) {
@@ -17533,7 +17563,7 @@ render_fn = function() {
17533
17563
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
17534
17564
  this.shadowRoot.innerHTML = `
17535
17565
  <style>
17536
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.279"}/dist/css/nine-mu.css";
17566
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.281"}/dist/css/nine-mu.css";
17537
17567
  ${customImport}
17538
17568
  </style>
17539
17569
  <div class="wrapper">
@@ -43750,7 +43780,7 @@ class NineDiff extends HTMLElement {
43750
43780
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43751
43781
  this.shadowRoot.innerHTML = `
43752
43782
  <style>
43753
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.279"}/dist/css/nine-mu.css";
43783
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.281"}/dist/css/nine-mu.css";
43754
43784
  ${customImport}
43755
43785
  </style>
43756
43786
 
@@ -43867,7 +43897,7 @@ _NineDiffPopup_instances = new WeakSet();
43867
43897
  */
43868
43898
  renderScaffolding_fn = function() {
43869
43899
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43870
- const appVersion = "0.1.279";
43900
+ const appVersion = "0.1.281";
43871
43901
  this.shadowRoot.innerHTML = `
43872
43902
  <style>
43873
43903
  @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${appVersion}/dist/css/nine-mu.css";
@@ -44237,7 +44267,7 @@ class ChatMessageBody extends HTMLElement {
44237
44267
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44238
44268
  this.shadowRoot.innerHTML = `
44239
44269
  <style>
44240
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.279"}/dist/css/nine-mu.css";
44270
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.281"}/dist/css/nine-mu.css";
44241
44271
  ${customImport}
44242
44272
  </style>
44243
44273
 
@@ -44331,7 +44361,7 @@ if (!customElements.get("nine-chat-progress")) {
44331
44361
  customElements.define("nine-chat-progress", ProgressMessage);
44332
44362
  }
44333
44363
  const NineMu = {
44334
- version: "0.1.279",
44364
+ version: "0.1.281",
44335
44365
  init: (config2) => {
44336
44366
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
44337
44367
  }