socialcrawl-mcp 2.3.0 → 2.6.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.
Files changed (69) hide show
  1. package/README.md +9 -3
  2. package/dist/app.js +71 -12
  3. package/dist/chatgpt-text.d.ts +23 -0
  4. package/dist/chatgpt-text.js +310 -0
  5. package/dist/client.d.ts +5 -0
  6. package/dist/client.js +9 -1
  7. package/dist/constants.d.ts +1 -1
  8. package/dist/constants.js +1 -1
  9. package/dist/context.d.ts +7 -0
  10. package/dist/cost-guard.d.ts +28 -3
  11. package/dist/cost-guard.js +69 -6
  12. package/dist/data/docs-async.d.ts +1 -1
  13. package/dist/data/docs-async.js +147 -137
  14. package/dist/data/docs-handwritten.js +968 -947
  15. package/dist/data/docs.js +5 -1
  16. package/dist/data/endpoints.js +2050 -941
  17. package/dist/data/examples.js +2 -2
  18. package/dist/data/guide.d.ts +2 -2
  19. package/dist/data/guide.js +2 -2
  20. package/dist/data/outputs.js +196 -159
  21. package/dist/data/platforms.js +13 -13
  22. package/dist/data/recipes.js +1 -1
  23. package/dist/data/registry-meta.d.ts +9 -9
  24. package/dist/data/registry-meta.js +9 -9
  25. package/dist/endpoint-resolve.d.ts +1 -0
  26. package/dist/endpoint-resolve.js +10 -1
  27. package/dist/endpoint-surface.d.ts +64 -0
  28. package/dist/endpoint-surface.js +478 -0
  29. package/dist/held-surfaces.d.ts +13 -2
  30. package/dist/held-surfaces.js +16 -3
  31. package/dist/hydration.js +7 -0
  32. package/dist/instructions.md +18 -18
  33. package/dist/listings.d.ts +24 -0
  34. package/dist/listings.js +55 -0
  35. package/dist/oauth/config.d.ts +20 -0
  36. package/dist/oauth/config.js +19 -0
  37. package/dist/oauth/resource-server.d.ts +12 -2
  38. package/dist/oauth/resource-server.js +5 -20
  39. package/dist/oauth/scopes.d.ts +2 -2
  40. package/dist/oauth/scopes.js +4 -4
  41. package/dist/param-aliases.d.ts +7 -0
  42. package/dist/param-aliases.js +15 -0
  43. package/dist/pricing.js +5 -1
  44. package/dist/resources/sample-gate.js +34 -1
  45. package/dist/resources/supplier-tokens.d.ts +1 -1
  46. package/dist/resources/supplier-tokens.js +2 -0
  47. package/dist/result.js +8 -0
  48. package/dist/schemas/async.d.ts +39 -12
  49. package/dist/schemas/async.js +40 -4
  50. package/dist/schemas/outputs.d.ts +2 -2
  51. package/dist/server.js +1 -1
  52. package/dist/timeouts.d.ts +24 -1
  53. package/dist/timeouts.js +32 -0
  54. package/dist/tools/async-common.d.ts +4 -2
  55. package/dist/tools/async-common.js +10 -2
  56. package/dist/tools/discover-runs.d.ts +6 -3
  57. package/dist/tools/discover-runs.js +126 -7
  58. package/dist/tools/discover.js +3 -0
  59. package/dist/tools/list-endpoints.js +5 -3
  60. package/dist/tools/manage.js +5 -4
  61. package/dist/tools/pricing.js +41 -10
  62. package/dist/tools/request.js +10 -2
  63. package/dist/tools/search-runs.js +27 -3
  64. package/dist/types.d.ts +9 -1
  65. package/dist/unit-meters.d.ts +32 -0
  66. package/dist/unit-meters.js +137 -0
  67. package/dist/value-prices.d.ts +38 -0
  68. package/dist/value-prices.js +168 -0
  69. package/package.json +3 -3
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
- : `Streaming: streams when \`${e.streaming}\`.`);
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.");
@@ -361,6 +363,8 @@ function buildJudgmentsDoc() {
361
363
  "",
362
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.`,
363
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
+ "",
364
368
  "## What costs credits",
365
369
  "",
366
370
  "- a `label=` preset outside the lane's free defaults,",