langgraph-api 0.14.0.dev7__py3-none-any.whl → 0.14.0.dev9__py3-none-any.whl

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_api/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.14.0.dev7"
1
+ __version__ = "0.14.0.dev9"
@@ -488,7 +488,7 @@ def webhooks_validator(cfg: "WebhooksConfig") -> "WebhooksConfig":
488
488
  # Validate allowed_fields if present
489
489
  allowed_fields = cfg.get("allowed_fields")
490
490
  if allowed_fields is not None:
491
- if not isinstance(allowed_fields, list):
491
+ if not isinstance(allowed_fields, (list, set)):
492
492
  raise ValueError(
493
493
  f"webhooks.allowed_fields must be a list of strings. Got: {type(allowed_fields).__name__}"
494
494
  )
@@ -1402,9 +1402,9 @@ mustache@^4.2.0:
1402
1402
  integrity sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==
1403
1403
 
1404
1404
  nanoid@^3.3.17:
1405
- version "3.3.17"
1406
- resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.17.tgz#f1c3aa253c52547956a52c50bff754316f61037a"
1407
- integrity sha512-xQLf0A3HOMlgHq0n247/LRuAOYmB7dXJ/DvAxGvsSBij45XtBSmQycu+F8ODbHwns/XyFZagyL1+J0Offw1E0g==
1405
+ version "3.3.18"
1406
+ resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.18.tgz#f66a2de1199ffde0fcf21c8a5f13106b1c081913"
1407
+ integrity sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==
1408
1408
 
1409
1409
  node-releases@^2.0.27:
1410
1410
  version "2.0.27"
@@ -36,10 +36,11 @@ def _ensure_port_available(host: str, port: int) -> None:
36
36
  # Pin AF_INET6 for IPv6 literals: glibc's getaddrinfo can return EAI_ADDRFAMILY
37
37
  # on IPv6-only hosts when the family is unspecified.
38
38
  family = socket.AF_INET6 if ":" in host else socket.AF_UNSPEC
39
+ lookup_host = None if host == "" else host
39
40
  last_error: OSError | None = None
40
41
  try:
41
42
  addrinfos = socket.getaddrinfo(
42
- host,
43
+ lookup_host,
43
44
  port,
44
45
  family=family,
45
46
  type=socket.SOCK_STREAM,
@@ -75,7 +76,9 @@ async def health_and_metrics_server():
75
76
 
76
77
  port = int(os.getenv("PORT", "8080"))
77
78
  # Not in public docs: LANGGRAPH_SERVER_HOST is internal
78
- host = normalize_host(os.getenv("LANGGRAPH_SERVER_HOST", "0.0.0.0"))
79
+ # Empty means every interface: asyncio then opens one socket per address
80
+ # family, so the server answers on IPv4 and IPv6.
81
+ host = normalize_host(os.getenv("LANGGRAPH_SERVER_HOST", ""))
79
82
 
80
83
  async def health_endpoint(request: Request):
81
84
  check_db = int(request.query_params.get("check_db", "1"))
langgraph_api/server.py CHANGED
@@ -80,7 +80,7 @@ global_middleware.extend(
80
80
  Middleware(
81
81
  CORSMiddleware,
82
82
  allow_origins=config.CORS_ALLOW_ORIGINS,
83
- allow_credentials=True,
83
+ allow_credentials="*" not in config.CORS_ALLOW_ORIGINS,
84
84
  allow_methods=["*"],
85
85
  allow_headers=["*"],
86
86
  expose_headers=[
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langgraph-api
3
- Version: 0.14.0.dev7
3
+ Version: 0.14.0.dev9
4
4
  Author-email: Will Fu-Hinthorn <will@langchain.dev>, Josh Rogers <josh@langchain.dev>, Parker Rule <parker@langchain.dev>
5
5
  License: Elastic-2.0
6
6
  License-File: LICENSE
@@ -1,4 +1,4 @@
1
- langgraph_api/__init__.py,sha256=peIxw98li2d4NZ6L-KBi3u4nBpoo1ehyNTk3sSEGSWg,28
1
+ langgraph_api/__init__.py,sha256=9U3aqxvXniCcvL5tgrnMw4id8Te0RDAkYwRB6EPwbn8,28
2
2
  langgraph_api/_factory_utils.py,sha256=_FqW0olMu2PGLsnRq0ylt3a4jDCe12YIFHExMXI6Nyo,5976
3
3
  langgraph_api/asgi_transport.py,sha256=XApY3lIWBZTMbbsl8dDJzl0cLGirmAGE0SifqZUnXvs,11896
4
4
  langgraph_api/asyncio.py,sha256=smqyAoO9nIyPPQRw1IVSCh85fwoZP4PEo-5dDhxGruc,10676
@@ -19,14 +19,14 @@ langgraph_api/metrics_collector.py,sha256=gMLHL18rJyYl985AOmu9eH7W1ttdRdkPHzeycz
19
19
  langgraph_api/metrics_otlp.py,sha256=YppnNCHmQBj7wZbtKYLJS68_tbD6sGTJXGKIySqUTjU,29657
20
20
  langgraph_api/otel_context.py,sha256=DWFwW4Yu88QY4W2J0IRcURR450Th9J2DupvDDkSkMBA,7166
21
21
  langgraph_api/patch.py,sha256=ViUknYvyQWS6y0f5XuaEoci2qB_mQv8vZl-oaUxsI6M,1448
22
- langgraph_api/queue_entrypoint.py,sha256=Bh8YPWN_2Dj3hxnYE9T3w9Igc8bIq7UcT8dngOOX36k,11535
22
+ langgraph_api/queue_entrypoint.py,sha256=ko968t_eXtO3NvPZLSuyp2eFFCKf8dLsz0a5sp5Z5Pg,11713
23
23
  langgraph_api/release_tags.py,sha256=Dd2L2Mdh7c5D7RhFvdGCXROLH3WI1QKXbEqgjITFFoQ,9437
24
24
  langgraph_api/route.py,sha256=_KE8A8Q-J-QfqjGlyM2Kc6n5cirmgt8xmI5-pI8kVEE,8837
25
25
  langgraph_api/schema.py,sha256=EkarLwAUKApevb03AmLRumrAVAc2EsG_SLhYFPncSzk,15318
26
26
  langgraph_api/self_hosted_logs.py,sha256=rzzr9iVwJgNbDHjrxvuTODCtzpdr9-9X6UAB-3OaXU0,5742
27
27
  langgraph_api/self_hosted_metrics.py,sha256=pWsQQ-2ukoFIbmVfzNOSkwCqZ5Cnts6pRSWTII44Ll4,16844
28
28
  langgraph_api/serde.py,sha256=V3fO9bkUOlBX3okw5Qi31nlcr59fcuXMgL7DHNyarZY,8855
29
- langgraph_api/server.py,sha256=R0z4R6DjnRwsqjDOjWD-7R3nKoQcS6v7UriG1LuzA1o,11213
29
+ langgraph_api/server.py,sha256=L1jGWkvK0fDewyus0xYvYmwQ6k775uNn_mXSKUnIOK0,11245
30
30
  langgraph_api/sse.py,sha256=cChZ7raQUHp8p5BreE_5wMBR8lFO0n7746sV8_HQOrc,4822
31
31
  langgraph_api/state.py,sha256=A6jx2OpcVmiFNBafjZ2tX1x6s_AhBk5EW2drd-vaqIc,4396
32
32
  langgraph_api/store.py,sha256=i-jVfWzDEmPESVofh1tNWbo0HMLiLz_BSKKV4QjN-dE,5027
@@ -68,7 +68,7 @@ langgraph_api/auth/langsmith/backend.py,sha256=Y6-VxD7zfV1jzGdjmQ66CgNa3SenLbo3d
68
68
  langgraph_api/auth/langsmith/client.py,sha256=79kwCVeHU64nsHsxWipfZhf44lM6vfs2nlfTxlJF6LU,4142
69
69
  langgraph_api/config/__init__.py,sha256=R3WTyMb96Q-UsrZIY-mvZrtJvkrriSUSA0LVYR3vhXA,27474
70
70
  langgraph_api/config/_parse.py,sha256=RpfZgFAPJlRMv13AzGr3kAYbIrqHcgjzO8IgeboTw4A,3922
71
- langgraph_api/config/schemas.py,sha256=cHzVvepthpD7DDeWE2ytkOHah-iDNH7xRx9dSWUatQI,20864
71
+ langgraph_api/config/schemas.py,sha256=4GBEYLrKq7Ye81u95aATIW7zR0VavLihoGosgHC6dOo,20871
72
72
  langgraph_api/encryption/__init__.py,sha256=gaCZ00CocSbqSqrDn6XJHaSp2CZCnC8qnrD9G4fbzyI,363
73
73
  langgraph_api/encryption/aes_json.py,sha256=ExLgrthzVYGP4X51TStU2Td_Sn_3-kXHyk6UKTFmzW4,6139
74
74
  langgraph_api/encryption/context.py,sha256=twnDvH3FcC8rlnPOAhI09dLZcxGgMVlplIH2ZpJ-8P4,1121
@@ -114,7 +114,7 @@ langgraph_api/js/sse.py,sha256=IfcEpknyZeqqjYTOWRdijc6o2EBfatbWCZarGQQ0SQI,4088
114
114
  langgraph_api/js/traceblock.mts,sha256=QtGSN5VpzmGqDfbArrGXkMiONY94pMQ5CgzetT_bKYg,761
115
115
  langgraph_api/js/tsconfig.json,sha256=imCYqVnqFpaBoZPx8k1nO4slHIWBFsSlmCYhO73cpBs,341
116
116
  langgraph_api/js/ui.py,sha256=plqcWSmqfc9tY2nCUzNRBSofHTMdYDmVD9A6i5L3pSI,2571
117
- langgraph_api/js/yarn.lock,sha256=scqGsQjUwZrQwy-NCUFQ2kgWV0Nrsb0ou0l4OCXJrK4,91331
117
+ langgraph_api/js/yarn.lock,sha256=nZq0ThZMFozo0kWm8pw5CiyMcvT5lXmIXExVGtwVtZY,91331
118
118
  langgraph_api/js/src/graph.mts,sha256=ccK4UFUkuMQXdCujQWZjZKAk3a3ZDVLpwhYF7pj4eGY,3786
119
119
  langgraph_api/js/src/load.hooks.mjs,sha256=sqgVptq70mJb2EDprRIbMqRmPbCJlT_nHCqZQgg9zw4,2256
120
120
  langgraph_api/js/src/preload.mjs,sha256=WL6MVSeFuxusFscySrDDnloXJNVhkNcMOFwP70UAMbs,4106
@@ -238,8 +238,8 @@ langgraph_grpc_common/proto/store_pb2.py,sha256=thQ5HBLblZ7Adayp1U8ty_lrpn-7XEHn
238
238
  langgraph_grpc_common/proto/store_pb2.pyi,sha256=_dcxyxV8moR6H67qU42r2h2p_Ub-PZSHs3OoS9KMdSY,27782
239
239
  langgraph_grpc_common/proto/store_pb2_grpc.py,sha256=Kyt8eV2NXkjh3be_BYytGdD19kNf74961cruonMvCrw,3300
240
240
  langgraph_grpc_common/proto/store_pb2_grpc.pyi,sha256=oS1h2cDoq2OjyM8xazcmc8LwRDC5oCAD0zto2QUmPQw,2027
241
- langgraph_api-0.14.0.dev7.dist-info/METADATA,sha256=Q9FxNfaj68qfyoo7tYg4Tcfb4vH1DFi7Ssn_LlHcDNA,4630
242
- langgraph_api-0.14.0.dev7.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
243
- langgraph_api-0.14.0.dev7.dist-info/entry_points.txt,sha256=hGedv8n7cgi41PypMfinwS_HfCwA7xJIfS0jAp8htV8,78
244
- langgraph_api-0.14.0.dev7.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
245
- langgraph_api-0.14.0.dev7.dist-info/RECORD,,
241
+ langgraph_api-0.14.0.dev9.dist-info/METADATA,sha256=t5MeVGX5mOD3SrWLU6AFQ__2ubK84jd4RlebxJw2usE,4630
242
+ langgraph_api-0.14.0.dev9.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
243
+ langgraph_api-0.14.0.dev9.dist-info/entry_points.txt,sha256=hGedv8n7cgi41PypMfinwS_HfCwA7xJIfS0jAp8htV8,78
244
+ langgraph_api-0.14.0.dev9.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
245
+ langgraph_api-0.14.0.dev9.dist-info/RECORD,,