I haven't researched yet due to time constraints, but the answer might be useful for others as well.
I have succesfully built a CEP panel for PPro, but would like to have everything inside one codebase - so I would like to have certain commands target Premiere, and others After Effects. Is that possible?