@nine-lab/nine-mu 0.1.262 → 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() {
@@ -17154,23 +17154,25 @@ class NineChatManager {
17154
17154
  /** 백엔드 통신 */
17155
17155
  __publicField(this, "analyzeUnmappedRoutes", async (routes) => {
17156
17156
  var _a2;
17157
- const res = await api.post("/nine-mu/config/getUnmappedRoutes", { routes });
17157
+ const res = await api.post("/nine-mu/config/getUnmappedRoutes", {
17158
+ routes
17159
+ });
17158
17160
  trace.log(res);
17159
17161
  const unmappedRoutes = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.unmappedRoutes) || (res == null ? void 0 : res.unmappedRoutes) || [];
17160
17162
  if (unmappedRoutes.length === 0) {
17161
17163
  nine.alert("미개발된 라우터가 없습니다. 모두 매핑되어 있습니다.");
17162
17164
  return;
17163
17165
  }
17164
- trace.log(unmappedRoutes);
17165
- 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", {
17166
17168
  user_input: `다음 미개발 라우트에 대한 소스코드(Controller, Service, MyBatis, React)를 생성해줘.`,
17169
+ base_package: __privateGet(this, _owner2).config.basePackage,
17170
+ // nine.edu
17167
17171
  //chat_history: "",
17168
17172
  routes: unmappedRoutes
17169
17173
  // 미개발된 해당 라우트 정보 객체
17170
17174
  //current_path: route.path, // 현재 생성 기준 패스 명시
17171
17175
  });
17172
- trace.log(a);
17173
- return a;
17174
17176
  });
17175
17177
  __privateSet(this, _owner2, owner);
17176
17178
  __privateSet(this, _routeUrl, __privateGet(this, _owner2).getAttribute("route-url"));
@@ -17363,6 +17365,7 @@ class NineChat extends HTMLElement {
17363
17365
  __privateAdd(this, _routesPath);
17364
17366
  __privateAdd(this, _connectorUrl);
17365
17367
  __privateAdd(this, _manager);
17368
+ __privateAdd(this, _config);
17366
17369
  __privateAdd(this, _$nineChatMessage);
17367
17370
  __publicField(this, "addMessage", (who, message) => {
17368
17371
  __privateGet(this, _$nineChatMessage).add(who, message);
@@ -17400,6 +17403,9 @@ class NineChat extends HTMLElement {
17400
17403
  });
17401
17404
  this.attachShadow({ mode: "open" });
17402
17405
  }
17406
+ get config() {
17407
+ return __privateGet(this, _config);
17408
+ }
17403
17409
  async connectedCallback() {
17404
17410
  __privateSet(this, _packageName, this.getAttribute("package-name"));
17405
17411
  __privateSet(this, _connectorUrl, this.getAttribute("connector-url") || "http://localhost:3002");
@@ -17408,6 +17414,7 @@ class NineChat extends HTMLElement {
17408
17414
  __privateMethod(this, _NineChat_instances, initInteractions_fn).call(this);
17409
17415
  __privateMethod(this, _NineChat_instances, initActions_fn).call(this);
17410
17416
  const res = await api.post("/nine-mu/config/get", {});
17417
+ __privateSet(this, _config, res);
17411
17418
  __privateSet(this, _routesPath, (res == null ? void 0 : res.userDir) + "/" + __privateGet(this, _packageName) + "/public/prompts/data/routes.json");
17412
17419
  __privateSet(this, _manager, new NineChatManager(this));
17413
17420
  }
@@ -17417,6 +17424,7 @@ _packageName = new WeakMap();
17417
17424
  _routesPath = new WeakMap();
17418
17425
  _connectorUrl = new WeakMap();
17419
17426
  _manager = new WeakMap();
17427
+ _config = new WeakMap();
17420
17428
  _$nineChatMessage = new WeakMap();
17421
17429
  _NineChat_instances = new WeakSet();
17422
17430
  // --- [그룹 1: Interaction] 화면 토글 및 메뉴 클릭 ---
@@ -17492,7 +17500,7 @@ render_fn = function() {
17492
17500
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
17493
17501
  this.shadowRoot.innerHTML = `
17494
17502
  <style>
17495
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.261"}/dist/css/nine-mu.css";
17503
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.262"}/dist/css/nine-mu.css";
17496
17504
  ${customImport}
17497
17505
  </style>
17498
17506
  <div class="wrapper">
@@ -43709,7 +43717,7 @@ class NineDiff extends HTMLElement {
43709
43717
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43710
43718
  this.shadowRoot.innerHTML = `
43711
43719
  <style>
43712
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.261"}/dist/css/nine-mu.css";
43720
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.262"}/dist/css/nine-mu.css";
43713
43721
  ${customImport}
43714
43722
  </style>
43715
43723
 
@@ -43819,7 +43827,7 @@ render_fn2 = function() {
43819
43827
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
43820
43828
  this.shadowRoot.innerHTML = `
43821
43829
  <style>
43822
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.261"}/dist/css/nine-mu.css";
43830
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.262"}/dist/css/nine-mu.css";
43823
43831
  ${customImport}
43824
43832
  </style>
43825
43833
 
@@ -44145,7 +44153,7 @@ class ChatMessageBody extends HTMLElement {
44145
44153
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44146
44154
  this.shadowRoot.innerHTML = `
44147
44155
  <style>
44148
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.261"}/dist/css/nine-mu.css";
44156
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.262"}/dist/css/nine-mu.css";
44149
44157
  ${customImport}
44150
44158
  </style>
44151
44159
 
@@ -44239,7 +44247,7 @@ if (!customElements.get("nine-chat-progress")) {
44239
44247
  customElements.define("nine-chat-progress", ProgressMessage);
44240
44248
  }
44241
44249
  const NineMu = {
44242
- version: "0.1.261",
44250
+ version: "0.1.262",
44243
44251
  init: (config2) => {
44244
44252
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
44245
44253
  }