omi icon indicating copy to clipboard operation
omi copied to clipboard

[Bounty proposal] feat(python-cli): conversations -> JSONL export recipe ($25 proposed)

Open nguyentruong190 opened this issue 2 months ago • 2 comments

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-transcript embeds normalized {speaker, start, end, text} segments (excluded by default to keep lines small).
  • --category filter (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 -o writes: 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 in examples/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 + isort clean 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.

nguyentruong190 avatar Oct 02 '26 06:10 nguyentruong190

@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)?

ayqy avatar Oct 14 '26 22:10 ayqy

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! 🙏

undivisible avatar Oct 22 '26 11:10 undivisible