harness-sdk-python 0.29.1__py3-none-any.whl → 0.29.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
|
@@ -18,7 +18,8 @@ events render live in ``state["messages"]`` through
|
|
|
18
18
|
turn commits through ``Host.commit_voice_turns`` (serialized, in
|
|
19
19
|
done-order) and the durable entry replaces the ephemeral one under the
|
|
20
20
|
same id, a failed commit keeps its turns for the next flush; session end
|
|
21
|
-
flushes the remaining done turns
|
|
21
|
+
flushes the remaining done turns, then commits in-progress turns with
|
|
22
|
+
their partial text; in-progress turns with no text yet are dropped.
|
|
22
23
|
|
|
23
24
|
Rejections: ``voice-active`` (a session is already live), ``no-voice``
|
|
24
25
|
(no voice manager declared, or ``voice/end`` with no session),
|
|
@@ -189,6 +190,10 @@ class VoiceManager(Tray):
|
|
|
189
190
|
await provider.close()
|
|
190
191
|
except Exception:
|
|
191
192
|
logger.exception("voice provider close failed for session %r", self.id)
|
|
193
|
+
self._turns.sort(key=lambda turn: not turn["done"])
|
|
194
|
+
for turn in self._turns:
|
|
195
|
+
if turn["text"]:
|
|
196
|
+
turn["done"] = True
|
|
192
197
|
await self._flush()
|
|
193
198
|
turns, self._turns = self._turns, []
|
|
194
199
|
for turn in turns:
|
|
@@ -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=
|
|
8
|
-
harness_sdk_python-0.29.
|
|
9
|
-
harness_sdk_python-0.29.
|
|
10
|
-
harness_sdk_python-0.29.
|
|
7
|
+
harness_sdk/voice.py,sha256=oVmfxltjyV9ylATIpAszaM6MOS9TC3Haksgf6I7c4v8,15863
|
|
8
|
+
harness_sdk_python-0.29.2.dist-info/METADATA,sha256=-4c6JdBIpkP6td3WlIcpnbUOX9ntoTM5dG6vcwoD55k,2200
|
|
9
|
+
harness_sdk_python-0.29.2.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
10
|
+
harness_sdk_python-0.29.2.dist-info/RECORD,,
|
|
File without changes
|