lvy-jsd/dsh-tool-manager--packages-dsh-tool-manager-classifier-rules ↗★ 0

dsh-tool-manager-classifier-rules

基于规则和用户配置对工具进行分类和重写 适合需要通过正则或自定义规则精确控制工具分类的用户。

包名
dsh-tool-manager-classifier-rules
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年10月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lvy-jsd/dsh-tool-manager#7b37565ac428824a61f82534240b14374f0f5378&path:packages/dsh-tool-manager-classifier-rules

Configuration

- id: tool-manager-classifier-rules
  name: dsh-tool-manager-classifier-rules
  config:
    defaults: true            # set false to use only your own rules
    groupRules:               # regex over tool names -> group, first match wins
      - { match: '^lingshu_', group: lingshu }
    categories:               # place groups; add categories with a description
      system: { groups: [lingshu] }
      games:  { description: Game servers and bots, groups: [minecraft] }

The rule tables (DEFAULT_GROUP_RULES, DEFAULT_GROUP_CATEGORIES) and the rulesClassifier() helper are exported, so a fork or another plugin can reuse them with different data.