@nine-lab/nine-mu 0.1.137 → 0.1.138
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 +21 -21
- 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 +2 -2
package/dist/nine-mu.js
CHANGED
|
@@ -9,7 +9,7 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
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
|
-
var _client, _connectorUrl, _onAction, _onStatus, _onMessage, _owner, _NineChatManager_instances, fetchRoutes_fn, pushMessage_fn, updateStatus_fn, _getSourcePath, _service, _routes, _diffPopup, _packageName, _routesPath, _connectorUrl2, _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;
|
|
12
|
+
var _client, _connectorUrl, _onAction, _onStatus, _onMessage, _owner, _NineChatManager_instances, connect_fn, fetchRoutes_fn, pushMessage_fn, updateStatus_fn, _getSourcePath, _service, _routes, _diffPopup, _packageName, _routesPath, _connectorUrl2, _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
13
|
import { trace as trace$1, api, nine } from "@nine-lab/nine-util";
|
|
14
14
|
class Trace extends trace$1.constructor {
|
|
15
15
|
constructor() {
|
|
@@ -13517,22 +13517,7 @@ class NineChatManager {
|
|
|
13517
13517
|
__privateSet(this, _onAction, callbacks.onAction);
|
|
13518
13518
|
__privateSet(this, _onStatus, callbacks.onStatus);
|
|
13519
13519
|
__privateSet(this, _onMessage, callbacks.onMessage);
|
|
13520
|
-
this.
|
|
13521
|
-
}
|
|
13522
|
-
async connect() {
|
|
13523
|
-
if (__privateGet(this, _client)) return;
|
|
13524
|
-
try {
|
|
13525
|
-
const transport = new WebSocketClientTransport(new URL(__privateGet(this, _connectorUrl)));
|
|
13526
|
-
__privateSet(this, _client, new Client({
|
|
13527
|
-
name: "nine-mu-client",
|
|
13528
|
-
version: "1.0.0"
|
|
13529
|
-
}, { capabilities: { tools: {} } }));
|
|
13530
|
-
await __privateGet(this, _client).connect(transport);
|
|
13531
|
-
__privateMethod(this, _NineChatManager_instances, updateStatus_fn).call(this, "✅ MCP Connected");
|
|
13532
|
-
} catch (err) {
|
|
13533
|
-
trace$1.error("❌ Orchestrator Connection Failed", err);
|
|
13534
|
-
__privateMethod(this, _NineChatManager_instances, updateStatus_fn).call(this, "❌ Connection Failed");
|
|
13535
|
-
}
|
|
13520
|
+
__privateMethod(this, _NineChatManager_instances, connect_fn).call(this);
|
|
13536
13521
|
}
|
|
13537
13522
|
/** 메인 실행 함수 */
|
|
13538
13523
|
async ask(userInput) {
|
|
@@ -13583,6 +13568,21 @@ _onStatus = new WeakMap();
|
|
|
13583
13568
|
_onMessage = new WeakMap();
|
|
13584
13569
|
_owner = new WeakMap();
|
|
13585
13570
|
_NineChatManager_instances = new WeakSet();
|
|
13571
|
+
connect_fn = async function() {
|
|
13572
|
+
if (__privateGet(this, _client)) return;
|
|
13573
|
+
try {
|
|
13574
|
+
const transport = new WebSocketClientTransport(new URL(__privateGet(this, _connectorUrl)));
|
|
13575
|
+
__privateSet(this, _client, new Client({
|
|
13576
|
+
name: "nine-mu-client",
|
|
13577
|
+
version: "1.0.0"
|
|
13578
|
+
}, { capabilities: { tools: {} } }));
|
|
13579
|
+
await __privateGet(this, _client).connect(transport);
|
|
13580
|
+
__privateMethod(this, _NineChatManager_instances, updateStatus_fn).call(this, "✅ MCP Connected");
|
|
13581
|
+
} catch (err) {
|
|
13582
|
+
trace$1.error("❌ Orchestrator Connection Failed", err);
|
|
13583
|
+
__privateMethod(this, _NineChatManager_instances, updateStatus_fn).call(this, "❌ Connection Failed");
|
|
13584
|
+
}
|
|
13585
|
+
};
|
|
13586
13586
|
fetchRoutes_fn = async function() {
|
|
13587
13587
|
const r = await fetch("/admin/prompts/data/routes.json");
|
|
13588
13588
|
return r.ok ? await r.json() : [];
|
|
@@ -13823,7 +13823,7 @@ render_fn = function() {
|
|
|
13823
13823
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
13824
13824
|
this.shadowRoot.innerHTML = `
|
|
13825
13825
|
<style>
|
|
13826
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
13826
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.137"}/dist/css/nine-mu.css";
|
|
13827
13827
|
${customImport}
|
|
13828
13828
|
</style>
|
|
13829
13829
|
<div class="wrapper">
|
|
@@ -40041,7 +40041,7 @@ class NineDiff extends HTMLElement {
|
|
|
40041
40041
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40042
40042
|
this.shadowRoot.innerHTML = `
|
|
40043
40043
|
<style>
|
|
40044
|
-
@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.137"}/dist/css/nine-mu.css";
|
|
40045
40045
|
${customImport}
|
|
40046
40046
|
</style>
|
|
40047
40047
|
|
|
@@ -40151,7 +40151,7 @@ render_fn2 = function() {
|
|
|
40151
40151
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
40152
40152
|
this.shadowRoot.innerHTML = `
|
|
40153
40153
|
<style>
|
|
40154
|
-
@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.137"}/dist/css/nine-mu.css";
|
|
40155
40155
|
${customImport}
|
|
40156
40156
|
</style>
|
|
40157
40157
|
|
|
@@ -40190,7 +40190,7 @@ handleCancel_fn = function() {
|
|
|
40190
40190
|
};
|
|
40191
40191
|
customElements.define("nine-diff-popup", NineDiffPopup);
|
|
40192
40192
|
const NineMu = {
|
|
40193
|
-
version: "0.1.
|
|
40193
|
+
version: "0.1.137",
|
|
40194
40194
|
init: (config2) => {
|
|
40195
40195
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
40196
40196
|
}
|