harness-sdk-python 0.31.1__py3-none-any.whl → 0.31.2__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.
harness_sdk/voice.py CHANGED
@@ -672,11 +672,11 @@ def voice_manager() -> Callable[[Callable[..., Any]], VoiceManagerDescriptor]:
672
672
  return decorate
673
673
 
674
674
 
675
- def _voice_of(host: Any) -> VoiceManagerNamespace | None:
675
+ def _voice_of(host: Any, *, create: bool = True) -> VoiceManagerNamespace | None:
676
676
  for cls in type(host).__mro__:
677
677
  for name, member in vars(cls).items():
678
678
  if isinstance(member, VoiceManagerDescriptor):
679
- return getattr(host, name)
679
+ return getattr(host, name) if create else member.peek(host)
680
680
  return None
681
681
 
682
682
 
@@ -698,7 +698,8 @@ async def end_voice(host: Any, *, ctx: Any) -> None:
698
698
 
699
699
  def voice_client_departed(host: Any, client_id: str) -> None:
700
700
  """The Statewire ``client_departed`` hook body: routes to the host's declared voice manager."""
701
- namespace = _voice_of(host)
701
+ # peek: instantiating here would stamp voice state after the attach snapshot
702
+ namespace = _voice_of(host, create=False)
702
703
  if namespace is not None:
703
704
  namespace.client_departed(client_id)
704
705
 
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: harness-sdk-python
3
- Version: 0.31.1
3
+ Version: 0.31.2
4
4
  Summary: RunManager: the harness-sdk runs subsystem for Python Statewire hosts
5
5
  Project-URL: Repository, https://github.com/assistant-ui/harness-sdk
6
6
  License-Expression: MIT
7
7
  Requires-Python: <4.0,>=3.12
8
- Requires-Dist: pinned<0.15,>=0.14.0
8
+ Requires-Dist: pinned<0.15,>=0.14.6
9
9
  Requires-Dist: statewire<0.13,>=0.12.3
10
10
  Provides-Extra: deepagents
11
11
  Requires-Dist: deepagents>=0.6.12; extra == 'deepagents'
@@ -4,7 +4,7 @@ harness_sdk/deepagents.py,sha256=cMipZ9ndZ3zUR3-VqOMf5CiPVMmym74ytIeguQAjYZo,122
4
4
  harness_sdk/fenced_postgres.py,sha256=hbbrMR1WaqrHTNgd4wFrXfRrzQFGnyim-c8nZXgwWp4,13235
5
5
  harness_sdk/linear_thread.py,sha256=laDRXKLFsMlyWS4snqNAM6t38wO26gevLWXRNivhHSM,1810
6
6
  harness_sdk/run_manager.py,sha256=CbY_4dpFeqGx3kJNI1ffsu3uIvzVc-Tc1UB6Nr9SiHY,77654
7
- harness_sdk/voice.py,sha256=QSWG-wWQbpmGYMcpuDcnO2sA7tQHU685OLXXd7ODLos,28229
8
- harness_sdk_python-0.31.1.dist-info/METADATA,sha256=VikP9UbVtlfVFK6hk4DSVln8YGsSENF60x1fHD2vunk,2200
9
- harness_sdk_python-0.31.1.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
10
- harness_sdk_python-0.31.1.dist-info/RECORD,,
7
+ harness_sdk/voice.py,sha256=BgMYJRVOVYTJgXOWSWgzJScGAVFD7WyUXMa2_LJghwI,28381
8
+ harness_sdk_python-0.31.2.dist-info/METADATA,sha256=RRfWhlnnjOMYHLyLsTEVKTVCrw7b0hhuAYzcxQ2hJFc,2200
9
+ harness_sdk_python-0.31.2.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
10
+ harness_sdk_python-0.31.2.dist-info/RECORD,,