langgraph-cli 0.4.37__tar.gz → 0.4.39__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.
Files changed (154) hide show
  1. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/PKG-INFO +1 -1
  2. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/generate_schema.py +2 -0
  3. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/yarn.lock +9 -9
  4. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-monorepo-example/yarn.lock +3 -3
  5. langgraph_cli-0.4.39/langgraph_cli/__init__.py +1 -0
  6. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/cli.py +1 -0
  7. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/config.py +63 -0
  8. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/deploy.py +106 -110
  9. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/host_backend.py +34 -9
  10. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/schemas.py +29 -0
  11. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/uv_lock.py +1 -0
  12. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/schemas/schema.json +45 -0
  13. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/schemas/schema.v0.json +45 -0
  14. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/cli/test_cli.py +325 -0
  15. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/cli/test_deploy_command.py +11 -4
  16. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/test_config.py +138 -0
  17. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/test_deploy_agents.py +1 -0
  18. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/test_deploy_helpers.py +54 -10
  19. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/test_host_backend.py +72 -9
  20. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/test_util.py +4 -98
  21. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/monorepo/uv.lock +10 -10
  22. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/simple/uv.lock +3 -3
  23. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv.lock +126 -75
  24. langgraph_cli-0.4.37/langgraph_cli/__init__.py +0 -1
  25. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/.gitignore +0 -0
  26. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/LICENSE +0 -0
  27. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/Makefile +0 -0
  28. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/README.md +0 -0
  29. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/.env.example +0 -0
  30. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/.gitignore +0 -0
  31. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/Makefile +0 -0
  32. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graph_prerelease_reqs/agent.py +0 -0
  33. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graph_prerelease_reqs/deps/additional_deps/pyproject.toml +0 -0
  34. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graph_prerelease_reqs/deps/zuper_deps/pyproject.toml +0 -0
  35. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graph_prerelease_reqs/langgraph.json +0 -0
  36. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graph_prerelease_reqs/pyproject.toml +0 -0
  37. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graph_prerelease_reqs_fail/agent.py +0 -0
  38. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graph_prerelease_reqs_fail/langgraph.json +0 -0
  39. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graph_prerelease_reqs_fail/pyproject.toml +0 -0
  40. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs/agent.py +0 -0
  41. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs/langgraph.json +0 -0
  42. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs/storm.py +0 -0
  43. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_a/__init__.py +0 -0
  44. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_a/graphs_submod/__init__.py +0 -0
  45. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_a/graphs_submod/agent.py +0 -0
  46. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_a/graphs_submod/subprompt.txt +0 -0
  47. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_a/hello.py +0 -0
  48. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_a/langgraph.json +0 -0
  49. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_a/prompt.txt +0 -0
  50. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_a/requirements.txt +0 -0
  51. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_b/graphs_submod/agent.py +0 -0
  52. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_b/graphs_submod/subprompt.txt +0 -0
  53. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_b/hello.py +0 -0
  54. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_b/langgraph.json +0 -0
  55. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_b/prompt.txt +0 -0
  56. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_b/requirements.txt +0 -0
  57. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_b/utils/__init__.py +0 -0
  58. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/graphs_reqs_b/utils/greeter.py +0 -0
  59. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/langgraph.json +0 -0
  60. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/my_app.py +0 -0
  61. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/pipconf.txt +0 -0
  62. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/examples/pyproject.toml +0 -0
  63. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/.dockerignore +0 -0
  64. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/.editorconfig +0 -0
  65. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/.env.example +0 -0
  66. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/.eslintrc.cjs +0 -0
  67. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/.gitignore +0 -0
  68. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/LICENSE +0 -0
  69. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/README.md +0 -0
  70. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/jest.config.js +0 -0
  71. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/langgraph.json +0 -0
  72. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/package.json +0 -0
  73. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/src/agent/graph.ts +0 -0
  74. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/src/agent/state.ts +0 -0
  75. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/static/studio.png +0 -0
  76. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/tests/agent.test.ts +0 -0
  77. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/tests/graph.int.test.ts +0 -0
  78. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-examples/tsconfig.json +0 -0
  79. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-monorepo-example/.eslintrc.cjs +0 -0
  80. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-monorepo-example/apps/agent/langgraph.json +0 -0
  81. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-monorepo-example/apps/agent/package.json +0 -0
  82. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-monorepo-example/apps/agent/src/graph.ts +0 -0
  83. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-monorepo-example/apps/agent/src/state.ts +0 -0
  84. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-monorepo-example/apps/agent/tsconfig.json +0 -0
  85. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-monorepo-example/libs/shared/package.json +0 -0
  86. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-monorepo-example/libs/shared/src/index.ts +0 -0
  87. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-monorepo-example/libs/shared/tsconfig.json +0 -0
  88. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-monorepo-example/package.json +0 -0
  89. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-monorepo-example/tsconfig.json +0 -0
  90. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/js-monorepo-example/turbo.json +0 -0
  91. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/__main__.py +0 -0
  92. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/_ignore.py +0 -0
  93. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/analytics.py +0 -0
  94. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/archive.py +0 -0
  95. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/constants.py +0 -0
  96. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/dependency_tracking.py +0 -0
  97. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/docker.py +0 -0
  98. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/exec.py +0 -0
  99. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/image_reference.py +0 -0
  100. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/progress.py +0 -0
  101. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/py.typed +0 -0
  102. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/templates.py +0 -0
  103. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/util.py +0 -0
  104. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/langgraph_cli/version.py +0 -0
  105. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/pyproject.toml +0 -0
  106. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/python-monorepo-example/apps/agent/.env.example +0 -0
  107. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/python-monorepo-example/apps/agent/langgraph.json +0 -0
  108. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/python-monorepo-example/apps/agent/pyproject.toml +0 -0
  109. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/python-monorepo-example/apps/agent/src/agent/__init__.py +0 -0
  110. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/python-monorepo-example/apps/agent/src/agent/graph.py +0 -0
  111. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/python-monorepo-example/apps/agent/src/agent/state.py +0 -0
  112. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/python-monorepo-example/libs/common/__init__.py +0 -0
  113. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/python-monorepo-example/libs/common/helpers.py +0 -0
  114. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/python-monorepo-example/libs/shared/pyproject.toml +0 -0
  115. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/python-monorepo-example/libs/shared/src/shared/__init__.py +0 -0
  116. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/python-monorepo-example/libs/shared/src/shared/utils.py +0 -0
  117. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/python-monorepo-example/pyproject.toml +0 -0
  118. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/schemas/version.schema.json +0 -0
  119. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/__init__.py +0 -0
  120. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/integration_tests/__init__.py +0 -0
  121. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/integration_tests/test_cli.py +0 -0
  122. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/__init__.py +0 -0
  123. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/agent.py +0 -0
  124. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/cli/__init__.py +0 -0
  125. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/cli/langgraph.json +0 -0
  126. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/cli/pyproject.toml +0 -0
  127. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/cli/test_templates.py +0 -0
  128. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/conftest.py +0 -0
  129. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/graphs/agent.py +0 -0
  130. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/helpers.py +0 -0
  131. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/multiplatform/js.mts +0 -0
  132. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/multiplatform/python.py +0 -0
  133. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/pipconfig.txt +0 -0
  134. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/test_archive.py +0 -0
  135. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/test_config.json +0 -0
  136. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/test_dependency_tracking.py +0 -0
  137. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/test_docker.py +0 -0
  138. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/test_exec.py +0 -0
  139. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/test_image_reference.py +0 -0
  140. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/tests/unit_tests/test_logs_helpers.py +0 -0
  141. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/monorepo/apps/agent/.env.example +0 -0
  142. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/monorepo/apps/agent/langgraph.json +0 -0
  143. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/monorepo/apps/agent/pyproject.toml +0 -0
  144. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/monorepo/apps/agent/src/agent/__init__.py +0 -0
  145. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/monorepo/apps/agent/src/agent/graph.py +0 -0
  146. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/monorepo/libs/shared/pyproject.toml +0 -0
  147. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/monorepo/libs/shared/src/shared/__init__.py +0 -0
  148. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/monorepo/libs/shared/src/shared/utils.py +0 -0
  149. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/monorepo/pyproject.toml +0 -0
  150. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/simple/.env.example +0 -0
  151. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/simple/langgraph.json +0 -0
  152. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/simple/pyproject.toml +0 -0
  153. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/simple/src/agent/__init__.py +0 -0
  154. {langgraph_cli-0.4.37 → langgraph_cli-0.4.39}/uv-examples/simple/src/agent/graph.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: langgraph-cli
3
- Version: 0.4.37
3
+ Version: 0.4.39
4
4
  Summary: CLI for interacting with LangGraph API
5
5
  Project-URL: Source, https://github.com/langchain-ai/langgraph/tree/main/libs/cli
6
6
  Project-URL: Twitter, https://x.com/langchain_oss
@@ -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.11"
1780
- resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
1781
- integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
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.0.2"
1788
- resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.2.tgz#54fc53237a613d854c7bd37463aad17df87214e7"
1789
- integrity sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==
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
 
@@ -5217,6 +5217,6 @@ yocto-queue@^0.1.0:
5217
5217
  integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
5218
5218
 
5219
5219
  "zod@^3.25.76 || ^4":
5220
- version "4.3.6"
5221
- resolved "https://registry.yarnpkg.com/zod/-/zod-4.3.6.tgz#89c56e0aa7d2b05107d894412227087885ab112a"
5222
- integrity sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==
5220
+ version "4.6.7"
5221
+ resolved "https://registry.yarnpkg.com/zod/-/zod-4.6.7.tgz#e806cf64a7f4e37635ce9f2f52c04c3766f75e5b"
5222
+ integrity sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==
@@ -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.12"
585
- resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.12.tgz#ab9b454466e5a8cc3a187beaad580412a9c5b843"
586
- integrity sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==
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.39"
@@ -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
@@ -12,7 +12,7 @@ from collections.abc import Callable, Mapping, Sequence
12
12
  from contextlib import contextmanager
13
13
  from dataclasses import asdict, dataclass, field
14
14
  from datetime import datetime, timezone
15
- from typing import Protocol, TypeVar
15
+ from typing import Generic, Protocol, TypeVar
16
16
 
17
17
  import click
18
18
  import click.exceptions
@@ -26,7 +26,6 @@ from langgraph_cli.dependency_tracking import find_tracked_packages
26
26
  from langgraph_cli.docker import build_docker_image, can_build_locally
27
27
  from langgraph_cli.exec import CommandRunner, Runner, subp_exec
28
28
  from langgraph_cli.host_backend import (
29
- MAX_PAGE_SIZE,
30
29
  ControlPlaneEndpoints,
31
30
  HostBackendClient,
32
31
  HostBackendError,
@@ -183,12 +182,15 @@ class Listener:
183
182
  )
184
183
  return cls(
185
184
  identifier,
186
- str(resource.get("compute_id", "")),
185
+ str(resource.get("compute_id") or ""),
187
186
  tuple(str(namespace) for namespace in namespaces)
188
187
  if isinstance(namespaces, list)
189
188
  else (),
190
189
  )
191
190
 
191
+ def cells(self) -> tuple[str | None, ...]:
192
+ return (self.id, self.compute_id, ", ".join(self.namespaces))
193
+
192
194
 
193
195
  @dataclass(frozen=True, slots=True)
194
196
  class Unplaced:
@@ -276,8 +278,6 @@ def _describe_listeners(listeners: Sequence[Listener]) -> str:
276
278
  ]
277
279
  if len(listeners) > len(shown):
278
280
  lines.append(f" ... and {len(listeners) - len(shown)} more")
279
- if len(listeners) == MAX_PAGE_SIZE:
280
- lines.append(f" (only the first {MAX_PAGE_SIZE} listeners were read)")
281
281
  return "\n".join(lines)
282
282
 
283
283
 
@@ -499,16 +499,9 @@ def _source_of(resource: object) -> str | None:
499
499
  def find_deployment_by_name(
500
500
  client: HostBackendClient, name: str
501
501
  ) -> ExistingDeployment | None:
502
- listed = client.list_deployments(name=name, name_contains=name, limit=MAX_PAGE_SIZE)
503
- for resource in listed:
502
+ for resource in client.list_deployments(name=name, name_contains=name):
504
503
  if resource.get("name") == name and resource.get("id"):
505
504
  return ExistingDeployment(str(resource["id"]), _source_of(resource))
506
- if len(listed) >= MAX_PAGE_SIZE:
507
- raise click.ClickException(
508
- "This workspace has more deployments than the CLI can search, so it "
509
- f"cannot tell whether '{name}' already exists. Pass --deployment-id to "
510
- "update an existing deployment."
511
- )
512
505
  return None
513
506
 
514
507
 
@@ -583,103 +576,96 @@ def _validate_prebuilt_image(
583
576
  _get_emitter().info(f"Image is available for {_DEPLOYMENT_PLATFORM}")
584
577
 
585
578
 
586
- def _extract_deployment_url(deployment: dict[str, object]) -> str:
587
- source_config = deployment.get("source_config")
588
- if isinstance(source_config, dict):
589
- custom_url = source_config.get("custom_url")
590
- if isinstance(custom_url, str) and custom_url:
591
- return custom_url
592
- return "-"
579
+ Resource = Mapping[str, object]
580
+ RowT = TypeVar("RowT")
593
581
 
594
582
 
595
- def format_deployments_table(deployments: Sequence[dict[str, object]]) -> str:
596
- headers = ("Deployment ID", "Deployment Name", "Deployment URL")
597
- rows = [
598
- (
599
- str(deployment.get("id", "-") or "-"),
600
- str(deployment.get("name", "-") or "-"),
601
- _extract_deployment_url(deployment),
583
+ @dataclass(frozen=True, slots=True)
584
+ class Table(Generic[RowT]):
585
+ headers: tuple[str, ...]
586
+ cells: Callable[[RowT], tuple[str | None, ...]]
587
+
588
+ def render(self, rows: Sequence[RowT]) -> str:
589
+ grid = [
590
+ self.headers,
591
+ *(tuple(cell or "-" for cell in self.cells(row)) for row in rows),
592
+ ]
593
+ widths = [max(map(len, column)) for column in zip(*grid, strict=True)]
594
+ rule = tuple("-" * width for width in widths)
595
+ return "\n".join(
596
+ " ".join(
597
+ cell.ljust(width) for cell, width in zip(line, widths, strict=True)
598
+ )
599
+ for line in (grid[0], rule, *grid[1:])
602
600
  )
603
- for deployment in deployments
604
- ]
605
- widths = [
606
- max(len(headers[index]), *(len(row[index]) for row in rows))
607
- for index in range(len(headers))
608
- ]
609
601
 
610
- def format_row(row: Sequence[str]) -> str:
611
- return " ".join(value.ljust(widths[index]) for index, value in enumerate(row))
612
602
 
613
- lines = [format_row(headers), format_row(tuple("-" * width for width in widths))]
614
- lines.extend(format_row(row) for row in rows)
615
- return "\n".join(lines)
603
+ def _text(resource: Resource, key: str) -> str | None:
604
+ value = resource.get(key)
605
+ return str(value) if value else None
616
606
 
617
607
 
618
- def _extract_listener_namespaces(listener: dict[str, object]) -> str:
619
- compute_config = listener.get("compute_config")
620
- namespaces = (
621
- compute_config.get("k8s_namespaces")
622
- if isinstance(compute_config, dict)
623
- else None
608
+ def _deployment_url(deployment: Resource) -> str | None:
609
+ source_config = deployment.get("source_config")
610
+ custom_url = (
611
+ source_config.get("custom_url") if isinstance(source_config, Mapping) else None
624
612
  )
625
- if isinstance(namespaces, list) and namespaces:
626
- return ", ".join(str(namespace) for namespace in namespaces)
627
- return "-"
613
+ return custom_url if isinstance(custom_url, str) and custom_url else None
628
614
 
629
615
 
630
- def format_listeners_table(listeners: Sequence[dict[str, object]]) -> str:
631
- headers = ("Listener ID", "Compute ID", "Namespaces")
632
- rows = [
616
+ def _with_replaced_status(revisions: Sequence[Resource]) -> list[Resource]:
617
+ live_index = next(
633
618
  (
634
- str(listener.get("id", "-") or "-"),
635
- str(listener.get("compute_id", "-") or "-"),
636
- _extract_listener_namespaces(listener),
637
- )
638
- for listener in listeners
639
- ]
640
- widths = [
641
- max(len(headers[index]), *(len(row[index]) for row in rows))
642
- for index in range(len(headers))
619
+ index
620
+ for index, revision in enumerate(revisions)
621
+ if revision.get("status") == "DEPLOYED"
622
+ ),
623
+ None,
624
+ )
625
+ return [
626
+ {**revision, "status": "REPLACED"}
627
+ if revision.get("status") == "DEPLOYED" and index != live_index
628
+ else revision
629
+ for index, revision in enumerate(revisions)
643
630
  ]
644
631
 
645
- def format_row(row: Sequence[str]) -> str:
646
- return " ".join(value.ljust(widths[index]) for index, value in enumerate(row))
647
-
648
- lines = [format_row(headers), format_row(tuple("-" * width for width in widths))]
649
- lines.extend(format_row(row) for row in rows)
650
- return "\n".join(lines)
651
632
 
633
+ @dataclass(frozen=True, slots=True)
634
+ class DeploymentRow:
635
+ id: str
636
+ name: str | None
637
+ url: str | None
652
638
 
653
- def format_revisions_table(revisions: Sequence[dict[str, object]]) -> str:
654
- headers = ("Revision ID", "Status", "Created At")
655
- latest_deployed_seen = False
656
- rows = []
657
- for revision in revisions:
658
- status = str(revision.get("status", "-") or "-")
659
- if status == "DEPLOYED":
660
- if latest_deployed_seen:
661
- status = "REPLACED"
662
- else:
663
- latest_deployed_seen = True
664
- rows.append(
665
- (
666
- str(revision.get("id", "-") or "-"),
667
- status,
668
- str(revision.get("created_at", "-") or "-"),
639
+ @classmethod
640
+ def from_resource(cls, deployment: Resource) -> "DeploymentRow":
641
+ identifier = _text(deployment, "id")
642
+ if identifier is None:
643
+ raise HostBackendError(
644
+ "The control plane returned a deployment without an id."
669
645
  )
670
- )
646
+ return cls(identifier, _text(deployment, "name"), _deployment_url(deployment))
671
647
 
672
- widths = [
673
- max(len(headers[index]), *(len(row[index]) for row in rows))
674
- for index in range(len(headers))
675
- ]
648
+ def cells(self) -> tuple[str | None, ...]:
649
+ return (self.id, self.name, self.url)
676
650
 
677
- def format_row(row: Sequence[str]) -> str:
678
- return " ".join(value.ljust(widths[index]) for index, value in enumerate(row))
651
+ def as_json(self) -> dict[str, str | None]:
652
+ return {"id": self.id, "name": self.name}
679
653
 
680
- lines = [format_row(headers), format_row(tuple("-" * width for width in widths))]
681
- lines.extend(format_row(row) for row in rows)
682
- return "\n".join(lines)
654
+
655
+ DEPLOYMENTS_TABLE = Table(
656
+ ("Deployment ID", "Deployment Name", "Deployment URL"), DeploymentRow.cells
657
+ )
658
+
659
+ LISTENERS_TABLE = Table(("Listener ID", "Compute ID", "Namespaces"), Listener.cells)
660
+
661
+ REVISIONS_TABLE = Table(
662
+ ("Revision ID", "Status", "Created At"),
663
+ lambda revision: (
664
+ _text(revision, "id"),
665
+ _text(revision, "status"),
666
+ _text(revision, "created_at"),
667
+ ),
668
+ )
683
669
 
684
670
 
685
671
  def format_timestamp(ts) -> str:
@@ -841,7 +827,6 @@ def _find_deployment(
841
827
  lambda c: c.list_deployments(
842
828
  agent_id=selector.agent_id,
843
829
  agent_environment=selector.environment,
844
- limit=MAX_PAGE_SIZE,
845
830
  ),
846
831
  )
847
832
  if len(existing) > 1:
@@ -1007,20 +992,15 @@ def _print_deployment_result(
1007
992
  dashboard_label: str,
1008
993
  status_url: str | None = None,
1009
994
  ) -> None:
1010
- """Print final deployment status and raise on failure."""
1011
995
  em = _get_emitter()
1012
- dep_info = client.get_deployment(deployment_id)
1013
- custom_url = None
1014
- if isinstance(dep_info, dict):
1015
- sc = dep_info.get("source_config")
1016
- if isinstance(sc, dict):
1017
- custom_url = sc.get("custom_url")
996
+ deployment = client.get_deployment(deployment_id)
997
+ url = _deployment_url(deployment) if isinstance(deployment, Mapping) else None
1018
998
 
1019
999
  if last_status == "DEPLOYED":
1020
1000
  em.result(
1021
1001
  "succeeded",
1022
1002
  deployment_id=deployment_id,
1023
- url=custom_url,
1003
+ url=url,
1024
1004
  status_url=status_url,
1025
1005
  )
1026
1006
  elif last_status in ("BUILD_FAILED", "DEPLOY_FAILED", "CREATE_FAILED"):
@@ -2594,6 +2574,13 @@ def _deploy_cmd(
2594
2574
  default="",
2595
2575
  help="Only show deployments whose names contain this value.",
2596
2576
  )
2577
+ @click.option(
2578
+ "--json",
2579
+ "json_output",
2580
+ is_flag=True,
2581
+ default=False,
2582
+ help="Print the deployments as a JSON array of {id, name} instead of a table.",
2583
+ )
2597
2584
  @deploy.command("list", help="[Beta] List LangSmith Deployments.")
2598
2585
  def deploy_list(
2599
2586
  api_key: str | None,
@@ -2601,11 +2588,13 @@ def deploy_list(
2601
2588
  name_contains: str,
2602
2589
  agent_id: str | None,
2603
2590
  environment: str | None,
2591
+ json_output: bool,
2604
2592
  ) -> None:
2605
2593
  if agent_id is not None or environment is not None:
2606
2594
  click.secho(
2607
2595
  "Note: --agent-id and --agent-environment flags are in private beta",
2608
2596
  fg="yellow",
2597
+ err=True,
2609
2598
  )
2610
2599
  if agent_id is not None and not agent_id.strip():
2611
2600
  raise click.UsageError("--agent-id must not be empty.")
@@ -2614,15 +2603,19 @@ def deploy_list(
2614
2603
  filters["agent_id"] = agent_id
2615
2604
  if environment is not None:
2616
2605
  filters["agent_environment"] = environment
2617
- client = _create_host_backend_client(host_url, api_key)
2618
- deployments = _call_host_backend_with_optional_tenant(
2606
+ client = _create_host_backend_client(host_url, api_key, no_input=json_output)
2607
+ resources = _call_host_backend_with_optional_tenant(
2619
2608
  client,
2620
2609
  lambda c: c.list_deployments(name_contains=name_contains, **filters),
2610
+ no_input=json_output,
2621
2611
  )
2622
- if not deployments:
2612
+ deployments = [DeploymentRow.from_resource(resource) for resource in resources]
2613
+ if json_output:
2614
+ click.echo(json_mod.dumps([deployment.as_json() for deployment in deployments]))
2615
+ elif not deployments:
2623
2616
  click.echo("No deployments found.")
2624
- return
2625
- click.echo(format_deployments_table(deployments))
2617
+ else:
2618
+ click.echo(DEPLOYMENTS_TABLE.render(deployments))
2626
2619
 
2627
2620
 
2628
2621
  # ---------------------------------------------------------------------------
@@ -2665,11 +2658,14 @@ def deploy_listeners_list(
2665
2658
  )
2666
2659
  if json_output:
2667
2660
  click.echo(json_mod.dumps(listeners))
2668
- return
2669
- if not listeners:
2661
+ elif not listeners:
2670
2662
  click.echo("No listeners found for this workspace.")
2671
- return
2672
- click.echo(format_listeners_table(listeners))
2663
+ else:
2664
+ click.echo(
2665
+ LISTENERS_TABLE.render(
2666
+ [Listener.from_resource(listener) for listener in listeners]
2667
+ )
2668
+ )
2673
2669
 
2674
2670
 
2675
2671
  # ---------------------------------------------------------------------------
@@ -2712,7 +2708,7 @@ def deploy_revisions_list(
2712
2708
  if not revisions:
2713
2709
  click.echo(f"No revisions found for deployment {deployment_id}.")
2714
2710
  return
2715
- click.echo(format_revisions_table(revisions))
2711
+ click.echo(REVISIONS_TABLE.render(_with_replaced_status(revisions)))
2716
2712
 
2717
2713
 
2718
2714
  # ---------------------------------------------------------------------------
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from collections.abc import Mapping
5
6
  from dataclasses import dataclass
6
7
  from typing import Any, Literal
7
8
  from urllib.parse import urlparse
@@ -220,27 +221,51 @@ class HostBackendClient:
220
221
  *,
221
222
  name: str | None = None,
222
223
  name_contains: str | None = None,
223
- limit: int | None = None,
224
224
  agent_id: str | None = None,
225
225
  agent_environment: str | None = None,
226
- ) -> list[dict[str, Any]]:
226
+ ) -> list[dict[str, object]]:
227
227
  given = (
228
228
  ("name", name),
229
229
  ("name_contains", name_contains),
230
- ("limit", limit),
231
230
  ("agent_id", agent_id),
232
231
  ("agent_environment", agent_environment),
233
232
  )
234
- params = {key: value for key, value in given if value is not None}
235
- return _resources(self._request("GET", "/v2/deployments", params=params))
233
+ filters = {key: value for key, value in given if value is not None}
234
+ return self._every_page("/v2/deployments", filters)
235
+
236
+ def _every_page(
237
+ self, path: str, filters: Mapping[str, object]
238
+ ) -> list[dict[str, object]]:
239
+ resources: list[dict[str, object]] = []
240
+ seen_ids: set[object] = set()
241
+ while True:
242
+ page = _resources(
243
+ self._request(
244
+ "GET",
245
+ path,
246
+ params={
247
+ **filters,
248
+ "limit": MAX_PAGE_SIZE,
249
+ "offset": len(resources),
250
+ },
251
+ )
252
+ )
253
+ page_ids = {resource.get("id") for resource in page}
254
+ if page_ids and page_ids <= seen_ids:
255
+ raise HostBackendError(
256
+ f"GET {path} returned the same resources again: this control "
257
+ "plane ignores 'offset', so the CLI cannot read past the first page."
258
+ )
259
+ seen_ids |= page_ids
260
+ resources.extend(page)
261
+ if len(page) < MAX_PAGE_SIZE:
262
+ return resources
236
263
 
237
264
  def get_listener(self, listener_id: str) -> dict[str, Any]:
238
265
  return self._request("GET", f"/v2/listeners/{listener_id}")
239
266
 
240
- def list_listeners(self) -> list[dict[str, Any]]:
241
- return _resources(
242
- self._request("GET", "/v2/listeners", params={"limit": MAX_PAGE_SIZE})
243
- )
267
+ def list_listeners(self) -> list[dict[str, object]]:
268
+ return self._every_page("/v2/listeners", {})
244
269
 
245
270
  def get_deployment(self, deployment_id: str) -> dict[str, Any]:
246
271
  return self._request("GET", f"/v2/deployments/{deployment_id}")
@@ -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",
@@ -910,6 +910,7 @@ def python_config_to_docker_uv_lock(
910
910
  for section, key in [
911
911
  ("auth", "path"),
912
912
  ("encryption", "path"),
913
+ ("priority", "path"),
913
914
  ("checkpointer", "path"),
914
915
  ("http", "app"),
915
916
  ]: