klarkxy 的 DSH 插件

需求澄清

@klarkxy/dsh-mood

请求含糊时,先把目标、范围和验收问清楚,再让智能体动手。

安装

 dsh plugin --profile web add @klarkxy/dsh-ai-services
 dsh plugin --profile web add @klarkxy/dsh-mood

这个插件依赖 AI 服务,命令会按顺序一起装上。

把 web 换成你在用的 profile。装完重启 profile,插件会出现在「设置 → 插件」里。

说明

以下内容来自 docs/README.zh-CN.md(0.1.4)。

默认启用的需求澄清,挂在 Host agent/pre-step。

English

需要 Node.js ≥22 和 DSH 0.1.7-rc.2。插件安装后默认启用,也可在插件设置中关闭。它不会替代原生权限或写作提案确认。

dsh plugin --profile web add @klarkxy/dsh-ai-services
dsh plugin --profile web add @klarkxy/dsh-mood

在「设置 → 插件」开关需求澄清。启用后按自动模式运行,不再提供单独设置页。对话卡片使用座位 dsh-editor.chat.events,参数 {sessionId, locale}。

表述清楚的请求不调用 mood.analyze。自动模式只在确定存在实质含糊或风险时提问。澄清在同一次 pre-step 内等待,然后只恢复这次被拦住的请求。

pnpm --filter @klarkxy/dsh-mood typecheck
pnpm exec vitest run packages/dsh-mood/src
pnpm --filter @klarkxy/dsh-mood build