managed-deepagents 0.9.2.dev8__py3-none-win_arm64.whl → 0.9.2.dev10__py3-none-win_arm64.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
@@ -31,7 +31,12 @@ from managed_deepagents._memory.async_util import await_if_needed
31
31
 
32
32
  if TYPE_CHECKING:
33
33
  from managed_deepagents._channels.trigger.types import TriggerChannelActionRequest
34
- from managed_deepagents._channels.types import ChannelAddress, JsonValue
34
+ from managed_deepagents._channels.types import (
35
+ ChannelAddress,
36
+ ChannelDestinationProviderConversation,
37
+ ChannelDestinationProviderThread,
38
+ JsonValue,
39
+ )
35
40
 
36
41
  _schedule_metadata_for_tests: Callable[[], Mapping[str, object] | None] | None = None
37
42
 
@@ -48,20 +53,9 @@ PostFn = Callable[..., Awaitable[object] | object]
48
53
  DeliverOutcome = Literal["posted", "skipped", "failed"]
49
54
 
50
55
 
51
- class _ProviderConversation(TypedDict):
52
- type: Literal["provider_conversation"]
53
- conversation_id: str
54
-
55
-
56
- class _ProviderThread(TypedDict):
57
- type: Literal["provider_thread"]
58
- conversation_id: str
59
- thread_id: str
60
-
61
-
62
56
  class NormalizedScheduleDeliverTo(TypedDict):
63
57
  channel: str
64
- to: _ProviderConversation | _ProviderThread
58
+ to: ChannelDestinationProviderConversation | ChannelDestinationProviderThread
65
59
  auto_post: bool
66
60
 
67
61
 
@@ -95,7 +89,7 @@ def read_schedule_deliver_to( # noqa: PLR0911 - validation short-circuits
95
89
  if not isinstance(conversation_id, str) or not conversation_id.strip():
96
90
  return None
97
91
  if dest_type == "provider_conversation":
98
- normalized_to: _ProviderConversation | _ProviderThread = {
92
+ normalized_to: ChannelDestinationProviderConversation | ChannelDestinationProviderThread = {
99
93
  "type": "provider_conversation",
100
94
  "conversation_id": conversation_id.strip(),
101
95
  }
@@ -104,7 +98,7 @@ def read_schedule_deliver_to( # noqa: PLR0911 - validation short-circuits
104
98
  if not isinstance(thread_id, str) or not thread_id.strip():
105
99
  return None
106
100
  normalized_to = cast(
107
- "_ProviderThread",
101
+ "ChannelDestinationProviderThread",
108
102
  {
109
103
  "type": "provider_thread",
110
104
  "conversation_id": conversation_id.strip(),
@@ -123,7 +117,9 @@ def read_schedule_deliver_to( # noqa: PLR0911 - validation short-circuits
123
117
  return result
124
118
 
125
119
 
126
- def address_from_deliver_to(to: _ProviderConversation | _ProviderThread) -> ChannelAddress:
120
+ def address_from_deliver_to(
121
+ to: ChannelDestinationProviderConversation | ChannelDestinationProviderThread,
122
+ ) -> ChannelAddress:
127
123
  """Map a deliver_to destination onto a runtime channel address."""
128
124
  if to["type"] == "provider_thread":
129
125
  return {
@@ -8,7 +8,7 @@ from __future__ import annotations
8
8
  import os
9
9
  import uuid
10
10
  from collections.abc import Mapping
11
- from typing import TYPE_CHECKING, Any
11
+ from typing import TYPE_CHECKING
12
12
 
13
13
  from managed_deepagents._channels.runtime import require_text_content, validate_message
14
14
  from managed_deepagents._channels.slack.api import SLACK_API, FetchFn, slack_api
@@ -49,7 +49,7 @@ class SlackWebApiTransport:
49
49
  if not isinstance(target, Mapping) or not isinstance(target.get("conversation_id"), str):
50
50
  raise ValueError("invalid Slack target")
51
51
  conversation_id = target["conversation_id"]
52
- body: dict[str, Any] = {}
52
+ body: dict[str, object] = {}
53
53
  if message["type"] == "content":
54
54
  body["text"] = require_text_content(message)
55
55
  else:
@@ -84,9 +84,7 @@ def create_slack_web_api_transport(
84
84
  return SlackWebApiTransport(bot_token=bot_token, api_base=api_base, fetch=fetch)
85
85
 
86
86
 
87
- def _apply_native(body: dict[str, Any], payload: Mapping[str, Any] | None) -> None:
88
- if not payload:
89
- return
87
+ def _apply_native(body: dict[str, object], payload: Mapping[str, object]) -> None:
90
88
  for key in ("text", "blocks", "attachments", "mrkdwn"):
91
89
  if key in payload:
92
90
  body[key] = payload[key]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: managed-deepagents
3
- Version: 0.9.2.dev8
3
+ Version: 0.9.2.dev10
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=eS2XV7uZFPR97V3T-KtGiXw85Pan3G6Rw7gI5U09TzY,4033536
43
+ managed_deepagents/_binaries/mda.exe,sha256=jwpdCuluxGHI06u-VNtwhQ0O7ak9ZrhuF3isTGCMskE,4040704
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
@@ -50,7 +50,7 @@ managed_deepagents/_channels/messaging_registry.py,sha256=S74FcoNJFQzzBzy1Oct2Sr
50
50
  managed_deepagents/_channels/reactions.py,sha256=vSKwhEaDCtsceqhL83VtsbRl7TpNCxqUpqSmIkY0eCs,3537
51
51
  managed_deepagents/_channels/response_format.py,sha256=0aHF2zXcvftmIKibckYHvtmg3yYUTfXF1njqxr-nILY,4443
52
52
  managed_deepagents/_channels/runtime.py,sha256=aGNdfyd3kLXMBM-Qmc79dwio9DsUAhYuTn-tYIwuqAk,5993
53
- managed_deepagents/_channels/schedule_delivery.py,sha256=NbMMUinGyOvyav_-V9lvCb1Wrre-xrg81vJYN4GLmZw,12141
53
+ managed_deepagents/_channels/schedule_delivery.py,sha256=6l6oZUpP-AfaDYw17PvjcplmInpp8f2PiddAlpfDRF4,12155
54
54
  managed_deepagents/_channels/source_providers.py,sha256=ItIvIyPIy0iS9S586RpbTG4QWRZ06AoZ1jil5bPsLMY,1467
55
55
  managed_deepagents/_channels/types.py,sha256=mXqdDKFZBZtcY0XxQjWlxu6G3MbkYUdpJsoGmBowi0I,4773
56
56
  managed_deepagents/_channels/http/__init__.py,sha256=1lEW-094WyJGaMTxf-wx1DZOFQ63hryxw6BfAPooXhU,3826
@@ -61,7 +61,7 @@ managed_deepagents/_channels/slack/__init__.py,sha256=njnC81QxO8r0qL2-yHQMvvcEjx
61
61
  managed_deepagents/_channels/slack/api.py,sha256=FgL0u9xfFHtFpcgvQeDRm8xuaiP67-4KLeT991_EgBg,3013
62
62
  managed_deepagents/_channels/slack/files.py,sha256=f0yqnLNnzR5OR3vYGfosJPadG5c1H5IA4x8ERGslQ3E,13245
63
63
  managed_deepagents/_channels/slack/middleware.py,sha256=sWHSoC7FzQ5dPVbk26cgMoSap4od9bzK01Mu6F4J0QE,3856
64
- managed_deepagents/_channels/slack/transport.py,sha256=GDoItjPRRH-9MMPam81--fZxpqAtuAkg1rTU6QqDtns,3285
64
+ managed_deepagents/_channels/slack/transport.py,sha256=_BuHwmP5-qNh3o86QE1hEgzcNV5S3Fhndb7H56cTdZg,3247
65
65
  managed_deepagents/_channels/trigger/__init__.py,sha256=bWj66XoPbDdrztPUCKBuSJBBS2pBocn4EA8FDE3WeBA,48
66
66
  managed_deepagents/_channels/trigger/channel.py,sha256=2rmvpwVxEqvamZ7ujyVRidQJILDy36LqRlZXJE1tt2k,6406
67
67
  managed_deepagents/_channels/trigger/client.py,sha256=cM97gzYWUTFC9o3uoveFe9-HxZc6_VqiqC8u4fKqjXc,8572
@@ -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.dev8.dist-info/licenses/LICENSE,sha256=WnPZQQ608ojZUkXl7BW6VbKloIAibZiGm1K6cjeZOL8,1066
105
- managed_deepagents-0.9.2.dev8.dist-info/METADATA,sha256=ujUuSp1ZI_TROV7JW_QxV1r2958krtXBSYqBDqw531k,33048
106
- managed_deepagents-0.9.2.dev8.dist-info/WHEEL,sha256=XSmAdk8mE9JuTAn7ts0C7qoHyGTRou23kK9aITS-j2M,97
107
- managed_deepagents-0.9.2.dev8.dist-info/entry_points.txt,sha256=ziZqkKuaDO3qHCjKmBhrx9cm3ok8bZ9xcEDpUTj4unM,53
108
- managed_deepagents-0.9.2.dev8.dist-info/top_level.txt,sha256=fdBo4O0Hlol_w022tTLB5ftZpamb4yJoQ3MUvjgTGfA,19
109
- managed_deepagents-0.9.2.dev8.dist-info/RECORD,,
104
+ managed_deepagents-0.9.2.dev10.dist-info/licenses/LICENSE,sha256=WnPZQQ608ojZUkXl7BW6VbKloIAibZiGm1K6cjeZOL8,1066
105
+ managed_deepagents-0.9.2.dev10.dist-info/METADATA,sha256=R3nRpodZKpSTkvCk2lns2O-vQClDvfG2Xvf4cL85m_k,33049
106
+ managed_deepagents-0.9.2.dev10.dist-info/WHEEL,sha256=XSmAdk8mE9JuTAn7ts0C7qoHyGTRou23kK9aITS-j2M,97
107
+ managed_deepagents-0.9.2.dev10.dist-info/entry_points.txt,sha256=ziZqkKuaDO3qHCjKmBhrx9cm3ok8bZ9xcEDpUTj4unM,53
108
+ managed_deepagents-0.9.2.dev10.dist-info/top_level.txt,sha256=fdBo4O0Hlol_w022tTLB5ftZpamb4yJoQ3MUvjgTGfA,19
109
+ managed_deepagents-0.9.2.dev10.dist-info/RECORD,,