From ae23e2e2ace2068b328540a6f60cadf90a4b655b Mon Sep 17 00:00:00 2001 From: Hibou04-ops Date: Wed, 6 May 2026 18:13:01 +0900 Subject: [PATCH] chore: bump version 1.5.0 -> 1.6.0 (Gemini 2.5 Flash provider release) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #23 added the real Gemini 2.5 Flash adapter (replacing the placeholder); 1.5.0 ships as placeholder, so the Gemini-enabled release goes out as 1.6.0. Live verification: anthropic ✅, gemini ✅. OpenAI not verified due to user-side key issue (provider code unchanged). Co-Authored-By: Claude Opus 4.7 (1M context) --- CHANGELOG.md | 25 +++++++++++++++++++++++++ pyproject.toml | 2 +- src/omegaprompt/__init__.py | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 801c138..8a9d29a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ## [Unreleased] +## [1.6.0] - 2026-05-06 + +### Added + +- **Real Gemini 2.5 Flash provider** (replaces the prior placeholder). Uses the official Google GenAI SDK (`google-genai`) with freeform / JSON-object / strict-schema (`response_schema`) request paths plus local Pydantic validation. Default model: `gemini-2.5-flash`. Live single-call smoke test verified against `gemini-2.5-flash` (input_tokens=21, output_tokens=2 normalized correctly). +- **Capability declaration**: `tier=cloud`, `supports_strict_schema=True`, `supports_json_object=True`, `supports_llm_judge=True`, `ship_grade_judge=False` — guarded judge use requires separate validation; expedition profile may fall back to JSON-object output + local validation with a `CapabilityEvent`. +- **Env key resolution**: `_ENV_KEYS_FOR_PROVIDER` accepts `GEMINI_API_KEY` or `GOOGLE_API_KEY` (tuple form, per-provider). +- **`google-genai>=1.0.0` dependency** added to base `dependencies`; new `gemini` extra for slim installs. + +### Changed + +- `normalize_usage` handles Gemini's `prompt_token_count` / `candidates_token_count` / `total_token_count` fields in addition to OpenAI/Anthropic field names. +- README provider matrix, capability table, and sample commands updated to describe the real adapter. +- `LLMProvider` Protocol unchanged — Anthropic/OpenAI/local adapters are not modified in this release. + +### Test + +- 41 provider tests pass (mock-based for all three vendors). +- Live verification: Anthropic ✅ (claude-opus-4-7), Gemini ✅ (gemini-2.5-flash). OpenAI not verified due to user-side API key issue (provider code unchanged from 1.5.0). + +### Notes + +- Reasoning profiles (`LIGHT`/`DEEP`) emit a `CapabilityEvent` for Gemini because this adapter does not map them to a native Gemini control. `OFF` / `STANDARD` work without events. +- Gemini judge is not marked `ship_grade_judge=True`. Validate independently before treating Gemini-judged artifacts as ship-ready under guarded mode. + ## [1.4.0] - 2026-04-29 IP defense package + cross-toolkit AGENT_TRIGGERS guide. Same eight runtime entrypoints + MCP server as 1.3.0; this release ships the previously-out-of-tree authorship and trigger artefacts inside the PyPI sdist for parity with the rest of the toolkit and adds the canonical agent-trigger cookbook. diff --git a/pyproject.toml b/pyproject.toml index e939094..ec2538f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "omegaprompt" -version = "1.5.0" +version = "1.6.0" description = "Provider-neutral prompt calibration engine with sensitivity-ranked meta-axes, hard-gate x soft-score fitness, walk-forward ship gates, guarded/expedition profiles, and explicit capability/risk reporting across Anthropic, OpenAI, Gemini, and local OpenAI-compatible backends. Optional sub-tools (mini-omega-lock, mini-antemortem-cli) distribute separately and plug in via the omegaprompt.preflight interface." readme = "README.md" requires-python = ">=3.11" diff --git a/src/omegaprompt/__init__.py b/src/omegaprompt/__init__.py index 9f9d9f5..7361813 100644 --- a/src/omegaprompt/__init__.py +++ b/src/omegaprompt/__init__.py @@ -108,7 +108,7 @@ report, ) -__version__ = "1.5.0" +__version__ = "1.6.0" __all__ = [ # domain