@nine-lab/nine-mu 0.1.128 → 0.1.129

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.128",
3
+ "version": "0.1.129",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -78,13 +78,16 @@ export class NineChat extends HTMLElement {
78
78
  // 2. [핵심] MCP Client를 통해 AI에게 메시지 전달
79
79
  // AI가 '메뉴 생성'이 필요하다고 판단하면 등록된 도구를 스스로 호출합니다.
80
80
  const result = await this.#mcpClient.callTool({
81
- name: "chat_agent", // 모든 요청을 처리하는 통합 에이전트 도구 (예시)
81
+ name: "chat_agent",
82
82
  arguments: {
83
- query: userPrompt,
83
+ // 🔴 여기를 확인하세요!
84
+ // 서버 Zod 스키마가 { userInput: z.string() } 이므로 이름을 맞춰야 합니다.
85
+ userInput: userPrompt,
86
+
84
87
  context: {
85
88
  routesPath: this.#routesPath,
86
89
  packageName: this.#packageName,
87
- targets: Array.from(this.shadowRoot.querySelectorAll('input[name="gen_target"]:checked')).map(el => el.value)
90
+ genTargets: Array.from(this.shadowRoot.querySelectorAll('input[name="gen_target"]:checked')).map(el => el.value)
88
91
  }
89
92
  }
90
93
  });