runtime service

This commit is contained in:
lda
2026-06-02 16:39:47 +07:00 Verified
parent 62f880bc5b
commit 19f6fa3e40
8 changed files with 1285 additions and 141 deletions
+7
View File
@@ -110,3 +110,10 @@ def test_context_from_service_record_workflow_event(tmp_path: Path) -> None:
assert recorded.capability_id == "workflow.demo.v1"
assert recorded.payload["artifact_id"] == "demo"
assert recorded.payload["version"] == 1
def test_context_runtime_runner_uses_workflow_runtime_service() -> None:
service = WfMcpService(store=FileStore(_local_temp_root() / "context_runtime"))
context = context_from_service(service)
assert getattr(context.runtime, "runtime") is service.workflow_runtime