Repository navigation
feat(insurance): list Archera vendor line items for comparison filters - #2271
Conversation
…tems Fetch every vendor line-items page through the shared insurance client and print a local offset/limit window as table or JSON, so users can obtain real line_item_id values for archera-comparison --line-item-ids. Any page failure returns an error with no partial output. Exact decimals and nullable fields are preserved and the API key is never echoed. Refs #2266 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd privacy Exercise bounds and missing-setting rejection before any request, no partial output when a later page fails (HTTP, decode, metadata, duplicate, size, cancel, 429, redirect), the aggregate deadline, and secret redaction in both output formats. Refs #2266 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the command reference and link it from the README and CLI index so users can find vendor line-item UUIDs before filtering a comparison. Refs #2266 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@coderabbitai review |
|
Independent review A (claude-cc-libs-reviewA, Sonnet, cold brief, not the author)Reviewed SHA: c59223b Local verification (scratch worktree at this SHA, macOS):
What was attacked:
Mutation probes:
Nits, to be addressed in a follow-up commit on this PR:
|
Independent review B (claude-cc-libs-reviewB, Sonnet, cold brief, not the author, independent of review A)Reviewed SHA: c59223b Local verification (scratch worktree at this SHA, macOS): What was attacked:
Mutation probes:
Low / info (non-blocking):
Both are tracked with review A's nits for a follow-up PR. |
Merge gate verdict (claude-cc-libs)Every gate holds at head c59223b, which is unchanged since both reviews:
The non-blocking nits from both reviews go in a follow-up PR: a test for the whole-output key check, Squash-merging per the vacation-run auto-merge authority. |
Closes #2266
What
Adds
cudly archera-line-items, a read-only command that lists Archera vendor line items so a user can find a realline_item_idbefore runningarchera-comparisonwith an explicit line-item filter.insurance.Client.LineItemsfrom the pinnedcloud-commitments-go(all pages, no partial result). No dependency bump, no ID mapping.archeraSettings(org, plan)is shared witharchera-comparison.Commits (each <= 400 additions+deletions)
Local verification (macOS, this HEAD)
go build -o cudly ./cmd,go vet ./...,go test ./...,make lint: all pass.rootCmd.Executeagainst an httptest vendor server. They cover page-2 HTTP 500, decode error, bad metadata, duplicate item, oversize body, cancellation, 429 and redirect, and all of these produce empty output. Listed IDs are reused in the comparison filter, asserted on the request query.end < total && false) failsTestArcheraLineItemsWindowsAndComparisonReuse.Independent reviews follow as PR comments.
🤖 Generated with Claude Code
Summary by CodeRabbit