@nine-lab/nine-mu 0.1.209 → 0.1.210
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 +7 -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/NineChatManager.js +6 -14
package/package.json
CHANGED
|
@@ -48,19 +48,6 @@ export class NineChatManager {
|
|
|
48
48
|
this.#updateStatus("✅ MCP Connected");
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
/**
|
|
52
|
-
transport._socket.onmessage = (event) => {
|
|
53
|
-
try {
|
|
54
|
-
trace.log(event);
|
|
55
|
-
const data = JSON.parse(event.data);
|
|
56
|
-
// 백엔드가 보낸 우리만의 비밀 표식이 있다면?
|
|
57
|
-
if (data.isCustomLiveMessage) {
|
|
58
|
-
// UI에 실시간 중간 멘트 꽂기 끝!
|
|
59
|
-
//this.#pushMessage('assistant', data.message);
|
|
60
|
-
}
|
|
61
|
-
} catch(e) {}
|
|
62
|
-
};
|
|
63
|
-
*/
|
|
64
51
|
// 1️⃣ MCP 규격 기동을 위한 핸드셰이크 활성화
|
|
65
52
|
try {
|
|
66
53
|
await this.#mcpClient.request(
|
|
@@ -83,6 +70,11 @@ export class NineChatManager {
|
|
|
83
70
|
this.#mcpClient.setNotificationHandler(
|
|
84
71
|
customNotificationSchema, // 👈 껍데기 통과용 커스텀 스키마
|
|
85
72
|
(notification) => {
|
|
73
|
+
//notification.params.message
|
|
74
|
+
trace.log(notification);
|
|
75
|
+
|
|
76
|
+
this.add("ai", notification.params.message);
|
|
77
|
+
/**
|
|
86
78
|
try {
|
|
87
79
|
trace.log("🔔 [MCP 엔진 우회 성공] 알림 도착:", notification);
|
|
88
80
|
|
|
@@ -93,7 +85,7 @@ export class NineChatManager {
|
|
|
93
85
|
}
|
|
94
86
|
} catch (e) {
|
|
95
87
|
trace.warn("알림 내부 파싱 에러:", e);
|
|
96
|
-
}
|
|
88
|
+
}*/
|
|
97
89
|
}
|
|
98
90
|
);
|
|
99
91
|
})
|