Support Cursor agent traces#8280
Conversation
|
Here's an svg that should look good for the icon: Also let me know if the trace shape is acceptable. The hard part with cursor traces is that it's all stored in a db so there's not really a standard trace format. If there's a different shape for the dataset that you would prefer feel free to let me know and I can update the cursor extraction logic accordingly. Test repository: armand0e/cursor-traces-example |
|
Switching the shape to be more native by following the event based session files found in .cursor/projects. By themselves these session files are useless, but in the name of keeping huggingface traces as "native" exports I'm going to follow these transcript file structures. If an end user uses teich to extract their cursor traces ( |
Summary
raw_cursordata0.2.8for Cursor trace conversion supportValidation
PYTHONPATH=src uv run --python 3.12 --with pytest --with setuptools --with pyarrow --with pandas --with teich==0.2.6 --with fsspec --with aiohttp --with xxhash --with multiprocess --with dill --with huggingface-hub --with requests --with packaging --with tqdm pytest -s tests/packaged_modules/test_json.py::test_json_generate_tables_with_agent_trace_metadata tests/packaged_modules/test_json.py::test_json_load_dataset_with_agent_trace_metadata tests/packaged_modules/test_json.py::test_json_load_dataset_without_droid_marker_stays_ordinary_json -qarmand0e/cursor-traces-example'scursor-sessions.jsonlthrough the patched JSON loader and confirmed 13 rows with the shared agent trace columns