@solidnative-dev/observability 0.0.0-stage → 0.1.0-alpha.0
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/LICENSE +21 -0
- package/README.md +185 -2
- package/dist/debug-snapshot.d.ts +22 -0
- package/dist/debug-snapshot.d.ts.map +1 -0
- package/dist/debug-snapshot.js +221 -0
- package/dist/debug-snapshot.js.map +1 -0
- package/dist/diagnostics-correlation.d.ts +46 -0
- package/dist/diagnostics-correlation.d.ts.map +1 -0
- package/dist/diagnostics-correlation.js +155 -0
- package/dist/diagnostics-correlation.js.map +1 -0
- package/dist/diagnostics-debug.d.ts +81 -0
- package/dist/diagnostics-debug.d.ts.map +1 -0
- package/dist/diagnostics-debug.js +425 -0
- package/dist/diagnostics-debug.js.map +1 -0
- package/dist/index.d.ts +123 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +284 -0
- package/dist/index.js.map +1 -0
- package/dist/opentelemetry.d.ts +51 -0
- package/dist/opentelemetry.d.ts.map +1 -0
- package/dist/opentelemetry.js +136 -0
- package/dist/opentelemetry.js.map +1 -0
- package/dist/release.d.ts +24 -0
- package/dist/release.d.ts.map +1 -0
- package/dist/release.js +98 -0
- package/dist/release.js.map +1 -0
- package/dist/sentry.d.ts +52 -0
- package/dist/sentry.d.ts.map +1 -0
- package/dist/sentry.js +166 -0
- package/dist/sentry.js.map +1 -0
- package/dist/timeline.d.ts +65 -0
- package/dist/timeline.d.ts.map +1 -0
- package/dist/timeline.js +281 -0
- package/dist/timeline.js.map +1 -0
- package/dist/tree-debug.d.ts +84 -0
- package/dist/tree-debug.d.ts.map +1 -0
- package/dist/tree-debug.js +406 -0
- package/dist/tree-debug.js.map +1 -0
- package/package.json +29 -3
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export declare const TREE_DEBUG_SNAPSHOT_SCHEMA_VERSION: 0;
|
|
2
|
+
export declare const TREE_DEBUG_SNAPSHOT_KIND: "solid-native.tree-debug-snapshot";
|
|
3
|
+
export declare const TREE_DEBUG_SNAPSHOT_MAX_NODES = 4096;
|
|
4
|
+
export declare const TREE_DEBUG_SNAPSHOT_MAX_DEPTH = 128;
|
|
5
|
+
export declare const TREE_DEBUG_SNAPSHOT_MAX_CHILDREN = 1024;
|
|
6
|
+
export declare const TREE_DEBUG_SNAPSHOT_MAX_PROP_NAMES = 64;
|
|
7
|
+
export declare const TREE_DEBUG_SNAPSHOT_MAX_EVENT_NAMES = 64;
|
|
8
|
+
export declare const TREE_DEBUG_SNAPSHOT_MAX_NAME_LENGTH = 128;
|
|
9
|
+
export declare const TREE_DEBUG_SNAPSHOT_MAX_SERIALIZED_BYTES = 1048576;
|
|
10
|
+
/**
|
|
11
|
+
* Closed static accessibility-role allowlist. Restricting exported roles to
|
|
12
|
+
* known platform enum names prevents arbitrary application strings or PII from
|
|
13
|
+
* crossing the debug boundary while preserving structural intent.
|
|
14
|
+
*/
|
|
15
|
+
export declare const TREE_DEBUG_ACCESSIBILITY_ROLES: readonly ["adjustable", "alert", "button", "checkbox", "combobox", "grid", "header", "image", "imagebutton", "keyboardkey", "link", "list", "menu", "menubar", "menuitem", "none", "progressbar", "radio", "radiogroup", "scrollbar", "search", "spinbutton", "summary", "switch", "tab", "tablist", "text", "timer", "togglebutton", "toolbar"];
|
|
16
|
+
export type TreeDebugAccessibilityRole = (typeof TREE_DEBUG_ACCESSIBILITY_ROLES)[number];
|
|
17
|
+
export interface TreeDebugElementNode {
|
|
18
|
+
readonly kind: "element";
|
|
19
|
+
readonly handle: number;
|
|
20
|
+
readonly component: string;
|
|
21
|
+
readonly propNames: readonly string[];
|
|
22
|
+
readonly eventNames: readonly string[];
|
|
23
|
+
readonly role?: TreeDebugAccessibilityRole;
|
|
24
|
+
readonly causalOwner?: string;
|
|
25
|
+
readonly causalComputation?: string;
|
|
26
|
+
readonly omittedChildCount?: number;
|
|
27
|
+
readonly children: readonly TreeDebugNode[];
|
|
28
|
+
}
|
|
29
|
+
export interface TreeDebugTextNode {
|
|
30
|
+
readonly kind: "text";
|
|
31
|
+
readonly handle: number;
|
|
32
|
+
readonly textLength: number;
|
|
33
|
+
readonly causalOwner?: string;
|
|
34
|
+
readonly causalComputation?: string;
|
|
35
|
+
}
|
|
36
|
+
export type TreeDebugNode = TreeDebugElementNode | TreeDebugTextNode;
|
|
37
|
+
/**
|
|
38
|
+
* Bounded, value-free snapshot of one mounted logical UI tree. It records
|
|
39
|
+
* component hierarchy, process-local node handles, prop/event key names,
|
|
40
|
+
* closed-enum accessibility roles, static causal annotations, and text
|
|
41
|
+
* character counts while intentionally excluding rendered text, prop values,
|
|
42
|
+
* labels, user input, and stacks.
|
|
43
|
+
*/
|
|
44
|
+
export interface TreeDebugSnapshot {
|
|
45
|
+
readonly schemaVersion: typeof TREE_DEBUG_SNAPSHOT_SCHEMA_VERSION;
|
|
46
|
+
readonly kind: typeof TREE_DEBUG_SNAPSHOT_KIND;
|
|
47
|
+
readonly capturedAt: string;
|
|
48
|
+
readonly platform: string;
|
|
49
|
+
readonly surfaceId: number;
|
|
50
|
+
readonly committedSequence: number;
|
|
51
|
+
readonly pendingMutationCount: number;
|
|
52
|
+
readonly truncated: boolean;
|
|
53
|
+
readonly nodeCount: number;
|
|
54
|
+
readonly elementCount: number;
|
|
55
|
+
readonly textCount: number;
|
|
56
|
+
readonly sentinelCount: number;
|
|
57
|
+
readonly omittedChildCount: number;
|
|
58
|
+
readonly maxDepth: number;
|
|
59
|
+
readonly root: TreeDebugElementNode;
|
|
60
|
+
}
|
|
61
|
+
export interface CreateTreeDebugSnapshotInput {
|
|
62
|
+
readonly capturedAt?: string;
|
|
63
|
+
readonly platform: string;
|
|
64
|
+
readonly surfaceId: number;
|
|
65
|
+
readonly committedSequence: number;
|
|
66
|
+
readonly pendingMutationCount: number;
|
|
67
|
+
readonly truncated: boolean;
|
|
68
|
+
readonly nodeCount: number;
|
|
69
|
+
readonly elementCount: number;
|
|
70
|
+
readonly textCount: number;
|
|
71
|
+
readonly sentinelCount: number;
|
|
72
|
+
readonly omittedChildCount: number;
|
|
73
|
+
readonly maxDepth: number;
|
|
74
|
+
readonly root: TreeDebugElementNode;
|
|
75
|
+
}
|
|
76
|
+
/** Returns a validated static accessibility role or `undefined` if not allowlisted. */
|
|
77
|
+
export declare function normalizeTreeDebugAccessibilityRole(value: unknown): TreeDebugAccessibilityRole | undefined;
|
|
78
|
+
/** Strictly validates and deeply freezes one detached UI tree snapshot. */
|
|
79
|
+
export declare function parseTreeDebugSnapshot(value: unknown): TreeDebugSnapshot;
|
|
80
|
+
/** Creates a validated, byte-bounded, deeply frozen UI tree snapshot. */
|
|
81
|
+
export declare function createTreeDebugSnapshot(input: CreateTreeDebugSnapshotInput): TreeDebugSnapshot;
|
|
82
|
+
/** Strictly validates and serializes a tree debug snapshot within its byte budget. */
|
|
83
|
+
export declare function serializeTreeDebugSnapshot(snapshot: TreeDebugSnapshot): string;
|
|
84
|
+
//# sourceMappingURL=tree-debug.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-debug.d.ts","sourceRoot":"","sources":["../src/tree-debug.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC,EAAG,CAAU,CAAC;AAC7D,eAAO,MAAM,wBAAwB,EACnC,kCAA2C,CAAC;AAC9C,eAAO,MAAM,6BAA6B,OAAQ,CAAC;AACnD,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,gCAAgC,OAAQ,CAAC;AACtD,eAAO,MAAM,kCAAkC,KAAK,CAAC;AACrD,eAAO,MAAM,mCAAmC,KAAK,CAAC;AACtD,eAAO,MAAM,mCAAmC,MAAM,CAAC;AACvD,eAAO,MAAM,wCAAwC,UAAY,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,kVA+BhC,CAAC;AAEZ,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,MAAM,WA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AAiB,CA4BnB;AAED,sFAAsF;AACtF,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,iBAAiB,GAC1B,MAAM,CAQR"}
|
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
export const TREE_DEBUG_SNAPSHOT_SCHEMA_VERSION = 0;
|
|
2
|
+
export const TREE_DEBUG_SNAPSHOT_KIND = "solid-native.tree-debug-snapshot";
|
|
3
|
+
export const TREE_DEBUG_SNAPSHOT_MAX_NODES = 4_096;
|
|
4
|
+
export const TREE_DEBUG_SNAPSHOT_MAX_DEPTH = 128;
|
|
5
|
+
export const TREE_DEBUG_SNAPSHOT_MAX_CHILDREN = 1_024;
|
|
6
|
+
export const TREE_DEBUG_SNAPSHOT_MAX_PROP_NAMES = 64;
|
|
7
|
+
export const TREE_DEBUG_SNAPSHOT_MAX_EVENT_NAMES = 64;
|
|
8
|
+
export const TREE_DEBUG_SNAPSHOT_MAX_NAME_LENGTH = 128;
|
|
9
|
+
export const TREE_DEBUG_SNAPSHOT_MAX_SERIALIZED_BYTES = 1_048_576;
|
|
10
|
+
/**
|
|
11
|
+
* Closed static accessibility-role allowlist. Restricting exported roles to
|
|
12
|
+
* known platform enum names prevents arbitrary application strings or PII from
|
|
13
|
+
* crossing the debug boundary while preserving structural intent.
|
|
14
|
+
*/
|
|
15
|
+
export const TREE_DEBUG_ACCESSIBILITY_ROLES = Object.freeze([
|
|
16
|
+
"adjustable",
|
|
17
|
+
"alert",
|
|
18
|
+
"button",
|
|
19
|
+
"checkbox",
|
|
20
|
+
"combobox",
|
|
21
|
+
"grid",
|
|
22
|
+
"header",
|
|
23
|
+
"image",
|
|
24
|
+
"imagebutton",
|
|
25
|
+
"keyboardkey",
|
|
26
|
+
"link",
|
|
27
|
+
"list",
|
|
28
|
+
"menu",
|
|
29
|
+
"menubar",
|
|
30
|
+
"menuitem",
|
|
31
|
+
"none",
|
|
32
|
+
"progressbar",
|
|
33
|
+
"radio",
|
|
34
|
+
"radiogroup",
|
|
35
|
+
"scrollbar",
|
|
36
|
+
"search",
|
|
37
|
+
"spinbutton",
|
|
38
|
+
"summary",
|
|
39
|
+
"switch",
|
|
40
|
+
"tab",
|
|
41
|
+
"tablist",
|
|
42
|
+
"text",
|
|
43
|
+
"timer",
|
|
44
|
+
"togglebutton",
|
|
45
|
+
"toolbar",
|
|
46
|
+
]);
|
|
47
|
+
const ACCESSIBILITY_ROLE_SET = new Set(TREE_DEBUG_ACCESSIBILITY_ROLES);
|
|
48
|
+
const PLATFORM_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/u;
|
|
49
|
+
const SNAPSHOT_KEYS = [
|
|
50
|
+
"schemaVersion",
|
|
51
|
+
"kind",
|
|
52
|
+
"capturedAt",
|
|
53
|
+
"platform",
|
|
54
|
+
"surfaceId",
|
|
55
|
+
"committedSequence",
|
|
56
|
+
"pendingMutationCount",
|
|
57
|
+
"truncated",
|
|
58
|
+
"nodeCount",
|
|
59
|
+
"elementCount",
|
|
60
|
+
"textCount",
|
|
61
|
+
"sentinelCount",
|
|
62
|
+
"omittedChildCount",
|
|
63
|
+
"maxDepth",
|
|
64
|
+
"root",
|
|
65
|
+
];
|
|
66
|
+
const REQUIRED_ELEMENT_KEYS = [
|
|
67
|
+
"kind",
|
|
68
|
+
"handle",
|
|
69
|
+
"component",
|
|
70
|
+
"propNames",
|
|
71
|
+
"eventNames",
|
|
72
|
+
"children",
|
|
73
|
+
];
|
|
74
|
+
const OPTIONAL_ELEMENT_KEYS = [
|
|
75
|
+
"role",
|
|
76
|
+
"causalOwner",
|
|
77
|
+
"causalComputation",
|
|
78
|
+
"omittedChildCount",
|
|
79
|
+
];
|
|
80
|
+
const REQUIRED_TEXT_KEYS = ["kind", "handle", "textLength"];
|
|
81
|
+
const OPTIONAL_TEXT_KEYS = ["causalOwner", "causalComputation"];
|
|
82
|
+
function utf8ByteLength(value) {
|
|
83
|
+
let bytes = 0;
|
|
84
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
85
|
+
const code = value.charCodeAt(index);
|
|
86
|
+
if (code <= 0x7f)
|
|
87
|
+
bytes += 1;
|
|
88
|
+
else if (code <= 0x7ff)
|
|
89
|
+
bytes += 2;
|
|
90
|
+
else if (code >= 0xd800 && code <= 0xdbff) {
|
|
91
|
+
const next = value.charCodeAt(index + 1);
|
|
92
|
+
if (next >= 0xdc00 && next <= 0xdfff) {
|
|
93
|
+
bytes += 4;
|
|
94
|
+
index += 1;
|
|
95
|
+
}
|
|
96
|
+
else
|
|
97
|
+
bytes += 3;
|
|
98
|
+
}
|
|
99
|
+
else
|
|
100
|
+
bytes += 3;
|
|
101
|
+
}
|
|
102
|
+
return bytes;
|
|
103
|
+
}
|
|
104
|
+
function plainRecord(value, path) {
|
|
105
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
106
|
+
throw new TypeError(`${path} must be an object.`);
|
|
107
|
+
}
|
|
108
|
+
const prototype = Object.getPrototypeOf(value);
|
|
109
|
+
if (prototype !== Object.prototype && prototype !== null) {
|
|
110
|
+
throw new TypeError(`${path} must be a plain object.`);
|
|
111
|
+
}
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
function strictKeys(source, required, optional, path) {
|
|
115
|
+
const allowed = new Set([...required, ...optional]);
|
|
116
|
+
for (const key of Object.keys(source)) {
|
|
117
|
+
if (!allowed.has(key)) {
|
|
118
|
+
throw new TypeError(`${path} contains unknown field ${JSON.stringify(key)}.`);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
for (const key of required) {
|
|
122
|
+
if (!Object.hasOwn(source, key)) {
|
|
123
|
+
throw new TypeError(`${path} is missing field ${JSON.stringify(key)}.`);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function nonNegativeInteger(value, path) {
|
|
128
|
+
if (!Number.isSafeInteger(value) || value < 0) {
|
|
129
|
+
throw new TypeError(`${path} must be a non-negative safe integer.`);
|
|
130
|
+
}
|
|
131
|
+
return value;
|
|
132
|
+
}
|
|
133
|
+
function positiveInteger(value, path) {
|
|
134
|
+
const integer = nonNegativeInteger(value, path);
|
|
135
|
+
if (integer === 0) {
|
|
136
|
+
throw new TypeError(`${path} must be a positive safe integer.`);
|
|
137
|
+
}
|
|
138
|
+
return integer;
|
|
139
|
+
}
|
|
140
|
+
function boundedName(value, path) {
|
|
141
|
+
if (typeof value !== "string" ||
|
|
142
|
+
value.length === 0 ||
|
|
143
|
+
value.length > TREE_DEBUG_SNAPSHOT_MAX_NAME_LENGTH ||
|
|
144
|
+
/\p{Cc}/u.test(value)) {
|
|
145
|
+
throw new TypeError(`${path} must contain 1-${String(TREE_DEBUG_SNAPSHOT_MAX_NAME_LENGTH)} printable characters without control characters.`);
|
|
146
|
+
}
|
|
147
|
+
return value;
|
|
148
|
+
}
|
|
149
|
+
function canonicalCapturedAt(value) {
|
|
150
|
+
let canonical = false;
|
|
151
|
+
if (typeof value === "string" &&
|
|
152
|
+
value.length === 24 &&
|
|
153
|
+
/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/u.test(value)) {
|
|
154
|
+
try {
|
|
155
|
+
canonical = new Date(value).toISOString() === value;
|
|
156
|
+
}
|
|
157
|
+
catch {
|
|
158
|
+
// Impossible calendar dates are not canonical timestamps.
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
if (!canonical) {
|
|
162
|
+
throw new TypeError("Tree debug snapshot capturedAt must be canonical UTC.");
|
|
163
|
+
}
|
|
164
|
+
return value;
|
|
165
|
+
}
|
|
166
|
+
function sortedUniqueNames(value, maximum, path) {
|
|
167
|
+
if (!Array.isArray(value))
|
|
168
|
+
throw new TypeError(`${path} must be an array.`);
|
|
169
|
+
if (value.length > maximum) {
|
|
170
|
+
throw new RangeError(`${path} exceeds ${String(maximum)} entries.`);
|
|
171
|
+
}
|
|
172
|
+
const output = [];
|
|
173
|
+
let previous;
|
|
174
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
175
|
+
const entry = boundedName(value[index], `${path}[${String(index)}]`);
|
|
176
|
+
if (previous !== undefined && entry <= previous) {
|
|
177
|
+
throw new TypeError(`${path} must be strictly sorted without duplicates.`);
|
|
178
|
+
}
|
|
179
|
+
previous = entry;
|
|
180
|
+
output.push(entry);
|
|
181
|
+
}
|
|
182
|
+
return Object.freeze(output);
|
|
183
|
+
}
|
|
184
|
+
/** Returns a validated static accessibility role or `undefined` if not allowlisted. */
|
|
185
|
+
export function normalizeTreeDebugAccessibilityRole(value) {
|
|
186
|
+
if (typeof value !== "string" || !ACCESSIBILITY_ROLE_SET.has(value)) {
|
|
187
|
+
return undefined;
|
|
188
|
+
}
|
|
189
|
+
return value;
|
|
190
|
+
}
|
|
191
|
+
function parseElementNode(value, depth, state, path) {
|
|
192
|
+
if (depth > TREE_DEBUG_SNAPSHOT_MAX_DEPTH) {
|
|
193
|
+
throw new RangeError(`${path} exceeds the maximum tree depth of ${String(TREE_DEBUG_SNAPSHOT_MAX_DEPTH)}.`);
|
|
194
|
+
}
|
|
195
|
+
if (state.elementCount + state.textCount >= TREE_DEBUG_SNAPSHOT_MAX_NODES) {
|
|
196
|
+
throw new RangeError(`Tree debug snapshot exceeds ${String(TREE_DEBUG_SNAPSHOT_MAX_NODES)} nodes.`);
|
|
197
|
+
}
|
|
198
|
+
const source = plainRecord(value, path);
|
|
199
|
+
strictKeys(source, REQUIRED_ELEMENT_KEYS, OPTIONAL_ELEMENT_KEYS, path);
|
|
200
|
+
if (source.kind !== "element") {
|
|
201
|
+
throw new TypeError(`${path}.kind must be "element".`);
|
|
202
|
+
}
|
|
203
|
+
const handle = nonNegativeInteger(source.handle, `${path}.handle`);
|
|
204
|
+
if (state.seenHandles.has(handle)) {
|
|
205
|
+
throw new TypeError(`Tree debug snapshot contains duplicate node handle ${String(handle)}.`);
|
|
206
|
+
}
|
|
207
|
+
state.seenHandles.add(handle);
|
|
208
|
+
state.elementCount += 1;
|
|
209
|
+
if (depth > state.maxDepth)
|
|
210
|
+
state.maxDepth = depth;
|
|
211
|
+
const component = boundedName(source.component, `${path}.component`);
|
|
212
|
+
const propNames = sortedUniqueNames(source.propNames, TREE_DEBUG_SNAPSHOT_MAX_PROP_NAMES, `${path}.propNames`);
|
|
213
|
+
const eventNames = sortedUniqueNames(source.eventNames, TREE_DEBUG_SNAPSHOT_MAX_EVENT_NAMES, `${path}.eventNames`);
|
|
214
|
+
let role;
|
|
215
|
+
if (Object.hasOwn(source, "role")) {
|
|
216
|
+
role = normalizeTreeDebugAccessibilityRole(source.role);
|
|
217
|
+
if (role === undefined) {
|
|
218
|
+
throw new TypeError(`${path}.role is not a supported static accessibility role.`);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
const causalOwner = Object.hasOwn(source, "causalOwner")
|
|
222
|
+
? boundedName(source.causalOwner, `${path}.causalOwner`)
|
|
223
|
+
: undefined;
|
|
224
|
+
const causalComputation = Object.hasOwn(source, "causalComputation")
|
|
225
|
+
? boundedName(source.causalComputation, `${path}.causalComputation`)
|
|
226
|
+
: undefined;
|
|
227
|
+
const omittedChildCount = Object.hasOwn(source, "omittedChildCount")
|
|
228
|
+
? positiveInteger(source.omittedChildCount, `${path}.omittedChildCount`)
|
|
229
|
+
: undefined;
|
|
230
|
+
if (omittedChildCount !== undefined) {
|
|
231
|
+
state.omittedChildCount += omittedChildCount;
|
|
232
|
+
}
|
|
233
|
+
if (!Array.isArray(source.children)) {
|
|
234
|
+
throw new TypeError(`${path}.children must be an array.`);
|
|
235
|
+
}
|
|
236
|
+
if (source.children.length > TREE_DEBUG_SNAPSHOT_MAX_CHILDREN) {
|
|
237
|
+
throw new RangeError(`${path}.children exceeds ${String(TREE_DEBUG_SNAPSHOT_MAX_CHILDREN)} direct children.`);
|
|
238
|
+
}
|
|
239
|
+
const children = Object.freeze(source.children.map((child, index) => parseNode(child, depth + 1, state, `${path}.children[${String(index)}]`)));
|
|
240
|
+
return Object.freeze({
|
|
241
|
+
kind: "element",
|
|
242
|
+
handle,
|
|
243
|
+
component,
|
|
244
|
+
propNames,
|
|
245
|
+
eventNames,
|
|
246
|
+
...(role === undefined ? {} : { role }),
|
|
247
|
+
...(causalOwner === undefined ? {} : { causalOwner }),
|
|
248
|
+
...(causalComputation === undefined ? {} : { causalComputation }),
|
|
249
|
+
...(omittedChildCount === undefined ? {} : { omittedChildCount }),
|
|
250
|
+
children,
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
function parseTextNode(value, depth, state, path) {
|
|
254
|
+
if (depth > TREE_DEBUG_SNAPSHOT_MAX_DEPTH) {
|
|
255
|
+
throw new RangeError(`${path} exceeds the maximum tree depth of ${String(TREE_DEBUG_SNAPSHOT_MAX_DEPTH)}.`);
|
|
256
|
+
}
|
|
257
|
+
if (state.elementCount + state.textCount >= TREE_DEBUG_SNAPSHOT_MAX_NODES) {
|
|
258
|
+
throw new RangeError(`Tree debug snapshot exceeds ${String(TREE_DEBUG_SNAPSHOT_MAX_NODES)} nodes.`);
|
|
259
|
+
}
|
|
260
|
+
const source = plainRecord(value, path);
|
|
261
|
+
strictKeys(source, REQUIRED_TEXT_KEYS, OPTIONAL_TEXT_KEYS, path);
|
|
262
|
+
if (source.kind !== "text") {
|
|
263
|
+
throw new TypeError(`${path}.kind must be "text".`);
|
|
264
|
+
}
|
|
265
|
+
const handle = nonNegativeInteger(source.handle, `${path}.handle`);
|
|
266
|
+
if (state.seenHandles.has(handle)) {
|
|
267
|
+
throw new TypeError(`Tree debug snapshot contains duplicate node handle ${String(handle)}.`);
|
|
268
|
+
}
|
|
269
|
+
state.seenHandles.add(handle);
|
|
270
|
+
state.textCount += 1;
|
|
271
|
+
if (depth > state.maxDepth)
|
|
272
|
+
state.maxDepth = depth;
|
|
273
|
+
const textLength = nonNegativeInteger(source.textLength, `${path}.textLength`);
|
|
274
|
+
const causalOwner = Object.hasOwn(source, "causalOwner")
|
|
275
|
+
? boundedName(source.causalOwner, `${path}.causalOwner`)
|
|
276
|
+
: undefined;
|
|
277
|
+
const causalComputation = Object.hasOwn(source, "causalComputation")
|
|
278
|
+
? boundedName(source.causalComputation, `${path}.causalComputation`)
|
|
279
|
+
: undefined;
|
|
280
|
+
return Object.freeze({
|
|
281
|
+
kind: "text",
|
|
282
|
+
handle,
|
|
283
|
+
textLength,
|
|
284
|
+
...(causalOwner === undefined ? {} : { causalOwner }),
|
|
285
|
+
...(causalComputation === undefined ? {} : { causalComputation }),
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
function parseNode(value, depth, state, path) {
|
|
289
|
+
const source = plainRecord(value, path);
|
|
290
|
+
if (source.kind === "element") {
|
|
291
|
+
return parseElementNode(source, depth, state, path);
|
|
292
|
+
}
|
|
293
|
+
if (source.kind === "text") {
|
|
294
|
+
return parseTextNode(source, depth, state, path);
|
|
295
|
+
}
|
|
296
|
+
throw new TypeError(`${path}.kind must be "element" or "text".`);
|
|
297
|
+
}
|
|
298
|
+
/** Strictly validates and deeply freezes one detached UI tree snapshot. */
|
|
299
|
+
export function parseTreeDebugSnapshot(value) {
|
|
300
|
+
const source = plainRecord(value, "tree debug snapshot");
|
|
301
|
+
strictKeys(source, SNAPSHOT_KEYS, [], "tree debug snapshot");
|
|
302
|
+
if (source.schemaVersion !== TREE_DEBUG_SNAPSHOT_SCHEMA_VERSION) {
|
|
303
|
+
throw new TypeError("Tree debug snapshot schemaVersion is unsupported.");
|
|
304
|
+
}
|
|
305
|
+
if (source.kind !== TREE_DEBUG_SNAPSHOT_KIND) {
|
|
306
|
+
throw new TypeError("Tree debug snapshot kind is invalid.");
|
|
307
|
+
}
|
|
308
|
+
const capturedAt = canonicalCapturedAt(source.capturedAt);
|
|
309
|
+
if (typeof source.platform !== "string" ||
|
|
310
|
+
!PLATFORM_PATTERN.test(source.platform)) {
|
|
311
|
+
throw new TypeError("Tree debug snapshot platform must be a static identifier of 1 to 128 characters.");
|
|
312
|
+
}
|
|
313
|
+
const surfaceId = nonNegativeInteger(source.surfaceId, "tree debug snapshot surfaceId");
|
|
314
|
+
const committedSequence = nonNegativeInteger(source.committedSequence, "tree debug snapshot committedSequence");
|
|
315
|
+
const pendingMutationCount = nonNegativeInteger(source.pendingMutationCount, "tree debug snapshot pendingMutationCount");
|
|
316
|
+
if (typeof source.truncated !== "boolean") {
|
|
317
|
+
throw new TypeError("Tree debug snapshot truncated must be boolean.");
|
|
318
|
+
}
|
|
319
|
+
const declaredNodeCount = nonNegativeInteger(source.nodeCount, "tree debug snapshot nodeCount");
|
|
320
|
+
const declaredElementCount = nonNegativeInteger(source.elementCount, "tree debug snapshot elementCount");
|
|
321
|
+
const declaredTextCount = nonNegativeInteger(source.textCount, "tree debug snapshot textCount");
|
|
322
|
+
const sentinelCount = nonNegativeInteger(source.sentinelCount, "tree debug snapshot sentinelCount");
|
|
323
|
+
const declaredOmittedChildCount = nonNegativeInteger(source.omittedChildCount, "tree debug snapshot omittedChildCount");
|
|
324
|
+
const declaredMaxDepth = nonNegativeInteger(source.maxDepth, "tree debug snapshot maxDepth");
|
|
325
|
+
const state = {
|
|
326
|
+
seenHandles: new Set(),
|
|
327
|
+
elementCount: 0,
|
|
328
|
+
textCount: 0,
|
|
329
|
+
omittedChildCount: 0,
|
|
330
|
+
maxDepth: 0,
|
|
331
|
+
};
|
|
332
|
+
const root = parseElementNode(source.root, 0, state, "tree debug snapshot root");
|
|
333
|
+
const actualNodeCount = state.elementCount + state.textCount;
|
|
334
|
+
if (declaredNodeCount !== actualNodeCount) {
|
|
335
|
+
throw new TypeError("Tree debug snapshot nodeCount does not match its retained tree.");
|
|
336
|
+
}
|
|
337
|
+
if (declaredElementCount !== state.elementCount) {
|
|
338
|
+
throw new TypeError("Tree debug snapshot elementCount does not match its retained tree.");
|
|
339
|
+
}
|
|
340
|
+
if (declaredTextCount !== state.textCount) {
|
|
341
|
+
throw new TypeError("Tree debug snapshot textCount does not match its retained tree.");
|
|
342
|
+
}
|
|
343
|
+
if (declaredOmittedChildCount !== state.omittedChildCount) {
|
|
344
|
+
throw new TypeError("Tree debug snapshot omittedChildCount does not match its retained tree.");
|
|
345
|
+
}
|
|
346
|
+
if (declaredMaxDepth !== state.maxDepth) {
|
|
347
|
+
throw new TypeError("Tree debug snapshot maxDepth does not match its retained tree.");
|
|
348
|
+
}
|
|
349
|
+
if (state.omittedChildCount > 0 && !source.truncated) {
|
|
350
|
+
throw new TypeError("Tree debug snapshot truncation state is inconsistent.");
|
|
351
|
+
}
|
|
352
|
+
return Object.freeze({
|
|
353
|
+
schemaVersion: TREE_DEBUG_SNAPSHOT_SCHEMA_VERSION,
|
|
354
|
+
kind: TREE_DEBUG_SNAPSHOT_KIND,
|
|
355
|
+
capturedAt,
|
|
356
|
+
platform: source.platform,
|
|
357
|
+
surfaceId,
|
|
358
|
+
committedSequence,
|
|
359
|
+
pendingMutationCount,
|
|
360
|
+
truncated: source.truncated,
|
|
361
|
+
nodeCount: actualNodeCount,
|
|
362
|
+
elementCount: state.elementCount,
|
|
363
|
+
textCount: state.textCount,
|
|
364
|
+
sentinelCount,
|
|
365
|
+
omittedChildCount: state.omittedChildCount,
|
|
366
|
+
maxDepth: state.maxDepth,
|
|
367
|
+
root,
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
/** Creates a validated, byte-bounded, deeply frozen UI tree snapshot. */
|
|
371
|
+
export function createTreeDebugSnapshot(input) {
|
|
372
|
+
if (input === null || typeof input !== "object") {
|
|
373
|
+
throw new TypeError("Tree debug snapshot input is required.");
|
|
374
|
+
}
|
|
375
|
+
const snapshot = parseTreeDebugSnapshot({
|
|
376
|
+
schemaVersion: TREE_DEBUG_SNAPSHOT_SCHEMA_VERSION,
|
|
377
|
+
kind: TREE_DEBUG_SNAPSHOT_KIND,
|
|
378
|
+
capturedAt: input.capturedAt ?? new Date().toISOString(),
|
|
379
|
+
platform: input.platform,
|
|
380
|
+
surfaceId: input.surfaceId,
|
|
381
|
+
committedSequence: input.committedSequence,
|
|
382
|
+
pendingMutationCount: input.pendingMutationCount,
|
|
383
|
+
truncated: input.truncated,
|
|
384
|
+
nodeCount: input.nodeCount,
|
|
385
|
+
elementCount: input.elementCount,
|
|
386
|
+
textCount: input.textCount,
|
|
387
|
+
sentinelCount: input.sentinelCount,
|
|
388
|
+
omittedChildCount: input.omittedChildCount,
|
|
389
|
+
maxDepth: input.maxDepth,
|
|
390
|
+
root: input.root,
|
|
391
|
+
});
|
|
392
|
+
const json = JSON.stringify(snapshot);
|
|
393
|
+
if (utf8ByteLength(json) > TREE_DEBUG_SNAPSHOT_MAX_SERIALIZED_BYTES) {
|
|
394
|
+
throw new RangeError(`Tree debug snapshot exceeds ${String(TREE_DEBUG_SNAPSHOT_MAX_SERIALIZED_BYTES)} UTF-8 bytes.`);
|
|
395
|
+
}
|
|
396
|
+
return snapshot;
|
|
397
|
+
}
|
|
398
|
+
/** Strictly validates and serializes a tree debug snapshot within its byte budget. */
|
|
399
|
+
export function serializeTreeDebugSnapshot(snapshot) {
|
|
400
|
+
const json = JSON.stringify(parseTreeDebugSnapshot(snapshot));
|
|
401
|
+
if (utf8ByteLength(json) > TREE_DEBUG_SNAPSHOT_MAX_SERIALIZED_BYTES) {
|
|
402
|
+
throw new RangeError(`Tree debug snapshot exceeds ${String(TREE_DEBUG_SNAPSHOT_MAX_SERIALIZED_BYTES)} UTF-8 bytes.`);
|
|
403
|
+
}
|
|
404
|
+
return json;
|
|
405
|
+
}
|
|
406
|
+
//# sourceMappingURL=tree-debug.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-debug.js","sourceRoot":"","sources":["../src/tree-debug.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAU,CAAC;AAC7D,MAAM,CAAC,MAAM,wBAAwB,GACnC,kCAA2C,CAAC;AAC9C,MAAM,CAAC,MAAM,6BAA6B,GAAG,KAAK,CAAC;AACnD,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,CAAC;AACjD,MAAM,CAAC,MAAM,gCAAgC,GAAG,KAAK,CAAC;AACtD,MAAM,CAAC,MA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AAI,cAAc,CAAC,IAAI,CAAC,GAAG,wCAAwC,EAAE,CAAC;QACpE,MAAM,IAAI,UAAU,CAClB,+BAA+B,MAAM,CAAC,wCAAwC,CAAC,eAAe,CAC/F,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidnative-dev/observability",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"version": "0.1.0-alpha.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Vendor-neutral causal telemetry protocol for Solid Native.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://solidnative.dev",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/solid-native/solid-native.git",
|
|
11
|
+
"directory": "packages/observability"
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": "^22.13.0 || ^24.3.0 || >=26.0.0"
|
|
18
|
+
},
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"default": "./dist/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsc -p tsconfig.json",
|
|
30
|
+
"check": "tsc -p tsconfig.json --noEmit"
|
|
31
|
+
}
|
|
6
32
|
}
|