INNER CODE UNIT · Python
_resolve_deliverables_root
ApodexAI/FrontierAgent · apodex/tui/app.py:498
def _resolve_deliverables_root(self) -> Path:
"""Return the stable output mount, falling back to a local TUI folder."""
configured = os.environ.get("FRONTIER_AGENT_OUTPUTS_DIR", "").strip()
return Path(configured) if configured else Path(self.session.cwd) / ".apodex" / "outputs"
def _deliverables_location_lines(self) -> list[str]:
"""Show deliverables plus the separate run-private work location."""
host = os.environ.get("APODEX_HOST_OUTPUTS_DIR", "").strip()
if host:
lines = [f"Host: {host}", f"Agent: {self._deliverables_root}"]
else:
lines = [str(self._deliverables_root)]
work = os.environ.get("APODEX_HOST_WORKSPACE_DIR", "").strip()
if work:
lines.append(f"Work: {work} (intermediate)")
return lines
def _title_text(self) -> str: