@nine-lab/nine-mu 0.1.326 → 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
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,
|
|
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() {
|
|
@@ -17080,7 +17080,6 @@ class NotificationHandler {
|
|
|
17080
17080
|
constructor(owner) {
|
|
17081
17081
|
__privateAdd(this, _NotificationHandler_instances);
|
|
17082
17082
|
__privateAdd(this, _owner);
|
|
17083
|
-
__privateAdd(this, _manager);
|
|
17084
17083
|
__privateAdd(this, _collectedFiles, []);
|
|
17085
17084
|
/**
|
|
17086
17085
|
* 레이어별로 순차 도착하는 파일들을 유실 없이 배열 버퍼에 수집
|
|
@@ -17137,7 +17136,7 @@ class NotificationHandler {
|
|
|
17137
17136
|
const hasUpdated = data.some((item) => item.action === "UPDATE");
|
|
17138
17137
|
const hasDeleted = data.some((item) => item.action === "DELETE");
|
|
17139
17138
|
if (hasUpdated || hasCreated || hasDeleted) {
|
|
17140
|
-
const asis = await __privateGet(this,
|
|
17139
|
+
const asis = await __privateGet(this, _owner).manager.getRoutes();
|
|
17141
17140
|
nine.alert("메뉴 정리를 위한 라우터 정보 저장 화면으로 이동합니다.").then((res) => {
|
|
17142
17141
|
const tobe = (data || []).filter((item) => item.action !== "DELETE").map(({ isNew, action, ...rest }) => rest);
|
|
17143
17142
|
__privateGet(this, _openRouteDiffPopup).call(this, asis, tobe, "json");
|
|
@@ -17145,7 +17144,6 @@ class NotificationHandler {
|
|
|
17145
17144
|
}
|
|
17146
17145
|
});
|
|
17147
17146
|
__privateSet(this, _owner, owner);
|
|
17148
|
-
__privateSet(this, _manager, new NineChatManager(owner));
|
|
17149
17147
|
}
|
|
17150
17148
|
/**
|
|
17151
17149
|
* MCP로부터 수신된 날것의 노티파이 데이터를 정석대로 라우팅하는 메인 메서드
|
|
@@ -17158,7 +17156,6 @@ class NotificationHandler {
|
|
|
17158
17156
|
}
|
|
17159
17157
|
}
|
|
17160
17158
|
_owner = new WeakMap();
|
|
17161
|
-
_manager = new WeakMap();
|
|
17162
17159
|
_collectedFiles = new WeakMap();
|
|
17163
17160
|
_NotificationHandler_instances = new WeakSet();
|
|
17164
17161
|
/**
|
|
@@ -17441,7 +17438,7 @@ class NineChat extends HTMLElement {
|
|
|
17441
17438
|
__privateAdd(this, _packageName);
|
|
17442
17439
|
__privateAdd(this, _routesPath);
|
|
17443
17440
|
__privateAdd(this, _connectorUrl);
|
|
17444
|
-
__privateAdd(this,
|
|
17441
|
+
__privateAdd(this, _manager);
|
|
17445
17442
|
__privateAdd(this, _config);
|
|
17446
17443
|
__privateAdd(this, _$nineChatMessage);
|
|
17447
17444
|
__publicField(this, "addMessage", (who, message) => {
|
|
@@ -17464,8 +17461,8 @@ class NineChat extends HTMLElement {
|
|
|
17464
17461
|
}
|
|
17465
17462
|
});
|
|
17466
17463
|
__privateAdd(this, _sourceGenHandler, async (e) => {
|
|
17467
|
-
const routes = await __privateGet(this,
|
|
17468
|
-
const response = await __privateGet(this,
|
|
17464
|
+
const routes = await __privateGet(this, _manager).getRoutes();
|
|
17465
|
+
const response = await __privateGet(this, _manager).analyzeUnmappedRoutes(routes);
|
|
17469
17466
|
trace.log(response);
|
|
17470
17467
|
});
|
|
17471
17468
|
__privateAdd(this, _showDiff, (asis, tobe, lang) => {
|
|
@@ -17494,14 +17491,17 @@ class NineChat extends HTMLElement {
|
|
|
17494
17491
|
__privateSet(this, _config, res);
|
|
17495
17492
|
__privateGet(this, _config).packageName = __privateGet(this, _packageName);
|
|
17496
17493
|
__privateSet(this, _routesPath, (res == null ? void 0 : res.userDir) + "/" + __privateGet(this, _packageName) + "/public/prompts/data/routes.json");
|
|
17497
|
-
__privateSet(this,
|
|
17494
|
+
__privateSet(this, _manager, new NineChatManager(this));
|
|
17495
|
+
}
|
|
17496
|
+
get manager() {
|
|
17497
|
+
return __privateGet(this, _manager);
|
|
17498
17498
|
}
|
|
17499
17499
|
}
|
|
17500
17500
|
_service = new WeakMap();
|
|
17501
17501
|
_packageName = new WeakMap();
|
|
17502
17502
|
_routesPath = new WeakMap();
|
|
17503
17503
|
_connectorUrl = new WeakMap();
|
|
17504
|
-
|
|
17504
|
+
_manager = new WeakMap();
|
|
17505
17505
|
_config = new WeakMap();
|
|
17506
17506
|
_$nineChatMessage = new WeakMap();
|
|
17507
17507
|
_NineChat_instances = new WeakSet();
|
|
@@ -17536,7 +17536,7 @@ initActions_fn = function() {
|
|
|
17536
17536
|
target.setAttribute("disabled", "disabled");
|
|
17537
17537
|
__privateGet(this, _$nineChatMessage).add("me", userInput);
|
|
17538
17538
|
__privateGet(this, _$nineChatMessage).add("ing", "");
|
|
17539
|
-
const [result, err] = await nine$1.safe(__privateGet(this,
|
|
17539
|
+
const [result, err] = await nine$1.safe(__privateGet(this, _manager).handleChatSubmit(target.value));
|
|
17540
17540
|
setTimeout(() => {
|
|
17541
17541
|
target.value = "";
|
|
17542
17542
|
});
|
|
@@ -17550,9 +17550,9 @@ initActions_fn = function() {
|
|
|
17550
17550
|
try {
|
|
17551
17551
|
const rawText = (_b = (_a2 = result == null ? void 0 : result.content) == null ? void 0 : _a2[0]) == null ? void 0 : _b.text;
|
|
17552
17552
|
const parsed = JSON.parse(rawText);
|
|
17553
|
-
__privateGet(this,
|
|
17553
|
+
__privateGet(this, _manager).addChatHistory(parsed.message);
|
|
17554
17554
|
__privateGet(this, _$nineChatMessage).add("ai", parsed.message);
|
|
17555
|
-
const asis = await __privateGet(this,
|
|
17555
|
+
const asis = await __privateGet(this, _manager).getRoutes();
|
|
17556
17556
|
} catch (err2) {
|
|
17557
17557
|
trace.error(err2);
|
|
17558
17558
|
const fallbackMessage = ((_d = (_c = result == null ? void 0 : result.content) == null ? void 0 : _c[0]) == null ? void 0 : _d.text) || "응답 데이터를 해석하지 못했습니다.";
|
|
@@ -17567,7 +17567,7 @@ render_fn = function() {
|
|
|
17567
17567
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
17568
17568
|
this.shadowRoot.innerHTML = `
|
|
17569
17569
|
<style>
|
|
17570
|
-
@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";
|
|
17571
17571
|
${customImport}
|
|
17572
17572
|
</style>
|
|
17573
17573
|
<div class="wrapper">
|
|
@@ -43819,7 +43819,7 @@ class NineDiff extends HTMLElement {
|
|
|
43819
43819
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43820
43820
|
this.shadowRoot.innerHTML = `
|
|
43821
43821
|
<style>
|
|
43822
|
-
@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";
|
|
43823
43823
|
${customImport}
|
|
43824
43824
|
</style>
|
|
43825
43825
|
|
|
@@ -43959,7 +43959,7 @@ renderScaffolding_fn = function() {
|
|
|
43959
43959
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
43960
43960
|
this.shadowRoot.innerHTML = `
|
|
43961
43961
|
<style>
|
|
43962
|
-
@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";
|
|
43963
43963
|
${customImport}
|
|
43964
43964
|
</style>
|
|
43965
43965
|
|
|
@@ -44068,7 +44068,7 @@ render_fn2 = function() {
|
|
|
44068
44068
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
44069
44069
|
this.shadowRoot.innerHTML = `
|
|
44070
44070
|
<style>
|
|
44071
|
-
@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";
|
|
44072
44072
|
${customImport}
|
|
44073
44073
|
</style>
|
|
44074
44074
|
|
|
@@ -44399,7 +44399,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44399
44399
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44400
44400
|
this.shadowRoot.innerHTML = `
|
|
44401
44401
|
<style>
|
|
44402
|
-
@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";
|
|
44403
44403
|
${customImport}
|
|
44404
44404
|
</style>
|
|
44405
44405
|
|
|
@@ -44493,7 +44493,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44493
44493
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44494
44494
|
}
|
|
44495
44495
|
const NineMu = {
|
|
44496
|
-
version: "0.1.
|
|
44496
|
+
version: "0.1.326",
|
|
44497
44497
|
init: (config2) => {
|
|
44498
44498
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44499
44499
|
}
|