managed-deepagents 0.9.2.dev11__py3-none-win_amd64.whl → 0.9.2.dev12__py3-none-win_amd64.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.
Binary file
@@ -215,7 +215,7 @@ def _resolve_langsmith_servers(
215
215
  server_names: Sequence[str],
216
216
  context: AgentAuthContext,
217
217
  ) -> tuple[dict[str, RemoteMcpServerConfig], list[PendingCredential]]:
218
- """Probe LangSmith MCP servers once: ready configs plus any pending OAuth.
218
+ """Probe LangSmith MCP servers once: ready configs plus any pending credentials.
219
219
 
220
220
  Shared by load (interrupt if pending) and the credential-gate collector
221
221
  (return pending only). Transport failures follow ``throw_on_load_error``;
@@ -258,9 +258,9 @@ def collect_pending_managed_tools_credentials(
258
258
  connectors: McpServersDefinition,
259
259
  context: AgentAuthContext,
260
260
  ) -> list[PendingCredential]:
261
- """Collect pending Managed Tools OAuth without interrupting.
261
+ """Collect pending Managed Tools credentials without interrupting.
262
262
 
263
- Secret / incomplete 428s still raise a clear RuntimeError. Used by the
263
+ Incomplete 428s still raise a clear RuntimeError. Used by the
264
264
  credential gate so Managed Tools misses combine with ordinary connection misses.
265
265
  """
266
266
  return _resolve_langsmith_servers(
@@ -284,7 +284,7 @@ def _probe_langsmith_server_access(
284
284
  url: str,
285
285
  headers: Mapping[str, str],
286
286
  ) -> list[PendingCredential]:
287
- """Return pending OAuth when LMT 428 is complete; raise for other auth gaps.
287
+ """Return pending credentials when the LMT 428 is complete; raise otherwise.
288
288
 
289
289
  An empty list means the server is accessible.
290
290
  """
@@ -300,10 +300,9 @@ def _probe_langsmith_server_access(
300
300
  credentials = payload.get("credentials")
301
301
  if isinstance(credentials, list):
302
302
  return _pending_credentials_from_langsmith_gateway_428(credentials, server_name)
303
- pending = _oauth_pending_credential_from_langsmith_428(payload, provider=server_name)
303
+ pending = _pending_credential_from_langsmith_428(payload, provider=server_name)
304
304
  if pending is not None:
305
305
  return [pending]
306
- # Secret / incomplete 428s: do not guess kind. Point the caller at Tools.
307
306
  verification_url = payload.get("verification_url")
308
307
  if isinstance(verification_url, str) and verification_url:
309
308
  raise RuntimeError(
@@ -320,10 +319,10 @@ def _pending_credentials_from_langsmith_gateway_428(
320
319
  credentials: list[object],
321
320
  server_name: str,
322
321
  ) -> list[PendingCredential]:
323
- """Map every OAuth entry of a gateway 428 to an interrupt credential.
322
+ """Map every entry of a gateway 428 to an interrupt credential.
324
323
 
325
- Secret entries cannot be completed from an interrupt, so any of them raise
326
- with every missing name before an interrupt is shown.
324
+ Entries without a complete link cannot be completed from an interrupt, so
325
+ any of them raise with every missing name before an interrupt is shown.
327
326
  """
328
327
  pending: list[PendingCredential] = []
329
328
  unresolved: list[str] = []
@@ -331,7 +330,7 @@ def _pending_credentials_from_langsmith_gateway_428(
331
330
  if not isinstance(entry, Mapping):
332
331
  unresolved.append(server_name)
333
332
  continue
334
- credential = _oauth_pending_credential_from_langsmith_428(entry, provider=server_name)
333
+ credential = _pending_credential_from_langsmith_428(entry, provider=server_name)
335
334
  if credential is not None:
336
335
  pending.append(credential)
337
336
  continue
@@ -346,15 +345,14 @@ def _pending_credentials_from_langsmith_gateway_428(
346
345
  return pending
347
346
 
348
347
 
349
- def _oauth_pending_credential_from_langsmith_428(
348
+ def _pending_credential_from_langsmith_428(
350
349
  payload: Mapping[str, object],
351
350
  *,
352
351
  provider: str,
353
352
  ) -> PendingCredential | None:
354
- """Build an OAuth interrupt credential only when LMT returns the full triple.
353
+ """Build an interrupt credential only when LMT returns the full triple.
355
354
 
356
- Secret and other auth modes are intentionally not inferred from missing
357
- fields; wait for an explicit wire contract before interrupting those.
355
+ LMT marks API-key servers with ``kind: "secret"``; every other 428 is OAuth.
358
356
  ``provider`` is the MCP server key, used for Slack/Studio display labels
359
357
  when LMT does not return ``display_name``.
360
358
  """
@@ -373,7 +371,7 @@ def _oauth_pending_credential_from_langsmith_428(
373
371
  display_name = payload.get("display_name")
374
372
  return {
375
373
  "slug": slug,
376
- "kind": "oauth2",
374
+ "kind": "secret" if payload.get("kind") == "secret" else "oauth2",
377
375
  "connect_url": verification_url,
378
376
  "auth_id": auth_id,
379
377
  "provider": display_name if isinstance(display_name, str) and display_name else provider,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: managed-deepagents
3
- Version: 0.9.2.dev11
3
+ Version: 0.9.2.dev12
4
4
  Summary: Managed Deep Agents — the define_deep_agent authoring interface plus the CLI that compiles and deploys a code-first Deep Agent repository to a managed LangGraph runtime.
5
5
  Author: LangChain
6
6
  License: MIT
@@ -40,7 +40,7 @@ managed_deepagents/run_context.py,sha256=1Nc3pew_nROgKi18PAKhn7vOAed-PmxArqUTpce
40
40
  managed_deepagents/runtime.py,sha256=ssw_r6UV_9XcvZVZqnYtM0AE8HmxmQheUGCqFEsCe4g,91880
41
41
  managed_deepagents/sandbox.py,sha256=8qaswX6F2LYJX1uGq_7XwAGHZjGOD9VQ0WISqPK_ohs,4734
42
42
  managed_deepagents/schedules.py,sha256=XROsDs-QwCWH0yEwakIN5Rhl5aM06eZX5-JFJ-KG1To,5898
43
- managed_deepagents/_binaries/mda.exe,sha256=yDIQzUKTET1rf3JG1kmTo7cbBoFx3YkArtWFp9pZ3PM,4451840
43
+ managed_deepagents/_binaries/mda.exe,sha256=ZXfDc0U0DQjmLXyVTnQYBEXYrI5HZz-f6fxkfGJFX3Q,4451840
44
44
  managed_deepagents/_channels/__init__.py,sha256=tY94zltWKNw-FIzbGjrh0cSAc2JIHCEAvcY7hzoRED0,801
45
45
  managed_deepagents/_channels/assistant_text.py,sha256=ZLYAF1MQVE5_EN49MoPJdB8Ckf3vNPpXNBhkdA4egF0,3414
46
46
  managed_deepagents/_channels/binding.py,sha256=DnxB7FXkbY5B3PCEAGz3JJBCCnQSdWz8PU8ze4fdcZU,5302
@@ -74,7 +74,7 @@ managed_deepagents/_connectors/__init__.py,sha256=Ei-DvDmA-F2Bord6WuM7UtWtnuVt3u
74
74
  managed_deepagents/_connectors/tool_selection.py,sha256=-dtrHi8o4FsXG70V4CWgzL2UVG-89P3TU1Xk8UEdyDU,3029
75
75
  managed_deepagents/_connectors/mcp/__init__.py,sha256=GILRaVSbQNgclmJcgmXpG6R_C63R_y2gEfvyFBlSRZM,17455
76
76
  managed_deepagents/_connectors/mcp/langsmith_url.py,sha256=DyG4-w2zo-6WE7C8cvmMuhPP1Wr1OOV1xkkZnz5pIU0,1694
77
- managed_deepagents/_connectors/mcp/load.py,sha256=RJjV5fdk1867OD4c_ZXnEEuu5Do6S1T1UgTfGyuiRPU,23158
77
+ managed_deepagents/_connectors/mcp/load.py,sha256=qOoUnOMk7K3jSNdbIC9t5Pglwmqem7Kx2TDkJwBzoAI,23050
78
78
  managed_deepagents/_memory/__init__.py,sha256=oIba6kYsaQqOa3UeuQEbKFatb0f_ETPrLrqiTOmOsnU,311
79
79
  managed_deepagents/_memory/async_util.py,sha256=gyN1PqRp94zSC12CZjD_daihtuf4rYTws_G7OIeW86k,1783
80
80
  managed_deepagents/_memory/context_io.py,sha256=twvf8xPBP77uipZel9EyUUxQDggD9aI_eYc34QC0SRE,1666
@@ -101,9 +101,9 @@ managed_deepagents/identity/__init__.py,sha256=YMB5p2DRyyY_82gGNVfGHjfjnUFRTtMne
101
101
  managed_deepagents/identity/claims.py,sha256=prby7r_8Lww3MmoBm8PX6PsSGE3GwSHkr8mVIz_08nU,1180
102
102
  managed_deepagents/identity/options.py,sha256=x_yMbXEFR7zXyehEjDHG2qjAlukXjrRBcQLcM6IndLM,2550
103
103
  managed_deepagents/identity/supabase.py,sha256=8uobl3WCrQL_ieSXG8KTLf1th7Qjim9liZT50HeaJE0,6026
104
- managed_deepagents-0.9.2.dev11.dist-info/licenses/LICENSE,sha256=WnPZQQ608ojZUkXl7BW6VbKloIAibZiGm1K6cjeZOL8,1066
105
- managed_deepagents-0.9.2.dev11.dist-info/METADATA,sha256=QAjpYGzxVtHZLWuVXYLfl98XO2xkceV2Jbw9Bnb3vNk,33049
106
- managed_deepagents-0.9.2.dev11.dist-info/WHEEL,sha256=3I5VVWZdsFlU417aCS2bMRuerS8wsfvBq99MyatBV3A,97
107
- managed_deepagents-0.9.2.dev11.dist-info/entry_points.txt,sha256=ziZqkKuaDO3qHCjKmBhrx9cm3ok8bZ9xcEDpUTj4unM,53
108
- managed_deepagents-0.9.2.dev11.dist-info/top_level.txt,sha256=fdBo4O0Hlol_w022tTLB5ftZpamb4yJoQ3MUvjgTGfA,19
109
- managed_deepagents-0.9.2.dev11.dist-info/RECORD,,
104
+ managed_deepagents-0.9.2.dev12.dist-info/licenses/LICENSE,sha256=WnPZQQ608ojZUkXl7BW6VbKloIAibZiGm1K6cjeZOL8,1066
105
+ managed_deepagents-0.9.2.dev12.dist-info/METADATA,sha256=on4Q6WcOhkAF_iLVt0LFHITaiYDcFKhAA1lR17F2npc,33049
106
+ managed_deepagents-0.9.2.dev12.dist-info/WHEEL,sha256=3I5VVWZdsFlU417aCS2bMRuerS8wsfvBq99MyatBV3A,97
107
+ managed_deepagents-0.9.2.dev12.dist-info/entry_points.txt,sha256=ziZqkKuaDO3qHCjKmBhrx9cm3ok8bZ9xcEDpUTj4unM,53
108
+ managed_deepagents-0.9.2.dev12.dist-info/top_level.txt,sha256=fdBo4O0Hlol_w022tTLB5ftZpamb4yJoQ3MUvjgTGfA,19
109
+ managed_deepagents-0.9.2.dev12.dist-info/RECORD,,