tensorfeed
Advanced tools
+3
-3
@@ -1586,3 +1586,3 @@ /** | ||
| * `incident_count` and `mttr_minutes` per provider, use the premium | ||
| * `statusLeaderboard()` (1 credit). | ||
| * `statusLeaderboard()` (5 credits). | ||
| */ | ||
@@ -1744,3 +1744,3 @@ statusLeaderboardFree(options?: { | ||
| /** | ||
| * Cross-provider uptime leaderboard. Costs 1 credit. | ||
| * Cross-provider uptime leaderboard. Costs 5 credits. | ||
| * | ||
@@ -1828,3 +1828,3 @@ * Same minute-resolution counter source as the free `statusLeaderboardFree()` | ||
| * all models with pricing + tier + benchmark scores joined, | ||
| * recent news, agent traffic. Costs 1 credit. | ||
| * recent news, agent traffic. Costs 5 credits. | ||
| * | ||
@@ -1831,0 +1831,0 @@ * @throws Error if no token is set |
+4
-4
@@ -288,3 +288,3 @@ /** | ||
| * `incident_count` and `mttr_minutes` per provider, use the premium | ||
| * `statusLeaderboard()` (1 credit). | ||
| * `statusLeaderboard()` (5 credits). | ||
| */ | ||
@@ -520,3 +520,3 @@ async statusLeaderboardFree(options) { | ||
| /** | ||
| * Cross-provider uptime leaderboard. Costs 1 credit. | ||
| * Cross-provider uptime leaderboard. Costs 5 credits. | ||
| * | ||
@@ -635,7 +635,7 @@ * Same minute-resolution counter source as the free `statusLeaderboardFree()` | ||
| } | ||
| // ── Paid: provider deep-dive (1 credit per call) ───────────── | ||
| // ── Paid: provider deep-dive (5 credits per call) ───────────── | ||
| /** | ||
| * Everything about a provider in one paid call: live status, | ||
| * all models with pricing + tier + benchmark scores joined, | ||
| * recent news, agent traffic. Costs 1 credit. | ||
| * recent news, agent traffic. Costs 5 credits. | ||
| * | ||
@@ -642,0 +642,0 @@ * @throws Error if no token is set |
@@ -150,3 +150,3 @@ /** | ||
| 'limit (1-100, default 25).', | ||
| tensorfeed_provider_deepdive: 'PAID, 1 credit. One AI provider full profile in a single call: ' + | ||
| tensorfeed_provider_deepdive: 'PAID, 5 credits. One AI provider full profile in a single call: ' + | ||
| 'live status, every model with pricing and benchmarks joined in, ' + | ||
@@ -156,3 +156,3 @@ 'recent news, and agent-traffic attribution. Doing this from free ' + | ||
| 'Input: provider (id or display name).', | ||
| tensorfeed_status_leaderboard: 'PAID, 1 credit. Cross-provider AI uptime leaderboard over the ' + | ||
| tensorfeed_status_leaderboard: 'PAID, 5 credits. Cross-provider AI uptime leaderboard over the ' + | ||
| 'full 90-day retention window, with incident_count and ' + | ||
@@ -159,0 +159,0 @@ 'mttr_minutes per provider. Built for vendor selection and ' + |
+1
-1
| { | ||
| "name": "tensorfeed", | ||
| "version": "2.3.0", | ||
| "version": "2.3.1", | ||
| "description": "JavaScript/TypeScript SDK for the TensorFeed.ai API: AI news, status, model pricing, benchmarks, premium history series, webhook watches, Vercel AI SDK + LangChain.js tool factories, and agent-payable premium routing (USDC on Base)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+5
-15
@@ -112,4 +112,5 @@ # tensorfeed | ||
| // Step 1: get a 30-minute quote | ||
| const quote = await tf.buyCredits({ amountUsd: 1.0 }); | ||
| // Step 1: get a 30-minute quote. senderWallet is the Base wallet you will | ||
| // send the USDC from (required); quote.wallet below is where you send it. | ||
| const quote = await tf.buyCredits({ amountUsd: 1.0, senderWallet: '0xYourBaseWallet' }); | ||
| console.log(`Send ${quote.amount_usd} USDC on Base to ${quote.wallet}`); | ||
@@ -150,11 +151,2 @@ console.log(`Memo: ${quote.memo} (expires in ${quote.ttl_seconds}s)`); | ||
| const diff = await tf.historyCompare({ | ||
| from: '2026-04-01', | ||
| to: '2026-04-27', | ||
| type: 'pricing', | ||
| }); | ||
| if (diff.type === 'pricing') { | ||
| console.log(`${diff.changed.length} price changes, ${diff.added.length} new models`); | ||
| } | ||
| // Premium webhook watches (1 credit per registration, free reads) | ||
@@ -245,3 +237,3 @@ const created = await tf.createWatch({ | ||
| | `tf.paymentInfo()` | Wallet, pricing, supported payment flows | | ||
| | `tf.buyCredits({ amountUsd })` | Generate a 30-min payment quote | | ||
| | `tf.buyCredits({ amountUsd, senderWallet })` | Generate a 30-min payment quote | | ||
| | `tf.confirm({ txHash, nonce })` | Verify USDC tx, mint credit token | | ||
@@ -259,3 +251,2 @@ | ||
| | `tf.statusUptime({ provider, from?, to? })` | 1 credit | Uptime % per provider with incident days (degraded = half) | | ||
| | `tf.historyCompare({ from, to, type? })` | 1 credit | Diff two snapshots: added, removed, changed entries with deltas | | ||
| | `tf.createWatch({ spec, callbackUrl, secret?, fireCap? })` | 1 credit | Register a webhook watch (price / status / digest) | | ||
@@ -269,4 +260,3 @@ | `tf.createDigestWatch({ cadence, callbackUrl, secret?, fireCap? })` | 1 credit | Convenience: scheduled daily/weekly digest of pricing changes | | ||
| | `tf.costProjection({ models, inputTokensPerDay, outputTokensPerDay, horizon? })` | 1 credit | Project workload cost across 1-10 models, 4 horizons, cheapest-monthly ranking | | ||
| | `tf.forecast({ target, model, field?, benchmark?, lookback?, horizon? })` | 1 credit | Linear-regression forecast for a price or benchmark series with 95% CI and confidence label | | ||
| | `tf.providerDeepDive(provider)` | 1 credit | One provider's full profile: status + all models + benchmarks joined + news + traffic | | ||
| | `tf.providerDeepDive(provider)` | 5 credits | One provider's full profile: status + all models + benchmarks joined + news + traffic | | ||
| | `tf.compareModels({ ids })` | 1 credit | Side-by-side compare of 2-5 models with normalized benchmarks + rankings | | ||
@@ -273,0 +263,0 @@ | `tf.whatsNew({ days?, newsLimit? })` | 1 credit | Agent morning brief: pricing changes + incidents + top news from last 1-7 days | |
146033
-0.24%346
-2.81%