1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/// Environment variable naming an optional JSON output file for captured panic forensics records.
pub const ENV_EUV_PANIC_REPORT_PATH: &str = "EUV_PANIC_REPORT_PATH";
/// Maximum number of recent panic forensics records retained in the global ring.
pub const PANIC_FORENSICS_RING_CAPACITY: usize = 32;
/// Structured stderr marker prefix emitted on every captured panic for deterministic AI parsing.
pub const PANIC_FORENSICS_STDERR_PREFIX: &str = "[EUV_PANIC_FORENSICS_JSON]";
/// Fixed capacity of the zero-allocation runtime event breadcrumb ring buffer.
pub const PANIC_BREADCRUMB_RING_CAPACITY: usize = 64;
pub const PANIC_UNKNOWN_FILE: &str = "<unknown>";
pub const PANIC_UNNAMED_THREAD: &str = "unnamed";
pub const PANIC_WASM_THREAD_NAME: &str = "wasm-main";
pub const PANIC_WASM_TIMESTAMP: &str = "wasm32-runtime";
pub const PANIC_JS_STACK_KEY: &str = "stack";
pub const PANIC_WASM_WINDOW_PROP: &str = "__euvLastPanicForensics";
pub const PANIC_TERMINAL_RESTORE_SEQ: &str =
"\x1b[?25h\x1b[?1000l\x1b[?1006l\x1b[?2004l\x1b[?1049l\x1b[0m\r\n";
pub const PANIC_FALLBACK_PAYLOAD: &str = "non-string panic payload";
crateeuv_devtools_only_items!