Skip to content

fix: align the CLI with public API v9.35.1 - #7

Merged
msanvarov merged 2 commits into
mainfrom
fix/api-contract-sync
Nov 22, 2026
Merged

msanvarov merged 2 commits into
mainfrom
fix/api-contract-sync

Conversation

@msanvarov

Copy link
Copy Markdown
Member

Audited every operation the CLI calls against the live public spec (v9.35.1) and the backend. Every path and request field exists. What was out of date were limits, defaults, the response fields the CLI reads, and help text. See CHANGELOG 0.3.1 for the user-facing list.

Checked against prod with the built CLI:

  • enrich person --phone --dry-run quotes 11 credits, and 1 without --phone. A real --phone call redeemed its quote and started the workflow, with no quote_mismatch.
  • After lists import of 2 rows, lists rows (table and --all --format csv) shows both rows as pending. Before this change it showed 0.
  • lists export --no-smart-agents and --smart-agents both work.
  • jobs search --limit 600 --dry-run quotes; before, the CLI refused it.
  • check-spec: 55 paths used, 0 missing.

- enrich person --phone asks for enrichment_type full (email + phone, 11
  credits), not the legacy include_phone flag the API reads as phone only.
  The estimate also sends include_phone, which the route binds into a full
  quote.
- enrich person/company send the approved quote_id (spend()).
- lists rows pages pending_imports too, on whichever cursor is left.
- lists export: include_smart_agents defaults to true; add --no-smart-agents.
- lists remove: batches of 100 (the route's max).
- jobs search --limit up to 10000; terminated is a finished workflow status.
- Table views and help text match the fields the routes return.
- CSV import chunks up to 10,000 rows / 5 MB (the cap is now 10 MB / 20k).
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@msanvarov
msanvarov merged commit 1c09c1c into main Nov 22, 2026
@msanvarov
msanvarov deleted the fix/api-contract-sync branch November 22, 2026 23:35
@coderabbitai
coderabbitai Bot requested a review from Levivajan November 22, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant