feat!: remove run subcommand#306
Merged
Merged
Conversation
Remove the debug-only `run` subcommand (1,204 lines) that orchestrated local agent execution. This reduces codebase complexity, eliminates agent confusion, and removes support burden for Docker/MCPG lifecycle management code that is orthogonal to the compiler's core mission. Changes: - Delete src/run.rs - Remove Commands::Run variant and match arms from main.rs - Remove AdoAuthMode enum and PAT auth mode (only used by run) - Remove set_org() method on AzureDevOpsToolConfig (only used by run) - Remove pub use re-exports only needed by run (generate_mcpg_config, MCPG_IMAGE, MCPG_VERSION) - Merge collect_extensions_with_auth() into collect_extensions() - Update cli_tests.rs to reflect removal - Strip run documentation from AGENTS.md - Add docs/local-development.md with manual orchestration steps BREAKING CHANGE: The `run` subcommand is removed. See docs/local-development.md for manual local development instructions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
🔍 Rust PR ReviewSummary: Looks good — clean, well-scoped removal with no dangling references or regressions. Findings
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove the debug-only
runsubcommand (~1,200 lines) that orchestrated local agent execution. This reduces codebase complexity, eliminates agent confusion, and removes support burden for Docker/MCPG lifecycle management code that is orthogonal to the compiler's core mission.Motivation
rundocumentation and code, potentially attempting to use or reference itrunmodule pulls in Docker orchestration, MCPG lifecycle management, health checks, and process cleanup that are orthogonal to the compiler's core missionAdoAuthMode::Pat,set_org(),collect_extensions_with_auth(), and severalpub usere-exports existed solely forrunChanges
Deleted
src/run.rs— 1,204-line local dev orchestrator (SafeOutputs startup, Docker/MCPG lifecycle, Copilot CLI invocation, safe output execution, cleanup)Simplified
AdoAuthModeenum removed — only bearer auth (pipeline default) remains; PAT mode was exclusively forruncollect_extensions_with_auth()merged intocollect_extensions()— the auth mode parameter is no longer neededset_org()removed fromAzureDevOpsToolConfig— only called byrunto inject--orgoverridespub usere-exports removed fromcompile/mod.rs(generate_mcpg_config,MCPG_IMAGE,MCPG_VERSION) — still accessible internally, just no longer re-exported since no external consumer existsUpdated
src/main.rs— removedmod run,Commands::Runvariant, and match armsAGENTS.md— removedrunCLI command documentationtests/cli_tests.rs— replaced debug/releaserunpresence tests with a single test confirmingrunis absentAdded
docs/local-development.md— manual orchestration guide with an AI-agent-discouraging preamble, documenting the step-by-step workflow thatrunpreviously automatedVerification
cargo build— clean, zero warningscargo test— all tests passcargo clippy --all-targets --all-features— no new warnings