feat: replace narrow draft output bind with general bind

This commit is contained in:
lda
2026-06-28 00:11:44 +07:00 Verified
parent 88f43934c3
commit b96ba0f7d1
6 changed files with 170 additions and 206 deletions
+5 -1
View File
@@ -39,7 +39,7 @@ def input_bindings_payload(
def output_bindings_payload(output_map: dict[str, str]) -> list[dict[str, Any]]:
"""Serialize draft output maps into canonical string-path binding payloads."""
return [
{"source": _local_path_payload(source), "target": _state_path_payload(target)}
{"source": _local_path_payload(source), "target": _graph_source_path_payload(target)}
for source, target in output_map.items()
]
@@ -61,5 +61,9 @@ def _graph_path_payload(value: str | GraphSourcePath) -> str:
return str(path)
def _graph_source_path_payload(value: str) -> str:
return str(GraphSourcePath.parse(value))
def _state_path_payload(value: str) -> str:
return str(StatePath.parse(value))