This is similar to $editcontext.editType.
Add editApp property to the $editcontext property for the Form Calculation and Constraint Arcade Profiles (e.g. $editcontext.editApp). It would return values such as "Field Maps" or "Map Viewer". I could write it to an attribute in my schema to store this value or use it to inform other actions.
Generally, I might want to know in which app was used for the last edit (written to an attribute) or which app is being used for the current edit.