@nine-lab/nine-mu 0.1.280 → 0.1.281
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 +42 -10
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +3 -3
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NotificationHandler.js +41 -4
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,
|
|
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,
|
|
17084
|
-
|
|
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,18 @@ handleLoggingMessage_fn = function(params) {
|
|
|
17131
17157
|
break;
|
|
17132
17158
|
case "modify-source-brain":
|
|
17133
17159
|
if (data && data.source) {
|
|
17134
|
-
__privateGet(this,
|
|
17160
|
+
__privateGet(this, _collectModifySource).call(this, data);
|
|
17161
|
+
}
|
|
17162
|
+
break;
|
|
17163
|
+
case "modify-source-brain-completed":
|
|
17164
|
+
if (data && data.source) {
|
|
17165
|
+
__privateGet(this, _openDiffPopup).call(this);
|
|
17135
17166
|
}
|
|
17136
17167
|
break;
|
|
17137
17168
|
}
|
|
17138
17169
|
};
|
|
17139
|
-
|
|
17170
|
+
_collectModifySource = new WeakMap();
|
|
17171
|
+
_openDiffPopup = new WeakMap();
|
|
17140
17172
|
_generateSource = new WeakMap();
|
|
17141
17173
|
class NineChatManager {
|
|
17142
17174
|
constructor(owner, callbacks = {}) {
|
|
@@ -17533,7 +17565,7 @@ render_fn = function() {
|
|
|
17533
17565
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
17534
17566
|
this.shadowRoot.innerHTML = `
|
|
17535
17567
|
<style>
|
|
17536
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17568
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.280"}/dist/css/nine-mu.css";
|
|
17537
17569
|
${customImport}
|
|
17538
17570
|
</style>
|
|
17539
17571
|
<div class="wrapper">
|
|
@@ -43750,7 +43782,7 @@ class NineDiff extends HTMLElement {
|
|
|
43750
43782
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43751
43783
|
this.shadowRoot.innerHTML = `
|
|
43752
43784
|
<style>
|
|
43753
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43785
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.280"}/dist/css/nine-mu.css";
|
|
43754
43786
|
${customImport}
|
|
43755
43787
|
</style>
|
|
43756
43788
|
|
|
@@ -43867,7 +43899,7 @@ _NineDiffPopup_instances = new WeakSet();
|
|
|
43867
43899
|
*/
|
|
43868
43900
|
renderScaffolding_fn = function() {
|
|
43869
43901
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43870
|
-
const appVersion = "0.1.
|
|
43902
|
+
const appVersion = "0.1.280";
|
|
43871
43903
|
this.shadowRoot.innerHTML = `
|
|
43872
43904
|
<style>
|
|
43873
43905
|
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${appVersion}/dist/css/nine-mu.css";
|
|
@@ -44237,7 +44269,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44237
44269
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44238
44270
|
this.shadowRoot.innerHTML = `
|
|
44239
44271
|
<style>
|
|
44240
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44272
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.280"}/dist/css/nine-mu.css";
|
|
44241
44273
|
${customImport}
|
|
44242
44274
|
</style>
|
|
44243
44275
|
|
|
@@ -44331,7 +44363,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44331
44363
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44332
44364
|
}
|
|
44333
44365
|
const NineMu = {
|
|
44334
|
-
version: "0.1.
|
|
44366
|
+
version: "0.1.280",
|
|
44335
44367
|
init: (config2) => {
|
|
44336
44368
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44337
44369
|
}
|