@nine-lab/nine-mu 0.1.215 โ†’ 0.1.217

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.215",
3
+ "version": "0.1.217",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -105,20 +105,19 @@ export class NineChat extends HTMLElement {
105
105
  try {
106
106
  // ๐Ÿ’ก [ํ•ต์‹ฌ] MCP ๊ทœ๊ฒฉ์˜ content[0].text์—์„œ ์ŠคํŠธ๋ง์„ ์ถ”์ถœํ•ฉ๋‹ˆ๋‹ค.
107
107
  const rawText = result?.content?.[0]?.text;
108
-
109
108
  trace.log(rawText);
110
109
  // ํ…์ŠคํŠธ๋ฅผ JSON ๊ฐ์ฒด๋กœ ํŒŒ์‹ฑ
111
- const parsedData = JSON.parse(rawText);
110
+ const parsed = JSON.parse(rawText);
111
+
112
+ this.#manager.addChatHistory(parsed.message);
113
+ this.#$nineChatMessage.add("ai", parsed.message);
112
114
 
113
- trace.log(parsedData);
115
+ trace.log(parsed.action.selected_tool);
116
+ //"source-missing"
117
+ trace.log(parsed.data);
114
118
 
115
- // ๊ด€์ œํƒ‘(system-brain)์ด๋‚˜ ํ•˜์œ„ ํˆด์ด ์ค€ ์‹ค์ œ ๋Œ€ํ™” ๋ฉ”์‹œ์ง€ ์ถ”์ถœ
116
- const aiMessage = parsedData.message || "์ฒ˜๋ฆฌ๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.";
119
+ this.#showDiff(parsed.params.routes, parsed.data, "json");
117
120
 
118
- trace.log(aiMessage);
119
- // ๋งค๋‹ˆ์ € ํžˆ์Šคํ† ๋ฆฌ ์ €์žฅ ๋ฐ UI ๋ฐ˜์˜
120
- this.#manager.addChatHistory(aiMessage);
121
- this.#$nineChatMessage.add("ai", aiMessage);
122
121
 
123
122
  // ๐Ÿ’ก ๋งŒ์•ฝ intent๊ฐ€ EXECUTE_TOOL์ด๊ฑฐ๋‚˜ NAVIGATE์ผ ๋•Œ ํ”„๋ก ํŠธ์—์„œ
124
123
  // ํ™”๋ฉด ์ด๋™(Routing)์ด๋‚˜ ์ถ”๊ฐ€ ์•ก์…˜์„ ํ•ด์•ผ ํ•œ๋‹ค๋ฉด ์—ฌ๊ธฐ์„œ parsedData.target_path ๋“ฑ์„ ํ™œ์šฉํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค!