@ctxprotocol/sdk 0.14.0 → 0.15.0
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/README.md +2 -2
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Give your agent the live facts it's missing. Context is a pay-per-response data marketplace: your agent discovers tools at runtime, buys the data its question needs, and drops it straight into its context window — no API keys, no servers, no per-source integration work.
|
|
6
6
|
|
|
7
|
-
Context Protocol is **npm for AI capabilities**. Just as you install packages to add functionality to your code, use the Context SDK to give your Agent instant access to
|
|
7
|
+
Context Protocol is **npm for AI capabilities**. Just as you install packages to add functionality to your code, use the Context SDK to give your Agent instant access to premium data feeds and live tools: the market intelligence usually locked behind steep monthly or annual subscriptions, unbundled into pay-per-response, from crypto and on-chain analytics to gas oracles, weather, and search.
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@ctxprotocol/sdk)
|
|
10
10
|
[](https://opensource.org/licenses/MIT)
|
|
@@ -26,7 +26,7 @@ Grant batches open periodically — see [Developer Grants](https://docs.ctxproto
|
|
|
26
26
|
## Why use Context?
|
|
27
27
|
|
|
28
28
|
- **🔌 One Interface, Everything:** Stop integrating APIs one by one. Use a single SDK to access any tool in the marketplace.
|
|
29
|
-
- **🧠 Zero-Ops:** We're
|
|
29
|
+
- **🧠 Zero-Ops:** We're the gateway to premium data feeds usually locked behind steep subscriptions. We host the connections; you just send the JSON and get the result.
|
|
30
30
|
- **⚡️ Agentic Discovery:** Your Agent can search the marketplace at runtime to find tools it didn't know it needed.
|
|
31
31
|
- **💸 Dual-Surface Economics:** Use Query for pay-per-response intelligence or Execute for session-budgeted method calls.
|
|
32
32
|
|
package/dist/index.d.cts
CHANGED
|
@@ -213,6 +213,15 @@ interface HyperliquidAccountSummary {
|
|
|
213
213
|
interface HyperliquidContext {
|
|
214
214
|
/** The wallet address this context is for */
|
|
215
215
|
walletAddress: string;
|
|
216
|
+
/**
|
|
217
|
+
* The active wallet address for querying/signing.
|
|
218
|
+
* When multiple EOAs are linked, this is the single externally-owned account
|
|
219
|
+
* actually connected to Hyperliquid (determined by activity detection on the
|
|
220
|
+
* client). Contributors should prefer this over `walletAddress` when issuing
|
|
221
|
+
* Hyperliquid API calls, since `walletAddress` may be comma-joined across
|
|
222
|
+
* multiple linked wallets.
|
|
223
|
+
*/
|
|
224
|
+
activeWalletAddress?: string;
|
|
216
225
|
/** Perpetual positions */
|
|
217
226
|
perpPositions: HyperliquidPerpPosition[];
|
|
218
227
|
/** Open orders */
|
package/dist/index.d.ts
CHANGED
|
@@ -213,6 +213,15 @@ interface HyperliquidAccountSummary {
|
|
|
213
213
|
interface HyperliquidContext {
|
|
214
214
|
/** The wallet address this context is for */
|
|
215
215
|
walletAddress: string;
|
|
216
|
+
/**
|
|
217
|
+
* The active wallet address for querying/signing.
|
|
218
|
+
* When multiple EOAs are linked, this is the single externally-owned account
|
|
219
|
+
* actually connected to Hyperliquid (determined by activity detection on the
|
|
220
|
+
* client). Contributors should prefer this over `walletAddress` when issuing
|
|
221
|
+
* Hyperliquid API calls, since `walletAddress` may be comma-joined across
|
|
222
|
+
* multiple linked wallets.
|
|
223
|
+
*/
|
|
224
|
+
activeWalletAddress?: string;
|
|
216
225
|
/** Perpetual positions */
|
|
217
226
|
perpPositions: HyperliquidPerpPosition[];
|
|
218
227
|
/** Open orders */
|
package/package.json
CHANGED