This commit is contained in:
Quanzheng Long
2026-03-09 21:47:11 -07:00
parent 4ef61690c6
commit 5c4af31372
4 changed files with 174 additions and 6 deletions
+17
View File
@@ -1511,6 +1511,15 @@ def prepare(
"""Prepare the arguments and stdin for running the LangGraph API server."""
config_json = langgraph_cli.config.validate_config_file(config_path)
warn_non_wolfi_distro(config_json)
if engine_runtime_mode == "distributed" and not api_version and not image:
click.secho(
"Resolving latest published version for distributed runtime...",
fg="cyan",
)
api_version = langgraph_cli.config.fetch_latest_api_version()
click.secho(f"Using version {api_version} for all distributed images.", fg="cyan")
# pull latest images
if pull:
runner.run(
@@ -1535,6 +1544,14 @@ def prepare(
verbose=verbose,
)
)
runner.run(
subp_exec(
"docker",
"pull",
f"langchain/langgraph-orchestrator-licensed:{api_version}",
verbose=verbose,
)
)
args, stdin = prepare_args_and_stdin(
capabilities=capabilities,