@nine-lab/nine-mu 0.1.362 → 0.1.364

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
@@ -17538,7 +17538,7 @@ render_fn = function() {
17538
17538
  const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
17539
17539
  this.shadowRoot.innerHTML = `
17540
17540
  <style>
17541
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.361"}/dist/css/nine-mu.css";
17541
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.363"}/dist/css/nine-mu.css";
17542
17542
  ${customImport}
17543
17543
  </style>
17544
17544
  <div class="wrapper">
@@ -43788,7 +43788,7 @@ class NineDiff extends HTMLElement {
43788
43788
  const customImport = nine.cssPath ? `@import "${nine.cssPath}/nine-mu.css";` : "";
43789
43789
  this.shadowRoot.innerHTML = `
43790
43790
  <style>
43791
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.361"}/dist/css/nine-mu.css";
43791
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.363"}/dist/css/nine-mu.css";
43792
43792
  ${customImport}
43793
43793
  </style>
43794
43794
 
@@ -43928,7 +43928,7 @@ renderScaffolding_fn = function() {
43928
43928
  const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
43929
43929
  this.shadowRoot.innerHTML = `
43930
43930
  <style>
43931
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.361"}/dist/css/nine-mu.css";
43931
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.363"}/dist/css/nine-mu.css";
43932
43932
  ${customImport}
43933
43933
  </style>
43934
43934
 
@@ -44037,7 +44037,7 @@ render_fn2 = function() {
44037
44037
  const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
44038
44038
  this.shadowRoot.innerHTML = `
44039
44039
  <style>
44040
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.361"}/dist/css/nine-mu.css";
44040
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.363"}/dist/css/nine-mu.css";
44041
44041
  ${customImport}
44042
44042
  </style>
44043
44043
 
@@ -44367,7 +44367,7 @@ class ChatMessageBody extends HTMLElement {
44367
44367
  const customImport = nine.cssPath ? `@import "${nine.cssPath}/nine-mu.css";` : "";
44368
44368
  this.shadowRoot.innerHTML = `
44369
44369
  <style>
44370
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.361"}/dist/css/nine-mu.css";
44370
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.363"}/dist/css/nine-mu.css";
44371
44371
  ${customImport}
44372
44372
  </style>
44373
44373
 
@@ -44472,6 +44472,7 @@ const NineExceptionStyles = {
44472
44472
  padding: "25px",
44473
44473
  background: "#121314",
44474
44474
  fontFamily: 'Consolas, Monaco, "Courier New", monospace',
44475
+ fontSize: "14px",
44475
44476
  textAlign: "left",
44476
44477
  boxShadow: "0 4px 12px rgba(0,0,0,0.3)",
44477
44478
  display: "flex",
@@ -44600,15 +44601,27 @@ class NineExceptionHook extends React.Component {
44600
44601
  }, 600);
44601
44602
  }
44602
44603
  render() {
44603
- var _a2, _b;
44604
+ var _a2;
44604
44605
  if (this.state.hasError) {
44605
44606
  if (this.props.fallback) {
44606
44607
  return this.props.fallback(this.state.error);
44607
44608
  }
44608
- const errorMessage = ((_a2 = this.state.error) == null ? void 0 : _a2.message) || String(this.state.error);
44609
+ let errorMessage = "";
44610
+ if (this.state.error) {
44611
+ const errorName = this.state.error.name ? `[${this.state.error.name}] ` : "";
44612
+ const mainMessage = this.state.error.message || String(this.state.error);
44613
+ if (this.state.error.stack) {
44614
+ const stackLines = this.state.error.stack.split("\n");
44615
+ errorMessage = stackLines[0].includes(mainMessage) ? stackLines[0] : `${errorName}${mainMessage}`;
44616
+ } else {
44617
+ errorMessage = `${errorName}${mainMessage}`;
44618
+ }
44619
+ } else {
44620
+ errorMessage = "Unknown runtime exception occurred.";
44621
+ }
44609
44622
  const customStyles = this.props.styles || {};
44610
44623
  let errorLocation = "";
44611
- if ((_b = this.state.errorInfo) == null ? void 0 : _b.componentStack) {
44624
+ if ((_a2 = this.state.errorInfo) == null ? void 0 : _a2.componentStack) {
44612
44625
  const lines = this.state.errorInfo.componentStack.trim().split("\n");
44613
44626
  const targetLine = lines[0] || "";
44614
44627
  const match = targetLine.match(/at\s+(\w+)\s+\((.*)\)/) || targetLine.match(/at\s+(.*)/);
@@ -44618,7 +44631,7 @@ class NineExceptionHook extends React.Component {
44618
44631
  if (rawPath.includes("http://") || rawPath.includes("https://")) {
44619
44632
  rawPath = rawPath.replace(/^https?:\/\/[^\/]+/, "");
44620
44633
  }
44621
- errorLocation = rawPath ? `${componentName} (${rawPath})` : componentName;
44634
+ errorLocation = rawPath ? `at ${componentName} (${rawPath})` : `at ${componentName}`;
44622
44635
  } else {
44623
44636
  errorLocation = targetLine.trim();
44624
44637
  }
@@ -44628,21 +44641,21 @@ class NineExceptionHook extends React.Component {
44628
44641
  {
44629
44642
  style: { ...NineExceptionStyles.container, ...customStyles.container, ...this.props.containerStyle }
44630
44643
  },
44631
- // 1. [SYSTEM] 라인
44644
+ // 1. 에러 감지 로그
44632
44645
  React.createElement(
44633
44646
  "div",
44634
44647
  { style: { ...NineExceptionStyles.systemError, ...customStyles.systemError } },
44635
44648
  "[SYSTEM] COMPONENT RENDER ERROR DETECTED"
44636
44649
  ),
44637
- // 2. aa is not defined 라인
44650
+ // 2. 상세화된 에러 내용 (예: ReferenceError: aa is not defined)
44638
44651
  React.createElement("pre", { style: { ...NineExceptionStyles.pre, ...customStyles.pre } }, errorMessage),
44639
- // 3. at MemberUsers 라인
44652
+ // 3. 파싱된 에러 발생 파일명 및 라인 위치
44640
44653
  errorLocation && React.createElement(
44641
44654
  "div",
44642
44655
  { style: { ...NineExceptionStyles.locationRow, ...customStyles.locationRow } },
44643
- ` at ${errorLocation}`
44656
+ errorLocation
44644
44657
  ),
44645
- // 4. CLI 프롬프트 및 후속 결과 라인 영역
44658
+ // 4. CLI 프롬프트 영역
44646
44659
  React.createElement(
44647
44660
  "div",
44648
44661
  { style: { ...NineExceptionStyles.footer, ...customStyles.footer } },
@@ -44660,17 +44673,16 @@ class NineExceptionHook extends React.Component {
44660
44673
  ),
44661
44674
  React.createElement("span", null, "/n)?")
44662
44675
  ),
44663
- // display: 'block'과 margin/padding 0을 주어 다른 라인들과 오차 없이 간격을 맞춤
44664
44676
  this.state.reportStatus === "sending" && React.createElement(
44665
44677
  "div",
44666
- { style: { color: "#ED8936", margin: "0", padding: "0", display: "block" } },
44678
+ { style: { color: "#ED8936", margin: "0" } },
44667
44679
  ">> Connecting to Control Tower... Sending payload."
44668
44680
  ),
44669
44681
  this.state.reportStatus === "success" && React.createElement(
44670
44682
  "div",
44671
- { style: { margin: "0", padding: "0", display: "block" } },
44672
- React.createElement("div", { style: { color: "#38A169", fontWeight: "bold", display: "block", margin: "0" } }, ">> Transmit complete. Core engine initialized."),
44673
- React.createElement("div", { style: { color: "#A0AEC0", fontStyle: "italic", fontSize: "13px", display: "block", margin: "4px 0 0 0" } }, "AI가 소스 코드를 재수정하는 동안 잠시만 기다려주세요...")
44683
+ { style: { display: "flex", flexDirection: "column", gap: "12px", margin: "0" } },
44684
+ React.createElement("div", { style: { color: "#38A169", fontWeight: "bold" } }, ">> Transmit complete. Core engine initialized."),
44685
+ React.createElement("div", { style: { color: "#A0AEC0", fontStyle: "italic", fontSize: "13px" } }, "AI가 소스 코드를 재수정하는 동안 잠시만 기다려주세요...")
44674
44686
  )
44675
44687
  )
44676
44688
  );
@@ -44679,7 +44691,7 @@ class NineExceptionHook extends React.Component {
44679
44691
  }
44680
44692
  }
44681
44693
  const NineMu = {
44682
- version: "0.1.361",
44694
+ version: "0.1.363",
44683
44695
  init: (config2) => {
44684
44696
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
44685
44697
  }