@nine-lab/nine-mu 0.1.276 → 0.1.278
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 +25 -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/NotificationHandler.js +20 -7
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, _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, _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,10 +17080,13 @@ 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.source);
|
|
17085
|
+
});
|
|
17083
17086
|
/**
|
|
17084
17087
|
* [분리 비즈니스 로직 2] 수신된 소스코드 데이터 유효성 검증 및 추후 파일 저장 연동
|
|
17085
17088
|
*/
|
|
17086
|
-
__privateAdd(this,
|
|
17089
|
+
__privateAdd(this, _generateSource, async (data) => {
|
|
17087
17090
|
if (data.layer) ;
|
|
17088
17091
|
const res = await api.post("/nine-mu/source/generateRealFileSingle", {
|
|
17089
17092
|
//package_path: data.path,
|
|
@@ -17120,12 +17123,23 @@ handleLoggingMessage_fn = function(params) {
|
|
|
17120
17123
|
__privateGet(this, _owner).addMessage("ai", message);
|
|
17121
17124
|
__privateGet(this, _owner).addMessage("ing", "");
|
|
17122
17125
|
}
|
|
17123
|
-
|
|
17124
|
-
|
|
17125
|
-
|
|
17126
|
+
switch (logger) {
|
|
17127
|
+
case "generate-source-brain":
|
|
17128
|
+
if (data && data.source) {
|
|
17129
|
+
trace.log(`[시그널 감지] 설계 완료`, data);
|
|
17130
|
+
__privateGet(this, _generateSource).call(this, data);
|
|
17131
|
+
}
|
|
17132
|
+
break;
|
|
17133
|
+
case "modify-source-brain":
|
|
17134
|
+
if (data && data.source) {
|
|
17135
|
+
trace.log(`[시그널 감지] 설계 완료`, data);
|
|
17136
|
+
__privateGet(this, _modifySource).call(this, data);
|
|
17137
|
+
}
|
|
17138
|
+
break;
|
|
17126
17139
|
}
|
|
17127
17140
|
};
|
|
17128
|
-
|
|
17141
|
+
_modifySource = new WeakMap();
|
|
17142
|
+
_generateSource = new WeakMap();
|
|
17129
17143
|
class NineChatManager {
|
|
17130
17144
|
constructor(owner, callbacks = {}) {
|
|
17131
17145
|
__privateAdd(this, _NineChatManager_instances);
|
|
@@ -17521,7 +17535,7 @@ render_fn = function() {
|
|
|
17521
17535
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
17522
17536
|
this.shadowRoot.innerHTML = `
|
|
17523
17537
|
<style>
|
|
17524
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17538
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.277"}/dist/css/nine-mu.css";
|
|
17525
17539
|
${customImport}
|
|
17526
17540
|
</style>
|
|
17527
17541
|
<div class="wrapper">
|
|
@@ -43738,7 +43752,7 @@ class NineDiff extends HTMLElement {
|
|
|
43738
43752
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43739
43753
|
this.shadowRoot.innerHTML = `
|
|
43740
43754
|
<style>
|
|
43741
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43755
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.277"}/dist/css/nine-mu.css";
|
|
43742
43756
|
${customImport}
|
|
43743
43757
|
</style>
|
|
43744
43758
|
|
|
@@ -43848,7 +43862,7 @@ render_fn2 = function() {
|
|
|
43848
43862
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43849
43863
|
this.shadowRoot.innerHTML = `
|
|
43850
43864
|
<style>
|
|
43851
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43865
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.277"}/dist/css/nine-mu.css";
|
|
43852
43866
|
${customImport}
|
|
43853
43867
|
</style>
|
|
43854
43868
|
|
|
@@ -44174,7 +44188,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44174
44188
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44175
44189
|
this.shadowRoot.innerHTML = `
|
|
44176
44190
|
<style>
|
|
44177
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44191
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.277"}/dist/css/nine-mu.css";
|
|
44178
44192
|
${customImport}
|
|
44179
44193
|
</style>
|
|
44180
44194
|
|
|
@@ -44268,7 +44282,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44268
44282
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44269
44283
|
}
|
|
44270
44284
|
const NineMu = {
|
|
44271
|
-
version: "0.1.
|
|
44285
|
+
version: "0.1.277",
|
|
44272
44286
|
init: (config2) => {
|
|
44273
44287
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44274
44288
|
}
|