Add ocl import commands (file, status, list)#2
Merged
Conversation
Adds bulk import CLI commands using the /importers/bulk-import/ API endpoint. Supports all server-side file formats: JSON/JSONL, CSV, and OCL export ZIP. - `ocl import file FILE` — upload for bulk import with --queue, --parallel, --wait - `ocl import status TASK_ID` — check task status with optional --wait polling - `ocl import list` — list active/recent imports with optional --queue filter Closes #1 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Mark Phase 2 (Bulk Import) as done in remaining-gaps plan - Add Bulk Import section to README with usage examples - Add section 6.3 Bulk Import to operations demo #2443 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ocl import file FILE— upload JSON/JSONL, CSV, or OCL export ZIP for bulk importocl import status TASK_ID— check/poll import task statusocl import list— list active/recent imports/importers/bulk-import/endpoint (multipart file upload)Test plan
ocl import file test.jsonl --server ocl-dev— verify JSON Lines uploadocl import file test.csv --server ocl-dev— verify CSV uploadocl import file export.zip --server ocl-dev— verify OCL export uploadocl import file test.txt— verify unsupported extension is rejectedocl import status <task-id>— verify task status displayocl import list— verify import list displayocl import file test.jsonl --wait— verify poll-until-completeocl import file test.jsonl --queue myqueue— verify queue routing--jsonflag for raw JSON outputCloses OpenConceptLab/ocl_issues#2443
🤖 Generated with Claude Code