Skip to content

scanLocalBindings

scanLocalBindings(sourceDirs, types): LocalScanResult

Defined in: packages/simply-aep-core/src/at4dxLocalScan.ts:68

Scan local Salesforce DX source directories for AT4DX Application Factory binding records, parsing each CustomMetadata component’s <values> pairs directly — the same “read the metadata XML” approach simply schema visualize’s local scan uses for CustomField/ CustomObject.

Unlike an org (see at4dxOrgScan), local source gives no signal for “this Custom Metadata Type doesn’t exist” independent of “zero records exist for it” — a missing customMetadata folder and an empty one look identical to ComponentSet.fromSource. Callers treat a fully empty result across every requested type as “AT4DX not detected here.”

string[]

The source directories to scan.

BindingType[]

Which binding types to include.

LocalScanResult

The discovered bindings and diagnostics.