Expand description
WebAssembly bindings for the AgentScript graph analysis library.
This module provides thin JavaScript-accessible wrappers around the core graph functionality. All actual logic lives in other modules:
render/- ASCII and GraphML renderingexport- Serialization types- Core crate - Graph building, validation, queries
Functionsยง
- build_
graph - Build a reference graph from an AgentScript AST.
- build_
graph_ from_ source - Build a reference graph from AgentScript source code.
- export_
graph_ json - Export the graph structure as JSON for visualization/GraphQL consumption.
- export_
graph_ json_ compact - Compact JSON export (no pretty printing).
- export_
graphml - Export the reference graph as GraphML format.
- extract_
dependencies - Extract all Salesforce org dependencies from AgentScript source.
- find_
topic_ transitions - Find all topics that a given topic transitions to.
- find_
topic_ usages - Find all usages of a topic by name.
- find_
variable_ usages - Find all usages (readers and writers) of a variable by name.
- get_
graph_ stats - Get statistics about a reference graph.
- graph_
version - Get the version of the graph library.
- render_
graph - Render a detailed execution graph as ASCII art.
- render_
topic_ flow - Render the topic flow graph as ASCII art.
- uses_
apex_ class - Check if a specific Apex class is used in the source.
- uses_
flow - Check if a specific Flow is used in the source.
- uses_
sobject - Check if a specific SObject is used in the source.
- validate_
graph - Validate a reference graph and return any errors/warnings.