@nine-lab/nine-mu 0.1.245 → 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/dist/nine-mu.js +21 -27
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineChat.js +1 -0
- package/src/components/NineChatManager.js +17 -23
package/dist/nine-mu.js
CHANGED
|
@@ -17103,28 +17103,21 @@ class NineChatManager {
|
|
|
17103
17103
|
/** 백엔드 통신 */
|
|
17104
17104
|
__publicField(this, "analyzeUnmappedRoutes", async (routes) => {
|
|
17105
17105
|
var _a2;
|
|
17106
|
-
|
|
17107
|
-
|
|
17108
|
-
|
|
17109
|
-
|
|
17110
|
-
|
|
17111
|
-
|
|
17112
|
-
return;
|
|
17113
|
-
}
|
|
17114
|
-
trace.log(unmappedRoutes);
|
|
17115
|
-
return await __privateMethod(this, _NineChatManager_instances, callTool_fn).call(this, "generate-source-brain", {
|
|
17116
|
-
//user_input: `다음 미개발 라우트에 대한 백엔드 소스코드(Controller, Service, MyBatis)를 생성해줘.`,
|
|
17117
|
-
//chat_history: "",
|
|
17118
|
-
routes: unmappedRoutes
|
|
17119
|
-
// 미개발된 해당 라우트 정보 객체
|
|
17120
|
-
//current_path: route.path, // 현재 생성 기준 패스 명시
|
|
17121
|
-
});
|
|
17122
|
-
} catch (error) {
|
|
17123
|
-
console.error("미개발 라우트 분석 중 오류 발생:", error);
|
|
17124
|
-
if (nine && typeof nine.alert === "function") {
|
|
17125
|
-
nine.alert("소스 생성 분석 중 오류가 발생했습니다.");
|
|
17126
|
-
}
|
|
17106
|
+
const res = await api.post("/nine-mu/config/getUnmappedRoutes", { routes });
|
|
17107
|
+
trace.log(res);
|
|
17108
|
+
const unmappedRoutes = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.unmappedRoutes) || (res == null ? void 0 : res.unmappedRoutes) || [];
|
|
17109
|
+
if (unmappedRoutes.length === 0) {
|
|
17110
|
+
nine.alert("미개발된 라우터가 없습니다. 모두 매핑되어 있습니다.");
|
|
17111
|
+
return;
|
|
17127
17112
|
}
|
|
17113
|
+
trace.log(unmappedRoutes);
|
|
17114
|
+
return await __privateMethod(this, _NineChatManager_instances, callTool_fn).call(this, "generate-source-brain", {
|
|
17115
|
+
//user_input: `다음 미개발 라우트에 대한 백엔드 소스코드(Controller, Service, MyBatis)를 생성해줘.`,
|
|
17116
|
+
//chat_history: "",
|
|
17117
|
+
routes: unmappedRoutes
|
|
17118
|
+
// 미개발된 해당 라우트 정보 객체
|
|
17119
|
+
//current_path: route.path, // 현재 생성 기준 패스 명시
|
|
17120
|
+
});
|
|
17128
17121
|
});
|
|
17129
17122
|
__privateSet(this, _owner, owner);
|
|
17130
17123
|
__privateSet(this, _routeUrl, __privateGet(this, _owner).getAttribute("route-url"));
|
|
@@ -17339,7 +17332,8 @@ class NineChat extends HTMLElement {
|
|
|
17339
17332
|
});
|
|
17340
17333
|
__privateAdd(this, _sourceGenHandler, async (e) => {
|
|
17341
17334
|
const routes = await __privateGet(this, _manager).getRoutes();
|
|
17342
|
-
await __privateGet(this, _manager).analyzeUnmappedRoutes(routes);
|
|
17335
|
+
const response = await __privateGet(this, _manager).analyzeUnmappedRoutes(routes);
|
|
17336
|
+
trace.log(response);
|
|
17343
17337
|
});
|
|
17344
17338
|
__privateAdd(this, _showDiff, (asis, tobe, lang) => {
|
|
17345
17339
|
const oldPopup = this.shadowRoot.querySelector("nine-diff-popup");
|
|
@@ -17445,7 +17439,7 @@ render_fn = function() {
|
|
|
17445
17439
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
17446
17440
|
this.shadowRoot.innerHTML = `
|
|
17447
17441
|
<style>
|
|
17448
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17442
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.246"}/dist/css/nine-mu.css";
|
|
17449
17443
|
${customImport}
|
|
17450
17444
|
</style>
|
|
17451
17445
|
<div class="wrapper">
|
|
@@ -43662,7 +43656,7 @@ class NineDiff extends HTMLElement {
|
|
|
43662
43656
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43663
43657
|
this.shadowRoot.innerHTML = `
|
|
43664
43658
|
<style>
|
|
43665
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43659
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.246"}/dist/css/nine-mu.css";
|
|
43666
43660
|
${customImport}
|
|
43667
43661
|
</style>
|
|
43668
43662
|
|
|
@@ -43772,7 +43766,7 @@ render_fn2 = function() {
|
|
|
43772
43766
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43773
43767
|
this.shadowRoot.innerHTML = `
|
|
43774
43768
|
<style>
|
|
43775
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43769
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.246"}/dist/css/nine-mu.css";
|
|
43776
43770
|
${customImport}
|
|
43777
43771
|
</style>
|
|
43778
43772
|
|
|
@@ -44098,7 +44092,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44098
44092
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44099
44093
|
this.shadowRoot.innerHTML = `
|
|
44100
44094
|
<style>
|
|
44101
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44095
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.246"}/dist/css/nine-mu.css";
|
|
44102
44096
|
${customImport}
|
|
44103
44097
|
</style>
|
|
44104
44098
|
|
|
@@ -44192,7 +44186,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44192
44186
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44193
44187
|
}
|
|
44194
44188
|
const NineMu = {
|
|
44195
|
-
version: "0.1.
|
|
44189
|
+
version: "0.1.246",
|
|
44196
44190
|
init: (config2) => {
|
|
44197
44191
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44198
44192
|
}
|