@nine-lab/nine-mu 0.1.162 → 0.1.164

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nine-lab/nine-mu",
3
- "version": "0.1.162",
3
+ "version": "0.1.164",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -71,18 +71,16 @@ export class NineChat extends HTMLElement {
71
71
 
72
72
  const $textarea = this.shadowRoot.querySelector('#q');
73
73
 
74
- // 중복 전송 방지 플래그
75
- //this.isProcessing = false;
76
-
77
74
  $textarea.addEventListener('keypress', async (e) => {
78
75
  if (e.key === 'Enter' && !e.shiftKey) {
79
76
  e.preventDefault();
80
77
 
81
- const userInput = $textarea.value.trim();
82
- if (!userInput || this.isProcessing) return;
78
+ const userInput = e.target.value.trim();
79
+ if (!userInput) return;
83
80
 
84
81
  //this.isProcessing = true;
85
- $textarea.disabled = true;
82
+ //e.target.disabled = true;
83
+ e.target.setAttribute('disabled', 'disabled');
86
84
  trace.log("22222222222222")
87
85
 
88
86
  // 1. 즉시 UI 반영
@@ -91,7 +89,7 @@ export class NineChat extends HTMLElement {
91
89
 
92
90
  // 2. 입력창 비우기
93
91
  setTimeout(() => {
94
- $textarea.value = "";
92
+ e.target.value = "";
95
93
  });
96
94
 
97
95
  // 3. nine.safe로 매니저 로직 실행
@@ -104,7 +102,7 @@ export class NineChat extends HTMLElement {
104
102
  nine.alert("메시지 전송 중 오류가 발생했습니다.").rgb().shake();
105
103
  }
106
104
 
107
- $textarea.disabled = false;
105
+ //$textarea.disabled = false;
108
106
  //this.isProcessing = false;
109
107
  }
110
108
  });