@nine-lab/nine-mu 0.1.129 → 0.1.131

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 CHANGED
@@ -13693,38 +13693,16 @@ initInteractions_fn = function() {
13693
13693
  // --- [그룹 2: Action] 엔터키 입력 시 서비스 호출 ---
13694
13694
  initActions_fn = function() {
13695
13695
  const $textarea = this.shadowRoot.querySelector("#q");
13696
- const $status2 = this.shadowRoot.querySelector("#status-tag");
13696
+ this.shadowRoot.querySelector("#status-tag");
13697
13697
  $textarea.addEventListener("keypress", async (e) => {
13698
13698
  if (e.key === "Enter" && !e.shiftKey) {
13699
13699
  e.preventDefault();
13700
- const userPrompt = e.target.value.trim();
13701
- if (!userPrompt) return;
13702
- try {
13703
- const result = await __privateGet(this, _mcpClient).callTool({
13704
- name: "chat_agent",
13705
- arguments: {
13706
- // 🔴 여기를 확인하세요!
13707
- // 서버 Zod 스키마가 { userInput: z.string() } 이므로 이름을 맞춰야 합니다.
13708
- userInput: userPrompt,
13709
- context: {
13710
- routesPath: __privateGet(this, _routesPath),
13711
- packageName: __privateGet(this, _packageName),
13712
- genTargets: Array.from(this.shadowRoot.querySelectorAll('input[name="gen_target"]:checked')).map((el) => el.value)
13713
- }
13714
- }
13715
- });
13716
- trace.log(result);
13717
- const data = JSON.parse(result.content[0].text);
13718
- if (data.action === "SHOW_DIFF") {
13719
- __privateGet(this, _showDiff).call(this, data.asis, data.tobe, "json");
13720
- $status2.textContent = "✅ 분석 완료";
13721
- } else {
13722
- $status2.textContent = "💬 답변 완료";
13723
- }
13724
- } catch (err) {
13725
- trace.error("AI 응답 실패:", err);
13726
- $status2.textContent = "❌ 에러 발생";
13727
- }
13700
+ const userInput = e.target.value.trim();
13701
+ if (!userInput) return;
13702
+ const response = await __privateGet(this, _mcpClient).executeAgent(userInput);
13703
+ console.log(response);
13704
+ const result = JSON.parse(response.content[0].text);
13705
+ if (result.action === "SHOW_DIFF") this.openDiff(result);
13728
13706
  }
13729
13707
  });
13730
13708
  };
@@ -13734,7 +13712,7 @@ render_fn = function() {
13734
13712
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
13735
13713
  this.shadowRoot.innerHTML = `
13736
13714
  <style>
13737
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.128"}/dist/css/nine-mu.css";
13715
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.130"}/dist/css/nine-mu.css";
13738
13716
  ${customImport}
13739
13717
  </style>
13740
13718
  <div class="wrapper">
@@ -39952,7 +39930,7 @@ class NineDiff extends HTMLElement {
39952
39930
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
39953
39931
  this.shadowRoot.innerHTML = `
39954
39932
  <style>
39955
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.128"}/dist/css/nine-mu.css";
39933
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.130"}/dist/css/nine-mu.css";
39956
39934
  ${customImport}
39957
39935
  </style>
39958
39936
 
@@ -40062,7 +40040,7 @@ render_fn2 = function() {
40062
40040
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
40063
40041
  this.shadowRoot.innerHTML = `
40064
40042
  <style>
40065
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.128"}/dist/css/nine-mu.css";
40043
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.130"}/dist/css/nine-mu.css";
40066
40044
  ${customImport}
40067
40045
  </style>
40068
40046
 
@@ -40101,7 +40079,7 @@ handleCancel_fn = function() {
40101
40079
  };
40102
40080
  customElements.define("nine-diff-popup", NineDiffPopup);
40103
40081
  const NineMu = {
40104
- version: "0.1.128",
40082
+ version: "0.1.130",
40105
40083
  init: (config2) => {
40106
40084
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
40107
40085
  }