@nine-lab/nine-mu 0.1.170 → 0.1.171

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.170",
3
+ "version": "0.1.171",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -97,9 +97,10 @@ export class NineChat extends HTMLElement {
97
97
  console.error("Manager 실행 에러:", err);
98
98
  // 필요 시 'ing' 메시지 제거 및 사용자 알림
99
99
  this.shadowRoot.querySelectorAll("nx-ai-ing-message").forEach(el => el.remove());
100
- nine.alert("메시지 전송 중 오류가 발생했습니다.").rgb().shake();
101
100
  } else {
102
101
  console.log(result);
102
+ //this.#$nineChatMessage.add("me", userInput);
103
+ this.#$nineChatMessage.add("ai", result.message); // 로딩 상태
103
104
  }
104
105
  }
105
106
  });
@@ -122,36 +122,17 @@ export class NineChatManager {
122
122
  }
123
123
 
124
124
  async #callTool(toolName, args = {}) {
125
-
126
- this.#updateStatus("AI 분석 중...");
127
-
128
- const response = this.#mcpClient.callTool({ name: toolName, arguments: args });
129
-
130
- return response;
131
- /**
132
- .then((res) => {
133
- trace.log(res);
134
- //this.#updateStatus("✅ MCP Connected");
135
- })
136
- .catch((err) => {
137
- trace.error(err);
138
- this.#updateStatus("에러 발생");
139
- throw err;
140
- }); */
125
+ return this.#mcpClient.callTool({ name: toolName, arguments: args });
141
126
  }
142
127
 
143
128
  handleChatSubmit = async el => {
144
129
 
145
- trace.log(this.#mcpClient);
146
-
147
130
  const routes = [];
148
131
 
149
- const response = await this.#callTool("system-brain", {
132
+ return await this.#callTool("system-brain", {
150
133
  user_input : el.value.trim(),
151
134
  routes : routes,
152
135
  current_path : "/group_member/student_management",
153
136
  });
154
-
155
- return response;
156
137
  }
157
138
  }