dsh-artifact-linker 0.3.8 → 0.3.9

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +34 -1
  2. package/package.json +9 -1
package/CHANGELOG.md CHANGED
@@ -1,4 +1,37 @@
1
- # Changelog
1
+ # Changelog
2
+
3
+ ## 0.3.9 — 2026-10-29
4
+
5
+ ### 修:插件市场看不到下载量 / 版本号 / 搜不到
6
+
7
+ 根因不在市场,在**本包 npm 元数据缺 `repository` 字段**。
8
+
9
+ 市场目录(awesome-dsh-plugin / dsh-plugin-catalog)用 `scripts/probe-npm.mjs` 判定「这个 GitHub 仓库有没有对应的 npm 包」,判据是一行硬守卫:
10
+
11
+ ```js
12
+ const linked = repoField.toLowerCase().includes(repo.toLowerCase())
13
+ if (!linked) return { npm: null, version: null, checkedAt: today }
14
+ ```
15
+
16
+ 而本包此前的 packument 里 `repository` 是空串,`''.includes('loyalchiiina/dsh-artifact-linker')` 恒为 false → 每次探测都被判成「没发布到 npm」→ 目录里 `npm: null, version: null, downloads: null` → 市场前端 `downloadStatsText()` 见 null 直接 `return null`,整块统计不渲染。
17
+
18
+ 连带后果:
19
+ - 卡片上没有 `· ↓ N`、没有 `· v0.3.9`;
20
+ - 官方发现索引 `index.json`(只收有 npm 包+版本+发布时间的条目)里**完全搜不到**这个插件。
21
+
22
+ 目录方的这条规则是**故意的防冒领**(contributing.md:「The published package's `repository` field must point back at the repository listed here, or the two are not linked.」)。
23
+
24
+ ### 改:补齐 npm 元数据
25
+
26
+ `package.json` 新增三个字段:
27
+
28
+ ```json
29
+ "repository": { "type": "git", "url": "git+https://github.com/loyalchiiina/dsh-artifact-linker.git" },
30
+ "homepage": "https://github.com/loyalchiiina/dsh-artifact-linker#readme",
31
+ "bugs": { "url": "https://github.com/loyalchiiina/dsh-artifact-linker/issues" }
32
+ ```
33
+
34
+ 发布后,目录侧 `probe-npm.mjs` 的 `RECHECK_DAYS = 1` 规则(`entry.npm === null && ageDays(entry) > 1`)会**自动重探**,无需提 PR。重探通过后 npm / version / downloads 三个字段自动回填,下载量与版本号即出现在市场卡片上,插件也会进入官方发现索引。
2
35
 
3
36
  ## 0.3.8 — 2026-10-29
4
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-artifact-linker",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "DSH 产物路径联动器:常驻注入「产物路径铁律」让模型输出完整绝对路径,同时把聊天正文里的文件名/路径渲染成一键可点的产物芯片——左键预览、右键菜单可打开/定位/另存为/复制文件/复制路径/添加到对话框。宿主端提供回环只读路由与 /saveas /copyfile 两个文件搬运动作(Shell COM 揭示、WinForms 保存对话框、CF_HDROP 剪贴板),客户端零侵入、不改 React 节点、不接管 markdown 图片语法。解决「产物要打开得先复制路径再粘到文件管理器」的反复割裂。/ Turn declared artifact paths into one-click chips: resident system-prompt rules force absolute paths, the client half renders file names as clickable chips, and the right-click menu offers open / reveal in Explorer / save-as / copy-file / copy-path / insert-into-composer. Host routes are loopback-only; zero telemetry.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -30,6 +30,14 @@
30
30
  "icon.svg"
31
31
  ],
32
32
  "license": "MIT",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/loyalchiiina/dsh-artifact-linker.git"
36
+ },
37
+ "homepage": "https://github.com/loyalchiiina/dsh-artifact-linker#readme",
38
+ "bugs": {
39
+ "url": "https://github.com/loyalchiiina/dsh-artifact-linker/issues"
40
+ },
33
41
  "keywords": [
34
42
  "dsh-plugin",
35
43
  "deepseek-harness",