dsh-preview-market 0.1.5 → 0.1.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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.7
4
+
5
+ - Catalog follows `dsh-preview-snip@0.2.0`: all preview types, plus the annotation editor (box/circle/arrow/text).
6
+
7
+ ## 0.1.6
8
+
9
+ - README: add preview-market and per-plugin screenshots, plus the current four-entry catalog list (media, Blender, STL, snip).
10
+
3
11
  ## 0.1.5
4
12
 
5
13
  - Catalog version for `dsh-preview-media` follows the media transport fallback release `0.1.5`.
package/README.md CHANGED
@@ -23,16 +23,58 @@ Upgrading from `dsh-media-preview` / `dsh-blend-preview` / `dsh-stl-preview`? Se
23
23
  - **Install / update** — delegates to `dsh-market` when it is present. Without it, the card shows the exact `dsh plugin --profile <profile> add <package>@<version>` command to copy.
24
24
  - **Independent plugins** — media, Blender and STL remain separate packages; this page has no renderer and does not merge their code.
25
25
 
26
- ## Catalog (0.1.5)
26
+ ## Screenshots
27
+
28
+ ### Preview market
29
+
30
+ The top-level **Settings → Preview market** section, next to dsh-market, with the Discover / Installed tabs and the current four entries:
31
+
32
+ ![Preview market section](https://raw.githubusercontent.com/439436269-ctrl/dsh-preview-market/main/docs/preview-market-section.png)
33
+
34
+ ### Installed cards and controls
35
+
36
+ Each installed entry keeps the same controls: status, copyable install command, enable/disable through dsh-market, and a Configure entry.
37
+
38
+ ![Installed cards and controls](https://raw.githubusercontent.com/439436269-ctrl/dsh-preview-market/main/docs/preview-market-toggle.png)
39
+
40
+ ## Current preview plugins
41
+
42
+ | Plugin | Opens | Formats | Host requirement |
43
+ |---|---|---|---|
44
+ | [`dsh-preview-media`](https://github.com/439436269-ctrl/dsh-preview-media) | Video and audio | mp4/mov/webm/mkv + mp3/flac/wav/… | — |
45
+ | [`dsh-preview-blender`](https://github.com/439436269-ctrl/dsh-preview-blender) | Blender scenes | `.blend` | Blender 3.6+ |
46
+ | [`dsh-preview-stl`](https://github.com/439436269-ctrl/dsh-preview-stl) | STL meshes | `.stl` | — |
47
+ | [`dsh-preview-snip`](https://github.com/439436269-ctrl/dsh-preview-snip) | Tool: circle a region or quote text | no file extension | — |
48
+
49
+ ### dsh-preview-media
50
+
51
+ Play video/audio in the right-Sidebar document preview, streamed over an authenticated HTTP Range route. Desktop seeking uses the token-guarded loopback origin; `0.1.5` also retries the authenticated route when the loopback reports a code-4 media error.
52
+
53
+ ![Video preview](https://raw.githubusercontent.com/439436269-ctrl/dsh-preview-market/main/docs/preview-media.png)
54
+
55
+ ### dsh-preview-blender
56
+
57
+ A `.blend` file is exported to a cached GLB by Blender headless, then rendered in a dependency-free WebGL viewport with scene statistics.
58
+
59
+ ![Blender preview](https://raw.githubusercontent.com/439436269-ctrl/dsh-preview-market/main/docs/preview-blender.png)
60
+
61
+ ### dsh-preview-stl
62
+
63
+ STL is parsed in the browser; the viewport reports size, volume, surface area and watertightness without uploading the mesh.
64
+
65
+ ![STL preview](https://raw.githubusercontent.com/439436269-ctrl/dsh-preview-market/main/docs/preview-stl.png)
66
+
67
+ ### dsh-preview-snip
68
+
69
+ A preview-header tool: drag a rectangle over an image/PDF to attach a PNG, or quote selected text into the composer.
70
+
71
+ ![Preview snip](https://raw.githubusercontent.com/439436269-ctrl/dsh-preview-market/main/docs/preview-snip.png)
72
+
73
+ ## Catalog (0.1.7)
27
74
 
28
75
  Every plugin is **one file** under [`catalog/plugins/`](catalog/plugins/), named `<owner>__<repo>.json`. A third-party submission adds exactly one file plus the regenerated `catalog.json` snapshot — no market code change. The Host loads, validates and merges all files at startup; the format and PR steps are in [`catalog/README.md`](catalog/README.md).
29
76
 
30
- | Package | Formats | Host requirement |
31
- |---|---|---|
32
- | `dsh-preview-media` | mp4/mov/webm/mkv + mp3/flac/wav/… | — |
33
- | `dsh-preview-blender` | `.blend` | Blender 3.6+ |
34
- | `dsh-preview-stl` | `.stl` | — |
35
- | `dsh-preview-snip` | Tool: circle/quote in image or PDF preview | — |
77
+ Preview entries use `kind: "media"` or `"three"` and declare their extensions; `dsh-preview-snip` uses `kind: "tool"`, which has no file extensions and is displayed as a tool card.
36
78
 
37
79
  ## Configuration
38
80
 
@@ -86,4 +128,4 @@ The client bundle is `lib/client.js` (classic `__ModuleLoader__.load` factory, n
86
128
 
87
129
  ## Status
88
130
 
89
- `0.1.5` — top-level Settings → Preview market section with Discover / Installed tabs, plus the Settings → Plugins tab. The catalog is one file per plugin under `catalog/plugins/` (preview plugins and tool entries such as the preview snip), so third-party entries are a one-file PR. Enable/disable goes through dsh-market. One-click install requires the package in the connected dsh-market registry; otherwise use the copyable command. Configuration stays in each child plugin's own Settings → Plugins page.
131
+ `0.1.7` — top-level Settings → Preview market section with Discover / Installed tabs, plus the Settings → Plugins tab. The catalog is one file per plugin under `catalog/plugins/` (preview plugins and tool entries such as the preview snip), so third-party entries are a one-file PR. Enable/disable goes through dsh-market. One-click install requires the package in the connected dsh-market registry; otherwise use the copyable command. Configuration stays in each child plugin's own Settings → Plugins page.
package/README.zh.md CHANGED
@@ -23,16 +23,58 @@ dsh plugin --profile <profile> add dsh-preview-market
23
23
  - **安装/更新** — 检测到 dsh-market 时委托给它;没有时显示可复制的 `dsh plugin --profile <profile> add <包>@<版本>` 命令。
24
24
  - **独立插件** — media、Blender、STL 仍是独立包;本页不注册渲染器,也不合并它们的代码。
25
25
 
26
- ## 目录(0.1.5)
26
+ ## 截图
27
+
28
+ ### 预览市场
29
+
30
+ 顶层 **设置 → 预览市场**,紧跟「插件市场」,包含发现 / 已安装两个 tab 和当前四个条目:
31
+
32
+ ![设置里的预览市场](https://raw.githubusercontent.com/439436269-ctrl/dsh-preview-market/main/docs/preview-market-section.png)
33
+
34
+ ### 已安装卡片与操作
35
+
36
+ 已安装条目复用同一套操作:状态、可复制安装命令、通过 dsh-market 启用/停用,以及配置入口。
37
+
38
+ ![已安装卡片与操作](https://raw.githubusercontent.com/439436269-ctrl/dsh-preview-market/main/docs/preview-market-toggle.png)
39
+
40
+ ## 当前预览插件
41
+
42
+ | 插件 | 打开什么 | 格式 | 宿主依赖 |
43
+ |---|---|---|---|
44
+ | [`dsh-preview-media`](https://github.com/439436269-ctrl/dsh-preview-media) | 视频与音频 | mp4/mov/webm/mkv + mp3/flac/wav/… | — |
45
+ | [`dsh-preview-blender`](https://github.com/439436269-ctrl/dsh-preview-blender) | Blender 场景 | `.blend` | Blender 3.6+ |
46
+ | [`dsh-preview-stl`](https://github.com/439436269-ctrl/dsh-preview-stl) | STL 网格 | `.stl` | — |
47
+ | [`dsh-preview-snip`](https://github.com/439436269-ctrl/dsh-preview-snip) | 工具:圈选或引用选中 | 无文件扩展名 | — |
48
+
49
+ ### dsh-preview-media
50
+
51
+ 在右侧栏播放视频/音频,经带鉴权的 HTTP Range 路由流式读取;桌面端 seek 走 token 保护的 loopback 源,0.1.5 在 loopback 报 code 4 时再回退认证路由重试。
52
+
53
+ ![视频预览](https://raw.githubusercontent.com/439436269-ctrl/dsh-preview-market/main/docs/preview-media.png)
54
+
55
+ ### dsh-preview-blender
56
+
57
+ `.blend` 由 Blender headless 导出缓存 GLB,再用零依赖 WebGL 视口渲染,并给出场景统计。
58
+
59
+ ![Blender 预览](https://raw.githubusercontent.com/439436269-ctrl/dsh-preview-market/main/docs/preview-blender.png)
60
+
61
+ ### dsh-preview-stl
62
+
63
+ STL 在浏览器解析;视口给出尺寸、体积、表面积和水密性,不上传网格。
64
+
65
+ ![STL 预览](https://raw.githubusercontent.com/439436269-ctrl/dsh-preview-market/main/docs/preview-stl.png)
66
+
67
+ ### dsh-preview-snip
68
+
69
+ 预览标题栏工具:在图片/PDF 上拖框截成 PNG,或把选中文字引用进输入框。
70
+
71
+ ![预览圈选](https://raw.githubusercontent.com/439436269-ctrl/dsh-preview-market/main/docs/preview-snip.png)
72
+
73
+ ## 目录(0.1.7)
27
74
 
28
75
  每个插件是 [`catalog/plugins/`](catalog/plugins/) 下的**一个文件**,命名为 `<owner>__<repo>.json`。三方收录只需新增一个文件 + 重新生成 `catalog.json`,不用改市场代码;Host 启动时读取、校验并合并全部文件。字段与 PR 步骤见 [`catalog/README.md`](catalog/README.md)。
29
76
 
30
- | 包 | 格式 | 宿主依赖 |
31
- |---|---|---|
32
- | `dsh-preview-media` | mp4/mov/webm/mkv + mp3/flac/wav/… | — |
33
- | `dsh-preview-blender` | `.blend` | Blender 3.6+ |
34
- | `dsh-preview-stl` | `.stl` | — |
35
- | `dsh-preview-snip` | 工具:图片/PDF 圈选或引用选中 | — |
77
+ 预览条目用 `kind: "media"` 或 `"three"` 并声明扩展名;`dsh-preview-snip` 用 `kind: "tool"`,没有文件扩展名,卡片显示为工具。
36
78
 
37
79
  ## 配置
38
80
 
@@ -60,4 +102,4 @@ node --test test/*.test.js
60
102
 
61
103
  ## 状态
62
104
 
63
- `0.1.5` — 顶层「设置 → 预览市场」+ 发现/已安装两个 tab,同时保留「设置 → 插件」里的入口。目录改为 `catalog/plugins/` 下一插件一文件,支持预览插件和 `kind: "tool"` 的增强工具(如预览圈选),三方收录只需一个文件 PR。启用/停用走 dsh-market;一键安装要求对应包已进入所连接 dsh-market 的 registry,否则用可复制命令。配置仍在各子插件自己的 设置 → 插件 页面。
105
+ `0.1.7` — 顶层「设置 → 预览市场」+ 发现/已安装两个 tab,同时保留「设置 → 插件」里的入口。目录改为 `catalog/plugins/` 下一插件一文件,支持预览插件和 `kind: "tool"` 的增强工具(如预览圈选),三方收录只需一个文件 PR。启用/停用走 dsh-market;一键安装要求对应包已进入所连接 dsh-market 的 registry,否则用可复制命令。配置仍在各子插件自己的 设置 → 插件 页面。
@@ -4,11 +4,11 @@
4
4
  "capability": "snip",
5
5
  "kind": "tool",
6
6
  "repo": "https://github.com/439436269-ctrl/dsh-preview-snip",
7
- "version": "0.1.0",
7
+ "version": "0.2.0",
8
8
  "minDsh": "0.2.0-rc.2",
9
9
  "requires": [],
10
10
  "description": {
11
- "zh": "图片/PDF 预览圈选截图,或引用选中文字,直接插入输入框。",
12
- "en": "Circle an image/PDF preview region or quote selected text into the composer."
11
+ "zh": "图片/PDF/视频/3D/文本等所有预览的圈选;全能圈选支持方框、圆形、箭头、文字标注后再插入。",
12
+ "en": "Snip any preview (image/PDF/video/3D/text) and annotate with box, circle, arrow or text before inserting."
13
13
  }
14
14
  }
package/catalog.json CHANGED
@@ -103,12 +103,12 @@
103
103
  "capability": "snip",
104
104
  "kind": "tool",
105
105
  "repo": "https://github.com/439436269-ctrl/dsh-preview-snip",
106
- "version": "0.1.0",
106
+ "version": "0.2.0",
107
107
  "minDsh": "0.2.0-rc.2",
108
108
  "requires": [],
109
109
  "description": {
110
- "zh": "图片/PDF 预览圈选截图,或引用选中文字,直接插入输入框。",
111
- "en": "Circle an image/PDF preview region or quote selected text into the composer."
110
+ "zh": "图片/PDF/视频/3D/文本等所有预览的圈选;全能圈选支持方框、圆形、箭头、文字标注后再插入。",
111
+ "en": "Snip any preview (image/PDF/video/3D/text) and annotate with box, circle, arrow or text before inserting."
112
112
  },
113
113
  "extensions": [],
114
114
  "formats": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-preview-market",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Vertical preview market for DeepSeek Harness: discover, install and configure preview plugins (media, Blender, STL, ...) from one panel.",
5
5
  "type": "module",
6
6
  "license": "MIT",