@nine-lab/nine-mu 0.1.166 → 0.1.168
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
|
@@ -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' 메시지 제거 및 사용자 알림
|
|
@@ -99,6 +102,8 @@ export class NineChat extends HTMLElement {
|
|
|
99
102
|
nine.alert("메시지 전송 중 오류가 발생했습니다.").rgb().shake();
|
|
100
103
|
}
|
|
101
104
|
|
|
105
|
+
console.log(e.target);
|
|
106
|
+
|
|
102
107
|
e.target.removeAttribute('disabled');
|
|
103
108
|
}
|
|
104
109
|
});
|
|
@@ -124,10 +124,9 @@ export class NineChatManager {
|
|
|
124
124
|
async #callTool(toolName, args = {}) {
|
|
125
125
|
|
|
126
126
|
this.#updateStatus("AI 분석 중...");
|
|
127
|
-
console.log(22222);
|
|
128
127
|
|
|
129
128
|
const response = this.#mcpClient.callTool({ name: toolName, arguments: args });
|
|
130
|
-
|
|
129
|
+
|
|
131
130
|
return response;
|
|
132
131
|
/**
|
|
133
132
|
.then((res) => {
|
|
@@ -147,16 +146,12 @@ export class NineChatManager {
|
|
|
147
146
|
|
|
148
147
|
const routes = [];
|
|
149
148
|
|
|
150
|
-
console.log(1111111);
|
|
151
|
-
|
|
152
149
|
const response = await this.#callTool("system-brain", {
|
|
153
150
|
user_input : el.value.trim(),
|
|
154
151
|
routes : routes,
|
|
155
152
|
current_path : "/group_member/student_management",
|
|
156
153
|
});
|
|
157
154
|
|
|
158
|
-
console.log(44444);
|
|
159
|
-
|
|
160
155
|
return response;
|
|
161
156
|
}
|
|
162
157
|
}
|