dshmarket 1.66.32 → 1.66.34
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/README.md +13 -3
- package/README.zh.md +10 -3
- package/client/client.js +470 -63
- package/lib/hot.js +11 -0
- package/lib/official-desktop.js +49 -1
- package/lib/pnpm-compat.js +14 -0
- package/lib/routes.js +50 -0
- package/lib/types/hot.d.ts +14 -0
- package/lib/types/official-desktop.d.ts +2 -0
- package/lib/types/pnpm-compat.d.ts +1 -1
- package/package.json +2 -2
- package/src/client/Diagnostics.tsx +0 -2
- package/src/client/Market.module.css +40 -4
- package/src/client/MarketSection.tsx +247 -39
- package/src/client/SettingsCard.tsx +48 -4
- package/src/client/index.ts +77 -6
- package/src/client/locales.ts +14 -0
- package/src/client/market-element.ts +10 -0
- package/src/client/section-gate.ts +6 -4
- package/src/client/sidebar-entry.ts +175 -0
- package/src/hot.ts +26 -0
- package/src/official-desktop.ts +51 -1
- package/src/pnpm-compat.ts +15 -0
- package/src/routes.ts +50 -0
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
|
|
|
9
9
|
[](https://www.npmjs.com/package/dshmarket)
|
|
10
10
|
[](https://github.com/dsh-market/dsh-market)
|
|
11
11
|
|
|
12
|
-
The plugin market inside DeepSeek Harness. Open Settings → **Plugin Market** → browse, search, one-click install.
|
|
12
|
+
The plugin market inside DeepSeek Harness. Open Settings → **Plugin Market** → browse, search, one-click install. Settings sits in the sidebar up to dsh 0.2.0 and in the account menu from 0.2.1.
|
|
13
13
|
|
|
14
14
|

|
|
15
15
|
|
|
@@ -21,7 +21,17 @@ One-click themes: install, switch live, no restart.
|
|
|
21
21
|
dsh plugin --profile web add dshmarket
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
Restart `dsh web`, then open **Settings → Plugin Market**.
|
|
24
|
+
Restart `dsh web`, then open **Settings → Plugin Market**. From dsh 0.2.1 the
|
|
25
|
+
Settings dialog moved into the account menu (the sidebar has no Settings
|
|
26
|
+
button), and the market is still a section there. If you would rather reach it
|
|
27
|
+
in one click, the market can also put its own **Plugin Market** row in the
|
|
28
|
+
sidebar; turn it on from the market's card under **Plugins**.
|
|
29
|
+
|
|
30
|
+
A host that runs under another profile name takes the same command with that
|
|
31
|
+
name instead — `dsh plugin --profile <profile> add dshmarket`. On the official
|
|
32
|
+
DSH Desktop app, install from the app's own **Settings → Plugins** rather than
|
|
33
|
+
the command line: that profile belongs to the app's plugin manager, and the CLI
|
|
34
|
+
will not change it while the app is running.
|
|
25
35
|
|
|
26
36
|
**Requires dsh web 0.1.0-rc.6 or newer.** On an older host the market
|
|
27
37
|
disables itself and says so in the browser console rather than rendering
|
|
@@ -50,7 +60,7 @@ its own dsh: it may be older than the one `npm` would give you (#139).
|
|
|
50
60
|
- **Recovery when a restart does not come back** — DSH's boot is all-or-nothing: one plugin that cannot load stops the whole process, and the market's own UI dies with the host it was serving from. Now that failure prompt offers **Adjust plugins**: the ones DSH blamed are marked red and left unticked, you choose what should be enabled at the next start, the choice is written through the same `cordis.patch.yml` rows the market's own toggles use (plus `dsh.profile.bundles` for a disable-carrier), and the boot is retried. It is served by the detached restart helper on the same address the page was already polling, so it works even though the host is gone — and opening the URL fresh renders a standalone version of the same page. When DSH starts normally, none of it appears
|
|
51
61
|
- **Zero jargon** — if a component is missing (pnpm), the market detects it and offers a one-click automatic setup
|
|
52
62
|
- **Log export** — one click produces a sanitized plain-text log for bug reports (home paths and credential shapes are masked; nothing is ever sent anywhere). The market's version sits next to the page heading, so a screenshot of a problem already carries it
|
|
53
|
-
- **Settings card** — on dsh 0.1.0-rc.7 and newer the market manages *itself*
|
|
63
|
+
- **Settings card** — on dsh 0.1.0-rc.7 and newer the market manages *itself* next to every other plugin — under **Settings → Plugins → Plugin configuration** while the host still has a Settings page, and on the market's own card on the **Plugins** page from dsh 0.2.1, where Settings is gone: see the running version, pick a **release channel** (stable, or beta to try builds still being verified — the market only, never your other plugins; a third *dev* channel appears once developer mode is switched on, and carries builds published straight off a branch), update, or remove the market — with an opt-in cleanup that also drops the disable rows it wrote, so plugins it switched off start running again rather than staying off with no UI left to switch them back on
|
|
54
64
|
- **Diagnostics** — the plugin load order and conflict surface, one page: bundle stack with official/community badges, duplicate loader entries, dependency version mismatches, multi-version core packages, overrides and invalid config entries, and leftover directories — a package directory an interrupted update left without its `package.json`, and pnpm's own `*_tmp_*` staging directories. Nothing there stops a start, so it is listed rather than warned about, and it is the only place that names what is on disk. Plain-language terms, problem blocks highlighted, everything collapsible
|
|
55
65
|
|
|
56
66
|
- **Load order** — drag community bundles into the order you want, or take the suggested one derived from the plugins' own before/after rules. Nothing is written until a trial composition passes, and the panel tells you what the new order would change (overrides, invalid or duplicate entries) before you apply it
|
package/README.zh.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
[](https://www.npmjs.com/package/dshmarket)
|
|
10
10
|
[](https://github.com/dsh-market/dsh-market)
|
|
11
11
|
|
|
12
|
-
装在 DeepSeek Harness 里的插件市场。打开设置 → **插件市场** →
|
|
12
|
+
装在 DeepSeek Harness 里的插件市场。打开设置 → **插件市场** → 逛一逛,点一下,装好。设置入口在 dsh 0.2.0 及以前位于侧边栏,0.2.1 起移到了账号菜单里。
|
|
13
13
|
|
|
14
14
|

|
|
15
15
|
|
|
@@ -21,7 +21,14 @@
|
|
|
21
21
|
dsh plugin --profile web add dshmarket
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
重启 `dsh web`,打开 **设置 →
|
|
24
|
+
重启 `dsh web`,打开 **设置 → 插件市场**。从 dsh 0.2.1 起设置窗口挪进了账号
|
|
25
|
+
菜单(侧边栏里不再有设置按钮),市场仍然是里面的一个分区。想一键进入的话,市场
|
|
26
|
+
也可以在侧边栏放一行 **插件市场**,在 **插件** 页市场的卡片上打开即可。
|
|
27
|
+
|
|
28
|
+
如果宿主用的不是 `web` 这个 profile,把它的名字写进命令即可:`dsh plugin
|
|
29
|
+
--profile <profile> add dshmarket`。官方 DSH Desktop 桌面端请在应用自己的
|
|
30
|
+
**设置 → 插件** 里安装,而不是用命令行:那个 profile 归应用的插件管理器所有,
|
|
31
|
+
应用运行期间命令行改不了它。
|
|
25
32
|
|
|
26
33
|
**需要 dsh web 0.1.0-rc.6 或更新版本。** 宿主太旧时市场会自我禁用,并在浏览器
|
|
27
34
|
控制台说明原因,而不是拿缺失的原语去渲染——如果设置里根本没出现「插件市场」这
|
|
@@ -48,7 +55,7 @@ dsh plugin --profile web add dshmarket
|
|
|
48
55
|
- **重启没起来时的恢复**——DSH 的启动是全有全无:一个插件加载失败,整个进程就退出,市场自己的界面也随宿主一起消失。现在这个失败提示处多了一个 **调整插件**:DSH 点名的插件会标红并默认取消勾选,你自己选下次启动要启用哪些,选择写进市场开关用的同一套 `cordis.patch.yml` 停用行(停用载体还会同步 `dsh.profile.bundles`),然后自动重试启动。这个恢复界面由脱离终端的重启助手在同一个地址上提供——页面原本就在轮询它,所以宿主已经没了也照样能打开;直接访问地址则会渲染同一份内容的独立页面。DSH 正常启动时,这一切都不会出现
|
|
49
56
|
- **零术语**——缺组件(pnpm)时市场自己发现、一键自动装好,全程不见命令行
|
|
50
57
|
- **导出日志**——一键生成脱敏纯文本日志方便反馈(home 路径与密钥形状已打码;任何数据都不会被上传)。市场版本号就在标题旁边,截图反馈时自带版本信息
|
|
51
|
-
- **设置卡片**——dsh 0.1.0-rc.7
|
|
58
|
+
- **设置卡片**——dsh 0.1.0-rc.7 起,市场在插件页里管理**它自己**,和其它插件并排(宿主还有设置页时在 **设置 → 插件 → 插件配置**,dsh 0.2.1 起在 **插件** 页市场自己的卡片上):看当前版本、选择**更新通道**(稳定版,或 Beta 抢先试用还在验证中的版本——只影响市场自己,不影响你装的其它插件;打开开发者模式后还会多出「开发版」通道,直接取开发分支上的构建)、更新、或者移除市场。移除时可勾选一并清理——包括市场写进补丁层的停用行,被它关掉的插件会恢复运行,而不是保持停用却再没有界面能打开它们
|
|
52
59
|
- **诊断**——插件加载顺序与冲突一页看全:bundle 栈(官方/社区徽标)、重复的 loader 条目、依赖版本不一致、核心包多版本共存、覆盖项与非法配置条目,以及残留目录——更新被打断后留下的、缺少 `package.json` 的包目录,和 pnpm 自己的 `*_tmp_*` 暂存目录。它们都不妨碍启动,所以只列出来而不报成警告,也是唯一会说清磁盘上到底有什么的地方。术语说人话,问题块高亮,全部可折叠
|
|
53
60
|
- **加载顺序**——拖拽调整社区 bundle 的顺序,或直接采用按插件自身 before/after 规则推导出的建议顺序。写入前先跑一次静态组合校验,通过才落盘;应用之前面板会告诉你这个顺序会改变什么(多少处覆盖、多少无效或重复条目)
|
|
54
61
|
- **AI 修复**——一键把诊断结果生成的修复 prompt(错误/警告/顺序冲突 + 保守的改动范围约束)复制到剪贴板,你粘进新对话,自己决定发不发。提示词会先让 Agent 判断自己是不是就是这个 profile 所在的 harness——若是,则严禁改动运行中组合、升级/重启 harness 或核心包、重装依赖,而是让它生成一份幂等的 `apply` 修改脚本和一份 `rollback` 回滚脚本,由你在外部终端执行并把输出拷回给它
|