@nine-lab/nine-mu 0.1.235 → 0.1.236

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.235",
3
+ "version": "0.1.236",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -119,10 +119,16 @@ export class NineChat extends HTMLElement {
119
119
  const asis = await this.#manager.getRoutes();
120
120
 
121
121
  if (parsed?.selected_tool === "source-missing") {
122
- nine.alert("메뉴 정리를 위한 라우터 정보 저장 화면으로 이동합니다.").then(res => {
123
- const tobe = (parsed?.data || []).map(({ isNew, ...rest }) => rest);
124
- this.#showDiff(asis, tobe, "json");
125
- });
122
+ const hasCreated = parsed?.data.some(item => item.action === 'CREATE');
123
+ const hasUpdated = parsed?.data.some(item => item.action === 'UPDATE');
124
+
125
+ if (hasUpdated || hasCreated) {
126
+ // 진짜 메뉴명 변경이나 이동만 요청한 경우
127
+ nine.alert("메뉴 정리를 위한 라우터 정보 저장 화면으로 이동합니다.").then(res => {
128
+ const tobe = (parsed?.data || []).map(({ isNew, action, ...rest }) => rest);
129
+ this.#showDiff(asis, tobe, "json");
130
+ });
131
+ }
126
132
  }
127
133
 
128
134