Conversation
… in NuGet packages
…m check CLI command
…mand and suppress verbose test output
…atClient from Microsoft.Extensions.AI in translate CLI
948e24e to
8bbeccc
Compare
|
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 & Motivation
This introduces several improvements to the Developer CLI to enhance its usability, particularly when used as an AI tool backend:
--quietoption tobuild,check,format,inspect, andtestcommands to minimize output for AI context windows--filterand--exclude-categoryoptions to thetestcommand to run specific test subsets and exclude test categories (e.g., "Noisy" tests)mcpcommand that exposes CLI functionality as an MCP (Model Context Protocol) server for AI toolsgit-configcommand for configuring author identity and recommended Git settings--clioption tobuild,check,format, andinspectcommands to target only the developer-cli project--no-buildoption tocheckcommand and remove--skip-format/--skip-inspectoptions for a more consistent interface--forceoption toinstallcommand to allow reinstallationconfigure-continuous-deploymentscommand todeployfor brevitysync-windsurf-ai-rulescommand tosync-ai-rulesfor generalitycoauthorcommand.mcp.jsonconfiguration file for MCP server integration like Claude CodeTestCategoryAttributefor categorizing tests that can be excluded during CLI runsEndpointBaseTesttranslatecommand to use GPT5-mini (better and ~10x cheaper) andIChatClientfrom Microsoft.Extensions.AIcoveragecommand to cover all systems without including tests in NuGet packagespull-platformplatform-changescommand failing when local main is behind origin.zshrcprofile exists on macOS--traceoption to show external processes being executed (replaces per-command--verbose-logging)--solution-nameoption to--self-contained-systemfor consistency across CLI commandsDownstream projects
Update
your-self-contained-system/Tests/EndpointBaseTest.csto suppress logging during tests:using Mapster; using Microsoft.ApplicationInsights; using Microsoft.ApplicationInsights.Channel; using Microsoft.ApplicationInsights.Extensibility; +using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc.Testing;And add inside the
WithWebHostBuilderconfiguration:_webApplicationFactory = new WebApplicationFactory<Program>().WithWebHostBuilder(builder => { + builder.ConfigureLogging(logging => + { + logging.AddFilter(_ => false); // Suppress all logs during tests + } + ); + builder.ConfigureTestServices(services =>If any tests produce noisy output (e.g., verbose exception logging), add the
[TestCategory("Noisy")]attribute to exclude them from normal CLI test runs. Example:Update
.github/workflows/your-self-contained-system.ymlto use--self-contained-systeminstead of--solution-name:- name: Run Code Inspections working-directory: developer-cli run: | - dotnet run inspect --backend --solution-name YourSelfContainedSystem.slnf | tee inspection-output.log + dotnet run inspect --backend --self-contained-system your-self-contained-system | tee inspection-output.log if ! grep -q "No backend issues found!" inspection-output.log; then echo "Code inspection issues found." exit 1 fi - name: Check for Code Formatting Issues working-directory: developer-cli run: | - dotnet run format --backend --solution-name YourSelfContainedSystem.slnf + dotnet run format --backend --self-contained-system your-self-contained-system # Check for any changes made by the code formatter git diff --exit-code || { - echo "Formatting issues detected. Please run 'dotnet run format --backend --solution-name YourSelfContainedSystem.slnf' from /developer-cli folder locally and commit the formatted code." + echo "Formatting issues detected. Please run 'dotnet run format --backend --self-contained-system your-self-contained-system' from /developer-cli folder locally and commit the formatted code." exit 1 }Checklist