@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/dist/nine-mu.js +11 -11
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineChat.js +8 -9
package/package.json
CHANGED
|
@@ -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
|
|
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(
|
|
115
|
+
trace.log(parsed.action.selected_tool);
|
|
116
|
+
//"source-missing"
|
|
117
|
+
trace.log(parsed.data);
|
|
114
118
|
|
|
115
|
-
|
|
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 ๋ฑ์ ํ์ฉํ๋ฉด ๋ฉ๋๋ค!
|