@contractspec/lib.provider-ranking
v0.7.22
Published
AI provider ranking: benchmark ingestion, scoring, and model comparison
Maintainers
Readme
@contractspec/lib.provider-ranking
Website: https://contractspec.io
AI provider ranking: benchmark ingestion, scoring, and model comparison.
What It Provides
- Layer: lib.
- Consumers: module.provider-ranking.
- Related ContractSpec packages include
@contractspec/tool.bun,@contractspec/tool.typescript. - Related ContractSpec packages include
@contractspec/tool.bun,@contractspec/tool.typescript.
Installation
npm install @contractspec/lib.provider-ranking
or
bun add @contractspec/lib.provider-ranking
Usage
Import the root entrypoint from @contractspec/lib.provider-ranking, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/evalis part of the package's public or composition surface.src/in-memory-store.tsis part of the package's public or composition surface.src/index.tsis the root public barrel and package entrypoint.src/ingestersis part of the package's public or composition surface.src/scoringis part of the package's public or composition surface.src/store.tsis part of the package's public or composition surface.src/types.tsis shared public type definitions.
Public Entry Points
- Export
.resolves through./src/index.ts. - Export
./evalresolves through./src/eval/index.ts. - Export
./eval/runnerresolves through./src/eval/runner.ts. - Export
./eval/typesresolves through./src/eval/types.ts. - Export
./in-memory-storeresolves through./src/in-memory-store.ts. - Export
./ingestersresolves through./src/ingesters/index.ts. - Export
./ingesters/artificial-analysisresolves through./src/ingesters/artificial-analysis.ts. - Export
./ingesters/chatbot-arenaresolves through./src/ingesters/chatbot-arena.ts. - Export
./ingesters/fetch-utilsresolves through./src/ingesters/fetch-utils.ts. - Export
./ingesters/open-llm-leaderboardresolves through./src/ingesters/open-llm-leaderboard.ts. - The package publishes 19 total export subpaths; keep docs aligned with
package.json.
Local Commands
bun run dev— contractspec-bun-build devbun run build— bun run prebuild && bun run build:bundle && bun run build:typesbun run test— bun test --pass-with-no-testsbun run lint— bun lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsc --noEmitbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rimraf dist .turbobun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun run prebuild— contractspec-bun-build prebuild
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
- Resolve lint, build, and type errors across nine packages.
- Add first-class transport, auth, versioning, and BYOK support across all integrations.
- Add AI provider ranking system with ranking-driven model selection.
Notes
- Store interface is the adapter boundary — do not leak implementation details.
- Scoring algorithms must stay deterministic (no randomness, no side effects).
- Benchmark dimension enum is shared across ingesters and scoring — keep in sync.
