langgraph-cli 0.4.37__tar.gz → 0.4.38__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/PKG-INFO +1 -1
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/generate_schema.py +2 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/yarn.lock +6 -6
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-monorepo-example/yarn.lock +3 -3
- langgraph_cli-0.4.38/langgraph_cli/__init__.py +1 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/cli.py +1 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/config.py +63 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/schemas.py +29 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/uv_lock.py +1 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/schemas/schema.json +45 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/schemas/schema.v0.json +45 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/cli/test_cli.py +28 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/test_config.py +138 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/monorepo/uv.lock +3 -3
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/simple/uv.lock +3 -3
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv.lock +25 -25
- langgraph_cli-0.4.37/langgraph_cli/__init__.py +0 -1
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/.gitignore +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/LICENSE +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/Makefile +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/README.md +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/.env.example +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/.gitignore +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/Makefile +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graph_prerelease_reqs/agent.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graph_prerelease_reqs/deps/additional_deps/pyproject.toml +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graph_prerelease_reqs/deps/zuper_deps/pyproject.toml +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graph_prerelease_reqs/langgraph.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graph_prerelease_reqs/pyproject.toml +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graph_prerelease_reqs_fail/agent.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graph_prerelease_reqs_fail/langgraph.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graph_prerelease_reqs_fail/pyproject.toml +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs/agent.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs/langgraph.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs/storm.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_a/__init__.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_a/graphs_submod/__init__.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_a/graphs_submod/agent.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_a/graphs_submod/subprompt.txt +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_a/hello.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_a/langgraph.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_a/prompt.txt +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_a/requirements.txt +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_b/graphs_submod/agent.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_b/graphs_submod/subprompt.txt +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_b/hello.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_b/langgraph.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_b/prompt.txt +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_b/requirements.txt +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_b/utils/__init__.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/graphs_reqs_b/utils/greeter.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/langgraph.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/my_app.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/pipconf.txt +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/examples/pyproject.toml +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/.dockerignore +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/.editorconfig +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/.env.example +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/.eslintrc.cjs +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/.gitignore +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/LICENSE +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/README.md +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/jest.config.js +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/langgraph.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/package.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/src/agent/graph.ts +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/src/agent/state.ts +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/static/studio.png +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/tests/agent.test.ts +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/tests/graph.int.test.ts +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-examples/tsconfig.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-monorepo-example/.eslintrc.cjs +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-monorepo-example/apps/agent/langgraph.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-monorepo-example/apps/agent/package.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-monorepo-example/apps/agent/src/graph.ts +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-monorepo-example/apps/agent/src/state.ts +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-monorepo-example/apps/agent/tsconfig.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-monorepo-example/libs/shared/package.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-monorepo-example/libs/shared/src/index.ts +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-monorepo-example/libs/shared/tsconfig.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-monorepo-example/package.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-monorepo-example/tsconfig.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/js-monorepo-example/turbo.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/__main__.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/_ignore.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/analytics.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/archive.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/constants.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/dependency_tracking.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/deploy.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/docker.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/exec.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/host_backend.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/image_reference.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/progress.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/py.typed +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/templates.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/util.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/langgraph_cli/version.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/pyproject.toml +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/python-monorepo-example/apps/agent/.env.example +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/python-monorepo-example/apps/agent/langgraph.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/python-monorepo-example/apps/agent/pyproject.toml +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/python-monorepo-example/apps/agent/src/agent/__init__.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/python-monorepo-example/apps/agent/src/agent/graph.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/python-monorepo-example/apps/agent/src/agent/state.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/python-monorepo-example/libs/common/__init__.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/python-monorepo-example/libs/common/helpers.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/python-monorepo-example/libs/shared/pyproject.toml +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/python-monorepo-example/libs/shared/src/shared/__init__.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/python-monorepo-example/libs/shared/src/shared/utils.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/python-monorepo-example/pyproject.toml +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/schemas/version.schema.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/__init__.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/integration_tests/__init__.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/integration_tests/test_cli.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/__init__.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/agent.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/cli/__init__.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/cli/langgraph.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/cli/pyproject.toml +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/cli/test_deploy_command.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/cli/test_templates.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/conftest.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/graphs/agent.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/helpers.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/multiplatform/js.mts +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/multiplatform/python.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/pipconfig.txt +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/test_archive.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/test_config.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/test_dependency_tracking.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/test_deploy_agents.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/test_deploy_helpers.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/test_docker.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/test_exec.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/test_host_backend.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/test_image_reference.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/test_logs_helpers.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/tests/unit_tests/test_util.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/monorepo/apps/agent/.env.example +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/monorepo/apps/agent/langgraph.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/monorepo/apps/agent/pyproject.toml +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/monorepo/apps/agent/src/agent/__init__.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/monorepo/apps/agent/src/agent/graph.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/monorepo/libs/shared/pyproject.toml +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/monorepo/libs/shared/src/shared/__init__.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/monorepo/libs/shared/src/shared/utils.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/monorepo/pyproject.toml +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/simple/.env.example +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/simple/langgraph.json +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/simple/pyproject.toml +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/simple/src/agent/__init__.py +0 -0
- {langgraph_cli-0.4.37 → langgraph_cli-0.4.38}/uv-examples/simple/src/agent/graph.py +0 -0
|
@@ -23,6 +23,7 @@ from langgraph_cli.schemas import (
|
|
|
23
23
|
GraphDef,
|
|
24
24
|
HttpConfig,
|
|
25
25
|
IndexConfig,
|
|
26
|
+
PriorityConfig,
|
|
26
27
|
SecurityConfig,
|
|
27
28
|
SerdeConfig,
|
|
28
29
|
StoreConfig,
|
|
@@ -113,6 +114,7 @@ def add_descriptions_to_schema(schema, cls):
|
|
|
113
114
|
StoreConfig,
|
|
114
115
|
IndexConfig,
|
|
115
116
|
AuthConfig,
|
|
117
|
+
PriorityConfig,
|
|
116
118
|
SecurityConfig,
|
|
117
119
|
HttpConfig,
|
|
118
120
|
CorsConfig,
|
|
@@ -1776,17 +1776,17 @@ baseline-browser-mapping@^2.11.12:
|
|
|
1776
1776
|
integrity sha512-H0ulySigv6icDJ1F7SjtdCD6PrhTpdYCmP0CactWy1+ekh0AFd0o1Wn5T8b+hnTmdBx19u9yhL6wvCylXMY7zw==
|
|
1777
1777
|
|
|
1778
1778
|
brace-expansion@^1.1.7:
|
|
1779
|
-
version "1.1.
|
|
1780
|
-
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.
|
|
1781
|
-
integrity sha512-
|
|
1779
|
+
version "1.1.21"
|
|
1780
|
+
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.21.tgz#edf4fab5c64d051aea5a8def49aba1c7522279f3"
|
|
1781
|
+
integrity sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==
|
|
1782
1782
|
dependencies:
|
|
1783
1783
|
balanced-match "^1.0.0"
|
|
1784
1784
|
concat-map "0.0.1"
|
|
1785
1785
|
|
|
1786
1786
|
brace-expansion@^2.0.2:
|
|
1787
|
-
version "2.
|
|
1788
|
-
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.
|
|
1789
|
-
integrity sha512-
|
|
1787
|
+
version "2.1.7"
|
|
1788
|
+
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.1.7.tgz#14ea3836731823bb24740225ea43b941b436f9d1"
|
|
1789
|
+
integrity sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==
|
|
1790
1790
|
dependencies:
|
|
1791
1791
|
balanced-match "^1.0.0"
|
|
1792
1792
|
|
|
@@ -581,9 +581,9 @@ base64-js@^1.5.1:
|
|
|
581
581
|
integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==
|
|
582
582
|
|
|
583
583
|
brace-expansion@^1.1.7:
|
|
584
|
-
version "1.1.
|
|
585
|
-
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.
|
|
586
|
-
integrity sha512-
|
|
584
|
+
version "1.1.21"
|
|
585
|
+
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.21.tgz#edf4fab5c64d051aea5a8def49aba1c7522279f3"
|
|
586
|
+
integrity sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==
|
|
587
587
|
dependencies:
|
|
588
588
|
balanced-match "^1.0.0"
|
|
589
589
|
concat-map "0.0.1"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.4.38"
|
|
@@ -847,6 +847,7 @@ def dev(
|
|
|
847
847
|
store=config_json.get("store"),
|
|
848
848
|
wait_for_client=wait_for_client,
|
|
849
849
|
auth=config_json.get("auth"),
|
|
850
|
+
priority=config_json.get("priority"),
|
|
850
851
|
http=config_json.get("http"),
|
|
851
852
|
ui=config_json.get("ui"),
|
|
852
853
|
ui_config=config_json.get("ui_config"),
|
|
@@ -442,6 +442,7 @@ def validate_config(
|
|
|
442
442
|
"store": config.get("store"),
|
|
443
443
|
"auth": config.get("auth"),
|
|
444
444
|
"encryption": config.get("encryption"),
|
|
445
|
+
"priority": config.get("priority"),
|
|
445
446
|
"http": config.get("http"),
|
|
446
447
|
# Pass through webhooks config so it can be injected into the image
|
|
447
448
|
"webhooks": config.get("webhooks"),
|
|
@@ -606,6 +607,19 @@ def validate_config(
|
|
|
606
607
|
f"Invalid encryption.path format: '{encryption_conf['path']}'. "
|
|
607
608
|
"Must be in format './path/to/file.py:attribute_name'"
|
|
608
609
|
)
|
|
610
|
+
# Validate priority config
|
|
611
|
+
if priority_conf := config.get("priority"):
|
|
612
|
+
if "path" in priority_conf:
|
|
613
|
+
if ":" not in priority_conf["path"]:
|
|
614
|
+
raise ValueError(
|
|
615
|
+
f"Invalid priority.path format: '{priority_conf['path']}'. "
|
|
616
|
+
"Must be in format './path/to/file.py:attribute_name'"
|
|
617
|
+
)
|
|
618
|
+
if _is_node_graph(priority_conf["path"]):
|
|
619
|
+
raise ValueError(
|
|
620
|
+
"JavaScript priority callbacks are not supported: "
|
|
621
|
+
f"'{priority_conf['path']}'. Use a Python file or module instead."
|
|
622
|
+
)
|
|
609
623
|
if http_conf := config.get("http"):
|
|
610
624
|
if "app" in http_conf:
|
|
611
625
|
if ":" not in http_conf["app"]:
|
|
@@ -649,6 +663,7 @@ _KNOWN_CONFIG_KEYS = {
|
|
|
649
663
|
"store",
|
|
650
664
|
"auth",
|
|
651
665
|
"encryption",
|
|
666
|
+
"priority",
|
|
652
667
|
"http",
|
|
653
668
|
"webhooks",
|
|
654
669
|
"checkpointer",
|
|
@@ -1080,6 +1095,49 @@ def _update_encryption_path(
|
|
|
1080
1095
|
)
|
|
1081
1096
|
|
|
1082
1097
|
|
|
1098
|
+
def _update_priority_path(
|
|
1099
|
+
config_path: pathlib.Path, config: Config, local_deps: LocalDeps
|
|
1100
|
+
) -> None:
|
|
1101
|
+
"""Update priority.path to use Docker container paths."""
|
|
1102
|
+
priority_conf = config.get("priority")
|
|
1103
|
+
if not priority_conf or not (path_str := priority_conf.get("path")):
|
|
1104
|
+
return
|
|
1105
|
+
|
|
1106
|
+
module_str, sep, attr_str = path_str.partition(":")
|
|
1107
|
+
if not sep or not module_str.startswith("."):
|
|
1108
|
+
return # Already validated or absolute path
|
|
1109
|
+
|
|
1110
|
+
resolved = config_path.parent / module_str
|
|
1111
|
+
if not resolved.exists():
|
|
1112
|
+
raise FileNotFoundError(
|
|
1113
|
+
f"Priority file not found: {resolved} (from {path_str})"
|
|
1114
|
+
)
|
|
1115
|
+
if not resolved.is_file():
|
|
1116
|
+
raise IsADirectoryError(f"Priority path must be a file: {resolved}")
|
|
1117
|
+
|
|
1118
|
+
# Check faux packages first (they take precedence)
|
|
1119
|
+
for faux_path, (_, destpath) in local_deps.faux_pkgs.items():
|
|
1120
|
+
if resolved.is_relative_to(faux_path):
|
|
1121
|
+
new_path = f"{destpath}/{resolved.relative_to(faux_path)}:{attr_str}"
|
|
1122
|
+
priority_conf["path"] = new_path
|
|
1123
|
+
return
|
|
1124
|
+
|
|
1125
|
+
# Check real packages
|
|
1126
|
+
for real_path in local_deps.real_pkgs:
|
|
1127
|
+
if resolved.is_relative_to(real_path):
|
|
1128
|
+
new_path = (
|
|
1129
|
+
f"/deps/{real_path.name}/{resolved.relative_to(real_path)}:{attr_str}"
|
|
1130
|
+
)
|
|
1131
|
+
priority_conf["path"] = new_path
|
|
1132
|
+
return
|
|
1133
|
+
|
|
1134
|
+
raise ValueError(
|
|
1135
|
+
f"Priority file '{resolved}' not covered by dependencies.\n"
|
|
1136
|
+
"Add its parent directory to the 'dependencies' array in your config.\n"
|
|
1137
|
+
f"Current dependencies: {config['dependencies']}"
|
|
1138
|
+
)
|
|
1139
|
+
|
|
1140
|
+
|
|
1083
1141
|
def _update_checkpointer_path(
|
|
1084
1142
|
config_path: pathlib.Path, config: Config, local_deps: LocalDeps
|
|
1085
1143
|
) -> None:
|
|
@@ -1213,6 +1271,9 @@ def _build_runtime_env_vars(config: Config) -> list[str]:
|
|
|
1213
1271
|
if (encryption_config := config.get("encryption")) is not None:
|
|
1214
1272
|
env_vars.append(f"ENV LANGGRAPH_ENCRYPTION='{json.dumps(encryption_config)}'")
|
|
1215
1273
|
|
|
1274
|
+
if (priority_config := config.get("priority")) is not None:
|
|
1275
|
+
env_vars.append(f"ENV LANGGRAPH_PRIORITY='{json.dumps(priority_config)}'")
|
|
1276
|
+
|
|
1216
1277
|
if (http_config := config.get("http")) is not None:
|
|
1217
1278
|
env_vars.append(f"ENV LANGGRAPH_HTTP='{json.dumps(http_config)}'")
|
|
1218
1279
|
|
|
@@ -1380,6 +1441,8 @@ def python_config_to_docker(
|
|
|
1380
1441
|
_update_auth_path(config_path, config, local_deps)
|
|
1381
1442
|
# Rewrite encryption path, so it points to the correct location in the Docker container
|
|
1382
1443
|
_update_encryption_path(config_path, config, local_deps)
|
|
1444
|
+
# Rewrite priority path, so it points to the correct location in the Docker container
|
|
1445
|
+
_update_priority_path(config_path, config, local_deps)
|
|
1383
1446
|
# Rewrite checkpointer path, so it points to the correct location in the Docker container
|
|
1384
1447
|
_update_checkpointer_path(config_path, config, local_deps)
|
|
1385
1448
|
# Rewrite HTTP app path, so it points to the correct location in the Docker container
|
|
@@ -373,6 +373,27 @@ class EncryptionConfig(TypedDict, total=False):
|
|
|
373
373
|
"""
|
|
374
374
|
|
|
375
375
|
|
|
376
|
+
class PriorityConfig(TypedDict, total=False):
|
|
377
|
+
"""Configuration for custom run priority logic.
|
|
378
|
+
|
|
379
|
+
Allows you to decide each thread's priority settings with a Python function
|
|
380
|
+
that the server calls at the first run on a thread with no settings, which
|
|
381
|
+
can come long after the thread was created."""
|
|
382
|
+
|
|
383
|
+
path: str
|
|
384
|
+
"""Required. Path to an instance of the Priority() class that registers an assign function.
|
|
385
|
+
|
|
386
|
+
Format: "path/to/file.py:my_priority"
|
|
387
|
+
|
|
388
|
+
Example:
|
|
389
|
+
{
|
|
390
|
+
"priority": {
|
|
391
|
+
"path": "./priority.py:my_priority"
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
"""
|
|
395
|
+
|
|
396
|
+
|
|
376
397
|
class CorsConfig(TypedDict, total=False):
|
|
377
398
|
"""Specifies Cross-Origin Resource Sharing (CORS) rules for your server.
|
|
378
399
|
|
|
@@ -753,6 +774,13 @@ class Config(TypedDict, total=False):
|
|
|
753
774
|
Allows you to implement custom encryption for sensitive data stored in the database.
|
|
754
775
|
"""
|
|
755
776
|
|
|
777
|
+
priority: PriorityConfig | None
|
|
778
|
+
"""Optional. Custom run priority config, including the path to your Python priority logic.
|
|
779
|
+
|
|
780
|
+
Allows you to decide each thread's priority settings at the first run on a thread with no settings,
|
|
781
|
+
which can come long after the thread was created.
|
|
782
|
+
"""
|
|
783
|
+
|
|
756
784
|
http: HttpConfig | None
|
|
757
785
|
"""Optional. Configuration for the built-in HTTP server, controlling which custom routes are exposed
|
|
758
786
|
and how cross-origin requests are handled.
|
|
@@ -784,6 +812,7 @@ __all__ = [
|
|
|
784
812
|
"CheckpointerConfig",
|
|
785
813
|
"AuthConfig",
|
|
786
814
|
"EncryptionConfig",
|
|
815
|
+
"PriorityConfig",
|
|
787
816
|
"HttpConfig",
|
|
788
817
|
"MiddlewareOrders",
|
|
789
818
|
"Distros",
|
|
@@ -196,6 +196,17 @@
|
|
|
196
196
|
}
|
|
197
197
|
]
|
|
198
198
|
},
|
|
199
|
+
"priority": {
|
|
200
|
+
"anyOf": [
|
|
201
|
+
{
|
|
202
|
+
"$ref": "#/$defs/PriorityConfig"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"type": "null"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"description": "Optional. Custom run priority config, including the path to your Python priority logic.\n\nAllows you to decide each thread's priority settings at the first run on a thread with no settings,\nwhich can come long after the thread was created.\n"
|
|
209
|
+
},
|
|
199
210
|
"source": {
|
|
200
211
|
"anyOf": [
|
|
201
212
|
{
|
|
@@ -438,6 +449,17 @@
|
|
|
438
449
|
}
|
|
439
450
|
]
|
|
440
451
|
},
|
|
452
|
+
"priority": {
|
|
453
|
+
"anyOf": [
|
|
454
|
+
{
|
|
455
|
+
"$ref": "#/$defs/PriorityConfig"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"type": "null"
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
"description": "Optional. Custom run priority config, including the path to your Python priority logic.\n\nAllows you to decide each thread's priority settings at the first run on a thread with no settings,\nwhich can come long after the thread was created.\n"
|
|
462
|
+
},
|
|
441
463
|
"source": {
|
|
442
464
|
"$ref": "#/$defs/UvSource"
|
|
443
465
|
},
|
|
@@ -666,6 +688,17 @@
|
|
|
666
688
|
}
|
|
667
689
|
]
|
|
668
690
|
},
|
|
691
|
+
"priority": {
|
|
692
|
+
"anyOf": [
|
|
693
|
+
{
|
|
694
|
+
"$ref": "#/$defs/PriorityConfig"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"type": "null"
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
"description": "Optional. Custom run priority config, including the path to your Python priority logic.\n\nAllows you to decide each thread's priority settings at the first run on a thread with no settings,\nwhich can come long after the thread was created.\n"
|
|
701
|
+
},
|
|
669
702
|
"source": {
|
|
670
703
|
"anyOf": [
|
|
671
704
|
{
|
|
@@ -1170,6 +1203,18 @@
|
|
|
1170
1203
|
},
|
|
1171
1204
|
"required": []
|
|
1172
1205
|
},
|
|
1206
|
+
"PriorityConfig": {
|
|
1207
|
+
"title": "PriorityConfig",
|
|
1208
|
+
"description": "Configuration for custom run priority logic.\n\nAllows you to decide each thread's priority settings with a Python function\nthat the server calls at the first run on a thread with no settings, which\ncan come long after the thread was created.",
|
|
1209
|
+
"type": "object",
|
|
1210
|
+
"properties": {
|
|
1211
|
+
"path": {
|
|
1212
|
+
"type": "string",
|
|
1213
|
+
"description": "Required. Path to an instance of the Priority() class that registers an assign function.\n"
|
|
1214
|
+
}
|
|
1215
|
+
},
|
|
1216
|
+
"required": []
|
|
1217
|
+
},
|
|
1173
1218
|
"UvSource": {
|
|
1174
1219
|
"title": "UvSource",
|
|
1175
1220
|
"description": "Deployment source rooted at a uv project or workspace.",
|
|
@@ -196,6 +196,17 @@
|
|
|
196
196
|
}
|
|
197
197
|
]
|
|
198
198
|
},
|
|
199
|
+
"priority": {
|
|
200
|
+
"anyOf": [
|
|
201
|
+
{
|
|
202
|
+
"$ref": "#/$defs/PriorityConfig"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"type": "null"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"description": "Optional. Custom run priority config, including the path to your Python priority logic.\n\nAllows you to decide each thread's priority settings at the first run on a thread with no settings,\nwhich can come long after the thread was created.\n"
|
|
209
|
+
},
|
|
199
210
|
"source": {
|
|
200
211
|
"anyOf": [
|
|
201
212
|
{
|
|
@@ -438,6 +449,17 @@
|
|
|
438
449
|
}
|
|
439
450
|
]
|
|
440
451
|
},
|
|
452
|
+
"priority": {
|
|
453
|
+
"anyOf": [
|
|
454
|
+
{
|
|
455
|
+
"$ref": "#/$defs/PriorityConfig"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"type": "null"
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
"description": "Optional. Custom run priority config, including the path to your Python priority logic.\n\nAllows you to decide each thread's priority settings at the first run on a thread with no settings,\nwhich can come long after the thread was created.\n"
|
|
462
|
+
},
|
|
441
463
|
"source": {
|
|
442
464
|
"$ref": "#/$defs/UvSource"
|
|
443
465
|
},
|
|
@@ -666,6 +688,17 @@
|
|
|
666
688
|
}
|
|
667
689
|
]
|
|
668
690
|
},
|
|
691
|
+
"priority": {
|
|
692
|
+
"anyOf": [
|
|
693
|
+
{
|
|
694
|
+
"$ref": "#/$defs/PriorityConfig"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"type": "null"
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
"description": "Optional. Custom run priority config, including the path to your Python priority logic.\n\nAllows you to decide each thread's priority settings at the first run on a thread with no settings,\nwhich can come long after the thread was created.\n"
|
|
701
|
+
},
|
|
669
702
|
"source": {
|
|
670
703
|
"anyOf": [
|
|
671
704
|
{
|
|
@@ -1170,6 +1203,18 @@
|
|
|
1170
1203
|
},
|
|
1171
1204
|
"required": []
|
|
1172
1205
|
},
|
|
1206
|
+
"PriorityConfig": {
|
|
1207
|
+
"title": "PriorityConfig",
|
|
1208
|
+
"description": "Configuration for custom run priority logic.\n\nAllows you to decide each thread's priority settings with a Python function\nthat the server calls at the first run on a thread with no settings, which\ncan come long after the thread was created.",
|
|
1209
|
+
"type": "object",
|
|
1210
|
+
"properties": {
|
|
1211
|
+
"path": {
|
|
1212
|
+
"type": "string",
|
|
1213
|
+
"description": "Required. Path to an instance of the Priority() class that registers an assign function.\n"
|
|
1214
|
+
}
|
|
1215
|
+
},
|
|
1216
|
+
"required": []
|
|
1217
|
+
},
|
|
1173
1218
|
"UvSource": {
|
|
1174
1219
|
"title": "UvSource",
|
|
1175
1220
|
"description": "Deployment source rooted at a uv project or workspace.",
|
|
@@ -2,10 +2,12 @@ import json
|
|
|
2
2
|
import pathlib
|
|
3
3
|
import re
|
|
4
4
|
import shutil
|
|
5
|
+
import sys
|
|
5
6
|
import tempfile
|
|
6
7
|
import textwrap
|
|
7
8
|
from contextlib import contextmanager
|
|
8
9
|
from pathlib import Path
|
|
10
|
+
from unittest.mock import MagicMock
|
|
9
11
|
|
|
10
12
|
import click
|
|
11
13
|
from click.testing import CliRunner
|
|
@@ -371,6 +373,32 @@ def test_dev_command_requires_ssl_certfile_and_keyfile_together(tmp_path) -> Non
|
|
|
371
373
|
assert "Both --ssl-certfile and --ssl-keyfile must be provided" in result.output
|
|
372
374
|
|
|
373
375
|
|
|
376
|
+
def test_dev_command_passes_priority_to_the_server(tmp_path, monkeypatch) -> None:
|
|
377
|
+
config_path = tmp_path / "langgraph.json"
|
|
378
|
+
config_path.write_text(
|
|
379
|
+
json.dumps(
|
|
380
|
+
{
|
|
381
|
+
"dependencies": ["."],
|
|
382
|
+
"graphs": {"agent": "./agent.py:graph"},
|
|
383
|
+
"priority": {"path": "./priority.py:priority"},
|
|
384
|
+
}
|
|
385
|
+
),
|
|
386
|
+
encoding="utf-8",
|
|
387
|
+
)
|
|
388
|
+
# The test environment doesn't install langgraph-api, so stand in for its server.
|
|
389
|
+
server = MagicMock()
|
|
390
|
+
monkeypatch.setitem(sys.modules, "langgraph_api.cli", server)
|
|
391
|
+
# dev appends the working directory and its dependencies to sys.path.
|
|
392
|
+
monkeypatch.setattr(sys, "path", list(sys.path))
|
|
393
|
+
|
|
394
|
+
result = CliRunner().invoke(cli, ["dev", "--config", str(config_path)])
|
|
395
|
+
|
|
396
|
+
assert result.exit_code == 0, result.output
|
|
397
|
+
assert server.run_server.call_args.kwargs["priority"] == {
|
|
398
|
+
"path": "./priority.py:priority"
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
|
|
374
402
|
def test_deploy_list_command(monkeypatch) -> None:
|
|
375
403
|
runner = CliRunner()
|
|
376
404
|
captured: dict[str, str] = {}
|
|
@@ -16,6 +16,7 @@ from langgraph_cli.config import (
|
|
|
16
16
|
config_to_docker,
|
|
17
17
|
default_base_image,
|
|
18
18
|
docker_tag,
|
|
19
|
+
get_unknown_keys,
|
|
19
20
|
has_disallowed_build_command_content,
|
|
20
21
|
validate_config,
|
|
21
22
|
validate_config_file,
|
|
@@ -155,6 +156,7 @@ def test_validate_config():
|
|
|
155
156
|
"store": None,
|
|
156
157
|
"auth": None,
|
|
157
158
|
"encryption": None,
|
|
159
|
+
"priority": None,
|
|
158
160
|
"webhooks": None,
|
|
159
161
|
"checkpointer": None,
|
|
160
162
|
"http": None,
|
|
@@ -184,6 +186,7 @@ def test_validate_config():
|
|
|
184
186
|
"store": None,
|
|
185
187
|
"auth": None,
|
|
186
188
|
"encryption": None,
|
|
189
|
+
"priority": None,
|
|
187
190
|
"webhooks": None,
|
|
188
191
|
"checkpointer": None,
|
|
189
192
|
"http": None,
|
|
@@ -1289,6 +1292,109 @@ def test_config_to_docker_python_encryption_formatted():
|
|
|
1289
1292
|
)
|
|
1290
1293
|
|
|
1291
1294
|
|
|
1295
|
+
@pytest.mark.parametrize(
|
|
1296
|
+
"path", ["./priority.py:priority", "my_package.priority:priority"]
|
|
1297
|
+
)
|
|
1298
|
+
def test_config_to_docker_python_priority(path: str):
|
|
1299
|
+
# Test that priority config is kept by validation and isn't an unknown key
|
|
1300
|
+
raw_config = {
|
|
1301
|
+
"python_version": "3.11",
|
|
1302
|
+
"graphs": {"agent": "./agent.py:graph"},
|
|
1303
|
+
"dependencies": ["."],
|
|
1304
|
+
"priority": {"path": path},
|
|
1305
|
+
}
|
|
1306
|
+
validated = validate_config(raw_config)
|
|
1307
|
+
|
|
1308
|
+
assert validated["priority"] == {"path": path}
|
|
1309
|
+
assert get_unknown_keys(raw_config) == []
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
def test_config_to_docker_python_priority_bad_path():
|
|
1313
|
+
# Test that invalid priority path format raises ValueError
|
|
1314
|
+
with pytest.raises(ValueError, match="Invalid priority.path format"):
|
|
1315
|
+
validate_config(
|
|
1316
|
+
{
|
|
1317
|
+
"python_version": "3.11",
|
|
1318
|
+
"graphs": {"agent": "./agent.py:graph"},
|
|
1319
|
+
"dependencies": ["."],
|
|
1320
|
+
"priority": {"path": "./priority.py"}, # Missing :attribute
|
|
1321
|
+
}
|
|
1322
|
+
)
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
@pytest.mark.parametrize("ext", [".ts", ".mts", ".cts", ".js", ".mjs", ".cjs"])
|
|
1326
|
+
def test_config_to_docker_python_priority_js_path(ext: str):
|
|
1327
|
+
# Test that a JavaScript priority path is rejected
|
|
1328
|
+
with pytest.raises(ValueError, match="JavaScript priority callbacks"):
|
|
1329
|
+
validate_config(
|
|
1330
|
+
{
|
|
1331
|
+
"python_version": "3.11",
|
|
1332
|
+
"graphs": {"agent": "./agent.py:graph"},
|
|
1333
|
+
"dependencies": ["."],
|
|
1334
|
+
"priority": {"path": f"./priority{ext}:priority"},
|
|
1335
|
+
}
|
|
1336
|
+
)
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
def test_config_to_docker_nodejs_priority():
|
|
1340
|
+
# Test that a Node.js-only project can name a Python priority file
|
|
1341
|
+
actual_docker_stdin, _ = config_to_docker(
|
|
1342
|
+
PATH_TO_CONFIG,
|
|
1343
|
+
validate_config(
|
|
1344
|
+
{
|
|
1345
|
+
"node_version": "20",
|
|
1346
|
+
"graphs": {"agent": "./graphs/agent.js:graph"},
|
|
1347
|
+
"priority": {"path": "./priority.py:priority"},
|
|
1348
|
+
}
|
|
1349
|
+
),
|
|
1350
|
+
base_image="langchain/langgraphjs-api",
|
|
1351
|
+
)
|
|
1352
|
+
assert (
|
|
1353
|
+
"""ENV LANGGRAPH_PRIORITY='{"path": "./priority.py:priority"}'"""
|
|
1354
|
+
in actual_docker_stdin
|
|
1355
|
+
)
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
def test_config_to_docker_python_priority_formatted():
|
|
1359
|
+
# Test that priority config is written to the Docker output with its container path
|
|
1360
|
+
actual_docker_stdin, _ = config_to_docker(
|
|
1361
|
+
PATH_TO_CONFIG,
|
|
1362
|
+
validate_config(
|
|
1363
|
+
{
|
|
1364
|
+
"python_version": "3.11",
|
|
1365
|
+
"dependencies": ["."],
|
|
1366
|
+
"graphs": {"agent": "./graphs/agent.py:graph"},
|
|
1367
|
+
"priority": {"path": "./agent.py:my_priority"},
|
|
1368
|
+
}
|
|
1369
|
+
),
|
|
1370
|
+
base_image="langchain/langgraph-api",
|
|
1371
|
+
)
|
|
1372
|
+
assert (
|
|
1373
|
+
"ENV LANGGRAPH_PRIORITY="
|
|
1374
|
+
"""'{"path": "/deps/outer-unit_tests/unit_tests/agent.py:my_priority"}'"""
|
|
1375
|
+
in actual_docker_stdin
|
|
1376
|
+
)
|
|
1377
|
+
|
|
1378
|
+
|
|
1379
|
+
def test_config_to_docker_python_priority_not_in_dependencies():
|
|
1380
|
+
# Test that a priority file outside the dependencies raises ValueError
|
|
1381
|
+
with pytest.raises(
|
|
1382
|
+
ValueError, match="Priority file .* not covered by dependencies"
|
|
1383
|
+
):
|
|
1384
|
+
config_to_docker(
|
|
1385
|
+
PATH_TO_CONFIG,
|
|
1386
|
+
validate_config(
|
|
1387
|
+
{
|
|
1388
|
+
"python_version": "3.11",
|
|
1389
|
+
"dependencies": ["./graphs"],
|
|
1390
|
+
"graphs": {"agent": "./graphs/agent.py:graph"},
|
|
1391
|
+
"priority": {"path": "./agent.py:my_priority"},
|
|
1392
|
+
}
|
|
1393
|
+
),
|
|
1394
|
+
base_image="langchain/langgraph-api",
|
|
1395
|
+
)
|
|
1396
|
+
|
|
1397
|
+
|
|
1292
1398
|
def test_config_to_docker_nodejs_internal_docker_tag():
|
|
1293
1399
|
graphs = {"agent": "./graphs/agent.js:graph"}
|
|
1294
1400
|
actual_docker_stdin, additional_contexts = config_to_docker(
|
|
@@ -1731,6 +1837,38 @@ def test_config_to_docker_uv_lock_honors_root_workspace_sources():
|
|
|
1731
1837
|
)
|
|
1732
1838
|
|
|
1733
1839
|
|
|
1840
|
+
def test_config_to_docker_uv_lock_rewrites_priority_path():
|
|
1841
|
+
with tempfile.TemporaryDirectory() as tmpdir:
|
|
1842
|
+
tmpdir_path = pathlib.Path(tmpdir)
|
|
1843
|
+
project_root, config_path = _write_uv_lock_workspace(
|
|
1844
|
+
tmpdir_path,
|
|
1845
|
+
agent_sources="[tool.uv.sources]\nshared = { workspace = true }",
|
|
1846
|
+
)
|
|
1847
|
+
(project_root / "libs" / "shared" / "src" / "shared" / "priority.py").touch()
|
|
1848
|
+
|
|
1849
|
+
config = validate_config(
|
|
1850
|
+
{
|
|
1851
|
+
"python_version": "3.11",
|
|
1852
|
+
"graphs": {
|
|
1853
|
+
"agent": "../../apps/agent/src/agent/graph.py:graph",
|
|
1854
|
+
},
|
|
1855
|
+
"source": {"kind": "uv", "root": "../..", "package": "agent"},
|
|
1856
|
+
"priority": {
|
|
1857
|
+
"path": "../../libs/shared/src/shared/priority.py:priority"
|
|
1858
|
+
},
|
|
1859
|
+
}
|
|
1860
|
+
)
|
|
1861
|
+
docker, _ = config_to_docker(
|
|
1862
|
+
config_path, config, base_image="langchain/langgraph-api:0.2.47"
|
|
1863
|
+
)
|
|
1864
|
+
|
|
1865
|
+
assert (
|
|
1866
|
+
"ENV LANGGRAPH_PRIORITY="
|
|
1867
|
+
"""'{"path": "/deps/workspace/libs/shared/src/shared/priority.py:priority"}'"""
|
|
1868
|
+
in docker
|
|
1869
|
+
)
|
|
1870
|
+
|
|
1871
|
+
|
|
1734
1872
|
def test_config_to_docker_uv_lock_ignores_unrelated_workspace_package_sources():
|
|
1735
1873
|
with tempfile.TemporaryDirectory() as tmpdir:
|
|
1736
1874
|
tmpdir_path = pathlib.Path(tmpdir)
|
|
@@ -52,11 +52,11 @@ wheels = [
|
|
|
52
52
|
|
|
53
53
|
[[package]]
|
|
54
54
|
name = "certifi"
|
|
55
|
-
version = "2026.
|
|
55
|
+
version = "2026.10.19"
|
|
56
56
|
source = { registry = "https://pypi.org/simple" }
|
|
57
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
57
|
+
sdist = { url = "https://files.pythonhosted.org/packages/a6/bd/1436c50cc46699de0230fbaacc1d1de7bfec413176099949e9d5112e88f2/certifi-2026.10.19.tar.gz", hash = "sha256:035c1e85572b141bf1c3a3eff0e33a8eb74917522f2559075ff8d2fea780a1ae", size = 137598, upload-time = "2026-10-20T02:24:16.604Z" }
|
|
58
58
|
wheels = [
|
|
59
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
59
|
+
{ url = "https://files.pythonhosted.org/packages/c4/51/29046e48f693c54e5b7412216d447a1d8362c9653148d98c02cdf65fa733/certifi-2026.10.19-py3-none-any.whl", hash = "sha256:42d35340cc5b9ba78e818ddbff0c5b1c2b779de448a340fd1b989f5fa8670e1b", size = 136464, upload-time = "2026-10-20T02:24:15.072Z" },
|
|
60
60
|
]
|
|
61
61
|
|
|
62
62
|
[[package]]
|
|
@@ -26,11 +26,11 @@ wheels = [
|
|
|
26
26
|
|
|
27
27
|
[[package]]
|
|
28
28
|
name = "certifi"
|
|
29
|
-
version = "2026.
|
|
29
|
+
version = "2026.10.19"
|
|
30
30
|
source = { registry = "https://pypi.org/simple" }
|
|
31
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
31
|
+
sdist = { url = "https://files.pythonhosted.org/packages/a6/bd/1436c50cc46699de0230fbaacc1d1de7bfec413176099949e9d5112e88f2/certifi-2026.10.19.tar.gz", hash = "sha256:035c1e85572b141bf1c3a3eff0e33a8eb74917522f2559075ff8d2fea780a1ae", size = 137598, upload-time = "2026-10-20T02:24:16.604Z" }
|
|
32
32
|
wheels = [
|
|
33
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
33
|
+
{ url = "https://files.pythonhosted.org/packages/c4/51/29046e48f693c54e5b7412216d447a1d8362c9653148d98c02cdf65fa733/certifi-2026.10.19-py3-none-any.whl", hash = "sha256:42d35340cc5b9ba78e818ddbff0c5b1c2b779de448a340fd1b989f5fa8670e1b", size = 136464, upload-time = "2026-10-20T02:24:15.072Z" },
|
|
34
34
|
]
|
|
35
35
|
|
|
36
36
|
[[package]]
|