@nine-lab/nine-mu 0.1.409 → 0.1.410

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.409",
3
+ "version": "0.1.410",
4
4
  "description": "AI-Driven Full-Stack Code Fabrication Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/nine-mu.umd.js",
@@ -72,33 +72,11 @@ export class NineNaturalQuery extends HTMLElement {
72
72
 
73
73
  trace.log(response);
74
74
  if (response.list) {
75
- const el = document.querySelector("nine-natural-query-result");
76
- if (el) {
77
- el.redraw(result.list); // 서버가 이미 실행해서 보낸 데이터를 바로 사용
75
+ const $el = document.querySelector("nine-natural-query-result");
76
+ if ($el) {
77
+ $el.redraw(response.list); // 서버가 이미 실행해서 보낸 데이터를 바로 사용
78
78
  }
79
79
  }
80
-
81
- /**
82
- const result = await response.json();
83
-
84
- if (!result.success) {
85
- // 서버에서 실행 불가능하거나 에러가 난 경우
86
- nine.alert(result.error || "질의를 처리할 수 없습니다.").rgb().shake();
87
- return;
88
- }
89
-
90
- // 3. 결과 로그 출력 (서버가 보내준 SQL과 설명)
91
- trace.log("생성된 SQL:", result.sql);
92
- trace.log("AI 설명:", result.explanation);
93
-
94
- // 4. 결과 데이터 렌더링
95
- if (result.data) {
96
- const el = document.querySelector("nine-query-result");
97
- if (el) {
98
- el.redraw(result.data); // 서버가 이미 실행해서 보낸 데이터를 바로 사용
99
- }
100
- }
101
- */
102
80
  } catch (error) {
103
81
  trace.error("서버 통신 실패:", error);
104
82
  nine.alert("서버와 연결할 수 없습니다.").rgb().shake();