@nine-lab/nine-mu 0.1.236 → 0.1.238

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