@nine-lab/nine-mu 0.1.207 β†’ 0.1.209

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.207",
3
+ "version": "0.1.209",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -67,26 +67,32 @@ export class NineChatManager {
67
67
  { method: "logging/setLevel", params: { level: "info" } },
68
68
  z.object({})
69
69
  );
70
- trace.log("πŸš€ MCP λ‘œκΉ… 채널 ν™œμ„±ν™”");
71
- } catch (e) {
72
- trace.warn("λ‘œκΉ… 채널 μ΄ˆκΈ°ν™” 패슀 (μ»€μŠ€ν…€ 슀트림 λŒ€μ‘):", e);
73
- }
70
+ } catch (e) {}
71
+
72
+ // 2️⃣ [MCP μž¬λ„μ „ 성곡 팁] μ™ΈλΆ€ μŠ€ν‚€λ§ˆ λŒ€μ‹ , λ‚΄λΆ€ 검증기가 λ”± μ’‹μ•„ν•˜λŠ” ꡬ쑰λ₯Ό 직접 λ˜μ Έμ€λ‹ˆλ‹€.
73
+ // μ΄λ ‡κ²Œ ν•˜λ©΄ 'Schema is missing a method literal' μ—λŸ¬λ„ μ•ˆ λ‚˜κ³ , 데이터도 100% ν†΅κ³Όν•©λ‹ˆλ‹€.
74
+ const customNotificationSchema = z.object({
75
+ method: z.literal("notifications/logging/message"), // πŸ‘ˆ 검증기가 μ°ΎλŠ” λ¦¬ν„°λŸ΄ λ”± λͺ…μ‹œ!
76
+ params: z.object({
77
+ level: z.string(),
78
+ logger: z.string(),
79
+ message: z.string()
80
+ })
81
+ });
74
82
 
75
-
76
- // 2️⃣ [MCP 정곡법 볡귀] λ“œλ””μ–΄ 정식 μŠ€ν‚€λ§ˆμ™€ ν•Έλ“€λŸ¬ ꡬ쑰둜 λ‹Ήλ‹Ήν•˜κ²Œ λ“±λ‘ν•©λ‹ˆλ‹€!
77
83
  this.#mcpClient.setNotificationHandler(
78
- LoggingMessageNotificationSchema, // πŸ‘ˆ μ™ΈλΆ€ μž„ν¬νŠΈν•œ 정식 Zod μŠ€ν‚€λ§ˆ 객체
84
+ customNotificationSchema, // πŸ‘ˆ 껍데기 ν†΅κ³Όμš© μ»€μŠ€ν…€ μŠ€ν‚€λ§ˆ
79
85
  (notification) => {
80
86
  try {
81
- trace.log("πŸ”” [MCP 정식 μ—”μ§„ μˆ˜μ‹  성곡]:", notification);
87
+ trace.log("πŸ”” [MCP μ—”μ§„ 우회 성곡] μ•Œλ¦Ό 도착:", notification);
82
88
 
83
89
  const logData = JSON.parse(notification.params.message);
84
90
  if (logData.type === "BRAIN_DECISION") {
85
- // 주석을 μ™„μ „νžˆ ν’€κ³  화면에 타닀λ‹₯ λΏŒλ €μ€λ‹ˆλ‹€!
86
- //this.#pushMessage('assistant', logData.message);
91
+ // λ“œλ””μ–΄ MCP 정식 ν•Έλ“€λŸ¬λ₯Ό 타고 UI에 μ•ˆμ°©!
92
+ // this.#pushMessage('assistant', logData.message);
87
93
  }
88
94
  } catch (e) {
89
- trace.warn("μ•Œλ¦Ό λ‚΄λΆ€ 데이터 νŒŒμ‹± μ‹€νŒ¨:", e);
95
+ trace.warn("μ•Œλ¦Ό λ‚΄λΆ€ νŒŒμ‹± μ—λŸ¬:", e);
90
96
  }
91
97
  }
92
98
  );