Packs / manufacturing-public
bom-revision-diff
Show what changed between two BOM revisions (added, removed, quantity changed)
Install
logicpacks pack use manufacturing-public/bom-revision-diffget_pack manufacturing-public/bom-revision-diffThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
local-python - Checks: 1 in
outcome/checks.yaml - Code:
bomdiff.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
A change list between BOM rev A and rev B: added parts, removed parts, quantity deltas, for an ECO/change note.
Verified by: Fixture revisions produce the exact expected add/remove/change lines.
Steps
- Export both revisions as flat BOMs (see bom-rollup).
- Run
python3 code/bomdiff.py revA.csv revB.csv. - Paste the output into the ECO.
Edge cases
- Same part listed twice in one revision: quantities are summed with a warning.
Don'ts
- Don't compare a multi-level BOM with a flat one.