Skip to content

Complete Anthropic provider model discovery - #45

Merged
NotY215 merged 19 commits into
mainfrom
phase9-provider-discovery-completion
Nov 30, 2026
Merged

NotY215 merged 19 commits into
mainfrom
phase9-provider-discovery-completion

Conversation

@NotY215

@NotY215 NotY215 commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Roadmap milestone: Phase 2 provider discovery

Implemented

  • Add native Anthropic Models API discovery using GET /v1/models, x-api-key, and the required API version header.
  • Add bounded cursor pagination with configurable page/model ceilings, per-page timeout, redirect rejection, 1 MiB response cap, schema checks, and cursor-progress validation.
  • Preserve only provider-supplied model IDs, optional creation timestamps, and display names. The implementation does not infer context windows, tools, prices, or quality.
  • Expose discoverModels("anthropic") through the provider runtime and advertise discovery in registry capability metadata only when credentials are configured.
  • Add unit tests for auth/header behavior, pagination, malformed schemas/cursors, auth errors, truncation, capability metadata, and runtime wiring.
  • Update Integration.md, provider integration documentation, provider coverage metadata, README, and the roadmap.

Validation on latest head

  • TypeScript typecheck: passed.
  • TypeScript build: passed.
  • Full Node.js test suite: passed.
  • Python safety tests: passed.
  • Windows compatibility: passed.
  • CodeQL Python and JavaScript/TypeScript analyses: still running at last check.
  • No live provider requests or API credentials are used by these tests.

Remaining roadmap work

This completes the Anthropic discovery sub-milestone only. Verified capability metadata for other runtimes, native Windows race-resistant filesystem operations, authenticated host approval UI, production sandbox backends, live benchmark evidence, and deployment-level security gates remain open. This PR is draft and is not merged.

@NotY215
NotY215 marked this pull request as ready for review November 30, 2026 07:17
@NotY215
NotY215 merged commit 2869b04 into main Nov 30, 2026
9 checks passed
@NotY215
NotY215 deleted the phase9-provider-discovery-completion branch November 30, 2026 07:17
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