dsh-skin-magiclab 0.0.0-stage → 1.0.0
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/LICENSE +21 -0
- package/README.md +64 -2
- package/cordis.patch.yml +4 -0
- package/lib/client.js +1199 -0
- package/lib/index.js +4 -0
- package/package.json +47 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MagicEric
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,65 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-skin-magiclab
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Five switchable interface skins for DeepSeek Harness, each with its own animated boot sequence and sound design.
|
|
4
|
+
|
|
5
|
+
五套可切换的界面皮肤,每套配一段专属开机动画与音效。
|
|
6
|
+
|
|
7
|
+
| Long March · 长征 | The app, skinned |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
|  |  |
|
|
10
|
+
|
|
11
|
+
## What it does
|
|
12
|
+
|
|
13
|
+
DeepSeek Harness paints its interface from design tokens (`--dsw-alias-*` and the static neutral ramp). This plugin rewrites those tokens per skin, so the sidebar, dialogs, composer and code blocks all change together instead of only the main column.
|
|
14
|
+
|
|
15
|
+
Each skin also ships a boot sequence that plays once when the app starts — the boot matches the skin, so the first two seconds do not look like a different product.
|
|
16
|
+
|
|
17
|
+
| Skin | Look | Boot | Sound |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| `longmarch` | Warm gold on near-black, seal-red accents | A campaign route draws itself across an abstract relief plate; a flag leads it | Marching pulse and a two-note horn call |
|
|
20
|
+
| `sonar` | Deep teal, phosphor green, monospace | Sonar sweep and contact rings | Ping and low swell |
|
|
21
|
+
| `splitflap` | Slate grey with amber numerals | Split-flap characters clack into a departure board | Mechanical flaps |
|
|
22
|
+
| `film` | Warm brown, grain, 2.39:1 letterbox | Projector countdown, gate weave, scratches | Projector clatter |
|
|
23
|
+
| `ink` | Rice paper, ink wash, seal red | Brush stroke and a falling ink drop | Water drop and paper |
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
From npm, once published:
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
dsh plugin add dsh-skin-magiclab
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
From this repository, without publishing:
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
dsh plugin add github:magiceric/dsh-skin-magiclab
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Restart the host (or reload the page) so the bundle loads. On DSH Desktop, install it through **设置 → 插件** instead — the desktop app manages its own profile.
|
|
40
|
+
|
|
41
|
+
## Use
|
|
42
|
+
|
|
43
|
+
**设置 → 外观实验室** picks a skin; changes apply live. A **外观实验室** panel in the sidebar has the same controls.
|
|
44
|
+
|
|
45
|
+
- **开机动画** — turn the boot sequence on or off, and **重播** to preview the current skin's sequence
|
|
46
|
+
- **开机音效** — the per-skin cues; audio starts on the first pointer or key event, because browsers only allow sound after a gesture
|
|
47
|
+
- **颗粒/纹理** — the grain layer that most skins use
|
|
48
|
+
|
|
49
|
+
Preferences are stored in `localStorage` under `dsh.skinlab.v1`. Nothing leaves the machine: no network calls, no telemetry, no account.
|
|
50
|
+
|
|
51
|
+
## How it works
|
|
52
|
+
|
|
53
|
+
- `dsh.bundle.patch` points at `cordis.patch.yml`, which inserts the plugin into the profile's layer stack; that is what makes `dsh plugin add` work
|
|
54
|
+
- `dsh.client` ships the browser half, a single self-contained `lib/client.js` registered through `window.__ModuleLoader__`
|
|
55
|
+
- Skins are plain CSS keyed on `html[data-dsh-skin="…"]`; the client sets that attribute and the token overrides follow
|
|
56
|
+
- The boot sequences and their audio are generated in the browser — drawing code plus Web Audio, no recorded media files
|
|
57
|
+
|
|
58
|
+
## Compatibility
|
|
59
|
+
|
|
60
|
+
- DeepSeek Harness 0.2.x, Web and Desktop
|
|
61
|
+
- The skin layer assumes the `--dsw-alias-*` token interface; a host that renames those tokens will fall back to the default theme while the boot sequences keep working
|
|
62
|
+
|
|
63
|
+
## License
|
|
64
|
+
|
|
65
|
+
MIT. Artwork is drawn in code and the boot cues are synthesized at runtime; the Long March sequence also ships one spoken line generated with a text-to-speech service and used with the author's permission.
|
package/cordis.patch.yml
ADDED