dsh-artifact-linker 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.7 — 2026-10-28
4
+
5
+ ### 文档:加上实机截图
6
+
7
+ README 中英双版各嵌入三张真实运行截图 —— 悬停高亮、右键菜单、复制路径 —— 放在仓库 `docs/` 下。
8
+
9
+ 截图用 `raw.githubusercontent.com` 绝对地址引用,GitHub 与 npm 页面都能正常渲染;`files` 白名单不含 `docs`,所以**图片不进 npm 包体**,包大小不变。
10
+
11
+ ---
12
+
3
13
  ## 0.2.6 — 2026-10-28
4
14
 
5
15
  ### 修掉两处「看不见的破窗」
package/README.md CHANGED
@@ -31,6 +31,20 @@ Two halves, one contract.
31
31
 
32
32
  The host half closes the loop: even when the model only says `result.h5`, the route layer resolves it against the session workspace, then falls back to a shallow recursive basename search, and returns the real absolute path.
33
33
 
34
+ ## What it looks like
35
+
36
+ Hover an artifact name and it picks up a Codex-style blue dashed outline — that is the only visual hint, nothing is rewritten in your transcript:
37
+
38
+ ![Hover highlight](https://raw.githubusercontent.com/loyalchiiina/dsh-artifact-linker/main/docs/hover-highlight.png)
39
+
40
+ Right click for the three actions:
41
+
42
+ ![Context menu](https://raw.githubusercontent.com/loyalchiiina/dsh-artifact-linker/main/docs/context-menu.png)
43
+
44
+ "Copy file path" puts the real absolute path on your clipboard:
45
+
46
+ ![Copy path](https://raw.githubusercontent.com/loyalchiiina/dsh-artifact-linker/main/docs/copy-path.png)
47
+
34
48
  ## Interaction
35
49
 
36
50
  Click behaviour is decided by the modifier key — no menu, no first-time setup:
package/README.zh.md CHANGED
@@ -25,6 +25,20 @@ DSH 里预览器已经能开图片、代码、pdf、office。但**插件、脚
25
25
 
26
26
  第 1 条管「模型把路径写对」,第 2 条管「用户点得动」。缺前者,路径经常是猜的、点开是死链;缺后者,路径再对也要人去复制。
27
27
 
28
+ ## 长什么样
29
+
30
+ 悬停到产物名上,会出现 Codex 风格的蓝色虚线框——这是唯一的视觉提示,正文一个字都不会被改写:
31
+
32
+ ![悬停高亮](https://raw.githubusercontent.com/loyalchiiina/dsh-artifact-linker/main/docs/hover-highlight.png)
33
+
34
+ 右键是三个动作:
35
+
36
+ ![右键菜单](https://raw.githubusercontent.com/loyalchiiina/dsh-artifact-linker/main/docs/context-menu.png)
37
+
38
+ 「复制文件路径」把真实绝对路径放进剪贴板:
39
+
40
+ ![复制路径](https://raw.githubusercontent.com/loyalchiiina/dsh-artifact-linker/main/docs/copy-path.png)
41
+
28
42
  ---
29
43
 
30
44
  ## 交互
package/lib/client.js CHANGED
@@ -29,7 +29,7 @@ window.__ModuleLoader__.load({
29
29
  var exports = module.exports;
30
30
 
31
31
  var GUARD = "__dshArtifactLinkerV1";
32
- var VERSION = "0.2.6";
32
+ var VERSION = "0.2.7";
33
33
  // 路由前缀必须与宿主的 ROUTE_PREFIX 一致;永远根相对,绝不拼宿主 origin
34
34
  var ROUTE = "/dsh-artifact-linker";
35
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-artifact-linker",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "DSH 产物路径联动器:常驻注入「产物路径铁律」让模型输出完整绝对路径,同时把聊天正文里的文件名/路径渲染成一键可点的产物芯片——左键预览、右键在资源管理器揭示、Ctrl 点击强制系统打开。宿主端提供 /resolve /stat /info 只读回环路由(相对路径与裸文件名三源兜底、批量 stat + TTL 缓存),客户端零侵入、不改 React 节点、不接管 markdown 图片语法。解决「产物要打开得先复制路径再粘到文件管理器」的反复割裂。Zero telemetry; loopback-only routes. / Turn declared artifact paths into one-click chips: resident system-prompt rules force absolute paths, the client half renders file names as clickable chips (preview / reveal in Explorer / open with system app), and the host exposes loopback-only /resolve,/stat,/info routes with bare-filename fallback and cached batch stat.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",