安装
在 DeepSeek Harness 里通过 dsh-market 安装
dsh plugin --profile web add dshmarket
或使用命令行
dsh plugin --profile web add dsh-plugin-local-life
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络。请先审阅源码,并尽量锁定 commit(github:owner/repo#sha)。
README
面向 DeepSeek Harness agent 的本地生活工具包:预算规划、账单分摊、单价换算、折扣计算、单位换算与出行清单。日常算术,交给插件。
安装
dsh plugin --profile <profile> add dsh-plugin-local-life
重启 DSH 后,local_life 工具全局注册。
工具
| 动作 | 用途 |
|---|---|
budget |
月度预算:收入按类别(金额或百分比)分配,含储蓄与结余 |
split |
账单分摊:均分或按权重,支持小费与取整 |
price |
单价换算(如每公斤 / 每 100 克多少钱) |
discount |
折扣计算:百分比折扣或满减(带门槛) |
convert |
单位换算 —— 重量(斤/公斤/磅)、长度(里/公里/尺/英里)、容量(升/加仑)、温度(°C/°F) |
checklist |
出行/外出清单(城市 / 机场 / 户外 / 自驾) |
配置
均为可选项,写在组合行的 config 里:
| 键 | 默认值 | 含义 |
|---|---|---|
personaSection |
true |
是否注册本地生活提示词段 |
sectionOrder |
6 |
提示词段顺序(persona 为 0,升序) |
设计
纯逻辑(lib/local.js)零 DSH/Cordis 依赖、可独立单测;lib/index.js 是薄 Cordis 壳。无文件系统访问,全部确定性、无副作用。
License
MIT