@nine-lab/nine-mu 0.1.344 β 0.1.346
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 +7 -211
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +3 -3
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/exception/ExceptionHook.js +50 -211
- package/src/index.js +1 -1
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, _collectedFiles, _NotificationHandler_instances, handleLoggingMessage_fn, _collectModifySource, _openDiffPopup, _openRouteDiffPopup, _generateSource, _generateMenu, _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, _sourceGenHandler, _asisEditorView, _tobeEditorView, _asisEditorEl, _tobeEditorEl, _isDirty, _initialAsisSrc, _initialTobeSrc, _languageCompartment, _isScrollSyncActive, _initCodeMirror, _checkDirtyState, _setupScrollSync, _applyDiffDecorations, _dialog, _tabContainer, _fileList, _host, _NineDiffPopup_instances, renderScaffolding_fn, handleConfirmAll_fn, handleCancel_fn, _dialog2, _diffView, _asisBackup, _host2, _NineMenuDiffPopup_instances, render_fn2, handleConfirm_fn, handleCancel_fn2, _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, _collectedFiles, _NotificationHandler_instances, handleLoggingMessage_fn, _collectModifySource, _openDiffPopup, _openRouteDiffPopup, _generateSource, _generateMenu, _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, _sourceGenHandler, _asisEditorView, _tobeEditorView, _asisEditorEl, _tobeEditorEl, _isDirty, _initialAsisSrc, _initialTobeSrc, _languageCompartment, _isScrollSyncActive, _initCodeMirror, _checkDirtyState, _setupScrollSync, _applyDiffDecorations, _dialog, _tabContainer, _fileList, _host, _NineDiffPopup_instances, renderScaffolding_fn, handleConfirmAll_fn, handleCancel_fn, _dialog2, _diffView, _asisBackup, _host2, _NineMenuDiffPopup_instances, render_fn2, handleConfirm_fn, handleCancel_fn2, _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() {
|
|
@@ -17537,7 +17537,7 @@ render_fn = function() {
|
|
|
17537
17537
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
17538
17538
|
this.shadowRoot.innerHTML = `
|
|
17539
17539
|
<style>
|
|
17540
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17540
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.345"}/dist/css/nine-mu.css";
|
|
17541
17541
|
${customImport}
|
|
17542
17542
|
</style>
|
|
17543
17543
|
<div class="wrapper">
|
|
@@ -43787,7 +43787,7 @@ class NineDiff extends HTMLElement {
|
|
|
43787
43787
|
const customImport = nine.cssPath ? `@import "${nine.cssPath}/nine-mu.css";` : "";
|
|
43788
43788
|
this.shadowRoot.innerHTML = `
|
|
43789
43789
|
<style>
|
|
43790
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43790
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.345"}/dist/css/nine-mu.css";
|
|
43791
43791
|
${customImport}
|
|
43792
43792
|
</style>
|
|
43793
43793
|
|
|
@@ -43927,7 +43927,7 @@ renderScaffolding_fn = function() {
|
|
|
43927
43927
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
43928
43928
|
this.shadowRoot.innerHTML = `
|
|
43929
43929
|
<style>
|
|
43930
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43930
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.345"}/dist/css/nine-mu.css";
|
|
43931
43931
|
${customImport}
|
|
43932
43932
|
</style>
|
|
43933
43933
|
|
|
@@ -44036,7 +44036,7 @@ render_fn2 = function() {
|
|
|
44036
44036
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
44037
44037
|
this.shadowRoot.innerHTML = `
|
|
44038
44038
|
<style>
|
|
44039
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44039
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.345"}/dist/css/nine-mu.css";
|
|
44040
44040
|
${customImport}
|
|
44041
44041
|
</style>
|
|
44042
44042
|
|
|
@@ -44366,7 +44366,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44366
44366
|
const customImport = nine.cssPath ? `@import "${nine.cssPath}/nine-mu.css";` : "";
|
|
44367
44367
|
this.shadowRoot.innerHTML = `
|
|
44368
44368
|
<style>
|
|
44369
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44369
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.345"}/dist/css/nine-mu.css";
|
|
44370
44370
|
${customImport}
|
|
44371
44371
|
</style>
|
|
44372
44372
|
|
|
@@ -44464,212 +44464,8 @@ if (!customElements.get("nine-chat-ing")) {
|
|
|
44464
44464
|
if (!customElements.get("nine-chat-progress")) {
|
|
44465
44465
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44466
44466
|
}
|
|
44467
|
-
class ExceptionHook extends HTMLElement {
|
|
44468
|
-
constructor() {
|
|
44469
|
-
super();
|
|
44470
|
-
__privateAdd(this, _ExceptionHook_instances);
|
|
44471
|
-
__privateAdd(this, _lastPath, window.location.pathname);
|
|
44472
|
-
__privateAdd(this, _hasError, false);
|
|
44473
|
-
__privateAdd(this, _cssPath, "/css/nine-exception-hook.css");
|
|
44474
|
-
__privateAdd(this, _oldOnError, null);
|
|
44475
|
-
__privateAdd(this, _renderer2, () => {
|
|
44476
|
-
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
44477
|
-
this.shadowRoot.innerHTML = `
|
|
44478
|
-
<style>
|
|
44479
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.343"}/dist/css/nine-mu.css";
|
|
44480
|
-
${customImport}
|
|
44481
|
-
:host {
|
|
44482
|
-
display: block;
|
|
44483
|
-
width: 100%;
|
|
44484
|
-
height: 100%;
|
|
44485
|
-
}
|
|
44486
|
-
</style>
|
|
44487
|
-
<div class="nine-hook-core" style="width: 100%; height: 100%;">
|
|
44488
|
-
<slot></slot>
|
|
44489
|
-
</div>
|
|
44490
|
-
<div class="nine-exception-board"></div>
|
|
44491
|
-
`;
|
|
44492
|
-
});
|
|
44493
|
-
__privateAdd(this, _handleRuntimeError, (event) => {
|
|
44494
|
-
var _a2, _b;
|
|
44495
|
-
trace.log("π¨ [nine-exception-hook] window.addEventListener('error') 리μ€λ ν¬μ°©!!", event);
|
|
44496
|
-
if (__privateGet(this, _hasError)) return;
|
|
44497
|
-
const errorMessage = ((_a2 = event.error) == null ? void 0 : _a2.message) || event.message || String(event);
|
|
44498
|
-
const errorStack = ((_b = event.error) == null ? void 0 : _b.stack) || "No stack trace available";
|
|
44499
|
-
if (errorMessage && errorMessage !== "Script error.") {
|
|
44500
|
-
__privateMethod(this, _ExceptionHook_instances, renderError_fn).call(this, errorMessage, errorStack);
|
|
44501
|
-
}
|
|
44502
|
-
});
|
|
44503
|
-
__privateAdd(this, _handlePromiseError, (event) => {
|
|
44504
|
-
trace.log("π¨ [nine-exception-hook] unhandledrejection (Promise μλ¬) ν¬μ°©!!", event);
|
|
44505
|
-
if (__privateGet(this, _hasError)) return;
|
|
44506
|
-
const reason = event.reason;
|
|
44507
|
-
const errorMessage = (reason == null ? void 0 : reason.message) || String(reason || "Unhandled Promise Rejection");
|
|
44508
|
-
const errorStack = (reason == null ? void 0 : reason.stack) || "No stack trace available";
|
|
44509
|
-
__privateMethod(this, _ExceptionHook_instances, renderError_fn).call(this, errorMessage, errorStack);
|
|
44510
|
-
});
|
|
44511
|
-
__privateAdd(this, _handleLocationChange, () => {
|
|
44512
|
-
setTimeout(() => {
|
|
44513
|
-
if (__privateGet(this, _hasError) && __privateGet(this, _lastPath) !== window.location.pathname) {
|
|
44514
|
-
trace.log("β¨ [nine-exception-hook] Shadow DOM λ° κΈλ‘λ² μ€λ²λ μ΄ λ΄λΆ μμΈ μ²μ λ° μ μ 볡ꡬ");
|
|
44515
|
-
__privateSet(this, _lastPath, window.location.pathname);
|
|
44516
|
-
__privateSet(this, _hasError, false);
|
|
44517
|
-
__privateMethod(this, _ExceptionHook_instances, removeExternalOverlay_fn).call(this);
|
|
44518
|
-
const coreContainer = this.shadowRoot.querySelector(".nine-hook-core");
|
|
44519
|
-
if (coreContainer) coreContainer.style.display = "";
|
|
44520
|
-
}
|
|
44521
|
-
}, 50);
|
|
44522
|
-
});
|
|
44523
|
-
__privateAdd(this, _sendToAiAction, async (errorMessage, errorStack) => {
|
|
44524
|
-
const root = document.getElementById("nine-global-exception-container") || this.shadowRoot;
|
|
44525
|
-
const btn = root.querySelector(".nine-ai-btn");
|
|
44526
|
-
const footer = root.querySelector(".nine-error-footer");
|
|
44527
|
-
if (!btn) return;
|
|
44528
|
-
btn.disabled = true;
|
|
44529
|
-
btn.innerText = "β‘ AI κ΄μ νμ μμ€ λΆμ μμ² μ€...";
|
|
44530
|
-
btn.classList.add("loading");
|
|
44531
|
-
try {
|
|
44532
|
-
if (window.triggerAutoRecovery) {
|
|
44533
|
-
await window.triggerAutoRecovery({
|
|
44534
|
-
message: errorMessage,
|
|
44535
|
-
stack: errorStack || "No stack trace available",
|
|
44536
|
-
path: window.location.pathname
|
|
44537
|
-
});
|
|
44538
|
-
footer.innerHTML = `β
<b>AI κ΄μ ν μ μ μλ£:</b> λΆμμ λ°νμΌλ‘ μμ€ μ½λλ₯Ό κ΅μ νκ³ μμ΅λλ€. μ μλ§ κΈ°λ€λ €μ£ΌμΈμ.`;
|
|
44539
|
-
btn.innerText = "π μ μ‘ μλ£";
|
|
44540
|
-
} else {
|
|
44541
|
-
throw new Error("window.triggerAutoRecovery κ΄μ ν μμ§μ΄ λ‘λλμ§ μμμ΅λλ€.");
|
|
44542
|
-
}
|
|
44543
|
-
} catch (err) {
|
|
44544
|
-
trace.error("β AI μ μ‘ μ€ν¨:", err);
|
|
44545
|
-
btn.disabled = false;
|
|
44546
|
-
btn.innerText = "β μ¬μ μ‘ μλ";
|
|
44547
|
-
footer.innerHTML = `<span style="color: #E53E3E;">β οΈ μ μ‘ μ€ν¨: ${err.message}</span>`;
|
|
44548
|
-
}
|
|
44549
|
-
});
|
|
44550
|
-
this.attachShadow({ mode: "open" });
|
|
44551
|
-
trace.log("π [nine-exception-hook] μΈμ€ν΄μ€ μμ±λ¨");
|
|
44552
|
-
}
|
|
44553
|
-
connectedCallback() {
|
|
44554
|
-
trace.log("π [nine-exception-hook] DOMμ λ§μ΄νΈλ¨. μ΄λ²€νΈ 리μ€λ λ°μΈλ© μμ");
|
|
44555
|
-
__privateGet(this, _renderer2).call(this);
|
|
44556
|
-
__privateMethod(this, _ExceptionHook_instances, injectShadowStylesheet_fn).call(this);
|
|
44557
|
-
__privateMethod(this, _ExceptionHook_instances, setupGlobalSniffer_fn).call(this);
|
|
44558
|
-
window.addEventListener("unhandledrejection", __privateGet(this, _handlePromiseError), true);
|
|
44559
|
-
window.addEventListener("popstate", __privateGet(this, _handleLocationChange));
|
|
44560
|
-
document.addEventListener("click", __privateGet(this, _handleLocationChange), true);
|
|
44561
|
-
}
|
|
44562
|
-
disconnectedCallback() {
|
|
44563
|
-
trace.log("π [nine-exception-hook] DOMμμ μΈλ§μ΄νΈλ¨. 리μ€λ ν΄μ ");
|
|
44564
|
-
window.removeEventListener("error", __privateGet(this, _handleRuntimeError), true);
|
|
44565
|
-
window.removeEventListener("unhandledrejection", __privateGet(this, _handlePromiseError), true);
|
|
44566
|
-
window.removeEventListener("popstate", __privateGet(this, _handleLocationChange));
|
|
44567
|
-
document.removeEventListener("click", __privateGet(this, _handleLocationChange), true);
|
|
44568
|
-
if (window.onerror === __privateGet(this, _handleRuntimeError) || __privateGet(this, _oldOnError)) {
|
|
44569
|
-
window.onerror = __privateGet(this, _oldOnError);
|
|
44570
|
-
trace.log("π [nine-exception-hook] window.onerror 볡ꡬ μλ£");
|
|
44571
|
-
}
|
|
44572
|
-
__privateMethod(this, _ExceptionHook_instances, removeExternalOverlay_fn).call(this);
|
|
44573
|
-
}
|
|
44574
|
-
}
|
|
44575
|
-
_lastPath = new WeakMap();
|
|
44576
|
-
_hasError = new WeakMap();
|
|
44577
|
-
_cssPath = new WeakMap();
|
|
44578
|
-
_oldOnError = new WeakMap();
|
|
44579
|
-
_ExceptionHook_instances = new WeakSet();
|
|
44580
|
-
setupGlobalSniffer_fn = function() {
|
|
44581
|
-
window.addEventListener("error", __privateGet(this, _handleRuntimeError), true);
|
|
44582
|
-
trace.log("π [nine-exception-hook] window.addEventListener('error') λ±λ‘ μλ£");
|
|
44583
|
-
__privateSet(this, _oldOnError, window.onerror);
|
|
44584
|
-
window.onerror = (message, source, lineno, colno, error) => {
|
|
44585
|
-
trace.log("π¨ [nine-exception-hook] μμ window.onerror ν¬μ°©!!", { message, source, lineno, error });
|
|
44586
|
-
if (!__privateGet(this, _hasError)) {
|
|
44587
|
-
trace.log("π― [nine-exception-hook] νμ¬ μλ¬ μν μμ -> μλ¬ λ³΄λ μΆλ ₯ μλ");
|
|
44588
|
-
const errorMessage = (error == null ? void 0 : error.message) || message || "μ μ μλ λ°νμ μμΈ";
|
|
44589
|
-
const errorStack = (error == null ? void 0 : error.stack) || `${source}:${lineno}:${colno}`;
|
|
44590
|
-
__privateMethod(this, _ExceptionHook_instances, renderError_fn).call(this, errorMessage, errorStack);
|
|
44591
|
-
} else {
|
|
44592
|
-
trace.log("β οΈ [nine-exception-hook] μ΄λ―Έ μλ¬ νλ©΄μ΄ νμ±νλμ΄ μμ΄ μμ onerror ν¨μ€");
|
|
44593
|
-
}
|
|
44594
|
-
if (__privateGet(this, _oldOnError)) {
|
|
44595
|
-
trace.log("π [nine-exception-hook] κΈ°μ‘΄μ λ±λ‘λμ΄ μλ λ€λ₯Έ onerror μμ§μΌλ‘ μμ");
|
|
44596
|
-
return __privateGet(this, _oldOnError).call(this, message, source, lineno, colno, error);
|
|
44597
|
-
}
|
|
44598
|
-
return false;
|
|
44599
|
-
};
|
|
44600
|
-
trace.log("π [nine-exception-hook] μμ window.onerror κ°λ‘μ±κΈ°(Chaining) μλ£");
|
|
44601
|
-
};
|
|
44602
|
-
_renderer2 = new WeakMap();
|
|
44603
|
-
injectShadowStylesheet_fn = function() {
|
|
44604
|
-
if (this.shadowRoot.querySelector(`link[href="${__privateGet(this, _cssPath)}"]`)) return;
|
|
44605
|
-
const link = document.createElement("link");
|
|
44606
|
-
link.rel = "stylesheet";
|
|
44607
|
-
link.href = __privateGet(this, _cssPath);
|
|
44608
|
-
this.shadowRoot.appendChild(link);
|
|
44609
|
-
};
|
|
44610
|
-
_handleRuntimeError = new WeakMap();
|
|
44611
|
-
_handlePromiseError = new WeakMap();
|
|
44612
|
-
_handleLocationChange = new WeakMap();
|
|
44613
|
-
removeExternalOverlay_fn = function() {
|
|
44614
|
-
const target = document.getElementById("nine-global-exception-container");
|
|
44615
|
-
if (target) target.remove();
|
|
44616
|
-
};
|
|
44617
|
-
_sendToAiAction = new WeakMap();
|
|
44618
|
-
renderError_fn = function(errorMessage, errorStack) {
|
|
44619
|
-
if (__privateGet(this, _hasError)) return;
|
|
44620
|
-
__privateSet(this, _hasError, true);
|
|
44621
|
-
setTimeout(() => {
|
|
44622
|
-
trace.log("π¨ [nine-exception-hook] 리μ‘νΈ μ¬μ΄ν΄ μ’
λ£ ν μ΅μλ¨ κΈλ‘λ² μλ¬ λ μ΄μ΄ μμ±");
|
|
44623
|
-
const coreContainer = this.shadowRoot.querySelector(".nine-hook-core");
|
|
44624
|
-
if (coreContainer) coreContainer.style.display = "none";
|
|
44625
|
-
__privateMethod(this, _ExceptionHook_instances, removeExternalOverlay_fn).call(this);
|
|
44626
|
-
const externalContainer = document.createElement("div");
|
|
44627
|
-
externalContainer.id = "nine-global-exception-container";
|
|
44628
|
-
Object.assign(externalContainer.style, {
|
|
44629
|
-
position: "fixed",
|
|
44630
|
-
top: "0",
|
|
44631
|
-
left: "0",
|
|
44632
|
-
width: "100vw",
|
|
44633
|
-
height: "100vh",
|
|
44634
|
-
backgroundColor: "#FFF5F5",
|
|
44635
|
-
zIndex: "2147483647",
|
|
44636
|
-
// λΈλΌμ°μ νν μ΅λ z-index κ° λΆμ¬
|
|
44637
|
-
overflow: "auto",
|
|
44638
|
-
boxSizing: "border-box",
|
|
44639
|
-
display: "block"
|
|
44640
|
-
});
|
|
44641
|
-
const errorHTML = `
|
|
44642
|
-
<div class="nine-error-container" style="padding: 40px; max-width: 1200px; margin: 40px auto; font-family: sans-serif; background: white; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); text-align: left;">
|
|
44643
|
-
<h3 class="nine-error-title" style="color: #C53030; margin-top: 0; font-size: 22px; font-weight: 700; border-bottom: 2px solid #FED2D2; padding-bottom: 12px; font-family: sans-serif;">β οΈ μμ€ν
μμΈ κ°μ§ (nine-exception-hook)</h3>
|
|
44644
|
-
<p class="nine-error-label" style="font-weight: bold; margin: 20px 0 8px 0; color: #4A5568; font-size: 15px; font-family: sans-serif;">[μλ¬ μμΈ λ‘κ·Έ]:</p>
|
|
44645
|
-
<pre class="nine-error-log" style="background: #1A202C; color: #EDF2F7; padding: 20px; border-radius: 6px; overflow-x: auto; white-space: pre-wrap; font-family: monospace; font-size: 14px; line-height: 1.6; margin-bottom: 25px;">${errorMessage}
|
|
44646
|
-
|
|
44647
|
-
[Stack Trace]
|
|
44648
|
-
${errorStack}</pre>
|
|
44649
|
-
|
|
44650
|
-
<div class="nine-action-area" style="display: flex; align-items: center; gap: 20px; border-top: 1px solid #E2E8F0; padding-top: 20px;">
|
|
44651
|
-
<button class="nine-ai-btn" style="background: #3182CE; color: white; border: none; padding: 14px 28px; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 16px;">π€ AIμκ² μμ€μ½λ μμ μμ²</button>
|
|
44652
|
-
<div class="nine-error-footer" style="font-size: 14px; color: #718096; line-height: 1.4; font-family: sans-serif;">
|
|
44653
|
-
λ²νΌμ λλ₯΄λ©΄ AIκ° λ‘κ·Έ λ° μ»΄ν¬λνΈ λ§΅μ μμΆμ νμ¬ μμ μ μμν©λλ€.
|
|
44654
|
-
</div>
|
|
44655
|
-
</div>
|
|
44656
|
-
</div>
|
|
44657
|
-
`;
|
|
44658
|
-
externalContainer.innerHTML = errorHTML;
|
|
44659
|
-
document.body.appendChild(externalContainer);
|
|
44660
|
-
trace.log("π¨ [nine-exception-hook] λΈλΌμ°μ Body μ΅μλ¨ λ μ΄μ΄ λ°°μ μ±κ³΅");
|
|
44661
|
-
const aiBtn = externalContainer.querySelector(".nine-ai-btn");
|
|
44662
|
-
if (aiBtn) {
|
|
44663
|
-
aiBtn.addEventListener("click", () => __privateGet(this, _sendToAiAction).call(this, errorMessage, errorStack));
|
|
44664
|
-
trace.log("π¨ [nine-exception-hook] AI μμ² λ²νΌ μ΄λ²€νΈ 리μ€λ μ΅μ’
λ°μΈλ© μ±κ³΅");
|
|
44665
|
-
}
|
|
44666
|
-
}, 0);
|
|
44667
|
-
};
|
|
44668
|
-
if (!customElements.get("nine-exception-hook")) {
|
|
44669
|
-
customElements.define("nine-exception-hook", ExceptionHook);
|
|
44670
|
-
}
|
|
44671
44467
|
const NineMu = {
|
|
44672
|
-
version: "0.1.
|
|
44468
|
+
version: "0.1.345",
|
|
44673
44469
|
init: (config2) => {
|
|
44674
44470
|
trace$1.log("π οΈ Nine-Mu Engine initialized", config2);
|
|
44675
44471
|
}
|