@nine-lab/nine-mu 0.1.139 → 0.1.140
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 +18 -18
- 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 +2 -2
- package/src/components/NineChatManager.js +21 -1
package/dist/nine-mu.js
CHANGED
|
@@ -10,7 +10,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
10
10
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
11
11
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
12
12
|
var _client, _onAction, _onStatus, _onMessage, _owner, _NineChatManager_instances, connect_fn, fetchRoutes_fn, pushMessage_fn, updateStatus_fn, _getSourcePath, _service, _routes, _diffPopup, _packageName, _routesPath, _connectorUrl, _mcpClient, _manager, _NineChat_instances, initInteractions_fn, initActions_fn, _initMcp, render_fn, _makeMenuHandler, _sourceGenHandler, _showDiff, _asisEditorView, _tobeEditorView, _asisEditorEl, _tobeEditorEl, _languageCompartment, _isScrollSyncActive, _initCodeMirror, _setupScrollSync, _applyDiffDecorations, _dialog, _diffView, _asisBackup, _host, _NineDiffPopup_instances, render_fn2, handleConfirm_fn, handleCancel_fn;
|
|
13
|
-
import { trace as trace$1,
|
|
13
|
+
import { trace as trace$1, nine, api } from "@nine-lab/nine-util";
|
|
14
14
|
class Trace extends trace$1.constructor {
|
|
15
15
|
constructor() {
|
|
16
16
|
super();
|
|
@@ -13567,19 +13567,19 @@ _owner = new WeakMap();
|
|
|
13567
13567
|
_NineChatManager_instances = new WeakSet();
|
|
13568
13568
|
connect_fn = async function() {
|
|
13569
13569
|
if (__privateGet(this, _client)) return;
|
|
13570
|
-
|
|
13571
|
-
|
|
13572
|
-
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13570
|
+
const connectorUrl = __privateGet(this, _owner).getAttribute("connector-url");
|
|
13571
|
+
const transport = new WebSocketClientTransport(new URL(connectorUrl));
|
|
13572
|
+
__privateSet(this, _client, new Client({
|
|
13573
|
+
name: "nine-mu-client",
|
|
13574
|
+
version: "1.0.0"
|
|
13575
|
+
}, { capabilities: { tools: {} } }));
|
|
13576
|
+
const [_, err] = await nine.safe(__privateGet(this, _client).connect(transport));
|
|
13577
|
+
if (err) {
|
|
13578
|
+
nine.trace.error("❌ MCP 연결 실패", err);
|
|
13579
|
+
return __privateMethod(this, _NineChatManager_instances, updateStatus_fn).call(this, "❌ Connection Failed");
|
|
13580
|
+
}
|
|
13581
|
+
__privateMethod(this, _NineChatManager_instances, updateStatus_fn).call(this, "✅ MCP Connected");
|
|
13582
|
+
return;
|
|
13583
13583
|
};
|
|
13584
13584
|
fetchRoutes_fn = async function() {
|
|
13585
13585
|
const r = await fetch("/admin/prompts/data/routes.json");
|
|
@@ -13821,7 +13821,7 @@ render_fn = function() {
|
|
|
13821
13821
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
13822
13822
|
this.shadowRoot.innerHTML = `
|
|
13823
13823
|
<style>
|
|
13824
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
13824
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.139"}/dist/css/nine-mu.css";
|
|
13825
13825
|
${customImport}
|
|
13826
13826
|
</style>
|
|
13827
13827
|
<div class="wrapper">
|
|
@@ -40039,7 +40039,7 @@ class NineDiff extends HTMLElement {
|
|
|
40039
40039
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40040
40040
|
this.shadowRoot.innerHTML = `
|
|
40041
40041
|
<style>
|
|
40042
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40042
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.139"}/dist/css/nine-mu.css";
|
|
40043
40043
|
${customImport}
|
|
40044
40044
|
</style>
|
|
40045
40045
|
|
|
@@ -40149,7 +40149,7 @@ render_fn2 = function() {
|
|
|
40149
40149
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40150
40150
|
this.shadowRoot.innerHTML = `
|
|
40151
40151
|
<style>
|
|
40152
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
40152
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.139"}/dist/css/nine-mu.css";
|
|
40153
40153
|
${customImport}
|
|
40154
40154
|
</style>
|
|
40155
40155
|
|
|
@@ -40188,7 +40188,7 @@ handleCancel_fn = function() {
|
|
|
40188
40188
|
};
|
|
40189
40189
|
customElements.define("nine-diff-popup", NineDiffPopup);
|
|
40190
40190
|
const NineMu = {
|
|
40191
|
-
version: "0.1.
|
|
40191
|
+
version: "0.1.139",
|
|
40192
40192
|
init: (config2) => {
|
|
40193
40193
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
40194
40194
|
}
|