@nine-lab/nine-mu 0.1.239 → 0.1.241
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 +11 -11
- 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/NineChatManager.js +1 -0
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 _mcpClient, _onAction, _onStatus, _onMessage, _owner, _routeUrl, _chatHistory, _NineChatManager_instances, connect_fn, updateStatus_fn, callTool_fn, _getSourcePath, _service, _packageName, _routesPath, _connectorUrl, _manager, _$nineChatMessage, _NineChat_instances, initInteractions_fn, initActions_fn, 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, _message, _data, _unique, _init, _message2, _init2, _progressData, _progressElements, _animationIntervals, _ProgressMessage_instances, updateCurrentActiveProgress_fn, renderProgress_fn, updateProgressItemVisuals_fn, startAnimation_fn, updateProgressItem_fn, _renderer, _init3;
|
|
13
|
-
import { trace as trace$1, api
|
|
13
|
+
import { trace as trace$1, api, nine } from "@nine-lab/nine-util";
|
|
14
14
|
class Trace extends trace$1.constructor {
|
|
15
15
|
constructor() {
|
|
16
16
|
super();
|
|
@@ -17249,7 +17249,7 @@ class NineMuService {
|
|
|
17249
17249
|
javascriptTo: ""
|
|
17250
17250
|
};
|
|
17251
17251
|
trace.log(srcPath);
|
|
17252
|
-
const src = await api
|
|
17252
|
+
const src = await api.post("/nine-ai/source/read", srcPath);
|
|
17253
17253
|
trace.log(src);
|
|
17254
17254
|
const response = await fetch(`${this.connectorUrl}/api/mu/generateAll`, {
|
|
17255
17255
|
method: "POST",
|
|
@@ -17303,12 +17303,12 @@ class NineChat extends HTMLElement {
|
|
|
17303
17303
|
__privateAdd(this, _makeMenuHandler, async (e) => {
|
|
17304
17304
|
const prompt = await nine.prompt("메뉴생성시 필요한 AI 프롬프트를 입력하세요.").rgb();
|
|
17305
17305
|
if (prompt === null || prompt === void 0) return;
|
|
17306
|
-
const res = await api
|
|
17306
|
+
const res = await api.post(`/nine-mu/source/readFile`, { path: __privateGet(this, _routesPath) });
|
|
17307
17307
|
trace.log(res);
|
|
17308
17308
|
if (!res || !(res == null ? void 0 : res.contents)) return;
|
|
17309
17309
|
const jsonRoutes = (res == null ? void 0 : res.contents) ? JSON.parse(res == null ? void 0 : res.contents) : {};
|
|
17310
17310
|
trace.log(jsonRoutes);
|
|
17311
|
-
const res2 = await api
|
|
17311
|
+
const res2 = await api.post(`${__privateGet(this, _connectorUrl)}/api/source/missing`, {
|
|
17312
17312
|
routes: jsonRoutes,
|
|
17313
17313
|
prompt
|
|
17314
17314
|
});
|
|
@@ -17339,7 +17339,7 @@ class NineChat extends HTMLElement {
|
|
|
17339
17339
|
__privateMethod(this, _NineChat_instances, render_fn).call(this);
|
|
17340
17340
|
__privateMethod(this, _NineChat_instances, initInteractions_fn).call(this);
|
|
17341
17341
|
__privateMethod(this, _NineChat_instances, initActions_fn).call(this);
|
|
17342
|
-
const res = await api
|
|
17342
|
+
const res = await api.post("/nine-mu/config/get", {});
|
|
17343
17343
|
__privateSet(this, _routesPath, (res == null ? void 0 : res.userDir) + "/" + __privateGet(this, _packageName) + "/public/prompts/data/routes.json");
|
|
17344
17344
|
__privateSet(this, _manager, new NineChatManager(this));
|
|
17345
17345
|
}
|
|
@@ -17424,7 +17424,7 @@ render_fn = function() {
|
|
|
17424
17424
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
17425
17425
|
this.shadowRoot.innerHTML = `
|
|
17426
17426
|
<style>
|
|
17427
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17427
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.240"}/dist/css/nine-mu.css";
|
|
17428
17428
|
${customImport}
|
|
17429
17429
|
</style>
|
|
17430
17430
|
<div class="wrapper">
|
|
@@ -43641,7 +43641,7 @@ class NineDiff extends HTMLElement {
|
|
|
43641
43641
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43642
43642
|
this.shadowRoot.innerHTML = `
|
|
43643
43643
|
<style>
|
|
43644
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43644
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.240"}/dist/css/nine-mu.css";
|
|
43645
43645
|
${customImport}
|
|
43646
43646
|
</style>
|
|
43647
43647
|
|
|
@@ -43751,7 +43751,7 @@ render_fn2 = function() {
|
|
|
43751
43751
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43752
43752
|
this.shadowRoot.innerHTML = `
|
|
43753
43753
|
<style>
|
|
43754
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43754
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.240"}/dist/css/nine-mu.css";
|
|
43755
43755
|
${customImport}
|
|
43756
43756
|
</style>
|
|
43757
43757
|
|
|
@@ -43778,7 +43778,7 @@ handleConfirm_fn = function() {
|
|
|
43778
43778
|
packageName: __privateGet(this, _host).getAttribute("package-name"),
|
|
43779
43779
|
contents: content2
|
|
43780
43780
|
};
|
|
43781
|
-
api
|
|
43781
|
+
api.post(`/nine-mu/source/generateJsonFile`, params).then((res) => {
|
|
43782
43782
|
nine.alert("소스를 변경하였습니다.").then((res2) => {
|
|
43783
43783
|
__privateGet(this, _dialog).close();
|
|
43784
43784
|
});
|
|
@@ -44077,7 +44077,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44077
44077
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44078
44078
|
this.shadowRoot.innerHTML = `
|
|
44079
44079
|
<style>
|
|
44080
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44080
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.240"}/dist/css/nine-mu.css";
|
|
44081
44081
|
${customImport}
|
|
44082
44082
|
</style>
|
|
44083
44083
|
|
|
@@ -44171,7 +44171,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44171
44171
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44172
44172
|
}
|
|
44173
44173
|
const NineMu = {
|
|
44174
|
-
version: "0.1.
|
|
44174
|
+
version: "0.1.240",
|
|
44175
44175
|
init: (config2) => {
|
|
44176
44176
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44177
44177
|
}
|