You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`rdt session doctor --session <name>` reports runtime readiness and trust boundaries before a deeper investigation.
145
+
-`rdt doctor --session <name>` is a first-class alias for the same command.
142
146
- It also reports `enginePreference`, `selectedEngine`, `recommendedEngine`, `availableEngines`, and DevTools capability hints so agents know whether they are on a custom fallback or a DevTools-aligned path.
143
147
-`sourceCapability` is reported separately from engine selection.
144
148
-`_debugSource` is treated as an optional legacy source-mapping capability, not an engine-selection gate.
- These commands execute through the same Playwright session that owns the current `rdt` browser page.
162
166
- They target the first matching selector only and return structured action metadata plus trust-boundary fields.
167
+
-`interact click` defaults to `--delivery auto`.
168
+
- In `auto`, profiler-active clicks fall back to DOM dispatch and report `requestedDelivery`, `effectiveDelivery`, `profilerActive`, and `fallbackApplied`.
169
+
- Use `--delivery playwright` to force Playwright pointer input, or `--delivery dom` to force DOM dispatch.
163
170
-`click`, `type`, and `press` confirm that the action was dispatched. They do not guarantee that the page or React tree has fully settled afterward.
164
171
- When profiling or triggering large rerenders, follow `interact` with an explicit verification step such as `interact wait`, `tree get`, `node inspect`, or a profiler read command.
@@ -269,7 +276,11 @@ Use `node pick` when the agent knows the visible element but not the component n
269
276
-`hooks` is a simplified serialized view of hook state from the inspected fiber.
270
277
-`context` is a serialized view of current context dependencies for the inspected node.
271
278
-`source` projects `_debugSource` when available; `null` is expected in many dev builds.
279
+
-`source reveal --structured` returns `status`, `available`, `mode`, `reason`, and `source` so automation can distinguish unavailable source data from a successful source payload.
280
+
-`source reveal` without `--structured` preserves the raw legacy behavior and may return literal `null`.
272
281
-`dom` is the first host element summary used for CLI highlight and DOM-oriented inspection.
- When `node search --structured` returns `matchCount: 0`, `runtimeWarnings` explains that the component may be absent from the current snapshot rather than absent from the codebase.
273
284
- Profiler summary fields are commit-oriented CLI metrics, not the full DevTools profiler session schema.
274
285
-`profiler summary` and exported summaries explicitly report:
Copy file name to clipboardExpand all lines: docs/devtools-concept-mapping.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,16 +34,18 @@ It is a maintenance aid for agents and contributors. It is not a commitment to r
34
34
|`__REACT_DEVTOOLS_GLOBAL_HOOK__` shim |`src/runtime-script.js`| DevTools global hook |`rdt` uses the hook for renderer/root discovery, but does not speak the official frontend protocol. |
|`collectTree()` snapshot |`src/runtime-script.js`| Inspected tree payload |`rdt` serializes a tree for CLI use instead of streaming updates to a frontend. |
37
+
|`tree stats`|`src/runtime-script.js` + `src/cli.js`| No direct public equivalent | Snapshot summary view for large trees; returns metadata without the full node dump. |
37
38
|`snapshotId`|`src/runtime-script.js`| No direct public equivalent | Intentional divergence. This is a CLI-specific stability layer for follow-up commands. |
38
39
|`node id` like `n68`|`src/runtime-script.js`| Element/fiber identity in inspector payloads | Snapshot-scoped only. Not intended to be globally stable across commits. |
39
40
|`node inspect` payload |`src/runtime-script.js`| Inspected element details | Closest conceptual match to DevTools inspected element data. |
40
41
|`ownerStack`|`src/runtime-script.js`| Owner chain / component stack | Serialized as lightweight `{id, displayName}` records. |
41
42
|`hooks`|`src/runtime-script.js`| Hook inspection data | Derived from `memoizedState`; intentionally simpler than full DevTools hook typing. |
42
43
|`context`|`src/runtime-script.js`| Context dependencies / inspected context values | Derived from fiber dependencies, serialized for CLI use. |
43
-
|`source reveal`|`src/server.js` + `src/runtime-script.js`| View source / inspect source location |Depends on `_debugSource`; may legitimately return `null`. |
|`profiler` summary/export |`src/runtime-script.js` + `src/cli.js`| Profiler commit data |`rdt` keeps commit-oriented summaries and NDJSON export rather than full DevTools frontend state. |
45
46
|`profiler compare`|`src/cli.js`| No direct public equivalent | CLI-side comparison of stored profiler artifacts or exported NDJSON files. |
46
47
| `interact click|type|press|wait` |`src/server.js`| No direct public equivalent | Playwright-backed deterministic interaction helpers for agent workflows. |
48
+
|`interact click --delivery`|`src/server.js`| No direct public equivalent | CLI-specific interaction contract for choosing Playwright pointer input vs DOM dispatch. |
47
49
|`session doctor`|`src/server.js` + `src/runtime-script.js`| No direct public equivalent | CLI-specific preflight that reports trust boundaries, runtime readiness, Playwright resolution diagnostics, and helper import targets. |
48
50
49
51
## Intentional Divergences
@@ -72,6 +74,8 @@ It is a maintenance aid for agents and contributors. It is not a commitment to r
72
74
-`hooks`: serialized hook state view, intentionally simplified.
73
75
-`context`: serialized current context dependency values.
74
76
-`source`: `_debugSource` projection when available; `null` is expected in many builds.
-`mode`: source-capability mode, not engine mode. Current values describe whether `_debugSource` is available, removed by newer React runtimes, or stripped by the build.
75
79
-`dom`: first host element descendant summary used for CLI-oriented highlight/reveal behavior.
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "react-devtool-cli",
3
-
"version": "0.1.35-rc.1",
3
+
"version": "0.1.35-rc.2",
4
4
"description": "Agent-first CLI for React component tree inspection, snapshot-aware node debugging, and profiler analysis through a Playwright-managed browser session.",
0 commit comments