@ash-qw/dsh-theme-prts 0.1.92 → 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 +36 -0
- package/README.en.md +25 -65
- package/README.md +26 -68
- package/lib/client.js +1211 -63
- package/package.json +12 -2
- package/src/client/conversation-scale-adapter.js +110 -6
- package/src/client/index.js +18 -3
- package/src/client/operations-shell-v2.js +334 -20
- package/src/client/particle-field-adapter.js +134 -12
- package/src/client/preferences.js +24 -5
- package/src/client/resize-shield-adapter.js +5 -0
- package/src/client/theme-controller-v2.js +609 -16
- package/src/client/theme-settings-workbench.js +69 -2
- package/src/styles/prts.css +402 -16
- package/src/styles/theme-settings-workbench.css +17 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# 变更记录
|
|
2
|
+
|
|
3
|
+
## 0.1.94 - 2026-09-03
|
|
4
|
+
|
|
5
|
+
- 修复工作区与会话悬停动画触发横向滚动条,避免侧栏尺寸跳变。
|
|
6
|
+
- 插件基础设置改为基于实际容器宽度响应,在手机和窄面板中自动纵向排列。
|
|
7
|
+
|
|
8
|
+
## 0.1.93 - 2026-09-02
|
|
9
|
+
|
|
10
|
+
- 将安装说明改为直接从 npm 安装和更新。
|
|
11
|
+
- 新增用于 npm 检索的关键词元数据。
|
|
12
|
+
- 新增普通会话粒子徽记 0×–2× 跟随移动速度设置,支持视口周期提示、实时预览、净滚动位移触发及旧偏好迁移。
|
|
13
|
+
- 固定长对话会话刻度栏的几何基准,避免位置随内容高度和刷新偏移。
|
|
14
|
+
- 保留 Harness 宿主弹窗按钮的原生前景与背景配色,避免主题切换后文字不可见。
|
|
15
|
+
- 将维护者发布流程从用户 README 移至独立文档。
|
|
16
|
+
|
|
17
|
+
## 0.1.92 - 2026-08-31
|
|
18
|
+
|
|
19
|
+
- 通过 npm Trusted Publishing 发布首个正式公开版本,并生成来源证明。
|
|
20
|
+
- 对齐 npm 包名、Host patch 包名和客户端 ModuleLoader ID。
|
|
21
|
+
|
|
22
|
+
## 0.1.91 - 2026-08-31
|
|
23
|
+
|
|
24
|
+
- 发布用于在 npmjs 建立包及 Trusted Publisher 关联的引导版本。
|
|
25
|
+
|
|
26
|
+
## 历史开发版本
|
|
27
|
+
|
|
28
|
+
以下版本早于当前受支持的 npmjs 公开发布线:
|
|
29
|
+
|
|
30
|
+
- `0.1.35` 从过时代码分支构建,`cordis.patch.yml` 使用了错误的包名。
|
|
31
|
+
- `0.1.66` 修复了 Host patch 包名,但没有同步客户端 ModuleLoader ID。
|
|
32
|
+
- `0.1.67` 对齐了三处包名。
|
|
33
|
+
- `0.1.68` 在 Operations Shell 延迟挂载期间继续保持基础主题生效。
|
|
34
|
+
- `0.1.69` 不再占用宿主共享的详情侧栏。
|
|
35
|
+
- `0.1.70` 新增工作区城市剪影、会话录音声纹、刷新启动接管和结构完整的正交粒子徽记。
|
|
36
|
+
- `0.1.73` 保留常规浮层接管与 composer 越界显示,让启动动画主题样式立即生效,并将非启动工作延后至宿主原生启动完成。
|
package/README.en.md
CHANGED
|
@@ -11,92 +11,52 @@ 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
|
-
##
|
|
17
|
-
|
|
18
|
-
- Facility-style P.R.T.S. surfaces with complete SVG contours, distinct workspace/session spines, and compact right-edge actions;
|
|
19
|
-
- layered city silhouettes moving like a view through a train window on workspace hover, plus a mixed-tempo recording waveform on session hover;
|
|
20
|
-
- a Codex-like conversation scale with Q/A previews, local wheel scrolling, and click-to-message navigation;
|
|
21
|
-
- day/night switching synchronized with the native Harness theme state;
|
|
22
|
-
- off, soft, standard, and clear material levels for composers, menus, previews, and overlays;
|
|
23
|
-
- Rhodes Island, Lungmen, Penguin Logistics, Rhine Lab, and Reunion particle marks with structure-complete orthogonal layouts and independent five-level conversation/hero density;
|
|
24
|
-
- 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;
|
|
25
|
-
- desktop, tablet, phone, reduced-motion, and reduced-transparency accommodations;
|
|
26
|
-
- no runtime network requests, analytics, or telemetry.
|
|
27
|
-
|
|
28
|
-
## Settings architecture
|
|
29
|
-
|
|
30
|
-
The Rhodes Island emblem at the upper left opens the complete appearance panel. It provides three presets and manual groups for environment texture, particle marks, interface material, accessibility, and conversation navigation. Conversation navigation configures the scale rail’s maximum distance from the left sidebar and keeps a spatial cross-section visible for the selected distance, automatic centering, or a specific hidden reason. Range input updates this preview while dragging and saves the preference when the interaction completes. Manual edits display `CUSTOM`; presets do not change the scale distance.
|
|
31
|
-
|
|
32
|
-
“Settings → Plugins → P.R.T.S.” contains only the theme and startup-animation switches in the standard host layout. The animation preference remains editable while the theme is disabled or safe mode is active; the Rhodes Island emblem continues to own the complete appearance controls.
|
|
33
|
-
|
|
34
|
-
Preferences still use the `dsh.ui.prts.v1` browser key, now with a v6 payload. Existing v1/v2/v3/v4/v5 values migrate automatically, including the old split glass flags, `liquid`, `full` motion, and retired organic/hex particle settings.
|
|
35
|
-
|
|
36
|
-
## Floating surface compatibility
|
|
16
|
+
## Install and update
|
|
37
17
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
A third-party plugin may explicitly opt in by setting `data-prts-surface="menu|listbox|popover|dialog"` on the surface or its Portal root. Adding, changing, and removing the attribute is supported at runtime. `menu`, `listbox`, and `popover` may use the selected glass level; `dialog` always uses an opaque panel without live backdrop blur to avoid jank on large right-side surfaces. `data-prts-preserve-popup-style` remains available as an explicit opt-out for one compatibility cycle.
|
|
41
|
-
|
|
42
|
-
## Build
|
|
43
|
-
|
|
44
|
-
Node.js 18 or newer is required:
|
|
18
|
+
In an environment where DSH Web already runs normally, execute:
|
|
45
19
|
|
|
46
20
|
```bash
|
|
47
|
-
|
|
48
|
-
npm run check
|
|
49
|
-
npm run pack:plugin
|
|
21
|
+
npx @deepseek-ai/dsh plugin --profile web add @ash-qw/dsh-theme-prts
|
|
50
22
|
```
|
|
51
23
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
## Public npm package
|
|
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.
|
|
55
25
|
|
|
56
|
-
The
|
|
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.
|
|
57
27
|
|
|
58
|
-
|
|
59
|
-
npm pack @ash-qw/dsh-theme-prts@0.1.92
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
When a maintainer pushes a tag matching `package.json` to the public repository, GitHub Actions publishes through npm Trusted Publishing (OIDC) with provenance. The workflow does not publish from the private mirror. For example:
|
|
28
|
+
## Current feature set
|
|
63
29
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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;
|
|
35
|
+
- no runtime network requests, analytics, or telemetry.
|
|
68
36
|
|
|
69
|
-
|
|
37
|
+
## Usage and settings
|
|
70
38
|
|
|
71
|
-
|
|
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.
|
|
72
40
|
|
|
73
|
-
|
|
74
|
-
docker cp ash-qw-dsh-theme-prts-0.1.92.tgz deepseek-harness:/workspace/
|
|
75
|
-
docker exec deepseek-harness dsh plugin --profile web add /workspace/ash-qw-dsh-theme-prts-0.1.92.tgz
|
|
76
|
-
docker restart deepseek-harness
|
|
77
|
-
```
|
|
41
|
+
The theme does not proactively restyle menus, dialogs, or overlays created by third-party plugins.
|
|
78
42
|
|
|
79
|
-
|
|
43
|
+
## Recovery and removal
|
|
80
44
|
|
|
81
|
-
|
|
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.
|
|
82
46
|
|
|
83
47
|
```bash
|
|
84
|
-
|
|
48
|
+
npx @deepseek-ai/dsh plugin --profile web remove @ash-qw/dsh-theme-prts
|
|
85
49
|
```
|
|
86
50
|
|
|
87
|
-
|
|
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.
|
|
88
52
|
|
|
89
|
-
##
|
|
53
|
+
## Development
|
|
90
54
|
|
|
91
|
-
|
|
55
|
+
Node.js 18 or newer is required:
|
|
92
56
|
|
|
93
57
|
```bash
|
|
94
|
-
|
|
95
|
-
|
|
58
|
+
npm ci
|
|
59
|
+
npm run check
|
|
96
60
|
```
|
|
97
61
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
## Rights
|
|
101
|
-
|
|
102
|
-
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,96 +11,54 @@
|
|
|
11
11
|
>
|
|
12
12
|
> 本项目及其发行包可能因权利人请求、平台政策或维护者决定,随时暂停发布、限制下载或移除相关素材,不保证持续提供。
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
已适配 DeepSeek Harness Web `0.1.1-rc.2`。主题安装后默认关闭,不会立即改变页面。
|
|
15
15
|
|
|
16
|
-
##
|
|
17
|
-
|
|
18
|
-
- P.R.T.S. / Rhodes Island / RIIC 设施化视觉,工作区与会话采用完整 SVG 轮廓、差异化侧脊和紧凑右侧操作按钮;
|
|
19
|
-
- 工作区悬停时以分层城市剪影塑造列车窗外的远近运动,会话悬停时在右侧显示急缓交错的录音声纹;
|
|
20
|
-
- Codex 风格的对话刻度栏,支持问答预览、刻度内滚动和点击定位;
|
|
21
|
-
- 日间 / 夜间切换与 Harness 原生主题状态同步;
|
|
22
|
-
- 输入框、菜单、预览和浮层支持关闭、柔和、标准、清晰四档玻璃材质;
|
|
23
|
-
- 罗德岛、龙门、企鹅物流、莱茵生命、整合运动粒子徽记,使用结构完整的正交点阵,并支持独立的新会话 / 普通会话五档密度;密度越高,粒子越小且数量越多;
|
|
24
|
-
- 主题手动启用及已激活主题刷新时播放 P.R.T.S. 启动序列,使用原始 P.R.T.S. 徽记、阶段进度条、移动端精简和减少动效完成态;
|
|
25
|
-
- 1440px 桌面、1024px 平板和 640px 以下手机布局,并支持减少动效和降低透明度提示;
|
|
26
|
-
- 无运行时网络请求、分析统计或额外遥测。
|
|
27
|
-
|
|
28
|
-
## 设置架构
|
|
29
|
-
|
|
30
|
-
主界面左上角的罗德岛徽记是完整外观设置入口。展开后可选择三套预设,或分别调整环境底纹、粒子徽记、界面材质、辅助功能和会话导航;会话导航可配置刻度栏离左侧边栏的最大距离,并通过常驻空间剖面预览所选距离、自动居中或隐藏原因。拖动滑块只更新预览,完成操作后才保存并应用。手动修改会显示 `CUSTOM`。预设不会修改刻度栏距离。
|
|
31
|
-
|
|
32
|
-
Harness 的“Settings → 插件 → P.R.T.S.”仅保留主题总开关和启动动画开关,并使用宿主标准设置布局。主题关闭或处于安全模式时,启动动画偏好仍可提前修改;完整外观继续由左上罗德岛徽记维护。
|
|
33
|
-
|
|
34
|
-
偏好继续存放在 `dsh.ui.prts.v1`,当前内容结构为 v6。旧 v1/v2/v3/v4/v5 配置会自动迁移,包含旧玻璃开关、`liquid` 玻璃、`full` 动效字段,以及已退役的有机分布与六边形点阵粒子配置。
|
|
35
|
-
|
|
36
|
-
## 浮层兼容边界
|
|
37
|
-
|
|
38
|
-
主题只接管 P.R.T.S. 自有界面,以及通过 `aria-controls`、`aria-describedby` 或 `aria-owns` 与已识别 Harness 控件稳定关联的宿主浮层。未知的 Body Portal、其它插件菜单、提示、Toast、弹窗和抽屉保持原始 DOM 与样式,不再尝试自动套用主题。
|
|
16
|
+
## 安装与更新
|
|
39
17
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
## 构建
|
|
43
|
-
|
|
44
|
-
需要 Node.js 18 或更高版本:
|
|
18
|
+
在已经可以正常运行 DSH Web 的环境中执行:
|
|
45
19
|
|
|
46
20
|
```bash
|
|
47
|
-
|
|
48
|
-
npm run check
|
|
49
|
-
npm run pack:plugin
|
|
21
|
+
npx @deepseek-ai/dsh plugin --profile web add @ash-qw/dsh-theme-prts
|
|
50
22
|
```
|
|
51
23
|
|
|
52
|
-
|
|
24
|
+
安装或更新后建议重新启动 DSH Web,以确保主题被完整加载。然后进入“Settings → 插件 → P.R.T.S.”启用主题;完整外观设置位于主界面左上角的罗德岛徽记。
|
|
53
25
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
可从 npmjs.org 直接下载可安装的 tarball,无需 GitHub 登录或访问令牌:
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
npm pack @ash-qw/dsh-theme-prts@0.1.92
|
|
60
|
-
```
|
|
26
|
+
主题包已公开发布到 npm,无需 GitHub 登录或访问令牌。重新执行安装命令即可更新到 `latest`;如需锁定版本,可使用 `@ash-qw/dsh-theme-prts@<版本号>`。若命令提示 `pnpm not found`,请先安装 pnpm。
|
|
61
27
|
|
|
62
|
-
|
|
28
|
+
## 当前特性
|
|
63
29
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
30
|
+
- P.R.T.S. / Rhodes Island / RIIC 设施化工作区、会话与对话界面;
|
|
31
|
+
- 与 Harness 同步的日间 / 夜间模式、三套外观预设和四档界面材质;
|
|
32
|
+
- 城市剪影、阵营粒子徽记、会话声纹和 P.R.T.S. 启动序列;
|
|
33
|
+
- 支持问答预览与点击定位的对话刻度导航;
|
|
34
|
+
- 桌面、平板、手机、减少动效和降低透明度适配;
|
|
35
|
+
- 无运行时网络请求、分析统计或额外遥测。
|
|
68
36
|
|
|
69
|
-
|
|
37
|
+
## 使用与设置
|
|
70
38
|
|
|
71
|
-
|
|
39
|
+
“Settings → 插件 → P.R.T.S.”提供主题总开关和启动动画开关。主界面左上角的罗德岛徽记提供预设、环境底纹、粒子徽记、界面材质、导航栏、辅助功能和会话导航设置。
|
|
72
40
|
|
|
73
|
-
|
|
41
|
+
主题不会主动改写第三方插件的菜单、弹窗和浮层样式。
|
|
74
42
|
|
|
75
|
-
|
|
76
|
-
docker cp ash-qw-dsh-theme-prts-0.1.92.tgz deepseek-harness:/workspace/
|
|
77
|
-
docker exec deepseek-harness dsh plugin --profile web add /workspace/ash-qw-dsh-theme-prts-0.1.92.tgz
|
|
78
|
-
docker restart deepseek-harness
|
|
79
|
-
```
|
|
43
|
+
## 安全模式与恢复
|
|
80
44
|
|
|
81
|
-
|
|
45
|
+
若主题导致页面不可用,在 Harness 地址后添加 `?prts-safe=1`。安全模式会阻止所有主题视觉挂载,但保留“Settings → 插件 → P.R.T.S.”中的基础开关和恢复提示。也可以删除浏览器 localStorage 的 `dsh.ui.prts.v1`,下次加载会回到默认关闭状态。
|
|
82
46
|
|
|
83
|
-
##
|
|
47
|
+
## 卸载
|
|
84
48
|
|
|
85
49
|
```bash
|
|
86
|
-
|
|
50
|
+
npx @deepseek-ai/dsh plugin --profile web remove @ash-qw/dsh-theme-prts
|
|
87
51
|
```
|
|
88
52
|
|
|
89
|
-
|
|
53
|
+
卸载后建议重新启动 DSH Web。浏览器中的主题偏好不会被删除。多个全局主题可能发生 CSS 冲突,建议一次只启用一个完整 UI 主题。
|
|
90
54
|
|
|
91
|
-
##
|
|
92
|
-
|
|
93
|
-
若主题导致页面不可用,在 Harness 地址后添加 `?prts-safe=1`。安全模式会阻止所有主题视觉挂载,但保留“Settings → 插件 → P.R.T.S.”中的基础开关和恢复提示。也可以删除浏览器 localStorage 的 `dsh.ui.prts.v1`,下次加载会回到默认关闭状态。
|
|
55
|
+
## 开发
|
|
94
56
|
|
|
95
|
-
|
|
57
|
+
需要 Node.js 18 或更高版本:
|
|
96
58
|
|
|
97
59
|
```bash
|
|
98
|
-
|
|
99
|
-
|
|
60
|
+
npm ci
|
|
61
|
+
npm run check
|
|
100
62
|
```
|
|
101
63
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
## 权利说明
|
|
105
|
-
|
|
106
|
-
原创代码以 MIT 许可证提供。第三方名称、角色图像、徽记及其衍生素材不属于 MIT 授权范围;本项目对这些素材不授予任何下游使用权。详见 [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)。
|
|
64
|
+
版本变化见 [CHANGELOG.md](CHANGELOG.md),维护者发布步骤见 [RELEASING.md](RELEASING.md)。
|