dsh-any-background 0.3.6 → 0.3.7
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 +181 -174
- package/README.zh.md +179 -174
- package/lib/client.js +225 -398
- package/lib/client.js.map +1 -1
- package/lib/index.js +11 -28
- package/package.json +11 -18
package/lib/index.js
CHANGED
|
@@ -6,36 +6,15 @@ import { basename, dirname, join } from "node:path";
|
|
|
6
6
|
//#region src/host-compat/channel.ts
|
|
7
7
|
/** What this plugin supports, in upgrade order. One row = one build whose facts
|
|
8
8
|
* were checked; several rows may share a `channel` when a newer build was
|
|
9
|
-
* verified as needing no change to that folder's adapter (as `0.1
|
|
9
|
+
* verified as needing no change to that folder's adapter (as `0.2.1-alpha.2` was) —
|
|
10
10
|
* a row then reports `exact` instead of `line`, and no new folder appears.
|
|
11
11
|
* Rows may ALSO share a patch line while carrying different channels, which is
|
|
12
|
-
* how a line says "the facts changed halfway through it" (`0.
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* `HostChannel` for why that row is keyed to the build).
|
|
12
|
+
* how a line says "the facts changed halfway through it" (`0.2.0-rc.2` opens a
|
|
13
|
+
* second answer on a line that had one — see the note on `HostChannel` for why
|
|
14
|
+
* that row is keyed to the build).
|
|
16
15
|
* Adding an ADAPTER means adding a channel plus a folder in
|
|
17
16
|
* `client/host-compat/versions/`. */
|
|
18
17
|
const SUPPORTED_RELEASES = [
|
|
19
|
-
{
|
|
20
|
-
channel: "0.1.5-rc",
|
|
21
|
-
release: "0.1.5-rc.2"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
channel: "0.1.6-alpha",
|
|
25
|
-
release: "0.1.6-alpha.2"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
channel: "0.1.7-alpha",
|
|
29
|
-
release: "0.1.7-alpha.2"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
channel: "0.1.7-alpha",
|
|
33
|
-
release: "0.1.7-rc.1"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
channel: "0.1.7-rc",
|
|
37
|
-
release: "0.1.7-rc.2"
|
|
38
|
-
},
|
|
39
18
|
{
|
|
40
19
|
channel: "0.2.0-rc",
|
|
41
20
|
release: "0.2.0-rc.1"
|
|
@@ -47,6 +26,10 @@ const SUPPORTED_RELEASES = [
|
|
|
47
26
|
{
|
|
48
27
|
channel: "0.2.1-alpha",
|
|
49
28
|
release: "0.2.1-alpha.1"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
channel: "0.2.1-alpha",
|
|
32
|
+
release: "0.2.1-alpha.2"
|
|
50
33
|
}
|
|
51
34
|
];
|
|
52
35
|
const UNKNOWN_HOST_INFO = {
|
|
@@ -102,8 +85,8 @@ function cmp(a, b) {
|
|
|
102
85
|
/** Pick the adapter for a release, clamping to the nearest verified line when the
|
|
103
86
|
* release is outside everything this plugin has seen.
|
|
104
87
|
*
|
|
105
|
-
* A release is matched by PATCH LINE before anything else: `0.1
|
|
106
|
-
* future `0.1
|
|
88
|
+
* A release is matched by PATCH LINE before anything else: `0.2.1-alpha.3` and a
|
|
89
|
+
* future `0.2.1` stable both belong to the line verified at `0.2.1-alpha.1/2`, and
|
|
107
90
|
* handing them that adapter beats giving up — the DOM probes only cover panel
|
|
108
91
|
* mechanics, not the surface decisions the line is known for.
|
|
109
92
|
*
|
|
@@ -173,7 +156,7 @@ function classifyRelease(version) {
|
|
|
173
156
|
* from `$DSH_HOME`'s `homes/<ver>` layout. For a host that gives no
|
|
174
157
|
* `profileContext`.
|
|
175
158
|
* 3. `$DSH_HOME`'s basename, because launcher homes live in a folder named after
|
|
176
|
-
* the release (`.../homes/0.1
|
|
159
|
+
* the release (`.../homes/0.2.1-alpha.2`). A user may point DSH_HOME at a
|
|
177
160
|
* plain `~/.dsh` (no launcher layout at all), whose basename is not a
|
|
178
161
|
* version — hence `looksLikeVersion` gates it.
|
|
179
162
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-any-background",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "Appearance plugin for DeepSeek Harness: custom theme color (PS-style color wheel), background wallpaper with opacity/blur controls, and separate main/settings interface opacity.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"author": "Tkingxiao",
|
|
24
24
|
"type": "module",
|
|
25
25
|
"engines": {
|
|
26
|
-
"dsh": "0.
|
|
26
|
+
"dsh": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || >=0.2.0-rc.1"
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
66
|
-
"@deepseek-ai/dsh-client-locale": "0.
|
|
67
|
-
"@deepseek-ai/dsh-client-store": "0.
|
|
68
|
-
"@deepseek-ai/dsh-client-connection": "0.
|
|
69
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.
|
|
70
|
-
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.
|
|
71
|
-
"@deepseek-ai/dsh-client-ui-theme": "0.
|
|
66
|
+
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || >=0.2.0-rc.1",
|
|
67
|
+
"@deepseek-ai/dsh-client-store": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || >=0.2.0-rc.1",
|
|
68
|
+
"@deepseek-ai/dsh-client-connection": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || >=0.2.0-rc.1",
|
|
69
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || >=0.2.0-rc.1",
|
|
70
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || >=0.2.0-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-client-ui-theme": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || >=0.2.0-rc.1",
|
|
72
72
|
"react": "^18.2.0",
|
|
73
73
|
"dsh-better-sidebar": ">=0.4.0"
|
|
74
74
|
},
|
|
@@ -103,19 +103,12 @@
|
|
|
103
103
|
},
|
|
104
104
|
"dsh": {
|
|
105
105
|
"compatibility": {
|
|
106
|
-
"dsh": "0.
|
|
106
|
+
"dsh": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || >=0.2.0-rc.1",
|
|
107
107
|
"dshReleases": {
|
|
108
|
-
"0.1.5-rc.2": "compatible",
|
|
109
|
-
"0.1.5-rc.3": "compatible",
|
|
110
|
-
"0.1.6-alpha.1": "compatible",
|
|
111
|
-
"0.1.6-alpha.2": "compatible",
|
|
112
|
-
"0.1.7-alpha.1": "compatible",
|
|
113
|
-
"0.1.7-alpha.2": "compatible",
|
|
114
|
-
"0.1.7-rc.1": "compatible",
|
|
115
|
-
"0.1.7-rc.2": "compatible",
|
|
116
108
|
"0.2.0-rc.1": "compatible",
|
|
117
109
|
"0.2.0-rc.2": "compatible",
|
|
118
|
-
"0.2.1-alpha.1": "compatible"
|
|
110
|
+
"0.2.1-alpha.1": "compatible",
|
|
111
|
+
"0.2.1-alpha.2": "compatible"
|
|
119
112
|
}
|
|
120
113
|
},
|
|
121
114
|
"bundle": {
|