A VS Code extension that provides clean, meaningful diffs for Salesforce Einstein Bot XML files.
Einstein Bot version files are noisy to compare — UUIDs change on every save and child elements get reordered randomly. This extension normalizes both files before diffing so you only see the changes that actually matter.
Features
Strips UUID noise — Removes stepIdentifier, variableOperationIdentifier, messageIdentifier, and quickReplyOptionIdentifier elements that change on every save
Sorts reordered children — Sorts children of botInvocation and botVariableOperation by tag name and content, so reordering doesn't show up as a diff
Side-by-side diff — Opens the normalized versions in VS Code's built-in diff editor
Usage
Open a workspace that contains *botVersion-meta.xml files
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
Run "Diff Bot Versions"
Select the first bot version file
Select the second bot version file
A diff editor opens with the normalized versions side by side
Requirements
Your workspace must contain at least two *botVersion-meta.xml files (typically from a Salesforce DX project).