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.
fix/run-environment-rollback (#858)
Thomas Hebrardcdd13ed4acaf
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fbb289217..e8706c23f 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -49,7 +49,7 @@- **`PipeOutput.graph_assembly_error`**: optional `str` field set when the Temporal `act_assemble_graph` activity raises so consumers can distinguish "graph never produced" from "graph assembly failed". Previously the failure was logged as a warning and `graph_spec` silently stayed `None`.- **`pipe extract` web URL support** with full test coverage in `tests/integration/pipelex/pipes/pipe_operators/pipe_extract/`.- **`needs_inference` flag on CLI commands**: non-inference subcommands (e.g. `worker`, `doctor`) skip inference setup, shaving cold-start time.-- **Environment-specific config**: `RunEnvironment` enum values updated to full names (`"development"`, `"production"`). Config loaded from `ENVIRONMENT` env var (was `ENV`).+- **Environment-specific config**: `RunEnvironment` is now loaded from the `ENVIRONMENT` env var (was `ENV`). Accepted values: `local`, `dev`, `staging`, `prod`.### Changeddiff --git a/pipelex/system/runtime.py b/pipelex/system/runtime.pyindex fd75dc641..9cb7761a7 100644--- a/pipelex/system/runtime.py+++ b/pipelex/system/runtime.py@@ -64,13 +64,13 @@ class WorkerMode(StrEnum):class RunEnvironment(StrEnum):LOCAL = "local"- DEVELOPMENT = "development"+ DEV = "dev"STAGING = "staging"- PRODUCTION = "production"+ PROD = "prod"@classmethoddef get_from_env_var(cls) -> "RunEnvironment":- return RunEnvironment(get_optional_env("ENVIRONMENT") or RunEnvironment.DEVELOPMENT)+ return RunEnvironment(get_optional_env("ENVIRONMENT") or RunEnvironment.DEV)class ProblemReaction(StrEnum):