dsh-background-by-model 0.4.2 → 0.4.4
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 -0
- package/README.zh.md +11 -0
- package/lib/client.js +2309 -2232
- package/lib/client.js.map +1 -1
- package/lib/{host-scan-BDh0upIQ.js → host-scan-B-xmbcxD.js} +31 -9
- package/lib/host-scan.js +1 -1
- package/lib/index.js +1 -1
- package/lib/testing.js +329 -276
- package/package.json +1 -1
- package/test/host-check.test.mjs +208 -45
|
@@ -248,6 +248,7 @@ const HOST_CONTRACTS = [
|
|
|
248
248
|
checks: [{
|
|
249
249
|
kind: "rule",
|
|
250
250
|
match: ".dab-card",
|
|
251
|
+
side: "own",
|
|
251
252
|
hint: "settings dialog card class"
|
|
252
253
|
}],
|
|
253
254
|
sources: [{
|
|
@@ -376,9 +377,9 @@ const HOST_CONTRACTS = [
|
|
|
376
377
|
},
|
|
377
378
|
target: "[data-dockkit-content]",
|
|
378
379
|
checks: [{
|
|
379
|
-
kind: "
|
|
380
|
-
|
|
381
|
-
|
|
380
|
+
kind: "selector",
|
|
381
|
+
selector: "[data-dockkit-content]",
|
|
382
|
+
optionalWhen: "noDockTab"
|
|
382
383
|
}],
|
|
383
384
|
sources: [{
|
|
384
385
|
path: ".",
|
|
@@ -403,9 +404,9 @@ const HOST_CONTRACTS = [
|
|
|
403
404
|
},
|
|
404
405
|
target: "[data-dockkit-empty]",
|
|
405
406
|
checks: [{
|
|
406
|
-
kind: "
|
|
407
|
-
|
|
408
|
-
|
|
407
|
+
kind: "selector",
|
|
408
|
+
selector: "[data-dockkit-empty]",
|
|
409
|
+
optionalWhen: "noDockTab"
|
|
409
410
|
}],
|
|
410
411
|
sources: [{
|
|
411
412
|
path: `${SIDEBAR_RIGHT}/lib/client.js`,
|
|
@@ -429,9 +430,9 @@ const HOST_CONTRACTS = [
|
|
|
429
430
|
},
|
|
430
431
|
target: "[data-dockkit-float]",
|
|
431
432
|
checks: [{
|
|
432
|
-
kind: "
|
|
433
|
-
|
|
434
|
-
|
|
433
|
+
kind: "selector",
|
|
434
|
+
selector: "[data-dockkit-float]",
|
|
435
|
+
optionalWhen: "noFloatPane"
|
|
435
436
|
}],
|
|
436
437
|
sources: [{
|
|
437
438
|
path: `${SIDEBAR_RIGHT}/lib/client.js`,
|
|
@@ -559,6 +560,10 @@ const HOST_CONTRACTS = [
|
|
|
559
560
|
},
|
|
560
561
|
target: "--dsw-alias-bg-base",
|
|
561
562
|
checks: [{
|
|
563
|
+
kind: "rule",
|
|
564
|
+
match: "--dsw-alias-bg-base",
|
|
565
|
+
hint: "platform palette"
|
|
566
|
+
}, {
|
|
562
567
|
kind: "computed",
|
|
563
568
|
token: "--dsw-alias-bg-base"
|
|
564
569
|
}],
|
|
@@ -584,6 +589,11 @@ const HOST_CONTRACTS = [
|
|
|
584
589
|
},
|
|
585
590
|
target: "--dsw-alias-bg-layer-1/2/3",
|
|
586
591
|
checks: [
|
|
592
|
+
{
|
|
593
|
+
kind: "rule",
|
|
594
|
+
match: "--dsw-alias-bg-layer-1",
|
|
595
|
+
hint: "platform palette"
|
|
596
|
+
},
|
|
587
597
|
{
|
|
588
598
|
kind: "computed",
|
|
589
599
|
token: "--dsw-alias-bg-layer-1"
|
|
@@ -685,6 +695,10 @@ const HOST_CONTRACTS = [
|
|
|
685
695
|
},
|
|
686
696
|
target: "--dsw-specific-sidebar-fill",
|
|
687
697
|
checks: [{
|
|
698
|
+
kind: "rule",
|
|
699
|
+
match: "--dsw-specific-sidebar-fill",
|
|
700
|
+
hint: "sidebar fill"
|
|
701
|
+
}, {
|
|
688
702
|
kind: "computed",
|
|
689
703
|
token: "--dsw-specific-sidebar-fill"
|
|
690
704
|
}],
|
|
@@ -710,6 +724,10 @@ const HOST_CONTRACTS = [
|
|
|
710
724
|
},
|
|
711
725
|
target: "--dsw-specific-input-major",
|
|
712
726
|
checks: [{
|
|
727
|
+
kind: "rule",
|
|
728
|
+
match: "--dsw-specific-input-major",
|
|
729
|
+
hint: "input/control fill"
|
|
730
|
+
}, {
|
|
713
731
|
kind: "computed",
|
|
714
732
|
token: "--dsw-specific-input-major"
|
|
715
733
|
}],
|
|
@@ -765,6 +783,10 @@ const HOST_CONTRACTS = [
|
|
|
765
783
|
},
|
|
766
784
|
target: "--dsw-alias-label-caption",
|
|
767
785
|
checks: [{
|
|
786
|
+
kind: "rule",
|
|
787
|
+
match: "--dsw-alias-label-caption",
|
|
788
|
+
hint: "label palette"
|
|
789
|
+
}, {
|
|
768
790
|
kind: "computed",
|
|
769
791
|
token: "--dsw-alias-label-caption"
|
|
770
792
|
}],
|
package/lib/host-scan.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as thisPluginDir, c as DSH_FLOOR, i as resolveHostRoots, l as HOST_CONTRACTS, n as listHostPackages, o as versionOf, r as meetsFloor, t as checkHostOnDisk } from "./host-scan-
|
|
1
|
+
import { a as thisPluginDir, c as DSH_FLOOR, i as resolveHostRoots, l as HOST_CONTRACTS, n as listHostPackages, o as versionOf, r as meetsFloor, t as checkHostOnDisk } from "./host-scan-B-xmbcxD.js";
|
|
2
2
|
export { DSH_FLOOR, HOST_CONTRACTS, checkHostOnDisk, listHostPackages, meetsFloor, resolveHostRoots, thisPluginDir, versionOf };
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as checkHostOnDisk } from "./host-scan-
|
|
1
|
+
import { t as checkHostOnDisk } from "./host-scan-B-xmbcxD.js";
|
|
2
2
|
import { access, mkdir, readFile, readdir, rename, rm, writeFile } from "node:fs/promises";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { dshHomePath } from "@deepseek-ai/dsh-home-paths";
|