@piprail/sdk 2.1.0 → 2.1.1

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/CHANGELOG.md CHANGED
@@ -4,6 +4,25 @@ All notable changes to `@piprail/sdk` are documented here. The format
4
4
  follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the
5
5
  versions follow [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## [2.1.1] — 2026-06-15 — discoverability polish (post-2.1.0 audit)
8
+
9
+ A consistency patch from a deep docs↔source audit of the 2.1.0 discoverability surface. No
10
+ behaviour change to any working feature.
11
+
12
+ ### Changed
13
+
14
+ - **`DiscoverySort` drops the `'latency'` member** (now `'relevance' | 'reliability' | 'price' |
15
+ 'uptime' | 'name'`). It was a no-op client-side (no latency field is surfaced on a result) and
16
+ was absent from the `piprail_discover` MCP tool enum — removing it makes the type, the tool, and
17
+ the docs agree. Sort by `'reliability'`/`'uptime'` for endpoint health instead.
18
+
19
+ ### Docs
20
+
21
+ - Completed the `piprail_discover` / `piprail_register` argument + result tables on the MCP-tools
22
+ and agent-toolkit reference pages with the 2.1.0 params/fields; added `summary` to the
23
+ `DiscoveryDescriptor` table; clarified that `limit` is a per-index-*request* fetch cap (a
24
+ multi-word query fans out into several). Added a committed discoverability sandbox suite.
25
+
7
26
  ## [2.1.0] — 2026-06-15 — discoverability: pinpoint search, richer registration, self-describing endpoints
8
27
 
9
28
  A major upgrade to the discovery surface — making `discover()` find the right resource, `register()`
@@ -1177,6 +1196,7 @@ straight into your wallet. The API is small and self-contained.
1177
1196
  to your wallet; PipRail never holds funds.
1178
1197
  - `viem ^2.21` is a peer dependency. Node 20+ or a modern browser.
1179
1198
 
1199
+ [2.1.1]: https://www.npmjs.com/package/@piprail/sdk
1180
1200
  [2.1.0]: https://www.npmjs.com/package/@piprail/sdk
1181
1201
  [2.0.2]: https://www.npmjs.com/package/@piprail/sdk
1182
1202
  [2.0.1]: https://www.npmjs.com/package/@piprail/sdk
package/dist/index.d.cts CHANGED
@@ -4540,7 +4540,7 @@ interface RegisterOutcome {
4540
4540
  /** How to order results. `'relevance'` (the default when a {@link SearchOpenIndexesOptions.query}
4541
4541
  * is given) ranks by query match via {@link rankResources}; the rest sort by a single field
4542
4542
  * (descending unless `order:'asc'`), using each index's reported value (unknowns sort last). */
4543
- type DiscoverySort = 'relevance' | 'reliability' | 'price' | 'uptime' | 'latency' | 'name';
4543
+ type DiscoverySort = 'relevance' | 'reliability' | 'price' | 'uptime' | 'name';
4544
4544
  interface SearchOpenIndexesOptions {
4545
4545
  /**
4546
4546
  * Free-text query. Tokenized and matched across name / description / category / URL:
package/dist/index.d.ts CHANGED
@@ -4540,7 +4540,7 @@ interface RegisterOutcome {
4540
4540
  /** How to order results. `'relevance'` (the default when a {@link SearchOpenIndexesOptions.query}
4541
4541
  * is given) ranks by query match via {@link rankResources}; the rest sort by a single field
4542
4542
  * (descending unless `order:'asc'`), using each index's reported value (unknowns sort last). */
4543
- type DiscoverySort = 'relevance' | 'reliability' | 'price' | 'uptime' | 'latency' | 'name';
4543
+ type DiscoverySort = 'relevance' | 'reliability' | 'price' | 'uptime' | 'name';
4544
4544
  interface SearchOpenIndexesOptions {
4545
4545
  /**
4546
4546
  * Free-text query. Tokenized and matched across name / description / category / URL:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@piprail/sdk",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Accept x402 crypto payments across 29 chains — every major EVM chain plus Solana, TON, Tron, NEAR, Sui, Aptos, Algorand, Stellar & XRPL — in a couple of lines. No backend, no database, no fee; payments settle straight to your wallet.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",