omi icon indicating copy to clipboard operation
omi copied to clipboard

CLI feature proposal: create action items from one JSON batch

Open Kgruben0133 opened this issue 2 months ago • 1 comments

A script importing a short task list currently has to invoke omi action-item create once per item. At 9ff63a63b047ec756b6a4e3d726bac5bf5d6440e, the action-item command group has no batch create command. The Developer API already accepts POST /v1/dev/user/action-items/batch with an action_items list of at most 50 entries, including description, completion state, and optional due date.

I propose one CLI PR adding omi action-item create-batch --file PATH, validating a UTF-8 JSON batch before one authenticated write, and rendering the returned action_items plus created_count. Invalid dates, malformed files, and oversize batches should produce clear input errors; authorization and server errors should retain the existing CLI error contract. Tests would cover payload mapping including completion/due dates, rejected input before an HTTP request, and server errors, alongside README usage.

This is a source-inspected enhancement, not a completed fix or live import. It does not change scheduling, backend notification behavior, API grants, or HTTP retry policy. Full component tests and repository preflight would still be required before a PR.

@josancamon19 — following the contribution guide's bounty-suggestion process, would you sponsor this as a US$40 cash bounty, payable by the documented PayPal process after acceptance and merge? This amount is requested, not approved. AI-assisted proposal submitted on behalf of @Kgruben0133.

Kgruben0133 avatar Sep 08 '26 15:09 Kgruben0133

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

aryanorastar avatar Nov 05 '26 16:11 aryanorastar