Skip to content

Commit 30acc7b

Browse files
committed
pack all nuget
1 parent 473a2cd commit 30acc7b

File tree

4 files changed

+23
-4
lines changed

4 files changed

+23
-4
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
run: |
104104
dotnet pack ClaudeCodeSharpSDK/ClaudeCodeSharpSDK.csproj --configuration Release --no-build -p:IncludeSymbols=false -p:SymbolPackageFormat=snupkg --output ./artifacts
105105
dotnet pack ClaudeCodeSharpSDK.Extensions.AI/ClaudeCodeSharpSDK.Extensions.AI.csproj --configuration Release --no-build -p:IncludeSymbols=false -p:SymbolPackageFormat=snupkg --output ./artifacts
106+
dotnet pack ClaudeCodeSharpSDK.Extensions.AgentFramework/ClaudeCodeSharpSDK.Extensions.AgentFramework.csproj --configuration Release --no-build -p:IncludeSymbols=false -p:SymbolPackageFormat=snupkg --output ./artifacts
106107
107108
- name: Validate packaged version
108109
shell: bash
@@ -119,8 +120,18 @@ jobs:
119120
for package in "${packages[@]}"; do
120121
file_name=$(basename "$package")
121122
echo "Validating $file_name"
122-
if [[ "$file_name" != *".${VERSION}.nupkg" ]]; then
123-
echo "Package version mismatch: expected filename to end with .${VERSION}.nupkg"
123+
124+
case "$file_name" in
125+
ManagedCode.ClaudeCodeSharpSDK.Extensions.AgentFramework.*.nupkg)
126+
expected_suffix=".${VERSION}-rc4.nupkg"
127+
;;
128+
*)
129+
expected_suffix=".${VERSION}.nupkg"
130+
;;
131+
esac
132+
133+
if [[ "$file_name" != *"${expected_suffix}" ]]; then
134+
echo "Package version mismatch: expected filename to end with ${expected_suffix}"
124135
exit 1
125136
fi
126137
done
@@ -259,6 +270,7 @@ jobs:
259270
260271
- [ManagedCode.ClaudeCodeSharpSDK v$VERSION](https://www.nuget.org/packages/ManagedCode.ClaudeCodeSharpSDK/$VERSION)
261272
- [ManagedCode.ClaudeCodeSharpSDK.Extensions.AI v$VERSION](https://www.nuget.org/packages/ManagedCode.ClaudeCodeSharpSDK.Extensions.AI/$VERSION)
273+
- [ManagedCode.ClaudeCodeSharpSDK.Extensions.AgentFramework v$VERSION-rc4](https://www.nuget.org/packages/ManagedCode.ClaudeCodeSharpSDK.Extensions.AgentFramework/$VERSION-rc4)
262274
EOF
263275
)
264276
@@ -282,6 +294,7 @@ jobs:
282294
esac
283295
done
284296
297+
gh release edit "$TAG" --repo "$GITHUB_REPOSITORY" --notes "$NOTES"
285298
gh release upload "$TAG" "${packages[@]}" --repo "$GITHUB_REPOSITORY" --clobber
286299
else
287300
gh release create "$TAG" "${packages[@]}" \

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ dotnet add package ManagedCode.ClaudeCodeSharpSDK.Extensions.AI
5252
Optional Microsoft Agent Framework adapter:
5353

5454
```bash
55-
dotnet add package ManagedCode.ClaudeCodeSharpSDK.Extensions.AgentFramework
55+
dotnet add package ManagedCode.ClaudeCodeSharpSDK.Extensions.AgentFramework --prerelease
5656
```
5757

5858
## Prerequisites
@@ -201,6 +201,7 @@ Console.WriteLine(result.FinalResponse);
201201
## Microsoft Agent Framework
202202

203203
`ManagedCode.ClaudeCodeSharpSDK.Extensions.AgentFramework` is a thin Microsoft Agent Framework package over the existing `ClaudeChatClient`.
204+
It is currently published as a prerelease package because the upstream `Microsoft.Agents.AI` dependency is still prerelease.
204205

205206
```csharp
206207
using ManagedCode.ClaudeCodeSharpSDK.Extensions.AI;

docs/Features/agent-framework-integration.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Enable ClaudeCodeSharpSDK consumers to use Microsoft Agent Framework (`AIAgent`)
2121
- DI helpers `AddClaudeCodeAgent()` and `AddKeyedClaudeCodeAgent()`
2222
- composition of `ClaudeChatClient` with `Microsoft.Agents.AI` `ChatClientAgent`
2323
- README and docs updates showing direct `AsAIAgent(...)` and DI usage
24+
- prerelease package publishing while upstream `Microsoft.Agents.AI` remains prerelease
2425

2526
### Out of scope
2627

@@ -38,6 +39,7 @@ Enable ClaudeCodeSharpSDK consumers to use Microsoft Agent Framework (`AIAgent`)
3839
4. `AddKeyedClaudeCodeAgent()` MUST register keyed `IChatClient` and keyed `AIAgent` using the same service key.
3940
5. Agent configuration supplied through `ChatClientAgentOptions` MUST flow into the created agent without mutating Claude-specific chat client defaults.
4041
6. Claude provider metadata exposed through `ChatClientMetadata` MUST remain available from the agent-resolved chat client.
42+
7. `ManagedCode.ClaudeCodeSharpSDK.Extensions.AgentFramework` MUST be published as a prerelease package while its upstream `Microsoft.Agents.AI` dependency is prerelease.
4143

4244
---
4345

@@ -120,6 +122,7 @@ flowchart LR
120122
## Definition of Done
121123

122124
- `ManagedCode.ClaudeCodeSharpSDK.Extensions.AgentFramework` exists as a separate opt-in package
125+
- the package is published with a prerelease suffix while `Microsoft.Agents.AI` remains prerelease
123126
- direct `ClaudeChatClient` + `AsAIAgent(...)` usage is documented in `README.md`
124127
- DI helpers register non-keyed and keyed `AIAgent` instances over Claude chat clients
125128
- automated tests cover happy path and keyed-edge path registration behaviour

docs/Features/release-and-sync-automation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ Keep package quality and upstream Claude Code CLI parity automatically verified
4141
- Release workflow must read package version from `Directory.Build.props`.
4242
- Release workflow must validate semantic version format before packaging.
4343
- Test-only PRs, including PRs that only adjust submodule-backed upstream reference/tests and do not change SDK production code, must not trigger a package version bump; those changes are committed without creating a new release version.
44-
- Release workflow must pack and publish both NuGet packages:
44+
- Release workflow must pack and publish all NuGet packages:
4545
- `ManagedCode.ClaudeCodeSharpSDK`
4646
- `ManagedCode.ClaudeCodeSharpSDK.Extensions.AI`
47+
- `ManagedCode.ClaudeCodeSharpSDK.Extensions.AgentFramework`
48+
- Release workflow must treat `ManagedCode.ClaudeCodeSharpSDK.Extensions.AgentFramework` as a package-specific prerelease (`<Version>-rc4`) while core and `Extensions.AI` remain on the stable repository version.
4749
- Release workflow must use generated GitHub release notes.
4850
- Release workflow must create/push git tag `v<version>` before publishing GitHub release.
4951
- Claude Code CLI watch runs daily and opens an issue when upstream `anthropics/claude-code` changed since the pinned submodule SHA.

0 commit comments

Comments
 (0)