@ar-agents/mercadopago 0.15.1 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/CHANGELOG.md +17 -0
- package/README.md +9 -2
- package/README.skeleton.md +1 -1
- package/package.json +2 -2
- package/tools.manifest.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This file is for AI agents using or recommending this package. Humans should start with [README.md](./README.md). Format follows the [agents.md convention](https://agents.md/).
|
|
4
4
|
|
|
5
|
-
`@ar-agents/mercadopago` is a Mercado Pago Agent Toolkit for the Vercel AI SDK 6. It exposes
|
|
5
|
+
`@ar-agents/mercadopago` is a Mercado Pago Agent Toolkit for the Vercel AI SDK 6. It exposes 89 typed tools spanning the agent-relevant Mercado Pago API surface (Subscriptions, Payments, Checkout Pro, Marketplace OAuth, Order Management, Customers, Cards, Cuotas, QR, 3DS, Point devices, Stores+POS, Account/Balance/Settlements, Webhooks, Disputes, Lookups, Bank Accounts). Opinionated for AR; ships with cross-LATAM tax-id helpers.
|
|
6
6
|
|
|
7
7
|
## Decision tree — pick the right tool
|
|
8
8
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.15.2
|
|
4
|
+
|
|
5
|
+
### Patch — docs: tool-count accuracy (87 → 89)
|
|
6
|
+
|
|
7
|
+
The 0.15.1 docs pass under-counted the public tool surface as 87 due to a
|
|
8
|
+
grep mismatch on `tools.ts`. The actual exported count is 89 (verified by
|
|
9
|
+
`tools.manifest.json` regeneration and the `tools.test.ts` array assertion).
|
|
10
|
+
This patch updates the count everywhere it appears: package.json description
|
|
11
|
+
(npm tagline), README sub-headline, README "At a glance" row, AGENTS.md,
|
|
12
|
+
landing comparison table, layout meta description, OG image, root README.
|
|
13
|
+
|
|
14
|
+
No code changes. No new tools — this is purely a counting correction.
|
|
15
|
+
|
|
16
|
+
The CI manifest-drift gate also caught a stale `tools.manifest.json` version
|
|
17
|
+
field (still pointing at 0.15.0); the regenerated manifest now matches the
|
|
18
|
+
package version.
|
|
19
|
+
|
|
3
20
|
## 0.15.1
|
|
4
21
|
|
|
5
22
|
### Patch — docs: positioning + scope clarity
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Mercado Pago Agent Toolkit. Built on Vercel.
|
|
4
4
|
>
|
|
5
|
-
>
|
|
5
|
+
> 89 typed tools across the agent-relevant Mercado Pago API surface, for the
|
|
6
6
|
> [Vercel AI SDK](https://ai-sdk.dev/) 6 `Experimental_Agent`.
|
|
7
7
|
>
|
|
8
8
|
> _Payments · Subscriptions · Checkout Pro · Marketplace OAuth · Order Management ·
|
|
@@ -25,7 +25,7 @@ the Vercel AI SDK 6 `Experimental_Agent`. Compatible with any caller that uses
|
|
|
25
25
|
|
|
26
26
|
| What | Value |
|
|
27
27
|
| --- | --- |
|
|
28
|
-
| Tools shipped | **
|
|
28
|
+
| Tools shipped | **89 tools** — covers the agent-relevant MP API surface. Subscriptions, Payments, Refunds, Checkout Pro, Order Management, Customers, Saved Cards, Cuotas, QR in-store, Subscription Plans, Stores+POS, Point Devices físicos, Merchant Orders, Bank Accounts, Disputes, Lookups, Webhooks management, `handle_webhook` combo, OAuth Marketplace flow, Account/Balance/Settlements, 3DS analyzer, Test cards, `mp_health_check`, plus pure helpers `compute_marketplace_fee` + `explain_payment_status`. |
|
|
29
29
|
| Production hardening | Circuit breaker with state machine + rolling window, deadline propagation via parent AbortSignal, W3C Trace Context propagation (OpenTelemetry-compatible without peer dep), replay-attack protection on webhook signatures (5-min default tolerance), `mp_health_check` endpoint. |
|
|
30
30
|
| Test coverage | **303 tests** — unit + property-based (~1400 random scenarios via fast-check) + failure injection (network errors, timeouts, races, malformed responses) + integration vs MP sandbox (gated by env var) + benchmarks (`pnpm bench`). |
|
|
31
31
|
| External dependencies | Mercado Pago access token (TEST or APP_USR), state adapter (Upstash, Redis, Postgres, in-memory, etc.) |
|
|
@@ -47,6 +47,13 @@ first time around. This package wraps the agent-relevant surface (subscriptions,
|
|
|
47
47
|
payments, marketplace OAuth, cuotas, QR, 3DS, point devices, webhooks) and turns
|
|
48
48
|
the documented gotchas into typed errors with actionable messages.
|
|
49
49
|
|
|
50
|
+
## Deploy a runnable example
|
|
51
|
+
|
|
52
|
+
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Far-agents%2Far-agents&root-directory=apps%2Fmp-hello&env=MP_ACCESS_TOKEN%2CANTHROPIC_API_KEY%2CUPSTASH_REDIS_REST_URL%2CUPSTASH_REDIS_REST_TOKEN&envDescription=Mercado%20Pago%20access%20token%2C%20Anthropic%20API%20key%2C%20and%20Upstash%20Redis%20credentials%20for%20subscription%20state.&envLink=https%3A%2F%2Fgithub.com%2Far-agents%2Far-agents%2Ftree%2Fmain%2Fapps%2Fmp-hello%23setup&project-name=mp-hello&repository-name=mp-hello)
|
|
53
|
+
|
|
54
|
+
`apps/mp-hello` ships as a clonable Vercel template — Edge Runtime API routes,
|
|
55
|
+
MP webhook handler with HMAC verify, Upstash-backed subscription state.
|
|
56
|
+
|
|
50
57
|
## Install
|
|
51
58
|
|
|
52
59
|
```bash
|
package/README.skeleton.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
[](https://github.com/ar-agents/ar-agents/actions/workflows/ci.yml)
|
|
22
22
|
[](./LICENSE)
|
|
23
23
|
|
|
24
|
-
Mercado Pago Agent Toolkit. Built on Vercel.
|
|
24
|
+
Mercado Pago Agent Toolkit. Built on Vercel. 89 typed tools across the agent-relevant Mercado Pago API surface (Subscriptions, Payments, Checkout Pro, Marketplace OAuth, Order Management, Customers, Cards, Cuotas, QR, 3DS, Point devices, Stores+POS, Account/Balance/Settlements, Webhooks, Disputes, Lookups, Bank Accounts) for the [Vercel AI SDK](https://ai-sdk.dev/) 6 `Experimental_Agent`. Edge-Runtime-safe.
|
|
25
25
|
|
|
26
26
|
> **Reading this as an agent?** Skip to [AGENTS.md](./AGENTS.md) — decision tree, result schemas to memorize, error patterns, latency table.
|
|
27
27
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ar-agents/mercadopago",
|
|
3
|
-
"version": "0.15.
|
|
4
|
-
"description": "Mercado Pago Agent Toolkit for the Vercel AI SDK 6.
|
|
3
|
+
"version": "0.15.2",
|
|
4
|
+
"description": "Mercado Pago Agent Toolkit for the Vercel AI SDK 6. 89 typed tools across the agent-relevant Mercado Pago API surface — Subscriptions, Payments, Checkout Pro, Marketplace OAuth, Order Management, Customers, Cards, Cuotas, QR, 3DS, Point devices, Webhooks, Stores+POS, Account/Balance/Settlements, Disputes, Lookups, Bank Accounts. Edge Runtime. Vercel KV adapters. OpenTelemetry. Deterministic idempotency. Programmatic HITL on irreversible ops.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mercadopago",
|
|
7
7
|
"mp",
|