diff --git a/src/hyperstitionstud_io/publishing/highlights.py b/src/hyperstitionstud_io/publishing/highlights.py index 261db08..c2d96f6 100644 --- a/src/hyperstitionstud_io/publishing/highlights.py +++ b/src/hyperstitionstud_io/publishing/highlights.py @@ -97,10 +97,18 @@ def build_recent_highlights_summary( full_text = "\n\n".join(paragraphs) target_untracked = ( - Path(out_dir).resolve() + Path(out_dir) if out_dir is not None - else (cfg.workspace_root / "untracked" / "recent-highlights").resolve() + else (cfg.workspace_root / "untracked" / "recent-highlights") ) + ws_resolved_s = str(cfg.workspace_root.resolve()) + + def _container_rel(p: Path) -> str: + s = str(p) + if s.startswith(ws_resolved_s): + return "/workspace" + s[len(ws_resolved_s):] + return s + txt_latest = target_untracked / "recent-highlights-summary-latest.txt" json_latest = target_untracked / "recent-highlights-summary-latest.json" txt_ver = target_untracked / f"recent-highlights-summary-v{CURRENT_VERSION}.txt" @@ -129,11 +137,11 @@ def build_recent_highlights_summary( "fred_macro_series_n": math_emp["fred_macro_series_n"], }, "untracked_artifacts": { - "out_dir": str(target_untracked), - "txt_path": str(txt_latest), - "json_path": str(json_latest), - "versioned_txt_path": str(txt_ver), - "versioned_json_path": str(json_ver), + "out_dir": _container_rel(target_untracked), + "txt_path": _container_rel(txt_latest), + "json_path": _container_rel(json_latest), + "versioned_txt_path": _container_rel(txt_ver), + "versioned_json_path": _container_rel(json_ver), "persisted_to_untracked": False, }, }