Skip to content

Devtools

Defined in: packages/devtools/src/types.ts:69

Framework-independent collector and capture interface.

readonly capture: DiagnosticCapture

Defined in: packages/devtools/src/types.ts:73

Explicit bounded content capture.


readonly options: DevtoolsOptions

Defined in: packages/devtools/src/types.ts:71

Configuration used by the shared panel.

attach(orchestrator): () => void

Defined in: packages/devtools/src/types.ts:83

Attaches before connect; cleanup retains bounded history after detachment.

Orchestrator

() => void


clear(): void

Defined in: packages/devtools/src/types.ts:79

Clears capture, imported evidence, activity, and detached lifetimes. Active clients remain attached.

void


closeImport(): void

Defined in: packages/devtools/src/types.ts:93

Removes imported evidence from the panel.

void


dispose(): void

Defined in: packages/devtools/src/types.ts:99

Releases subscriptions and evidence.

void


exportCapture(): string

Defined in: packages/devtools/src/types.ts:89

Exports a versioned JSON capture without executing any work.

string


getSnapshot(): DevtoolsSnapshot

Defined in: packages/devtools/src/types.ts:75

Returns a stable snapshot until the store changes.

DevtoolsSnapshot


importCapture(json): void

Defined in: packages/devtools/src/types.ts:91

Validates and opens a bounded capture for read-only inspection. Throws on invalid files.

string

void


inspect(clientId): unknown

Defined in: packages/devtools/src/types.ts:77

Reads full live definitions only on explicit inspection; retained clients expose structural evidence.

string

unknown


optional setHighlightedInstance(clientId?, instanceId?): void

Defined in: packages/devtools/src/types.ts:97

Highlights a rendered Instance on its owning active client without changing layout. Omit either identity to clear selection.

string

string

void


setOverlays(enabled): void

Defined in: packages/devtools/src/types.ts:95

Enables visual Chart outlines without changing its layout.

boolean

void


startCapture(clientId?): void

Defined in: packages/devtools/src/types.ts:85

Starts content capture for all Providers, or one active lifetime. A stale lifetime throws without clearing evidence.

string

void


stopCapture(): void

Defined in: packages/devtools/src/types.ts:87

Stops content capture and unsubscribes server content forwarding.

void


subscribe(listener): () => void

Defined in: packages/devtools/src/types.ts:81

Observes state until unsubscribed.

() => void

() => void