dshmarket 1.16.0 → 1.16.2
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 +11 -4
- package/README.zh.md +11 -4
- package/client/client.js +432 -256
- package/client/client.js.map +1 -1
- package/lib/dsh-cli.js +47 -1
- package/lib/profile.js +32 -7
- package/lib/types/dsh-cli.d.ts +20 -0
- package/package.json +1 -1
- package/src/client/Market.module.css +34 -8
- package/src/client/MarketSection.tsx +382 -178
- package/src/client/locales.ts +6 -0
- package/src/dsh-cli.ts +44 -1
- package/src/profile.ts +31 -7
package/README.md
CHANGED
|
@@ -15,9 +15,7 @@ The plugin market inside DeepSeek Harness. Open Settings → **Plugin Market**
|
|
|
15
15
|
|
|
16
16
|

|
|
17
17
|
|
|
18
|
-
One-click themes
|
|
19
|
-
|
|
20
|
-

|
|
18
|
+
One-click themes: install, switch live, no restart.
|
|
21
19
|
|
|
22
20
|
## Install
|
|
23
21
|
|
|
@@ -64,7 +62,16 @@ Installs prefer npm tarballs over full-repo GitHub downloads whenever a plugin p
|
|
|
64
62
|
- The install endpoint accepts same-origin POST only; the market never phones home
|
|
65
63
|
- Backups can contain credentials from your profile config — the UI warns before export and upload; WebDAV sync is https-only, refuses private-network targets, and never stores your password in the browser
|
|
66
64
|
- The restart endpoint additionally requires a direct loopback client (forwarded requests are rejected) and relaunches the exact DSH entry, arguments, environment, and working directory
|
|
67
|
-
- One-click restart launches a detached replacement. If DSH is managed by systemd, launchd, pm2, or another supervisor,
|
|
65
|
+
- One-click restart launches a detached replacement. If DSH is managed by systemd, launchd, pm2, or another supervisor, turn the restart button off and let the supervisor own restarts instead; the pending-change notice remains visible but the button is hidden. Either flip **Allow restart** off in **Settings → Plugins → Plugin configuration**, or write it into the profile patch — where it has to sit under `config:`, because the loader passes only that sub-object to a plugin and a top-level `allowRestart:` is silently ignored (#227 by @Fantasymax):
|
|
66
|
+
|
|
67
|
+
```yaml
|
|
68
|
+
- id: dsh-market
|
|
69
|
+
name: dshmarket
|
|
70
|
+
config:
|
|
71
|
+
allowRestart: false # NOT at the top level beside `name:`
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
`GET /dsh-market/status` reports `"restart": false` once it has taken effect.
|
|
68
75
|
- For terminal-attached launches, the detached replacement keeps running after the original terminal closes
|
|
69
76
|
- Listing ≠ endorsement: plugins are third-party code, install sources you trust
|
|
70
77
|
|
package/README.zh.md
CHANGED
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|

|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-

|
|
18
|
+
主题一键换:装完即生效,点一下切换,不用重启。
|
|
21
19
|
|
|
22
20
|
## 安装
|
|
23
21
|
|
|
@@ -61,7 +59,16 @@ dsh plugin --profile web add dshmarket
|
|
|
61
59
|
- 安装接口只接受同源 POST;市场不会向任何地方上报数据
|
|
62
60
|
- 备份可能包含 profile 配置里的密钥——导出与上传前 UI 会明确提醒;WebDAV 同步仅限 https、拒绝内网地址,且密码永不落盘浏览器
|
|
63
61
|
- 重启接口还要求客户端直接来自环回地址(拒绝代理转发请求),并使用原入口、参数、环境和工作目录重新启动 DSH
|
|
64
|
-
- 一键重启会启动脱离终端的替代进程。若 DSH 由 systemd、launchd、pm2
|
|
62
|
+
- 一键重启会启动脱离终端的替代进程。若 DSH 由 systemd、launchd、pm2 等进程管理器托管,请关掉重启按钮,交由管理器负责重启;待重启提示仍会显示,但按钮会隐藏。两种做法:在**设置 → 插件 → 插件配置**里关掉「允许重启」,或者写进 profile 补丁——注意必须嵌在 `config:` 下面,因为 loader 只把这个子对象传给插件,写在顶层会静默失效(#227,感谢 @Fantasymax):
|
|
63
|
+
|
|
64
|
+
```yaml
|
|
65
|
+
- id: dsh-market
|
|
66
|
+
name: dshmarket
|
|
67
|
+
config:
|
|
68
|
+
allowRestart: false # 不要和 `name:` 并排写在顶层
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
生效后 `GET /dsh-market/status` 会返回 `"restart": false`。
|
|
65
72
|
- 从终端启动时,替代进程脱离原终端,关闭原终端后仍会继续运行
|
|
66
73
|
- 收录 ≠ 背书:插件是第三方代码,请只安装你信任的来源
|
|
67
74
|
|