@nine-lab/nine-mu 0.1.178 → 0.1.179

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.178",
3
+ "version": "0.1.179",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -84,22 +84,22 @@ export class NineChat extends HTMLElement {
84
84
  this.#$nineChatMessage.add("me", userInput);
85
85
  this.#$nineChatMessage.add("ing", ""); // 로딩 상태
86
86
 
87
+ // 3. nine.safe로 매니저 로직 실행
88
+ const [result, err] = await nine.safe(this.#manager.handleChatSubmit(target.value));
89
+
87
90
  // 2. 입력창 비우기
88
91
  setTimeout(() => {
89
92
  target.value = "";
90
93
  });
91
94
 
92
- // 3. nine.safe로 매니저 로직 실행
93
- const [result, err] = await nine.safe(this.#manager.handleChatSubmit(target));
94
-
95
95
  target.removeAttribute('disabled');
96
96
  target.focus();
97
97
 
98
98
  if (err) {
99
- console.error(err);
99
+ trace.error(err);
100
100
  this.#$nineChatMessage.add("ai", err.message || "알 수 없는 오류가 발생했습니다. 다시 시도해주세요.");
101
101
  } else {
102
- console.log(result);
102
+ trace.log(result);
103
103
  this.#$nineChatMessage.add("ai", result.message);
104
104
  }
105
105
  }
@@ -139,14 +139,12 @@ export class NineChatManager {
139
139
 
140
140
 
141
141
 
142
- handleChatSubmit = async el => {
142
+ handleChatSubmit = async v => {
143
143
 
144
144
  const routes = await this.#getRoutes();
145
145
 
146
- trace.log(routes);
147
-
148
146
  return await this.#callTool("system-brain", {
149
- user_input : el.value.trim(),
147
+ user_input : v,
150
148
  routes : routes,
151
149
  current_path : "/group_member/student_management",
152
150
  });