From 7aa3051da2745c20d654b13f790b52104ee588ad Mon Sep 17 00:00:00 2001 From: Copilot Date: Fri, 2 Oct 2026 13:31:44 +0300 Subject: [PATCH 1/2] chore(squad-agents-ai): bump MAF to 1.23.0 and sample Extensions packages to 10.0.12 - Microsoft.Agents.AI.GitHub.Copilot 1.22.0 -> 1.23.0 (GitHub.Copilot.SDK stays pinned at 1.0.14 via SquadCopilotSdkVersion; 1.0.16 showed unreliable startup in validation). - Sample's Microsoft.Extensions.Hosting/DependencyInjection/Logging.Console bumped to 10.0.12. - Add a --smoke flag to the sample Program.cs: a bounded, no-auth/no-model-call check of default and keyed DI resolution and the client configuration callback, documented in the README for a fast sanity check without Copilot authentication or CLI startup. - Update the Squad.Agents.AI.csproj prerelease-version comment now that Microsoft.Agents.AI.GitHub.Copilot has shipped a stable (non "-rc") release; the package's own Version stays 0.5.6-rc1 until its stable release is scheduled. Verified: full Squad.Agents.AI.Tests suite (82 tests x net8.0/net9.0/net10.0 = 246) passes; sample builds and the new --smoke check passes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- src/Squad.Agents.AI/README.md | 12 +++++- src/Squad.Agents.AI/Squad.Agents.AI.csproj | 14 ++----- .../samples/Squad.Agents.AI.Sample/Program.cs | 37 ++++++++++++++++++- .../Squad.Agents.AI.Sample.csproj | 6 +-- 4 files changed, 54 insertions(+), 15 deletions(-) diff --git a/src/Squad.Agents.AI/README.md b/src/Squad.Agents.AI/README.md index 76ef2847e..25607fbc1 100644 --- a/src/Squad.Agents.AI/README.md +++ b/src/Squad.Agents.AI/README.md @@ -1,6 +1,6 @@ # Squad.Agents.AI -> **Preview package.** `Squad.Agents.AI` is a preview NuGet package for early adopters. It multi-targets `net8.0`, `net9.0`, and `net10.0`, and depends on preview Microsoft Agent Framework / GitHub Copilot SDK packages, so APIs may change before a stable release. +> **Preview package.** `Squad.Agents.AI` is a preview NuGet package for early adopters. It multi-targets `net8.0`, `net9.0`, and `net10.0`, and uses stable Microsoft Agent Framework / GitHub Copilot SDK dependencies. Squad's own APIs may still change before its stable release. ## What it does @@ -35,6 +35,16 @@ dotnet add package Squad.Agents.AI --prerelease --source ./nupkgs - Squad CLI and an initialized Squad team root; see the [Squad CLI repo](https://github.com/bradygaster/squad). - GitHub Copilot authentication through the signed-in user. The quickstart below does not require an app key or environment variable. +For a bounded sample check without authentication, CLI startup, or model calls: + +```powershell +dotnet run --project src\Squad.Agents.AI\samples\Squad.Agents.AI.Sample -- --smoke +``` + +This checks default and keyed DI resolution and the client configuration callback. +The five live sample flows still require Copilot authentication and may consume credits; +the smoke check does not validate live responses or streaming. + ## Five-line quickstart ```csharp diff --git a/src/Squad.Agents.AI/Squad.Agents.AI.csproj b/src/Squad.Agents.AI/Squad.Agents.AI.csproj index 8d7293683..1588d7360 100644 --- a/src/Squad.Agents.AI/Squad.Agents.AI.csproj +++ b/src/Squad.Agents.AI/Squad.Agents.AI.csproj @@ -18,15 +18,9 @@ README.md true 0.5.6-rc1 @@ -35,7 +29,7 @@ - + - 0.5.6-rc1 + 1.0.0 diff --git a/src/Squad.Agents.AI/samples/Squad.Agents.AI.Sample/Program.cs b/src/Squad.Agents.AI/samples/Squad.Agents.AI.Sample/Program.cs index 131f08286..7643ca9a1 100644 --- a/src/Squad.Agents.AI/samples/Squad.Agents.AI.Sample/Program.cs +++ b/src/Squad.Agents.AI/samples/Squad.Agents.AI.Sample/Program.cs @@ -73,7 +73,7 @@ // Real-world usage: set SQUAD_TEAM_ROOT to the path of an initialized Squad team. var teamRoot = System.Environment.GetEnvironmentVariable("SQUAD_TEAM_ROOT") ?? System.IO.Directory.GetCurrentDirectory(); -PrintBanner($"Squad.Agents.AI v0.1 — sample run (team root: {teamRoot})"); +PrintBanner($"Squad.Agents.AI 1.0.0 — sample run (team root: {teamRoot})"); Console.WriteLine(); // ───────────────────────────────────────────────────────────────────────────── @@ -87,7 +87,7 @@ host1.Logging.SetMinimumLevel(LogLevel.Warning); // keep sample output clean host1.Services.AddSquadAgent(o => { - o.SquadFolderPath = @"C:\Users\tamirdresher\source\repos\squad-squad"; + o.SquadFolderPath = teamRoot; o.AgentName = "SampleSquad"; o.EmitSubagentActivities = true; o.Instructions = "You are a helpful assistant. Respond concisely. and ask each subagent for their input before providing a final answer."; @@ -225,10 +225,6 @@ { PrintHeader("Flow 3 — BYOK / ConfigureCopilotClient delegate"); - // Simulate a token from a credential store (never hardcode real tokens). - // In production replace this with Key Vault, managed identity, etc. - const string simulatedToken = "YOUR_GITHUB_PAT_HERE"; - var host3 = Host.CreateApplicationBuilder(args); host3.Logging.SetMinimumLevel(LogLevel.Warning); host3.Services.AddSquadAgent(o => @@ -241,9 +237,6 @@ // custom token or environment variable from your own credential store. o.ConfigureCopilotClient = clientOpts => { - // Inject a token from an external credential store - clientOpts.GitHubToken = simulatedToken; - // IReadOnlyDictionary indexer is read-only; always assign a new instance. // ⚠️ IMPORTANT: copilot.exe inherits this dictionary verbatim. If you replace // it with only your custom vars (no SYSTEMROOT / PATH / TEMP), the native @@ -267,7 +260,7 @@ var agent3 = app3.Services.GetRequiredService(); Console.WriteLine($"Agent name : {agent3.Name}"); - Console.WriteLine("BYOK delegate registered — custom token + env var will be forwarded to Copilot SDK."); + Console.WriteLine("Client delegate registered — custom env var forwarded; signed-in authentication unchanged."); Console.WriteLine("Sending : \"Ping\""); var result3 = await RunWithErrorHandlingAsync(async () => @@ -603,4 +596,3 @@ static async ValueTask DisposeIfNeeded(SquadAgent agent) } -