deps: Bump GitHub.Copilot.SDK from 1.0.3 to 1.0.7#1508
Conversation
--- updated-dependencies: - dependency-name: GitHub.Copilot.SDK dependency-version: 1.0.7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
LabelsThe following labels could not be found: Please fix the above issues or remove invalid values from |
…e NU5104 Reviewer findings on PR #1519 (SDK 1.14.0-rc1 / GitHub.Copilot.SDK 1.0.7 upgrade) both confirmed against real CI logs and fixed: 1. Native payload propagation. Microsoft.Agents.AI.GitHub.Copilot ships GitHub.Copilot.SDK's CLI-download build/ targets to transitive consumers via a buildTransitive/ bridge that defaults to the SDK version the adapter itself was packed against (1.0.5, its nuspec dependency floor), not the version Squad.Agents.AI actually references (1.0.7). Verified in PR #1519 run 29856026557: "Build package" downloaded Copilot CLI 1.0.71 (src/Squad.Agents.AI has the direct GitHub.Copilot.SDK PackageReference), while "Build tests" and "Build sample" downloaded the stale CLI 1.0.67 on both ubuntu-latest and windows-latest, because neither project has that direct reference. Fixed via the documented override contract (_MicrosoftAgentsAICopilotSdkVersion) that Microsoft.Agents.AI.GitHub.Copilot.targets itself exposes for exactly this purpose: - Directory.Build.props sets it repo-wide from a new single source of truth, SquadCopilotSdkVersion, fixing test/Squad.Agents.AI.Tests and samples/Squad.Agents.AI.Sample. - Squad.Agents.AI.csproj generates and packs its own buildTransitive/Squad.Agents.AI.props at pack time (mirroring how the adapter package itself does it) so REAL external NuGet consumers of Squad.Agents.AI get the same fix, not just this repo's internal ProjectReference-based projects. - GitHub.Copilot.SDK PackageReference now uses $(SquadCopilotSdkVersion) instead of a literal, so the two can never drift apart again. Added scripts/verify-squad-agents-ai-consumer.ps1, a hermetic consumer-level packaging check: packs Squad.Agents.AI, restores a scratch consumer against only the local nupkg + nuget.org, builds it for the runner's RID, and asserts the native Copilot CLI executable and runtime.node-derived library land under runtimes/*/native/ at the expected CLI version, with no stale 1.0.67 payload anywhere. Wired into squad-agents-ai-ci.yml (runs on both ubuntu-latest and windows-latest), alongside a lighter in-repo regression guard that checks the same thing for src/test/sample directly. Neither check executes the downloaded CLI binary or touches package source/TLS policy. 2. NU5104. Squad.Agents.AI was versioned as stable (0.5.5) while depending on prerelease Microsoft.Agents.AI.GitHub.Copilot 1.14.0-rc1, so `dotnet pack` emitted NU5104. Bumped to 0.5.6-rc1 (smallest correct next prerelease, matching the adapter's own "-rc1" convention) instead of suppressing the warning, since a genuinely mixed stable/prerelease dependency graph is exactly what NU5104 exists to flag. Verified `dotnet pack` no longer emits NU5104. dev->main promotions already require bumping <Version> by hand before a stable release (see squad-agents-ai-release.yml), so this does not block a future GA publish once Microsoft.Agents.AI.GitHub.Copilot itself leaves prerelease. Validated locally: single resolved GitHub.Copilot.SDK 1.0.7 across net8.0/net9.0/net10.0 for all three projects, no NU1605/NU1608/NU5104, no vulnerable packages, 82/82 tests passing on all three TFMs, and a real scratch PackageReference-only consumer (no ProjectReference, no Directory.Build.props visible) correctly attempting Copilot CLI 1.0.71 (not 1.0.67). Actual binary download could not be exercised end-to-end in this sandboxed dev environment (outbound TLS to registry.npmjs.org is blocked here, independent of CLI version); this is expected to complete normally on GitHub-hosted runners exactly as the existing CI already does today. Refs #1519, #1508 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 44f53a4e-d384-4c60-a43d-cfc158160f1f
…ub.Copilot.SDK to 1.0.7 (#1519) Upgrades Microsoft.Agents.AI.GitHub.Copilot from 1.11.0-rc1 to 1.14.0-rc1 and the direct GitHub.Copilot.SDK reference from 1.0.3 to 1.0.7 in src/Squad.Agents.AI/Squad.Agents.AI.csproj, together, since 1.14.0-rc1 requires GitHub.Copilot.SDK >= 1.0.5. Supersedes the SDK only Dependabot PR #1508. Fixes transitive native Copilot CLI payload propagation: Microsoft.Agents.AI.GitHub.Copilot ships GitHub.Copilot.SDK's CLI download build/ targets to transitive consumers via a buildTransitive bridge that otherwise resolves the SDK version the adapter itself was packed against (1.0.5, CLI 1.0.67) rather than the version this repo references (1.0.7, CLI 1.0.71). New Directory.Build.props and a generated buildTransitive/Squad.Agents.AI.props (built with System.Xml.Linq, packed into Squad.Agents.AI's own nupkg) set the documented _MicrosoftAgentsAICopilotSdkVersion override so test/Squad.Agents.AI.Tests, the sample project, and real external NuGet consumers all resolve the same CLI build as src/Squad.Agents.AI itself. Bumps Squad.Agents.AI's package version from 0.5.5 to 0.5.6-rc1, a prerelease matching the adapter's own -rc1 channel, resolving NU5104 ("stable package should not have prerelease dependency") instead of suppressing it. Adds a hermetic, cross-platform consumer packaging guard (scripts/verify-squad-agents-ai-consumer.ps1, wired into squad-agents-ai-ci.yml on ubuntu-latest and windows-latest) that packs Squad.Agents.AI, restores a scratch consumer pinned to the local nupkg via NuGet Package Source Mapping, verifies the restored package's SHA512 against the freshly packed bytes, builds for the runner's RID, and asserts the native Copilot CLI executable and runtime.node-derived library land under runtimes/*/native/ at the expected version with no stale 1.0.67 payload, without ever executing the downloaded binary. Refs #1519, #1508
|
Superseded by #1519, now merged into #1519 upgrades both Thank you for the original dependency bump, it was the right direction and helped confirm the version floor. Closing this one as superseded. |
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
Updated GitHub.Copilot.SDK from 1.0.3 to 1.0.7.
Release notes
Sourced from GitHub.Copilot.SDK's releases.
1.0.7
Installation
vMaj.Min.Micro. For example v0.1.32. The corresponding maven version for the release will beMaj.Min.Micro-java.N, whereMaj,MinandMicroare the corresponding numbers for the reference implementation release, andNis a monotonically increasing sequence number starting with 0 for each release. See the corresponding architectural decision record for more information in thedocs/adrdirectory of the source code.📦 [View on Maven Central]((central.sonatype.com/redacted)
📖 [Documentation]((github.github.io/redacted) · [Javadoc]((github.github.io/redacted)
Maven
Gradle (Kotlin DSL)
implementation("com.github:copilot-sdk-java:1.0.7")Gradle (Groovy DSL)
implementation 'com.github:copilot-sdk-java:1.0.7'Feature: opaque metadata passthrough for tool definitions
Hosts can now attach namespaced, opaque metadata to tool definitions and have it forwarded verbatim over the
session.create/resumeSessionwire call. UseToolDefinition.createWithMetadata(...)or the fluent.metadata(Map)builder, or express shallow flag maps via@CopilotTool.MetadataEntryannotations. (#1864)Feature: tool search configuration support
SessionConfigandResumeSessionConfignow accept aToolSearchConfigthat enables server-side tool search and controls the deferral threshold. Tool results can also carry backtoolReferencesindicating which tools were consulted during search. (#1933)Other changes
enableManagedSettingsonSessionConfig/ResumeSessionConfigto opt into enterprise managed-settings enforcement at session bootstrap (#1925)agentId(),parentAgentId(), andinteractionType()onCopilotRequestContextin request-handler callbacks (#1949)... (truncated)
1.0.7-preview.3
Installation
vMaj.Min.Micro. For example v0.1.32. The corresponding maven version for the release will beMaj.Min.Micro-java.N, whereMaj,MinandMicroare the corresponding numbers for the reference implementation release, andNis a monotonically increasing sequence number starting with 0 for each release. See the corresponding architectural decision record for more information in thedocs/adrdirectory of the source code.📦 [View on Maven Central]((central.sonatype.com/redacted)
📖 [Documentation]((github.github.io/redacted) · [Javadoc]((github.github.io/redacted)
Maven
Gradle (Kotlin DSL)
implementation("com.github:copilot-sdk-java:1.0.7-preview.3")Gradle (Groovy DSL)
implementation 'com.github:copilot-sdk-java:1.0.7-preview.3'Feature: tool search configuration
Sessions can now configure tool search behavior via
ToolSearchConfigonSessionConfig. Tool search keeps the model's active tool set small by deferring MCP and external tools until needed. (#1933)Other changes
New contributors
@rinceyuanmade their first contribution in #1978... (truncated)
1.0.7-preview.2
Installation
vMaj.Min.Micro. For example v0.1.32. The corresponding maven version for the release will beMaj.Min.Micro-java.N, whereMaj,MinandMicroare the corresponding numbers for the reference implementation release, andNis a monotonically increasing sequence number starting with 0 for each release. See the corresponding architectural decision record for more information in thedocs/adrdirectory of the source code.📦 [View on Maven Central]((central.sonatype.com/redacted)
📖 [Documentation]((github.github.io/redacted) · [Javadoc]((github.github.io/redacted)
Maven
Gradle (Kotlin DSL)
implementation("com.github:copilot-sdk-java:1.0.7-preview.2")Gradle (Groovy DSL)
implementation 'com.github:copilot-sdk-java:1.0.7-preview.2'Changes since java/v1.0.7-preview.1
maven-assembly-plugin(#1966)1.0.7-preview.1
Installation
vMaj.Min.Micro. For example v0.1.32. The corresponding maven version for the release will beMaj.Min.Micro-java.N, whereMaj,MinandMicroare the corresponding numbers for the reference implementation release, andNis a monotonically increasing sequence number starting with 0 for each release. See the corresponding architectural decision record for more information in thedocs/adrdirectory of the source code.📦 [View on Maven Central]((central.sonatype.com/redacted)
📖 [Documentation]((github.github.io/redacted) · [Javadoc]((github.github.io/redacted)
Maven
Gradle (Kotlin DSL)
implementation("com.github:copilot-sdk-java:1.0.7-preview.1")Gradle (Groovy DSL)
implementation 'com.github:copilot-sdk-java:1.0.7-preview.1'Feature: request handler context now exposes agent metadata
CopilotRequestContextnow includesagentId,parentAgentId, andinteractionTypefields, giving request handlers visibility into which agent is making an LLM inference call and whether it is a subagent. (#1949)1.0.7-preview.0
Installation
vMaj.Min.Micro. For example v0.1.32. The corresponding maven version for the release will beMaj.Min.Micro-java.N, whereMaj,MinandMicroare the corresponding numbers for the reference implementation release, andNis a monotonically increasing sequence number starting with 0 for each release. See the corresponding architectural decision record for more information in thedocs/adrdirectory of the source code.📦 [View on Maven Central]((central.sonatype.com/redacted)
📖 [Documentation]((github.github.io/redacted) · [Javadoc]((github.github.io/redacted)
Maven
Gradle (Kotlin DSL)
implementation("com.github:copilot-sdk-java:1.0.7-preview.0")Gradle (Groovy DSL)
implementation 'com.github:copilot-sdk-java:1.0.7-preview.0'Feature: opt in to enterprise managed-settings enforcement
SessionConfigandResumeSessionConfignow support anenableManagedSettingsflag. When set totrue, the runtime enforces organizational bypass-permissions policies at session creation using the session's GitHub token. (#1925)1.0.6
Installation
vMaj.Min.Micro. For example v0.1.32. The corresponding maven version for the release will beMaj.Min.Micro-java.N, whereMaj,MinandMicroare the corresponding numbers for the reference implementation release, andNis a monotonically increasing sequence number starting with 0 for each release. See the corresponding architectural decision record for more information in thedocs/adrdirectory of the source code.📦 [View on Maven Central]((central.sonatype.com/redacted)
📖 [Documentation]((github.github.io/redacted) · [Javadoc]((github.github.io/redacted)
Maven
Gradle (Kotlin DSL)
implementation("com.github:copilot-sdk-java:1.0.6")Gradle (Groovy DSL)
implementation 'com.github:copilot-sdk-java:1.0.6'Feature: inline lambda tool definitions
Developers can now define tools directly at the call site using
ToolDefinition.from(...)with typed lambda handlers andParam.of(...)parameter metadata — no separate annotated class required. Async variants (fromAsync) andToolInvocationcontext injection (fromWithToolInvocation) are also available. (#1895)Other changes
onGitHubTelemetrycallback onCopilotClientOptionsfor receiving forwarded GitHub telemetry events (#1835)1.0.6-preview.1
Installation
vMaj.Min.Micro. For example v0.1.32. The corresponding maven version for the release will beMaj.Min.Micro-java.N, whereMaj,MinandMicroare the corresponding numbers for the reference implementation release, andNis a monotonically increasing sequence number starting with 0 for each release. See the corresponding architectural decision record for more information in thedocs/adrdirectory of the source code.📦 [View on Maven Central]((central.sonatype.com/redacted)
📖 [Documentation]((github.github.io/redacted) · [Javadoc]((github.github.io/redacted)
Maven
Gradle (Kotlin DSL)
implementation("com.github:copilot-sdk-java:1.0.6-preview.1")Gradle (Groovy DSL)
implementation 'com.github:copilot-sdk-java:1.0.6-preview.1'Feature: experimental GitHub telemetry forwarding
The Java SDK now supports forwarding per-session GitHub telemetry events to your application. Set
onGitHubTelemetryonCopilotClientOptionsto receivegitHubTelemetry.eventnotifications from the runtime; the client automatically opts every session it creates or resumes into telemetry forwarding when the handler is present. (#1835)1.0.6-preview.0
What's Changed
New Contributors
Full Changelog: github/copilot-sdk@rust/v1.0.5-preview.1...rust/v1.0.6-preview.0
1.0.5
Installation
vMaj.Min.Micro. For example v0.1.32. The corresponding maven version for the release will beMaj.Min.Micro-java.N, whereMaj,MinandMicroare the corresponding numbers for the reference implementation release, andNis a monotonically increasing sequence number starting with 0 for each release. See the corresponding architectural decision record for more information in thedocs/adrdirectory of the source code.📦 [View on Maven Central]((central.sonatype.com/redacted)
📖 [Documentation]((github.github.io/redacted) · [Javadoc]((github.github.io/redacted)
Maven
Gradle (Kotlin DSL)
implementation("com.github:copilot-sdk-java:1.0.5")Gradle (Groovy DSL)
implementation 'com.github:copilot-sdk-java:1.0.5'Feature: annotation-based tool API (
@CopilotTool)The Java SDK now includes a high-level, annotation-driven tool API. Annotate methods with
@CopilotTooland parameters with@CopilotToolParamto define tools — a JSR-269 annotation processor generates metadata at compile time with no runtime reflection. UseToolDefinition.fromObject()to register tools with minimal boilerplate. (#1792)Feature:
ToolInvocationinjection in@CopilotToolmethods... (truncated)
1.0.5-preview.1
What's Changed
ToolInvocationinjection in@CopilotToolmethods by @edburns with @Copilot in [Java] Support hiddenToolInvocationinjection in@CopilotToolmethods github/copilot-sdk#1832Paramannotation toCopilotToolParamin Java SDK by @edburns with @Copilot in RenameParamannotation toCopilotToolParamin Java SDK github/copilot-sdk#1838New Contributors
Full Changelog: github/copilot-sdk@rust/v1.0.5-preview.0...rust/v1.0.5-preview.1
1.0.5-preview.0
What's Changed
@CopilotToolergonomics by @edburns in Java: Implement@CopilotToolergonomics github/copilot-sdk#1792New Contributors
Full Changelog: github/copilot-sdk@rust/v1.0.4...rust/v1.0.5-preview.0
1.0.4
Installation
vMaj.Min.Micro. For example v0.1.32. The corresponding maven version for the release will beMaj.Min.Micro-java.N, whereMaj,MinandMicroare the corresponding numbers for the reference implementation release, andNis a monotonically increasing sequence number starting with 0 for each release. See the corresponding architectural decision record for more information in thedocs/adrdirectory of the source code.📦 [View on Maven Central]((central.sonatype.com/redacted)
📖 [Documentation]((github.github.io/redacted) · [Javadoc]((github.github.io/redacted)
Maven
Gradle (Kotlin DSL)
implementation("com.github:copilot-sdk-java:1.0.4")Gradle (Groovy DSL)
implementation 'com.github:copilot-sdk-java:1.0.4'Feature: HTTP request callback support
Register a
CopilotRequestHandleron the client to intercept every outbound LLM inference HTTP or WebSocket request — for both BYOK and CAPI — and mutate, replace, or fully forward it. Useful for logging, header injection, model substitution, or custom routing. (#1689, #1775, #1784)Feature:
getBearerTokencallback for BYOK providers (Managed Identity)... (truncated)
Commits viewable in compare view.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)