Skip to main content

Module wasm

Module wasm 

Source
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 rendering
  • export - 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.