agentprdiff 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/CHANGELOG.md +21 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/PKG-INFO +1 -1
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/pyproject.toml +1 -1
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/__init__.py +11 -1
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/.gitignore +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/LICENSE +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/README.md +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/examples/quickstart/README.md +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/examples/regression-tour/README.md +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/adapters/__init__.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/adapters/anthropic.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/adapters/openai.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/adapters/pricing.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/cli.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/core.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/differ.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/filtering.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/graders/__init__.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/graders/deterministic.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/graders/semantic.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/loader.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/reporters.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/runner.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/scaffold.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/src/agentprdiff/store.py +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/studio/README.md +0 -0
- {agentprdiff-0.3.0 → agentprdiff-0.3.1}/studio/backend/README.md +0 -0
|
@@ -8,6 +8,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.3.1] — 2026-05-17
|
|
12
|
+
|
|
13
|
+
Patch release. Fixes a long-standing drift between `pyproject.toml`'s
|
|
14
|
+
`version` field and the in-code `__version__` constant: the constant
|
|
15
|
+
in `src/agentprdiff/__init__.py` was hardcoded and got out of sync at
|
|
16
|
+
every release (0.3.0 shipped while still reporting "0.2.5" via
|
|
17
|
+
`agentprdiff.__version__`, even though `pip show` correctly read
|
|
18
|
+
"0.3.0" from the wheel metadata).
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- `agentprdiff.__version__` is now read from the installed package
|
|
23
|
+
metadata via `importlib.metadata.version("agentprdiff")` instead of
|
|
24
|
+
a hardcoded string. The runtime constant matches the wheel metadata
|
|
25
|
+
by construction; no human step can let them drift again. Falls back
|
|
26
|
+
to `"0+unknown"` when running from an uninstalled source checkout.
|
|
27
|
+
|
|
28
|
+
This is purely a metadata fix — no behavior change, no API additions,
|
|
29
|
+
no removed APIs. The `set_default_model()` hook from 0.3.0 is
|
|
30
|
+
unchanged.
|
|
31
|
+
|
|
11
32
|
## [0.3.0] — 2026-05-17
|
|
12
33
|
|
|
13
34
|
Adds a model-override hook on the adapters package. This unblocks
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentprdiff
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Guard your LLM agents in CI. Snapshot tests that catch behavioral regressions when models, prompts, or vendors change.
|
|
5
5
|
Project-URL: Homepage, https://agentprdiff.dev
|
|
6
6
|
Project-URL: Documentation, https://agentprdiff.dev
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "agentprdiff"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.1"
|
|
8
8
|
description = "Guard your LLM agents in CI. Snapshot tests that catch behavioral regressions when models, prompts, or vendors change."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -50,6 +50,8 @@ See ``docs/adapters.md`` for the full reference.
|
|
|
50
50
|
|
|
51
51
|
from __future__ import annotations
|
|
52
52
|
|
|
53
|
+
from importlib.metadata import PackageNotFoundError, version as _pkg_version
|
|
54
|
+
|
|
53
55
|
from .core import (
|
|
54
56
|
AgentFn,
|
|
55
57
|
Case,
|
|
@@ -67,7 +69,15 @@ from .differ import AssertionChange, TraceDelta, diff_traces
|
|
|
67
69
|
from .runner import CaseReport, Runner, RunReport
|
|
68
70
|
from .store import BaselineStore
|
|
69
71
|
|
|
70
|
-
|
|
72
|
+
# Source of truth is pyproject.toml's [project] version. Reading it here
|
|
73
|
+
# means the runtime constant can never drift from the wheel metadata; the
|
|
74
|
+
# fallback covers the "running from a source checkout that wasn't pip
|
|
75
|
+
# installed" case (e.g. `python -m pytest` on a fresh clone before
|
|
76
|
+
# `pip install -e .`).
|
|
77
|
+
try:
|
|
78
|
+
__version__ = _pkg_version("agentprdiff")
|
|
79
|
+
except PackageNotFoundError: # pragma: no cover — only hit in source-tree runs
|
|
80
|
+
__version__ = "0+unknown"
|
|
71
81
|
|
|
72
82
|
__all__ = [
|
|
73
83
|
# core
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|