DeepSHPlugins
dsh-input-plus 项目预览
GITHUB / COMMUNITY PROJECT

dsh-input-plus

UI 增强JavaScriptMIT

在组合框中使用 `@` 搜索并插入工作区文件和目录路径,并通过 `/h` 菜单复用当前会话的问题。

4 StarsWhitePlusMS 更新时间 2026-08-14
访问 GitHub 仓库
dsh-input-plus 项目预览
dsh-input-plus 界面截图dsh-input-plus 界面截图

项目介绍

中文

在组合框中使用 `@` 搜索并插入工作区文件和目录路径,并通过 `/h` 菜单复用当前会话的问题。

English

Search and insert workspace file and directory paths with `@`, plus a `/h` menu for reusing prompts from the current session.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
WhitePlusMS
仓库
WhitePlusMS/dsh-input-plus
GitHub Stars
4
Forks
0
开发语言
JavaScript
许可证
MIT
最近推送
2026-08-14
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

61/ 100
维护活跃
81
文档与实用信息
100
生态关注度
20
安装便捷信号
100
项目声明信号
100

README 含完整安装与使用说明;关注度尚低(4);标准命令一键安装。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add github:WhitePlusMS/dsh-input-plus

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

dsh-input-plus

Awesome DSH Plugin

中文说明

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.

File reference candidate menu

Input history menu

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:

@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:

@src Find the code responsible for candidate ranking

The official input-trigger pipeline owns the candidate menu, caret, and write-back behavior. This plugin does not replace the official textarea, send button, or candidate menu, and it does not take over native arrow-key behavior.

/h input history

Type /h in the composer to open the history candidate menu through DSH's official / input trigger. You can continue typing a keyword to filter the results, for example:

/h

The candidates contain only user prompts that were successfully submitted in the current Session, ordered from most recent to oldest.

Installation

Requires DSH 0.1.0-rc.6 or a compatible DSH Web profile. Install through the official DSH profile plugin flow:

dsh plugin --profile web add https://github.com/WhitePlusMS/dsh-input-plus/archive/refs/tags/v0.0.2.tar.gz

GitHub tag installation consumes the committed lib/ Host and Client artifacts directly. Before creating or updating an installation tag, run pnpm run build and include the generated lib/ directory in the commit; installing a source-only archive will fail because the package entry points resolve to lib/index.js and lib/client.js.

Configuration

The plugin registers the input-plus settings namespace. The options used by workspace indexing and path resolution are:

OptionDefaultRangeDescription
maxIndexDepth30–10Maximum workspace indexing depth
maxIndexEntries2001–2000Maximum number of entries retained per candidate index
referenceRoot''Absolute path or emptyOverrides the current Session workspace; empty uses the Session workspace

Development

Requirements: Node.js 18+ and pnpm.

pnpm install

# TypeScript type checking
pnpm run typecheck

# Run the in-process test suite
pnpm test

# Build the Host and browser bundles
pnpm run build

# Check that lib/client.js is synchronized with the source
pnpm run check:client

The build has two parts:

  • tsc -p tsconfig.build.json generates the Host code and declaration files;
  • scripts/build-client.mjs uses the TypeScript Compiler API to generate lib/client.js in-process, avoiding an esbuild service subprocess in restricted environments.

Repository layout

src/
  index.ts            Host plugin entry, settings, and HTTP routes
  contract.ts         Minimal Host/Client wire contract
  host/
    files.ts          Workspace indexing, matching, and path safety
    git.ts            Git modification state
    settings.ts       Settings schema and defaults
    workspace.ts      Session workspace resolution
  client/
    index.ts          Browser plugin entry
    input-source.ts   @ candidate source and path write-back
    history-source.ts /h and /history candidate source and two-line menu styles
    history-recorder.ts Current Session prompt recording
    find.ts           Client candidate matching and ranking
    file-icons.ts     Candidate icons
    input-status.ts   Composer status dock
scripts/
  build-client.mjs    Browser bundle builder
  test-runner.ts      In-process test entry

License

MIT

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目