@nine-lab/nine-mu 0.1.261 → 0.1.263

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
@@ -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, _NotificationHandler_instances, handleLoggingMessage_fn, _processSourceData, _mcpClient, _onAction, _onStatus, _onMessage, _owner2, _routeUrl, _chatHistory, _notiHandler, _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;
12
+ var _owner, _NotificationHandler_instances, handleLoggingMessage_fn, _processSourceData, _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, _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
13
  import { trace as trace$1, api, nine as nine$1 } from "@nine-lab/nine-util";
14
14
  class Trace extends trace$1.constructor {
15
15
  constructor() {
@@ -17123,12 +17123,6 @@ handleLoggingMessage_fn = function(params) {
17123
17123
  trace.log(`[시그널 감지] 설계 완료`, data);
17124
17124
  __privateGet(this, _processSourceData).call(this, data);
17125
17125
  }
17126
- if (data) {
17127
- if (data.source && data.file_name && data.path && data.mode === "CREATE" && data.status === "PROGRESS") {
17128
- trace.log(`[시그널 감지] 설계 완료`, data);
17129
- __privateGet(this, _processSourceData).call(this, data);
17130
- }
17131
- }
17132
17126
  };
17133
17127
  _processSourceData = new WeakMap();
17134
17128
  class NineChatManager {
@@ -17160,23 +17154,25 @@ class NineChatManager {
17160
17154
  /** 백엔드 통신 */
17161
17155
  __publicField(this, "analyzeUnmappedRoutes", async (routes) => {
17162
17156
  var _a2;
17163
- const res = await api.post("/nine-mu/config/getUnmappedRoutes", { routes });
17157
+ const res = await api.post("/nine-mu/config/getUnmappedRoutes", {
17158
+ routes
17159
+ });
17164
17160
  trace.log(res);
17165
17161
  const unmappedRoutes = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.unmappedRoutes) || (res == null ? void 0 : res.unmappedRoutes) || [];
17166
17162
  if (unmappedRoutes.length === 0) {
17167
17163
  nine.alert("미개발된 라우터가 없습니다. 모두 매핑되어 있습니다.");
17168
17164
  return;
17169
17165
  }
17170
- trace.log(unmappedRoutes);
17171
- const a = await __privateMethod(this, _NineChatManager_instances, callTool_fn).call(this, "generate-source-brain", {
17166
+ trace.log(unmappedRoutes, __privateGet(this, _owner2).config);
17167
+ return await __privateMethod(this, _NineChatManager_instances, callTool_fn).call(this, "generate-source-brain", {
17172
17168
  user_input: `다음 미개발 라우트에 대한 소스코드(Controller, Service, MyBatis, React)를 생성해줘.`,
17169
+ base_package: __privateGet(this, _owner2).config.basePackage,
17170
+ // nine.edu
17173
17171
  //chat_history: "",
17174
17172
  routes: unmappedRoutes
17175
17173
  // 미개발된 해당 라우트 정보 객체
17176
17174
  //current_path: route.path, // 현재 생성 기준 패스 명시
17177
17175
  });
17178
- trace.log(a);
17179
- return a;
17180
17176
  });
17181
17177
  __privateSet(this, _owner2, owner);
17182
17178
  __privateSet(this, _routeUrl, __privateGet(this, _owner2).getAttribute("route-url"));
@@ -17369,6 +17365,7 @@ class NineChat extends HTMLElement {
17369
17365
  __privateAdd(this, _routesPath);
17370
17366
  __privateAdd(this, _connectorUrl);
17371
17367
  __privateAdd(this, _manager);
17368
+ __privateAdd(this, _config);
17372
17369
  __privateAdd(this, _$nineChatMessage);
17373
17370
  __publicField(this, "addMessage", (who, message) => {
17374
17371
  __privateGet(this, _$nineChatMessage).add(who, message);
@@ -17406,6 +17403,9 @@ class NineChat extends HTMLElement {
17406
17403
  });
17407
17404
  this.attachShadow({ mode: "open" });
17408
17405
  }
17406
+ get config() {
17407
+ return __privateGet(this, _config);
17408
+ }
17409
17409
  async connectedCallback() {
17410
17410
  __privateSet(this, _packageName, this.getAttribute("package-name"));
17411
17411
  __privateSet(this, _connectorUrl, this.getAttribute("connector-url") || "http://localhost:3002");
@@ -17414,6 +17414,7 @@ class NineChat extends HTMLElement {
17414
17414
  __privateMethod(this, _NineChat_instances, initInteractions_fn).call(this);
17415
17415
  __privateMethod(this, _NineChat_instances, initActions_fn).call(this);
17416
17416
  const res = await api.post("/nine-mu/config/get", {});
17417
+ __privateSet(this, _config, res);
17417
17418
  __privateSet(this, _routesPath, (res == null ? void 0 : res.userDir) + "/" + __privateGet(this, _packageName) + "/public/prompts/data/routes.json");
17418
17419
  __privateSet(this, _manager, new NineChatManager(this));
17419
17420
  }
@@ -17423,6 +17424,7 @@ _packageName = new WeakMap();
17423
17424
  _routesPath = new WeakMap();
17424
17425
  _connectorUrl = new WeakMap();
17425
17426
  _manager = new WeakMap();
17427
+ _config = new WeakMap();
17426
17428
  _$nineChatMessage = new WeakMap();
17427
17429
  _NineChat_instances = new WeakSet();
17428
17430
  // --- [그룹 1: Interaction] 화면 토글 및 메뉴 클릭 ---
@@ -17498,7 +17500,7 @@ render_fn = function() {
17498
17500
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
17499
17501
  this.shadowRoot.innerHTML = `
17500
17502
  <style>
17501
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.260"}/dist/css/nine-mu.css";
17503
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.262"}/dist/css/nine-mu.css";
17502
17504
  ${customImport}
17503
17505
  </style>
17504
17506
  <div class="wrapper">
@@ -43715,7 +43717,7 @@ class NineDiff extends HTMLElement {
43715
43717
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43716
43718
  this.shadowRoot.innerHTML = `
43717
43719
  <style>
43718
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.260"}/dist/css/nine-mu.css";
43720
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.262"}/dist/css/nine-mu.css";
43719
43721
  ${customImport}
43720
43722
  </style>
43721
43723
 
@@ -43825,7 +43827,7 @@ render_fn2 = function() {
43825
43827
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43826
43828
  this.shadowRoot.innerHTML = `
43827
43829
  <style>
43828
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.260"}/dist/css/nine-mu.css";
43830
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.262"}/dist/css/nine-mu.css";
43829
43831
  ${customImport}
43830
43832
  </style>
43831
43833
 
@@ -44151,7 +44153,7 @@ class ChatMessageBody extends HTMLElement {
44151
44153
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44152
44154
  this.shadowRoot.innerHTML = `
44153
44155
  <style>
44154
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.260"}/dist/css/nine-mu.css";
44156
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.262"}/dist/css/nine-mu.css";
44155
44157
  ${customImport}
44156
44158
  </style>
44157
44159
 
@@ -44245,7 +44247,7 @@ if (!customElements.get("nine-chat-progress")) {
44245
44247
  customElements.define("nine-chat-progress", ProgressMessage);
44246
44248
  }
44247
44249
  const NineMu = {
44248
- version: "0.1.260",
44250
+ version: "0.1.262",
44249
44251
  init: (config2) => {
44250
44252
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
44251
44253
  }