Skip to content

Releases

v0.3.1 - 本地化说明

Choose a tag to compare

@AL1ghtm3ter AL1ghtm3ter released this 05 Oct 19:18

让菜单文案跟随 DSH 的界面语言,并把这件事写清楚。

新增

  • LOCALIZATION.md(中英双语):本插件只注册 zh 与 en 两套字典,读取走 DSH 的 locale 服务,查表顺序是「当前语言 → 它声明的回退链 → en」。所以界面是中文就显示中文,是英文就显示英文,是其它语言(含尚未翻译本命名空间的第三方语言包)就回落到英文——不会漏出 menu.copyPath 这类原始键。
  • 文档里附了完整 44 个键的对照表,以及给语言包作者的写法(命名空间 right-click-menu,逐语言注册,可以只翻一部分,注意保留 {what} {path} {name} {size} 占位符)。

安装

dsh plugin --profile <profile> add github:AL1ghtm3ter/dsh-right-click-menu

Documented how the plugin follows the interface language.

  • LOCALIZATION.md (Chinese and English): the plugin registers only zh and en, and
    lookup walks active language → its declared fallback chain → en, so a raw key such as
    menu.copyPath can never surface.
  • The document carries the complete 44-key table and the recipe for language packs
    (namespace right-click-menu, per-locale registration, partial dictionaries welcome;
    keep the {what} {path} {name} {size} placeholders).

v0.3.0 - 更名为 dsh-right-click-menu

Choose a tag to compare

@AL1ghtm3ter AL1ghtm3ter released this 04 Oct 18:55

更名版本:项目改名为 dsh-right-click-menu。

变更

  • 包名、Loader 行 id、浏览器注册 id、语言命名空间、槽位 id 和宿主路由前缀统一换成新名。
  • GitHub 仓库已重命名,旧地址自动 301 跳转,旧链接不会断。
  • README.md 现在是中文版(仓库首页显示的就是它),英文版移到 README.en.md;两份都补了用法教程和「给 Agent 的一句话」。
  • 修正文档里宿主半的验证方法:整台服务器都先拦请求的部署,对任何路径(包括不存在的)都返回 403,所以不能靠 401/404 判断路由是否存在——改用需要走路由的菜单项来验。

安装

dsh plugin --profile <profile> add github:AL1ghtm3ter/dsh-right-click-menu

或在网页界面里:Plugins → Add plugin,粘贴
https://github.com/AL1ghtm3ter/dsh-right-click-menu/releases/latest/download/dsh-right-click-menu.tgz。


Renamed release: the project is now dsh-right-click-menu.

  • Package name, Loader row id, browser registration id, locale namespace, slot occupant id and
    host route prefix all move together. The GitHub repository is renamed with a 301 redirect, so
    the old links keep working.
  • README.md is now the Chinese one and README.en.md the English one; both gained a usage
    tutorial and an agent-facing one-liner.
  • The documented host-half verification no longer claims that a 401-vs-404 probe proves a
    route exists: a deployment that gates the whole server answers 403 for every path, routes
    included.

v0.2.0 - links, and bilingual docs

Choose a tag to compare

@AL1ghtm3ter AL1ghtm3ter released this 04 Oct 18:46

第二个版本:右键菜单覆盖到了超链接,文档也补成了中英双语。

新增

  • 超链接右键菜单。 任何链接都能右键:「在侧边栏中打开」「在外部浏览器中打开」「复制链接地址」「复制链接文字」「复制为 Markdown 链接」。链接本身指向文件时(dsh-resource://、file://、api/file?path=),同一个菜单里还会补上完整的文件动作。
  • 聊天里的文件提及改为读按钮的 title,所以名字里带空格的路径能精确解析,不再靠可见文字去猜。
  • 中文 README(README.md,仓库首页显示的就是它)、英文版 README.en.md、中英双语用法教程,以及给 Agent 的一句话安装指令;另外补了 AGENTS.md,记录本仓库的约定与发版清单。

变更

  • http/https 链接现在分成「在侧边栏中打开」和「在外部浏览器中打开」两项;其它目标保留一项「打开链接」。

安装

dsh plugin --profile <profile> add github:AL1ghtm3ter/dsh-file-context-menu

或者在网页界面里:Plugins → Add plugin,粘贴
https://github.com/AL1ghtm3ter/dsh-file-context-menu/releases/latest/download/dsh-file-context-menu.tgz。


Second release: the right-click menu now covers hyperlinks, and the documentation is bilingual
(Chinese is the primary README).

  • Hyperlink surface. Right-click any link for open in sidebar, open in external browser,
    copy link address, copy link text, and copy as Markdown link. A link that names a file
    (dsh-resource://, file://, api/file?path=) also gets the full file row set in the same menu.
  • Chat file mentions are read from the mention button's title, so paths containing spaces
    resolve exactly instead of being guessed from the visible text.
  • Chinese README.md (the file GitHub renders by default), English README.en.md, a usage
    tutorial in both languages, an agent-facing one-liner, and AGENTS.md with this repository's
    invariants and release checklist.
  • "Open in sidebar" and "Open in external browser" are separate rows for HTTP(S) links; other
    destinations keep a single "open link" row.

v0.1.0

Choose a tag to compare

@AL1ghtm3ter AL1ghtm3ter released this 04 Oct 18:30

First release of the DSH file context menu plugin.

Install (any of):

dsh plugin --profile <profile> add github:AL1ghtm3ter/dsh-file-context-menu
dsh plugin --profile <profile> add https://github.com/AL1ghtm3ter/dsh-file-context-menu/releases/latest/download/dsh-file-context-menu.tgz

Or in the Web UI: sidebar Plugins -> Add plugin, paste either spec.

Contents: the plugin package exactly as npm pack builds it (9 files: lib/index.js,
lib/client.js, cordis.patch.yml, icon.svg, locale/en.json, locale/zh.json, README.md,
LICENSE, package.json). No build step, no install scripts.