By dir scanning I'm guessing you mean Froced Browsing?
This is not currently supported by the AF or the API.
In theory you might be able to control it via a script, but thats not something I've tried.
I think the AF is an ideal option for integrating with CI/CD.
ZAP scans can take a while so running a full scan after a deploy usually makes more sence that running one on each PR.
More limited ZAP scans can be run on each PR though.
Cheers,
Simon