Skip to content

Commit

Permalink
[CLI] Handle dependencies js up --watch
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw authored Dec 17, 2024
2 parents 4caa483 + 8a02ddd commit 781d0cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion libs/cli/langgraph_cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def validate_config(config: Config) -> Config:
{
"node_version": config.get("node_version"),
"dockerfile_lines": config.get("dockerfile_lines", []),
"dependencies": config.get("dependencies", []),
"graphs": config.get("graphs", {}),
"env": config.get("env", {}),
"store": config.get("store"),
Expand Down Expand Up @@ -528,8 +529,9 @@ def config_to_compose(
f"env_file: {config['env']}" if isinstance(config["env"], str) else ""
)
if watch:
dependencies = config.get("dependencies") or ["."]
watch_paths = [config_path.name] + [
dep for dep in config["dependencies"] if dep.startswith(".")
dep for dep in dependencies if dep.startswith(".")
]
watch_actions = "\n".join(
f"""- path: {path}
Expand Down
2 changes: 1 addition & 1 deletion libs/cli/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langgraph-cli"
version = "0.1.63"
version = "0.1.64"
description = "CLI for interacting with LangGraph API"
authors = []
license = "MIT"
Expand Down

0 comments on commit 781d0cf

Please sign in to comment.