Repository navigation
sqlguardllm 0.5.0a6
Pre-release
Pre-release
The NuGet package now carries the engine for five runtimes and the integrations package is published with it; Node and .NET local mode are tested on Linux, macOS and Windows.
Fixed
- Node.js: a program that ends with a top-level
await guard.close()on a local-mode guard exited with an unsettled await (code 13), because the engine process is unref'd and nothing kept the event loop alive whileclose()waited for it to exit.close()now keeps the loop alive until the engine exits (at most 2 s). - .NET:
dotnet packfailed with NU5123 once the engines were staged, and a RID-specific publish (dotnet publish -r <rid>, self-contained, single-file, container images) failed with NETSDK1152 or lost the engine folder, because the SDK flattens native assets. The package now shipsbuild/SqlGuardLlm.targets, which keeps thesqlguardllm-engine/folder intact next to the app (#76). - The NuGet release job pushed
SqlGuardLlmwithout the engines (nothing staged them) and did not push the integration packages (#76, #79).
Added
- .NET release and CI (#76, #77, #79):
clients/dotnet/build/stage-engines.py(it was documented but missing) stages the attested engine archives with anengine.sha256manifest and fails when the package passes 150 MB;clients/dotnet/Directory.Build.propsholds one version for the four packages, with SourceLink, deterministic builds and.snupkgsymbols for all of them, andrelease.ymlchecks it against the engine release, verifies the engine archives, packs and pushesSqlGuardLlm,SqlGuardLlm.Extensions,SqlGuardLlm.EntityFrameworkCoreandSqlGuardLlm.SemanticKernel, after a consumer project restored the packed package and started its engine.dotnet-client.ymlnow runs the unit tests and the whole conformance corpus in local mode on Linux, macOS and Windows (a missing engine fails instead of skipping), and apackagejob builds the engine of each platform, packs, and runsclients/dotnet/smokewithdotnet run,dotnet publish -r <rid>(framework-dependent, self-contained single-file, trimmed and Native AOT with trimming and AOT warnings as errors), a tampered-engine check and, on Linux, a container image. - Node.js recipes (#74): the
Recipesworkflow has anode-recipesjob that runsexamples/nodewith the real engine in local mode on SQLite and on a PostgreSQL 16 service container.examples/node/run.mjsand the tests acceptSQLGUARD_ENGINE_CMD. - Node.js and .NET guides, quickstart pointers, package chooser and READMEs (English and Spanish) now describe the embedded engine (
SqlGuard.local,SqlGuard.CreateLocalAsync) as the default path and the server as the remote mode. - .NET integrations (#78).
SqlGuardLlm.Extensions(services.AddSqlGuard(...)with options bound from configuration, ADO.NET and Dapper helpers, a Microsoft.Extensions.AIGuardedSqlFunction),SqlGuardLlm.EntityFrameworkCore(aDbCommandInterceptorthat enforces raw SQL) andSqlGuardLlm.SemanticKernel(a function invocation filter), plus runnable examples inexamples/dotnet/. - Node.js recipes (#74) in
examples/node/: a guardedsql_db_querytool for LangChain.js, a guardedtool()for the Vercel AI SDK and runners forpg,mysql2and Prisma$queryRawUnsafe, all throughenforce(), with SQLite and (withDATABASE_URL) PostgreSQL tests. Seedocs/RECIPES.md.