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.

Update graph viewer assets to mthds-ui 0.10.0 (#1010)

Louis Choquel36e6e89113a7
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 32e9a32b8..e2979f027 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,21 +2,24 @@
## [Unreleased]
+### Highlights
+
+- **Orchestration plugin SPI** — Pipelex opens its execution path to pluggable orchestrators: the orchestrator that runs a job is now chosen per call by an open `orchestration_mode` token, with the core shipping an in-process `direct` orchestrator and the contract ready for plugins to supply distributed backends.
+ - **Orchestration plugin contract (`orchestration_mode` + `DeliveryMode`)**: The contract is built on two independent axes — an open `orchestration_mode` token (which orchestrator runs the job — `direct` in core, other modes supplied by plugins) and a closed `DeliveryMode` enum (the wait-semantics axis — `BLOCKING` / `FIRE_AND_FORGET`). An orchestrator plugin implements `OrchestratorProtocol.run` with a required `delivery: DeliveryMode` keyword and declares a `supports_fire_and_forget: bool` capability; the orchestrator registries are keyed by the `orchestration_mode` token. `PipelexPipeRunInput` carries `orchestration_mode` + `delivery`.
+ - **Orchestrator-dispatched `/validate`**: A new per-call bundle-validator seam (`BundleValidatorProtocol` / `BundleValidatorRegistry`) makes `/validate` dispatch by `orchestration_mode` the way `/start` runs a pipe — `direct` validates in-process, distributed modes dispatch the job to a worker — with a byte-identical verdict across backends. The core `direct` plugin registers an in-process `DirectBundleValidator`.
+ - **Honest fire-and-forget delivery**: A fire-and-forget `/start` request is honored only when the resolved orchestrator can do genuine async; an orchestrator that cannot (e.g. the in-process `direct` mode) returns a 4xx rather than running the job to completion and falsely acking.
+
### Added
-- **Orchestrator-dispatched `/validate`:** A new per-call bundle-validator seam (`BundleValidatorProtocol` / `BundleValidatorRegistry`) makes `/validate` dispatch by `orchestration_mode` the way `/start` runs a pipe — `direct` validates in-process, distributed modes dispatch the job to a worker — with a byte-identical verdict across backends. The core `direct` plugin registers an in-process `DirectBundleValidator`.
- **Explicit graph targets for validation:** Graph generation during validation and dry runs now accepts an explicit `pipe_code` target, so developers can generate graphs for a specific pipe in a bundle even when no `main_pipe` is declared. This is wired through the CLI (`validate bundle --pipe <target> --graph`/`--view`), `dry_run_pipeline`, `generate_graph_for_bundle`, `generate_view_for_bundle`, and `PipelexMTHDSProtocol.validate(extra={"graph_pipe_code": "..."})`.
- **GraphSpec source path enrichment:** `GraphSpec` artifacts now include the declaration `source` file path for pipes and concepts in `pipe_registry` and `concept_registry`, powered by `LibraryCrate.source_map`.
- **CI/environment heartbeats:** Added `WAIT_WITH_HEARTBEAT` and `RUN_WITH_HEARTBEAT` Makefile macros that emit a periodic heartbeat (default every 20s) to prevent CI runners and sandboxes from timing out during long tasks; applied to the `agent-test`, `pyright`, `mypy`, and `pylint` targets.
- **Developer guidelines:** Expanded `python_standards.md` with rules on filesystem paths (`pathlib.Path` over `str`/`os.path`), data-holder shapes (`NamedTuple` vs. `pydantic.dataclasses` vs. `BaseModel`), keyword-only arguments (enforced via `make cko`/`make fko`), and custom exception placement (`exceptions.py` or `<topic>_exceptions.py`).
-- **Architecture docs:** Added design documents `wip/graph/graphspec-source-map-enrichment.md` and `wip/graph/validate-explicit-graph-target.md` covering the new graph validation features.
-- **Environment config:** Added an autogenerated `.codex/environments/environment.toml` to standardize the `pipelex` environment setup.
### Changed
-- **Orchestration & Delivery split (pre-1.0 breaking, plugin SPI):** The flat execution-mode axis is split into an open `orchestration_mode` token (which orchestrator runs the job — `direct` in core, other modes supplied by plugins) and a closed `DeliveryMode` enum (the wait-semantics axis — `BLOCKING` / `FIRE_AND_FORGET`). The orchestrator plugin contract changes accordingly: `OrchestratorProtocol.run` now takes a required `delivery: DeliveryMode` keyword, an orchestrator must declare a `supports_fire_and_forget: bool` capability, and the registries are re-keyed by the open `orchestration_mode` token (the former `PipelexExecutionMode` enum is removed). A plugin built against the prior contract is incompatible and must be rebuilt. `PipelexPipeRunInput` now carries `orchestration_mode` + `delivery`.
-- **Honest fire-and-forget rejection:** `/start` now rejects a fire-and-forget request when the resolved orchestrator cannot do genuine async (e.g. the in-process `direct` mode), returning a 4xx instead of silently running to completion and falsely acking.
- **`dry_run_pipeline` return shape:** `dry_run_pipeline` now returns the fully resolved, domain-qualified pipe reference alongside the `GraphSpec`.
+- **Graph viewer assets bumped:** The CDN-pinned `@pipelex/mthds-ui` graph viewer used by the generated ReactFlow HTML is upgraded from `0.6.4` to `0.11.0`, with refreshed Subresource Integrity hashes. `0.11.0` adds `PipeStructure` to the viewer's recognized pipe types, so graphs containing a `PipeStructure` node (e.g. from the `preliminary_text` structuring path) render instead of showing the GraphSpec validation error screen.
### Fixed
diff --git a/pipelex/graph/reactflow/standalone_assets.py b/pipelex/graph/reactflow/standalone_assets.py
index 84e5eba80..f0e282673 100644
--- a/pipelex/graph/reactflow/standalone_assets.py
+++ b/pipelex/graph/reactflow/standalone_assets.py
@@ -24,17 +24,17 @@ class CDNAsset(BaseModel):
crossorigin: Literal["anonymous", "use-credentials"] = "anonymous"
-MTHDS_UI_VERSION = "0.6.4"
+MTHDS_UI_VERSION = "0.11.0"
ELKJS_VERSION = "0.11.1"
MTHDS_UI_JS = CDNAsset(
url=f"https://cdn.jsdelivr.net/npm/@pipelex/mthds-ui@{MTHDS_UI_VERSION}/dist/standalone/graph-viewer.js",
- integrity="sha384-Ji9Rm7swvsWO7j8GL/y4AgRIkpPFLnWb8BokurqkzDxzTy0pTaasYLCNJyMCilqY",
+ integrity="sha384-bn4wTUdVghyTZThZlUwPknWCtiDDDSnB94AH9/WS7P6Zb2O7x2Fu8bE1G8nPlz5y",
)
MTHDS_UI_CSS = CDNAsset(
url=f"https://cdn.jsdelivr.net/npm/@pipelex/mthds-ui@{MTHDS_UI_VERSION}/dist/standalone/graph-viewer.css",
- integrity="sha384-Ue1fm1guW8EQGdaqrsi+8Zm5Iq5AGkxa5+UeWw+sy8vVCSYkGez6+80+p9/oxqOn",
+ integrity="sha384-+RAnunPv8/gJkU2A4kO1jjx56ZMIdtJP2FC8yoYAfXJGOZWgWHnqz9EWVAho6/HZ",
)
ELKJS = CDNAsset(