@nine-lab/nine-mu 0.1.263 → 0.1.264
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
CHANGED
|
@@ -17144,10 +17144,14 @@ class NineChatManager {
|
|
|
17144
17144
|
return chat.role === "user" ? `User: ${chat.text}` : `AI: ${chat.text}`;
|
|
17145
17145
|
}).join("\n");
|
|
17146
17146
|
const currentPath = window.location.pathname;
|
|
17147
|
+
const routes = await this.getRoutes();
|
|
17148
|
+
const unmappedRoutes = await this.getUnmappedRoutes(routes);
|
|
17147
17149
|
return await __privateMethod(this, _NineChatManager_instances, callTool_fn).call(this, "system-brain", {
|
|
17148
17150
|
user_input: userInput,
|
|
17149
17151
|
chat_history: formattedHistory,
|
|
17150
|
-
routes
|
|
17152
|
+
routes,
|
|
17153
|
+
unmapped_routes: unmappedRoutes,
|
|
17154
|
+
// 미개발된 해당 라우트 정보 객체
|
|
17151
17155
|
current_path: currentPath
|
|
17152
17156
|
});
|
|
17153
17157
|
});
|
|
@@ -17169,7 +17173,7 @@ class NineChatManager {
|
|
|
17169
17173
|
base_package: __privateGet(this, _owner2).config.basePackage,
|
|
17170
17174
|
// nine.edu
|
|
17171
17175
|
//chat_history: "",
|
|
17172
|
-
|
|
17176
|
+
unmapped_routes: unmappedRoutes
|
|
17173
17177
|
// 미개발된 해당 라우트 정보 객체
|
|
17174
17178
|
//current_path: route.path, // 현재 생성 기준 패스 명시
|
|
17175
17179
|
});
|
|
@@ -17199,6 +17203,13 @@ class NineChatManager {
|
|
|
17199
17203
|
const res = await fetch(__privateGet(this, _routeUrl));
|
|
17200
17204
|
return res.ok ? await res.json() : [];
|
|
17201
17205
|
}
|
|
17206
|
+
async getUnmappedRoutes(routes) {
|
|
17207
|
+
var _a2;
|
|
17208
|
+
const res = await api.post("/nine-mu/config/getUnmappedRoutes", {
|
|
17209
|
+
routes
|
|
17210
|
+
});
|
|
17211
|
+
return ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.unmappedRoutes) || (res == null ? void 0 : res.unmappedRoutes) || [];
|
|
17212
|
+
}
|
|
17202
17213
|
addChatHistory(message) {
|
|
17203
17214
|
__privateGet(this, _chatHistory).push({ role: "ai", text: message });
|
|
17204
17215
|
}
|
|
@@ -17500,7 +17511,7 @@ render_fn = function() {
|
|
|
17500
17511
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
17501
17512
|
this.shadowRoot.innerHTML = `
|
|
17502
17513
|
<style>
|
|
17503
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17514
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.263"}/dist/css/nine-mu.css";
|
|
17504
17515
|
${customImport}
|
|
17505
17516
|
</style>
|
|
17506
17517
|
<div class="wrapper">
|
|
@@ -43717,7 +43728,7 @@ class NineDiff extends HTMLElement {
|
|
|
43717
43728
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43718
43729
|
this.shadowRoot.innerHTML = `
|
|
43719
43730
|
<style>
|
|
43720
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43731
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.263"}/dist/css/nine-mu.css";
|
|
43721
43732
|
${customImport}
|
|
43722
43733
|
</style>
|
|
43723
43734
|
|
|
@@ -43827,7 +43838,7 @@ render_fn2 = function() {
|
|
|
43827
43838
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43828
43839
|
this.shadowRoot.innerHTML = `
|
|
43829
43840
|
<style>
|
|
43830
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43841
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.263"}/dist/css/nine-mu.css";
|
|
43831
43842
|
${customImport}
|
|
43832
43843
|
</style>
|
|
43833
43844
|
|
|
@@ -44153,7 +44164,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44153
44164
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44154
44165
|
this.shadowRoot.innerHTML = `
|
|
44155
44166
|
<style>
|
|
44156
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44167
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.263"}/dist/css/nine-mu.css";
|
|
44157
44168
|
${customImport}
|
|
44158
44169
|
</style>
|
|
44159
44170
|
|
|
@@ -44247,7 +44258,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44247
44258
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44248
44259
|
}
|
|
44249
44260
|
const NineMu = {
|
|
44250
|
-
version: "0.1.
|
|
44261
|
+
version: "0.1.263",
|
|
44251
44262
|
init: (config2) => {
|
|
44252
44263
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44253
44264
|
}
|