@nine-lab/nine-mu 0.1.265 → 0.1.267
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 +12 -21
- 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 +12 -0
package/dist/nine-mu.js
CHANGED
|
@@ -17139,23 +17139,13 @@ class NineChatManager {
|
|
|
17139
17139
|
// 💡 이전 대화들을 저장할 메모리 창고
|
|
17140
17140
|
__privateAdd(this, _notiHandler);
|
|
17141
17141
|
__publicField(this, "handleChatSubmit", async (userInput) => {
|
|
17142
|
-
__privateGet(this,
|
|
17143
|
-
const
|
|
17144
|
-
|
|
17145
|
-
|
|
17146
|
-
const currentPath = window.location.pathname;
|
|
17147
|
-
const routes = await this.getRoutes();
|
|
17148
|
-
const unmappedRoutes = await this.getUnmappedRoutes(routes);
|
|
17149
|
-
return await __privateMethod(this, _NineChatManager_instances, callTool_fn).call(this, "system-brain", {
|
|
17150
|
-
base_package: __privateGet(this, _owner2).config.basePackage,
|
|
17151
|
-
// nine.edu
|
|
17152
|
-
user_input: userInput,
|
|
17153
|
-
chat_history: formattedHistory,
|
|
17154
|
-
routes,
|
|
17155
|
-
unmapped_routes: unmappedRoutes,
|
|
17156
|
-
// 미개발된 해당 라우트 정보 객체
|
|
17157
|
-
current_path: currentPath
|
|
17142
|
+
trace.log(window.location.pathname, __privateGet(this, _owner2).config.packageName);
|
|
17143
|
+
const src = await api.post("/nine-mu/source/read", {
|
|
17144
|
+
menuUrl: window.location.pathname,
|
|
17145
|
+
feProjectName: __privateGet(this, _owner2).config.packageName
|
|
17158
17146
|
});
|
|
17147
|
+
console.log(src);
|
|
17148
|
+
return;
|
|
17159
17149
|
});
|
|
17160
17150
|
/** 백엔드 통신 */
|
|
17161
17151
|
__publicField(this, "analyzeUnmappedRoutes", async (routes) => {
|
|
@@ -17428,6 +17418,7 @@ class NineChat extends HTMLElement {
|
|
|
17428
17418
|
__privateMethod(this, _NineChat_instances, initActions_fn).call(this);
|
|
17429
17419
|
const res = await api.post("/nine-mu/config/get", {});
|
|
17430
17420
|
__privateSet(this, _config, res);
|
|
17421
|
+
__privateGet(this, _config).packageName = __privateGet(this, _packageName);
|
|
17431
17422
|
__privateSet(this, _routesPath, (res == null ? void 0 : res.userDir) + "/" + __privateGet(this, _packageName) + "/public/prompts/data/routes.json");
|
|
17432
17423
|
__privateSet(this, _manager, new NineChatManager(this));
|
|
17433
17424
|
}
|
|
@@ -17513,7 +17504,7 @@ render_fn = function() {
|
|
|
17513
17504
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
17514
17505
|
this.shadowRoot.innerHTML = `
|
|
17515
17506
|
<style>
|
|
17516
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17507
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.266"}/dist/css/nine-mu.css";
|
|
17517
17508
|
${customImport}
|
|
17518
17509
|
</style>
|
|
17519
17510
|
<div class="wrapper">
|
|
@@ -43730,7 +43721,7 @@ class NineDiff extends HTMLElement {
|
|
|
43730
43721
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43731
43722
|
this.shadowRoot.innerHTML = `
|
|
43732
43723
|
<style>
|
|
43733
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43724
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.266"}/dist/css/nine-mu.css";
|
|
43734
43725
|
${customImport}
|
|
43735
43726
|
</style>
|
|
43736
43727
|
|
|
@@ -43840,7 +43831,7 @@ render_fn2 = function() {
|
|
|
43840
43831
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43841
43832
|
this.shadowRoot.innerHTML = `
|
|
43842
43833
|
<style>
|
|
43843
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43834
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.266"}/dist/css/nine-mu.css";
|
|
43844
43835
|
${customImport}
|
|
43845
43836
|
</style>
|
|
43846
43837
|
|
|
@@ -44166,7 +44157,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44166
44157
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44167
44158
|
this.shadowRoot.innerHTML = `
|
|
44168
44159
|
<style>
|
|
44169
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44160
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.266"}/dist/css/nine-mu.css";
|
|
44170
44161
|
${customImport}
|
|
44171
44162
|
</style>
|
|
44172
44163
|
|
|
@@ -44260,7 +44251,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44260
44251
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44261
44252
|
}
|
|
44262
44253
|
const NineMu = {
|
|
44263
|
-
version: "0.1.
|
|
44254
|
+
version: "0.1.266",
|
|
44264
44255
|
init: (config2) => {
|
|
44265
44256
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44266
44257
|
}
|