
WhitePlusMS/dsh-input-plus
40最近提交 2026年8月14日
dsh-input-plus DSH 插件
dsh-input-plus是一个DSH Web UI插件,添加两个输入增强功能。它在服务端索引活动工作区,在浏览器中提供候选菜单,用于文件/目录路径选择(通过@)和提示历史(通过/h)。该插件与DSH官方输入触发系统集成,不替换原生UI组件。
如何安装 dsh-input-plus DSH 插件
dsh plugin --profile web add https://github.com/WhitePlusMS/dsh-input-plus/archive/refs/tags/v0.0.2.tar.gz复制不会执行命令。安装 dsh-input-plus DSH 插件前请核对仓库和版本。
dsh-input-plus DSH 插件数据来源
dsh-input-plus DSH 插件快照日期:2026年8月16日
discovered
dsh-input-plus DSH 插件能做什么
- @文件/目录路径选择,带候选菜单
- /h输入历史候选菜单,支持关键词过滤
- 可配置的工作区索引深度(maxIndexDepth)和条目限制(maxIndexEntries)
- 仅路径引用 – 不读取文件内容或展开目录
dsh-input-plus DSH 插件适合哪些场景
- 输入@后跟文件名片段快速引用工作区文件
- 输入/h后跟关键词过滤历史提示
- 引用目录后附加指令给模型
- 保持编辑器简洁,不引入文件内容
dsh-input-plus DSH 插件适合谁
- 频繁引用工作区文件的DSH Web UI用户
- 需要快速访问当前会话历史提示的用户
dsh-input-plus DSH 插件的限制
- 需要DSH 0.1.0-rc.6或兼容DSH Web profile
- 路径引用为纯文本,插件不读取文件内容、展开目录或生成清单
- 输入历史仅包含当前会话中成功提交的提示(跨会话不保留)
- 不替换原生文本区、候选菜单或箭头键行为
dsh-input-plus DSH 插件的仓库 README 摘录
以下文字摘自 dsh-input-plus DSH 插件的上游仓库 WhitePlusMS/dsh-input-plus 的 README,版权归原作者,仅作引用。
An input composer enhancement plugin for the DSH Web UI. On the Host side, it builds an index of the active workspace. In the browser, it connects to DSH's official `@` input trigger so files and directories can be searched and inserted into the composer. Type `/h` to open a candidate menu of previous prompts from the current Session.   ## Features ### `@` file and directory path selection Type `@` in the DSH composer, then continue with a file name, directory name, or path fragment. The candidate menu lists files and directories from the current Session workspace. After selection, the draft keeps a plain-text path reference, for example: ```text @src/contract.ts ``` The reference contains only the path. Sending the message does not read the file, expand the directory, or generate a directory manifest. When the model needs the target, it can inspect the path with the native workspace tools provided by the current Session. After selecting a directory, you can continue with an instruction: ```text @src Find the code responsible for candidate ranking ``` The official input-trigger pipeline
阅读完整 README仓库许可: MIT
dsh-input-plus DSH 插件常见问题
如何安装dsh-input-plus?
使用DSH profile插件命令:`dsh plugin --profile web add https://github.com/WhitePlusMS/dsh-input-plus/archive/refs/tags/v0.0.2.tar.gz`。插件需要DSH 0.1.0-rc.6或兼容版本。请使用GitHub标签归档URL,其中包含预构建的lib/目录;仅安装源码会失败。
可以更改工作区索引深度吗?
可以,在`input-plus`设置命名空间中配置。将`maxIndexDepth`设为0到10之间的值,默认为3。还可以调整`maxIndexEntries`(默认200,最大2000)和`referenceRoot`以覆盖会话工作区路径。
为什么看不到@候选菜单?
该插件仅适用于DSH Web UI官方的@输入触发。确保你使用的是兼容的DSH Web profile且插件安装正确。此外,当前会话必须设置工作区——插件索引活动工作区。如果工作区为空或未设置,则不会出现候选。
插件会读取文件内容吗?
不会,它仅以纯文本形式引用文件路径。插件不读取文件内容、展开目录或生成清单。如有需要,模型可以使用原生工作区工具检查路径。
历史记录包含其他会话的提示吗?
不包含,仅记录当前会话中成功提交的提示。历史不会跨会话保留。输入`/h`然后按关键词过滤,即可查找当前会话中的历史提示。