Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

Release v0.32.1

Louis Choquel4f459dad40ce
diff --git a/.badges/tests.json b/.badges/tests.json
index 58ae3c78e..c9da1c30f 100644
--- a/.badges/tests.json
+++ b/.badges/tests.json
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"label": "tests",
- "message": "6886",
+ "message": "6899",
"color": "blue",
"cacheSeconds": 300
}
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e7d4801de..e832ed49b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,11 +1,19 @@
# Changelog
-## [Unreleased]
+## [v0.32.1] - 2026-06-09
### Added
- **`render_cost_report_for_output(pipe_output)` submitter helper.** A one-arg convenience over `render_run_cost_report` that unpacks `pipeline_run_id` and `tokens_usages` from a finished `PipeOutput` and derives the `--costs` gate from the output itself — `pipe_output.tokens_usages is None` is exactly the signal that cost reporting was off for the run, the decision the runner already resolved (with all `--costs/--no-costs` overrides applied) and recorded on the output. Embedders and the `pipelex run` CLI no longer re-derive the three primitive arguments by hand or re-read global config to reconstruct the gate. `render_run_cost_report` is unchanged as the low-level primitive for paths where the three values come from different places (the agent CLI's `build_cost_summary` JSON envelope, distributed reassembly).
+### Changed
+
+- **`typer` is now capped (`>=0.16,<0.27`).** pipelex subclasses typer's `TyperGroup` and overrides `make_context`, so it is coupled to typer/click internals and a future typer minor can break the CLI. The cap is tested through 0.26; a new dependency-canary CI job resolves the latest dependencies on a schedule so the bound is bumped deliberately rather than discovered in a user's install.
+
+### Fixed
+
+- **CLI no longer crashes under newer typer/click.** Every `pipelex` subcommand (`build`, `run`, `validate`, `init`, `worker`, …) raised `RuntimeError: There is no active click context` and exited 1 when run against `typer >= 0.26` / `click >= 8.4` — the versions a fresh `pip install pipelex` resolves. The root `app_callback` fetched the context via the global `click.get_current_context()` instead of the `ctx` Typer already injects; the global context stack isn't populated when a subcommand is dispatched under those versions. It now uses the injected `ctx`, which is version-robust. The sibling `--traceback` flag had the same flaw — `is_traceback_requested()` read it via `click.get_current_context()`, so under those versions it was silently ignored on handled errors — and is now recorded at parse time in a context-independent flag. A subprocess CLI smoke test (`tests/unit/pipelex/cli/test_cli_entrypoint_smoke.py`) guards every subcommand against regressing.
+
## [v0.32.0] - 2026-06-09
This cycle reworks **cost reporting** so it survives distributed execution and stops leaking. Cost now rides on the run result instead of a side buffer: a multi-worker Temporal run aggregates usage from every worker into a single end-of-run report, the success-path registry leak is gone by removal, and a new `--costs` switch decouples cost collection from `--graph`. It also extracts the **framework-agnostic runtime bridge** so any host runtime — not just Mistral Workflows — can embed Pipelex through one boundary.
@@ -38,12 +46,8 @@ This cycle reworks **cost reporting** so it survives distributed execution and s
- **Temporal `act_assemble_graph` renamed to `act_assemble_tracing`.** It now assembles both the graph (`GraphSpec`) and usage (`tokens_usages`) from a single trace-event read, gated per concern by the run's `--graph` / `--costs` flags.
-- **`typer` is now capped (`>=0.16,<0.27`).** pipelex subclasses typer's `TyperGroup` and overrides `make_context`, so it is coupled to typer/click internals and a future typer minor can break the CLI. The cap is tested through 0.26; a new dependency-canary CI job resolves the latest dependencies on a schedule so the bound is bumped deliberately rather than discovered in a user's install.
-
### Fixed
-- **CLI no longer crashes under newer typer/click.** Every `pipelex` subcommand (`build`, `run`, `validate`, `init`, `worker`, …) raised `RuntimeError: There is no active click context` and exited 1 when run against `typer >= 0.26` / `click >= 8.4` — the versions a fresh `pip install pipelex` resolves. The root `app_callback` fetched the context via the global `click.get_current_context()` instead of the `ctx` Typer already injects; the global context stack isn't populated when a subcommand is dispatched under those versions. It now uses the injected `ctx`, which is version-robust. The sibling `--traceback` flag had the same flaw — `is_traceback_requested()` read it via `click.get_current_context()`, so under those versions it was silently ignored on handled errors — and is now recorded at parse time in a context-independent flag. A subprocess CLI smoke test (`tests/unit/pipelex/cli/test_cli_entrypoint_smoke.py`) guards every subcommand against regressing.
-
- **Docs deploy crashed on a fresh runner with `InferenceSetupRequiredError`.** `pipelex-dev generate-error-pages` (a prerequisite of every `docs-*` make target) bootstrapped Pipelex with `needs_inference=True`, so on a CI runner with the gateway enabled but no on-disk service config it hit the first-run inference-setup gate and exited non-zero — breaking the `Deploy docs` workflow on `main`. The command only introspects `PipelexError` subclasses to write markdown and never calls inference, so it now bootstraps with `needs_inference=False`.
- **`UsageRegistry` success-path leak.** The per-run cost registry was opened during run setup but closed only on the failure path, so every successful run leaked its registry — and in a long-lived process (e.g. the Pipelex API) reusing a `pipeline_run_id` could collide on the orphaned registry. The registry is removed entirely, so the leak is structurally impossible.
diff --git a/pyproject.toml b/pyproject.toml
index 761df5de8..0835cbbfb 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "pipelex"
-version = "0.32.0"
+version = "0.32.1"
description = "Execute composable AI methods declared in the MTHDS open standard"
authors = [{ name = "Evotis S.A.S.", email = "[email protected]" }]
maintainers = [{ name = "Pipelex staff", email = "[email protected]" }]
diff --git a/uv.lock b/uv.lock
index d42cbc249..e1c776b08 100644
--- a/uv.lock
+++ b/uv.lock
@@ -3692,7 +3692,7 @@ wheels = [
[[package]]
name = "pipelex"
-version = "0.32.0"
+version = "0.32.1"
source = { editable = "." }
dependencies = [
{ name = "aiofiles" },