@nine-lab/nine-mu 0.1.325 → 0.1.327
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 +31 -11
- 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/NineChat.js +5 -1
- package/src/components/NotificationHandler.js +36 -22
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, _collectedFiles, _NotificationHandler_instances, handleLoggingMessage_fn, _collectModifySource, _openDiffPopup, _generateSource, _generateMenu, _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, _isDirty, _initialAsisSrc, _initialTobeSrc, _languageCompartment, _isScrollSyncActive, _initCodeMirror, _checkDirtyState, _setupScrollSync, _applyDiffDecorations, _dialog, _tabContainer, _fileList, _host, _NineDiffPopup_instances, renderScaffolding_fn, handleConfirmAll_fn, handleCancel_fn, _dialog2, _diffView, _asisBackup, _host2, _NineMenuDiffPopup_instances, render_fn2, handleConfirm_fn, handleCancel_fn2, _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, _openRouteDiffPopup, _generateSource, _generateMenu, _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, _isDirty, _initialAsisSrc, _initialTobeSrc, _languageCompartment, _isScrollSyncActive, _initCodeMirror, _checkDirtyState, _setupScrollSync, _applyDiffDecorations, _dialog, _tabContainer, _fileList, _host, _NineDiffPopup_instances, renderScaffolding_fn, handleConfirmAll_fn, handleCancel_fn, _dialog2, _diffView, _asisBackup, _host2, _NineMenuDiffPopup_instances, render_fn2, handleConfirm_fn, handleCancel_fn2, _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() {
|
|
@@ -17100,9 +17100,7 @@ class NotificationHandler {
|
|
|
17100
17100
|
__privateAdd(this, _openDiffPopup, () => {
|
|
17101
17101
|
if (__privateGet(this, _collectedFiles).length === 0) return;
|
|
17102
17102
|
const $oldPopup = __privateGet(this, _owner).shadowRoot.querySelector("nine-diff-popup");
|
|
17103
|
-
if ($oldPopup)
|
|
17104
|
-
$oldPopup.remove();
|
|
17105
|
-
}
|
|
17103
|
+
if ($oldPopup) $oldPopup.remove();
|
|
17106
17104
|
const $diffPopup = document.createElement("nine-diff-popup");
|
|
17107
17105
|
$diffPopup.setAttribute("package-name", __privateGet(this, _owner).getAttribute("package-name") || "");
|
|
17108
17106
|
const container = __privateGet(this, _owner).shadowRoot.querySelector(".wrapper") || __privateGet(this, _owner).shadowRoot;
|
|
@@ -17111,6 +17109,14 @@ class NotificationHandler {
|
|
|
17111
17109
|
$diffPopup.popup();
|
|
17112
17110
|
__privateSet(this, _collectedFiles, []);
|
|
17113
17111
|
});
|
|
17112
|
+
__privateAdd(this, _openRouteDiffPopup, (asis, tobe, lang) => {
|
|
17113
|
+
const $oldPopup = __privateGet(this, _owner).shadowRoot.querySelector("nine-menu-diff-popup");
|
|
17114
|
+
if ($oldPopup) $oldPopup.remove();
|
|
17115
|
+
const $diffPopup = document.createElement("nine-menu-diff-popup");
|
|
17116
|
+
const container = __privateGet(this, _owner).shadowRoot.querySelector(".wrapper") || this.shadowRoot;
|
|
17117
|
+
container.appendChild($diffPopup);
|
|
17118
|
+
$diffPopup.popup().data(asis, tobe, lang);
|
|
17119
|
+
});
|
|
17114
17120
|
/**
|
|
17115
17121
|
* [분리 비즈니스 로직 2] 수신된 소스코드 데이터 유효성 검증 및 추후 파일 저장 연동
|
|
17116
17122
|
*/
|
|
@@ -17125,7 +17131,17 @@ class NotificationHandler {
|
|
|
17125
17131
|
trace.log(res);
|
|
17126
17132
|
});
|
|
17127
17133
|
__privateAdd(this, _generateMenu, async (data) => {
|
|
17128
|
-
|
|
17134
|
+
if (!data) return;
|
|
17135
|
+
const hasCreated = data.some((item) => item.action === "CREATE");
|
|
17136
|
+
const hasUpdated = data.some((item) => item.action === "UPDATE");
|
|
17137
|
+
const hasDeleted = data.some((item) => item.action === "DELETE");
|
|
17138
|
+
if (hasUpdated || hasCreated || hasDeleted) {
|
|
17139
|
+
const asis = await __privateGet(this, _owner).manager.getRoutes();
|
|
17140
|
+
nine.alert("메뉴 정리를 위한 라우터 정보 저장 화면으로 이동합니다.").then((res) => {
|
|
17141
|
+
const tobe = (data || []).filter((item) => item.action !== "DELETE").map(({ isNew, action, ...rest }) => rest);
|
|
17142
|
+
__privateGet(this, _openRouteDiffPopup).call(this, asis, tobe, "json");
|
|
17143
|
+
});
|
|
17144
|
+
}
|
|
17129
17145
|
});
|
|
17130
17146
|
__privateSet(this, _owner, owner);
|
|
17131
17147
|
}
|
|
@@ -17161,6 +17177,7 @@ handleLoggingMessage_fn = function(params) {
|
|
|
17161
17177
|
};
|
|
17162
17178
|
_collectModifySource = new WeakMap();
|
|
17163
17179
|
_openDiffPopup = new WeakMap();
|
|
17180
|
+
_openRouteDiffPopup = new WeakMap();
|
|
17164
17181
|
_generateSource = new WeakMap();
|
|
17165
17182
|
_generateMenu = new WeakMap();
|
|
17166
17183
|
class NineChatManager {
|
|
@@ -17476,6 +17493,9 @@ class NineChat extends HTMLElement {
|
|
|
17476
17493
|
__privateSet(this, _routesPath, (res == null ? void 0 : res.userDir) + "/" + __privateGet(this, _packageName) + "/public/prompts/data/routes.json");
|
|
17477
17494
|
__privateSet(this, _manager, new NineChatManager(this));
|
|
17478
17495
|
}
|
|
17496
|
+
get manager() {
|
|
17497
|
+
return __privateGet(this, _manager);
|
|
17498
|
+
}
|
|
17479
17499
|
}
|
|
17480
17500
|
_service = new WeakMap();
|
|
17481
17501
|
_packageName = new WeakMap();
|
|
@@ -17547,7 +17567,7 @@ render_fn = function() {
|
|
|
17547
17567
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
17548
17568
|
this.shadowRoot.innerHTML = `
|
|
17549
17569
|
<style>
|
|
17550
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17570
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.326"}/dist/css/nine-mu.css";
|
|
17551
17571
|
${customImport}
|
|
17552
17572
|
</style>
|
|
17553
17573
|
<div class="wrapper">
|
|
@@ -43799,7 +43819,7 @@ class NineDiff extends HTMLElement {
|
|
|
43799
43819
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43800
43820
|
this.shadowRoot.innerHTML = `
|
|
43801
43821
|
<style>
|
|
43802
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43822
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.326"}/dist/css/nine-mu.css";
|
|
43803
43823
|
${customImport}
|
|
43804
43824
|
</style>
|
|
43805
43825
|
|
|
@@ -43939,7 +43959,7 @@ renderScaffolding_fn = function() {
|
|
|
43939
43959
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
43940
43960
|
this.shadowRoot.innerHTML = `
|
|
43941
43961
|
<style>
|
|
43942
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43962
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.326"}/dist/css/nine-mu.css";
|
|
43943
43963
|
${customImport}
|
|
43944
43964
|
</style>
|
|
43945
43965
|
|
|
@@ -44048,7 +44068,7 @@ render_fn2 = function() {
|
|
|
44048
44068
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
44049
44069
|
this.shadowRoot.innerHTML = `
|
|
44050
44070
|
<style>
|
|
44051
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44071
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.326"}/dist/css/nine-mu.css";
|
|
44052
44072
|
${customImport}
|
|
44053
44073
|
</style>
|
|
44054
44074
|
|
|
@@ -44379,7 +44399,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44379
44399
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44380
44400
|
this.shadowRoot.innerHTML = `
|
|
44381
44401
|
<style>
|
|
44382
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44402
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.326"}/dist/css/nine-mu.css";
|
|
44383
44403
|
${customImport}
|
|
44384
44404
|
</style>
|
|
44385
44405
|
|
|
@@ -44473,7 +44493,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44473
44493
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44474
44494
|
}
|
|
44475
44495
|
const NineMu = {
|
|
44476
|
-
version: "0.1.
|
|
44496
|
+
version: "0.1.326",
|
|
44477
44497
|
init: (config2) => {
|
|
44478
44498
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44479
44499
|
}
|