Skip to content

Release 0.4.0 - #8

Merged
kev1n merged 1 commit into
mainfrom
release/0.4.0
Jul 28, 2026
Merged

kev1n merged 1 commit into
mainfrom
release/0.4.0

Conversation

@kev1n

@kev1n kev1n commented Jul 28, 2026

Copy link
Copy Markdown
Member

Cuts 0.4.0 so the --idempotency-key flag from #7 actually reaches npm. anyapi-cli is still published at 0.3.3, so the feature is merged but not installable.

Minor rather than patch: the flag is an additive feature.

What ships

anyapi run <sku> --input '<json>' --idempotency-key <key> sends a single Idempotency-Key header, so a re-run replays the earlier result instead of charging again. --idempotency-key auto derives a stable key from the SKU, canonicalized input, and UTC date, and sends the canonicalized body so equivalent JSON formatting produces both the same key and byte-identical bytes.

Omitting the flag sends no header, so intentional repeated runs are unaffected.

Verification

npm run build    OK
npm test         9 files, 51 tests passed

🤖 Generated with Claude Code

Adds --idempotency-key to `anyapi run`, so a re-run can replay an earlier
result instead of charging again. Supports an explicit key or `auto`, which
derives a stable key from the SKU, canonicalized input, and UTC date.

Co-Authored-By: Claude <noreply@anthropic.com>
@kev1n
kev1n merged commit cb76b08 into main Jul 28, 2026
2 checks passed
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