@nine-lab/nine-mu 0.1.260 → 0.1.262
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 +21 -16
- 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 +17 -6
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, _NotificationHandler_instances, handleLoggingMessage_fn, _processSourceData, _mcpClient, _onAction, _onStatus, _onMessage, _owner2, _routeUrl, _chatHistory, _notiHandler, _NineChatManager_instances, connect_fn, updateStatus_fn, callTool_fn, _getSourcePath, _service, _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 as nine$1 } from "@nine-lab/nine-util";
|
|
14
14
|
class Trace extends trace$1.constructor {
|
|
15
15
|
constructor() {
|
|
@@ -17080,6 +17080,18 @@ class NotificationHandler {
|
|
|
17080
17080
|
constructor(owner) {
|
|
17081
17081
|
__privateAdd(this, _NotificationHandler_instances);
|
|
17082
17082
|
__privateAdd(this, _owner);
|
|
17083
|
+
/**
|
|
17084
|
+
* [분리 비즈니스 로직 2] 수신된 소스코드 데이터 유효성 검증 및 추후 파일 저장 연동
|
|
17085
|
+
*/
|
|
17086
|
+
__privateAdd(this, _processSourceData, async (data) => {
|
|
17087
|
+
if (data.layer) ;
|
|
17088
|
+
const res = await api.post("/nine-mu/source/generateRealFileSingle", {
|
|
17089
|
+
package_path: data.path,
|
|
17090
|
+
file_name: data.file_name,
|
|
17091
|
+
contents: data.source
|
|
17092
|
+
});
|
|
17093
|
+
trace.log(res);
|
|
17094
|
+
});
|
|
17083
17095
|
__privateSet(this, _owner, owner);
|
|
17084
17096
|
}
|
|
17085
17097
|
/**
|
|
@@ -17108,18 +17120,11 @@ handleLoggingMessage_fn = function(params) {
|
|
|
17108
17120
|
__privateGet(this, _owner).addMessage("ing", "");
|
|
17109
17121
|
}
|
|
17110
17122
|
if (data && data.source) {
|
|
17111
|
-
trace.log(`[시그널 감지]
|
|
17112
|
-
|
|
17113
|
-
};
|
|
17114
|
-
/**
|
|
17115
|
-
* [분리 비즈니스 로직 2] 수신된 소스코드 데이터 유효성 검증 및 추후 파일 저장 연동
|
|
17116
|
-
*/
|
|
17117
|
-
processSourceData_fn = function(sourceData) {
|
|
17118
|
-
if (!sourceData.source || !sourceData.file_name) {
|
|
17119
|
-
trace.warn("⚠️ 소스 또는 파일명 누락 데이터 수신됨", sourceData);
|
|
17120
|
-
return;
|
|
17123
|
+
trace.log(`[시그널 감지] 설계 완료`, data);
|
|
17124
|
+
__privateGet(this, _processSourceData).call(this, data);
|
|
17121
17125
|
}
|
|
17122
17126
|
};
|
|
17127
|
+
_processSourceData = new WeakMap();
|
|
17123
17128
|
class NineChatManager {
|
|
17124
17129
|
constructor(owner, callbacks = {}) {
|
|
17125
17130
|
__privateAdd(this, _NineChatManager_instances);
|
|
@@ -17487,7 +17492,7 @@ render_fn = function() {
|
|
|
17487
17492
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
17488
17493
|
this.shadowRoot.innerHTML = `
|
|
17489
17494
|
<style>
|
|
17490
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17495
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.261"}/dist/css/nine-mu.css";
|
|
17491
17496
|
${customImport}
|
|
17492
17497
|
</style>
|
|
17493
17498
|
<div class="wrapper">
|
|
@@ -43704,7 +43709,7 @@ class NineDiff extends HTMLElement {
|
|
|
43704
43709
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43705
43710
|
this.shadowRoot.innerHTML = `
|
|
43706
43711
|
<style>
|
|
43707
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43712
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.261"}/dist/css/nine-mu.css";
|
|
43708
43713
|
${customImport}
|
|
43709
43714
|
</style>
|
|
43710
43715
|
|
|
@@ -43814,7 +43819,7 @@ render_fn2 = function() {
|
|
|
43814
43819
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43815
43820
|
this.shadowRoot.innerHTML = `
|
|
43816
43821
|
<style>
|
|
43817
|
-
@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.261"}/dist/css/nine-mu.css";
|
|
43818
43823
|
${customImport}
|
|
43819
43824
|
</style>
|
|
43820
43825
|
|
|
@@ -44140,7 +44145,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44140
44145
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44141
44146
|
this.shadowRoot.innerHTML = `
|
|
44142
44147
|
<style>
|
|
44143
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44148
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.261"}/dist/css/nine-mu.css";
|
|
44144
44149
|
${customImport}
|
|
44145
44150
|
</style>
|
|
44146
44151
|
|
|
@@ -44234,7 +44239,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44234
44239
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44235
44240
|
}
|
|
44236
44241
|
const NineMu = {
|
|
44237
|
-
version: "0.1.
|
|
44242
|
+
version: "0.1.261",
|
|
44238
44243
|
init: (config2) => {
|
|
44239
44244
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44240
44245
|
}
|