@buoy-gg/console 7.0.20 → 7.0.22
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/README.md +1 -0
- package/lib/commonjs/index.js +6 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/preset.js +25 -0
- package/lib/commonjs/preset.js.map +1 -1
- package/lib/commonjs/store/consoleLogStore.js +294 -1
- package/lib/commonjs/store/consoleLogStore.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/preset.js +27 -0
- package/lib/module/preset.js.map +1 -1
- package/lib/module/store/consoleLogStore.js +293 -1
- package/lib/module/store/consoleLogStore.js.map +1 -1
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/preset.d.ts.map +1 -1
- package/lib/typescript/store/consoleLogStore.d.ts +26 -1
- package/lib/typescript/store/consoleLogStore.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.tsx +1 -0
- package/src/preset.tsx +32 -0
- package/src/store/consoleLogStore.ts +366 -1
package/README.md
CHANGED
|
@@ -36,6 +36,7 @@ That's the whole setup — it patches `console.*` directly, so no logger integra
|
|
|
36
36
|
## What you get
|
|
37
37
|
|
|
38
38
|
- **Everything logged, everywhere** — patches `console.*` directly, so logs from your own code *and* your dependencies are captured with no extra setup.
|
|
39
|
+
- **Fatal crashes captured too** — uncaught JS errors (including fatal render crashes) are hooked from React Native's global error handler and recorded as `[FATAL]`-tagged error entries, so a crashed app's last words are in the log instead of nowhere.
|
|
39
40
|
- **Live, color-coded stream** — `log`, `info`, `warn`, and `error` stream in as they happen, color-coded by level.
|
|
40
41
|
- **Chrome-DevTools-style panel** — a 1:1 port of the Chrome console view: objects and arrays are formatted and expandable, just like the browser.
|
|
41
42
|
- **Filter by level** — focus on just errors and warnings when you're chasing a bug.
|
package/lib/commonjs/index.js
CHANGED
|
@@ -105,6 +105,12 @@ Object.defineProperty(exports, "installConsoleCapture", {
|
|
|
105
105
|
return _consoleLogStore.installConsoleCapture;
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
|
+
Object.defineProperty(exports, "installFatalErrorCapture", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return _consoleLogStore.installFatalErrorCapture;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
108
114
|
Object.defineProperty(exports, "levelStyles", {
|
|
109
115
|
enumerable: true,
|
|
110
116
|
get: function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_preset","require","_ConsoleRoot","_ConsoleModal","_ConsoleIcon","_ConsoleView","_ConsoleMessageRow","_ConsoleValue","_useConsoleMessages","_theme","_ConsoleLogList","_useConsoleLogs","_consoleSyncAdapter","_consoleLogStore"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_preset","require","_ConsoleRoot","_ConsoleModal","_ConsoleIcon","_ConsoleView","_ConsoleMessageRow","_ConsoleValue","_useConsoleMessages","_theme","_ConsoleLogList","_useConsoleLogs","_consoleSyncAdapter","_consoleLogStore"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AAKA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAGA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AAEA,IAAAQ,MAAA,GAAAR,OAAA;AAGA,IAAAS,eAAA,GAAAT,OAAA;AAKA,IAAAU,eAAA,GAAAV,OAAA;AAMA,IAAAW,mBAAA,GAAAX,OAAA;AAKA,IAAAY,gBAAA,GAAAZ,OAAA","ignoreList":[]}
|
package/lib/commonjs/preset.js
CHANGED
|
@@ -7,6 +7,7 @@ exports.consoleToolPreset = void 0;
|
|
|
7
7
|
exports.createConsoleTool = createConsoleTool;
|
|
8
8
|
var _ConsoleIcon = require("./components/ConsoleIcon");
|
|
9
9
|
var _ConsoleModal = require("./components/ConsoleModal");
|
|
10
|
+
var _consoleLogStore = require("./store/consoleLogStore");
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
/**
|
|
12
13
|
* Pre-configured Console tool for FloatingDevTools.
|
|
@@ -19,6 +20,30 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
19
20
|
* ```
|
|
20
21
|
*/
|
|
21
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Install console + fatal-error capture at IMPORT time, not first UI mount.
|
|
25
|
+
*
|
|
26
|
+
* Deliberately a module side effect (same pattern as @buoy-gg/network's
|
|
27
|
+
* override hydration): a fatal error thrown during the app's FIRST render
|
|
28
|
+
* kills the tree before FloatingDevTools' effects ever run, so mount-time
|
|
29
|
+
* install (`ConsoleRoot`) captured nothing for exactly the crashes that most
|
|
30
|
+
* need capturing. Importing the preset happens at bundle-eval, before any
|
|
31
|
+
* rendering, so the `console.*` patch and both fatal-error hooks (`ErrorUtils`
|
|
32
|
+
* and RN's native exception listener) are live from the first line of app code.
|
|
33
|
+
*
|
|
34
|
+
* Guards:
|
|
35
|
+
* - `ErrorUtils` OR `RN$registerExceptionListener` present = a real React Native
|
|
36
|
+
* runtime. The desktop dashboard and web mirrors import this package too, and
|
|
37
|
+
* must never patch their OWN console (they mirror device entries via
|
|
38
|
+
* `replaceEntries`).
|
|
39
|
+
* - Dev-only. In production the existing mount-time path still applies (the
|
|
40
|
+
* tools only mount there for licensed users), so end-user builds are never
|
|
41
|
+
* patched at import.
|
|
42
|
+
*/const rnGlobals = globalThis;
|
|
43
|
+
const isReactNativeRuntime = typeof rnGlobals.ErrorUtils?.setGlobalHandler === "function" || typeof rnGlobals.RN$registerExceptionListener === "function";
|
|
44
|
+
if (isReactNativeRuntime && typeof __DEV__ !== "undefined" && __DEV__) {
|
|
45
|
+
(0, _consoleLogStore.installConsoleCapture)();
|
|
46
|
+
}
|
|
22
47
|
const consoleToolPreset = exports.consoleToolPreset = {
|
|
23
48
|
id: "console",
|
|
24
49
|
name: "CONSOLE",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_ConsoleIcon","require","_ConsoleModal","_jsxRuntime","consoleToolPreset","exports","id","name","description","slot","icon","size","color","jsx","ConsoleIcon","CONSOLE_ICON_COLOR","component","ConsoleModal","createConsoleTool","options"],"sourceRoot":"../../src","sources":["preset.tsx"],"mappings":";;;;;;;AAWA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;
|
|
1
|
+
{"version":3,"names":["_ConsoleIcon","require","_ConsoleModal","_consoleLogStore","_jsxRuntime","rnGlobals","globalThis","isReactNativeRuntime","ErrorUtils","setGlobalHandler","RN$registerExceptionListener","__DEV__","installConsoleCapture","consoleToolPreset","exports","id","name","description","slot","icon","size","color","jsx","ConsoleIcon","CONSOLE_ICON_COLOR","component","ConsoleModal","createConsoleTool","options"],"sourceRoot":"../../src","sources":["preset.tsx"],"mappings":";;;;;;;AAWA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AAAgE,IAAAG,WAAA,GAAAH,OAAA;AAbhE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACA,MAAMI,SAAS,GAAGC,UAGjB;AACD,MAAMC,oBAAoB,GACxB,OAAOF,SAAS,CAACG,UAAU,EAAEC,gBAAgB,KAAK,UAAU,IAC5D,OAAOJ,SAAS,CAACK,4BAA4B,KAAK,UAAU;AAC9D,IAAIH,oBAAoB,IAAI,OAAOI,OAAO,KAAK,WAAW,IAAIA,OAAO,EAAE;EACrE,IAAAC,sCAAqB,EAAC,CAAC;AACzB;AAEO,MAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,EAAE,EAAE,SAAS;EACbC,IAAI,EAAE,SAAS;EACfC,WAAW,EAAE,2BAA2B;EACxCC,IAAI,EAAE,MAAe;EACrBC,IAAI,EAAEA,CAAC;IAAEC,IAAI;IAAEC;EAAwC,CAAC,kBACtD,IAAAjB,WAAA,CAAAkB,GAAA,EAACtB,YAAA,CAAAuB,WAAW;IAACH,IAAI,EAAEA,IAAK;IAACC,KAAK,EAAEA,KAAK,IAAIG;EAAmB,CAAE,CAC/D;EACDC,SAAS,EAAEC;AACb,CAAC;;AAED;AACO,SAASC,iBAAiBA,CAC/BC,OAAgD,GAAG,CAAC,CAAC,EACrD;EACA,OAAO;IACL,GAAGf,iBAAiB;IACpBG,IAAI,EAAEY,OAAO,CAACZ,IAAI,IAAIH,iBAAiB,CAACG,IAAI;IAC5CC,WAAW,EAAEW,OAAO,CAACX,WAAW,IAAIJ,iBAAiB,CAACI;EACxD,CAAC;AACH","ignoreList":[]}
|
|
@@ -8,6 +8,7 @@ exports.getEntries = getEntries;
|
|
|
8
8
|
exports.getPreserveLog = getPreserveLog;
|
|
9
9
|
exports.initConsolePersistence = initConsolePersistence;
|
|
10
10
|
exports.installConsoleCapture = installConsoleCapture;
|
|
11
|
+
exports.installFatalErrorCapture = installFatalErrorCapture;
|
|
11
12
|
exports.onClear = onClear;
|
|
12
13
|
exports.replaceEntries = replaceEntries;
|
|
13
14
|
exports.setPreserveLog = setPreserveLog;
|
|
@@ -64,6 +65,13 @@ const MAX_ENTRIES = 1000;
|
|
|
64
65
|
let entries = [];
|
|
65
66
|
let nextId = 1;
|
|
66
67
|
let installed = false;
|
|
68
|
+
let fatalInstalled = false;
|
|
69
|
+
/**
|
|
70
|
+
* Raised by an explicit `uninstallConsoleCapture()`. The fatal-error hook can't
|
|
71
|
+
* be safely unwound once chained (another library may have chained on top of
|
|
72
|
+
* ours since), so an explicit user OFF mutes fatal recording instead.
|
|
73
|
+
*/
|
|
74
|
+
let captureDisabledByUser = false;
|
|
67
75
|
const listeners = new Set();
|
|
68
76
|
const clearListeners = new Set();
|
|
69
77
|
|
|
@@ -116,10 +124,71 @@ function captureOwnerStack() {
|
|
|
116
124
|
return undefined;
|
|
117
125
|
}
|
|
118
126
|
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* An error React Native decorated on its way through ExceptionsManager: a
|
|
130
|
+
* render/lifecycle crash carrying the component stack. `isComponentError` is
|
|
131
|
+
* set by RN's `getExtendedError`, so this identifies a REAL crash rather than
|
|
132
|
+
* an ordinary `console.error("...")` call.
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
/** Frames to keep from a component stack — the crash site plus its context. */
|
|
136
|
+
const COMPONENT_STACK_FRAMES = 8;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Squeeze a React component stack down to the part a human (or an agent
|
|
140
|
+
* reading this over a wire) actually uses: the component names nearest the
|
|
141
|
+
* crash.
|
|
142
|
+
*
|
|
143
|
+
* Raw component stacks in a Metro dev bundle append the full bundle URL with
|
|
144
|
+
* every query param to EVERY frame — one crash is ~15 KB of near-identical
|
|
145
|
+
* `http://192.168.x.x:8830/…&transform.routerRoot=src/app…` noise wrapped
|
|
146
|
+
* around the handful of names that matter. The complete error, componentStack
|
|
147
|
+
* included, is still on the entry's `args` for anyone who wants it.
|
|
148
|
+
*/
|
|
149
|
+
function compactComponentStack(stack) {
|
|
150
|
+
const frames = stack.split("\n").map(line => line.trim()).filter(Boolean)
|
|
151
|
+
// Drop the "(url)" tail; keep a "Name(./file.tsx)" hint when RN provides one.
|
|
152
|
+
.map(line => line.replace(/\s*\((?:https?:|\/).*$/, ""));
|
|
153
|
+
const shown = frames.slice(0, COMPONENT_STACK_FRAMES);
|
|
154
|
+
const rest = frames.length - shown.length;
|
|
155
|
+
return shown.map(f => ` ${f}`).join("\n") + (rest > 0 ? `\n …+${rest} more frames` : "");
|
|
156
|
+
}
|
|
157
|
+
function asComponentError(arg) {
|
|
158
|
+
if (!(arg instanceof Error)) return null;
|
|
159
|
+
const e = arg;
|
|
160
|
+
return e.isComponentError || typeof e.componentStack === "string" ? e : null;
|
|
161
|
+
}
|
|
119
162
|
function record(method, args) {
|
|
120
163
|
// Capture the call site for every log so we can attribute its origin.
|
|
121
164
|
const rawStack = new Error().stack;
|
|
122
165
|
const origin = (0, _origin.parseOrigin)(rawStack, captureOwnerStack());
|
|
166
|
+
|
|
167
|
+
// React Native funnels an uncaught render error back through console.error
|
|
168
|
+
// (ExceptionsManager.reportException) so console monkey-patches still see it.
|
|
169
|
+
// That arrives as an ordinary error row, which badly under-sells it: the app
|
|
170
|
+
// is dead. Promote it to a tagged [FATAL] entry carrying the component stack.
|
|
171
|
+
const crash = method === "error" ? asComponentError(args[0]) : null;
|
|
172
|
+
if (crash) {
|
|
173
|
+
// Tagged [RENDER ERROR], not [FATAL]: React reports an error an
|
|
174
|
+
// ErrorBoundary CAUGHT and recovered from through this same path, with the
|
|
175
|
+
// same componentStack, and nothing here distinguishes the two. Claiming a
|
|
176
|
+
// healthy app "most likely CRASHED" is worse than under-claiming — the
|
|
177
|
+
// component stack, which is the useful part, is reported either way.
|
|
178
|
+
const headline = fatalKey(crash.name, crash.message);
|
|
179
|
+
const located = crash.componentStack ? `\n\nThis error is located at:\n${compactComponentStack(crash.componentStack)}` : "";
|
|
180
|
+
pushFatal({
|
|
181
|
+
id: nextId++,
|
|
182
|
+
method: "error",
|
|
183
|
+
level: "error",
|
|
184
|
+
args: ["[RENDER ERROR]", crash],
|
|
185
|
+
message: `[RENDER ERROR] ${headline}${located}`,
|
|
186
|
+
timestamp: Date.now(),
|
|
187
|
+
stack: crash.stack,
|
|
188
|
+
origin
|
|
189
|
+
}, isDuplicateFatal(`[RENDER ERROR] ${headline}`));
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
123
192
|
const entry = {
|
|
124
193
|
id: nextId++,
|
|
125
194
|
method,
|
|
@@ -133,14 +202,236 @@ function record(method, args) {
|
|
|
133
202
|
entries = entries.length >= MAX_ENTRIES ? [...entries.slice(entries.length - MAX_ENTRIES + 1), entry] : [...entries, entry];
|
|
134
203
|
emit();
|
|
135
204
|
scheduleSave();
|
|
205
|
+
// Errors are the entries most likely to be the last thing an app ever logs,
|
|
206
|
+
// so they get pushed to any dashboard immediately instead of waiting on the
|
|
207
|
+
// throttle that a dying tree will never run. Rate-limited; ordinary logs
|
|
208
|
+
// still ride the normal throttled path.
|
|
209
|
+
if (entry.level === "error") flushConsoleSyncNow();
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/** Minimal shape of React Native's global `ErrorUtils`. */
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Two independent seams report the same crash on some setups (the C++ handler
|
|
216
|
+
* can also feed `console.error`). Suppress a repeat of the same headline within
|
|
217
|
+
* this window so a crash reads as ONE entry.
|
|
218
|
+
*/
|
|
219
|
+
const FATAL_DEDUPE_MS = 2000;
|
|
220
|
+
let lastFatalKey = "";
|
|
221
|
+
let lastFatalAt = 0;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Normalize a crash headline so the same error reported through two different
|
|
225
|
+
* seams produces the same key. React Native often sets `error.message` to the
|
|
226
|
+
* ALREADY-prefixed string ("TypeError: x is not a function"), so one path
|
|
227
|
+
* builds "TypeError: TypeError: x…" and the other "TypeError: x…" — which
|
|
228
|
+
* defeats the de-duplication entirely.
|
|
229
|
+
*/
|
|
230
|
+
function fatalKey(name, message) {
|
|
231
|
+
const body = message.trim();
|
|
232
|
+
if (name && body.startsWith(`${name}: `)) return body;
|
|
233
|
+
return name ? `${name}: ${body}` : body;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Has this crash already been recorded moments ago?
|
|
238
|
+
*
|
|
239
|
+
* Only ever used to suppress a duplicate PUSH to the dashboard — never to drop
|
|
240
|
+
* an entry. Two different components crashing with the same message inside the
|
|
241
|
+
* window are two crashes, and a tool whose pitch is "the app's last words"
|
|
242
|
+
* must not silently throw one away.
|
|
243
|
+
*/
|
|
244
|
+
function isDuplicateFatal(key) {
|
|
245
|
+
const now = Date.now();
|
|
246
|
+
if (key === lastFatalKey && now - lastFatalAt < FATAL_DEDUPE_MS) return true;
|
|
247
|
+
lastFatalKey = key;
|
|
248
|
+
lastFatalAt = now;
|
|
249
|
+
return false;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* The device sync bridge's "push this tool NOW" escape hatch
|
|
254
|
+
* (@buoy-gg/external-sync `crashFlush`). Reached through the global rather than
|
|
255
|
+
* an import because console deliberately has no dependency on external-sync.
|
|
256
|
+
*/
|
|
257
|
+
let lastFlushAt = 0;
|
|
258
|
+
/** Floor between opportunistic flushes, so an error storm can't flood the socket. */
|
|
259
|
+
const FLUSH_MIN_INTERVAL_MS = 150;
|
|
260
|
+
const flushConsoleSyncNow = (force = false) => {
|
|
261
|
+
const now = Date.now();
|
|
262
|
+
// A fatal is the app's last word — it always goes out, rate limit or not.
|
|
263
|
+
if (!force && now - lastFlushAt < FLUSH_MIN_INTERVAL_MS) return;
|
|
264
|
+
lastFlushAt = now;
|
|
265
|
+
try {
|
|
266
|
+
const set = globalThis.__buoyFlushToolSync;
|
|
267
|
+
if (!set) return;
|
|
268
|
+
for (const flush of set) flush("console");
|
|
269
|
+
} catch {
|
|
270
|
+
// Best-effort: a crash path must never crash.
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Append a pre-built fatal entry to the ring buffer, then push it to any
|
|
276
|
+
* connected dashboard IMMEDIATELY.
|
|
277
|
+
*
|
|
278
|
+
* A fatal render error unmounts the React tree microseconds later, taking the
|
|
279
|
+
* sync bridge — and the normal 200 ms throttled snapshot — with it. Flushing
|
|
280
|
+
* synchronously here is what makes a crashed app's last words readable from
|
|
281
|
+
* the desktop app and the MCP server instead of the app just going silent.
|
|
282
|
+
*/
|
|
283
|
+
function pushFatal(entry, duplicate = false) {
|
|
284
|
+
entries = entries.length >= MAX_ENTRIES ? [...entries.slice(entries.length - MAX_ENTRIES + 1), entry] : [...entries, entry];
|
|
285
|
+
emit();
|
|
286
|
+
scheduleSave();
|
|
287
|
+
// A repeat within the dedupe window is still RECORDED (two crashes are two
|
|
288
|
+
// crashes); it just doesn't earn another forced push to the dashboard.
|
|
289
|
+
if (!duplicate) flushConsoleSyncNow(true);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/** Record an uncaught JS error from the global handler as an error entry. */
|
|
293
|
+
function recordFatalError(error, isFatal) {
|
|
294
|
+
const err = error instanceof Error ? error : undefined;
|
|
295
|
+
// RN passes isFatal:false for non-fatal uncaught errors (e.g. errors thrown
|
|
296
|
+
// in event handlers on some setups); anything else is treated as fatal.
|
|
297
|
+
const label = isFatal === false ? "[UNCAUGHT]" : "[FATAL]";
|
|
298
|
+
const headline = err ? fatalKey(err.name, err.message) : formatArg(error);
|
|
299
|
+
const duplicate = isDuplicateFatal(`${label} ${headline}`);
|
|
300
|
+
// The label leads the args (not just the pre-rendered message): the
|
|
301
|
+
// DevTools-style row renders from args, so this is what makes the tag
|
|
302
|
+
// visible in the UI — exactly like `console.error("[FATAL]", err)`.
|
|
303
|
+
pushFatal({
|
|
304
|
+
id: nextId++,
|
|
305
|
+
method: "error",
|
|
306
|
+
level: "error",
|
|
307
|
+
args: [label, error],
|
|
308
|
+
message: `${label} ${headline}`,
|
|
309
|
+
timestamp: Date.now(),
|
|
310
|
+
// The error's OWN stack — the crash site, not this handler's call site.
|
|
311
|
+
stack: err?.stack,
|
|
312
|
+
fatal: true
|
|
313
|
+
}, duplicate);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* The exception payload React Native's C++ error handler hands to listeners
|
|
318
|
+
* registered via `global.RN$registerExceptionListener` (JsErrorHandler.cpp).
|
|
319
|
+
*/
|
|
320
|
+
|
|
321
|
+
/** Render the C++ handler's parsed frames back into a normal stack string. */
|
|
322
|
+
function formatNativeStack(data) {
|
|
323
|
+
const raw = data.extraData?.rawStack;
|
|
324
|
+
if (typeof raw === "string" && raw.length > 0) return raw;
|
|
325
|
+
if (!Array.isArray(data.stack) || data.stack.length === 0) return undefined;
|
|
326
|
+
return data.stack.map(f => {
|
|
327
|
+
const where = f.lineNumber != null ? `${f.file ?? "?"}:${f.lineNumber}:${f.column ?? 0}` : f.file ?? "?";
|
|
328
|
+
return ` at ${f.methodName || "<anonymous>"} (${where})`;
|
|
329
|
+
}).join("\n");
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/** Record a crash reported by React Native's native (C++) error handler. */
|
|
333
|
+
function recordNativeException(data) {
|
|
334
|
+
const label = data.isFatal === false ? "[UNCAUGHT]" : "[FATAL]";
|
|
335
|
+
const headline = fatalKey(data.name ?? undefined, data.originalMessage ?? data.message ?? "Unknown error");
|
|
336
|
+
const duplicate = isDuplicateFatal(`${label} ${headline}`);
|
|
337
|
+
// The component stack is the single most useful line for "which component
|
|
338
|
+
// crashed" — RN puts it in the redbox, so put it in the console entry too.
|
|
339
|
+
const componentStack = typeof data.componentStack === "string" && data.componentStack.trim() ? `\n\nThis error is located at:\n${compactComponentStack(data.componentStack)}` : "";
|
|
340
|
+
const message = `${label} ${headline}${componentStack}`;
|
|
341
|
+
pushFatal({
|
|
342
|
+
id: nextId++,
|
|
343
|
+
method: "error",
|
|
344
|
+
level: "error",
|
|
345
|
+
args: [label, headline, ...(componentStack ? [componentStack.trim()] : [])],
|
|
346
|
+
message,
|
|
347
|
+
timestamp: Date.now(),
|
|
348
|
+
stack: formatNativeStack(data),
|
|
349
|
+
fatal: true
|
|
350
|
+
}, duplicate);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Register with React Native's native (C++) exception handler — the seam a
|
|
355
|
+
* RENDER crash actually travels through on the New Architecture.
|
|
356
|
+
*
|
|
357
|
+
* React 19 routes an uncaught render error to `onUncaughtError` →
|
|
358
|
+
* `ExceptionsManager.handleException`, which NEVER reaches
|
|
359
|
+
* `ErrorUtils.setGlobalHandler`. Where it goes from there depends on the build:
|
|
360
|
+
*
|
|
361
|
+
* - `useAlwaysAvailableJSErrorHandling` on: the C++ handler
|
|
362
|
+
* (`global.RN$handleException`) reports it and JS sees nothing — this
|
|
363
|
+
* listener is the only seam.
|
|
364
|
+
* - otherwise: JS `reportException` re-feeds `console.error(e)` "so any methods
|
|
365
|
+
* monkey patched on top of console.error are called", which the console patch
|
|
366
|
+
* catches and promotes to `[FATAL]` (see `record`).
|
|
367
|
+
*
|
|
368
|
+
* Both are covered, and a crash reported through both de-duplicates to one
|
|
369
|
+
* entry. `RN$registerExceptionListener` keeps a LIST of listeners (LogBox
|
|
370
|
+
* registers one too), so this is purely additive. We never call the payload's
|
|
371
|
+
* `preventDefault()`: suppressing RN's own redbox is not our call to make.
|
|
372
|
+
*/
|
|
373
|
+
function installNativeExceptionCapture() {
|
|
374
|
+
const register = globalThis.RN$registerExceptionListener;
|
|
375
|
+
if (typeof register !== "function") return false;
|
|
376
|
+
register(data => {
|
|
377
|
+
try {
|
|
378
|
+
if (!captureDisabledByUser) recordNativeException(data);
|
|
379
|
+
} catch {
|
|
380
|
+
// Capture must never interfere with error reporting.
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
return true;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Hook React Native's error paths so FATAL/uncaught JS errors land in the
|
|
388
|
+
* console store: the classic `ErrorUtils.setGlobalHandler` (old architecture,
|
|
389
|
+
* native-module callbacks, promise rejections) AND the native C++ exception
|
|
390
|
+
* listener (New Architecture render crashes — see
|
|
391
|
+
* {@link installNativeExceptionCapture}). Both feed the same de-duplicated
|
|
392
|
+
* `[FATAL]` entry, so a crash reported through both seams shows up once.
|
|
393
|
+
*
|
|
394
|
+
* - Chains the previous handler (LogBox/redbox still fire; nothing swallowed).
|
|
395
|
+
* - Idempotent, and a silent no-op off React Native (neither global present) —
|
|
396
|
+
* which also keeps it inert on the desktop dashboard / web mirrors.
|
|
397
|
+
* - Recording respects an explicit `uninstallConsoleCapture()` (user OFF), but
|
|
398
|
+
* the hooks themselves stay chained — they can't be safely removed.
|
|
399
|
+
*/
|
|
400
|
+
function installFatalErrorCapture() {
|
|
401
|
+
if (fatalInstalled) return;
|
|
402
|
+
// Latch only once a seam is actually attached. Setting the flag up front
|
|
403
|
+
// means an install that runs before `InitializeCore` has published
|
|
404
|
+
// `ErrorUtils` would latch anyway and never retry — silently losing promise
|
|
405
|
+
// rejections and native-callback errors, which travel ONLY that seam.
|
|
406
|
+
const nativeInstalled = installNativeExceptionCapture();
|
|
407
|
+
const errorUtils = globalThis.ErrorUtils;
|
|
408
|
+
if (typeof errorUtils?.setGlobalHandler !== "function") {
|
|
409
|
+
fatalInstalled = nativeInstalled;
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
fatalInstalled = true;
|
|
413
|
+
const previous = typeof errorUtils.getGlobalHandler === "function" ? errorUtils.getGlobalHandler() : undefined;
|
|
414
|
+
errorUtils.setGlobalHandler((error, isFatal) => {
|
|
415
|
+
try {
|
|
416
|
+
if (!captureDisabledByUser) recordFatalError(error, isFatal);
|
|
417
|
+
} catch {
|
|
418
|
+
// Capture must never interfere with error reporting.
|
|
419
|
+
}
|
|
420
|
+
if (typeof previous === "function") previous(error, isFatal);
|
|
421
|
+
});
|
|
136
422
|
}
|
|
137
423
|
|
|
138
424
|
/**
|
|
139
425
|
* Patch the global console methods. Idempotent — safe to call more than once.
|
|
140
426
|
* Each patched method still forwards to the original so normal logging keeps
|
|
141
427
|
* working (Metro terminal, Chrome, native logcat/Xcode).
|
|
428
|
+
*
|
|
429
|
+
* Also installs the fatal-error hook (see `installFatalErrorCapture`) so every
|
|
430
|
+
* install path captures crashes, not just `console.*` calls.
|
|
142
431
|
*/
|
|
143
432
|
function installConsoleCapture() {
|
|
433
|
+
captureDisabledByUser = false;
|
|
434
|
+
installFatalErrorCapture();
|
|
144
435
|
if (installed) return;
|
|
145
436
|
installed = true;
|
|
146
437
|
for (const method of METHODS) {
|
|
@@ -157,8 +448,10 @@ function installConsoleCapture() {
|
|
|
157
448
|
}
|
|
158
449
|
}
|
|
159
450
|
|
|
160
|
-
/** Restore the original console methods.
|
|
451
|
+
/** Restore the original console methods. Also mutes fatal-error recording
|
|
452
|
+
* (the hook itself stays chained — see `installFatalErrorCapture`). */
|
|
161
453
|
function uninstallConsoleCapture() {
|
|
454
|
+
captureDisabledByUser = true;
|
|
162
455
|
if (!installed) return;
|
|
163
456
|
installed = false;
|
|
164
457
|
for (const method of METHODS) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_sharedUi","_sanitize","_origin","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","METHODS","STACK_METHODS","Set","METHOD_LEVEL","error","assert","warn","debug","log","info","trace","dir","table","group","groupCollapsed","groupEnd","MAX_ENTRIES","entries","nextId","installed","listeners","clearListeners","originals","emitScheduled","emit","requestAnimationFrame","listener","formatArg","arg","Error","stack","name","message","undefined","JSON","stringify","String","formatArgs","args","map","join","cleanStack","raw","split","slice","captureOwnerStack","fn","record","method","rawStack","origin","parseOrigin","entry","id","level","timestamp","Date","now","length","scheduleSave","installConsoleCapture","original","console","buoyConsoleProxy","apply","uninstallConsoleCapture","subscribe","add","delete","getEntries","clearEntries","clearSavedBuffer","replaceEntries","next","onClear","PRESERVE_KEY","BUFFER_KEY","SAVE_DEBOUNCE_MS","preserveLog","persistenceReady","preserveListeners","saveTimer","emitPreserve","clearTimeout","setTimeout","saveBuffer","serializable","sanitizeArgs","persistentStorage","setItem","removeItem","initConsolePersistence","getItem","saved","parse","Array","isArray","Math","max","getPreserveLog","setPreserveLog","catch","subscribePreserveLog"],"sourceRoot":"../../../src","sources":["store/consoleLogStore.ts"],"mappings":";;;;;;;;;;;;;;;;AAcA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAAiE,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,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W,KAAKL,IAAI,EAAE;EAC1BK,WAAW,GAAGL,IAAI;EAClBS,YAAY,CAAC,CAAC;EACdM,2BAAiB,CAACC,OAAO,CAACd,YAAY,EAAEvC,MAAM,CAACqC,IAAI,CAAC,CAAC,CAAC4B,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;EACrE,IAAI5B,IAAI,EAAEY,UAAU,CAAC,CAAC,CAAC,KAClBd,gBAAgB,CAAC,CAAC;AACzB;;AAEA;AACO,SAAS+B,oBAAoBA,CAAC5E,QAAkB,EAAc;EACnEsD,iBAAiB,CAACb,GAAG,CAACzC,QAAQ,CAAC;EAC/B,OAAO,MAAM;IACXsD,iBAAiB,CAACZ,MAAM,CAAC1C,QAAQ,CAAC;EACpC,CAAC;AACH","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_sharedUi","_sanitize","_origin","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","METHODS","STACK_METHODS","Set","METHOD_LEVEL","error","assert","warn","debug","log","info","trace","dir","table","group","groupCollapsed","groupEnd","MAX_ENTRIES","entries","nextId","installed","fatalInstalled","captureDisabledByUser","listeners","clearListeners","originals","emitScheduled","emit","requestAnimationFrame","listener","formatArg","arg","Error","stack","name","message","undefined","JSON","stringify","String","formatArgs","args","map","join","cleanStack","raw","split","slice","captureOwnerStack","fn","COMPONENT_STACK_FRAMES","compactComponentStack","frames","line","trim","filter","Boolean","replace","shown","rest","length","asComponentError","isComponentError","componentStack","record","method","rawStack","origin","parseOrigin","crash","headline","fatalKey","located","pushFatal","id","level","timestamp","Date","now","isDuplicateFatal","entry","scheduleSave","flushConsoleSyncNow","FATAL_DEDUPE_MS","lastFatalKey","lastFatalAt","body","startsWith","key","lastFlushAt","FLUSH_MIN_INTERVAL_MS","force","globalThis","__buoyFlushToolSync","flush","duplicate","recordFatalError","isFatal","err","label","fatal","formatNativeStack","data","extraData","Array","isArray","where","lineNumber","file","column","methodName","recordNativeException","originalMessage","installNativeExceptionCapture","register","RN$registerExceptionListener","installFatalErrorCapture","nativeInstalled","errorUtils","ErrorUtils","setGlobalHandler","previous","getGlobalHandler","installConsoleCapture","original","console","buoyConsoleProxy","apply","uninstallConsoleCapture","subscribe","add","delete","getEntries","clearEntries","clearSavedBuffer","replaceEntries","next","onClear","PRESERVE_KEY","BUFFER_KEY","SAVE_DEBOUNCE_MS","preserveLog","persistenceReady","preserveListeners","saveTimer","emitPreserve","clearTimeout","setTimeout","saveBuffer","serializable","sanitizeArgs","persistentStorage","setItem","removeItem","initConsolePersistence","getItem","saved","parse","Math","max","getPreserveLog","setPreserveLog","catch","subscribePreserveLog"],"sourceRoot":"../../../src","sources":["store/consoleLogStore.ts"],"mappings":";;;;;;;;;;;;;;;;;AAcA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAAiE,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAA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vD,IAAI9F,GAAG,EAAE;MACP,MAAM+G,KAAK,GAAGvH,IAAI,CAACwH,KAAK,CAAChH,GAAG,CAAsB;MAClD,IAAI2D,KAAK,CAACC,OAAO,CAACmD,KAAK,CAAC,IAAIA,KAAK,CAAChG,MAAM,EAAE;QACxC;QACA1C,OAAO,GAAG,CAAC,GAAG0I,KAAK,EAAE,GAAG1I,OAAO,CAAC,CAAC6B,KAAK,CAAC,CAAC9B,WAAW,CAAC;QACpDE,MAAM,GAAG2I,IAAI,CAACC,GAAG,CAAC5I,MAAM,EAAE,GAAGyI,KAAK,CAAClH,GAAG,CAAE5D,CAAC,IAAKA,CAAC,CAAC4F,EAAE,GAAG,CAAC,CAAC,CAAC;QACxD/C,IAAI,CAAC,CAAC;MACR;IACF;EACF,CAAC,CAAC,MAAM;IACN;EAAA;AAEJ;;AAEA;AACO,SAASqI,cAAcA,CAAA,EAAY;EACxC,OAAOnB,WAAW;AACpB;;AAEA;AACO,SAASoB,cAAcA,CAACzB,IAAa,EAAQ;EAClD,IAAIK,WAAW,KAAKL,IAAI,EAAE;EAC1BK,WAAW,GAAGL,IAAI;EAClBS,YAAY,CAAC,CAAC;EACdM,2BAAiB,CAACC,OAAO,CAACd,YAAY,EAAEnG,MAAM,CAACiG,IAAI,CAAC,CAAC,CAAC0B,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;EACrE,IAAI1B,IAAI,EAAEY,UAAU,CAAC,CAAC,CAAC,KAClBd,gBAAgB,CAAC,CAAC;AACzB;;AAEA;AACO,SAAS6B,oBAAoBA,CAACtI,QAAkB,EAAc;EACnEkH,iBAAiB,CAACb,GAAG,CAACrG,QAAQ,CAAC;EAC/B,OAAO,MAAM;IACXkH,iBAAiB,CAACZ,MAAM,CAACtG,QAAQ,CAAC;EACpC,CAAC;AACH","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -48,5 +48,5 @@ export { consoleSyncAdapter } from "./sync/consoleSyncAdapter";
|
|
|
48
48
|
// =============================================================================
|
|
49
49
|
// CAPTURE STORE (install/teardown + types)
|
|
50
50
|
// =============================================================================
|
|
51
|
-
export { installConsoleCapture, uninstallConsoleCapture, clearEntries, getEntries, subscribe, replaceEntries, onClear, initConsolePersistence, getPreserveLog, setPreserveLog, subscribePreserveLog } from "./store/consoleLogStore";
|
|
51
|
+
export { installConsoleCapture, installFatalErrorCapture, uninstallConsoleCapture, clearEntries, getEntries, subscribe, replaceEntries, onClear, initConsolePersistence, getPreserveLog, setPreserveLog, subscribePreserveLog } from "./store/consoleLogStore";
|
|
52
52
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["consoleToolPreset","createConsoleTool","ConsoleRoot","ConsoleModal","ConsoleIcon","CONSOLE_ICON_COLOR","ConsoleView","ConsoleMessageRow","ConsoleValue","useConsoleMessages","consoleTheme","levelStyles","ConsoleLogList","useConsoleLogs","consoleSyncAdapter","installConsoleCapture","uninstallConsoleCapture","clearEntries","getEntries","subscribe","replaceEntries","onClear","initConsolePersistence","getPreserveLog","setPreserveLog","subscribePreserveLog"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAASA,iBAAiB,EAAEC,iBAAiB,QAAQ,UAAU;;AAE/D;AACA;AACA;AACA,SAASC,WAAW,QAAQ,0BAA0B;;AAEtD;AACA;AACA;AACA,SAASC,YAAY,QAAQ,2BAA2B;AACxD,SAASC,WAAW,EAAEC,kBAAkB,QAAQ,0BAA0B;;AAE1E;AACA,SAASC,WAAW,QAAQ,wBAAwB;AACpD,SAASC,iBAAiB,QAAQ,8BAA8B;AAChE,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,kBAAkB,QAAQ,+BAA+B;AAElE,SAASC,YAAY,EAAEC,WAAW,QAAQ,kBAAkB;;AAE5D;AACA,SAASC,cAAc,QAAQ,6BAA6B;;AAE5D;AACA;AACA;AACA,SAASC,cAAc,QAAQ,wBAAwB;AAGvD;AACA;AACA;AACA,SAASC,kBAAkB,QAAQ,2BAA2B;;AAE9D;AACA;AACA;AACA,SACEC,qBAAqB,EACrBC,uBAAuB,EACvBC,YAAY,EACZC,UAAU,EACVC,SAAS,EACTC,cAAc,EACdC,OAAO,EACPC,sBAAsB,EACtBC,cAAc,EACdC,cAAc,EACdC,oBAAoB,QACf,yBAAyB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["consoleToolPreset","createConsoleTool","ConsoleRoot","ConsoleModal","ConsoleIcon","CONSOLE_ICON_COLOR","ConsoleView","ConsoleMessageRow","ConsoleValue","useConsoleMessages","consoleTheme","levelStyles","ConsoleLogList","useConsoleLogs","consoleSyncAdapter","installConsoleCapture","installFatalErrorCapture","uninstallConsoleCapture","clearEntries","getEntries","subscribe","replaceEntries","onClear","initConsolePersistence","getPreserveLog","setPreserveLog","subscribePreserveLog"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAASA,iBAAiB,EAAEC,iBAAiB,QAAQ,UAAU;;AAE/D;AACA;AACA;AACA,SAASC,WAAW,QAAQ,0BAA0B;;AAEtD;AACA;AACA;AACA,SAASC,YAAY,QAAQ,2BAA2B;AACxD,SAASC,WAAW,EAAEC,kBAAkB,QAAQ,0BAA0B;;AAE1E;AACA,SAASC,WAAW,QAAQ,wBAAwB;AACpD,SAASC,iBAAiB,QAAQ,8BAA8B;AAChE,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,kBAAkB,QAAQ,+BAA+B;AAElE,SAASC,YAAY,EAAEC,WAAW,QAAQ,kBAAkB;;AAE5D;AACA,SAASC,cAAc,QAAQ,6BAA6B;;AAE5D;AACA;AACA;AACA,SAASC,cAAc,QAAQ,wBAAwB;AAGvD;AACA;AACA;AACA,SAASC,kBAAkB,QAAQ,2BAA2B;;AAE9D;AACA;AACA;AACA,SACEC,qBAAqB,EACrBC,wBAAwB,EACxBC,uBAAuB,EACvBC,YAAY,EACZC,UAAU,EACVC,SAAS,EACTC,cAAc,EACdC,OAAO,EACPC,sBAAsB,EACtBC,cAAc,EACdC,cAAc,EACdC,oBAAoB,QACf,yBAAyB","ignoreList":[]}
|
package/lib/module/preset.js
CHANGED
|
@@ -13,7 +13,34 @@
|
|
|
13
13
|
|
|
14
14
|
import { ConsoleIcon, CONSOLE_ICON_COLOR } from "./components/ConsoleIcon";
|
|
15
15
|
import { ConsoleModal } from "./components/ConsoleModal";
|
|
16
|
+
import { installConsoleCapture } from "./store/consoleLogStore";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Install console + fatal-error capture at IMPORT time, not first UI mount.
|
|
20
|
+
*
|
|
21
|
+
* Deliberately a module side effect (same pattern as @buoy-gg/network's
|
|
22
|
+
* override hydration): a fatal error thrown during the app's FIRST render
|
|
23
|
+
* kills the tree before FloatingDevTools' effects ever run, so mount-time
|
|
24
|
+
* install (`ConsoleRoot`) captured nothing for exactly the crashes that most
|
|
25
|
+
* need capturing. Importing the preset happens at bundle-eval, before any
|
|
26
|
+
* rendering, so the `console.*` patch and both fatal-error hooks (`ErrorUtils`
|
|
27
|
+
* and RN's native exception listener) are live from the first line of app code.
|
|
28
|
+
*
|
|
29
|
+
* Guards:
|
|
30
|
+
* - `ErrorUtils` OR `RN$registerExceptionListener` present = a real React Native
|
|
31
|
+
* runtime. The desktop dashboard and web mirrors import this package too, and
|
|
32
|
+
* must never patch their OWN console (they mirror device entries via
|
|
33
|
+
* `replaceEntries`).
|
|
34
|
+
* - Dev-only. In production the existing mount-time path still applies (the
|
|
35
|
+
* tools only mount there for licensed users), so end-user builds are never
|
|
36
|
+
* patched at import.
|
|
37
|
+
*/
|
|
16
38
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
39
|
+
const rnGlobals = globalThis;
|
|
40
|
+
const isReactNativeRuntime = typeof rnGlobals.ErrorUtils?.setGlobalHandler === "function" || typeof rnGlobals.RN$registerExceptionListener === "function";
|
|
41
|
+
if (isReactNativeRuntime && typeof __DEV__ !== "undefined" && __DEV__) {
|
|
42
|
+
installConsoleCapture();
|
|
43
|
+
}
|
|
17
44
|
export const consoleToolPreset = {
|
|
18
45
|
id: "console",
|
|
19
46
|
name: "CONSOLE",
|
package/lib/module/preset.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ConsoleIcon","CONSOLE_ICON_COLOR","ConsoleModal","jsx","_jsx","consoleToolPreset","id","name","description","slot","icon","size","color","component","createConsoleTool","options"],"sourceRoot":"../../src","sources":["preset.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,WAAW,EAAEC,kBAAkB,QAAQ,0BAA0B;AAC1E,SAASC,YAAY,QAAQ,2BAA2B;
|
|
1
|
+
{"version":3,"names":["ConsoleIcon","CONSOLE_ICON_COLOR","ConsoleModal","installConsoleCapture","jsx","_jsx","rnGlobals","globalThis","isReactNativeRuntime","ErrorUtils","setGlobalHandler","RN$registerExceptionListener","__DEV__","consoleToolPreset","id","name","description","slot","icon","size","color","component","createConsoleTool","options"],"sourceRoot":"../../src","sources":["preset.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,WAAW,EAAEC,kBAAkB,QAAQ,0BAA0B;AAC1E,SAASC,YAAY,QAAQ,2BAA2B;AACxD,SAASC,qBAAqB,QAAQ,yBAAyB;;AAE/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAnBA,SAAAC,GAAA,IAAAC,IAAA;AAoBA,MAAMC,SAAS,GAAGC,UAGjB;AACD,MAAMC,oBAAoB,GACxB,OAAOF,SAAS,CAACG,UAAU,EAAEC,gBAAgB,KAAK,UAAU,IAC5D,OAAOJ,SAAS,CAACK,4BAA4B,KAAK,UAAU;AAC9D,IAAIH,oBAAoB,IAAI,OAAOI,OAAO,KAAK,WAAW,IAAIA,OAAO,EAAE;EACrET,qBAAqB,CAAC,CAAC;AACzB;AAEA,OAAO,MAAMU,iBAAiB,GAAG;EAC/BC,EAAE,EAAE,SAAS;EACbC,IAAI,EAAE,SAAS;EACfC,WAAW,EAAE,2BAA2B;EACxCC,IAAI,EAAE,MAAe;EACrBC,IAAI,EAAEA,CAAC;IAAEC,IAAI;IAAEC;EAAwC,CAAC,kBACtDf,IAAA,CAACL,WAAW;IAACmB,IAAI,EAAEA,IAAK;IAACC,KAAK,EAAEA,KAAK,IAAInB;EAAmB,CAAE,CAC/D;EACDoB,SAAS,EAAEnB;AACb,CAAC;;AAED;AACA,OAAO,SAASoB,iBAAiBA,CAC/BC,OAAgD,GAAG,CAAC,CAAC,EACrD;EACA,OAAO;IACL,GAAGV,iBAAiB;IACpBE,IAAI,EAAEQ,OAAO,CAACR,IAAI,IAAIF,iBAAiB,CAACE,IAAI;IAC5CC,WAAW,EAAEO,OAAO,CAACP,WAAW,IAAIH,iBAAiB,CAACG;EACxD,CAAC;AACH","ignoreList":[]}
|