@nine-lab/nine-mu 0.1.170 → 0.1.172
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
|
@@ -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) {
|
|
@@ -13807,12 +13803,13 @@ initActions_fn = function() {
|
|
|
13807
13803
|
});
|
|
13808
13804
|
const [result, err] = await nine.safe(__privateGet(this, _manager).handleChatSubmit(target));
|
|
13809
13805
|
target.removeAttribute("disabled");
|
|
13806
|
+
target.focus();
|
|
13810
13807
|
if (err) {
|
|
13811
13808
|
console.error("Manager 실행 에러:", err);
|
|
13812
13809
|
this.shadowRoot.querySelectorAll("nx-ai-ing-message").forEach((el) => el.remove());
|
|
13813
|
-
nine.alert("메시지 전송 중 오류가 발생했습니다.").rgb().shake();
|
|
13814
13810
|
} else {
|
|
13815
13811
|
console.log(result);
|
|
13812
|
+
__privateGet(this, _$nineChatMessage).add("ai", result.message);
|
|
13816
13813
|
}
|
|
13817
13814
|
}
|
|
13818
13815
|
});
|
|
@@ -13822,7 +13819,7 @@ render_fn = function() {
|
|
|
13822
13819
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
13823
13820
|
this.shadowRoot.innerHTML = `
|
|
13824
13821
|
<style>
|
|
13825
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
13822
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.171"}/dist/css/nine-mu.css";
|
|
13826
13823
|
${customImport}
|
|
13827
13824
|
</style>
|
|
13828
13825
|
<div class="wrapper">
|
|
@@ -40041,7 +40038,7 @@ class NineDiff extends HTMLElement {
|
|
|
40041
40038
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40042
40039
|
this.shadowRoot.innerHTML = `
|
|
40043
40040
|
<style>
|
|
40044
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40041
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.171"}/dist/css/nine-mu.css";
|
|
40045
40042
|
${customImport}
|
|
40046
40043
|
</style>
|
|
40047
40044
|
|
|
@@ -40151,7 +40148,7 @@ render_fn2 = function() {
|
|
|
40151
40148
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40152
40149
|
this.shadowRoot.innerHTML = `
|
|
40153
40150
|
<style>
|
|
40154
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40151
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.171"}/dist/css/nine-mu.css";
|
|
40155
40152
|
${customImport}
|
|
40156
40153
|
</style>
|
|
40157
40154
|
|
|
@@ -40479,7 +40476,7 @@ class ChatMessage extends HTMLElement {
|
|
|
40479
40476
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40480
40477
|
this.shadowRoot.innerHTML = `
|
|
40481
40478
|
<style>
|
|
40482
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40479
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.171"}/dist/css/nine-mu.css";
|
|
40483
40480
|
${customImport}
|
|
40484
40481
|
</style>
|
|
40485
40482
|
|
|
@@ -40573,7 +40570,7 @@ if (!customElements.get("nine-chat-me")) {
|
|
|
40573
40570
|
customElements.define("nine-chat-me", MyMessage);
|
|
40574
40571
|
}
|
|
40575
40572
|
const NineMu = {
|
|
40576
|
-
version: "0.1.
|
|
40573
|
+
version: "0.1.171",
|
|
40577
40574
|
init: (config2) => {
|
|
40578
40575
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
40579
40576
|
}
|