Skip to content

Add DigiKey search support - #4116

Open
seveibar wants to merge 1 commit into
mainfrom
agent/add-digikey-search
Open

Add DigiKey search support#4116
seveibar wants to merge 1 commit into
mainfrom
agent/add-digikey-search

Conversation

@seveibar

@seveibar seveibar commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add an explicit tsci search --digikey source selector
  • query the cached API at digikeysearch.tscircuit.com
  • render DigiKey product number, manufacturer part number, description, and stock in terminal output
  • include DigiKey components in unified --json output with source: "digikey"
  • add focused CLI coverage for request construction and JSON output

Why

This exposes the new cached DigiKey Product Information search service from the CLI while keeping API credentials and upstream quota management inside tscircuit/digikeysearch.tscircuit.com.

User impact

Users can run:

tsci search --digikey "10k 0603 resistor"
tsci search --digikey --json "STM32F103"

DigiKey search is additive and explicit; the existing default JLC search behavior remains unchanged.

Validation

  • bun run format:check
  • bun run build
  • bun test tests/cli/search — 6 tests passed

@seveibar
seveibar marked this pull request as ready for review August 8, 2026 17:53
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