@nine-lab/nine-mu 0.1.200 โ†’ 0.1.201

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.200",
3
+ "version": "0.1.201",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -47,6 +47,25 @@ 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("๋ธŒ๋ ˆ์ธ ๋ถ„์„ ์ˆ˜์‹  ์™„๋ฃŒ");
59
+
60
+ // ๐Ÿ’ก [ํ™•์ธ] ์ฃผ์„์„ ํ’€์–ด์„œ UI ์ฑ—์ฐฝ์— ๋ฉ”์‹œ์ง€๋ฅผ ๊ฝ‚์•„์ค๋‹ˆ๋‹ค!
61
+ //this.#pushMessage('assistant', logData.message);
62
+ }
63
+ } catch (e) {
64
+ trace.warn("์•Œ๋ฆผ ๋‚ด๋ถ€ JSON ํŒŒ์‹ฑ ์‹คํŒจ:", e);
65
+ }
66
+ }
67
+ };
68
+
50
69
  /**
51
70
  // ๐Ÿ’ก [์ •์„] notificationHandlers์— ๋กœ๊น… ๋ฉ”์‹œ์ง€ ์ˆ˜์‹  ํ•ธ๋“ค๋Ÿฌ๋ฅผ ๋“ฑ๋กํ•ฉ๋‹ˆ๋‹ค.
52
71
  // ํ”„๋ผ์ด๋น— ๋ฉ”์„œ๋“œ ์ ‘๊ทผ(__privateGet) ํ•„์š” ์—†์ด public ์ธํ„ฐํŽ˜์ด์Šค๋กœ ์ œ๊ณต๋ฉ๋‹ˆ๋‹ค.
@@ -64,6 +83,7 @@ export class NineChatManager {
64
83
  }
65
84
  }
66
85
  );*/
86
+ /**
67
87
  try {
68
88
  await this.#mcpClient.request(
69
89
  { method: "logging/setLevel", params: { level: "info" } },
@@ -91,6 +111,7 @@ export class NineChatManager {
91
111
  }
92
112
  }
93
113
  };
114
+ */
94
115
  })
95
116
  .catch((err) => {
96
117
  trace.error("โŒ MCP ์—ฐ๊ฒฐ ์‹คํŒจ", err);