- Replace os.system editor invocation with shlex.split + subprocess.run
- Add yaml.safe_load fallback to {} when exporting empty YAML
- Add new config commands: import, validate, environments, profiles, secrets
- Update tests to patch subprocess.run and test new config commands
- Protect against empty EDITOR env values