@blockrun/llm 3.14.1 → 3.14.3
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 +183 -183
- package/dist/index.cjs +55 -55
- package/dist/index.d.cts +61 -61
- package/dist/index.d.ts +61 -61
- package/dist/index.js +55 -55
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4483,7 +4483,7 @@ function getCostSummary() {
|
|
|
4483
4483
|
}
|
|
4484
4484
|
|
|
4485
4485
|
// src/version.ts
|
|
4486
|
-
var SDK_VERSION = "3.14.
|
|
4486
|
+
var SDK_VERSION = "3.14.3";
|
|
4487
4487
|
var USER_AGENT = `blockrun-ts/${SDK_VERSION}`;
|
|
4488
4488
|
|
|
4489
4489
|
// src/client.ts
|
|
@@ -5593,7 +5593,7 @@ var LLMClient = class _LLMClient {
|
|
|
5593
5593
|
}
|
|
5594
5594
|
/**
|
|
5595
5595
|
* Neural web search via Exa. Returns semantically relevant URLs and metadata.
|
|
5596
|
-
* Understands meaning, not just keywords.
|
|
5596
|
+
* Understands meaning, not just keywords.
|
|
5597
5597
|
*
|
|
5598
5598
|
* @param query - Natural language search query
|
|
5599
5599
|
* @param options - Optional filters (numResults, category, date range, domains)
|
|
@@ -5611,7 +5611,7 @@ var LLMClient = class _LLMClient {
|
|
|
5611
5611
|
}
|
|
5612
5612
|
/**
|
|
5613
5613
|
* Ask a question and get a cited, synthesized answer grounded in real web sources.
|
|
5614
|
-
* No hallucinations — every claim is backed by a citation.
|
|
5614
|
+
* No hallucinations — every claim is backed by a citation.
|
|
5615
5615
|
*
|
|
5616
5616
|
* @param query - The question to answer
|
|
5617
5617
|
*/
|
|
@@ -5620,7 +5620,7 @@ var LLMClient = class _LLMClient {
|
|
|
5620
5620
|
return data.data;
|
|
5621
5621
|
}
|
|
5622
5622
|
/**
|
|
5623
|
-
* Fetch full Markdown text content from a list of URLs.
|
|
5623
|
+
* Fetch full Markdown text content from a list of URLs. Billed per URL.
|
|
5624
5624
|
* Returns clean text ready to feed into an LLM context window.
|
|
5625
5625
|
*
|
|
5626
5626
|
* @param urls - Array of URLs to fetch (up to 100)
|
|
@@ -5630,7 +5630,7 @@ var LLMClient = class _LLMClient {
|
|
|
5630
5630
|
return data.data;
|
|
5631
5631
|
}
|
|
5632
5632
|
/**
|
|
5633
|
-
* Find pages semantically similar to a given URL.
|
|
5633
|
+
* Find pages semantically similar to a given URL.
|
|
5634
5634
|
* Useful for discovering competitors, alternatives, and related resources.
|
|
5635
5635
|
*
|
|
5636
5636
|
* @param url - Reference URL
|
|
@@ -5727,7 +5727,7 @@ var LLMClient = class _LLMClient {
|
|
|
5727
5727
|
* Query Predexon prediction market data (GET endpoints).
|
|
5728
5728
|
*
|
|
5729
5729
|
* Access real-time data from Polymarket, Kalshi, dFlow, and Binance Futures.
|
|
5730
|
-
* Powered by Predexon.
|
|
5730
|
+
* Powered by Predexon. Billed per request.
|
|
5731
5731
|
*
|
|
5732
5732
|
* @param path - Endpoint path, e.g. "polymarket/events", "kalshi/markets/12345"
|
|
5733
5733
|
* @param params - Query parameters passed to the endpoint
|
|
@@ -5744,7 +5744,7 @@ var LLMClient = class _LLMClient {
|
|
|
5744
5744
|
* Structured query for Predexon prediction market data (POST endpoints).
|
|
5745
5745
|
*
|
|
5746
5746
|
* For endpoints that require a JSON body, e.g. bulk wallet identity lookup.
|
|
5747
|
-
* Tier 1
|
|
5747
|
+
* Tier 1 =, Tier 2 =
|
|
5748
5748
|
*
|
|
5749
5749
|
* @param path - Endpoint path, e.g. "polymarket/wallet/identities"
|
|
5750
5750
|
* @param query - JSON body for the structured query
|
|
@@ -5793,16 +5793,16 @@ var LLMClient = class _LLMClient {
|
|
|
5793
5793
|
);
|
|
5794
5794
|
}
|
|
5795
5795
|
/** Polymarket markets with cursor-based keyset pagination (use pagination_key).
|
|
5796
|
-
* Tier 1
|
|
5796
|
+
* Tier 1. */
|
|
5797
5797
|
async pmPolymarketMarketsKeyset(params) {
|
|
5798
5798
|
return this.pm("polymarket/markets/keyset", params);
|
|
5799
5799
|
}
|
|
5800
5800
|
/** Polymarket events with cursor-based keyset pagination (use pagination_key).
|
|
5801
|
-
* Tier 1
|
|
5801
|
+
* Tier 1. */
|
|
5802
5802
|
async pmPolymarketEventsKeyset(params) {
|
|
5803
5803
|
return this.pm("polymarket/events/keyset", params);
|
|
5804
5804
|
}
|
|
5805
|
-
/** List available sports categories. Tier 1
|
|
5805
|
+
/** List available sports categories. Tier 1.
|
|
5806
5806
|
*
|
|
5807
5807
|
* NOTE: upstream returns 500 for every `sports/*` path as of 2026-08-04.
|
|
5808
5808
|
* The route still resolves, so this works again the moment Predexon restores
|
|
@@ -5811,23 +5811,23 @@ var LLMClient = class _LLMClient {
|
|
|
5811
5811
|
return this.pm("sports/categories");
|
|
5812
5812
|
}
|
|
5813
5813
|
/** List sports markets grouped by game. Filter with league, sport_type,
|
|
5814
|
-
* status, venue. Tier 1
|
|
5814
|
+
* status, venue. Tier 1.
|
|
5815
5815
|
*
|
|
5816
5816
|
* NOTE: upstream returns 500 for every `sports/*` path as of 2026-08-04. */
|
|
5817
5817
|
async pmSportsMarkets(params) {
|
|
5818
5818
|
return this.pm("sports/markets", params);
|
|
5819
5819
|
}
|
|
5820
5820
|
/** Fetch identity + profile metadata for one wallet (ENS, Twitter, portfolio,
|
|
5821
|
-
* etc.). Tier 2
|
|
5821
|
+
* etc.). Tier 2. */
|
|
5822
5822
|
async pmWalletIdentity(wallet) {
|
|
5823
5823
|
return this.pm(`polymarket/wallet/identity/${wallet}`);
|
|
5824
5824
|
}
|
|
5825
|
-
/** Bulk identity lookup for up to 200 wallet addresses (POST). Tier 2
|
|
5825
|
+
/** Bulk identity lookup for up to 200 wallet addresses (POST). Tier 2. */
|
|
5826
5826
|
async pmWalletIdentities(addresses) {
|
|
5827
5827
|
return this.pmQuery("polymarket/wallet/identities", { addresses });
|
|
5828
5828
|
}
|
|
5829
5829
|
/** Discover wallets connected to a seed address via on-chain transfers and
|
|
5830
|
-
* identity proofs. Tier 2
|
|
5830
|
+
* identity proofs. Tier 2. */
|
|
5831
5831
|
async pmWalletCluster(address) {
|
|
5832
5832
|
return this.pm(`polymarket/wallet/${address}/cluster`);
|
|
5833
5833
|
}
|
|
@@ -5836,8 +5836,8 @@ var LLMClient = class _LLMClient {
|
|
|
5836
5836
|
// ============================================================
|
|
5837
5837
|
/**
|
|
5838
5838
|
* Query DefiLlama DeFi data (GET passthrough). Powered by DefiLlama.
|
|
5839
|
-
*
|
|
5840
|
-
*
|
|
5839
|
+
* for protocols / protocol/{slug} / chains / yields;
|
|
5840
|
+
* for prices/{coins}.
|
|
5841
5841
|
*
|
|
5842
5842
|
* @param path - e.g. "protocols", "protocol/aave", "chains", "yields",
|
|
5843
5843
|
* "prices/coingecko:bitcoin,base:0x..."
|
|
@@ -5846,23 +5846,23 @@ var LLMClient = class _LLMClient {
|
|
|
5846
5846
|
async defi(path6, params) {
|
|
5847
5847
|
return this.getWithPaymentRaw(`/v1/defillama/${path6}`, params);
|
|
5848
5848
|
}
|
|
5849
|
-
/** All DeFi protocols with TVL
|
|
5849
|
+
/** All DeFi protocols with TVL. */
|
|
5850
5850
|
async defiProtocols() {
|
|
5851
5851
|
return this.defi("protocols");
|
|
5852
5852
|
}
|
|
5853
|
-
/** Single protocol details + historical TVL
|
|
5853
|
+
/** Single protocol details + historical TVL. */
|
|
5854
5854
|
async defiProtocol(slug) {
|
|
5855
5855
|
return this.defi(`protocol/${slug}`);
|
|
5856
5856
|
}
|
|
5857
|
-
/** Current TVL of every chain
|
|
5857
|
+
/** Current TVL of every chain. */
|
|
5858
5858
|
async defiChains() {
|
|
5859
5859
|
return this.defi("chains");
|
|
5860
5860
|
}
|
|
5861
|
-
/** Yield pools with APY/TVL
|
|
5861
|
+
/** Yield pools with APY/TVL. */
|
|
5862
5862
|
async defiYields(params) {
|
|
5863
5863
|
return this.defi("yields", params);
|
|
5864
5864
|
}
|
|
5865
|
-
/** Token price lookup
|
|
5865
|
+
/** Token price lookup. Coins like "coingecko:bitcoin" or "{chain}:{address}". */
|
|
5866
5866
|
async defiPrices(coins) {
|
|
5867
5867
|
const joined = Array.isArray(coins) ? coins.join(",") : coins;
|
|
5868
5868
|
return this.defi(`prices/${joined}`);
|
|
@@ -5922,26 +5922,26 @@ var LLMClient = class _LLMClient {
|
|
|
5922
5922
|
/**
|
|
5923
5923
|
* Call the Modal sandbox compute API (POST passthrough).
|
|
5924
5924
|
*
|
|
5925
|
-
* @param path - "sandbox/create" (
|
|
5926
|
-
* "sandbox/status", "sandbox/terminate"
|
|
5925
|
+
* @param path - "sandbox/create" (CPU / GPU tiers), "sandbox/exec",
|
|
5926
|
+
* "sandbox/status", "sandbox/terminate"
|
|
5927
5927
|
* @param body - JSON body for the endpoint
|
|
5928
5928
|
*/
|
|
5929
5929
|
async modal(path6, body) {
|
|
5930
5930
|
return this.requestWithPaymentRaw(`/v1/modal/${path6}`, body ?? {});
|
|
5931
5931
|
}
|
|
5932
|
-
/** Create a sandboxed compute environment (
|
|
5932
|
+
/** Create a sandboxed compute environment (CPU / GPU tiers). */
|
|
5933
5933
|
async modalSandboxCreate(body) {
|
|
5934
5934
|
return this.modal("sandbox/create", body);
|
|
5935
5935
|
}
|
|
5936
|
-
/** Execute a command in a sandbox; returns stdout/stderr
|
|
5936
|
+
/** Execute a command in a sandbox; returns stdout/stderr. */
|
|
5937
5937
|
async modalSandboxExec(sandboxId, command, extra) {
|
|
5938
5938
|
return this.modal("sandbox/exec", { sandbox_id: sandboxId, command, ...extra });
|
|
5939
5939
|
}
|
|
5940
|
-
/** Check a sandbox's status
|
|
5940
|
+
/** Check a sandbox's status. */
|
|
5941
5941
|
async modalSandboxStatus(sandboxId) {
|
|
5942
5942
|
return this.modal("sandbox/status", { sandbox_id: sandboxId });
|
|
5943
5943
|
}
|
|
5944
|
-
/** Terminate a sandbox
|
|
5944
|
+
/** Terminate a sandbox. */
|
|
5945
5945
|
async modalSandboxTerminate(sandboxId) {
|
|
5946
5946
|
return this.modal("sandbox/terminate", { sandbox_id: sandboxId });
|
|
5947
5947
|
}
|
|
@@ -6525,7 +6525,7 @@ var SpeechClient = class {
|
|
|
6525
6525
|
* Synthesize speech from text (OpenAI-compatible TTS).
|
|
6526
6526
|
*
|
|
6527
6527
|
* Price scales with character count: (chars / 1000) x model rate,
|
|
6528
|
-
* minimum
|
|
6528
|
+
* minimum Synthesis is synchronous.
|
|
6529
6529
|
*
|
|
6530
6530
|
* @param input - Text to synthesize. Per-model character caps apply
|
|
6531
6531
|
* (flash/turbo 40k, multilingual-v2 10k, v3 5k).
|
|
@@ -6553,7 +6553,7 @@ var SpeechClient = class {
|
|
|
6553
6553
|
/**
|
|
6554
6554
|
* Generate a cinematic sound effect from a text prompt.
|
|
6555
6555
|
*
|
|
6556
|
-
|
|
6556
|
+
*, up to 22 seconds of audio.
|
|
6557
6557
|
*
|
|
6558
6558
|
* @param text - Sound effect description (max 1000 chars).
|
|
6559
6559
|
* E.g. 'rain on a tin roof', 'sci-fi door whoosh'
|
|
@@ -7067,7 +7067,7 @@ var VoiceClient = class {
|
|
|
7067
7067
|
/**
|
|
7068
7068
|
* Initiate an AI-powered outbound phone call.
|
|
7069
7069
|
*
|
|
7070
|
-
* Pricing:
|
|
7070
|
+
* Pricing: per call. Returns immediately once the call is queued —
|
|
7071
7071
|
* poll getStatus() for transcript and recording.
|
|
7072
7072
|
*
|
|
7073
7073
|
* @example
|
|
@@ -7309,7 +7309,7 @@ var PhoneClient = class {
|
|
|
7309
7309
|
}
|
|
7310
7310
|
// ─── Lookup ────────────────────────────────────────────────────────────
|
|
7311
7311
|
/**
|
|
7312
|
-
* Carrier + line-type lookup.
|
|
7312
|
+
* Carrier + line-type lookup.
|
|
7313
7313
|
*
|
|
7314
7314
|
* @param phoneNumber E.164 number (e.g. "+14155552671").
|
|
7315
7315
|
*/
|
|
@@ -7318,7 +7318,7 @@ var PhoneClient = class {
|
|
|
7318
7318
|
return this.request("lookup", { phoneNumber: num });
|
|
7319
7319
|
}
|
|
7320
7320
|
/**
|
|
7321
|
-
* Lookup + fraud signals (SIM swap, call forwarding).
|
|
7321
|
+
* Lookup + fraud signals (SIM swap, call forwarding).
|
|
7322
7322
|
*
|
|
7323
7323
|
* @param phoneNumber E.164 number.
|
|
7324
7324
|
*/
|
|
@@ -7328,7 +7328,7 @@ var PhoneClient = class {
|
|
|
7328
7328
|
}
|
|
7329
7329
|
// ─── Provisioning ──────────────────────────────────────────────────────
|
|
7330
7330
|
/**
|
|
7331
|
-
* Provision a dedicated phone number for 30 days.
|
|
7331
|
+
* Provision a dedicated phone number for 30 days.
|
|
7332
7332
|
*
|
|
7333
7333
|
* Payment is settled only after Twilio confirms the purchase, so failed
|
|
7334
7334
|
* buys never charge your wallet.
|
|
@@ -7355,7 +7355,7 @@ var PhoneClient = class {
|
|
|
7355
7355
|
return data;
|
|
7356
7356
|
}
|
|
7357
7357
|
/**
|
|
7358
|
-
* Extend an existing provisioned number by 30 days.
|
|
7358
|
+
* Extend an existing provisioned number by 30 days.
|
|
7359
7359
|
*
|
|
7360
7360
|
* @throws {APIError} 403 when the wallet doesn't own the number or it has expired.
|
|
7361
7361
|
*/
|
|
@@ -7366,7 +7366,7 @@ var PhoneClient = class {
|
|
|
7366
7366
|
});
|
|
7367
7367
|
return data;
|
|
7368
7368
|
}
|
|
7369
|
-
/** List the wallet's active phone numbers.
|
|
7369
|
+
/** List the wallet's active phone numbers. */
|
|
7370
7370
|
async listNumbers() {
|
|
7371
7371
|
const data = await this.request("numbers/list", {});
|
|
7372
7372
|
return data;
|
|
@@ -7523,7 +7523,7 @@ var PortraitClient = class {
|
|
|
7523
7523
|
return { totalUsd: this.sessionTotalUsd, calls: this.sessionCalls };
|
|
7524
7524
|
}
|
|
7525
7525
|
/**
|
|
7526
|
-
* Enroll a Virtual Portrait from a face image URL.
|
|
7526
|
+
* Enroll a Virtual Portrait from a face image URL. (promo).
|
|
7527
7527
|
*
|
|
7528
7528
|
* Payment is settled only after Token360 confirms the enrollment, so failed
|
|
7529
7529
|
* enrollments never charge your wallet.
|
|
@@ -8284,7 +8284,7 @@ var RpcClient = class {
|
|
|
8284
8284
|
this.timeout = options.timeout || DEFAULT_TIMEOUT12;
|
|
8285
8285
|
}
|
|
8286
8286
|
/**
|
|
8287
|
-
* Make a single JSON-RPC 2.0 call. Flat
|
|
8287
|
+
* Make a single JSON-RPC 2.0 call. Flat per-call rate.
|
|
8288
8288
|
*
|
|
8289
8289
|
* @param network - Chain name (e.g. "ethereum", "base", "solana") or a
|
|
8290
8290
|
* common alias ("eth", "sol", "matic", ...). See
|
|
@@ -8307,7 +8307,7 @@ var RpcClient = class {
|
|
|
8307
8307
|
return this.toResponse(data, headers);
|
|
8308
8308
|
}
|
|
8309
8309
|
/**
|
|
8310
|
-
* Make a JSON-RPC 2.0 batch call. Priced per element (
|
|
8310
|
+
* Make a JSON-RPC 2.0 batch call. Priced per element (rate x N).
|
|
8311
8311
|
*
|
|
8312
8312
|
* @param network - Chain name or alias (see {@link call}).
|
|
8313
8313
|
* @param requests - Requests, each with a `method` and optional
|
|
@@ -9685,7 +9685,7 @@ var SolanaLLMClient = class {
|
|
|
9685
9685
|
return this.requestWithPaymentRaw(`/v1/exa/${path6}`, body);
|
|
9686
9686
|
}
|
|
9687
9687
|
/**
|
|
9688
|
-
* Neural and keyword web search via Exa (Solana payment
|
|
9688
|
+
* Neural and keyword web search via Exa (Solana payment).
|
|
9689
9689
|
*
|
|
9690
9690
|
* @example
|
|
9691
9691
|
* const results = await client.exaSearch("latest AI papers", { numResults: 5 });
|
|
@@ -9694,7 +9694,7 @@ var SolanaLLMClient = class {
|
|
|
9694
9694
|
return this.requestWithPaymentRaw("/v1/exa/search", { query, ...options });
|
|
9695
9695
|
}
|
|
9696
9696
|
/**
|
|
9697
|
-
* Find pages semantically similar to a given URL via Exa (Solana payment
|
|
9697
|
+
* Find pages semantically similar to a given URL via Exa (Solana payment).
|
|
9698
9698
|
*
|
|
9699
9699
|
* @example
|
|
9700
9700
|
* const results = await client.exaFindSimilar("https://openai.com/research/gpt-4", { numResults: 5 });
|
|
@@ -9703,7 +9703,7 @@ var SolanaLLMClient = class {
|
|
|
9703
9703
|
return this.requestWithPaymentRaw("/v1/exa/find-similar", { url, ...options });
|
|
9704
9704
|
}
|
|
9705
9705
|
/**
|
|
9706
|
-
* Extract full text content from URLs via Exa (Solana payment
|
|
9706
|
+
* Extract full text content from URLs via Exa (Solana payment).
|
|
9707
9707
|
*
|
|
9708
9708
|
* @example
|
|
9709
9709
|
* const data = await client.exaContents(["https://arxiv.org/abs/2303.08774"]);
|
|
@@ -9712,7 +9712,7 @@ var SolanaLLMClient = class {
|
|
|
9712
9712
|
return this.requestWithPaymentRaw("/v1/exa/contents", { urls, ...options });
|
|
9713
9713
|
}
|
|
9714
9714
|
/**
|
|
9715
|
-
* AI-generated answer grounded in live web search via Exa (Solana payment
|
|
9715
|
+
* AI-generated answer grounded in live web search via Exa (Solana payment).
|
|
9716
9716
|
*
|
|
9717
9717
|
* @example
|
|
9718
9718
|
* const answer = await client.exaAnswer("What is the current state of AI safety research?");
|
|
@@ -9725,8 +9725,8 @@ var SolanaLLMClient = class {
|
|
|
9725
9725
|
// ============================================================
|
|
9726
9726
|
/**
|
|
9727
9727
|
* Query DefiLlama DeFi data (GET passthrough). Powered by DefiLlama.
|
|
9728
|
-
*
|
|
9729
|
-
*
|
|
9728
|
+
* for protocols / protocol/{slug} / chains / yields;
|
|
9729
|
+
* for prices/{coins}.
|
|
9730
9730
|
*
|
|
9731
9731
|
* @param path - e.g. "protocols", "protocol/aave", "chains", "yields",
|
|
9732
9732
|
* "prices/coingecko:bitcoin,base:0x..."
|
|
@@ -9735,23 +9735,23 @@ var SolanaLLMClient = class {
|
|
|
9735
9735
|
async defi(path6, params) {
|
|
9736
9736
|
return this.getWithPaymentRaw(`/v1/defillama/${path6}`, params);
|
|
9737
9737
|
}
|
|
9738
|
-
/** All DeFi protocols with TVL
|
|
9738
|
+
/** All DeFi protocols with TVL. */
|
|
9739
9739
|
async defiProtocols() {
|
|
9740
9740
|
return this.defi("protocols");
|
|
9741
9741
|
}
|
|
9742
|
-
/** Single protocol details + historical TVL
|
|
9742
|
+
/** Single protocol details + historical TVL. */
|
|
9743
9743
|
async defiProtocol(slug) {
|
|
9744
9744
|
return this.defi(`protocol/${slug}`);
|
|
9745
9745
|
}
|
|
9746
|
-
/** Current TVL of every chain
|
|
9746
|
+
/** Current TVL of every chain. */
|
|
9747
9747
|
async defiChains() {
|
|
9748
9748
|
return this.defi("chains");
|
|
9749
9749
|
}
|
|
9750
|
-
/** Yield pools with APY/TVL
|
|
9750
|
+
/** Yield pools with APY/TVL. */
|
|
9751
9751
|
async defiYields(params) {
|
|
9752
9752
|
return this.defi("yields", params);
|
|
9753
9753
|
}
|
|
9754
|
-
/** Token price lookup
|
|
9754
|
+
/** Token price lookup. Coins like "coingecko:bitcoin" or "{chain}:{address}". */
|
|
9755
9755
|
async defiPrices(coins) {
|
|
9756
9756
|
const joined = Array.isArray(coins) ? coins.join(",") : coins;
|
|
9757
9757
|
return this.defi(`prices/${joined}`);
|
|
@@ -9811,26 +9811,26 @@ var SolanaLLMClient = class {
|
|
|
9811
9811
|
/**
|
|
9812
9812
|
* Call the Modal sandbox compute API (POST passthrough).
|
|
9813
9813
|
*
|
|
9814
|
-
* @param path - "sandbox/create" (
|
|
9815
|
-
* "sandbox/status", "sandbox/terminate"
|
|
9814
|
+
* @param path - "sandbox/create" (CPU / GPU tiers), "sandbox/exec",
|
|
9815
|
+
* "sandbox/status", "sandbox/terminate"
|
|
9816
9816
|
* @param body - JSON body for the endpoint
|
|
9817
9817
|
*/
|
|
9818
9818
|
async modal(path6, body) {
|
|
9819
9819
|
return this.requestWithPaymentRaw(`/v1/modal/${path6}`, body ?? {});
|
|
9820
9820
|
}
|
|
9821
|
-
/** Create a sandboxed compute environment (
|
|
9821
|
+
/** Create a sandboxed compute environment (CPU / GPU tiers). */
|
|
9822
9822
|
async modalSandboxCreate(body) {
|
|
9823
9823
|
return this.modal("sandbox/create", body);
|
|
9824
9824
|
}
|
|
9825
|
-
/** Execute a command in a sandbox; returns stdout/stderr
|
|
9825
|
+
/** Execute a command in a sandbox; returns stdout/stderr. */
|
|
9826
9826
|
async modalSandboxExec(sandboxId, command, extra) {
|
|
9827
9827
|
return this.modal("sandbox/exec", { sandbox_id: sandboxId, command, ...extra });
|
|
9828
9828
|
}
|
|
9829
|
-
/** Check a sandbox's status
|
|
9829
|
+
/** Check a sandbox's status. */
|
|
9830
9830
|
async modalSandboxStatus(sandboxId) {
|
|
9831
9831
|
return this.modal("sandbox/status", { sandbox_id: sandboxId });
|
|
9832
9832
|
}
|
|
9833
|
-
/** Terminate a sandbox
|
|
9833
|
+
/** Terminate a sandbox. */
|
|
9834
9834
|
async modalSandboxTerminate(sandboxId) {
|
|
9835
9835
|
return this.modal("sandbox/terminate", { sandbox_id: sandboxId });
|
|
9836
9836
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockrun/llm",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TypeScript SDK for BlockRun - every frontier model behind one OpenAI-compatible client. Pay with a BlockRun API key or per-call in USDC. Smart routing picks the cheapest capable model. No rate limits.",
|
|
6
6
|
"main": "dist/index.cjs",
|