@nine-lab/nine-mu 0.1.238 → 0.1.240
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 +13 -20
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +3 -3
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineChat.js +3 -17
- package/src/components/NineChatManager.js +8 -0
package/package.json
CHANGED
|
@@ -7,7 +7,6 @@ import { WebSocketClientTransport } from "@modelcontextprotocol/sdk/client/webso
|
|
|
7
7
|
|
|
8
8
|
export class NineChat extends HTMLElement {
|
|
9
9
|
#service = null;
|
|
10
|
-
#routes = [];
|
|
11
10
|
#packageName;
|
|
12
11
|
#routesPath;
|
|
13
12
|
#connectorUrl;
|
|
@@ -38,7 +37,7 @@ export class NineChat extends HTMLElement {
|
|
|
38
37
|
|
|
39
38
|
|
|
40
39
|
// 경로 데이터 로드
|
|
41
|
-
this.#routes = await this.#service.fetchRoutes(this.getAttribute('route-url'));
|
|
40
|
+
//this.#routes = await this.#service.fetchRoutes(this.getAttribute('route-url'));
|
|
42
41
|
|
|
43
42
|
this.#manager = new NineChatManager(this);
|
|
44
43
|
}
|
|
@@ -230,21 +229,8 @@ export class NineChat extends HTMLElement {
|
|
|
230
229
|
}
|
|
231
230
|
|
|
232
231
|
#sourceGenHandler = async e => {
|
|
233
|
-
const
|
|
234
|
-
const
|
|
235
|
-
|
|
236
|
-
try {
|
|
237
|
-
const result = await this.#service.generateAll(command, targets, this.#routes);
|
|
238
|
-
|
|
239
|
-
// 4. 성공 처리
|
|
240
|
-
$status.textContent = "✅ 완료";
|
|
241
|
-
nine.alert("소스 생성 성공").rgb();
|
|
242
|
-
this.dispatchEvent(new CustomEvent('nine-mu-completed', { detail: result, bubbles: true }));
|
|
243
|
-
} catch (err) {
|
|
244
|
-
// 5. 실패 처리
|
|
245
|
-
$status.textContent = "❌ 실패";
|
|
246
|
-
nine.alert(err.message).rgb().shake();
|
|
247
|
-
}
|
|
232
|
+
const routes = await this.#manager.getRoutes();
|
|
233
|
+
const response = await this.#manager.analyzeUnmappedRoutes(routes);
|
|
248
234
|
}
|
|
249
235
|
|
|
250
236
|
#showDiff = (asis, tobe, lang) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
2
2
|
import { WebSocketClientTransport } from "@modelcontextprotocol/sdk/client/websocket.js";
|
|
3
3
|
import { trace } from "@nopeer";
|
|
4
|
+
import { api } from "@nine-lab/nine-util";
|
|
4
5
|
import { z } from "zod";
|
|
5
6
|
import { LoggingMessageNotificationSchema } from "@modelcontextprotocol/sdk/types.js";
|
|
6
7
|
|
|
@@ -151,4 +152,11 @@ export class NineChatManager {
|
|
|
151
152
|
current_path : currentPath,
|
|
152
153
|
});
|
|
153
154
|
}
|
|
155
|
+
|
|
156
|
+
/** 백엔드 통신 */
|
|
157
|
+
analyzeUnmappedRoutes = async (routes) => {
|
|
158
|
+
|
|
159
|
+
const res = await api.post("/nine-mu/config/getUnmappedRoutes", { routes : routes });
|
|
160
|
+
console.log(res);
|
|
161
|
+
};
|
|
154
162
|
}
|