Skip to content

Commit 5384842

Browse files
committed
Release unplug-ai 0.4.0
1 parent 8ce3ffa commit 5384842

7 files changed

Lines changed: 30 additions & 7 deletions

File tree

‎.github/actions/unplug-scan/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
base-ref: main
2929
install-mode: pypi
30-
unplug-version: ">=0.3.1,<0.4"
30+
unplug-version: ">=0.4.0,<0.5"
3131
```
3232
3333
## Inputs
@@ -38,7 +38,7 @@ jobs:
3838
| `python-version` | `3.12` | Python version |
3939
| `working-directory` | `sdk` | Path to SDK tree when `install-mode: local` |
4040
| `install-mode` | `local` | `local` (uv sync) or `pypi` (install from PyPI) |
41-
| `unplug-version` | `>=0.3.1,<0.4` | Version constraint for PyPI install |
41+
| `unplug-version` | `>=0.4.0,<0.5` | Version constraint for PyPI install |
4242

4343
## What gets scanned
4444

‎.github/actions/unplug-scan/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ inputs:
2121
unplug-version:
2222
description: PyPI version constraint when install-mode is pypi
2323
required: false
24-
default: ">=0.3.1,<0.4"
24+
default: ">=0.4.0,<0.5"
2525

2626
runs:
2727
using: composite

‎.github/workflows/reusable-agent-scan.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
description: PyPI version when install-mode is pypi
1818
required: false
1919
type: string
20-
default: ">=0.3.1,<0.4"
20+
default: ">=0.4.0,<0.5"
2121

2222
permissions:
2323
contents: read

‎CHANGELOG.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,29 @@ All notable changes to the `unplug-ai` SDK.
44

55
## [Unreleased]
66

7+
## [0.4.0] — 2026-06-24
8+
9+
### Added
10+
11+
- `ScanResult.degraded` and `ScanResult.degraded_layers` — surface when configured protection layers were unavailable
12+
- Token privacy filter (`build_privacy_filter`, `ModelPrivacyFilter`, `HeuristicPrivacyFilter`) behind optional `presidio` / ML extras
13+
- `MIGRATION.md` — API stability tiers, deprecated import paths, and v1.0 removal timeline
14+
- `refresh_scan_result` stable export at `unplug.api.results`
15+
- README benchmark table separating regex-only vs ML recall-gate metrics
16+
- `with_tiny()` recall-gate preset tuned for higher ML recall on injection
17+
18+
### Fixed
19+
20+
- Privacy filter thread-safe model load and `max_length` forwarding
21+
- Benchmark ML guard pipeline isolation and exfil demo output edge cases
22+
23+
### Changed
24+
25+
- Flat `unplug.core.*` shim imports emit `DeprecationWarning`; canonical subpackages are preferred
26+
- `unplug.guard_scan` emits deprecation warning — use `unplug.api.results`
27+
- Judge default model updated to `gpt-5.4-nano`
28+
- Audit remediation bundle (#41–#42): degradation metadata, privacy filter, scan CLI hardening
29+
730
## [0.3.1] — 2026-06-13
831

932
### Added

‎sdk/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "unplug-ai"
3-
version = "0.3.1"
3+
version = "0.4.0"
44
description = "Unplug the bad AI. Fast prompt injection detection and redaction for LLM apps, agents, and RAG pipelines."
55
readme = "README.md"
66
license = "Apache-2.0"

‎sdk/src/unplug/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
# Single source of truth is pyproject.toml; avoids version drift.
7474
__version__ = _pkg_version("unplug-ai")
7575
except PackageNotFoundError: # not installed (e.g. running from a source checkout)
76-
__version__ = "0.3.1"
76+
__version__ = "0.4.0"
7777

7878

7979
def __getattr__(name: str) -> object:

‎sdk/uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)