From 275f2f829c9c60a5146f5199fe16df1d41653191 Mon Sep 17 00:00:00 2001 From: Juan Castillo Date: Fri, 27 Nov 2026 08:59:46 -0500 Subject: [PATCH] Release 0.5.0a7 (fix the macOS engine packages on npm) Co-Authored-By: Claude Sonnet 5.5 --- CHANGELOG.md | 8 ++++++-- 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(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 772373f..bb1817a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,13 @@ All notable changes to sqlguardllm are documented here. The format follows [Keep ## [Unreleased] +## [0.5.0a7] - 2026-11-27 + +Fixes the macOS engine packages on npm (they could not run after `npm install`); see Fixed. + ### Fixed - **npm: the macOS engine packages could not run.** npm does not keep symlinks in packages, and the macOS engine (Python.framework) has four, so after `npm install` its digest no longer matched the built-in one and the client refused to start it (`engine_digest_mismatch`). The packages now carry real copies instead of symlinks, and CI unpacks every packed platform package and checks the digest of the installed engine, which a file list cannot show. Affects 0.5.0-alpha.5 and 0.5.0-alpha.6 on macOS (Linux and Windows were not affected). - ## [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. @@ -176,7 +179,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.0a6...HEAD +[Unreleased]: https://github.com/jmmana/sqlguardllm/compare/v0.5.0a7...HEAD +[0.5.0a7]: https://github.com/jmmana/sqlguardllm/compare/v0.5.0a6...v0.5.0a7 [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 diff --git a/README.es.md b/README.es.md index 9a1752f..4ef949f 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.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). +> **Estado: alfa.** La versión `0.5.0a7` 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 365104c..4ac2a9c 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.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). +> **Status: alpha.** `0.5.0a7` 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 07be40f..3eab81f 100644 --- a/clients/dotnet/Directory.Build.props +++ b/clients/dotnet/Directory.Build.props @@ -2,7 +2,7 @@ - 0.5.0-alpha.6 + 0.5.0-alpha.7 true true diff --git a/clients/dotnet/smoke/Smoke.csproj b/clients/dotnet/smoke/Smoke.csproj index 0104ab3..0dd1156 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.7 -r ... --> Exe net10.0 enable enable - 0.5.0-alpha.6 + 0.5.0-alpha.7 false diff --git a/clients/node/package-lock.json b/clients/node/package-lock.json index 1e90706..8edc52a 100644 --- a/clients/node/package-lock.json +++ b/clients/node/package-lock.json @@ -1,12 +1,12 @@ { "name": "sqlguardllm", - "version": "0.5.0-alpha.6", + "version": "0.5.0-alpha.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "sqlguardllm", - "version": "0.5.0-alpha.6", + "version": "0.5.0-alpha.7", "license": "Apache-2.0", "devDependencies": { "@types/node": "^22.0.0", diff --git a/clients/node/package.json b/clients/node/package.json index f908df5..e4dc27d 100644 --- a/clients/node/package.json +++ b/clients/node/package.json @@ -1,6 +1,6 @@ { "name": "sqlguardllm", - "version": "0.5.0-alpha.6", + "version": "0.5.0-alpha.7", "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 c996135..914f67d 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.0a6", "dialects": ["bigquery", …]} +← {"id": 1, "type": "hello", "protocol": 1, "engine_version": "0.5.0a7", "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 b4b1993..6e8bc97 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sqlguardllm" -version = "0.5.0a6" +version = "0.5.0a7" 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 d8cce24..bb70874 100644 --- a/uv.lock +++ b/uv.lock @@ -3130,7 +3130,7 @@ wheels = [ [[package]] name = "sqlguardllm" -version = "0.5.0a6" +version = "0.5.0a7" source = { editable = "." } dependencies = [ { name = "sqlglot" },