helllo-shijie/motor-hospital-plugins--plugins-motor-parts-selector ↗★ 0
motor-parts-selector
替换配件智能选型插件:按故障类型与功率生成替换配件 BOM,输出库存、交期及替代选项。
AI 分析
核心用途是针对电机故障自动匹配所需配件,生成包含轴承、绕组等材料的物料清单。适合电机维修备件管理与采购人员,用于支撑后续成本评估。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:helllo-shijie/motor-hospital-plugins#6b13e4bb39d30f795b9af8402034f0c0a88f7ab9&path:plugins/motor-parts-selector说明文档
阅读完整 README ↗motor-parts-selector · 替换配件智能选型
Electric-motor replacement-parts BOM (suite stage P4): builds a replacement-parts BOM from the fault and motor rating, listing stock, lead time and domestic or imported alternatives.
插件定位
按故障类型与电机功率生成替换配件BOM(轴承/绕组材料/机械件/再制造服务),输出库存/交期与国产/进口替代选项,支撑后续成本评估。
能力来源
- 引擎模块:
engine/partsSel.js(本插件是共享 Node 引擎的 DSH 入口包装;引擎与库随仓库motor-hospital-plugins一并发布) - 数据库:
data/motor_hospital.db—— SQLite,node:sqlite原生读写,零第三方依赖 - 数据字典: 配件目录
parts_catalog、故障知识fault_kb、供应商历史报价supplier_quotes等 - 运行环境: Node.js ≥ 22.5(Windows / macOS / Linux)
命令示例(引擎直用,无需 DSH)
cd motor-hospital-plugins
node engine/cli.js parts --work-order WO20260910001
安装到 DSH
- 插件市场:仓库收录进 awesome-dsh-plugin 目录后,在 DSH 设置→插件市场 搜索
motor-parts-selector(或motor-)即可一键安装;dsh-market 会自动解析到本仓库plugins/motor-parts-selector/子包。 - 安装即热挂载;若提示有 agent 正在运行,请在空闲会话安装或重启一次 DSH。详细说明见仓库
docs/04-上架与安装指南.md。
自测
cd motor-hospital-plugins
node plugins/motor-parts-selector/test.js # 期望输出 [PASS]