@ash-qw/dsh-theme-prts 0.1.93 → 0.1.94
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 +6 -1
- package/README.en.md +21 -50
- package/README.md +22 -51
- package/lib/client.js +199 -19
- package/package.json +1 -1
- package/src/client/conversation-scale-adapter.js +37 -10
- package/src/client/operations-shell-v2.js +120 -4
- package/src/client/particle-field-adapter.js +45 -3
- package/src/client/resize-shield-adapter.js +5 -0
- package/src/styles/prts.css +40 -11
package/CHANGELOG.md
CHANGED
package/README.en.md
CHANGED
|
@@ -11,48 +11,46 @@ A personal, non-commercial Arknights / P.R.T.S. fan UI plugin for DeepSeek Harne
|
|
|
11
11
|
>
|
|
12
12
|
> This project and its release packages may be suspended, restricted, or have relevant material removed at any time in response to a rights-holder request, platform policy, or maintainer decision. Continued availability is not guaranteed.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Tested with DeepSeek Harness Web `0.1.1-rc.2`. The theme is disabled by default.
|
|
15
15
|
|
|
16
16
|
## Install and update
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
In an environment where DSH Web already runs normally, execute:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
|
|
22
|
-
docker restart deepseek-harness
|
|
21
|
+
npx @deepseek-ai/dsh plugin --profile web add @ash-qw/dsh-theme-prts
|
|
23
22
|
```
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
Restarting DSH Web after installation or update is recommended to ensure the theme is fully loaded. Then enable it under “Settings → Plugins → P.R.T.S.” The Rhodes Island emblem at the upper left of the main interface opens the complete appearance controls.
|
|
26
25
|
|
|
27
|
-
|
|
26
|
+
The theme is published publicly on npm and requires no GitHub login or access token. Run the install command again to update to `latest`; to pin a release, use `@ash-qw/dsh-theme-prts@<version>`. If the command reports `pnpm not found`, install pnpm first.
|
|
28
27
|
|
|
29
28
|
## Current feature set
|
|
30
29
|
|
|
31
|
-
- Facility-style P.R.T.S.
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
- Rhodes Island, Lungmen, Penguin Logistics, Rhine Lab, and Reunion particle marks with structure-complete orthogonal layouts and independent five-level conversation/hero density; regular conversations also expose a 0×–2× scroll-follow speed, where faster movement reaches fracture and faction changes sooner;
|
|
37
|
-
- a staged P.R.T.S. startup sequence on manual theme enable and activated-theme refresh, using the original P.R.T.S. mark, progress telemetry, a compact phone treatment, and a reduced-motion completion state;
|
|
38
|
-
- desktop, tablet, phone, reduced-motion, and reduced-transparency accommodations, with an option to keep the leftmost P.R.T.S. navigation hidden by default at every viewport width;
|
|
30
|
+
- Facility-style P.R.T.S. / Rhodes Island / RIIC workspaces, sessions, and conversations;
|
|
31
|
+
- day/night modes synchronized with Harness, three appearance presets, and four material levels;
|
|
32
|
+
- city silhouettes, faction particle marks, session waveforms, and a P.R.T.S. startup sequence;
|
|
33
|
+
- a conversation scale with Q/A previews and click-to-message navigation;
|
|
34
|
+
- desktop, tablet, phone, reduced-motion, and reduced-transparency accommodations;
|
|
39
35
|
- no runtime network requests, analytics, or telemetry.
|
|
40
36
|
|
|
41
|
-
##
|
|
37
|
+
## Usage and settings
|
|
42
38
|
|
|
43
|
-
The Rhodes Island emblem at the upper left
|
|
39
|
+
“Settings → Plugins → P.R.T.S.” provides the theme and startup-animation switches. The Rhodes Island emblem at the upper left of the main interface provides presets, environment texture, particle marks, interface material, navigation, accessibility, and conversation navigation controls.
|
|
44
40
|
|
|
45
|
-
|
|
41
|
+
The theme does not proactively restyle menus, dialogs, or overlays created by third-party plugins.
|
|
46
42
|
|
|
47
|
-
|
|
43
|
+
## Recovery and removal
|
|
48
44
|
|
|
49
|
-
|
|
45
|
+
Append `?prts-safe=1` to block all visual mounts while retaining the basic switches and recovery note under “Settings → Plugins → P.R.T.S.” Deleting `dsh.ui.prts.v1` returns the next load to the default disabled state.
|
|
50
46
|
|
|
51
|
-
|
|
47
|
+
```bash
|
|
48
|
+
npx @deepseek-ai/dsh plugin --profile web remove @ash-qw/dsh-theme-prts
|
|
49
|
+
```
|
|
52
50
|
|
|
53
|
-
|
|
51
|
+
Restarting DSH Web after removal is recommended. Browser theme preferences are retained. Avoid enabling multiple full-page themes at once because their CSS may conflict.
|
|
54
52
|
|
|
55
|
-
## Development
|
|
53
|
+
## Development
|
|
56
54
|
|
|
57
55
|
Node.js 18 or newer is required:
|
|
58
56
|
|
|
@@ -61,31 +59,4 @@ npm ci
|
|
|
61
59
|
npm run check
|
|
62
60
|
```
|
|
63
61
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
## Read-only live acceptance
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
PRTS_LIVE_TARGET=<NAS-IP>:3080 npm run test:e2e:live
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
The suite temporarily proxies trusted `127.0.0.1:3080` to the target without changing Docker networking, reverse proxy, or DNS. Without `PRTS_LIVE_WRITE`, it creates no session and performs no model call.
|
|
73
|
-
|
|
74
|
-
## Recovery and removal
|
|
75
|
-
|
|
76
|
-
Append `?prts-safe=1` to block all visual mounts while retaining the basic switches and recovery note under “Settings → Plugins → P.R.T.S.” Deleting `dsh.ui.prts.v1` returns the next load to the default disabled state.
|
|
77
|
-
|
|
78
|
-
```bash
|
|
79
|
-
docker exec deepseek-harness dsh plugin --profile web remove dsh-theme-prts
|
|
80
|
-
docker restart deepseek-harness
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
Other installed skins are not modified. Avoid enabling multiple full-page themes at once because their CSS may conflict.
|
|
84
|
-
|
|
85
|
-
## Changelog
|
|
86
|
-
|
|
87
|
-
See [CHANGELOG.md](CHANGELOG.md) for release history.
|
|
88
|
-
|
|
89
|
-
## Rights
|
|
90
|
-
|
|
91
|
-
Original code is provided under the MIT License. Third-party names, character images, emblems, and derivative material are outside the MIT grant, and this project grants no downstream rights in that material. See [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
|
|
62
|
+
See [CHANGELOG.md](CHANGELOG.md) for release history and [RELEASING.md](RELEASING.md) for maintainer release instructions.
|
package/README.md
CHANGED
|
@@ -11,65 +11,34 @@
|
|
|
11
11
|
>
|
|
12
12
|
> 本项目及其发行包可能因权利人请求、平台政策或维护者决定,随时暂停发布、限制下载或移除相关素材,不保证持续提供。
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
已适配 DeepSeek Harness Web `0.1.1-rc.2`。主题安装后默认关闭,不会立即改变页面。
|
|
15
15
|
|
|
16
16
|
## 安装与更新
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
在已经可以正常运行 DSH Web 的环境中执行:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
|
|
22
|
-
docker restart deepseek-harness
|
|
21
|
+
npx @deepseek-ai/dsh plugin --profile web add @ash-qw/dsh-theme-prts
|
|
23
22
|
```
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
安装或更新后建议重新启动 DSH Web,以确保主题被完整加载。然后进入“Settings → 插件 → P.R.T.S.”启用主题;完整外观设置位于主界面左上角的罗德岛徽记。
|
|
26
25
|
|
|
27
|
-
|
|
26
|
+
主题包已公开发布到 npm,无需 GitHub 登录或访问令牌。重新执行安装命令即可更新到 `latest`;如需锁定版本,可使用 `@ash-qw/dsh-theme-prts@<版本号>`。若命令提示 `pnpm not found`,请先安装 pnpm。
|
|
28
27
|
|
|
29
28
|
## 当前特性
|
|
30
29
|
|
|
31
|
-
- P.R.T.S. / Rhodes Island / RIIC
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
- 罗德岛、龙门、企鹅物流、莱茵生命、整合运动粒子徽记,使用结构完整的正交点阵,并支持独立的新会话 / 普通会话五档密度;普通会话还可在 0×–2× 间调整滚动跟随速度,速度越快,徽记越快移动、破碎并换阵营;
|
|
37
|
-
- 主题手动启用及已激活主题刷新时播放 P.R.T.S. 启动序列,使用原始 P.R.T.S. 徽记、阶段进度条、移动端精简和减少动效完成态;
|
|
38
|
-
- 1440px 桌面、1024px 平板和 640px 以下手机布局,可设置在任意宽度下默认隐藏最左侧 P.R.T.S. 导航,并支持减少动效和降低透明度提示;
|
|
30
|
+
- P.R.T.S. / Rhodes Island / RIIC 设施化工作区、会话与对话界面;
|
|
31
|
+
- 与 Harness 同步的日间 / 夜间模式、三套外观预设和四档界面材质;
|
|
32
|
+
- 城市剪影、阵营粒子徽记、会话声纹和 P.R.T.S. 启动序列;
|
|
33
|
+
- 支持问答预览与点击定位的对话刻度导航;
|
|
34
|
+
- 桌面、平板、手机、减少动效和降低透明度适配;
|
|
39
35
|
- 无运行时网络请求、分析统计或额外遥测。
|
|
40
36
|
|
|
41
|
-
##
|
|
37
|
+
## 使用与设置
|
|
42
38
|
|
|
43
|
-
|
|
39
|
+
“Settings → 插件 → P.R.T.S.”提供主题总开关和启动动画开关。主界面左上角的罗德岛徽记提供预设、环境底纹、粒子徽记、界面材质、导航栏、辅助功能和会话导航设置。
|
|
44
40
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
偏好继续存放在 `dsh.ui.prts.v1`,当前内容结构为 v8。旧 v1/v2/v3/v4/v5/v6/v7 配置会自动迁移,导航栏默认隐藏保持关闭,粒子跟随速度保持原有的 1× 行为;迁移还包含旧玻璃开关、`liquid` 玻璃、`full` 动效字段,以及已退役的有机分布与六边形点阵粒子配置。
|
|
48
|
-
|
|
49
|
-
## 浮层兼容边界
|
|
50
|
-
|
|
51
|
-
主题只接管 P.R.T.S. 自有界面,以及通过 `aria-controls`、`aria-describedby` 或 `aria-owns` 与已识别 Harness 控件稳定关联的宿主浮层。未知的 Body Portal、其它插件菜单、提示、Toast、弹窗和抽屉保持原始 DOM 与样式,不再尝试自动套用主题。
|
|
52
|
-
|
|
53
|
-
第三方插件如需主动使用 P.R.T.S. 浮层材质,可在浮层本身或其 Portal 根节点声明 `data-prts-surface="menu|listbox|popover|dialog"`;运行时支持动态添加、修改和移除该属性。`menu`、`listbox` 与 `popover` 可使用当前玻璃档位,`dialog` 始终使用不含实时模糊的实色面板,以避免大面积右侧弹窗卡顿。兼容属性 `data-prts-preserve-popup-style` 在一个版本周期内继续作为明确退出开关。
|
|
54
|
-
|
|
55
|
-
## 开发验证
|
|
56
|
-
|
|
57
|
-
需要 Node.js 18 或更高版本:
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
npm ci
|
|
61
|
-
npm run check
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
项目的 npm 分发名是 `@ash-qw/dsh-theme-prts`;`cordis.patch.yml` 包名和客户端 ModuleLoader ID 都与它保持一致,内部运行时插件 ID 仍为 `dsh-theme-prts`。维护者发布步骤见 [RELEASING.md](https://github.com/ash-qw/dsh-theme-prts/blob/main/RELEASING.md)。
|
|
65
|
-
|
|
66
|
-
## 只读真实环境验收
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
PRTS_LIVE_TARGET=<NAS-IP>:3080 npm run test:e2e:live
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
测试期间会把受信任的 `127.0.0.1:3080` 临时转发到目标服务,不修改 Docker 网络、反代或 DNS。不设置 `PRTS_LIVE_WRITE` 时不会创建会话或产生模型调用。
|
|
41
|
+
主题不会主动改写第三方插件的菜单、弹窗和浮层样式。
|
|
73
42
|
|
|
74
43
|
## 安全模式与恢复
|
|
75
44
|
|
|
@@ -78,16 +47,18 @@ PRTS_LIVE_TARGET=<NAS-IP>:3080 npm run test:e2e:live
|
|
|
78
47
|
## 卸载
|
|
79
48
|
|
|
80
49
|
```bash
|
|
81
|
-
|
|
82
|
-
docker restart deepseek-harness
|
|
50
|
+
npx @deepseek-ai/dsh plugin --profile web remove @ash-qw/dsh-theme-prts
|
|
83
51
|
```
|
|
84
52
|
|
|
85
|
-
|
|
53
|
+
卸载后建议重新启动 DSH Web。浏览器中的主题偏好不会被删除。多个全局主题可能发生 CSS 冲突,建议一次只启用一个完整 UI 主题。
|
|
86
54
|
|
|
87
|
-
##
|
|
55
|
+
## 开发
|
|
88
56
|
|
|
89
|
-
|
|
57
|
+
需要 Node.js 18 或更高版本:
|
|
90
58
|
|
|
91
|
-
|
|
59
|
+
```bash
|
|
60
|
+
npm ci
|
|
61
|
+
npm run check
|
|
62
|
+
```
|
|
92
63
|
|
|
93
|
-
|
|
64
|
+
版本变化见 [CHANGELOG.md](CHANGELOG.md),维护者发布步骤见 [RELEASING.md](RELEASING.md)。
|