[Bounty proposal] feat(python-cli): conversations -> JSONL export recipe ($25 proposed)
Summary
The conversations export surface already ships CSV, Excel, SQLite, Atom, and Markdown recipes, but no JSON Lines (JSONL) option — the line-oriented format pipelines actually want for jq/grep processing, pandas/Spark read_json(lines=True), vector-store ingestion, and LLM fine-tuning. This proposes a conversations -> JSONL recipe alongside them.
sdks/python-cli/examples/conversations_to_jsonl.py— stdlib-only converter: one normalized, self-contained JSON object per line (no BOM, compact,ensure_ascii=False) with a stable schema:id/title/category/started_at/finished_at/source/overview/action_items({description, completed}dicts coerced from objects or strings). Timestamps normalized to ISO-8601 UTC; boundary-overflow timestamps keep their raw value instead of aborting the export.--include-transcriptembeds normalized{speaker, start, end, text}segments (excluded by default to keep lines small).--categoryfilter (comma-separated, case-insensitive); non-dict rows pass the filter untouched so one odd record cannot crash the filtered export.- Envelope unwrapping (
conversations/items/data/results, bare list, single object), UTF-8 BOM-tolerant input; error payloads yield empty output instead of a phantom row. - Exclusive-creation
-owrites: the complete export is built before the filesystem is touched, a write error removes the partial file and reports a clean error; stdout mode prints plain UTF-8 JSONL. sdks/python-cli/examples/conversations_jsonl.md— recipe documentation, registered inexamples/README.md.sdks/python-cli/tests/test_conversations_to_jsonl.py— 52 hermetic unit tests (record normalization, timestamps incl. overflow boundary, action-item coercion, envelope unwrapping, category filtering incl. negative assertions, line format, CLI exit codes, write-failure cleanup).
Validation
python -m unittest discover -s sdks/python-cli/tests -p test_conversations_to_jsonl.py: 52 passed.black+isortclean with the repo settings (line-length 120, black profile).- No changes to any existing recipe or shared code — new files plus a README discovery line.
Proposed Bounty
- $25 (standard developer recipe bounty). Payable through the documented PayPal process after acceptance and merge.
Payout (PayPal): [email protected]
Disclosure: the investigation, recipe, and tests were prepared with an AI assistant. This proposal does not represent independent human technical review.
@josancamon19 @kodjima33 Is there still a paid need for the complete conversations → JSONL recipe in this issue? I checked the three converter/doc/test paths named here on main: they return Not Found, and this recipe is not listed in the examples README.
The proposal covers the stable record schema, UTC/overflow timestamps, action items, optional transcript, category filtering, BOM/envelope/error inputs, exclusive -o creation with cleanup, plain stdout, documentation and tests. Could you confirm the current target revision and full remaining acceptance gaps, whether a new contributor can take them, and whether the proposed $25 is an approved cash bounty (currency and payout method)?
Thanks for putting this together. We aren't doing bounties at the moment, so we're closing the bounty proposal issues for now — thanks for the fix! 🙏