mirror of
https://github.com/hanzo-csharp/sdk.git
synced 2026-11-15 01:32:19 +00:00
Every /v1 operation the gateway serves as a typed method, generated by hanzoai/openapi's driver from its `csharp` row (openapi-generator 7.14.0, httpclient library). Published as `Hanzo` on nuget.org, namespace Hanzo.AI. The repo owns the csproj, Gateway.cs (endpoint, bearer and X-Org-Id from the environment), seven wire tests against a stub transport, and the six flows every Hanzo SDK carries. hanzo.yml gates all three and puts the repo on the client lane; release.yml pushes a version nuget.org does not yet serve. scripts/dotnet installs a .NET 10 SDK where a runner has none.
8 lines
294 B
Bash
Executable File
8 lines
294 B
Bash
Executable File
#!/bin/sh
|
|
# Print the version src/Hanzo.AI/Hanzo.AI.csproj publishes. The one reader
|
|
# of it: hanzoai/ci's cut (hanzo.yml client.version) and the release workflow
|
|
# both ask this script.
|
|
set -eu
|
|
cd "$(dirname "$0")/.."
|
|
sed -n 's:.*<Version>\(.*\)</Version>.*:\1:p' src/Hanzo.AI/Hanzo.AI.csproj
|