@nine-lab/nine-mu 0.1.405 → 0.1.407
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/css/nine-mu.css +2 -2
- package/dist/nine-mu.js +15 -43
- 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/public/css/nine-mu.css +2 -2
- package/src/components/ai/NineNaturalQuery.js +0 -38
package/dist/css/nine-mu.css
CHANGED
|
@@ -1030,7 +1030,7 @@
|
|
|
1030
1030
|
100% { opacity: 0.6; }
|
|
1031
1031
|
}
|
|
1032
1032
|
|
|
1033
|
-
:host(nine-
|
|
1033
|
+
:host(nine-natural-query) {
|
|
1034
1034
|
.input-wrapper {
|
|
1035
1035
|
position: relative;
|
|
1036
1036
|
width: 100%;
|
|
@@ -1078,7 +1078,7 @@
|
|
|
1078
1078
|
}
|
|
1079
1079
|
}
|
|
1080
1080
|
|
|
1081
|
-
:host(nine-
|
|
1081
|
+
:host(nine-natural-query-result) {
|
|
1082
1082
|
display: block;
|
|
1083
1083
|
width: 100%;
|
|
1084
1084
|
height: 100%;
|
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 _owner, _collectedFiles, _NotificationHandler_instances, handleLoggingMessage_fn, _collectModifySource, _openDiffPopup, _openRouteDiffPopup, _generateSource, _generateMenu, _mcpClient, _onAction, _onStatus, _onMessage, _owner2, _routeUrl, _chatHistory, _notiHandler, _NineChatManager_instances, connect_fn, updateStatus_fn, callTool_fn, _getSourcePath, _service, _packageName, _routesPath, _connectorUrl, _manager, _config, _$nineChatMessage, _NineChat_instances, initInteractions_fn, initActions_fn, render_fn, _sourceGenHandler, _asisEditorView, _tobeEditorView, _asisEditorEl, _tobeEditorEl, _isDirty, _initialAsisSrc, _initialTobeSrc, _languageCompartment, _isScrollSyncActive, _initCodeMirror, _checkDirtyState, _setupScrollSync, _applyDiffDecorations, _dialog, _tabContainer, _fileList, _host, _NineDiffPopup_instances, renderScaffolding_fn, handleConfirmAll_fn, handleCancel_fn, _dialog2, _diffView, _asisBackup, _host2, _NineMenuDiffPopup_instances, render_fn2, handleConfirm_fn, handleCancel_fn2, _message, _data, _unique, _init, _message2, _init2, _progressData, _progressElements, _animationIntervals, _ProgressMessage_instances, updateCurrentActiveProgress_fn, renderProgress_fn, updateProgressItemVisuals_fn, startAnimation_fn, updateProgressItem_fn, _renderer, _init3,
|
|
12
|
+
var _owner, _collectedFiles, _NotificationHandler_instances, handleLoggingMessage_fn, _collectModifySource, _openDiffPopup, _openRouteDiffPopup, _generateSource, _generateMenu, _mcpClient, _onAction, _onStatus, _onMessage, _owner2, _routeUrl, _chatHistory, _notiHandler, _NineChatManager_instances, connect_fn, updateStatus_fn, callTool_fn, _getSourcePath, _service, _packageName, _routesPath, _connectorUrl, _manager, _config, _$nineChatMessage, _NineChat_instances, initInteractions_fn, initActions_fn, render_fn, _sourceGenHandler, _asisEditorView, _tobeEditorView, _asisEditorEl, _tobeEditorEl, _isDirty, _initialAsisSrc, _initialTobeSrc, _languageCompartment, _isScrollSyncActive, _initCodeMirror, _checkDirtyState, _setupScrollSync, _applyDiffDecorations, _dialog, _tabContainer, _fileList, _host, _NineDiffPopup_instances, renderScaffolding_fn, handleConfirmAll_fn, handleCancel_fn, _dialog2, _diffView, _asisBackup, _host2, _NineMenuDiffPopup_instances, render_fn2, handleConfirm_fn, handleCancel_fn2, _message, _data, _unique, _init, _message2, _init2, _progressData, _progressElements, _animationIntervals, _ProgressMessage_instances, updateCurrentActiveProgress_fn, renderProgress_fn, updateProgressItemVisuals_fn, startAnimation_fn, updateProgressItem_fn, _renderer, _init3, _tipPopup, _NineNaturalQuery_instances, render_fn3, handleQuestion_fn, _data2, _wrapper, _gridContainer, _NineNaturalQueryResult_instances, updateGrid_fn, generateGridHtml_fn, bindGridData_fn, render_fn4;
|
|
13
13
|
import { trace as trace$1, api, nine as nine$1 } from "@nine-lab/nine-util";
|
|
14
14
|
import "@nine-lab/nine-ai";
|
|
15
15
|
import React, { createContext, Suspense, useContext, useState, lazy } from "react";
|
|
@@ -13605,9 +13605,9 @@ function requireCore$1() {
|
|
|
13605
13605
|
}
|
|
13606
13606
|
const { loadSchema } = this.opts;
|
|
13607
13607
|
return runCompileAsync.call(this, schema, meta2);
|
|
13608
|
-
async function runCompileAsync(
|
|
13609
|
-
await loadMetaSchema.call(this,
|
|
13610
|
-
const sch = this._addSchema(
|
|
13608
|
+
async function runCompileAsync(_schema, _meta) {
|
|
13609
|
+
await loadMetaSchema.call(this, _schema.$schema);
|
|
13610
|
+
const sch = this._addSchema(_schema, _meta);
|
|
13611
13611
|
return sch.validate || _compileAsync.call(this, sch);
|
|
13612
13612
|
}
|
|
13613
13613
|
async function loadMetaSchema($ref) {
|
|
@@ -13632,11 +13632,11 @@ function requireCore$1() {
|
|
|
13632
13632
|
}
|
|
13633
13633
|
}
|
|
13634
13634
|
async function loadMissingSchema(ref2) {
|
|
13635
|
-
const
|
|
13635
|
+
const _schema = await _loadSchema.call(this, ref2);
|
|
13636
13636
|
if (!this.refs[ref2])
|
|
13637
|
-
await loadMetaSchema.call(this,
|
|
13637
|
+
await loadMetaSchema.call(this, _schema.$schema);
|
|
13638
13638
|
if (!this.refs[ref2])
|
|
13639
|
-
this.addSchema(
|
|
13639
|
+
this.addSchema(_schema, ref2, meta2);
|
|
13640
13640
|
}
|
|
13641
13641
|
async function _loadSchema(ref2) {
|
|
13642
13642
|
const p = this._loading[ref2];
|
|
@@ -17540,7 +17540,7 @@ render_fn = function() {
|
|
|
17540
17540
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
17541
17541
|
this.shadowRoot.innerHTML = `
|
|
17542
17542
|
<style>
|
|
17543
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17543
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.406"}/dist/css/nine-mu.css";
|
|
17544
17544
|
${customImport}
|
|
17545
17545
|
</style>
|
|
17546
17546
|
<div class="wrapper">
|
|
@@ -43790,7 +43790,7 @@ class NineDiff extends HTMLElement {
|
|
|
43790
43790
|
const customImport = nine.cssPath ? `@import "${nine.cssPath}/nine-mu.css";` : "";
|
|
43791
43791
|
this.shadowRoot.innerHTML = `
|
|
43792
43792
|
<style>
|
|
43793
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43793
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.406"}/dist/css/nine-mu.css";
|
|
43794
43794
|
${customImport}
|
|
43795
43795
|
</style>
|
|
43796
43796
|
|
|
@@ -43930,7 +43930,7 @@ renderScaffolding_fn = function() {
|
|
|
43930
43930
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
43931
43931
|
this.shadowRoot.innerHTML = `
|
|
43932
43932
|
<style>
|
|
43933
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43933
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.406"}/dist/css/nine-mu.css";
|
|
43934
43934
|
${customImport}
|
|
43935
43935
|
</style>
|
|
43936
43936
|
|
|
@@ -44039,7 +44039,7 @@ render_fn2 = function() {
|
|
|
44039
44039
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
44040
44040
|
this.shadowRoot.innerHTML = `
|
|
44041
44041
|
<style>
|
|
44042
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44042
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.406"}/dist/css/nine-mu.css";
|
|
44043
44043
|
${customImport}
|
|
44044
44044
|
</style>
|
|
44045
44045
|
|
|
@@ -44369,7 +44369,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44369
44369
|
const customImport = nine.cssPath ? `@import "${nine.cssPath}/nine-mu.css";` : "";
|
|
44370
44370
|
this.shadowRoot.innerHTML = `
|
|
44371
44371
|
<style>
|
|
44372
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44372
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.406"}/dist/css/nine-mu.css";
|
|
44373
44373
|
${customImport}
|
|
44374
44374
|
</style>
|
|
44375
44375
|
|
|
@@ -44471,48 +44471,20 @@ class NineNaturalQuery extends HTMLElement {
|
|
|
44471
44471
|
constructor() {
|
|
44472
44472
|
super();
|
|
44473
44473
|
__privateAdd(this, _NineNaturalQuery_instances);
|
|
44474
|
-
__privateAdd(this, _schema, null);
|
|
44475
|
-
__privateAdd(this, _connectorUrl2, "");
|
|
44476
|
-
__privateAdd(this, _aiProcessor, null);
|
|
44477
44474
|
__privateAdd(this, _tipPopup);
|
|
44478
44475
|
this.attachShadow({ mode: "open" });
|
|
44479
44476
|
}
|
|
44480
44477
|
async connectedCallback() {
|
|
44481
|
-
__privateSet(this, _connectorUrl2, this.getAttribute("connector-url") || "http://localhost:3001");
|
|
44482
44478
|
__privateMethod(this, _NineNaturalQuery_instances, render_fn3).call(this);
|
|
44483
44479
|
}
|
|
44484
44480
|
}
|
|
44485
|
-
_schema = new WeakMap();
|
|
44486
|
-
_connectorUrl2 = new WeakMap();
|
|
44487
|
-
_aiProcessor = new WeakMap();
|
|
44488
44481
|
_tipPopup = new WeakMap();
|
|
44489
44482
|
_NineNaturalQuery_instances = new WeakSet();
|
|
44490
|
-
runQuery_fn = async function(sql) {
|
|
44491
|
-
try {
|
|
44492
|
-
trace.log("🚀 쿼리 실행 요청:", sql);
|
|
44493
|
-
const response = await fetch(`${__privateGet(this, _connectorUrl2)}/api/query`, {
|
|
44494
|
-
method: "POST",
|
|
44495
|
-
headers: { "Content-Type": "application/json" },
|
|
44496
|
-
body: JSON.stringify({ sql })
|
|
44497
|
-
});
|
|
44498
|
-
trace.log(response);
|
|
44499
|
-
if (!response.ok) throw new Error("쿼리 실행 실패");
|
|
44500
|
-
const result = await response.json();
|
|
44501
|
-
if (result.success) {
|
|
44502
|
-
trace.log("✅ 쿼리 실행 결과:", result.data);
|
|
44503
|
-
return result.data;
|
|
44504
|
-
} else {
|
|
44505
|
-
throw new Error(result.error || "쿼리 실행 중 오류 발생");
|
|
44506
|
-
}
|
|
44507
|
-
} catch (error) {
|
|
44508
|
-
trace.error("❌ 쿼리 실행 실패:", error.message);
|
|
44509
|
-
}
|
|
44510
|
-
};
|
|
44511
44483
|
render_fn3 = function() {
|
|
44512
44484
|
const customImport = nine.cssPath ? `@import "${nine.cssPath}/nine-mu.css";` : "";
|
|
44513
44485
|
this.shadowRoot.innerHTML = `
|
|
44514
44486
|
<style>
|
|
44515
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44487
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.406"}/dist/css/nine-mu.css";
|
|
44516
44488
|
${customImport}
|
|
44517
44489
|
</style>
|
|
44518
44490
|
|
|
@@ -44660,7 +44632,7 @@ render_fn4 = function() {
|
|
|
44660
44632
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
44661
44633
|
this.shadowRoot.innerHTML = `
|
|
44662
44634
|
<style>
|
|
44663
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44635
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.406"}/dist/css/nine-mu.css";
|
|
44664
44636
|
${customImport}
|
|
44665
44637
|
</style>
|
|
44666
44638
|
|
|
@@ -44895,7 +44867,7 @@ function NineHook({ children, menuData, views, error404, onCatch, fallback, styl
|
|
|
44895
44867
|
);
|
|
44896
44868
|
}
|
|
44897
44869
|
const NineMu = {
|
|
44898
|
-
version: "0.1.
|
|
44870
|
+
version: "0.1.406",
|
|
44899
44871
|
init: (config2) => {
|
|
44900
44872
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44901
44873
|
}
|