@nine-lab/nine-mu 0.1.97 → 0.1.99

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.
@@ -77,30 +77,26 @@
77
77
  }
78
78
 
79
79
  .menu-filter {
80
- background-repeat: no-repeat;
81
- background-position: center;
82
- background-size: auto;
83
80
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5z"/></svg>');
84
81
  }
85
82
 
86
83
  .menu-general {
87
- background-repeat: no-repeat;
88
- background-position: center;
89
- background-size: auto;
90
84
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15"/></svg>');
91
85
  }
92
86
 
93
87
  .menu-db {
94
- background-repeat: no-repeat;
95
- background-position: center;
96
- background-size: auto;
97
88
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15"/></svg>');
98
89
  }
99
90
 
100
91
  .menu-setting {
101
- background-repeat: no-repeat;
102
- background-position: center;
103
- background-size: auto;
92
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/></svg>');
93
+ }
94
+
95
+ .make-menu {
96
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/></svg>');
97
+ }
98
+
99
+ .source-gen {
104
100
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/></svg>');
105
101
  }
106
102
 
@@ -110,6 +106,9 @@
110
106
  justify-content: center;
111
107
  align-items: center;
112
108
  height: 32px;
109
+ background-repeat: no-repeat;
110
+ background-position: center;
111
+ background-size: auto;
113
112
  }
114
113
  .menu-icon.active {
115
114
  --border-right: 4px solid #999;
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 _getSourcePath, _service, _routes, _diffPopup, _packageName, _routesPath, _connectorUrl, _NineChat_instances, initInteractions_fn, initActions_fn, render_fn, _makeMenuHandler, _sourceGenHandler, _asisEditorView, _tobeEditorView, _asisEditorEl, _tobeEditorEl, _languageCompartment, _isScrollSyncActive, _initCodeMirror, _setupScrollSync, _applyDiffDecorations, _dialog, _diffView, _asisBackup, _host, _NineDiffPopup_instances, render_fn2, handleConfirm_fn, handleCancel_fn;
12
+ var _getSourcePath, _service, _routes, _diffPopup, _packageName, _routesPath, _connectorUrl, _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;
13
13
  import { trace, api, nine } from "@nine-lab/nine-util";
14
14
  class NineMuService {
15
15
  constructor(connectorUrl) {
@@ -121,7 +121,9 @@ class NineChat extends HTMLElement {
121
121
  routes: jsonRoutes,
122
122
  prompt
123
123
  });
124
- trace.log("분석 완료. 생성할 태스크:", res2 == null ? void 0 : res2.tasks);
124
+ if (res2.success && (res2 == null ? void 0 : res2.tasks)) {
125
+ __privateGet(this, _showDiff).call(this, jsonRoutes, JSON.stringify(res.tasks, null, 2), "json");
126
+ }
125
127
  });
126
128
  __privateAdd(this, _sourceGenHandler, async (e) => {
127
129
  const command2 = "";
@@ -136,7 +138,7 @@ class NineChat extends HTMLElement {
136
138
  nine.alert(err.message).rgb().shake();
137
139
  }
138
140
  });
139
- __publicField(this, "showDiff", (asis, tobe, lang) => {
141
+ __privateAdd(this, _showDiff, (asis, tobe, lang) => {
140
142
  __privateGet(this, _diffPopup).popup().data(asis, tobe, lang);
141
143
  });
142
144
  this.attachShadow({ mode: "open" });
@@ -208,7 +210,7 @@ render_fn = function() {
208
210
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
209
211
  this.shadowRoot.innerHTML = `
210
212
  <style>
211
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.96"}/dist/css/nine-mu.css";
213
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.98"}/dist/css/nine-mu.css";
212
214
  ${customImport}
213
215
  </style>
214
216
  <div class="wrapper">
@@ -248,6 +250,7 @@ render_fn = function() {
248
250
  };
249
251
  _makeMenuHandler = new WeakMap();
250
252
  _sourceGenHandler = new WeakMap();
253
+ _showDiff = new WeakMap();
251
254
  if (!customElements.get("nine-chat")) {
252
255
  customElements.define("nine-chat", NineChat);
253
256
  }
@@ -26425,7 +26428,7 @@ class NineDiff extends HTMLElement {
26425
26428
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
26426
26429
  this.shadowRoot.innerHTML = `
26427
26430
  <style>
26428
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.96"}/dist/css/nine-mu.css";
26431
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.98"}/dist/css/nine-mu.css";
26429
26432
  ${customImport}
26430
26433
  </style>
26431
26434
 
@@ -26535,7 +26538,7 @@ render_fn2 = function() {
26535
26538
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
26536
26539
  this.shadowRoot.innerHTML = `
26537
26540
  <style>
26538
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.96"}/dist/css/nine-mu.css";
26541
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.98"}/dist/css/nine-mu.css";
26539
26542
  ${customImport}
26540
26543
  </style>
26541
26544
 
@@ -26574,7 +26577,7 @@ handleCancel_fn = function() {
26574
26577
  };
26575
26578
  customElements.define("nine-diff-popup", NineDiffPopup);
26576
26579
  const NineMu = {
26577
- version: "0.1.96",
26580
+ version: "0.1.98",
26578
26581
  init: (config) => {
26579
26582
  trace.log("🛠️ Nine-Mu Engine initialized", config);
26580
26583
  }