refactor: trim jsonl_parser __all__ to public API only#88
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthrough
ChangesPublic API narrowing and test migration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Closes #80
Summary
utils/jsonl_parser.py__all__to the public API only:parse_sessionandquick_session_info.jsonl_parserto their defining modules (utils/jsonl_helpers,utils/tool_dispatch).parse_session()instead of private_process_*/_track_file_activityimports.utils/md_exporter.pyto importstrip_system_tagsfromutils/jsonl_helpers.jsonl_parser.py(strip_system_tags,_TOOL_RESULT_DISPATCH).Test plan
rg "from utils.jsonl_parser import _" tests/ api/returns no matchesmypy -p api -p utils -p modelsruff check .pytest -qnpm testSummary by CodeRabbit
Tests
Refactor
parse_sessionandquick_session_info, consolidating internal implementation details.