keyring-agent-core 0.4.14 → 0.4.16

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
@@ -7,6 +7,85 @@ version. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versi
7
7
  ## [Unreleased]
8
8
 
9
9
  ### Fixed
10
+
11
+ - **Add liquidity (`preview-add-liquidity`):** the mint reverted with `Price slippage check` whenever
12
+ the pool's price was far from the market (e.g. a thin pool ~50% off): the native input was split at
13
+ the pool price, the swap legs filled at the market, and `amount0Min`/`amount1Min` (80% of each leg's
14
+ min-out) exceeded what the mint could use from the over-filled side. Now the input is re-split with
15
+ the quoted rates (`PoolService.rebalanceSplitForRates`, priced on each leg's expected out — `fetchSwapLeg`
16
+ now also returns `amountOut` — and re-quoted when it moves > 0.5%) and the mins
17
+ are 80% of what the mint actually uses. `summary.ratio` is the native share per leg; the result
18
+ carries `marketDeviationPct` and the agent warns above 5%.
19
+
20
+ - **Gemini:** every tool loop failed with 400 once Google moved `gemini-2.5-flash` requests onto
21
+ `gemini-3.5-flash-lite` (router / direct answers kept working, so it looked intermittent):
22
+ - Tool results were sent with `role: 'function'` → `Role 'function' is not supported`. They are now
23
+ a `user` turn, all responses of one step in one content.
24
+ - Function-call turns were rebuilt from `toolCalls`, dropping their `thoughtSignature` →
25
+ `Function call is missing a thought_signature`. The model turn's raw parts are now kept
26
+ (`LLMResponse.modelParts` → `ChatMessage.modelParts`, stored by `Subagent`) and replayed verbatim,
27
+ so each signature stays on its original part. History saved without them is rebuilt with the
28
+ documented `skip_thought_signature_validator` on the first call.
29
+ See https://ai.google.dev/gemini-api/docs/thought-signatures
30
+
31
+ - **Swap/Buy (Relay):** `trackTransaction` now maps v3's `refund` status to `COMPLETED`; it used to
32
+ stay `PENDING` forever (only the pre-v3 spelling `refunded` was recognised).
33
+
34
+ ### Changed
35
+
36
+ - **Breaking — model:** only `gemini-3.5-flash-lite` is supported; it is the default (was
37
+ `gemini-2.5-flash`).
38
+ - **Breaking — thinking:** `thinkingBudget` (tokens) is replaced by `thinkingLevel`
39
+ (`'minimal' | 'low' | 'medium' | 'high' | null`) on `LLMProviderConfig` and `ChatOptions`, sent as
40
+ `thinkingConfig.thinkingLevel`. Default `'minimal'` (near-off). `WebsiteTrustKeyringAgent`'s
41
+ investigation call uses `'low'` (was a 2048-token budget).
42
+ - **Breaking — sampling:** `LLMProviderConfig.temperature` is removed and no temperature is sent:
43
+ deprecated and ignored on `gemini-3.5-flash-lite`, a 400 on later models.
44
+ - **Request:** `systemInstruction` is sent without a role; trailing model turns are dropped (a
45
+ request ending with a model turn is a 400); a `functionResponse` only echoes an `id` its call
46
+ carried.
47
+ - **Response:** thought parts are left out of `text`; an empty turn is retried only for transient
48
+ finish reasons (`STOP`, `MAX_TOKENS`, `MALFORMED_FUNCTION_CALL`, `MALFORMED_RESPONSE`, `OTHER`),
49
+ others (e.g. `SAFETY`, `MISSING_THOUGHT_SIGNATURE`, `UNEXPECTED_TOOL_CALL`) return at once; a
50
+ blocked prompt returns its `promptFeedback.blockReason` as `finishReason`.
51
+ - Default proxy is now `https://nft.keyring.app/api/gemini-stable-v2`, a plain pass-through. The old
52
+ `gemini-stable` proxy keeps rewriting requests from clients `<= 0.4.15`.
53
+
54
+ - **Breaking — Swap/Buy (Relay):** quotes now go to `/quote/v3` (`/quote/v2` is deprecated since
55
+ 2026-11-25). v3 requires an API key, so `AgentConfig.swapProviders.relay.apiKey` is now
56
+ **required**: without it every Relay quote and request lookup fails with
57
+ `Unauthorized: Check API Key or API session`. deBridge is unaffected.
58
+ - **Swap/Buy (Relay):** quote parsing follows the v3 shape — tx payload read from the flat
59
+ `step.data` (approve and swap/deposit steps), `requestId` from the top level, and a v3 `errorCode`
60
+ is returned as `error` (with `message` as `errorMessage`). Quotes persisted in chat history in the
61
+ v2 shape (`step.items[0].data`, step-level `requestId`) still read. `raw.warnings` now carries
62
+ Relay's quote warnings. Affiliate `appFees[].fee` is sent as a string of basis points, as v3
63
+ expects.
64
+
65
+ ### Added
66
+
67
+ - `LLMResponse.modelParts`, `ChatMessage.modelParts`, `ModelPart`, `ThinkingLevel`.
68
+ - **Swap/Buy (Relay):** `RelayProvider.getRequestDetail({ requestId?, txHash? })` reads a request
69
+ from `/requests/v3` (`/requests/v2` was retired on 2026-11-24): looks up by `requestId`, falls back
70
+ to any of its tx hashes, and returns the tracker `status`, Relay's own `relayStatus`, `failReason`
71
+ and — only once Relay reports `success` — what the user actually received (`amountOut`,
72
+ `amountOutFormatted`, `amountOutUsd`, `currencyOut`, from `route.actual`, not the quote). Never
73
+ throws. Types `RelayRequestDetail`, `RelayRequestDetailParams` are exported.
74
+
75
+ ## [0.4.15] - 2026-11-20
76
+
77
+ _Generated from commit messages._
78
+
79
+ ### Changed
80
+
81
+ - Add translation capabilities with TranslateKeyringAgent and integrate into prediction tools
82
+ - Add evaluation scripts for translation and website trust agents
83
+ - Enhance prediction tools with localization and summarization capabilities
84
+
85
+ ## [0.4.14] - 2026-11-19
86
+
87
+ ### Fixed
88
+
10
89
  - **Prediction:** a Max BUY still failed with "not enough balance / allowance" (0.4.13 did not cover
11
90
  it): Keyring's builder code charges a 1% taker fee on top, which the core priced at 0. The SDK's own
12
91
  `maxSpend` cut adds it but prices both fees at the limit, so a fill below the limit overran the cash
@@ -16,12 +95,14 @@ version. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versi
16
95
  platform fee at the costlier of fill and limit, the builder fee at the limit — $3.95 there.
17
96
 
18
97
  ### Added
98
+
19
99
  - **Prediction:** `MarketOrder` (BUY with `maxSpend`) carries `minFillPrice` and `fee`, set by
20
100
  `prepareMarketOrder`, for the cap above. Orders built elsewhere without them fall back to the limit.
21
101
 
22
102
  ## [0.4.13] - 2026-11-19
23
103
 
24
104
  ### Fixed
105
+
25
106
  - **Prediction:** a Max BUY (the amount = the whole cash) on a market with fees failed ("The
26
107
  transaction failed"). `prepareMarketOrder` cut the notional to fit the cash with the fee reserved at
27
108
  the LIMIT price, but the fee is charged at each fill's price, and a fill below the limit buys more
@@ -33,6 +114,7 @@ version. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versi
33
114
  ## [0.4.12] - 2026-11-18
34
115
 
35
116
  ### Changed
117
+
36
118
  - **Prediction (breaking for consumers of `stable` / the symbol lists):** stablecoins are no
37
119
  longer a separate tier — every token is handled alike, only native vs ERC-20 differ.
38
120
  `WalletDepositOption.stable`, `EvmDepositAsset.stable` (and the `stable` of the deposit card's
@@ -46,6 +128,7 @@ version. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versi
46
128
  ## [0.4.11] - 2026-11-18
47
129
 
48
130
  ### Changed
131
+
49
132
  - **Prediction:** `open-prediction-withdraw` description no longer says withdrawals arrive "as USDC or
50
133
  USDT": any token the bridge serves on an EVM chain (native coin included) is a destination, as
51
134
  `withdrawDestinations` already returns.
@@ -53,6 +136,7 @@ version. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versi
53
136
  ## [0.4.10] - 2026-11-18
54
137
 
55
138
  ### Changed
139
+
56
140
  - **Prediction:** deposits "From this wallet" offer every token the bridge accepts on an EVM
57
141
  chain that the wallet holds (native coin = zero address, read with `getBalance`), not only
58
142
  USD stablecoins. `WalletDepositOption` gains `stable`; stablecoins are listed first.
@@ -62,6 +146,7 @@ version. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versi
62
146
  is left out of wallet deposit options and withdraw destinations (`POLYGON_NATIVE_PRECOMPILE`).
63
147
 
64
148
  ### Fixed
149
+
65
150
  - **Prediction:** the deposit tool's reply quoted the bridge's bare minimum ("deposits below about $2…")
66
151
  while the apps enforce it + a $1 buffer ($3): `minimumDepositUsd` and the reply now use
67
152
  `bridgeMinUsd` (new exports `BRIDGE_MIN_BUFFER_USD`, `bridgeMinUsd`). Card `options[].minUsd`
@@ -73,12 +158,14 @@ version. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versi
73
158
  ## [0.4.8] - 2026-11-17
74
159
 
75
160
  ### Fixed
161
+
76
162
  - **Prediction:** NegRiskAdapter approval checks corrected so neg-risk market trades detect
77
163
  missing approvals accurately.
78
164
 
79
165
  ## [0.4.7] - 2026-11-17
80
166
 
81
167
  ### Added
168
+
82
169
  - **Prediction:** `getShareBalances(wallet, tokenIds)` export and
83
170
  `PolymarketService.getShares()` — on-chain outcome-token share balances, current as soon as a
84
171
  fill settles (unlike `getPositions`), never cached.
@@ -89,6 +176,7 @@ version. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versi
89
176
  ## [0.4.6] - 2026-11-17
90
177
 
91
178
  ### Changed
179
+
92
180
  - **Prediction:** withdrawals can pay out to any token the bridge serves on an EVM chain
93
181
  (native = zero address), not only USD stablecoins. Stablecoins are still listed first.
94
182
  - **Lending:** Compound links now point to `compound.xyz` (was `compound.finance`).
@@ -96,6 +184,7 @@ version. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versi
96
184
  ## [0.4.5] - 2026-11-11
97
185
 
98
186
  ### Changed
187
+
99
188
  - **Prediction:** the Polymarket SDK's Polygon RPC is now chosen by probing endpoints with a
100
189
  full-size JSON-RPC batch; order is host override → built-in list → remote catalogue, so a
101
190
  batch-capped or rate-limited endpoint is no longer picked.
@@ -103,6 +192,7 @@ version. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versi
103
192
  ## [0.4.4] - 2026-11-11
104
193
 
105
194
  ### Changed
195
+
106
196
  - **Core:** the restricted-topics blocklist (weather, sports, politics, …) was removed; the
107
197
  identity guard remains. Non-crypto questions are answered normally again.
108
198
  - **Core:** "who will win / will X happen" follow-ups inside a prediction-market conversation
@@ -111,6 +201,7 @@ version. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versi
111
201
  ## [0.4.3] - 2026-11-09
112
202
 
113
203
  ### Changed
204
+
114
205
  - **Pool:** `PoolByAddressTool` resolves an address as pool or token in a single search call,
115
206
  with clearer errors when neither matches.
116
207
  - **Pool:** token safety checks in pool analysis gained extra risk flags and verdicts.
@@ -118,18 +209,21 @@ version. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versi
118
209
  ## [0.4.2] - 2026-11-09
119
210
 
120
211
  ### Added
212
+
121
213
  - **Prediction:** minimum withdrawal per bridge destination — `minUsd` on withdraw targets,
122
214
  `isBelowWithdrawMinimum()` and the `WithdrawTarget` type are exported.
123
215
 
124
216
  ## [0.4.1] - 2026-11-06
125
217
 
126
218
  ### Changed
219
+
127
220
  - **Prediction:** event card detail buttons now submit the event title (no slug); the core
128
221
  remembers the card's slug and resolves the event by title.
129
222
 
130
223
  ## [0.4.0] - 2026-11-04
131
224
 
132
225
  ### Changed
226
+
133
227
  - **Chains/RPC:** multi-endpoint clients use a `fallbackHttp` transport that fails over instead
134
228
  of waiting out a long `Retry-After` (new `maxRetryAfterMs` transport option).
135
229
  - **Core:** lower turn latency — the router runs in parallel with the query rewrite (its
@@ -141,6 +235,7 @@ version. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versi
141
235
  ## [0.3.25] - 2026-11-03
142
236
 
143
237
  ### Added
238
+
144
239
  - **Website trust:** results are cached in memory and optionally in storage. New
145
240
  `WebsiteTrustKeyringAgent` options: `officialCacheTtlMs` (default 7 days),
146
241
  `assessCacheTtlMs` (default 1 day), `cacheStorage`, `cacheStorageKey`.
@@ -148,23 +243,27 @@ version. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versi
148
243
  ## [0.3.24] - 2026-10-28
149
244
 
150
245
  ### Changed
246
+
151
247
  - **Build/RN:** dependency bumps (`@langchain/langgraph` ^1.5.3, `axios` ^1.21.0) and security
152
248
  `resolutions` for transitive packages. No API change.
153
249
 
154
250
  ## [0.3.23] - 2026-10-28
155
251
 
156
252
  ### Changed
253
+
157
254
  - **Prediction:** builder authentication reworked for Polymarket's updated API; builder code
158
255
  updated to the latest version.
159
256
 
160
257
  ## [0.3.22] - 2026-10-14
161
258
 
162
259
  ### Added
260
+
163
261
  - **Prediction:** builder code management for Polymarket order attribution.
164
262
 
165
263
  ## [0.3.21] - 2026-10-14
166
264
 
167
265
  ### Fixed
266
+
168
267
  - **Prediction:** fee handling and market-order logic so trades show the amounts actually
169
268
  charged.
170
269
 
@@ -173,6 +272,7 @@ version. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versi
173
272
  Prediction markets (Polymarket) land.
174
273
 
175
274
  ### Added
275
+
176
276
  - **Prediction:** Polymarket tools — event lookup and cards, market detail, account lookup,
177
277
  `PredictionSetupTool` (account setup + relayer wallet deployment), `PredictionDepositTool`
178
278
  (EVM deposits, direct send or deposit address), `PredictionTradeTool`, and
@@ -186,6 +286,7 @@ Prediction markets (Polymarket) land.
186
286
  ## [0.3.19] - 2026-09-30
187
287
 
188
288
  ### Fixed
289
+
189
290
  - **Wallet:** amounts are floored to token decimals (`floorToTokenDecimals`) so percentage /
190
291
  max amounts never round above the balance.
191
292
  - **Wallet:** dust positions are filtered out of DeFi positions.
@@ -197,55 +298,66 @@ _No functional changes (republish)._
197
298
  ## [0.3.17] - 2026-09-30
198
299
 
199
300
  ### Changed
301
+
200
302
  - **Token:** trending tokens use on-chain symbols and richer data enrichment.
201
303
 
202
304
  ## [0.3.16] - 2026-09-29
203
305
 
204
306
  ### Added
307
+
205
308
  - **Core:** `finishReason` on `LLMResponse`.
206
309
  - **Token:** improved research handling in `TokenInfoTool`.
207
310
 
208
311
  ## [0.3.15] - 2026-09-29
209
312
 
210
313
  ### Changed
314
+
211
315
  - **Core:** default model is now `gemini-2.5-flash` (was `gemini-2.5-flash-lite`).
212
316
 
213
317
  ## [0.3.14] - 2026-09-28
214
318
 
215
319
  ### Added
320
+
216
321
  - **Lending:** yield identity resolution and underlying price fetching for yield tokens.
217
322
 
218
323
  ## [0.3.13] - 2026-09-22
219
324
 
220
325
  ### Changed
326
+
221
327
  - Documentation for lending protocols and deep links. No code change.
222
328
 
223
329
  ## [0.3.12] - 2026-09-17
224
330
 
225
331
  ### Added
332
+
226
333
  - **Lending:** dynamic per-protocol chain lists for Morpho and Compound.
227
334
 
228
335
  ### Fixed
336
+
229
337
  - **Lending:** Spark protocol URLs use the correct domain.
230
338
 
231
339
  ## [0.3.11] - 2026-09-16
232
340
 
233
341
  ### Fixed
342
+
234
343
  - **Chains/RPC:** chain normalisation checks across services reject unsupported chains.
235
344
 
236
345
  ## [0.3.10] - 2026-09-16
237
346
 
238
347
  ### Added
348
+
239
349
  - **Chains/RPC:** `getNativeCurrency()` and `getChainName()` helpers.
240
350
 
241
351
  ## [0.3.9] - 2026-09-11
242
352
 
243
353
  ### Changed
354
+
244
355
  - **Wallet:** wallet actions accept user-named networks and handle chain selection better.
245
356
 
246
357
  ## [0.3.8] - 2026-09-10
247
358
 
248
359
  ### Added
360
+
249
361
  - **Swap/Buy:** USD prices for tokens in `BuyTokenTool` and `SwapTokenTool`; same-token trades
250
362
  are detected (`isSameToken`).
251
363
  - **Swap/Buy:** cross-chain parameters and refusal logic for wallet actions.
@@ -253,6 +365,7 @@ _No functional changes (republish)._
253
365
  ## [0.3.7] - 2026-09-10
254
366
 
255
367
  ### Added
368
+
256
369
  - **Pool:** new Uniswap pool tool set (`TopPoolsTool`, `PoolDetailTool`, `PoolSearchTool`, …)
257
370
  sharing one pool-analysis rubric, a pool candidate resolver for add-liquidity, and a unified
258
371
  pool detail shape.
@@ -262,20 +375,24 @@ _No functional changes (republish)._
262
375
  - **Core:** token caps for subagent and synthesizer replies to cut latency.
263
376
 
264
377
  ### Changed
378
+
265
379
  - **Token:** Pantograph token requests are batched.
266
380
 
267
381
  ### Deprecated
382
+
268
383
  - **Pool:** old `pool-defillama` agent config aliases.
269
384
 
270
385
  ## [0.3.6] - 2026-09-09
271
386
 
272
387
  ### ⚠️ Breaking
388
+
273
389
  - **Swap/Buy:** swap services rebuilt around `SwapProviderFactory`, `SwapRouter`
274
390
  (`PoolSwapRouter`, `UserSwapRouter`) and `SwapRouterRegistry`; the old `SwapServiceFactory`
275
391
  and its address/affiliate modules were removed.
276
392
  - **Swap/Buy:** default swap provider is now `relay` (was `debridge`).
277
393
 
278
394
  ### Changed
395
+
279
396
  - **Swap/Buy:** `SwapTokenTool` uses one editable amount form (replaces the amount picker),
280
397
  keeps the destination token while the source is chosen, and checks gas affordability.
281
398
  `BuyTokenTool` and `SwapTokenTool` share one spendable-balance calculation.
@@ -283,33 +400,39 @@ _No functional changes (republish)._
283
400
  ## [0.3.5] - 2026-09-07
284
401
 
285
402
  ### Added
403
+
286
404
  - **Core:** `selfContained` flag on `RewriteResult`.
287
405
 
288
406
  ## [0.3.4] - 2026-09-07
289
407
 
290
408
  ### Added
409
+
291
410
  - **Lending:** Maple (Syrup pools) — live APY/TVL from Maple GraphQL plus history from the
292
411
  lending rates API; read-only (deposits are permissioned).
293
412
  - **Pool:** `OpenAddLiquidityFormTool` accepts exact pool addresses and V4 pool identifiers.
294
413
  - **Pool:** token safety flags and transfer-tax warnings in pool analysis.
295
414
 
296
415
  ### Changed
416
+
297
417
  - **Pool:** pool detail mapping centralised; APR shown is net of protocol fees. Pool data
298
418
  fetching merges search and list requests.
299
419
 
300
420
  ## [0.3.3] - 2026-08-27
301
421
 
302
422
  ### Added
423
+
303
424
  - **Pool:** `searchBaseUrl` option for `UniswapService`; API endpoints updated.
304
425
 
305
426
  ## [0.3.2] - 2026-08-26
306
427
 
307
428
  ### Fixed
429
+
308
430
  - **Lending:** `SPARK_SHARE_TYPES` excludes invalid contract types.
309
431
 
310
432
  ## [0.3.1] - 2026-08-26
311
433
 
312
434
  ### Changed
435
+
313
436
  - **Lending:** protocol adapters split into modules (Aave, Compound, Morpho, Spark, Spark L2
314
437
  sUSDS) with a registry and shared helpers.
315
438
  - **Core:** assistant-invocation detection in the query rewriter.
@@ -317,69 +440,83 @@ _No functional changes (republish)._
317
440
  ## [0.3.0] - 2026-08-25
318
441
 
319
442
  ### Added
443
+
320
444
  - **Lending:** Compound V3 reward APR included in APY.
321
445
 
322
446
  ## [0.2.65] - 2026-08-24
323
447
 
324
448
  ### Added
449
+
325
450
  - **Lending:** `avgOverride` for Morpho's weekly average APY.
326
451
 
327
452
  ## [0.2.64] - 2026-08-24
328
453
 
329
454
  ### Added
455
+
330
456
  - **Lending:** fixed-price handling for yield tokens in yield value calculations.
331
457
 
332
458
  ## [0.2.63] - 2026-08-24
333
459
 
334
460
  ### Changed
461
+
335
462
  - **Lending:** APY change is measured over 1h (was 24h).
336
463
 
337
464
  ## [0.2.62] - 2026-08-21
338
465
 
339
466
  ### Added
467
+
340
468
  - **Lending:** market angle computation for market analysis.
341
469
 
342
470
  ### Changed
471
+
343
472
  - **Lending:** more precise live-rate decoding.
344
473
 
345
474
  ## [0.2.61] - 2026-08-20
346
475
 
347
476
  ### Added
477
+
348
478
  - **Lending:** `LendingMarketDetailTool`; shared market buttons and market reference
349
479
  resolution across lending tools.
350
480
 
351
481
  ### Removed
482
+
352
483
  - **Lending:** `supplySuggestions` module (replaced by market buttons).
353
484
 
354
485
  ## [0.2.60] - 2026-08-20
355
486
 
356
487
  ### Changed
488
+
357
489
  - **Lending:** reward conditions taken into account in APY and its display.
358
490
 
359
491
  ## [0.2.59] - 2026-08-19
360
492
 
361
493
  ### Changed
494
+
362
495
  - **Lending:** APY includes reward incentives; hourly APY samples kept; APR vs APY corrected
363
496
  for Aave and Comet (no double compounding); consistent number display.
364
497
 
365
498
  ## [0.2.58] - 2026-08-18
366
499
 
367
500
  ### Changed
501
+
368
502
  - **Lending:** faster chain support checks in lending tools.
369
503
 
370
504
  ## [0.2.57] - 2026-08-18
371
505
 
372
506
  ### Added
507
+
373
508
  - **Lending:** `lendingRatesBaseUrl` on `ApyEndpoints` / `LendingServiceConfig`.
374
509
 
375
510
  ## [0.2.56] - 2026-08-18
376
511
 
377
512
  ### Added
513
+
378
514
  - **Lending:** `convertSusdsShares` export.
379
515
 
380
516
  ## [0.2.55] - 2026-08-18
381
517
 
382
518
  ### Added
519
+
383
520
  - **Lending:** markets lend their real asset (not assumed USDC); Spark PSM3 cross-chain sUSDS
384
521
  (`spark-l2-susds`), Spark Vaults V2, Morpho vault naming, protocol labels, asset logos, market
385
522
  deep links, yield token pricing.
@@ -387,39 +524,47 @@ _No functional changes (republish)._
387
524
  chains not defined in core are synthesised from available RPC URLs.
388
525
 
389
526
  ### Changed
527
+
390
528
  - **Lending:** markets without a resolvable asset are reported unresolved (USDC fallback
391
529
  removed); supported chains are fetched dynamically.
392
530
 
393
531
  ## [0.2.54] - 2026-08-11
394
532
 
395
533
  ### Added
534
+
396
535
  - **Lending:** Compound v3 Comet and Spark savings vault support (two-step rate reads).
397
536
  - **Pool:** LP fee share via `poolFees.ts`; zero/missing APR is omitted rather than shown as
398
537
  0% (`positiveApr`, `toAprPercent`).
399
538
 
400
539
  ### Changed
540
+
401
541
  - **Chains/RPC:** RPC goes through a public client with fallback transport; endpoint resolution
402
542
  moved into the chain registry; new `BaseError`.
403
543
 
404
544
  ### Deprecated
545
+
405
546
  - **Chains/RPC:** raw JSON-RPC helpers.
406
547
 
407
548
  ## [0.2.53] - 2026-08-07
408
549
 
409
550
  ### Changed
551
+
410
552
  - **Pool:** clearer pool analysis instructions in `TopPoolsTool`.
411
553
 
412
554
  ## [0.2.52] - 2026-08-05
413
555
 
414
556
  ### Changed
557
+
415
558
  - **Lending:** share-based protocol conversion logic.
416
559
 
417
560
  ## [0.2.50] - 2026-08-04
418
561
 
419
562
  ### Added
563
+
420
564
  - **Lending:** yield token valuation for share-based protocols.
421
565
 
422
566
  ### Changed
567
+
423
568
  - **Wallet:** DeFi position tool descriptions.
424
569
 
425
570
  ## [0.2.49] - 2026-07-31
@@ -427,99 +572,118 @@ _No functional changes (republish)._
427
572
  Lending lands.
428
573
 
429
574
  ### Added
575
+
430
576
  - **Lending:** `LendingMarketsTool` (USDC markets with APY and supply), `WalletLendingPositionsTool`,
431
577
  `OpenSupplyFormTool` (`open-supply-usdc-form`) with balance validation, protocol resolution and
432
578
  market links.
433
579
  - **NFT:** `SendNftTool` picker mode with gallery selection.
434
580
 
435
581
  ### Removed
582
+
436
583
  - **Wallet:** `WalletDefiSummaryTool`.
437
584
 
438
585
  ## [0.2.48] - 2026-07-30
439
586
 
440
587
  ### Changed
588
+
441
589
  - **Core:** license key validation in agent configuration.
442
590
 
443
591
  ## [0.2.47] - 2026-07-27
444
592
 
445
593
  ### Added
594
+
446
595
  - **Wallet:** spendable USD value on wallet action forms.
447
596
 
448
597
  ## [0.2.46] - 2026-07-27
449
598
 
450
599
  ### Added
600
+
451
601
  - **Wallet:** native coin symbol for form labels.
452
602
 
453
603
  ## [0.2.45] - 2026-07-24
454
604
 
455
605
  ### Changed
606
+
456
607
  - **x402:** client supports both protocol versions and shows ERC-20 metadata in payment details.
457
608
  - **Core:** license key handling supports `SECRET_KEY_HASH`.
458
609
 
459
610
  ## [0.2.44] - 2026-07-22
460
611
 
461
612
  ### ⚠️ Breaking
613
+
462
614
  - **Core:** `noSuggestions` removed from tools and related interfaces.
463
615
  - **Wallet:** `wallet-action-app` subagent removed; redirect-only actions use `NoFormTool`.
464
616
  - **NFT:** NFT website link removed from `SendNftTool` props.
465
617
 
466
618
  ### Added
619
+
467
620
  - **Core:** LLM config accepts a direct API key (proxy optional).
468
621
  - **NFT:** NFT collections retrieval, images resolved from on-chain tokenURIs, NFT gallery props,
469
622
  sidecar lifting in `BaseTool`.
470
623
  - **Wallet:** human-readable chain name on `WalletActionProps`.
471
624
 
472
625
  ### Fixed
626
+
473
627
  - **Wallet:** token balances include spam/unverified contracts.
474
628
 
475
629
  ## [0.2.43] - 2026-07-09
476
630
 
477
631
  ### Added
632
+
478
633
  - **Core:** `thinkingBudget` option for Gemini reasoning tokens.
479
634
 
480
635
  ### Fixed
636
+
481
637
  - **Pool:** `PreviewAddLiquidityTool` prefers GoPlus audit data for token symbols.
482
638
 
483
639
  ## [0.2.42] - 2026-07-01
484
640
 
485
641
  ### Added
642
+
486
643
  - **Core:** `maxOutputTokens` option on `askJson`.
487
644
 
488
645
  ## [0.2.41] - 2026-06-30
489
646
 
490
647
  ### Added
648
+
491
649
  - **Core:** ambient request signal cancels tool execution; per-call token cap for LLM requests;
492
650
  abort handling for direct tool runs.
493
651
 
494
652
  ## [0.2.40] - 2026-06-29
495
653
 
496
654
  ### Added
655
+
497
656
  - **Core:** `AgentCore.runTool()` for direct tool execution (with `signal`), `Subagent.ownsTool()`.
498
657
  - **Token:** chain-agnostic research fallback in `TokenInfoTool` for unsupported chains.
499
658
 
500
659
  ## [0.2.39] - 2026-06-26
501
660
 
502
661
  ### Fixed
662
+
503
663
  - **Token:** Pantograph API base URL points to the new production endpoint.
504
664
 
505
665
  ## [0.2.38] - 2026-06-26
506
666
 
507
667
  ### Fixed
668
+
508
669
  - **Swap/Buy:** `SwapTokenTool` slippage set to 1 (was `auto`).
509
670
 
510
671
  ## [0.2.37] - 2026-06-22
511
672
 
512
673
  ### Added
674
+
513
675
  - **x402:** generic pay-per-call support — 402 responses from any `ApiClient` call are signed and
514
676
  paid transparently (`X402Client`).
515
677
  - **Chains/RPC:** more EVM chains in query rewriting and routing.
516
678
 
517
679
  ### Changed
680
+
518
681
  - **Core:** identity and off-topic guards; restricted subjects never route to subagents.
519
682
 
520
683
  ## [0.2.36] - 2026-06-16
521
684
 
522
685
  ### Changed
686
+
523
687
  - **NFC:** buy links resolve to country-specific marketplaces.
524
688
  - **Pool:** chain validation via `gatePoolChain` / `resolvePoolChain`.
525
689
  - **Core:** brand mentions are linkified deterministically (Amazon links survive dropped markdown).
@@ -528,65 +692,78 @@ Lending lands.
528
692
  ## [0.2.35] - 2026-06-15
529
693
 
530
694
  ### Added
695
+
531
696
  - **Chains/RPC:** Gnosis, HyperEVM, Mantle and Monad support.
532
697
  - **Pool:** `pool-subgraph` deployment in routing; localized add-liquidity suggestion buttons.
533
698
  - **Core:** `supportedLabel` for localized unsupported-chain replies.
534
699
 
535
700
  ### Changed
701
+
536
702
  - **Token:** Pantograph endpoints moved to `/token-list/all`.
537
703
 
538
704
  ### Removed
705
+
539
706
  - **Token:** buy button parameters from `TrendingTokensTool`.
540
707
 
541
708
  ## [0.2.34] - 2026-06-12
542
709
 
543
710
  ### Changed
711
+
544
712
  - **Pool:** liquidity prompts include the chain.
545
713
 
546
714
  ## [0.2.33] - 2026-06-12
547
715
 
548
716
  ### Removed
717
+
549
718
  - **Token:** buy button parameters from `TokenInfoTool`.
550
719
 
551
720
  ## [0.2.32] - 2026-06-12
552
721
 
553
722
  ### Added
723
+
554
724
  - **NFC:** NFC agent with `nfc-info` and `nfc-buy-link` tools (localized Amazon storefronts).
555
725
 
556
726
  ## [0.2.31] - 2026-06-11
557
727
 
558
728
  ### Added
729
+
559
730
  - **Pool:** add-liquidity suggestion buttons in `PoolAgent`, `OpenAddLiquidityFormTool`,
560
731
  `PoolSearchTool`, `TopPoolsTool`.
561
732
 
562
733
  ## [0.2.30] - 2026-06-11
563
734
 
564
735
  ### Changed
736
+
565
737
  - **Core:** query rewriting keeps intent when the user picks from an offered list.
566
738
  - **Website trust:** ecosystem context, affiliated-domain filtering and verdict presentation.
567
739
 
568
740
  ## [0.2.29] - 2026-06-10
569
741
 
570
742
  ### Changed
743
+
571
744
  - **Website trust:** `currentSite` handling and new `officialUrl`.
572
745
 
573
746
  ## [0.2.28] - 2026-06-10
574
747
 
575
748
  ### ⚠️ Breaking
749
+
576
750
  - **Website trust:** `WebsiteTrustKeyringAgent` replaces `WebsiteTrustAgent` (types updated).
577
751
 
578
752
  ### Changed
753
+
579
754
  - **Core:** plain-text reply and list formatting rules in subagents and synthesizer.
580
755
 
581
756
  ## [0.2.27] - 2026-06-10
582
757
 
583
758
  ### Added
759
+
584
760
  - **Website trust:** `WebsiteTrustAgent` for standalone website trust and phishing analysis.
585
761
  - **Pool:** prices rounded to 8 significant digits (`roundToSignificant`).
586
762
 
587
763
  ## [0.2.26] - 2026-06-09
588
764
 
589
765
  ### Added
766
+
590
767
  - **Core:** cancellation of chat turns via `AbortSignal`; web sources cited in tool replies.
591
768
  - **Pool:** CoinPool price-range suggestions in `OpenAddLiquidityFormTool`, price ranges accepted
592
769
  in either orientation, `ManageLiquidityRedirectTool`, clickable Uniswap links, AI fallback for
@@ -598,20 +775,24 @@ Lending lands.
598
775
  ## [0.2.25] - 2026-06-05
599
776
 
600
777
  ### Added
778
+
601
779
  - **Wallet:** block-explorer URLs for transactions; balance queries span all supported chains
602
780
  when none is named.
603
781
 
604
782
  ### Removed
783
+
605
784
  - **Wallet:** `WalletNetWorthTool`.
606
785
 
607
786
  ## [0.2.24] - 2026-06-04
608
787
 
609
788
  ### Fixed
789
+
610
790
  - **Build/RN:** missing `AbortSignal` methods and async symbols polyfilled for React Native.
611
791
 
612
792
  ## [0.2.23] - 2026-06-04
613
793
 
614
794
  ### Added
795
+
615
796
  - **Build/RN:** `web-streams-polyfill` dependency and React Native polyfills.
616
797
 
617
798
  ## [0.2.22] - 2026-06-04
@@ -621,107 +802,129 @@ _No functional changes (republish)._
621
802
  ## [0.2.21] - 2026-06-04
622
803
 
623
804
  ### ⚠️ Breaking
805
+
624
806
  - **Build/RN:** `react-native` entry is now `dist/index.native.js`.
625
807
 
626
808
  ### Added
809
+
627
810
  - **Chains/RPC:** `getActiveChains()`; `WalletTokenBalancesTool` covers all supported chains when
628
811
  none is named.
629
812
 
630
813
  ## [0.2.20] - 2026-06-04
631
814
 
632
815
  ### Fixed
816
+
633
817
  - **Swap/Buy:** `BuyTokenTool` no longer invents a payment token or amount.
634
818
 
635
819
  ## [0.2.19] - 2026-06-03
636
820
 
637
821
  ### Changed
822
+
638
823
  - **Pool:** "pool" and "pair" treated as equivalent for add-liquidity.
639
824
 
640
825
  ## [0.2.18] - 2026-06-03
641
826
 
642
827
  ### Changed
828
+
643
829
  - **NFT:** error message handling of website links in NFT tools.
644
830
 
645
831
  ## [0.2.17] - 2026-06-03
646
832
 
647
833
  ### Added
834
+
648
835
  - **NFT:** NFT data tools using live web data.
649
836
  - **Core:** capabilities summary and identity guard; assistant questions answered directly.
650
837
  - **Pool:** how-to queries for adding liquidity.
651
838
 
652
839
  ### Fixed
840
+
653
841
  - Production base URLs for the Gemini proxy and other services.
654
842
 
655
843
  ## [0.2.16] - 2026-06-03
656
844
 
657
845
  ### Changed
846
+
658
847
  - **Core:** knowledge base search can bypass `minScore`.
659
848
 
660
849
  ## [0.2.15] - 2026-06-02
661
850
 
662
851
  ### Changed
852
+
663
853
  - **Pool:** CoinPool integration uses `/pair/v2`; deprecated keyring pool API dropped.
664
854
 
665
855
  ## [0.2.14] - 2026-06-02
666
856
 
667
857
  ### Added
858
+
668
859
  - **Core:** in-flight turn management in `AgentCore`.
669
860
 
670
861
  ### Fixed
862
+
671
863
  - **Wallet:** USD values truncated (not rounded) in `WalletTokenBalancesTool`.
672
864
 
673
865
  ## [0.2.13] - 2026-06-02
674
866
 
675
867
  ### Changed
868
+
676
869
  - **Core:** intent classification matches against multiple FAQ questions.
677
870
 
678
871
  ## [0.2.12] - 2026-06-02
679
872
 
680
873
  ### Added
874
+
681
875
  - **Pool:** `SubgraphAddPoolTool`, `PoolFallbackAiTool`, CoinPool price-range candidates in
682
876
  subgraph tools, yield and earnings projections.
683
877
  - **Chains/RPC:** more chain aliases.
684
878
 
685
879
  ### Changed
880
+
686
881
  - **Swap/Buy:** precise amount and decimal handling; deBridge retries transient errors.
687
882
  - **Core:** supported chains shown by name only.
688
883
 
689
884
  ## [0.2.11] - 2026-06-01
690
885
 
691
886
  ### Added
887
+
692
888
  - **Pool:** AI fallback in `PoolSubgraphAgent` for broad DeFi questions.
693
889
 
694
890
  ## [0.2.10] - 2026-06-01
695
891
 
696
892
  ### Changed
893
+
697
894
  - **Wallet:** token amount validation ensures gas coverage.
698
895
 
699
896
  ## [0.2.9] - 2026-06-01
700
897
 
701
898
  ### Changed
899
+
702
900
  - **Core:** more accurate amount parsing; action button prompts capitalised.
703
901
 
704
902
  ## [0.2.8] - 2026-06-01
705
903
 
706
904
  ### Changed
905
+
707
906
  - **Core:** axios-based `ApiClient` for all services; `chainResolver` everywhere; error messages
708
907
  name the chain.
709
908
 
710
909
  ## [0.2.7] - 2026-05-29
711
910
 
712
911
  ### ⚠️ Breaking
912
+
713
913
  - **Wallet:** `WrapNativeTool` and `UnwrapNativeTool` removed.
714
914
 
715
915
  ### Changed
916
+
716
917
  - **NFT:** NFT sending moved to the `open-send-nft-form` flow.
717
918
  - **Wallet:** wallet tools use `requireUserChain`.
718
919
 
719
920
  ### Fixed
921
+
720
922
  - **Token:** Pantograph top-gainers requests retry.
721
923
 
722
924
  ## [0.2.6] - 2026-05-27
723
925
 
724
926
  ### Changed
927
+
725
928
  - **Core:** multi-language handling in router and subagents.
726
929
 
727
930
  ## [0.2.5] - 2026-05-27
@@ -731,16 +934,19 @@ _No functional changes (republish)._
731
934
  ## [0.2.4] - 2026-05-27
732
935
 
733
936
  ### Added
937
+
734
938
  - **Token:** buy button and prompt templates in `TrendingTokensTool`.
735
939
 
736
940
  ## [0.2.3] - 2026-05-27
737
941
 
738
942
  ### Added
943
+
739
944
  - **Build/RN:** `zod` dependency.
740
945
 
741
946
  ## [0.2.2] - 2026-05-27
742
947
 
743
948
  ### Added
949
+
744
950
  - **Core:** license key validation in `AgentCore`.
745
951
 
746
952
  ## [0.2.1] - 2026-05-27
@@ -748,6 +954,7 @@ _No functional changes (republish)._
748
954
  Wallet actions land.
749
955
 
750
956
  ### Added
957
+
751
958
  - **Wallet:** wallet action tools — `BuyTokenTool`, `SwapTokenTool`, `SendNativeTool`,
752
959
  `SendTokenTool`, approve — with plain / percent / USD / "max" amounts, spendable-balance and
753
960
  gas reserve checks, chain mismatch prompts and action buttons.
@@ -762,6 +969,7 @@ Wallet actions land.
762
969
  - **Build/RN:** `scripts/release.sh`.
763
970
 
764
971
  ### Removed
972
+
765
973
  - Moralis and Solana Cortex tools (replaced by Gemini Search AI); `TopLosersTool`.
766
974
 
767
975
  ## [0.1.1] - 2026-05-18
@@ -769,6 +977,7 @@ Wallet actions land.
769
977
  Initial release.
770
978
 
771
979
  ### Added
980
+
772
981
  - **Core:** `AgentCore` with Router + domain subagents, query rewriter, synthesizer,
773
982
  conversation history with storage abstraction, Upstash-backed knowledge base, suggested
774
983
  follow-up prompts, Gemini provider.