langgraph-cli 0.4.35__tar.gz → 0.4.36__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.35 → langgraph_cli-0.4.36}/PKG-INFO +1 -1
- langgraph_cli-0.4.36/langgraph_cli/__init__.py +1 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/deploy.py +44 -12
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/cli/test_deploy_command.py +88 -3
- langgraph_cli-0.4.35/langgraph_cli/__init__.py +0 -1
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/.gitignore +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/LICENSE +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/Makefile +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/README.md +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/.env.example +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/.gitignore +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/Makefile +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graph_prerelease_reqs/agent.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graph_prerelease_reqs/deps/additional_deps/pyproject.toml +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graph_prerelease_reqs/deps/zuper_deps/pyproject.toml +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graph_prerelease_reqs/langgraph.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graph_prerelease_reqs/pyproject.toml +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graph_prerelease_reqs_fail/agent.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graph_prerelease_reqs_fail/langgraph.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graph_prerelease_reqs_fail/pyproject.toml +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs/agent.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs/langgraph.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs/storm.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_a/__init__.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_a/graphs_submod/__init__.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_a/graphs_submod/agent.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_a/graphs_submod/subprompt.txt +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_a/hello.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_a/langgraph.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_a/prompt.txt +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_a/requirements.txt +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_b/graphs_submod/agent.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_b/graphs_submod/subprompt.txt +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_b/hello.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_b/langgraph.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_b/prompt.txt +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_b/requirements.txt +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_b/utils/__init__.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_b/utils/greeter.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/langgraph.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/my_app.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/pipconf.txt +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/pyproject.toml +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/generate_schema.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/.dockerignore +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/.editorconfig +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/.env.example +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/.eslintrc.cjs +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/.gitignore +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/LICENSE +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/README.md +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/jest.config.js +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/langgraph.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/package.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/src/agent/graph.ts +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/src/agent/state.ts +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/static/studio.png +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/tests/agent.test.ts +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/tests/graph.int.test.ts +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/tsconfig.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-examples/yarn.lock +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-monorepo-example/.eslintrc.cjs +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-monorepo-example/apps/agent/langgraph.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-monorepo-example/apps/agent/package.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-monorepo-example/apps/agent/src/graph.ts +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-monorepo-example/apps/agent/src/state.ts +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-monorepo-example/apps/agent/tsconfig.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-monorepo-example/libs/shared/package.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-monorepo-example/libs/shared/src/index.ts +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-monorepo-example/libs/shared/tsconfig.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-monorepo-example/package.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-monorepo-example/tsconfig.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-monorepo-example/turbo.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/js-monorepo-example/yarn.lock +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/__main__.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/_ignore.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/analytics.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/archive.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/cli.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/config.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/constants.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/dependency_tracking.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/docker.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/exec.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/host_backend.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/image_reference.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/progress.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/py.typed +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/schemas.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/templates.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/util.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/uv_lock.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/langgraph_cli/version.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/pyproject.toml +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/apps/agent/.env.example +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/apps/agent/langgraph.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/apps/agent/pyproject.toml +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/apps/agent/src/agent/__init__.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/apps/agent/src/agent/graph.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/apps/agent/src/agent/state.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/libs/common/__init__.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/libs/common/helpers.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/libs/shared/pyproject.toml +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/libs/shared/src/shared/__init__.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/libs/shared/src/shared/utils.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/pyproject.toml +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/schemas/schema.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/schemas/schema.v0.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/schemas/version.schema.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/__init__.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/integration_tests/__init__.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/integration_tests/test_cli.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/__init__.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/agent.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/cli/__init__.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/cli/langgraph.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/cli/pyproject.toml +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/cli/test_cli.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/cli/test_templates.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/conftest.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/graphs/agent.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/helpers.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/multiplatform/js.mts +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/multiplatform/python.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/pipconfig.txt +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/test_archive.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/test_config.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/test_config.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/test_dependency_tracking.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/test_deploy_agents.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/test_deploy_helpers.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/test_docker.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/test_host_backend.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/test_image_reference.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/test_logs_helpers.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/tests/unit_tests/test_util.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/apps/agent/.env.example +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/apps/agent/langgraph.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/apps/agent/pyproject.toml +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/apps/agent/src/agent/__init__.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/apps/agent/src/agent/graph.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/libs/shared/pyproject.toml +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/libs/shared/src/shared/__init__.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/libs/shared/src/shared/utils.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/pyproject.toml +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/uv.lock +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/simple/.env.example +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/simple/langgraph.json +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/simple/pyproject.toml +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/simple/src/agent/__init__.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/simple/src/agent/graph.py +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/simple/uv.lock +0 -0
- {langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv.lock +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.4.36"
|
|
@@ -1209,6 +1209,33 @@ class DockerBuildCommand:
|
|
|
1209
1209
|
return cls(("docker", "buildx", "build"), flags)
|
|
1210
1210
|
|
|
1211
1211
|
|
|
1212
|
+
def _active_docker_host(runner: CommandRunner) -> str | None:
|
|
1213
|
+
"""Return the daemon endpoint of the user's active Docker context.
|
|
1214
|
+
|
|
1215
|
+
None when `DOCKER_HOST` is set, which Docker honors with any config
|
|
1216
|
+
directory. Also None when the lookup fails (for example, `DOCKER_CONTEXT`
|
|
1217
|
+
names a context that doesn't exist) or the context has no Docker endpoint
|
|
1218
|
+
(Docker prints `<no value>`); that keeps Docker's own default in place.
|
|
1219
|
+
"""
|
|
1220
|
+
if os.environ.get("DOCKER_HOST"):
|
|
1221
|
+
return None
|
|
1222
|
+
try:
|
|
1223
|
+
stdout, _ = runner.run(
|
|
1224
|
+
subp_exec(
|
|
1225
|
+
"docker",
|
|
1226
|
+
"context",
|
|
1227
|
+
"inspect",
|
|
1228
|
+
"--format",
|
|
1229
|
+
"{{.Endpoints.docker.Host}}",
|
|
1230
|
+
collect=True,
|
|
1231
|
+
)
|
|
1232
|
+
)
|
|
1233
|
+
except (click.exceptions.Exit, OSError):
|
|
1234
|
+
return None
|
|
1235
|
+
host = (stdout or "").strip()
|
|
1236
|
+
return host if "://" in host else None
|
|
1237
|
+
|
|
1238
|
+
|
|
1212
1239
|
def _docker_argv(docker_config_dir: str | None) -> tuple[str, ...]:
|
|
1213
1240
|
if docker_config_dir is None:
|
|
1214
1241
|
return ("docker",)
|
|
@@ -1242,17 +1269,13 @@ def _push_image(
|
|
|
1242
1269
|
runner: CommandRunner,
|
|
1243
1270
|
image: str,
|
|
1244
1271
|
*,
|
|
1245
|
-
|
|
1272
|
+
docker: tuple[str, ...],
|
|
1246
1273
|
verbose: bool,
|
|
1247
1274
|
) -> None:
|
|
1248
1275
|
for attempt in range(1, _PUSH_ATTEMPTS + 1):
|
|
1249
1276
|
try:
|
|
1250
1277
|
with Progress(message="Pushing...", elapsed=not verbose):
|
|
1251
|
-
runner.run(
|
|
1252
|
-
subp_exec(
|
|
1253
|
-
*_docker_argv(docker_config_dir), "push", image, verbose=verbose
|
|
1254
|
-
)
|
|
1255
|
-
)
|
|
1278
|
+
runner.run(subp_exec(*docker, "push", image, verbose=verbose))
|
|
1256
1279
|
return
|
|
1257
1280
|
except click.exceptions.Exit:
|
|
1258
1281
|
if attempt == _PUSH_ATTEMPTS:
|
|
@@ -1337,6 +1360,11 @@ def _run_local_build(
|
|
|
1337
1360
|
registry_host = repository.split("/")[0]
|
|
1338
1361
|
|
|
1339
1362
|
with _docker_config_for_token(registry_host, deployment_token, username) as cfg:
|
|
1363
|
+
# A config directory has no current context, so Docker would fall
|
|
1364
|
+
# back to /var/run/docker.sock; keep using the daemon the build used.
|
|
1365
|
+
docker_host = _active_docker_host(runner)
|
|
1366
|
+
host_args = ("--host", docker_host) if docker_host else ()
|
|
1367
|
+
docker = (*_docker_argv(cfg), *host_args)
|
|
1340
1368
|
_log_deploy_step(step, f"Logging into {registry_host}")
|
|
1341
1369
|
token_input = (
|
|
1342
1370
|
deployment_token
|
|
@@ -1345,7 +1373,7 @@ def _run_local_build(
|
|
|
1345
1373
|
)
|
|
1346
1374
|
runner.run(
|
|
1347
1375
|
subp_exec(
|
|
1348
|
-
*
|
|
1376
|
+
*docker,
|
|
1349
1377
|
"login",
|
|
1350
1378
|
"-u",
|
|
1351
1379
|
username,
|
|
@@ -1361,7 +1389,7 @@ def _run_local_build(
|
|
|
1361
1389
|
runner.run(
|
|
1362
1390
|
subp_exec("docker", "tag", image_to_push, remote_image, verbose=verbose)
|
|
1363
1391
|
)
|
|
1364
|
-
_push_image(runner, remote_image,
|
|
1392
|
+
_push_image(runner, remote_image, docker=docker, verbose=verbose)
|
|
1365
1393
|
step += 1
|
|
1366
1394
|
|
|
1367
1395
|
resolved_image = _resolve_pushed_image_digest(
|
|
@@ -1826,7 +1854,7 @@ class CustomerRegistrySource:
|
|
|
1826
1854
|
_build_image(runner, ctx.spec, image, verbose=ctx.verbose)
|
|
1827
1855
|
step += 1
|
|
1828
1856
|
_log_deploy_step(step, f"Pushing image {image}")
|
|
1829
|
-
_push_image(runner, image,
|
|
1857
|
+
_push_image(runner, image, docker=_docker_argv(None), verbose=ctx.verbose)
|
|
1830
1858
|
step += 1
|
|
1831
1859
|
digest = _resolve_pushed_image_digest(
|
|
1832
1860
|
runner, remote_image=image, docker_config_dir=None, verbose=ctx.verbose
|
|
@@ -2185,11 +2213,13 @@ def _deploy_base_options(
|
|
|
2185
2213
|
),
|
|
2186
2214
|
click.option(
|
|
2187
2215
|
"--deployment-type",
|
|
2188
|
-
type=click.Choice(["dev", "prod"]),
|
|
2216
|
+
type=click.Choice(["serverless", "dedicated", "dev", "prod"]),
|
|
2189
2217
|
default="dev",
|
|
2190
2218
|
show_default=True,
|
|
2191
2219
|
help=(
|
|
2192
|
-
"Deployment type (used when creating a new deployment)
|
|
2220
|
+
"Deployment type (used when creating a new deployment): "
|
|
2221
|
+
"serverless (scale to zero) or dedicated (prod); "
|
|
2222
|
+
"legacy dev and prod are also accepted. "
|
|
2193
2223
|
"Ignored with --push-to."
|
|
2194
2224
|
),
|
|
2195
2225
|
),
|
|
@@ -2480,7 +2510,9 @@ def _deploy_cmd(
|
|
|
2480
2510
|
),
|
|
2481
2511
|
verbose=verbose,
|
|
2482
2512
|
selector=selector,
|
|
2483
|
-
deployment_type=
|
|
2513
|
+
deployment_type={"serverless": "dev_zero", "dedicated": "prod"}.get(
|
|
2514
|
+
deployment_type, deployment_type
|
|
2515
|
+
),
|
|
2484
2516
|
secrets=secrets,
|
|
2485
2517
|
tracked_packages=tracked_packages,
|
|
2486
2518
|
)
|
|
@@ -52,6 +52,8 @@ ARCHIVE = ("/tmp/src.tgz", 2048, "langgraph.json")
|
|
|
52
52
|
OBJECT_PATH = "tarballs/src.tgz"
|
|
53
53
|
PLATFORM_FORMAT = "{{.Os}}/{{.Architecture}}"
|
|
54
54
|
DIGESTS_FORMAT = "{{json .RepoDigests}}"
|
|
55
|
+
CONTEXT_HOST_FORMAT = "{{.Endpoints.docker.Host}}"
|
|
56
|
+
CONTEXT_HOST = "unix:///Users/dev/.docker/run/docker.sock"
|
|
55
57
|
NOT_A_CLI_DEPLOYMENT = (
|
|
56
58
|
"push token is only available for 'internal_docker' source deployments"
|
|
57
59
|
)
|
|
@@ -192,6 +194,8 @@ class DockerCommand:
|
|
|
192
194
|
class DockerDouble:
|
|
193
195
|
timeline: list[str]
|
|
194
196
|
failing_pushes: int = 0
|
|
197
|
+
context_lookup_fails: bool = False
|
|
198
|
+
context_host: str = CONTEXT_HOST
|
|
195
199
|
builds: list[dict] = field(default_factory=list)
|
|
196
200
|
commands: list[DockerCommand] = field(default_factory=list)
|
|
197
201
|
|
|
@@ -235,6 +239,10 @@ class DockerDouble:
|
|
|
235
239
|
if "push" in args and self.failing_pushes > 0:
|
|
236
240
|
self.failing_pushes -= 1
|
|
237
241
|
raise click.exceptions.Exit(1)
|
|
242
|
+
if CONTEXT_HOST_FORMAT in args:
|
|
243
|
+
if self.context_lookup_fails:
|
|
244
|
+
raise click.exceptions.Exit(1)
|
|
245
|
+
return f"{self.context_host}\n", None
|
|
238
246
|
if PLATFORM_FORMAT in args:
|
|
239
247
|
return "linux/amd64\n", None
|
|
240
248
|
if DIGESTS_FORMAT in args:
|
|
@@ -244,6 +252,8 @@ class DockerDouble:
|
|
|
244
252
|
|
|
245
253
|
@staticmethod
|
|
246
254
|
def _verb(args: tuple[str, ...]) -> str:
|
|
255
|
+
if CONTEXT_HOST_FORMAT in args:
|
|
256
|
+
return "inspect-context"
|
|
247
257
|
if PLATFORM_FORMAT in args:
|
|
248
258
|
return "inspect-platform"
|
|
249
259
|
if DIGESTS_FORMAT in args:
|
|
@@ -292,7 +302,12 @@ def deploy_project(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> DeployPro
|
|
|
292
302
|
json.dumps({"graphs": {"agent": "agent.py:graph"}, "dependencies": ["."]})
|
|
293
303
|
)
|
|
294
304
|
monkeypatch.chdir(tmp_path)
|
|
295
|
-
for name in (
|
|
305
|
+
for name in (
|
|
306
|
+
"LANGSMITH_TENANT_ID",
|
|
307
|
+
"LANGSMITH_ENDPOINT",
|
|
308
|
+
"LANGGRAPH_HOST_URL",
|
|
309
|
+
"DOCKER_HOST",
|
|
310
|
+
):
|
|
296
311
|
monkeypatch.delenv(name, raising=False)
|
|
297
312
|
|
|
298
313
|
timeline: list[str] = []
|
|
@@ -340,6 +355,7 @@ def test_first_local_deploy_creates_then_builds_pushes_and_updates_in_order(
|
|
|
340
355
|
CREATE_DEPLOYMENT,
|
|
341
356
|
"docker build",
|
|
342
357
|
_push_token(CREATED_ID),
|
|
358
|
+
"docker inspect-context",
|
|
343
359
|
"docker login",
|
|
344
360
|
"docker tag",
|
|
345
361
|
"docker push",
|
|
@@ -349,6 +365,27 @@ def test_first_local_deploy_creates_then_builds_pushes_and_updates_in_order(
|
|
|
349
365
|
assert "Deployment updated" in result.output
|
|
350
366
|
|
|
351
367
|
|
|
368
|
+
@pytest.mark.parametrize(
|
|
369
|
+
("deployment_type", "wire_type"),
|
|
370
|
+
[
|
|
371
|
+
("serverless", "dev_zero"),
|
|
372
|
+
("dedicated", "prod"),
|
|
373
|
+
("dev", "dev"),
|
|
374
|
+
("prod", "prod"),
|
|
375
|
+
],
|
|
376
|
+
)
|
|
377
|
+
@pytest.mark.parametrize("build_mode", ["--no-remote", "--remote"])
|
|
378
|
+
def test_deployment_type_aliases(
|
|
379
|
+
deploy_project: DeployProject, deployment_type: str, wire_type: str, build_mode: str
|
|
380
|
+
) -> None:
|
|
381
|
+
result = deploy_project.run(build_mode, "--deployment-type", deployment_type)
|
|
382
|
+
|
|
383
|
+
assert result.exit_code == 0, result.output
|
|
384
|
+
assert deploy_project.control_plane.bodies[CREATE_DEPLOYMENT]["source_config"] == {
|
|
385
|
+
"deployment_type": wire_type
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
|
|
352
389
|
def test_first_local_deploy_creates_an_internal_docker_deployment(
|
|
353
390
|
deploy_project: DeployProject,
|
|
354
391
|
) -> None:
|
|
@@ -406,7 +443,7 @@ def test_local_deploy_logs_in_with_the_control_plane_push_token(
|
|
|
406
443
|
|
|
407
444
|
login = deploy_project.docker.command("login")
|
|
408
445
|
assert login.args[:2] == ("docker", "--config")
|
|
409
|
-
assert login.args[
|
|
446
|
+
assert login.args[-5:] == (
|
|
410
447
|
"login",
|
|
411
448
|
"-u",
|
|
412
449
|
"oauth2accesstoken",
|
|
@@ -416,6 +453,53 @@ def test_local_deploy_logs_in_with_the_control_plane_push_token(
|
|
|
416
453
|
assert login.kwargs["input"] == f"{PUSH_TOKEN}\n"
|
|
417
454
|
|
|
418
455
|
|
|
456
|
+
def test_local_deploy_logs_in_and_pushes_through_the_active_docker_context(
|
|
457
|
+
deploy_project: DeployProject,
|
|
458
|
+
) -> None:
|
|
459
|
+
"""The temporary config has no current context, so without the active
|
|
460
|
+
context's endpoint Docker would push through /var/run/docker.sock."""
|
|
461
|
+
result = deploy_project.run("--no-remote")
|
|
462
|
+
|
|
463
|
+
assert result.exit_code == 0, result.output
|
|
464
|
+
for verb in ("login", "push"):
|
|
465
|
+
args = deploy_project.docker.command(verb).args
|
|
466
|
+
assert args[3:5] == ("--host", CONTEXT_HOST), verb
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
def test_local_deploy_leaves_an_explicit_docker_host_to_docker(
|
|
470
|
+
deploy_project: DeployProject, monkeypatch: pytest.MonkeyPatch
|
|
471
|
+
) -> None:
|
|
472
|
+
monkeypatch.setenv("DOCKER_HOST", "tcp://127.0.0.1:2375")
|
|
473
|
+
|
|
474
|
+
result = deploy_project.run("--no-remote")
|
|
475
|
+
|
|
476
|
+
assert result.exit_code == 0, result.output
|
|
477
|
+
for verb in ("login", "push"):
|
|
478
|
+
assert "--host" not in deploy_project.docker.command(verb).args, verb
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
def test_local_deploy_keeps_dockers_default_when_the_context_lookup_fails(
|
|
482
|
+
deploy_project: DeployProject,
|
|
483
|
+
) -> None:
|
|
484
|
+
deploy_project.docker.context_lookup_fails = True
|
|
485
|
+
|
|
486
|
+
result = deploy_project.run("--no-remote")
|
|
487
|
+
|
|
488
|
+
assert result.exit_code == 0, result.output
|
|
489
|
+
assert "--host" not in deploy_project.docker.command("push").args
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
def test_local_deploy_ignores_a_context_without_a_docker_endpoint(
|
|
493
|
+
deploy_project: DeployProject,
|
|
494
|
+
) -> None:
|
|
495
|
+
deploy_project.docker.context_host = "<no value>"
|
|
496
|
+
|
|
497
|
+
result = deploy_project.run("--no-remote")
|
|
498
|
+
|
|
499
|
+
assert result.exit_code == 0, result.output
|
|
500
|
+
assert "--host" not in deploy_project.docker.command("push").args
|
|
501
|
+
|
|
502
|
+
|
|
419
503
|
def test_local_deploy_tells_the_control_plane_it_honors_registry_usernames(
|
|
420
504
|
deploy_project: DeployProject,
|
|
421
505
|
) -> None:
|
|
@@ -438,7 +522,7 @@ def test_local_deploy_logs_in_with_the_username_the_control_plane_returns(
|
|
|
438
522
|
deploy_project.run("--no-remote")
|
|
439
523
|
|
|
440
524
|
login = deploy_project.docker.command("login")
|
|
441
|
-
assert login.args[
|
|
525
|
+
assert login.args[-5:] == (
|
|
442
526
|
"login",
|
|
443
527
|
"-u",
|
|
444
528
|
"AWS",
|
|
@@ -506,6 +590,7 @@ def test_prebuilt_image_is_validated_and_pushed_without_a_build(
|
|
|
506
590
|
assert deploy_project.docker.builds == []
|
|
507
591
|
assert deploy_project.docker.verbs() == [
|
|
508
592
|
"docker inspect-platform",
|
|
593
|
+
"docker inspect-context",
|
|
509
594
|
"docker login",
|
|
510
595
|
"docker tag",
|
|
511
596
|
"docker push",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.4.35"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graph_prerelease_reqs_fail/langgraph.json
RENAMED
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graph_prerelease_reqs_fail/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_a/graphs_submod/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_a/graphs_submod/subprompt.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/examples/graphs_reqs_b/graphs_submod/subprompt.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/apps/agent/.env.example
RENAMED
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/apps/agent/langgraph.json
RENAMED
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/apps/agent/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/apps/agent/src/agent/graph.py
RENAMED
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/apps/agent/src/agent/state.py
RENAMED
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/libs/common/__init__.py
RENAMED
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/libs/common/helpers.py
RENAMED
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/python-monorepo-example/libs/shared/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/apps/agent/langgraph.json
RENAMED
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/apps/agent/pyproject.toml
RENAMED
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/apps/agent/src/agent/__init__.py
RENAMED
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/apps/agent/src/agent/graph.py
RENAMED
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/libs/shared/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
{langgraph_cli-0.4.35 → langgraph_cli-0.4.36}/uv-examples/monorepo/libs/shared/src/shared/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|