harbor run -t openthoughts/tasktrove-exp-rpt-multifile-multifile-4141harbor download openthoughts/tasktrove-exp-rpt-multifile-multifile-4141Project overview
Directory layout (to be created)
Detailed module specifications
Module: core.py (Foundational utilities derived from Task 1) Purpose
Public API (minimum 30-80 lines)
Data structure
Functions
read_triangles_from_binary_stl(path: str) -> list[Triangle]
triangle_to_dict(t: Triangle) -> dict
format_triangles_for_samples(triangles: list[Triangle], max_samples: int = 2) -> list[dict]
Usage examples (conceptual)
Error handling guidance
Example usage snippet (to illustrate, not included in production output)
Module: processor.py (Data processing that imports and uses core.py, derived from Task 2) Purpose
Public API (minimum 30-80 lines)
Imports from core
Functions
process_two_args(arg1: str, arg2: str) -> str
extract_samples_from_stl(stl_path: str, max_samples: int = 2) -> list[dict]
Usage considerations
Example usage snippet
Module: integration.py (Integration layer importing and using both core.py and processor.py) Purpose
Public API (minimum 30-80 lines)
Imports
Functions
Optional: a tiny CLI-friendly helper guarded by if name == "main": that delegates to run_pipeline, enabling quick manual testing. Keep this optional and lightweight to preserve 30-80 lines for the module.
Example usage snippet
Import dependencies between modules
Example end-to-end usage (how the modules work together)
Notes and constraints for implementation
Example usage commands (for reference)
Deliverables to produce
This design provides a cohesive, testable, and extensible structure that cleanly separates concerns while enabling inter-module communication via explicit imports and APIs.