@descryy/runtime-identity-grounding 0.3.0 → 0.4.1

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.
Files changed (41) hide show
  1. package/dist/element-identity.d.ts +41 -78
  2. package/dist/element-identity.d.ts.map +1 -1
  3. package/dist/element-identity.js +59 -64
  4. package/dist/element-identity.js.map +1 -1
  5. package/dist/fiber-probe.d.ts +25 -45
  6. package/dist/fiber-probe.d.ts.map +1 -1
  7. package/dist/fiber-probe.js +45 -84
  8. package/dist/fiber-probe.js.map +1 -1
  9. package/dist/graph-join.d.ts +18 -49
  10. package/dist/graph-join.d.ts.map +1 -1
  11. package/dist/graph-join.js +17 -42
  12. package/dist/graph-join.js.map +1 -1
  13. package/dist/identity-grounder.d.ts +12 -31
  14. package/dist/identity-grounder.d.ts.map +1 -1
  15. package/dist/identity-grounder.js +13 -26
  16. package/dist/identity-grounder.js.map +1 -1
  17. package/dist/identity-grounding.d.ts +20 -39
  18. package/dist/identity-grounding.d.ts.map +1 -1
  19. package/dist/identity-grounding.js +27 -44
  20. package/dist/identity-grounding.js.map +1 -1
  21. package/dist/index.d.ts +7 -6
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +5 -6
  24. package/dist/index.js.map +1 -1
  25. package/dist/owner-stack.d.ts +36 -65
  26. package/dist/owner-stack.d.ts.map +1 -1
  27. package/dist/owner-stack.js +33 -62
  28. package/dist/owner-stack.js.map +1 -1
  29. package/dist/vue-identity-grounder.d.ts +23 -0
  30. package/dist/vue-identity-grounder.d.ts.map +1 -0
  31. package/dist/vue-identity-grounder.js +28 -0
  32. package/dist/vue-identity-grounder.js.map +1 -0
  33. package/dist/vue-identity-grounding.d.ts +16 -0
  34. package/dist/vue-identity-grounding.d.ts.map +1 -0
  35. package/dist/vue-identity-grounding.js +110 -0
  36. package/dist/vue-identity-grounding.js.map +1 -0
  37. package/dist/vue-probe.d.ts +49 -0
  38. package/dist/vue-probe.d.ts.map +1 -0
  39. package/dist/vue-probe.js +95 -0
  40. package/dist/vue-probe.js.map +1 -0
  41. package/package.json +7 -7
@@ -1,38 +1,24 @@
1
1
  /**
2
2
  * The decision layer: raw fiber facts in, one `ElementIdentity` out.
3
3
  *
4
- * Pure with respect to the browser — it never touches a `Page`. Everything
5
- * it needs from the page arrives as a `RawFiberProbe`, and the one piece of
6
- * machinery it cannot own (turning a React 19 owner stack into a resolved
7
- * `StackTrace`, which needs source-map resolution and filesystem access) is
8
- * injected as `OwnerStackResolver`. That split is what lets every refusal
9
- * branch below be exercised as a plain unit test, with no Chromium and no
10
- * fixture app, while the fixture apps prove the two mechanisms end to end.
4
+ * Pure with respect to the browser — never touches a `Page`. The one piece
5
+ * of machinery it can't own (turning a React 19 owner stack into a resolved
6
+ * `StackTrace`) is injected as `OwnerStackResolver`, so every refusal
7
+ * branch below is a plain unit test, no Chromium needed.
11
8
  *
12
- * ## What this cannot do, stated once, in the place that decides it
9
+ * What this cannot do, decided here: a production React build (no
10
+ * `_debug*` survives, refused as `react-debug-fields-absent`); anything
11
+ * that isn't React (no fiber key — a scope boundary, not a gap, refused as
12
+ * "not React" rather than "unknown"); a React 19 bundle with no source map
13
+ * (reported with `authoredSource: false` and `degraded`, never dressed up);
14
+ * an anonymous component (refused — no symbol to look up, no name to act on).
13
15
  *
14
- * - **A production React build.** No `_debug*` field survives, and the
15
- * component name on the fiber is minified. Refused by name
16
- * (`react-debug-fields-absent`); see that value's own documentation.
17
- * - **Anything that is not React.** No fiber key, no answer. There is no
18
- * Vue/Svelte/Angular/Solid path here — not a gap in this module, a scope
19
- * boundary, and the refusal says "not React" rather than "unknown".
20
- * - **A React 19 bundle with no source map.** The owner stack still names a
21
- * real position, in compiled output. Reported with
22
- * `authoredSource: false` and a `degraded` capability, never dressed up
23
- * as the file a developer wrote.
24
- * - **An anonymous component.** Refused: there is no symbol for
25
- * `resolveSymbolNode` to look up and no name for a reader to act on.
26
- *
27
- * ## Owner versus renderer
28
- *
29
- * `component` is read from `_debugOwner` — the component whose render
30
- * *created* this element — because that is the component the source
31
- * location belongs to. `renderedBy` is the nearest component in the fiber
32
- * `return` chain, which is where the element ended up. They differ whenever
33
- * an element is created in one component and passed to another as
34
- * `children`; the fixture app renders that case deliberately. Both are
35
- * reported and neither is reconciled into the other.
16
+ * `component` is read from `_debugOwner` — whose render *created* the
17
+ * element, matching the source location. `renderedBy` is the nearest
18
+ * component in the `return` chain — where it ended up. They differ when an
19
+ * element is created in one component and passed to another as `children`
20
+ * (the fixture app renders this on purpose); both are reported, neither
21
+ * reconciled.
36
22
  */
37
23
  import { locationNamesNothing } from "@descryy/runtime-contracts";
38
24
  import { capabilityFor, } from "./element-identity.js";
@@ -77,19 +63,18 @@ export async function groundFromProbe(probe, selector, resolveOwnerStack) {
77
63
  observedTypeName: null,
78
64
  reason: `neither the element matched by "${selector}" nor any of its ancestors carries a React fiber key ` +
79
65
  `(${probe.ownKeys.length === 0 ? "the element has no own enumerable keys at all" : `own keys: ${probe.ownKeys.join(", ")}`}). ` +
80
- "This page's DOM was not produced by React, or not by a React that tags host nodes. Identity grounding is " +
81
- "React-only; there is no Vue, Svelte, Angular or Solid equivalent in this package, which is a scope " +
82
- "boundary and not a temporary gap.",
66
+ "This page's DOM was not produced by React, or not by a React that tags host nodes. This resolver " +
67
+ "(`groundFromProbe`) is React-only — `groundFromVueProbe` (`vue-identity-grounding.ts`) is this " +
68
+ "package's Vue reader, on the same `ElementIdentity` vocabulary; Svelte, Angular and Solid remain a scope " +
69
+ "boundary, not a temporary gap (RG-15: one framework extension at a time).",
83
70
  capability: capabilityFor("unavailable", "no React fiber on the element or any ancestor — not a React tree."),
84
71
  };
85
72
  }
86
73
  const { fiberDistance } = probe;
87
74
  if (probe.debugFields.length === 0) {
88
- // The queried node is usually a *host* fiber whose `type` is the tag
89
- // name string ("button"), so the minified identifier a reader wants to
90
- // see lives on the nearest component above it, not here. Both are
91
- // consulted, in that order, and the result is still not a component
92
- // name -- see `ElementIdentityRefused.observedTypeName`.
75
+ // The queried node is usually a host fiber whose `type` is a tag name
76
+ // string, so the minified identifier lives on the nearest component
77
+ // above it. Consulted in that order — still not a component name.
93
78
  const observedTypeName = probe.observedTypeName ?? probe.returnChainComponent?.name ?? probe.owner?.name ?? null;
94
79
  return {
95
80
  outcome: "refused",
@@ -132,7 +117,7 @@ export async function groundFromProbe(probe, selector, resolveOwnerStack) {
132
117
  };
133
118
  }
134
119
  const renderedBy = returnChain;
135
- // ---- React 18 and earlier: the authored location is on the fiber. ----
120
+ // React 18 and earlier: the authored location is on the fiber.
136
121
  const debugSource = probe.debugSource;
137
122
  if (debugSource !== null && debugSource.fileName !== null) {
138
123
  const sourceLocation = {
@@ -140,10 +125,8 @@ export async function groundFromProbe(probe, selector, resolveOwnerStack) {
140
125
  line: debugSource.lineNumber,
141
126
  column: debugSource.columnNumber,
142
127
  functionName: component.name,
143
- // The application's own recorded creation site, not a translation
144
- // through a side artifact -- the same class `node-source-location-
145
- // resolver.ts` gives a frame with no `sourceMappingURL`: nothing was
146
- // lost, this IS the accurate answer.
128
+ // The app's own recorded creation site, not a translation through a
129
+ // side artifact — nothing was lost, this IS the accurate answer.
147
130
  reliability: "self-contained",
148
131
  resolvedVia: null,
149
132
  };
@@ -163,7 +146,7 @@ export async function groundFromProbe(probe, selector, resolveOwnerStack) {
163
146
  : capabilityFor("available"),
164
147
  };
165
148
  }
166
- // ---- React 19: an owner stack in compiled coordinates. ----
149
+ // React 19: an owner stack in compiled coordinates.
167
150
  const stackText = probe.debugStackText;
168
151
  if (stackText !== null) {
169
152
  if (resolveOwnerStack === null) {
@@ -1 +1 @@
1
- {"version":3,"file":"identity-grounding.js","sourceRoot":"","sources":["../src/identity-grounding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAE,oBAAoB,EAAwC,MAAM,4BAA4B,CAAC;AAExG,OAAO,EACL,aAAa,GAId,MAAM,uBAAuB,CAAC;AAE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QAC7G,oFAAoF,CACvF,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAAC,QAAwB;IACpD,IAAI,QAAQ,CAAC,WAAW,KAAK,qBAAqB,EAAE,CAAC;QACnD,OAAO,aAAa,CAClB,UAAU,EACV,mCAAmC,QAAQ,CAAC,WAAW,IAAI,cAAc,6BAA6B;YACpG,yGAAyG;YACzG,wBAAwB,CAC3B,CAAC;IACJ,CAAC;IACD,IAAI,QAAQ,CAAC,WAAW,KAAK,wBAAwB,EAAE,CAAC;QACtD,OAAO,aAAa,CAClB,UAAU,EACV,sGAAsG;YACpG,wBAAwB,QAAQ,CAAC,WAAW,6DAA6D;YACzG,oGAAoG;YACpG,wDAAwD,CAC3D,CAAC;IACJ,CAAC;IACD,IAAI,QAAQ,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;QAC3B,OAAO,aAAa,CAClB,UAAU,EACV,mGAAmG;YACjG,aAAa,CAChB,CAAC;IACJ,CAAC;IACD,OAAO,aAAa,CAAC,WAAW,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,aAAa,CACpB,QAAgB,EAChB,aAAqB,EACrB,SAA4B,EAC5B,eAAgC,EAChC,UAAoC,EACpC,MAAc;IAEd,OAAO;QACL,OAAO,EAAE,gBAAgB;QACzB,QAAQ;QACR,aAAa;QACb,SAAS;QACT,eAAe;QACf,UAAU;QACV,MAAM;QACN,UAAU,EAAE,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC;KAC9C,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,11 +1,7 @@
1
1
  /**
2
2
  * Identity grounding: an on-screen DOM element to the React component that
3
- * produced it, and to that component's authored file and line.
4
- *
5
- * Start at `createIdentityGrounder` (`identity-grounder.ts`). Read
6
- * `element-identity.ts` for what an answer is allowed to say, and
7
- * `owner-stack.ts` for the measured difference between React 18's and React
8
- * 19's fiber internals — they are not two implementations of one mechanism.
3
+ * produced it, and to its authored file and line. Start at
4
+ * `createIdentityGrounder` (`identity-grounder.ts`).
9
5
  */
10
6
  export type { IdentityRefusal, GroundingMechanism, ComponentKind, ComponentNameSource, ComponentSource, ResolvedComponent, ElementIdentity, ElementIdentityGrounded, ElementIdentityComponentOnly, ElementIdentityRefused, } from "./element-identity.ts";
11
7
  export { IDENTITY_REFUSALS, GROUNDING_MECHANISMS, COMPONENT_KINDS, COMPONENT_NAME_SOURCES, COMPONENT_SOURCES, capabilityFor, } from "./element-identity.ts";
@@ -17,6 +13,11 @@ export type { OwnerStackResolver } from "./identity-grounding.ts";
17
13
  export { groundFromProbe } from "./identity-grounding.ts";
18
14
  export type { IdentityGrounder, IdentityGrounderOptions } from "./identity-grounder.ts";
19
15
  export { createIdentityGrounder } from "./identity-grounder.ts";
16
+ export type { RawVueProbe, RawVueComponentDescriptor, VueIdentityGroundingProbe } from "./vue-probe.ts";
17
+ export { createVueIdentityGroundingProbe, VUE_IDENTITY_GROUNDING_BINDING } from "./vue-probe.ts";
18
+ export { groundFromVueProbe } from "./vue-identity-grounding.ts";
19
+ export type { VueIdentityGrounder } from "./vue-identity-grounder.ts";
20
+ export { createVueIdentityGrounder } from "./vue-identity-grounder.ts";
20
21
  export type { GraphSymbolLocation } from "./graph-join.ts";
21
22
  export { symbolLocationForGraph } from "./graph-join.ts";
22
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,aAAa,GACd,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EAAE,aAAa,E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D,OAAO,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAEnF,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,YAAY,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,YAAY,EAAE,WAAW,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AACxG,OAAO,EAAE,+BAA+B,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAEjG,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -1,16 +1,15 @@
1
1
  /**
2
2
  * Identity grounding: an on-screen DOM element to the React component that
3
- * produced it, and to that component's authored file and line.
4
- *
5
- * Start at `createIdentityGrounder` (`identity-grounder.ts`). Read
6
- * `element-identity.ts` for what an answer is allowed to say, and
7
- * `owner-stack.ts` for the measured difference between React 18's and React
8
- * 19's fiber internals — they are not two implementations of one mechanism.
3
+ * produced it, and to its authored file and line. Start at
4
+ * `createIdentityGrounder` (`identity-grounder.ts`).
9
5
  */
10
6
  export { IDENTITY_REFUSALS, GROUNDING_MECHANISMS, COMPONENT_KINDS, COMPONENT_NAME_SOURCES, COMPONENT_SOURCES, capabilityFor, } from "./element-identity.js";
11
7
  export { createIdentityGroundingProbe, IDENTITY_GROUNDING_BINDING, FIBER_KEY_PREFIXES } from "./fiber-probe.js";
12
8
  export { selectOwnerFrame, REACT_ELEMENT_CREATION_FRAMES } from "./owner-stack.js";
13
9
  export { groundFromProbe } from "./identity-grounding.js";
14
10
  export { createIdentityGrounder } from "./identity-grounder.js";
11
+ export { createVueIdentityGroundingProbe, VUE_IDENTITY_GROUNDING_BINDING } from "./vue-probe.js";
12
+ export { groundFromVueProbe } from "./vue-identity-grounding.js";
13
+ export { createVueIdentityGrounder } from "./vue-identity-grounder.js";
15
14
  export { symbolLocationForGraph } from "./graph-join.js";
16
15
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAcH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,aAAa,GACd,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGhH,OAAO,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAGnF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAGhE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAcH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,aAAa,GACd,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGhH,OAAO,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAGnF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAGhE,OAAO,EAAE,+BAA+B,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAEjG,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAGjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAGvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,12 +1,9 @@
1
1
  /**
2
- * React 19's replacement for `_debugSource`, and the one rule this package
3
- * needs in order to read it.
2
+ * React 19's replacement for `_debugSource`, and the rule this package
3
+ * needs to read it.
4
4
  *
5
- * ## What actually changed between the majors
6
- *
7
- * Measured directly, in a real Chromium, against React 18.3.1 and 19.2.8
8
- * development bundles of the same authored source
9
- * (`fixture-apps/react-identity`):
5
+ * Measured in a real Chromium, React 18.3.1 vs 19.2.8 dev bundles of the
6
+ * same source (`fixture-apps/react-identity`):
10
7
  *
11
8
  * | fiber field | React 18.3.1 dev | React 19.2.8 dev | either, production |
12
9
  * | --- | --- | --- | --- |
@@ -15,64 +12,41 @@
15
12
  * | `_debugOwner` | present | present | absent |
16
13
  * | `type.name` | authored | authored | minified |
17
14
  *
18
- * So React 19 did not move the source location, it **deleted** it and left
19
- * a captured stack in its place. The stack's frames point into *compiled*
20
- * output — the bundle the browser actually ran — which is why this path
21
- * costs a source-map resolution that React 18's does not, and why the two
22
- * mechanisms report different `SourceLocation.reliability` values
23
- * (`self-contained` versus `side-artifact-resolved`). That difference is
24
- * not cosmetic: one is the application telling us where it came from, the
25
- * other is us translating through a file that can be missing or stale.
26
- *
27
- * ## The rule: drop React's own element-creation frame, and only that
28
- *
29
- * The captured stack's innermost frame is React's own JSX entry point:
30
- *
31
- * ```text
32
- * Error: react-stack-top-frame
33
- * at exports.jsxDEV (http://…/dev.js:21690:32)
34
- * at PayButton (http://…/dev.js:21714:62) <- the site we want
35
- * at Object.react_stack_bottom_frame (…)
36
- * ```
37
- *
38
- * The second frame is the JSX call site inside the owning component, which
39
- * is exactly the fact React 18's `_debugSource` carries. Verified against
40
- * the fixture: React 18 reports `src/app.jsx:20`, and mapping React 19's
41
- * second frame through the bundle's source map lands on `src/app.jsx:20`
42
- * as well. `react-fixtures.test.ts` asserts that equality rather than
43
- * asserting each major separately, because two independently-written
44
- * expectations can both be wrong in the same direction.
45
- *
46
- * ## Why not `stripInitiatorWrapperFrame`'s positional rule
47
- *
48
- * `@descryy/runtime-browser`'s initiator capture drops its first frame *by
49
- * position*, and argues correctly that its own wrapper is deterministically
50
- * innermost because it captured the stack itself. Nothing here captured
51
- * this stack — React did — so the same reasoning is not available. Worse,
52
- * `createV8StackTraceParser` **omits** frames it cannot parse a
53
- * `line:column` from, so "the first frame of the parsed trace" is not
54
- * reliably "the first frame of the raw text" either.
55
- *
56
- * The rule used instead is by name, against a closed list of React's own
57
- * element-creation entry points, and it **refuses** when the innermost
58
- * frame is not one of them. A refusal here costs a source location; a
59
- * positional guess that is off by one costs a confident wrong file and
60
- * line, attributed to a component that did not create the element. Rule 2.
15
+ * React 19 didn't move the source location, it **deleted** it and left a
16
+ * captured stack whose frames point into *compiled* output — costing a
17
+ * source-map resolution React 18 doesn't need, and reporting a different
18
+ * `SourceLocation.reliability` (`self-contained` vs `side-artifact-resolved`):
19
+ * one is the app telling us where it came from, the other is us
20
+ * translating through a file that can be missing or stale.
21
+ *
22
+ * The rule: drop React's own element-creation frame (the stack's innermost
23
+ * frame, e.g. `exports.jsxDEV`), and only that — the second frame is the
24
+ * JSX call site inside the owning component, the same fact React 18's
25
+ * `_debugSource` carries. Verified against the fixture: both majors land on
26
+ * `src/app.jsx:20` (`react-fixtures.test.ts` asserts the equality, not each
27
+ * major separately, since two independent expectations can be wrong the
28
+ * same way).
29
+ *
30
+ * Not `stripInitiatorWrapperFrame`'s positional rule: nothing here captured
31
+ * this stack, React did, so "deterministically innermost" doesn't apply —
32
+ * and `createV8StackTraceParser` omits unparseable frames, so "first frame
33
+ * of the parsed trace" isn't reliably "first frame of the raw text" either.
34
+ * Instead: match by name against a closed list of React's element-creation
35
+ * entry points, and **refuse** when the innermost frame isn't one of them.
36
+ * A refusal costs a source location; an off-by-one positional guess costs a
37
+ * confident wrong file/line attributed to the wrong component (rule 2).
61
38
  */
62
39
  import type { StackTrace } from "@descryy/runtime-contracts";
63
40
  /**
64
41
  * React's own element-creation entry points, matched against the **last
65
- * dotted segment** of a frame's function name so that V8's `exports.jsxDEV`
66
- * and a bare `jsxDEV` are the same frame.
67
- *
68
- * `jsxDEV` / `jsxDEVImpl` are the automatic runtime's development entry;
69
- * `jsx` / `jsxs` its production ones (listed for completeness — a
70
- * production build has no `_debugStack` to reach this code with);
71
- * `createElement` / `createElementWithValidation` the classic runtime's.
72
- *
73
- * Deliberately a closed list rather than a "does this frame live inside
74
- * react-dom" heuristic: the latter needs a resolved path for the frame,
75
- * which is exactly the thing that may not resolve.
42
+ * dotted segment** of a frame's function name so `exports.jsxDEV` and bare
43
+ * `jsxDEV` are the same frame. `jsxDEV`/`jsxDEVImpl` are the automatic
44
+ * runtime's dev entry; `jsx`/`jsxs` its production ones (listed for
45
+ * completeness — production has no `_debugStack` to reach this code with);
46
+ * `createElement`/`createElementWithValidation` the classic runtime's.
47
+ *
48
+ * A closed list, not a "lives inside react-dom" heuristic — that needs a
49
+ * resolved path, exactly the thing that may not resolve.
76
50
  */
77
51
  export declare const REACT_ELEMENT_CREATION_FRAMES: readonly ["jsxDEV", "jsxDEVImpl", "jsxWithValidation", "jsx", "jsxs", "createElement", "createElementWithValidation"];
78
52
  export type OwnerFrameSelection = {
@@ -82,9 +56,6 @@ export type OwnerFrameSelection = {
82
56
  readonly ok: false;
83
57
  readonly reason: string;
84
58
  };
85
- /**
86
- * Index of the frame that is the JSX call site inside the owning component,
87
- * or a refusal naming why the stack could not be read that way.
88
- */
59
+ /** Index of the frame that is the JSX call site inside the owning component, or a refusal naming why the stack couldn't be read that way. */
89
60
  export declare function selectOwnerFrame(stack: StackTrace): OwnerFrameSelection;
90
61
  //# sourceMappingURL=owner-stack.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"owner-stack.d.ts","sourceRoot":"","sources":["../src/owner-stack.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,6BAA6B,uHAQhC,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC3B;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC7C;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAOpD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,mBAAmB,CAsCvE"}
1
+ {"version":3,"file":"owner-stack.d.ts","sourceRoot":"","sources":["../src/owner-stack.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,6BAA6B,uHAQhC,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC3B;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC7C;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAOpD,6IAA6I;AAC7I,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,mBAAmB,CAsCvE"}
@@ -1,12 +1,9 @@
1
1
  /**
2
- * React 19's replacement for `_debugSource`, and the one rule this package
3
- * needs in order to read it.
2
+ * React 19's replacement for `_debugSource`, and the rule this package
3
+ * needs to read it.
4
4
  *
5
- * ## What actually changed between the majors
6
- *
7
- * Measured directly, in a real Chromium, against React 18.3.1 and 19.2.8
8
- * development bundles of the same authored source
9
- * (`fixture-apps/react-identity`):
5
+ * Measured in a real Chromium, React 18.3.1 vs 19.2.8 dev bundles of the
6
+ * same source (`fixture-apps/react-identity`):
10
7
  *
11
8
  * | fiber field | React 18.3.1 dev | React 19.2.8 dev | either, production |
12
9
  * | --- | --- | --- | --- |
@@ -15,63 +12,40 @@
15
12
  * | `_debugOwner` | present | present | absent |
16
13
  * | `type.name` | authored | authored | minified |
17
14
  *
18
- * So React 19 did not move the source location, it **deleted** it and left
19
- * a captured stack in its place. The stack's frames point into *compiled*
20
- * output — the bundle the browser actually ran — which is why this path
21
- * costs a source-map resolution that React 18's does not, and why the two
22
- * mechanisms report different `SourceLocation.reliability` values
23
- * (`self-contained` versus `side-artifact-resolved`). That difference is
24
- * not cosmetic: one is the application telling us where it came from, the
25
- * other is us translating through a file that can be missing or stale.
26
- *
27
- * ## The rule: drop React's own element-creation frame, and only that
28
- *
29
- * The captured stack's innermost frame is React's own JSX entry point:
30
- *
31
- * ```text
32
- * Error: react-stack-top-frame
33
- * at exports.jsxDEV (http://…/dev.js:21690:32)
34
- * at PayButton (http://…/dev.js:21714:62) <- the site we want
35
- * at Object.react_stack_bottom_frame (…)
36
- * ```
37
- *
38
- * The second frame is the JSX call site inside the owning component, which
39
- * is exactly the fact React 18's `_debugSource` carries. Verified against
40
- * the fixture: React 18 reports `src/app.jsx:20`, and mapping React 19's
41
- * second frame through the bundle's source map lands on `src/app.jsx:20`
42
- * as well. `react-fixtures.test.ts` asserts that equality rather than
43
- * asserting each major separately, because two independently-written
44
- * expectations can both be wrong in the same direction.
15
+ * React 19 didn't move the source location, it **deleted** it and left a
16
+ * captured stack whose frames point into *compiled* output — costing a
17
+ * source-map resolution React 18 doesn't need, and reporting a different
18
+ * `SourceLocation.reliability` (`self-contained` vs `side-artifact-resolved`):
19
+ * one is the app telling us where it came from, the other is us
20
+ * translating through a file that can be missing or stale.
45
21
  *
46
- * ## Why not `stripInitiatorWrapperFrame`'s positional rule
22
+ * The rule: drop React's own element-creation frame (the stack's innermost
23
+ * frame, e.g. `exports.jsxDEV`), and only that — the second frame is the
24
+ * JSX call site inside the owning component, the same fact React 18's
25
+ * `_debugSource` carries. Verified against the fixture: both majors land on
26
+ * `src/app.jsx:20` (`react-fixtures.test.ts` asserts the equality, not each
27
+ * major separately, since two independent expectations can be wrong the
28
+ * same way).
47
29
  *
48
- * `@descryy/runtime-browser`'s initiator capture drops its first frame *by
49
- * position*, and argues correctly that its own wrapper is deterministically
50
- * innermost because it captured the stack itself. Nothing here captured
51
- * this stack — React did — so the same reasoning is not available. Worse,
52
- * `createV8StackTraceParser` **omits** frames it cannot parse a
53
- * `line:column` from, so "the first frame of the parsed trace" is not
54
- * reliably "the first frame of the raw text" either.
55
- *
56
- * The rule used instead is by name, against a closed list of React's own
57
- * element-creation entry points, and it **refuses** when the innermost
58
- * frame is not one of them. A refusal here costs a source location; a
59
- * positional guess that is off by one costs a confident wrong file and
60
- * line, attributed to a component that did not create the element. Rule 2.
30
+ * Not `stripInitiatorWrapperFrame`'s positional rule: nothing here captured
31
+ * this stack, React did, so "deterministically innermost" doesn't apply —
32
+ * and `createV8StackTraceParser` omits unparseable frames, so "first frame
33
+ * of the parsed trace" isn't reliably "first frame of the raw text" either.
34
+ * Instead: match by name against a closed list of React's element-creation
35
+ * entry points, and **refuse** when the innermost frame isn't one of them.
36
+ * A refusal costs a source location; an off-by-one positional guess costs a
37
+ * confident wrong file/line attributed to the wrong component (rule 2).
61
38
  */
62
39
  /**
63
40
  * React's own element-creation entry points, matched against the **last
64
- * dotted segment** of a frame's function name so that V8's `exports.jsxDEV`
65
- * and a bare `jsxDEV` are the same frame.
66
- *
67
- * `jsxDEV` / `jsxDEVImpl` are the automatic runtime's development entry;
68
- * `jsx` / `jsxs` its production ones (listed for completeness — a
69
- * production build has no `_debugStack` to reach this code with);
70
- * `createElement` / `createElementWithValidation` the classic runtime's.
41
+ * dotted segment** of a frame's function name so `exports.jsxDEV` and bare
42
+ * `jsxDEV` are the same frame. `jsxDEV`/`jsxDEVImpl` are the automatic
43
+ * runtime's dev entry; `jsx`/`jsxs` its production ones (listed for
44
+ * completeness — production has no `_debugStack` to reach this code with);
45
+ * `createElement`/`createElementWithValidation` the classic runtime's.
71
46
  *
72
- * Deliberately a closed list rather than a "does this frame live inside
73
- * react-dom" heuristic: the latter needs a resolved path for the frame,
74
- * which is exactly the thing that may not resolve.
47
+ * A closed list, not a "lives inside react-dom" heuristic — that needs a
48
+ * resolved path, exactly the thing that may not resolve.
75
49
  */
76
50
  export const REACT_ELEMENT_CREATION_FRAMES = [
77
51
  "jsxDEV",
@@ -86,10 +60,7 @@ function lastSegment(functionName) {
86
60
  const parts = functionName.split(".");
87
61
  return parts[parts.length - 1] ?? functionName;
88
62
  }
89
- /**
90
- * Index of the frame that is the JSX call site inside the owning component,
91
- * or a refusal naming why the stack could not be read that way.
92
- */
63
+ /** Index of the frame that is the JSX call site inside the owning component, or a refusal naming why the stack couldn't be read that way. */
93
64
  export function selectOwnerFrame(stack) {
94
65
  const first = stack.frames[0];
95
66
  if (first === undefined) {
@@ -1 +1 @@
1
- {"version":3,"file":"owner-stack.js","sourceRoot":"","sources":["../src/owner-stack.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAIH;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,QAAQ;IACR,YAAY;IACZ,mBAAmB;IACnB,KAAK;IACL,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,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5B,OAAO;YACL,EAAE,EAAE,KAAK;YACT,MAAM,EACJ,2GAA2G;gBAC3G,+FAA+F;SAClG,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAChC,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * The composed, page-driving surface for Vue — install once, then ask about
3
+ * a selector. Mirrors `identity-grounder.ts`'s shape exactly (`install`/
4
+ * `ground`) so a caller consuming both frameworks can hold one interface
5
+ * and switch grounders per page, without a framework-specific branch
6
+ * anywhere above this module.
7
+ *
8
+ * Nothing to compose here beyond the probe and the decision layer — Vue's
9
+ * answer needs no source-map resolver, no stack parser, no `resolveSourceRoot`
10
+ * (`vue-identity-grounding.ts`'s own header says why: file-level only, by
11
+ * construction). That is the whole reason this file is a fifth of
12
+ * `identity-grounder.ts`'s size rather than a second copy of it.
13
+ */
14
+ import type { Page } from "playwright-core";
15
+ import type { ElementIdentity } from "./element-identity.ts";
16
+ export interface VueIdentityGrounder {
17
+ /** Installs the page-side reader into every document this page loads from now on. Call before navigating — a page navigated first reports `probe-not-installed`. */
18
+ install(page: Page): Promise<void>;
19
+ /** Resolves one on-screen element to the component that produced it, and to that component's authored file where it can be established. Never throws for a routine unavailability; refuses by name instead. */
20
+ ground(page: Page, selector: string): Promise<ElementIdentity>;
21
+ }
22
+ export declare function createVueIdentityGrounder(): VueIdentityGrounder;
23
+ //# sourceMappingURL=vue-identity-grounder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vue-identity-grounder.d.ts","sourceRoot":"","sources":["../src/vue-identity-grounder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAI7D,MAAM,WAAW,mBAAmB;IAClC,oKAAoK;IACpK,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,+MAA+M;IAC/M,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CAChE;AAED,wBAAgB,yBAAyB,IAAI,mBAAmB,CAW/D"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * The composed, page-driving surface for Vue — install once, then ask about
3
+ * a selector. Mirrors `identity-grounder.ts`'s shape exactly (`install`/
4
+ * `ground`) so a caller consuming both frameworks can hold one interface
5
+ * and switch grounders per page, without a framework-specific branch
6
+ * anywhere above this module.
7
+ *
8
+ * Nothing to compose here beyond the probe and the decision layer — Vue's
9
+ * answer needs no source-map resolver, no stack parser, no `resolveSourceRoot`
10
+ * (`vue-identity-grounding.ts`'s own header says why: file-level only, by
11
+ * construction). That is the whole reason this file is a fifth of
12
+ * `identity-grounder.ts`'s size rather than a second copy of it.
13
+ */
14
+ import { createVueIdentityGroundingProbe } from "./vue-probe.js";
15
+ import { groundFromVueProbe } from "./vue-identity-grounding.js";
16
+ export function createVueIdentityGrounder() {
17
+ const probe = createVueIdentityGroundingProbe();
18
+ return {
19
+ install(page) {
20
+ return probe.install(page);
21
+ },
22
+ async ground(page, selector) {
23
+ const raw = await probe.probe(page, selector);
24
+ return groundFromVueProbe(raw, selector);
25
+ },
26
+ };
27
+ }
28
+ //# sourceMappingURL=vue-identity-grounder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vue-identity-grounder.js","sourceRoot":"","sources":["../src/vue-identity-grounder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AASjE,MAAM,UAAU,yBAAyB;IACvC,MAAM,KAAK,GAAG,+BAA+B,EAAE,CAAC;IAChD,OAAO;QACL,OAAO,CAAC,IAAU;YAChB,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;QACD,KAAK,CAAC,MAAM,CAAC,IAAU,EAAE,QAAgB;YACvC,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;YAC9C,OAAO,kBAAkB,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QAC3C,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The decision layer for Vue: raw probe facts in, one `ElementIdentity` out
3
+ * — same contract `identity-grounding.ts`'s `groundFromProbe` holds for
4
+ * React, on the same output vocabulary, so a caller that already branches
5
+ * on `ElementIdentity.outcome` needs no second code path to consume this.
6
+ *
7
+ * Simpler than the React decision layer by construction, not by omission:
8
+ * Vue's runtime gives this package one fact per element (`type.__file`,
9
+ * file-level, no line) rather than React 18's file+line or React 19's
10
+ * compiled-stack-needing-resolution — there is no owner-stack equivalent to
11
+ * inject a resolver for, so this function takes no second argument.
12
+ */
13
+ import { type ElementIdentity } from "./element-identity.ts";
14
+ import type { RawVueProbe } from "./vue-probe.ts";
15
+ export declare function groundFromVueProbe(probe: RawVueProbe, selector: string): ElementIdentity;
16
+ //# sourceMappingURL=vue-identity-grounding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vue-identity-grounding.d.ts","sourceRoot":"","sources":["../src/vue-identity-grounding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAiB,KAAK,eAAe,EAA0B,MAAM,uBAAuB,CAAC;AACpG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,GAAG,eAAe,CAkHxF"}