@nine-lab/nine-mu 0.1.169 → 0.1.171
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 -15
- 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 +6 -6
- package/src/components/NineChatManager.js +2 -21
package/dist/nine-mu.js
CHANGED
|
@@ -13512,14 +13512,12 @@ class NineChatManager {
|
|
|
13512
13512
|
// UI에 메시지를 뿌려줄 콜백 추가
|
|
13513
13513
|
__privateAdd(this, _owner);
|
|
13514
13514
|
__publicField(this, "handleChatSubmit", async (el) => {
|
|
13515
|
-
trace.log(__privateGet(this, _mcpClient));
|
|
13516
13515
|
const routes = [];
|
|
13517
|
-
|
|
13516
|
+
return await __privateMethod(this, _NineChatManager_instances, callTool_fn).call(this, "system-brain", {
|
|
13518
13517
|
user_input: el.value.trim(),
|
|
13519
13518
|
routes,
|
|
13520
13519
|
current_path: "/group_member/student_management"
|
|
13521
13520
|
});
|
|
13522
|
-
return response;
|
|
13523
13521
|
});
|
|
13524
13522
|
__privateSet(this, _owner, owner);
|
|
13525
13523
|
__privateSet(this, _onAction, callbacks.onAction);
|
|
@@ -13612,9 +13610,7 @@ updateStatus_fn = function(msg) {
|
|
|
13612
13610
|
trace.log(`[Status]: ${msg}`);
|
|
13613
13611
|
};
|
|
13614
13612
|
callTool_fn = async function(toolName, args = {}) {
|
|
13615
|
-
|
|
13616
|
-
const response = __privateGet(this, _mcpClient).callTool({ name: toolName, arguments: args });
|
|
13617
|
-
return response;
|
|
13613
|
+
return __privateGet(this, _mcpClient).callTool({ name: toolName, arguments: args });
|
|
13618
13614
|
};
|
|
13619
13615
|
class NineMuService {
|
|
13620
13616
|
constructor(connectorUrl) {
|
|
@@ -13805,14 +13801,15 @@ initActions_fn = function() {
|
|
|
13805
13801
|
setTimeout(() => {
|
|
13806
13802
|
target.value = "";
|
|
13807
13803
|
});
|
|
13808
|
-
const [
|
|
13804
|
+
const [result, err] = await nine.safe(__privateGet(this, _manager).handleChatSubmit(target));
|
|
13805
|
+
target.removeAttribute("disabled");
|
|
13809
13806
|
if (err) {
|
|
13810
13807
|
console.error("Manager 실행 에러:", err);
|
|
13811
13808
|
this.shadowRoot.querySelectorAll("nx-ai-ing-message").forEach((el) => el.remove());
|
|
13812
|
-
|
|
13809
|
+
} else {
|
|
13810
|
+
console.log(result);
|
|
13811
|
+
__privateGet(this, _$nineChatMessage).add("ai", result.message);
|
|
13813
13812
|
}
|
|
13814
|
-
console.log(target);
|
|
13815
|
-
target.removeAttribute("disabled");
|
|
13816
13813
|
}
|
|
13817
13814
|
});
|
|
13818
13815
|
};
|
|
@@ -13821,7 +13818,7 @@ render_fn = function() {
|
|
|
13821
13818
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
13822
13819
|
this.shadowRoot.innerHTML = `
|
|
13823
13820
|
<style>
|
|
13824
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
13821
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.170"}/dist/css/nine-mu.css";
|
|
13825
13822
|
${customImport}
|
|
13826
13823
|
</style>
|
|
13827
13824
|
<div class="wrapper">
|
|
@@ -40040,7 +40037,7 @@ class NineDiff extends HTMLElement {
|
|
|
40040
40037
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40041
40038
|
this.shadowRoot.innerHTML = `
|
|
40042
40039
|
<style>
|
|
40043
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40040
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.170"}/dist/css/nine-mu.css";
|
|
40044
40041
|
${customImport}
|
|
40045
40042
|
</style>
|
|
40046
40043
|
|
|
@@ -40150,7 +40147,7 @@ render_fn2 = function() {
|
|
|
40150
40147
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40151
40148
|
this.shadowRoot.innerHTML = `
|
|
40152
40149
|
<style>
|
|
40153
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40150
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.170"}/dist/css/nine-mu.css";
|
|
40154
40151
|
${customImport}
|
|
40155
40152
|
</style>
|
|
40156
40153
|
|
|
@@ -40478,7 +40475,7 @@ class ChatMessage extends HTMLElement {
|
|
|
40478
40475
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40479
40476
|
this.shadowRoot.innerHTML = `
|
|
40480
40477
|
<style>
|
|
40481
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40478
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.170"}/dist/css/nine-mu.css";
|
|
40482
40479
|
${customImport}
|
|
40483
40480
|
</style>
|
|
40484
40481
|
|
|
@@ -40572,7 +40569,7 @@ if (!customElements.get("nine-chat-me")) {
|
|
|
40572
40569
|
customElements.define("nine-chat-me", MyMessage);
|
|
40573
40570
|
}
|
|
40574
40571
|
const NineMu = {
|
|
40575
|
-
version: "0.1.
|
|
40572
|
+
version: "0.1.170",
|
|
40576
40573
|
init: (config2) => {
|
|
40577
40574
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
40578
40575
|
}
|