@nine-lab/nine-mu 0.1.261 → 0.1.263
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 +19 -17
- 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 +7 -0
- package/src/components/NineChatManager.js +6 -7
- package/src/components/NotificationHandler.js +0 -9
package/package.json
CHANGED
|
@@ -11,9 +11,14 @@ export class NineChat extends HTMLElement {
|
|
|
11
11
|
#routesPath;
|
|
12
12
|
#connectorUrl;
|
|
13
13
|
#manager;
|
|
14
|
+
#config;
|
|
14
15
|
|
|
15
16
|
#$nineChatMessage;
|
|
16
17
|
|
|
18
|
+
get config() {
|
|
19
|
+
return this.#config;
|
|
20
|
+
}
|
|
21
|
+
|
|
17
22
|
constructor() {
|
|
18
23
|
super();
|
|
19
24
|
this.attachShadow({ mode: 'open' });
|
|
@@ -33,6 +38,8 @@ export class NineChat extends HTMLElement {
|
|
|
33
38
|
this.#initActions(); // 엔터 시 실행 로직
|
|
34
39
|
|
|
35
40
|
const res = await api.post("/nine-mu/config/get", {});
|
|
41
|
+
|
|
42
|
+
this.#config = res;
|
|
36
43
|
this.#routesPath = res?.userDir + "/" + this.#packageName + "/public/prompts/data/routes.json";
|
|
37
44
|
|
|
38
45
|
|
|
@@ -169,7 +169,9 @@ export class NineChatManager {
|
|
|
169
169
|
analyzeUnmappedRoutes = async (routes) => {
|
|
170
170
|
|
|
171
171
|
// 1. 백엔드 Java 컨트롤러로 미개발 라우트 분석 요청
|
|
172
|
-
const res = await api.post("/nine-mu/config/getUnmappedRoutes", {
|
|
172
|
+
const res = await api.post("/nine-mu/config/getUnmappedRoutes", {
|
|
173
|
+
routes: routes
|
|
174
|
+
});
|
|
173
175
|
|
|
174
176
|
trace.log(res);
|
|
175
177
|
|
|
@@ -181,17 +183,14 @@ export class NineChatManager {
|
|
|
181
183
|
return;
|
|
182
184
|
}
|
|
183
185
|
|
|
184
|
-
trace.log(unmappedRoutes);
|
|
186
|
+
trace.log(unmappedRoutes, this.#owner.config);
|
|
185
187
|
|
|
186
|
-
|
|
188
|
+
return await this.#callTool("generate-source-brain", {
|
|
187
189
|
user_input: `다음 미개발 라우트에 대한 소스코드(Controller, Service, MyBatis, React)를 생성해줘.`,
|
|
190
|
+
base_package: this.#owner.config.basePackage, // nine.edu
|
|
188
191
|
//chat_history: "",
|
|
189
192
|
routes: unmappedRoutes, // 미개발된 해당 라우트 정보 객체
|
|
190
193
|
//current_path: route.path, // 현재 생성 기준 패스 명시
|
|
191
194
|
});
|
|
192
|
-
|
|
193
|
-
trace.log(a);
|
|
194
|
-
|
|
195
|
-
return a;
|
|
196
195
|
};
|
|
197
196
|
}
|
|
@@ -50,15 +50,6 @@ export class NotificationHandler {
|
|
|
50
50
|
// 방어용 헬퍼 객체를 호출하여 소스 파싱 검증을 수행하는 등의 정석 로직이 들어갈 자리입니다.
|
|
51
51
|
this.#processSourceData(data);
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
if (data) {
|
|
56
|
-
if (data.source && data.file_name && data.path && data.mode === "CREATE" && data.status === "PROGRESS") {
|
|
57
|
-
trace.log(`[시그널 감지] 설계 완료`, data);
|
|
58
|
-
|
|
59
|
-
this.#processSourceData(data);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
53
|
}
|
|
63
54
|
|
|
64
55
|
/**
|