API reference

DumpFormatter Object

Formatters for IntrospectionRegistry snapshots. Used by the dumpsys adapter (Phase 2) and any AI-agent / test consumers that want a stable text or JSON representation.

Signature

object DumpFormatter

Methods

formatJson ( snapshot , metadata )
JSON object mapping path -> { value, type, visibility, description, unit }. Stable shape for programmatic consumers (test harnesses, AI agents).
Signature
fun formatJson(snapshot: Map<String, Value>, metadata: List<NodeMetadata>): String
Parameters
snapshot: Map
metadata: List
Returns
String
formatListing ( metadata )
One path per line, sorted. Useful for --list mode (paths only, no values).
Signature
fun formatListing(metadata: List<NodeMetadata>): String
Parameters
metadata: List
Returns
String
formatText ( snapshot , metadata )
One node per line, format: path = value [unit] # description.
Greppable; intended for human and grep/awk-style consumption from dumpsys output.
Signature
fun formatText(snapshot: Map<String, Value>, metadata: List<NodeMetadata>): String
Parameters
snapshot: Map
metadata: List
Returns
String