← 返回列表
D

dsh-plugin-local-life

v0.1.0 · 0 天前发布

Local-life toolkit for DeepSeek Harness agents: budget planning, bill splitting, unit-price and discount math, common unit conversions (incl. jin/li/chi, C/F), and trip/outing checklists

deepseek-harnessdshdsh-plugincordispluginbundlelocallifebudgetsplit

README

dsh-plugin-local-life

面向 DeepSeek Harness agent 的本地生活工具包:预算规划、账单分摊、单价换算、折扣计算、单位换算与出行清单。日常算术,交给插件。

安装

bash
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 壳。无文件系统访问,全

查看完整 README →

版本兼容矩阵

DSH 版本状态说明
dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
dsh@0.1.0 ✅ 兼容 标准 patch ✅
dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
dsh@0.3.0+ ❓ 未知 尚未发布

💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

元数据

License
MIT
npm
dsh-plugin-local-life
Repo
git+https://github.com/863683348/dsh-plugin-local-life.git
Engines
{}
Weekly DL
0
Monthly DL
0
dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}