@nine-lab/nine-mu 0.1.231 → 0.1.233

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.231",
3
+ "version": "0.1.233",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -116,13 +116,12 @@ export class NineChat extends HTMLElement {
116
116
  //trace.log(parsed.data);
117
117
 
118
118
 
119
- const currRoutes = await this.#manager.getRoutes();
119
+ const asis = await this.#manager.getRoutes();
120
120
 
121
121
  if (parsed?.selected_tool === "source-missing") {
122
122
  nine.alert("메뉴 정리를 위한 라우터 정보 저장 화면으로 이동합니다.").then(res => {
123
-
124
- trace.log(currRoutes, parsed?.data);
125
- this.#showDiff(currRoutes, parsed?.data, "json");
123
+ const tobe = (parsed?.data || []).map(({ isNew, ...rest }) => rest);
124
+ this.#showDiff(asis, tobe, "json");
126
125
  });
127
126
  }
128
127
 
@@ -103,22 +103,11 @@ export class NineDiffPopup extends HTMLElement {
103
103
 
104
104
  #handleConfirm() {
105
105
  // 에디터에서 직접 콘텐츠 추출
106
- const jsonString = this.#diffView ? this.#diffView.getContents() : this.#asisBackup;
107
-
108
- const cleanedData = JSON.parse(jsonString, (key, value) => {
109
- if (key === 'isNew') {
110
- return undefined;
111
- }
112
- return value;
113
- });
114
-
115
- console.log(JSON.stringify(cleanedData));
116
-
117
- return;
106
+ const content = this.#diffView ? this.#diffView.getContents() : this.#asisBackup;
118
107
 
119
108
  const params = {
120
109
  packageName: this.#host.getAttribute('package-name'),
121
- contents: finalContent,
110
+ contents: content,
122
111
  }
123
112
 
124
113
  api.post(`/nine-mu/source/generateJsonFile`, params).then(res => {