@nine-lab/nine-mu 0.1.197 β 0.1.199
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 +28 -14
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +3 -3
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineChatManager.js +36 -5
package/dist/nine-mu.js
CHANGED
|
@@ -13566,24 +13566,38 @@ connect_fn = async function() {
|
|
|
13566
13566
|
__privateSet(this, _mcpClient, new Client({
|
|
13567
13567
|
name: "nine-mu-client",
|
|
13568
13568
|
version: "1.0.0"
|
|
13569
|
-
}, {
|
|
13569
|
+
}, {
|
|
13570
|
+
capabilities: {
|
|
13571
|
+
tools: {},
|
|
13572
|
+
logging: {}
|
|
13573
|
+
}
|
|
13574
|
+
}));
|
|
13570
13575
|
trace.log(__privateGet(this, _mcpClient));
|
|
13571
|
-
__privateGet(this, _mcpClient).connect(transport).then(() => {
|
|
13576
|
+
__privateGet(this, _mcpClient).connect(transport).then(async () => {
|
|
13572
13577
|
__privateMethod(this, _NineChatManager_instances, updateStatus_fn).call(this, "β
MCP Connected");
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13578
|
+
try {
|
|
13579
|
+
await __privateGet(this, _mcpClient).request(
|
|
13580
|
+
{ method: "logging/setLevel", params: { level: "info" } },
|
|
13581
|
+
z.object({})
|
|
13582
|
+
// λΉ μλ΅ μ€ν€λ§ κ°μ²΄ κ²μ¦
|
|
13583
|
+
);
|
|
13584
|
+
trace.log("π MCP λ‘κΉ
μΈμ
νμ±ν μλ£ (Level: info)");
|
|
13585
|
+
} catch (linkErr) {
|
|
13586
|
+
trace.error("β λ‘κΉ
μΈμ
νμ±ν μ€ν¨:", linkErr);
|
|
13587
|
+
}
|
|
13588
|
+
__privateGet(this, _mcpClient).onnotification = (notification) => {
|
|
13589
|
+
trace.log("π μ€μκ° μλ¦Ό λμ°©:", notification);
|
|
13590
|
+
if ((notification == null ? void 0 : notification.method) === "notifications/logging/message") {
|
|
13577
13591
|
try {
|
|
13578
|
-
trace.log(notification);
|
|
13592
|
+
trace.log("π μ€μκ° μλ¦Ό λμ°©:", notification);
|
|
13579
13593
|
const logData = JSON.parse(notification.params.message);
|
|
13580
13594
|
if (logData.type === "BRAIN_DECISION") {
|
|
13581
13595
|
}
|
|
13582
13596
|
} catch (e) {
|
|
13583
|
-
trace.warn("μλ¦Ό νμ± μ€ν¨:", e);
|
|
13597
|
+
trace.warn("μλ¦Ό λ΄λΆ JSON νμ± μ€ν¨:", e);
|
|
13584
13598
|
}
|
|
13585
13599
|
}
|
|
13586
|
-
|
|
13600
|
+
};
|
|
13587
13601
|
}).catch((err) => {
|
|
13588
13602
|
trace.error("β MCP μ°κ²° μ€ν¨", err);
|
|
13589
13603
|
__privateMethod(this, _NineChatManager_instances, updateStatus_fn).call(this, "β Connection Failed");
|
|
@@ -13808,7 +13822,7 @@ render_fn = function() {
|
|
|
13808
13822
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
13809
13823
|
this.shadowRoot.innerHTML = `
|
|
13810
13824
|
<style>
|
|
13811
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
13825
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.198"}/dist/css/nine-mu.css";
|
|
13812
13826
|
${customImport}
|
|
13813
13827
|
</style>
|
|
13814
13828
|
<div class="wrapper">
|
|
@@ -40027,7 +40041,7 @@ class NineDiff extends HTMLElement {
|
|
|
40027
40041
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40028
40042
|
this.shadowRoot.innerHTML = `
|
|
40029
40043
|
<style>
|
|
40030
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40044
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.198"}/dist/css/nine-mu.css";
|
|
40031
40045
|
${customImport}
|
|
40032
40046
|
</style>
|
|
40033
40047
|
|
|
@@ -40137,7 +40151,7 @@ render_fn2 = function() {
|
|
|
40137
40151
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40138
40152
|
this.shadowRoot.innerHTML = `
|
|
40139
40153
|
<style>
|
|
40140
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40154
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.198"}/dist/css/nine-mu.css";
|
|
40141
40155
|
${customImport}
|
|
40142
40156
|
</style>
|
|
40143
40157
|
|
|
@@ -40464,7 +40478,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
40464
40478
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40465
40479
|
this.shadowRoot.innerHTML = `
|
|
40466
40480
|
<style>
|
|
40467
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40481
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.198"}/dist/css/nine-mu.css";
|
|
40468
40482
|
${customImport}
|
|
40469
40483
|
</style>
|
|
40470
40484
|
|
|
@@ -40558,7 +40572,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
40558
40572
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
40559
40573
|
}
|
|
40560
40574
|
const NineMu = {
|
|
40561
|
-
version: "0.1.
|
|
40575
|
+
version: "0.1.198",
|
|
40562
40576
|
init: (config2) => {
|
|
40563
40577
|
trace$1.log("π οΈ Nine-Mu Engine initialized", config2);
|
|
40564
40578
|
}
|