Skip to content

refactor(providers): derive provider options from ConfidenceOptions#359

Draft
nicklasl wants to merge 2 commits into
mainfrom
nicklasl/derive-provider-options-from-confidence-options
Draft

refactor(providers): derive provider options from ConfidenceOptions#359
nicklasl wants to merge 2 commits into
mainfrom
nicklasl/derive-provider-options-from-confidence-options

Conversation

@nicklasl

Copy link
Copy Markdown
Member

Summary

  • Replace hand-written provider options types with Omit<ConfidenceOptions, 'environment' | 'library' | 'context'> in both web and server provider factories
  • Eliminates type drift between ConfidenceOptions and provider options, so passing a ConfidenceOptions object to createConfidenceWebProvider / createConfidenceServerProvider just works
  • All new ConfidenceOptions fields (e.g. logger, cache, disableTelemetry) are now automatically available through the provider factories

Test plan

  • yarn build passes
  • All 159 tests pass
  • Verify downstream consumers compile without changes

🤖 Generated with Claude Code

nicklasl and others added 2 commits June 15, 2026 09:12
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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