#9566 fix(cli): Allow `meltano upgrade package` to run outside of a project directory
Pull request opened by
edgarrmondragon
## Description
## Related Issues
• Closes #XXXX
## Summary by Sourcery
Refactor the core upgrade service to defer project and engine injection to method calls and update CLI commands to instantiate UpgradeService without project context, enabling package upgrades to execute outside of a project directory.
Enhancements:
• Refactor UpgradeService to remove engine and project parameters from its constructor and accept Project instances in upgrade methods
• Modify update_files, migrate_database, migrate_state, and upgrade methods to take a project argument and use project_engine for database migrations
• Update CLI upgrade commands to instantiate UpgradeService without project context and apply pass_project only to subcommands that require a project
• Allow ‘meltano upgrade package’ (and other package-only operations) to run outside of a project directory by removing its project dependency
meltano/meltano