Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions parallel_web_tools/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,12 +880,14 @@ def parse_bool(v: str) -> bool:
# Search Command
# =============================================================================

# Beta -> V1 mode mapping. Beta had three modes; V1 has two. We keep the old
# values as accepted CLI inputs and translate them so existing scripts work.
# Beta -> V1 mode mapping. Beta had three modes; V1 has three (turbo/basic/
# advanced). We keep the old values as accepted CLI inputs and translate them so
# existing scripts work.
_SEARCH_MODE_MAP = {
"fast": "basic",
"one-shot": "basic",
"agentic": "advanced",
"turbo": "turbo",
"basic": "basic",
"advanced": "advanced",
}
Expand Down Expand Up @@ -956,7 +958,7 @@ def build_search_v1_kwargs(
"--mode",
type=click.Choice(list(_SEARCH_MODE_MAP.keys())),
default="basic",
help="Search mode (one-shot/fast → basic, agentic → advanced)",
help="Search mode: turbo (fastest), basic, or advanced (one-shot/fast → basic, agentic → advanced)",
show_default=True,
)
@click.option("--max-results", type=int, help="Maximum results (defaults to server-side default of 10)")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ classifiers = [
]

dependencies = [
"parallel-web>=1.0.0,<2",
"parallel-web>=1.1.0,<2",
"python-dotenv>=1.0.0",
# CLI dependencies (minimal - search, extract, enrich with CLI args)
"click>=8.1.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1244,8 +1244,8 @@ def test_mode_agentic_maps_to_advanced(self):
assert kwargs["mode"] == "advanced"

def test_new_mode_values_pass_through(self):
"""Should accept V1-native `basic`/`advanced` values directly."""
for new_mode in ("basic", "advanced"):
"""Should accept V1-native `turbo`/`basic`/`advanced` values directly."""
for new_mode in ("turbo", "basic", "advanced"):
kwargs = build_search_v1_kwargs(
objective=None,
query=("q",),
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading