@nine-lab/nine-mu 0.1.323 → 0.1.325

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.
@@ -831,6 +831,21 @@
831
831
  }
832
832
  .btn { padding: 8px 20px; cursor: pointer; border-radius: 4px; border: 1px solid #ccc; font-weight: bold; }
833
833
  .btn-confirm { background: #007bff; color: white; border: none; }
834
+ .btn-confirm[disabled] {
835
+ /* 1. 마우스 커서를 불가능(금지) 모양으로 변경 */
836
+ cursor: not-allowed;
837
+
838
+ /* 2. 버튼을 반투명하게 만들어 비활성화된 느낌 부여 */
839
+ opacity: 0.5;
840
+
841
+ /* 3. 혹시 모를 마우스 클릭/호버 이벤트 완전히 차단 */
842
+ pointer-events: none;
843
+
844
+ /* 4. (선택사항) 배경색이나 보더를 더 연한 회색 톤으로 다운 */
845
+ background-color: #e0e0e0;
846
+ color: #a0a0a0;
847
+ border-color: #d0d0d0;
848
+ }
834
849
 
835
850
  .tab-pages .tab-page {
836
851
  height: 100%;
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, _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, _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() {
@@ -17085,6 +17085,7 @@ class NotificationHandler {
17085
17085
  * 레이어별로 순차 도착하는 파일들을 유실 없이 배열 버퍼에 수집
17086
17086
  */
17087
17087
  __privateAdd(this, _collectModifySource, (data) => {
17088
+ if (!data || !data.source) return;
17088
17089
  const filePayload = {
17089
17090
  layer: data.layer || "Unknown",
17090
17091
  full_path: data.full_path || "unknown_file",
@@ -17114,15 +17115,18 @@ class NotificationHandler {
17114
17115
  * [분리 비즈니스 로직 2] 수신된 소스코드 데이터 유효성 검증 및 추후 파일 저장 연동
17115
17116
  */
17116
17117
  __privateAdd(this, _generateSource, async (data) => {
17117
- if (data.layer) ;
17118
+ if (!data.path || !data.source) return;
17118
17119
  const res = await api.post("/nine-mu/source/generateRealFileSingle", {
17119
17120
  //package_path: data.path,
17120
17121
  //file_name: data.file_name,
17121
- currentPath: location.pathname,
17122
+ currentPath: data.path,
17122
17123
  contents: data.source
17123
17124
  });
17124
17125
  trace.log(res);
17125
17126
  });
17127
+ __privateAdd(this, _generateMenu, async (data) => {
17128
+ trace.log(data);
17129
+ });
17126
17130
  __privateSet(this, _owner, owner);
17127
17131
  }
17128
17132
  /**
@@ -17147,25 +17151,18 @@ handleLoggingMessage_fn = function(params) {
17147
17151
  __privateGet(this, _owner).addMessage("ai", message);
17148
17152
  __privateGet(this, _owner).addMessage("ing", "");
17149
17153
  }
17150
- switch (logger) {
17151
- case "generate-source-brain":
17152
- if (data && data.source) {
17153
- __privateGet(this, _generateSource).call(this, data);
17154
- }
17155
- break;
17156
- case "modify-source-brain":
17157
- if (data && data.source) {
17158
- __privateGet(this, _collectModifySource).call(this, data);
17159
- }
17160
- break;
17161
- case "modify-source-brain-completed":
17162
- __privateGet(this, _openDiffPopup).call(this);
17163
- break;
17164
- }
17154
+ const runAction = {
17155
+ "generate-menu-completed": () => __privateGet(this, _generateMenu).call(this, data),
17156
+ "generate-source-brain": () => __privateGet(this, _generateSource).call(this, data),
17157
+ "modify-source-brain": () => __privateGet(this, _collectModifySource).call(this, data),
17158
+ "modify-source-brain-completed": () => __privateGet(this, _openDiffPopup).call(this)
17159
+ }[logger];
17160
+ runAction == null ? void 0 : runAction();
17165
17161
  };
17166
17162
  _collectModifySource = new WeakMap();
17167
17163
  _openDiffPopup = new WeakMap();
17168
17164
  _generateSource = new WeakMap();
17165
+ _generateMenu = new WeakMap();
17169
17166
  class NineChatManager {
17170
17167
  constructor(owner, callbacks = {}) {
17171
17168
  __privateAdd(this, _NineChatManager_instances);
@@ -17536,17 +17533,6 @@ initActions_fn = function() {
17536
17533
  __privateGet(this, _manager).addChatHistory(parsed.message);
17537
17534
  __privateGet(this, _$nineChatMessage).add("ai", parsed.message);
17538
17535
  const asis = await __privateGet(this, _manager).getRoutes();
17539
- if ((parsed == null ? void 0 : parsed.selected_tool) === "generator-menu") {
17540
- const hasCreated = parsed == null ? void 0 : parsed.data.some((item) => item.action === "CREATE");
17541
- const hasUpdated = parsed == null ? void 0 : parsed.data.some((item) => item.action === "UPDATE");
17542
- const hasDeleted = parsed == null ? void 0 : parsed.data.some((item) => item.action === "DELETE");
17543
- if (hasUpdated || hasCreated || hasDeleted) {
17544
- nine$1.alert("메뉴 정리를 위한 라우터 정보 저장 화면으로 이동합니다.").then((res) => {
17545
- const tobe = ((parsed == null ? void 0 : parsed.data) || []).filter((item) => item.action !== "DELETE").map(({ isNew, action, ...rest }) => rest);
17546
- __privateGet(this, _showDiff).call(this, asis, tobe, "json");
17547
- });
17548
- }
17549
- }
17550
17536
  } catch (err2) {
17551
17537
  trace.error(err2);
17552
17538
  const fallbackMessage = ((_d = (_c = result == null ? void 0 : result.content) == null ? void 0 : _c[0]) == null ? void 0 : _d.text) || "응답 데이터를 해석하지 못했습니다.";
@@ -17561,7 +17547,7 @@ render_fn = function() {
17561
17547
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
17562
17548
  this.shadowRoot.innerHTML = `
17563
17549
  <style>
17564
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.322"}/dist/css/nine-mu.css";
17550
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.324"}/dist/css/nine-mu.css";
17565
17551
  ${customImport}
17566
17552
  </style>
17567
17553
  <div class="wrapper">
@@ -43813,7 +43799,7 @@ class NineDiff extends HTMLElement {
43813
43799
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43814
43800
  this.shadowRoot.innerHTML = `
43815
43801
  <style>
43816
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.322"}/dist/css/nine-mu.css";
43802
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.324"}/dist/css/nine-mu.css";
43817
43803
  ${customImport}
43818
43804
  </style>
43819
43805
 
@@ -43953,7 +43939,7 @@ renderScaffolding_fn = function() {
43953
43939
  const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
43954
43940
  this.shadowRoot.innerHTML = `
43955
43941
  <style>
43956
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.322"}/dist/css/nine-mu.css";
43942
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.324"}/dist/css/nine-mu.css";
43957
43943
  ${customImport}
43958
43944
  </style>
43959
43945
 
@@ -44062,7 +44048,7 @@ render_fn2 = function() {
44062
44048
  const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
44063
44049
  this.shadowRoot.innerHTML = `
44064
44050
  <style>
44065
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.322"}/dist/css/nine-mu.css";
44051
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.324"}/dist/css/nine-mu.css";
44066
44052
  ${customImport}
44067
44053
  </style>
44068
44054
 
@@ -44393,7 +44379,7 @@ class ChatMessageBody extends HTMLElement {
44393
44379
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44394
44380
  this.shadowRoot.innerHTML = `
44395
44381
  <style>
44396
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.322"}/dist/css/nine-mu.css";
44382
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.324"}/dist/css/nine-mu.css";
44397
44383
  ${customImport}
44398
44384
  </style>
44399
44385
 
@@ -44487,7 +44473,7 @@ if (!customElements.get("nine-chat-progress")) {
44487
44473
  customElements.define("nine-chat-progress", ProgressMessage);
44488
44474
  }
44489
44475
  const NineMu = {
44490
- version: "0.1.322",
44476
+ version: "0.1.324",
44491
44477
  init: (config2) => {
44492
44478
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
44493
44479
  }