sf-diagram-mermaid
Pass
Audited by Gen Agent Trust Hub on Mar 13, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/query-org-metadata.pyutilizes thesubprocessmodule to execute Salesforce CLI (sf) commands. This is used to retrieve metadata such as record counts and sharing models from a connected Salesforce org to enrich diagrams. - [EXTERNAL_DOWNLOADS]: The
scripts/mermaid_preview.pyscript serves an HTML interface that loads the Mermaid.js library from a well-known CDN (https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js). This is a standard and safe practice for rendering diagrams in a browser. - [COMMAND_EXECUTION]: The
scripts/mermaid_preview.pyscript launches itself as a background process usingsubprocess.Popenwith a new session. This functionality is intended to provide a persistent local preview server that survives the termination of the agent session. - [DATA_EXPOSURE]: The preview server implemented in
scripts/mermaid_preview.pyreads a user-specified file and serves its content onlocalhost:8765. While this involves reading local files, it is a restricted local service designed for the specific purpose of diagram visualization.
Audit Metadata