keyring-agent-core 0.3.25 → 0.4.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/dist/index.d.ts +22 -11
- package/dist/index.js +87 -84
- package/dist/index.native.js +195 -192
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1593,7 +1593,7 @@ interface PredictionEventCardProps {
|
|
|
1593
1593
|
outcomes: PredictionOutcomeProps[];
|
|
1594
1594
|
/** Open markets in the event (more than shown on a `multi` card). */
|
|
1595
1595
|
openMarketCount: number;
|
|
1596
|
-
/** Submitted as the next user turn by the card's detail button;
|
|
1596
|
+
/** Submitted as the next user turn by the card's detail button; names the event by title, no identifier (the core remembers the card's slug). */
|
|
1597
1597
|
detailPrompt: string;
|
|
1598
1598
|
/** Localized detail-button label. Empty → the FE uses its own translation. */
|
|
1599
1599
|
detailLabel: string;
|
|
@@ -3185,7 +3185,8 @@ interface AgentResponse {
|
|
|
3185
3185
|
* User query
|
|
3186
3186
|
* → Router (picks 0..N domain subagents)
|
|
3187
3187
|
* → Subagent(s) (each runs its own ReAct loop over a narrow tool set, in parallel)
|
|
3188
|
-
* → Synthesizer (merges
|
|
3188
|
+
* → Synthesizer (merges answers when several subagents ran; a single
|
|
3189
|
+
* subagent's own answer is the final reply)
|
|
3189
3190
|
*
|
|
3190
3191
|
* Compared to a flat planner that sees every tool, this keeps per-call prompt
|
|
3191
3192
|
* size bounded regardless of how many tools are registered.
|
|
@@ -5432,6 +5433,9 @@ interface TokenScoreResponse {
|
|
|
5432
5433
|
updatedAt?: string | null;
|
|
5433
5434
|
metrics?: TokenScoreMetrics;
|
|
5434
5435
|
}
|
|
5436
|
+
type WalletTokenBalancesResponse = MoralisApiResponse<{
|
|
5437
|
+
result: TokenBalance[];
|
|
5438
|
+
}>;
|
|
5435
5439
|
declare class MoralisService {
|
|
5436
5440
|
private baseUrl;
|
|
5437
5441
|
private v1BaseUrl;
|
|
@@ -5456,9 +5460,9 @@ declare class MoralisService {
|
|
|
5456
5460
|
* filter — can pass `false` to skip the RPC entirely.
|
|
5457
5461
|
*/
|
|
5458
5462
|
convertYieldValues?: boolean;
|
|
5459
|
-
}): Promise<
|
|
5460
|
-
|
|
5461
|
-
|
|
5463
|
+
}): Promise<WalletTokenBalancesResponse>;
|
|
5464
|
+
/** The uncached read behind {@link getWalletTokenBalances}. */
|
|
5465
|
+
private fetchWalletTokenBalances;
|
|
5462
5466
|
/**
|
|
5463
5467
|
* Get metadata + price for a single token by contract address.
|
|
5464
5468
|
*/
|
|
@@ -5887,7 +5891,7 @@ declare class TokenInfoTool extends BaseTool {
|
|
|
5887
5891
|
research: string | null;
|
|
5888
5892
|
} | {
|
|
5889
5893
|
research: string | null;
|
|
5890
|
-
searchResults?:
|
|
5894
|
+
searchResults?: Record<string, unknown>[] | undefined;
|
|
5891
5895
|
_instructions: string;
|
|
5892
5896
|
chain: string;
|
|
5893
5897
|
userHoldsToken: boolean;
|
|
@@ -9946,9 +9950,11 @@ interface CreateTransportParameters<TType extends string = string> {
|
|
|
9946
9950
|
request: EIP1193RequestFn;
|
|
9947
9951
|
retryCount?: number;
|
|
9948
9952
|
retryDelay?: number;
|
|
9953
|
+
/** @see BuildRequestParameters.maxRetryAfterMs */
|
|
9954
|
+
maxRetryAfterMs?: number;
|
|
9949
9955
|
timeout?: number;
|
|
9950
9956
|
}
|
|
9951
|
-
declare function createTransport<TType extends string, TValue = unknown>({ key, name, type, request, retryCount, retryDelay, timeout }: CreateTransportParameters<TType>, value?: TValue): TransportInstance<TType, TValue>;
|
|
9957
|
+
declare function createTransport<TType extends string, TValue = unknown>({ key, name, type, request, retryCount, retryDelay, maxRetryAfterMs, timeout, }: CreateTransportParameters<TType>, value?: TValue): TransportInstance<TType, TValue>;
|
|
9952
9958
|
|
|
9953
9959
|
/** Normalized, `fetch`-like response. `data` is the parsed body (JSON when possible). */
|
|
9954
9960
|
interface ApiResponse<T = unknown> {
|
|
@@ -10032,6 +10038,11 @@ interface HttpTransportConfig {
|
|
|
10032
10038
|
retryCount?: number;
|
|
10033
10039
|
/** Base backoff in ms (default 150, doubling each attempt). */
|
|
10034
10040
|
retryDelay?: number;
|
|
10041
|
+
/**
|
|
10042
|
+
* Fail instead of waiting when the endpoint's `Retry-After` exceeds this (ms),
|
|
10043
|
+
* so a fallback can try its next endpoint. Default: always wait.
|
|
10044
|
+
*/
|
|
10045
|
+
maxRetryAfterMs?: number;
|
|
10035
10046
|
/** Per-request timeout in ms (default 10_000). */
|
|
10036
10047
|
timeout?: number;
|
|
10037
10048
|
}
|
|
@@ -11270,10 +11281,10 @@ declare class PredictionMarketsTool extends BaseTool {
|
|
|
11270
11281
|
* Tool: get-prediction-market-detail
|
|
11271
11282
|
*
|
|
11272
11283
|
* Everything about ONE event: every open option with its odds, the 24 h move,
|
|
11273
|
-
* volume, liquidity, deadline and resolution rules. The event is pinned by
|
|
11274
|
-
* `(prediction: <slug>)` hint
|
|
11275
|
-
*
|
|
11276
|
-
* cards to pick from rather than a guess.
|
|
11284
|
+
* volume, liquidity, deadline and resolution rules. The event is pinned by a
|
|
11285
|
+
* polymarket.com link, a `(prediction: <slug>)` hint, or the title of a card shown
|
|
11286
|
+
* this session (a Details tap), else a title search; an ambiguous title returns
|
|
11287
|
+
* the candidates as cards to pick from rather than a guess.
|
|
11277
11288
|
*/
|
|
11278
11289
|
declare class PredictionMarketDetailTool extends BaseTool {
|
|
11279
11290
|
name: string;
|