@nine-lab/nine-mu 0.1.157 → 0.1.159

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.157",
3
+ "version": "0.1.159",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -78,7 +78,7 @@ export class NineChat extends HTMLElement {
78
78
  if (e.key === 'Enter' && !e.shiftKey) {
79
79
  e.preventDefault();
80
80
 
81
- const userInput = e.target.value.trim();
81
+ const userInput = $textarea.value.trim();
82
82
  if (!userInput || this.isProcessing) return;
83
83
 
84
84
  this.isProcessing = true;
@@ -88,10 +88,12 @@ export class NineChat extends HTMLElement {
88
88
  this.#$nineChatMessage.add("ing", ""); // 로딩 상태
89
89
 
90
90
  // 2. 입력창 비우기
91
- $textarea.value = "";
91
+ setTimeout(() => {
92
+ $textarea.value = "";
93
+ });
92
94
 
93
95
  // 3. nine.safe로 매니저 로직 실행
94
- const [_, err] = await nine.safe(this.#manager.handleChatSubmit(userInput));
96
+ const [_, err] = await nine.safe(this.#manager.handleChatSubmit($textarea));
95
97
 
96
98
  if (err) {
97
99
  console.error("Manager 실행 에러:", err);