dsh-tab-complete

输入框会预测你接下来要打的字:幽灵文本贴在你的光标后面,字体、行高、字间距都照抄编辑器,按 Tab 变成真正的文字,按 Esc 忽略。预测是走当前会话自己的模型路由的一次短调用,喂进你的草稿和最近几轮对话,所以空输入框时还会预测你的「下一句」,用用户自己的口吻;只是复述助手原话的建议会被丢弃。宿主半边是一条带若干子路径的 HTTP 路由(只收 loopback、64KB 体积上限、结果缓存 2 分钟、空结果缓存 20 秒、每会话同时只有一个在飞请求);客户端半边是挂在 conversation.input.overlay 上的 0 高度覆盖层,落字带 draftRev 的 CAS 校验,失败退回 setDraft。输入法组字期间与 / 命令不预测。16 个 node:test 用例,零运行时依赖,docs/ 里有真实运行截图。

插件介绍

输入框会预测你接下来要打的字:幽灵文本贴在你的光标后面,字体、行高、字间距都照抄编辑器,按 Tab 变成真正的文字,按 Esc 忽略。预测是走当前会话自己的模型路由的一次短调用,喂进你的草稿和最近几轮对话,所以空输入框时还会预测你的「下一句」,用用户自己的口吻;只是复述助手原话的建议会被丢弃。宿主半边是一条带若干子路径的 HTTP 路由(只收 loopback、64KB 体积上限、结果缓存 2 分钟、空结果缓存 20 秒、每会话同时只有一个在飞请求);客户端半边是挂在 conversation.input.overlay 上的 0 高度覆盖层,落字带 draftRev 的 CAS 校验,失败退回 setDraft。输入法组字期间与 / 命令不预测。16 个 node:test 用例,零运行时依赖,docs/ 里有真实运行截图。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-tab-complete

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:dingchenhui0618-arch/dsh-tab-complete

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令