@nine-lab/nine-mu 0.1.260 → 0.1.261

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, _NotificationHandler_instances, handleLoggingMessage_fn, processSourceData_fn, _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;
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,17 @@ handleLoggingMessage_fn = function(params) {
17108
17120
  __privateGet(this, _owner).addMessage("ing", "");
17109
17121
  }
17110
17122
  if (data && data.source) {
17111
- trace.log(`[시그널 감지] ${data.menu} - ${data.layer} 설계 완료`, data);
17123
+ trace.log(`[시그널 감지] 설계 완료`, data);
17124
+ __privateGet(this, _processSourceData).call(this, data);
17112
17125
  }
17113
- };
17114
- /**
17115
- * [분리 비즈니스 로직 2] 수신된 소스코드 데이터 유효성 검증 및 추후 파일 저장 연동
17116
- */
17117
- processSourceData_fn = function(sourceData) {
17118
- if (!sourceData.source || !sourceData.file_name) {
17119
- trace.warn("⚠️ 소스 또는 파일명 누락 데이터 수신됨", sourceData);
17120
- return;
17126
+ if (data) {
17127
+ if (data.source && data.file_name && data.path && data.mode === "CREATE" && data.status === "PROGRESS") {
17128
+ trace.log(`[시그널 감지] 설계 완료`, data);
17129
+ __privateGet(this, _processSourceData).call(this, data);
17130
+ }
17121
17131
  }
17122
17132
  };
17133
+ _processSourceData = new WeakMap();
17123
17134
  class NineChatManager {
17124
17135
  constructor(owner, callbacks = {}) {
17125
17136
  __privateAdd(this, _NineChatManager_instances);
@@ -17487,7 +17498,7 @@ render_fn = function() {
17487
17498
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
17488
17499
  this.shadowRoot.innerHTML = `
17489
17500
  <style>
17490
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.259"}/dist/css/nine-mu.css";
17501
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.260"}/dist/css/nine-mu.css";
17491
17502
  ${customImport}
17492
17503
  </style>
17493
17504
  <div class="wrapper">
@@ -43704,7 +43715,7 @@ class NineDiff extends HTMLElement {
43704
43715
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43705
43716
  this.shadowRoot.innerHTML = `
43706
43717
  <style>
43707
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.259"}/dist/css/nine-mu.css";
43718
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.260"}/dist/css/nine-mu.css";
43708
43719
  ${customImport}
43709
43720
  </style>
43710
43721
 
@@ -43814,7 +43825,7 @@ render_fn2 = function() {
43814
43825
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43815
43826
  this.shadowRoot.innerHTML = `
43816
43827
  <style>
43817
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.259"}/dist/css/nine-mu.css";
43828
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.260"}/dist/css/nine-mu.css";
43818
43829
  ${customImport}
43819
43830
  </style>
43820
43831
 
@@ -44140,7 +44151,7 @@ class ChatMessageBody extends HTMLElement {
44140
44151
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44141
44152
  this.shadowRoot.innerHTML = `
44142
44153
  <style>
44143
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.259"}/dist/css/nine-mu.css";
44154
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.260"}/dist/css/nine-mu.css";
44144
44155
  ${customImport}
44145
44156
  </style>
44146
44157
 
@@ -44234,7 +44245,7 @@ if (!customElements.get("nine-chat-progress")) {
44234
44245
  customElements.define("nine-chat-progress", ProgressMessage);
44235
44246
  }
44236
44247
  const NineMu = {
44237
- version: "0.1.259",
44248
+ version: "0.1.260",
44238
44249
  init: (config2) => {
44239
44250
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
44240
44251
  }