dsh-select-ask

DSH PLUGIN会话与消息

仓库 yizhoulouislu/dsh-select-ask

会话与消息 未标注验证等级 安全审查:未标注 可信度:未标注 可安装插件

在 DSH Web UI 对话中选中文字即可引用到输入框,或在临时侧栏面板中就地提问,不留下任何会话记录。

一句话选型结论

按资料字段整理

dsh-select-ask 是会话与消息类的 DSH 可安装插件,未做沙盒验证,暂无安全审查结论,列出 4 项功能,没有现成安装命令,需要按仓库 README 接入。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类会话与消息 收录类型可安装插件 验证等级未标注验证等级 安全审查未标注
验证等级 UNKNOWN 未标注验证等级
GitHub 星标 0 复刻 0 · 未关闭 issue 0
最近更新 2026-10-05 创建于 2026-10-03
README 7.5 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

4 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-select-ask:DeepSeek Harness 对话里的划词引用与侧栏提问

  • 选中文字浮动引用/侧栏提问条
  • 引用以注释芯片形式附着输入框
  • 发送时展开为 Markdown 引用块
  • 侧栏提问不创建会话,关闭即弃

上游标签

deepseek-harnessdshdsh-plugin

验证等级与安全审查

未标注验证等级
自动化流程结论,不是人工审核
验证等级未标注验证等级上游未给出验证结论,安装前请自行确认
安全审查未标注静态分析结论,未标注不代表已通过审查
仓库健康度未标注按仓库活跃度与最近更新时间给出
可信度未标注综合仓库活跃度与验证结果

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 列出了 4 项功能,能直接看出它解决什么问题。

先想清楚的地方

  • 安全审查还没结论,装之前先看仓库改了什么、要什么权限。
  • 没有现成安装命令,要按仓库 README 手动接入。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在会话与消息场景里给 DSH 补能力的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-select-ask当前 未做沙盒验证 未标注 0 未标注 无
dsh-desktop L3 · 安装规范通过 低风险 3.0 万 未标注 无
openpets L4 · 沙盒安装通过 低风险 1,274 未标注 有
deeptide L4 · 沙盒安装通过 低风险 1,104 0.1.1-rc.2 有
jingyun-dsh L3 · 安装规范通过 低风险 1,004 未标注 有
study-mate 未做沙盒验证 未标注 856 未标注 无

仓库档案

会话与消息
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方yizhoulouislu仓库 dsh-select-ask · 默认分支 main
分类会话与消息client
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言JavaScript仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue0 / 0 / 0收录时的数值,非实时
创建 / 更新2026-10-03 · 2026-10-05最后推送 2026-10-05
本站收录2026-10-06首次进入本站目录的时间

README 全文

7.5 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-select-ask

English | 中文

Select text in the DSH Web UI conversation and either quote it into the composer or ask about
it in a throwaway side panel
— the two habits Codex users have.

What it does

Quote. Selecting text in the conversation (or anywhere outside an input) floats a small bar with
引用 / 侧栏提问. Quoting attaches an annotation to the composer instead of dumping the text
into it:

  • a pill above the composer reads 1 条注释 / 1 quote; hover it to list every annotation (numbered,
    with the quoted text), remove one, or clear all with the ×;
  • the composer text carries one icon-only chip per quote;
  • on send, each chip expands into a Markdown blockquote in the message.

Ask aside. 侧栏提问 opens a right-sidebar tab pinned to the selected fragment. The tab is a
self-contained chat: each turn is one POST to a route the host half registers, which runs a single
tool-less ctx.llm.stream call. No session is created — no session log, no workspace entry, no
child session. The transcript lives in the tab component's state, so closing it discards everything.
Model and credentials still take the normal path (the selected session's current request config,
falling back to the default selection), so adapters, retries, credentials and metering behave exactly
as they do for an ordinary turn.

How a quote reaches the model

A quote has to reach the model without filling the input box, so it rides the composer's own
reference chip mechanism rather than the draft text. Each quote is one chip whose ref is the
quoted text, whose draft projection is a short marker, and whose model form comes from this
package's own codec:

ctx.inputTriggers.registerSource({
trigger: "@",
name: "select-ask",
candidates: async () => [],       // no `@` menu group, no plain-text decoration
showGroupTitle: false,
codec: {
clipboardText: () => "[注释]",   // what the draft text shows
serialize: (ref) => Promise.resolve("\n\n" + blockquote(ref) + "\n"),  // what the model gets
},
});

Insertion and removal use the composer's scoped input events — slash/input-insert-reference to
place a chip, slash/input-consume-token with its span to delete one. Both are CAS'd against the
live draft revision, so a keystroke that lands first wins the race and the edit is retried; a chip's
detect offset is derived from the occurrence list (detectOffset = clipboardOffset − Σ(length−1) of
the chips before it), which keeps the arithmetic correct whether or not other plugins' chips sit in
the same draft.

Because the pill counts the chips in the draft (InputState.occurrences), the count, the hover
list and the model text read the same data and cannot disagree. A serialization failure blocks the
send (slash: no serializer for reference source …) instead of silently sending the marker text.

If no chip can be inserted at all (no session scope, or the revision keeps racing), the plugin
degrades to appending the quote to the draft as text and says so on the console — ugly, never lost.

Security

/dsh-select-ask/ask spends model quota, so it is guarded by isTrustedRequest(), a pure decision
over request headers with its own test (node --test test/trusted-request.test.mjs):

  • token armed — an index render really delivered this activation's token to a page, so the
    request must carry it back in x-dsh-select-ask; everything else is refused. The host half injects
    the token with webServer.tapIndex; the browser half reads it from
    window.__DSH_SELECT_ASK_TOKEN__. A custom header also keeps cross-site form posts out.
  • token unarmed — some deployments never route the window's index through
    webServer.renderIndex (observed on DSH Desktop 2.0.15), so the token never reaches a page. Then
    any request that declares a browser origin (Origin/Referer) must declare our origin, and a
    request with no origin at all is let through — it is no stronger a caller than the rest of the
    loopback surface a DSH profile already exposes.

GET /dsh-select-ask/status reports which mode is in force (guard) plus the resolved model.

Install

# from a session with Full access:
# plugin_manager action=install_bundle target=

Reload the Web UI page afterwards so the new client bundle enters the boot graph. A host-half
change (host.js) needs a DSH restart: the host module generation is cached per process, and a row's
specifier cannot be re-imported in place.

Marketplace

Submissions to the awesome-dsh-plugin
catalog are one YAML entry per plugin and one file per pull request; this repo's entry is
submission/YizhouLouisLu__dsh-select-ask.yml.

Status

Developed and verified against dsh core 0.2.0-rc.2 (DSH Desktop 2.0.15-beta.1). No engines.dsh
range is declared: only this version has actually been run.

Notes for plugin authors

Things that cost time while building this, written down because they are not obvious:

  • The host module cache is keyed by the row's specifier for the life of the process. Toggling a
    bundle off and on does not re-import it, and install_bundle on an already-installed bundle does
    not re-read its cordis.patch.yml. To make an edited host half live: remove_bundle, then
    install_bundle, with a row name that differs from the one already imported — or restart DSH.
  • A Loader row name must not be a subpath specifier. pkg/subpath fails with
    failed to import here even though plain Node resolves it.
  • Client-half edits need a page reload (client HMR only rebuilds while pnpm run dev:web runs).
  • A cordis service is readable as a property only inside a fiber that declared it. Use
    ctx.inject(['webServer'], (scope) => scope.webServer…); ctx.get('webServer') alone does not
    make ctx.webServer readable.
  • A user message bubble renders plain text plus chips, not Markdown. The shipped
    projectUserText draws runs and turns only @[label](dsh-session:…) mentions, bare @tokens and
    /commands into chips; Markdown links, HTML comments and the like are shown verbatim. So a plugin
    cannot hide content inside a user message — that would need a structured annotation field on the
    message, or the content has to travel outside it.

Limitations

  • Pending annotations live only in the composer's draft mirror. A page reload or a session switch
    while a quote is pending restores the marker as plain text and loses the quoted body (the plugin
    strips such orphan markers on mount so a bare [注释] is never sent as prose). Quotes already sent
    are in the message and unaffected.
  • The quoted text is visible in the sent bubble as a Markdown blockquote. Hiding it there is not
    possible from a plugin: the bubble renders the message text itself (see above).
  • In the composer each quote shows as an icon-only chip (label: "" plus appearance: "session";
    without an appearance the chip would render a bare @).
  • The side panel is a page-type tab: page types deduplicate within a pane, so asking again reuses
    the same tab and resets it with the new fragment.
  • Side-panel answers are rendered as plain text (line breaks preserved); there is no Markdown
    renderer there.
  • Text selected inside the side panel does not raise the toolbar again (no self-nesting).
  • The toolbar writes into the most recently mounted composer; with a sidebar chat tab open that
    may not be the main session's.

License

MIT — see LICENSE.

常见问题

7 问
答案由本站依据条目字段整理,不引用上游原文
dsh-select-ask 怎么安装?

本站没有抓到该条目的安装命令,请到仓库主页确认安装方式;这类条目多数是生态应用或尚未发布安装包的项目。

dsh-select-ask 的验证等级是什么意思?

未标注验证等级。上游未给出验证结论,安装前请自行确认

dsh-select-ask 安全吗?

未标注。

dsh-select-ask 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-select-ask 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

dsh-select-ask 有哪些功能?

选中文字浮动引用/侧栏提问条、引用以注释芯片形式附着输入框、发送时展开为 Markdown 引用块、侧栏提问不创建会话,关闭即弃。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

会话与消息
按星标排序,可作替代方案

dsh-desktop

dsh-desktop

为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。

L3 · 安装规范通过 3.0 万 星

openpets

openpets

L4 · 沙盒安装通过 1,274 星

deeptide

deeptide

L4 · 沙盒安装通过 1,104 星

jingyun-dsh

jingyun-dsh

井云 DSH 客户端插件,为 DeepSeek Harness 注入会员登录、订阅支付、算力管控与应用市场,让智能体和技能快速变成可交易商品

L3 · 安装规范通过 1,004 星

study-mate

study-mate

StudyMate 是 DSH 的「学习模式」预设与技能包,为数学、计算机科目定制学习路线、讲解课件与练习评估,跨科目共享记忆。

未标注验证等级 856 星

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 —。