@nine-lab/nine-mu 0.1.201 β†’ 0.1.202

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.201",
3
+ "version": "0.1.202",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -47,23 +47,26 @@ export class NineChatManager {
47
47
  .then( async () => {
48
48
  this.#updateStatus("βœ… MCP Connected");
49
49
 
50
- this.#mcpClient.onnotification = (notification) => {
51
- trace.log("πŸ”” μ‹€μ‹œκ°„ μ•Œλ¦Ό 도착:", notification);
52
-
53
- if (notification?.method === "notifications/logging/message") {
54
- try {
55
- const logData = JSON.parse(notification.params.message);
56
-
57
- if (logData.type === "BRAIN_DECISION") {
58
- //this.#updateStatus("브레인 뢄석 μˆ˜μ‹  μ™„λ£Œ");
50
+ try {
51
+ await this.#mcpClient.request(
52
+ { method: "logging/setLevel", params: { level: "info" } },
53
+ z.object({}) // 빈 응닡 μŠ€ν‚€λ§ˆ 객체 검증
54
+ );
55
+ trace.log("πŸš€ MCP λ‘œκΉ… μ„Έμ…˜ ν™œμ„±ν™” μ™„λ£Œ (Level: info)");
56
+ } catch (linkErr) {
57
+ trace.error("❌ λ‘œκΉ… μ„Έμ…˜ ν™œμ„±ν™” μ‹€νŒ¨:", linkErr);
58
+ }
59
59
 
60
- // πŸ’‘ [확인] 주석을 ν’€μ–΄μ„œ UI 챗창에 λ©”μ‹œμ§€λ₯Ό κ½‚μ•„μ€λ‹ˆλ‹€!
61
- //this.#pushMessage('assistant', logData.message);
62
- }
63
- } catch (e) {
64
- trace.warn("μ•Œλ¦Ό λ‚΄λΆ€ JSON νŒŒμ‹± μ‹€νŒ¨:", e);
60
+ transport._socket.onmessage = (event) => {
61
+ try {
62
+ trace.log(event);
63
+ const data = JSON.parse(event.data);
64
+ // λ°±μ—”λ“œκ°€ 보낸 우리만의 λΉ„λ°€ ν‘œμ‹μ΄ μžˆλ‹€λ©΄?
65
+ if (data.isCustomLiveMessage) {
66
+ // UI에 μ‹€μ‹œκ°„ 쀑간 멘트 꽂기 끝!
67
+ //this.#pushMessage('assistant', data.message);
65
68
  }
66
- }
69
+ } catch(e) {}
67
70
  };
68
71
 
69
72
  /**