@nine-lab/nine-mu 0.1.165 → 0.1.167
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/dist/nine-mu.js +15 -13
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineChat.js +3 -0
- package/src/components/NineChatManager.js +14 -4
package/package.json
CHANGED
|
@@ -89,9 +89,12 @@ export class NineChat extends HTMLElement {
|
|
|
89
89
|
e.target.value = "";
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
+
console.log("===========start");
|
|
92
93
|
// 3. nine.safe로 매니저 로직 실행
|
|
93
94
|
const [_, err] = await nine.safe(this.#manager.handleChatSubmit(e.target));
|
|
94
95
|
|
|
96
|
+
console.log("===========end");
|
|
97
|
+
|
|
95
98
|
if (err) {
|
|
96
99
|
console.error("Manager 실행 에러:", err);
|
|
97
100
|
// 필요 시 'ing' 메시지 제거 및 사용자 알림
|
|
@@ -124,8 +124,12 @@ export class NineChatManager {
|
|
|
124
124
|
async #callTool(toolName, args = {}) {
|
|
125
125
|
|
|
126
126
|
this.#updateStatus("AI 분석 중...");
|
|
127
|
+
console.log(22222);
|
|
127
128
|
|
|
128
|
-
this.#mcpClient.callTool({ name: toolName, arguments: args })
|
|
129
|
+
const response = this.#mcpClient.callTool({ name: toolName, arguments: args });
|
|
130
|
+
console.log(333333);
|
|
131
|
+
return response;
|
|
132
|
+
/**
|
|
129
133
|
.then((res) => {
|
|
130
134
|
trace.log(res);
|
|
131
135
|
//this.#updateStatus("✅ MCP Connected");
|
|
@@ -134,7 +138,7 @@ export class NineChatManager {
|
|
|
134
138
|
trace.error(err);
|
|
135
139
|
this.#updateStatus("에러 발생");
|
|
136
140
|
throw err;
|
|
137
|
-
});
|
|
141
|
+
}); */
|
|
138
142
|
}
|
|
139
143
|
|
|
140
144
|
handleChatSubmit = async el => {
|
|
@@ -143,10 +147,16 @@ export class NineChatManager {
|
|
|
143
147
|
|
|
144
148
|
const routes = [];
|
|
145
149
|
|
|
146
|
-
|
|
150
|
+
console.log(1111111);
|
|
151
|
+
|
|
152
|
+
const response = await this.#callTool("system-brain", {
|
|
147
153
|
user_input : el.value.trim(),
|
|
148
154
|
routes : routes,
|
|
149
155
|
current_path : "/group_member/student_management",
|
|
150
|
-
})
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
console.log(44444);
|
|
159
|
+
|
|
160
|
+
return response;
|
|
151
161
|
}
|
|
152
162
|
}
|