Class: RegistryIntrospector\
August 8, 2026 ยท View on GitHub
@plures/praxis / index / RegistryIntrospector
Class: RegistryIntrospector<TContext>
Defined in: packages/praxis-core/src/introspection.ts:99
Introspection utilities for a Praxis registry
Type Parameters
TContext
TContext = unknown
Constructors
Constructor
new RegistryIntrospector<
TContext>(registry):RegistryIntrospector<TContext>
Defined in: packages/praxis-core/src/introspection.ts:100
Parameters
registry
PraxisRegistry<TContext>
Returns
RegistryIntrospector<TContext>
Methods
exportDOT()
exportDOT():
string
Defined in: packages/praxis-core/src/introspection.ts:219
Export graph in DOT format (Graphviz)
This can be rendered with Graphviz tools or online services.
Returns
string
exportMermaid()
exportMermaid():
string
Defined in: packages/praxis-core/src/introspection.ts:256
Export graph in Mermaid format
Mermaid is a markdown-friendly diagramming language.
Returns
string
generateGraph()
generateGraph():
RegistryGraph
Defined in: packages/praxis-core/src/introspection.ts:151
Generate a graph representation of the registry
This creates nodes for rules and constraints. Edges can be inferred from metadata if rules/constraints document their dependencies.
Returns
generateSchema()
generateSchema(
protocolVersion):RegistrySchema
Defined in: packages/praxis-core/src/introspection.ts:118
Generate a JSON schema representation of the registry
Parameters
protocolVersion
string
Returns
getConstraintInfo()
getConstraintInfo(
constraintId):ConstraintDescriptor<TContext> |undefined
Defined in: packages/praxis-core/src/introspection.ts:291
Get detailed information about a specific constraint
Parameters
constraintId
string
Returns
ConstraintDescriptor<TContext> | undefined
getRuleInfo()
getRuleInfo(
ruleId):RuleDescriptor<TContext> |undefined
Defined in: packages/praxis-core/src/introspection.ts:284
Get detailed information about a specific rule
Parameters
ruleId
string
Returns
RuleDescriptor<TContext> | undefined
getStats()
getStats():
RegistryStats
Defined in: packages/praxis-core/src/introspection.ts:105
Get basic statistics about the registry
Returns
searchConstraints()
searchConstraints(
query):ConstraintDescriptor<TContext>[]
Defined in: packages/praxis-core/src/introspection.ts:312
Search for constraints by description text
Parameters
query
string
Returns
ConstraintDescriptor<TContext>[]
searchRules()
searchRules(
query):RuleDescriptor<TContext>[]
Defined in: packages/praxis-core/src/introspection.ts:298
Search for rules by description text
Parameters
query
string
Returns
RuleDescriptor<TContext>[]