feat: CLI UX improvements for agents - #5
Merged
Conversation
Allow users to pass data directly to `parallel-cli enrich run` without
needing to create a CSV file first. This is useful for agents and
scripts that have data in memory.
Example usage:
parallel-cli enrich run \
--data '[{"company": "Google"}, {"company": "Apple"}]' \
--target output.csv \
--intent "Find the CEO"
The command:
- Accepts a JSON array of objects via --data
- Automatically infers source columns from the data
- Creates a temporary CSV file internally (cleaned up after)
- Sets source_type to "csv" automatically
Allow --include-domains and --exclude-domains to accept comma-separated lists in addition to repeated flags: # Before (still works) parallel-cli search "query" --include-domains google.com --include-domains github.com # Now also supported parallel-cli search "query" --include-domains google.com,github.com # Mixed usage works too parallel-cli search "query" --include-domains google.com,github.com --include-domains twitter.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
Two UX improvements for agent workflows:
--dataoption toenrich runthat accepts JSON arrays directly, eliminating the need to create temporary CSV files--include-domainsand--exclude-domainsto accept comma-separated listsChanges
1. Inline JSON data for enrichment
Agents can now pass data directly without creating a CSV file:
--intentfor AI-suggested output columns2. Comma-separated domain filters
Domain filters now support comma-separated values:
Test plan
parse_inline_data()helper (6 tests)--dataCLI option (4 tests)parse_comma_separated()helper (7 tests)