Skip to content

Commit 1f1ed65

Browse files
authored
Merge pull request #754 from Pipelex/release/v0.20.7
- Bump `mthds` dependency to `>=0.1.1`.
2 parents dd63661 + b6f5b7a commit 1f1ed65

13 files changed

Lines changed: 696 additions & 577 deletions

File tree

.vscode/launch.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,24 +93,26 @@
9393
"justMyCode": false
9494
},
9595
{
96-
"name": "Debug run pipe bundle no inputs",
96+
"name": "Debug run bundle no inputs",
9797
"type": "debugpy",
9898
"request": "launch",
9999
"program": "${workspaceFolder}/.venv/bin/pipelex",
100100
"args": [
101101
"run",
102+
"bundle",
102103
"tests/integration/pipelex/pipes/pipelines/test_image_out_in.mthds",
103104
],
104105
"console": "integratedTerminal",
105106
"justMyCode": false
106107
},
107108
{
108-
"name": "Debug run pipe bundle with inputs",
109+
"name": "Debug run pipe from bundle with inputs",
109110
"type": "debugpy",
110111
"request": "launch",
111112
"program": "${workspaceFolder}/.venv/bin/pipelex",
112113
"args": [
113114
"run",
115+
"bundle",
114116
"tests/integration/pipelex/pipes/pipelines/test_image_out_in.mthds",
115117
"--pipe",
116118
"describe_image",
@@ -127,6 +129,7 @@
127129
"program": "${workspaceFolder}/.venv/bin/pipelex",
128130
"args": [
129131
"run",
132+
"pipe",
130133
"write_discord_newsletter",
131134
"--inputs",
132135
"tests/data/discord_newsletter/discord_sample_input.json",

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

3-
## [Unreleased]
3+
## [v0.20.7] - 2026-03-12
4+
5+
- Bump `mthds` dependency to `>=0.1.1`.
46

57
## [v0.20.6] - 2026-03-12
68

pipelex/cli/agent_cli/commands/inputs/bundle_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def inputs_bundle_cmd(
8484

8585
pipe_code: str | None = pipe
8686
library_dirs = [Path(lib_dir) for lib_dir in library_dir] if library_dir else None
87-
make_pipelex_for_agent_cli(library_dirs=library_dirs, log_level=ctx.obj["log_level"], needs_inference=False)
87+
make_pipelex_for_agent_cli(library_dirs=library_dirs, log_level=ctx.obj["log_level"], needs_inference=False, needs_model_specs=True)
8888

8989
try:
9090
result = asyncio.run(inputs_core(pipe_code=pipe_code, bundle_path=Path(bundle_path), library_dirs=library_dirs)) # type: ignore[arg-type]

pipelex/cli/agent_cli/commands/inputs/method_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def inputs_method_cmd(
5656
if library_dir:
5757
library_dirs_paths.extend(Path(lib_dir) for lib_dir in library_dir)
5858

59-
make_pipelex_for_agent_cli(library_dirs=library_dirs_paths, log_level=ctx.obj["log_level"], needs_inference=False)
59+
make_pipelex_for_agent_cli(library_dirs=library_dirs_paths, log_level=ctx.obj["log_level"], needs_inference=False, needs_model_specs=True)
6060

6161
try:
6262
result = asyncio.run(inputs_core(pipe_code=pipe_code, bundle_path=bundle_path, library_dirs=library_dirs_paths))

pipelex/cli/agent_cli/commands/inputs/pipe_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def inputs_pipe_cmd(
6464
library_dir = [*export_dirs, *library_dir]
6565

6666
library_dirs = [Path(lib_dir) for lib_dir in library_dir] if library_dir else None
67-
make_pipelex_for_agent_cli(library_dirs=library_dirs, log_level=ctx.obj["log_level"], needs_inference=False)
67+
make_pipelex_for_agent_cli(library_dirs=library_dirs, log_level=ctx.obj["log_level"], needs_inference=False, needs_model_specs=True)
6868

6969
try:
7070
result = asyncio.run(inputs_core(pipe_code=pipe_code, bundle_path=None, library_dirs=library_dirs))

pipelex/cli/commands/build/inputs/_inputs_core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ def execute_generate_inputs(
116116
telemetry_command_label: str = f"{COMMAND} {SUB_COMMAND_INPUTS}",
117117
) -> None:
118118
"""Synchronous entry point wrapping the async inputs generation with Pipelex setup/teardown."""
119-
pipelex_instance = make_pipelex_for_cli(context=ErrorContext.VALIDATION_BEFORE_BUILD_INPUTS, library_dirs=library_dir, needs_inference=False)
119+
pipelex_instance = make_pipelex_for_cli(
120+
context=ErrorContext.VALIDATION_BEFORE_BUILD_INPUTS, library_dirs=library_dir, needs_inference=False, needs_model_specs=True
121+
)
120122

121123
try:
122124
with get_telemetry_manager().telemetry_context():

pipelex/cli/commands/build/output/_output_core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ def execute_generate_output(
131131
telemetry_command_label: str = f"{COMMAND} {SUB_COMMAND_OUTPUT}",
132132
) -> None:
133133
"""Synchronous entry point wrapping the async output generation with Pipelex setup/teardown."""
134-
pipelex_instance = make_pipelex_for_cli(context=ErrorContext.VALIDATION_BEFORE_BUILD_OUTPUT, library_dirs=library_dir, needs_inference=False)
134+
pipelex_instance = make_pipelex_for_cli(
135+
context=ErrorContext.VALIDATION_BEFORE_BUILD_OUTPUT, library_dirs=library_dir, needs_inference=False, needs_model_specs=True
136+
)
135137

136138
try:
137139
with get_telemetry_manager().telemetry_context():

pipelex/cli/commands/run/_run_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ async def _execute_run(
137137
raise typer.Exit(1) from exc
138138

139139
# Pretty print main_stuff unless disabled or in dry run mode
140-
if not no_pretty_print and not dry_run:
140+
if not no_pretty_print and not dry_run and (main_stuff := pipe_output.optional_main_stuff):
141141
title = f"Final output of pipe [red]{pipe_code}[/red]"
142-
pipe_output.main_stuff.pretty_print_stuff(title=title)
142+
main_stuff.pretty_print_stuff(title=title)
143143

144144
# Determine if we need an output directory
145145
output_path: Path | None = None

pipelex/cli/commands/show_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def show_pipe_cmd(
230230
raise typer.Exit(1)
231231

232232
library_dirs = [Path(lib_dir) for lib_dir in library_dir] if library_dir else None
233-
make_pipelex_for_cli(context=ErrorContext.VALIDATION_BEFORE_SHOW_PIPE, library_dirs=library_dirs, needs_inference=False)
233+
make_pipelex_for_cli(context=ErrorContext.VALIDATION_BEFORE_SHOW_PIPE, library_dirs=library_dirs, needs_inference=False, needs_model_specs=True)
234234

235235
try:
236236
library_manager = get_library_manager()

pipelex/cli/commands/which_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def which_cmd(
8282
pipelex which my_domain.my_pipe -L ./my_pipes
8383
PIPELEXPATH=/path/to/pipes pipelex which some_pipe
8484
"""
85-
make_pipelex_for_cli(context=ErrorContext.VALIDATION_BEFORE_SHOW_PIPE, needs_inference=False)
85+
make_pipelex_for_cli(context=ErrorContext.VALIDATION_BEFORE_SHOW_PIPE, needs_inference=False, needs_model_specs=True)
8686

8787
try:
8888
library_manager = get_library_manager()

0 commit comments

Comments
 (0)