socialcrawl-mcp 2.2.0 → 2.5.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 +49 -21
- package/dist/app.d.ts +3 -3
- package/dist/app.js +75 -12
- package/dist/chatgpt-text.d.ts +23 -0
- package/dist/chatgpt-text.js +310 -0
- package/dist/client-tag.d.ts +13 -0
- package/dist/client-tag.js +17 -0
- package/dist/client.d.ts +5 -0
- package/dist/client.js +14 -4
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/context.d.ts +13 -0
- package/dist/context.js +1 -0
- package/dist/cost-guard.d.ts +15 -3
- package/dist/cost-guard.js +39 -3
- package/dist/data/docs-async.d.ts +2 -2
- package/dist/data/docs-async.js +24 -3
- package/dist/data/docs-handwritten.js +968 -906
- package/dist/data/docs.js +7 -1
- package/dist/data/endpoints.js +11153 -7559
- package/dist/data/examples.js +2 -2
- package/dist/data/guide.d.ts +2 -2
- package/dist/data/guide.js +2 -2
- package/dist/data/outputs.js +425 -290
- package/dist/data/platforms.js +214 -55
- package/dist/data/recipes.js +1 -1
- package/dist/data/registry-meta.d.ts +10 -10
- package/dist/data/registry-meta.js +10 -10
- package/dist/endpoint-resolve.d.ts +1 -0
- package/dist/endpoint-resolve.js +10 -1
- package/dist/endpoint-surface.d.ts +64 -0
- package/dist/endpoint-surface.js +472 -0
- package/dist/hydration.js +28 -3
- package/dist/instructions.md +18 -18
- package/dist/listings.d.ts +24 -0
- package/dist/listings.js +55 -0
- package/dist/oauth/config.d.ts +39 -4
- package/dist/oauth/config.js +50 -6
- package/dist/oauth/resource-server.d.ts +12 -2
- package/dist/oauth/resource-server.js +5 -20
- package/dist/oauth/scopes.d.ts +2 -2
- package/dist/oauth/scopes.js +4 -4
- package/dist/param-aliases.d.ts +7 -0
- package/dist/param-aliases.js +15 -0
- package/dist/pricing.js +5 -1
- package/dist/resources/sample-gate.js +34 -1
- package/dist/resources/supplier-tokens.d.ts +1 -1
- package/dist/resources/supplier-tokens.js +2 -0
- package/dist/result.js +8 -0
- package/dist/schemas/async.d.ts +41 -31
- package/dist/schemas/async.js +28 -9
- package/dist/schemas/outputs.d.ts +4 -4
- package/dist/schemas/tools.d.ts +18 -6
- package/dist/schemas/tools.js +24 -4
- package/dist/server.js +6 -5
- package/dist/timeouts.d.ts +24 -1
- package/dist/timeouts.js +32 -0
- package/dist/tools/account.d.ts +4 -1
- package/dist/tools/account.js +1 -1
- package/dist/tools/async-common.js +3 -1
- package/dist/tools/check-balance.d.ts +4 -2
- package/dist/tools/check-balance.js +9 -0
- package/dist/tools/discover-runs.js +117 -11
- package/dist/tools/discover.js +3 -0
- package/dist/tools/estimate.js +10 -1
- package/dist/tools/list-endpoints.js +5 -3
- package/dist/tools/manage.js +2 -0
- package/dist/tools/monitors.d.ts +7 -1
- package/dist/tools/monitors.js +26 -2
- package/dist/tools/pricing.js +11 -1
- package/dist/tools/request.js +10 -2
- package/dist/types.d.ts +9 -1
- package/dist/value-prices.d.ts +18 -0
- package/dist/value-prices.js +79 -0
- package/package.json +75 -75
package/dist/data/docs.js
CHANGED
|
@@ -160,7 +160,9 @@ function buildEndpointBlock(e) {
|
|
|
160
160
|
? "Streaming: send `Accept: text/event-stream` for SSE."
|
|
161
161
|
: e.streaming === "always"
|
|
162
162
|
? "Streaming: always SSE."
|
|
163
|
-
:
|
|
163
|
+
: e.streaming === "sse-default"
|
|
164
|
+
? "Streaming: SSE by default; `stream=false` or `Accept: application/json` returns one JSON envelope (cached, honours Idempotency-Key). This server asks for JSON unless you send `stream=true`."
|
|
165
|
+
: `Streaming: streams when \`${e.streaming}\`.`);
|
|
164
166
|
}
|
|
165
167
|
if (e.emptyOn404) {
|
|
166
168
|
notes.push("Empty is not an error: an upstream 404 returns 200 `{items: []}` with the credit refunded.");
|
|
@@ -213,6 +215,8 @@ function buildPricingDoc() {
|
|
|
213
215
|
"",
|
|
214
216
|
"Cache hits, idempotent replays, empty results (404 RESOURCE_NOT_FOUND or 200 `{items:[]}`), upstream errors (502), circuit-breaker rejections (503), internal errors (500), deadline 504s, and `GET /v1/credits/{balance,transactions}` all cost 0 credits — see the `credits` topic.",
|
|
215
217
|
"",
|
|
218
|
+
"**Reading a live quote (`GET /v1/utility/estimate`, behind `socialcrawl_estimate`).** `hold` is the most the request can bill — every page of a walk, legs that bill themselves, a run's `max_credits` — so gate on it. `upfront_hold` is what is deducted when the call starts (one page of a walk; equal to `hold` on a plain call), and `quote_basis` is one sentence saying why the two differ. Before 21/11/2026 `hold` meant the up-front deduction. `utility/find` rows add `credits_ceiling` (the most one call costs once its price-moving params are set) and `ceiling_params` (which ones).",
|
|
219
|
+
"",
|
|
216
220
|
`## Free endpoints (${free.length})`,
|
|
217
221
|
"",
|
|
218
222
|
free.map((e) => `\`${e.method === "GET" ? "" : `${e.method} `}/v1/${e.platform}/${e.resource}\``).join(" · "),
|
|
@@ -359,6 +363,8 @@ function buildJudgmentsDoc() {
|
|
|
359
363
|
"",
|
|
360
364
|
`${lanes.length} list endpoints judge their rows for you. **On by default and free:** every page carries the free label presets under \`computed.labels\`, and every judged search carries \`computed.relevance\` against your query — at no extra credit, without changing any existing field, and without dropping or reordering a row. \`data.labels\` and \`data.relevance\` report each judgment's status (\`complete\`, \`partial\`, \`skipped\`) and \`pending\`: rows still being judged when the page was sent carry \`null\` and are filled on your next call or cached read.`,
|
|
361
365
|
"",
|
|
366
|
+
"When judging could not run (the per-minute judging budget is spent, or the judge's circuit breaker is open), `data.labels` and `data.relevance` carry `retry_after_seconds`: the seconds left in the UTC minute for a spent budget, 30 for the breaker, null otherwise. The `labels_unjudged` and `relevance_unjudged` warning lines say when to retry, and unjudged rows are never billed.",
|
|
367
|
+
"",
|
|
362
368
|
"## What costs credits",
|
|
363
369
|
"",
|
|
364
370
|
"- a `label=` preset outside the lane's free defaults,",
|