From 38b91f204e9cbf0c3458766c5c6d75632858b02d Mon Sep 17 00:00:00 2001 From: Juan Castillo Date: Fri, 27 Nov 2026 08:00:58 -0500 Subject: [PATCH] Release 0.5.0a6 (NuGet with five runtimes and integrations; local mode tested on three OSes) Co-Authored-By: Claude Sonnet 5.5 --- CHANGELOG.md | 7 ++++++- README.es.md | 2 +- README.md | 2 +- clients/dotnet/Directory.Build.props | 2 +- clients/dotnet/smoke/Smoke.csproj | 4 ++-- clients/node/package-lock.json | 4 ++-- clients/node/package.json | 2 +- docs/PROTOCOL.md | 2 +- pyproject.toml | 2 +- uv.lock | 2 +- 10 files changed, 17 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 798921f..dca6cec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to sqlguardllm are documented here. The format follows [Keep ## [Unreleased] +## [0.5.0a6] - 2026-11-27 + +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 while `close()` waited for it to exit. `close()` now keeps the loop alive until the engine exits (at most 2 s). - .NET: `dotnet pack` failed with NU5123 once the engines were staged, and a RID-specific publish (`dotnet publish -r `, self-contained, single-file, container images) failed with NETSDK1152 or lost the engine folder, because the SDK flattens native assets. The package now ships `build/SqlGuardLlm.targets`, which keeps the `sqlguardllm-engine/` folder intact next to the app (#76). @@ -168,7 +172,8 @@ First alpha. Installed with `pip install sqlguardllm` and imported as `import sq - Table functions are rejected, even harmless ones like `generate_series`. - No command-line tool yet (planned for v0.2). -[Unreleased]: https://github.com/jmmana/sqlguardllm/compare/v0.5.0a5...HEAD +[Unreleased]: https://github.com/jmmana/sqlguardllm/compare/v0.5.0a6...HEAD +[0.5.0a6]: https://github.com/jmmana/sqlguardllm/compare/v0.5.0a5...v0.5.0a6 [0.5.0a5]: https://github.com/jmmana/sqlguardllm/compare/v0.5.0a4...v0.5.0a5 [0.5.0a4]: https://github.com/jmmana/sqlguardllm/compare/v0.5.0a3...v0.5.0a4 [0.5.0a3]: https://github.com/jmmana/sqlguardllm/compare/v0.5.0a2...v0.5.0a3 diff --git a/README.es.md b/README.es.md index 246662f..9a1752f 100644 --- a/README.es.md +++ b/README.es.md @@ -28,7 +28,7 @@ Tu modelo escribe SQL. **sqlguardllm** se asegura de que solo pueda leer lo perm > [!NOTE] -> **Estado: alfa.** La versión `0.5.0a5` está en [PyPI](https://pypi.org/project/sqlguardllm/) (`pip install sqlguardllm`, `import sqlguardllm`), con las reglas de [docs/DESIGN.md](docs/DESIGN.md), límites opcionales de complejidad y un corpus de desarrollo de 148 casos. La API puede cambiar antes de la 1.0; los códigos de violación son estables. Dale ⭐ para seguir el avance y opina en [Discussions](https://github.com/jmmana/sqlguardllm/discussions). +> **Estado: alfa.** La versión `0.5.0a6` está en [PyPI](https://pypi.org/project/sqlguardllm/) (`pip install sqlguardllm`, `import sqlguardllm`), con las reglas de [docs/DESIGN.md](docs/DESIGN.md), límites opcionales de complejidad y un corpus de desarrollo de 148 casos. La API puede cambiar antes de la 1.0; los códigos de violación son estables. Dale ⭐ para seguir el avance y opina en [Discussions](https://github.com/jmmana/sqlguardllm/discussions). > > La documentación técnica está en inglés para llegar a más desarrolladores. Los issues y PR en español son bienvenidos. diff --git a/README.md b/README.md index 58bcb02..365104c 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Your model writes SQL. **sqlguardllm** makes sure it can only read what it's all > [!NOTE] -> **Status: alpha.** `0.5.0a5` is on [PyPI](https://pypi.org/project/sqlguardllm/) (`pip install sqlguardllm`, `import sqlguardllm`), with the rules of [docs/DESIGN.md](docs/DESIGN.md), optional complexity limits and a 148-case development corpus. The API may still change before 1.0; violation codes are stable. ⭐ Star the repo to follow along, and tell us what you think in [Discussions](https://github.com/jmmana/sqlguardllm/discussions). +> **Status: alpha.** `0.5.0a6` is on [PyPI](https://pypi.org/project/sqlguardllm/) (`pip install sqlguardllm`, `import sqlguardllm`), with the rules of [docs/DESIGN.md](docs/DESIGN.md), optional complexity limits and a 148-case development corpus. The API may still change before 1.0; violation codes are stable. ⭐ Star the repo to follow along, and tell us what you think in [Discussions](https://github.com/jmmana/sqlguardllm/discussions). --- diff --git a/clients/dotnet/Directory.Build.props b/clients/dotnet/Directory.Build.props index 44b7136..07be40f 100644 --- a/clients/dotnet/Directory.Build.props +++ b/clients/dotnet/Directory.Build.props @@ -2,7 +2,7 @@ - 0.5.0-alpha.5 + 0.5.0-alpha.6 true true diff --git a/clients/dotnet/smoke/Smoke.csproj b/clients/dotnet/smoke/Smoke.csproj index 1cc03aa..0104ab3 100644 --- a/clients/dotnet/smoke/Smoke.csproj +++ b/clients/dotnet/smoke/Smoke.csproj @@ -1,12 +1,12 @@ + Restore with the version just packed: dotnet publish -p:SqlGuardLlmVersion=0.5.0-alpha.6 -r ... --> Exe net10.0 enable enable - 0.5.0-alpha.5 + 0.5.0-alpha.6 false diff --git a/clients/node/package-lock.json b/clients/node/package-lock.json index 2d3281a..1e90706 100644 --- a/clients/node/package-lock.json +++ b/clients/node/package-lock.json @@ -1,12 +1,12 @@ { "name": "sqlguardllm", - "version": "0.5.0-alpha.5", + "version": "0.5.0-alpha.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "sqlguardllm", - "version": "0.5.0-alpha.5", + "version": "0.5.0-alpha.6", "license": "Apache-2.0", "devDependencies": { "@types/node": "^22.0.0", diff --git a/clients/node/package.json b/clients/node/package.json index aefaad4..f908df5 100644 --- a/clients/node/package.json +++ b/clients/node/package.json @@ -1,6 +1,6 @@ { "name": "sqlguardllm", - "version": "0.5.0-alpha.5", + "version": "0.5.0-alpha.6", "description": "Official Node.js/TypeScript client for the sqlguardllm SQL firewall server", "license": "Apache-2.0", "repository": { diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md index b292701..c996135 100644 --- a/docs/PROTOCOL.md +++ b/docs/PROTOCOL.md @@ -24,7 +24,7 @@ Every request has an `id` (string or integer) and a `type`; the response echoes ``` → {"id": 1, "type": "hello"} -← {"id": 1, "type": "hello", "protocol": 1, "engine_version": "0.5.0a5", "dialects": ["bigquery", …]} +← {"id": 1, "type": "hello", "protocol": 1, "engine_version": "0.5.0a6", "dialects": ["bigquery", …]} → {"id": 2, "type": "load_policy", "policy": {"dialect": "postgres", "tables": ["invoices"]}} ← {"id": 2, "type": "load_policy", "handle": "p1"} → {"id": 3, "type": "check", "handle": "p1", "sql": "SELECT id FROM invoices", "context": null} diff --git a/pyproject.toml b/pyproject.toml index d25ef40..b4b1993 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sqlguardllm" -version = "0.5.0a5" +version = "0.5.0a6" description = "The SQL firewall for LLM apps: validate SQL written by AI and rewrite it read-only, allowlisted, row-filtered and limited." readme = "docs/pypi.md" requires-python = ">=3.10" diff --git a/uv.lock b/uv.lock index fc9c60d..d8cce24 100644 --- a/uv.lock +++ b/uv.lock @@ -3130,7 +3130,7 @@ wheels = [ [[package]] name = "sqlguardllm" -version = "0.5.0a5" +version = "0.5.0a6" source = { editable = "." } dependencies = [ { name = "sqlglot" },