feat: replace narrow draft output bind with general bind
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user