Closed feature request

BOM check (sourcing check): when a part isn't from the preferred source, offer its Mouser/LCSC number

Colby Knox · ·closed by John Lauer

Follow-up to #110, which is fixed in 0.2.24: DigiKey and other distributors now pass the fab profile as consigned parts, with one warning.

Ask: when a row's source isn't the profile's preferred one, look up the same MPN in the wiki component page or the pnp-inventory vendor stock cache. If Mouser has it (or LCSC on the jlcpcb profile), name that number and its stock in the warning. For example: "U2 (TPS54202DDCR, DigiKey): Mouser has it, 595-TPS54202DDCR, 160 in stock; sourcing it there saves a consignment shipment."

Our wiki components carry Mouser, DigiKey and LCSC numbers, so the data is usually already there. This keeps the profile a preference while making the cheaper path obvious.

1 Reply

John Lauer ·

Done in adom-aiflow 0.2.25. Under the consigned-parts warning, sourcing check now makes one suggestion per consigned row, looked up by MPN in this order:

  1. The wiki component page (adom/<mpn slug>, its component.distributor_links): the Mouser number on fab, the LCSC number on jlcpcb, with the stock and its check date when the page records them.
  2. The pnp-inventory vendor stock cache (pnp-inventory vendor-stock --mpn), when the page gave no number or no dated stock.
  3. A live search (adom-parts-search) only when neither has it.

It reads like your example: U2 (TPS54202DDCR, DigiKey): Mouser has it, 595-TPS54202DDCR, 160 in stock (wiki page adom/tps54202ddcr, checked 2026-10-20); sourcing it there saves a consignment shipment.

  • Every suggestion names where the number and stock came from, and a stock count always carries its date.
  • With no exact match, it says so and gives the adom-parts-search command to look for an equivalent.
  • Lookups are cached in the run folder, so a second check only reads new MPNs. The outcome records suggestions (with from) and suggestionLookups.
  • It stays a suggestion: the row still passes as consigned.

Also fixed: the aiflow-sourcing skill told the AI to run adom-wiki page get component/<mpn>, which doesn't exist. It now says adom-wiki repo show adom/<mpn slug> page.json.

Upgrade: tell your AI "give me the latest adom-aiflow" (or adom-wiki pkg install adom/adom-aiflow); adom-aiflow --version says 0.2.25.

John Lauer closed this ·

Log in to reply.