@nine-lab/nine-mu 0.1.246 → 0.1.247

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.246",
3
+ "version": "0.1.247",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -155,34 +155,28 @@ export class NineChatManager {
155
155
 
156
156
  /** 백엔드 통신 */
157
157
  analyzeUnmappedRoutes = async (routes) => {
158
- try {
159
- // 1. 백엔드 Java 컨트롤러로 미개발 라우트 분석 요청
160
- const res = await api.post("/nine-mu/config/getUnmappedRoutes", { routes: routes });
161
158
 
162
- trace.log(res);
159
+ // 1. 백엔드 Java 컨트롤러로 미개발 라우트 분석 요청
160
+ const res = await api.post("/nine-mu/config/getUnmappedRoutes", { routes: routes });
163
161
 
164
- // 백엔드 반환 데이터 안전하게 추출 (res.data 구조 확인 필요)
165
- const unmappedRoutes = res?.data?.unmappedRoutes || res?.unmappedRoutes || [];
162
+ trace.log(res);
166
163
 
167
- if (unmappedRoutes.length === 0) {
168
- nine.alert("미개발된 라우터가 없습니다. 모두 매핑되어 있습니다.");
169
- return;
170
- }
164
+ // 백엔드 반환 데이터 안전하게 추출 (res.data 구조 확인 필요)
165
+ const unmappedRoutes = res?.data?.unmappedRoutes || res?.unmappedRoutes || [];
171
166
 
172
- trace.log(unmappedRoutes);
167
+ if (unmappedRoutes.length === 0) {
168
+ nine.alert("미개발된 라우터가 없습니다. 모두 매핑되어 있습니다.");
169
+ return;
170
+ }
173
171
 
174
- return await this.#callTool("generate-source-brain", {
175
- //user_input: `다음 미개발 라우트에 대한 백엔드 소스코드(Controller, Service, MyBatis)를 생성해줘.`,
176
- //chat_history: "",
177
- routes: unmappedRoutes, // 미개발된 해당 라우트 정보 객체
178
- //current_path: route.path, // 현재 생성 기준 패스 명시
179
- });
172
+ trace.log(unmappedRoutes);
173
+
174
+ return await this.#callTool("generate-source-brain", {
175
+ //user_input: `다음 미개발 라우트에 대한 백엔드 소스코드(Controller, Service, MyBatis)를 생성해줘.`,
176
+ //chat_history: "",
177
+ routes: unmappedRoutes, // 미개발된 해당 라우트 정보 객체
178
+ //current_path: route.path, // 현재 생성 기준 패스 명시
179
+ });
180
180
 
181
- } catch (error) {
182
- console.error("미개발 라우트 분석 중 오류 발생:", error);
183
- if (nine && typeof nine.alert === 'function') {
184
- nine.alert("소스 생성 분석 중 오류가 발생했습니다.");
185
- }
186
- }
187
181
  };
188
182
  }