Skip to content

Add SpecStream Extract retrieval provider adapter - #67

Open
Specstreamai wants to merge 1 commit into
context-dot-dev:mainfrom
Specstreamai:add-specstream-provider
Open

Specstreamai wants to merge 1 commit into
context-dot-dev:mainfrom
Specstreamai:add-specstream-provider

Conversation

@Specstreamai

Copy link
Copy Markdown

Adds SpecStream (POST https://api.specstream.ai/v1/extract) as a retrieval provider in TRACE following CONTRIBUTING.md.

Summary of changes

  • Provider adapter (src/lib/benchmark/providers.ts): sends {"urls": [target.url], "format": "markdown", "include": ["response"]} with Authorization: Bearer SPECSTREAM_API_KEY, maps price_usd and final_url, rejects archive fallback (read_from === "archive") as CACHED_RESPONSE, and marks non-ok provider outcomes (blocked, not_found, empty, failed) as failures while preserving 401/402/429 as account limits.
  • Provider metadata, pricing, and limits (src/lib/benchmark/types.ts, src/lib/benchmark/parallel.ts, config/pricing.json, .env.example, public/logos/specstream.svg, src/components/trace/provider-logo.tsx, src/app/globals.css): configured at bash.80 per 1,000 pages with billsFailures: false (SpecStream only charges status: "ok" pages) and default concurrency 64 / 10 RPS.
  • Backward compatibility for historical runs (src/lib/benchmark/analysis.ts, src/lib/benchmark/dataset.ts): ensures historical 4-provider datasets and the static Wikipedia study keep identical nobody counts and types when a new provider is registered.
  • Documentation and tests (docs/methodology.md, src/components/benchmark/report.tsx, scripts/generate-agent-docs.mjs, llms-full.txt, llms.full.txt, tests/specstream-provider.test.ts, and E2E fixture servers).

Verification

  • npm run lint: passed cleanly.
  • npm run test:unit: passed (all 8 statistical checks).
  • npx tsx tests/specstream-provider.test.ts: passed (6/6 adapter cases covering live read, site API read, archive cache rejection, blocked 403 origin error, empty content, and 429 rate limit).
  • npm run build: Next.js production build and TypeScript check passed cleanly.
  • npm run test:agents: passed (agent docs freshness and HTTP endpoint checks).

If you would like a SPECSTREAM_API_KEY preloaded with evaluation credit to include SpecStream in weekly TRACE runs, reply here or email tarek@specstream.ai and I will provision one right away.

@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

@Specstreamai is attempting to deploy a commit to the ContextDev Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant