dsh-mineru 0.1.16 → 0.1.17

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
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to **dsh-mineru** are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/), and versioning follows [Semantic Versioning](https://semver.org/lang/zh-CN/). 版本号唯一来源是 `package.json`。
4
4
 
5
+ ## [0.1.17] - 2026-11-11
6
+
7
+ ### Fixed
8
+
9
+ - The MinerU settings panel could be unreachable: the client only registered a `settings.plugins.tab` contribution, and a deployment whose composition ships no Plugins settings section never renders that slot, so the tab was dropped silently and Settings showed no MinerU entry at all. The panel now also registers a standalone `settings.section` (with a `settings.section.icon`), which every settings dialog renders; the tab registration stays for deployments that do have the Plugins section.
10
+
5
11
  ## [0.1.16] - 2026-11-11
6
12
 
7
13
  ### Fixed
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # dsh-mineru
2
2
 
3
3
  [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
4
- [![version](https://img.shields.io/badge/version-0.1.16-blue)](https://github.com/Lee-Hilex/dsh-mineru/releases)
4
+ [![version](https://img.shields.io/badge/version-0.1.17-blue)](https://github.com/Lee-Hilex/dsh-mineru/releases)
5
5
  [![dsh](https://img.shields.io/badge/DeepSeek%20Harness-0.2.0--rc.2-4d6bfe)](https://github.com/deepseek-ai/deepseek-harness)
6
6
  [![MinerU](https://img.shields.io/badge/MinerU-API-4d6bfe)](https://mineru.net/apiManage/docs)
7
7
 
package/README.zh.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # dsh-mineru
2
2
 
3
3
  [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
4
- [![version](https://img.shields.io/badge/version-0.1.16-blue)](https://github.com/Lee-Hilex/dsh-mineru/releases)
4
+ [![version](https://img.shields.io/badge/version-0.1.17-blue)](https://github.com/Lee-Hilex/dsh-mineru/releases)
5
5
  [![dsh](https://img.shields.io/badge/DeepSeek%20Harness-0.2.0--rc.2-4d6bfe)](https://github.com/deepseek-ai/deepseek-harness)
6
6
  [![MinerU](https://img.shields.io/badge/MinerU-API-4d6bfe)](https://mineru.net/apiManage/docs)
7
7
 
package/lib/client.js CHANGED
@@ -26,6 +26,7 @@ window.__ModuleLoader__.load({
26
26
  "settings.retry": "重试",
27
27
  "settings.loadFail": "加载配置失败: {err}",
28
28
  "settings.title": "MinerU 文档解析",
29
+ "settings.nav": "MinerU 解析",
29
30
  "badge.tokenOk": "Token 已配置",
30
31
  "badge.tokenMissing": "未配置 Token",
31
32
  "badge.current": "当前: {api}",
@@ -122,6 +123,7 @@ window.__ModuleLoader__.load({
122
123
  "settings.retry": "Retry",
123
124
  "settings.loadFail": "Failed to load settings: {err}",
124
125
  "settings.title": "MinerU Document Parsing",
126
+ "settings.nav": "MinerU",
125
127
  "badge.tokenOk": "Token configured",
126
128
  "badge.tokenMissing": "No token",
127
129
  "badge.current": "Current: {api}",
@@ -789,6 +791,37 @@ window.__ModuleLoader__.load({
789
791
  } catch (e) { /* locale service unavailable: zh fallback stays */ }
790
792
  }
791
793
 
794
+ // A deployment whose composition ships no Plugins settings section
795
+ // never renders `settings.plugins.tab`, so the registration below is
796
+ // silently dropped there. `settings.section` is the surface every
797
+ // settings dialog renders, so the panel gets a standalone entry of its
798
+ // own; the tab registration stays for deployments that do have the
799
+ // Plugins section.
800
+ ctx.slots.inject("settings.section.icon", () => ctx.slots.register({
801
+ name: "settings.section.icon",
802
+ id: "mineru",
803
+ order: 30,
804
+ label: () => T("settings.nav"),
805
+ }, ({ size }) => jsx("svg", {
806
+ width: size || 16,
807
+ height: size || 16,
808
+ viewBox: "0 0 24 24",
809
+ fill: "none",
810
+ xmlns: "http://www.w3.org/2000/svg",
811
+ children: [
812
+ jsx("path", { d: "M7 3h7l4 4v14H7z", stroke: "currentColor", strokeWidth: "1.7", strokeLinejoin: "round" }),
813
+ jsx("path", { d: "M14 3v4h4", stroke: "currentColor", strokeWidth: "1.7", strokeLinejoin: "round" }),
814
+ jsx("path", { d: "M9.5 13h5M9.5 17h5", stroke: "currentColor", strokeWidth: "1.7", strokeLinecap: "round" }),
815
+ ],
816
+ })));
817
+
818
+ ctx.slots.inject("settings.section", () => ctx.slots.register({
819
+ name: "settings.section",
820
+ id: "mineru",
821
+ order: 30,
822
+ label: () => T("settings.nav"),
823
+ }, MineruSettingsTab));
824
+
792
825
  ctx.slots.inject("settings.plugins.tab", () => ctx.slots.register({
793
826
  name: "settings.plugins.tab",
794
827
  id: "mineru",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mineru",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "dsh-mineru: MinerU 文档解析插件 for DeepSeek Harness — 多模态全格式 (PDF/Word/PPT/Excel/HTML/图片) → 结构化 Markdown. 填 Token 走精准解析 API, 留空走 Agent 轻量解析 API. 注意: 解析需把文件上传至 MinerU 远端(内容出网), 无完全离线模式, 涉密/不得出网材料请勿使用.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",