fix(orchestrator): Apply refinements from code review
This commit is contained in:
@@ -17,8 +17,11 @@ class VFSHelper:
|
||||
def read(self, filename: str) -> Tuple[Optional[Any], Optional[Dict[str, Any]]]:
|
||||
"""Read a file and its metadata from the VFS. Returns (None, None) if not found."""
|
||||
file_data = self._vfs.get(filename)
|
||||
if file_data:
|
||||
return file_data["content"], file_data["metadata"]
|
||||
if file_data is not None:
|
||||
# Handle raw values (backwards compatibility or inconsistent schema)
|
||||
if not isinstance(file_data, dict) or "content" not in file_data:
|
||||
return file_data, {}
|
||||
return file_data["content"], file_data.get("metadata", {})
|
||||
return None, None
|
||||
|
||||
def list(self) -> List[str]:
|
||||
|
||||
Reference in New Issue
Block a user