koishi-fumo-code/dsh-feiyu-kb ↗★ 0
dsh-feiyu-kb
DSH 插件:把本地 Markdown 知识库暴露成工具(搜索/读取/写入/相关推荐),并支持网页、文件、目录、RSS、随手记等多种进料方式 —— 任何模型运行时都能用
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add https://github.com/koishi-fumo-code/dsh-feiyu-kb/releases/download/v0.1.0/dsh-feiyu-kb-0.1.0.tgzREADME
Read the full README ↗配置:库放在哪个文件夹
优先级从高到低:
- bundle patch 里的
config.root—— profile 层可改(/profiles/ /cordis.patch.yml里- id: feiyu-kb那段,或改本包自带的cordis.patch.yml); - 环境变量
FEIYU_KB_ROOT; - 插件记下的生效路径
$DSH_HOME/feiyu-kb.root(插件每次加载会把自己实际用的路径写进去); - 默认
~/dsh-feiyu-kb(Windows 上就是C:\Users\\dsh-feiyu-kb)。
第 3 条是为了让命令行和插件用同一个库:kb-cli.mjs 看不到 profile 配置,只能靠这个备忘文件对齐。不然配置里换过库位置的人,一用 CLI 兜底就会写进第二个库,知识被劈成两半。
怎么确认当前用的是哪个库:
node lib/kb-cli.mjs where # 命令行视角