Skip to content

Add Onde.Code as a NuGet .NET tool - #8

Merged
setoelkahfi merged 1 commit into
mainfrom
feature/nuget-distribution
Nov 9, 2026
Merged

setoelkahfi merged 1 commit into
mainfrom
feature/nuget-distribution

Conversation

@setoelkahfi

Copy link
Copy Markdown
Contributor

Adds Onde.Code, a .NET tool that bundles the onde-code binaries, so the NuGet IDs match Onde.Cli, SiGit.Code and SmbCloud.*.

  • packaging/nuget/onde-code holds the launcher, csproj and README. The launcher picks the bundled binary for the host and inherits stdio, so ACP over a pipe and the terminal UI see the real handles. On Windows arm64 it exits with a clear message, since there is no build for it.
  • release-nuget.yml runs on the same v* tag as release-npm.yml. It checks the tag against Cargo.toml, builds the five targets with --bin onde-code (so fake-mcp-server stays out of the package), checks the static CRT on the Windows binary, smoke-tests the install on three OSes, and publishes with NuGet trusted publishing.
  • Docs: NuGet section in docs/install.md, a badge and install line in the README, and a paragraph under Releases in AGENTS.md.

Before the first publish:

  • nuget.org needs a trusted publishing policy for this repo and release-nuget.yml, with the scope "Push new packages and package versions".
  • The NUGET_USER repo secret needs the nuget.org profile name.

The package can't be published for v1.1.1, because packaging/nuget/ doesn't exist at that tag. The first NuGet publish ships with the next release tag.

Tested locally on macOS arm64: built the release binary, packed it, installed the tool into a temp --tool-path, and ran onde-code --version (prints 1.1.1) through the shim. A bad flag returns the same exit code through the shim as running the binary directly. actionlint is clean on the new workflow.

Onde.Cli, SiGit.Code and SmbCloud.* are on NuGet; onde-code was the odd
one out. packaging/nuget/onde-code is a launcher that picks the bundled
binary for the host and passes stdio through, so ACP over a pipe and the
terminal UI both still see the real handles.

release-nuget.yml runs on the same v* tag as the npm and GitHub
releases. It builds the five targets only (no Windows arm64, and the
launcher says so), builds just the onde-code bin so the test-only
fake-mcp-server stays out of the package, and publishes through NuGet
trusted publishing. The nuget.org policy and the NUGET_USER secret have
to exist before the first release.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@setoelkahfi setoelkahfi self-assigned this Nov 9, 2026
@setoelkahfi
setoelkahfi requested a review from paydii November 9, 2026 13:25
@setoelkahfi
setoelkahfi merged commit 3a57ddb into main Nov 9, 2026
5 checks passed
@setoelkahfi
setoelkahfi deleted the feature/nuget-distribution branch November 9, 2026 13:27
@setoelkahfi setoelkahfi mentioned this pull request Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants