harness-sdk-python 0.32.0__py3-none-any.whl → 0.32.1__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/run_manager.py +15 -3
- {harness_sdk_python-0.32.0.dist-info → harness_sdk_python-0.32.1.dist-info}/METADATA +1 -1
- {harness_sdk_python-0.32.0.dist-info → harness_sdk_python-0.32.1.dist-info}/RECORD +4 -4
- {harness_sdk_python-0.32.0.dist-info → harness_sdk_python-0.32.1.dist-info}/WHEEL +0 -0
harness_sdk/run_manager.py
CHANGED
|
@@ -342,7 +342,6 @@ class RunManager(Tray):
|
|
|
342
342
|
"dispatching": dispatching,
|
|
343
343
|
"stopping": stopping,
|
|
344
344
|
"nextDispatch": nextDispatch,
|
|
345
|
-
"inputRequests": inputRequests,
|
|
346
345
|
"error": error,
|
|
347
346
|
"stopReason": stopReason,
|
|
348
347
|
}
|
|
@@ -370,9 +369,14 @@ class RunManager(Tray):
|
|
|
370
369
|
self.state["runId"] = self.id
|
|
371
370
|
self._hydrate_machine()
|
|
372
371
|
self._mirror_steer()
|
|
373
|
-
|
|
372
|
+
self._mirror_input()
|
|
373
|
+
unsubscribes = [
|
|
374
|
+
self.steerQueue.subscribe(lambda _op: self._mirror_steer()),
|
|
375
|
+
self.inputRequests.subscribe(lambda _op: self._mirror_input()),
|
|
376
|
+
]
|
|
374
377
|
yield
|
|
375
|
-
unsubscribe
|
|
378
|
+
for unsubscribe in unsubscribes:
|
|
379
|
+
unsubscribe()
|
|
376
380
|
|
|
377
381
|
class Thread(Protocol):
|
|
378
382
|
"""The thread projection RunManager reads; the host owns the tree."""
|
|
@@ -500,6 +504,14 @@ class RunManager(Tray):
|
|
|
500
504
|
def _mirror_steer(self) -> None:
|
|
501
505
|
self.steerView.value = [_public(item) for item in self.steerQueue.value]
|
|
502
506
|
|
|
507
|
+
def _mirror_input(self) -> None:
|
|
508
|
+
# None publishes as an absent key, matching the TS harness shape
|
|
509
|
+
requests = self.inputRequests.value
|
|
510
|
+
if requests is None:
|
|
511
|
+
self.state.pop("inputRequests", None)
|
|
512
|
+
else:
|
|
513
|
+
self.state["inputRequests"] = requests
|
|
514
|
+
|
|
503
515
|
def _sync_steering(self) -> None:
|
|
504
516
|
ctx = self._run_live
|
|
505
517
|
if ctx is None:
|
|
@@ -3,8 +3,8 @@ harness_sdk/checkpoints.py,sha256=L02l1IyLDj2b-GD7_HGrck7uenALeI4kg8yJSzoNVmc,25
|
|
|
3
3
|
harness_sdk/deepagents.py,sha256=cMipZ9ndZ3zUR3-VqOMf5CiPVMmym74ytIeguQAjYZo,12280
|
|
4
4
|
harness_sdk/fenced_postgres.py,sha256=hbbrMR1WaqrHTNgd4wFrXfRrzQFGnyim-c8nZXgwWp4,13235
|
|
5
5
|
harness_sdk/linear_thread.py,sha256=laDRXKLFsMlyWS4snqNAM6t38wO26gevLWXRNivhHSM,1810
|
|
6
|
-
harness_sdk/run_manager.py,sha256=
|
|
6
|
+
harness_sdk/run_manager.py,sha256=ECj7j_xkGn81IngEEGA3MWXUejk9ZqNcH6vzxG6o9yU,78085
|
|
7
7
|
harness_sdk/voice.py,sha256=KtUHmwfZQCwEvJaIolc-XgjAhxvltfMYEI5ycWcw53M,28590
|
|
8
|
-
harness_sdk_python-0.32.
|
|
9
|
-
harness_sdk_python-0.32.
|
|
10
|
-
harness_sdk_python-0.32.
|
|
8
|
+
harness_sdk_python-0.32.1.dist-info/METADATA,sha256=dEQKSIIg_0xmdy6B7wiHhjG8g2VdDIaeR8_mQXps5KA,2200
|
|
9
|
+
harness_sdk_python-0.32.1.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
10
|
+
harness_sdk_python-0.32.1.dist-info/RECORD,,
|
|
File without changes
|