dsh-dracula-theme 0.1.5 → 1.1.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/README.md CHANGED
@@ -33,6 +33,25 @@ The classic Dracula canvas (`#282a36`) mapped onto the full DSH surface stack
33
33
  | Orange (warn) | `#ffb86c` |
34
34
  | Red (error) | `#ff5555` |
35
35
 
36
+ ## Official spec alignment
37
+
38
+ The token mappings follow the official [Dracula Syntax Highlighting Specification](https://draculatheme.com/spec) and the classic [dracula/sublime](https://github.com/dracula/sublime) convention:
39
+
40
+ | Role | Color |
41
+ | --- | --- |
42
+ | Keywords & storage | Pink `#FF79C6` |
43
+ | Functions & methods | Green `#50FA7B` |
44
+ | Classes & types | Cyan `#8BE9FD` |
45
+ | Strings & text | Yellow `#F1FA8C` |
46
+ | Numbers & constants | Orange `#FFB86C` |
47
+ | Comments | `#6272A4` |
48
+ | Variables & parameters | Foreground `#F8F8F2` |
49
+ | Punctuation | Foreground `#F8F8F2` |
50
+ | Diff inserted / deleted | Green `#50FA7B` / Red `#FF5555` |
51
+ | Links | Cyan `#8BE9FD` |
52
+
53
+ UI surfaces follow the spec's current-line / selection distinction: text selection is `#44475A` (including the `::selection` rule), the current-line highlight uses the opaque fallback `#353747`, and floating interactive elements use `#343746` / `#424450`. Status colors (error/success/warning) deliberately follow the syntax palette like the official Dracula DeepSeek port, keeping the whole UI on one consistent palette.
54
+
36
55
  ## Installation
37
56
 
38
57
  ```sh
@@ -45,6 +64,13 @@ dsh plugin --profile web add https://github.com/ossFrankFrank/dsh-dracula-theme
45
64
 
46
65
  Restart the profile, then pick the skin in **Settings → General → Dracula theme**.
47
66
 
67
+ > **DSH Desktop 2.0.4+** — DSH client packages moved to `0.1.2-alpha.1`; **1.1.0** is
68
+ > the first release compatible with that host (see CHANGELOG). On DSH Desktop,
69
+ > install from the in-app plugin market instead of the CLI `--profile web` flow
70
+ > (the desktop app now owns its own profile). Installing 1.0.0 on a 2.0.4 host
71
+ > makes the app **fail to start** (plugin client bundle references the removed
72
+ > `@deepseek-ai/dsh-client-runtime` module), so do not install the old version.
73
+
48
74
  ## Development
49
75
 
50
76
  ```sh
package/README.zh.md CHANGED
@@ -32,6 +32,25 @@
32
32
  | 橙色(警告) | `#ffb86c` |
33
33
  | 红色(错误) | `#ff5555` |
34
34
 
35
+ ## 官方规范对齐
36
+
37
+ token 映射遵循官方 [Dracula 语法高亮规范](https://draculatheme.com/spec) 与经典 [dracula/sublime](https://github.com/dracula/sublime) 惯例:
38
+
39
+ | 角色 | 颜色 |
40
+ | --- | --- |
41
+ | 关键字与存储 | 粉 `#FF79C6` |
42
+ | 函数与方法 | 绿 `#50FA7B` |
43
+ | 类与类型 | 青 `#8BE9FD` |
44
+ | 字符串与文本 | 黄 `#F1FA8C` |
45
+ | 数字与常量 | 橙 `#FFB86C` |
46
+ | 注释 | `#6272A4` |
47
+ | 变量与参数 | 前景 `#F8F8F2` |
48
+ | 标点 | 前景 `#F8F8F2` |
49
+ | diff 新增 / 删除 | 绿 `#50FA7B` / 红 `#FF5555` |
50
+ | 链接 | 青 `#8BE9FD` |
51
+
52
+ 界面表面遵循规范中「当前行 / 选区」的区分:文本选区为 `#44475A`(含 `::selection` 规则),当前行高亮使用纯色回退 `#353747`,浮动交互元素使用 `#343746` / `#424450`。状态色(错误/成功/警告)刻意沿用语法色板,与官方 Dracula DeepSeek 移植版保持一致,让整个界面处于同一套配色体系。
53
+
35
54
  ## 安装
36
55
 
37
56
  ```sh
@@ -44,6 +63,8 @@ dsh plugin --profile web add https://github.com/ossFrankFrank/dsh-dracula-theme
44
63
 
45
64
  重启 profile 后,在**设置 → 通用 → 德古拉主题**里选择皮肤。
46
65
 
66
+ > **DSH Desktop 2.0.4+** — DSH 客户端包已升级到 `0.1.2-alpha.1`;**1.1.0** 是与该主机兼容的首个版本(见 CHANGELOG)。在 DSH Desktop 上请通过应用内插件市场安装,而不是原先的 `--profile web` CLI 流程(桌面端现在使用自己的 profile)。在 2.0.4 主机上安装 1.0.0 会导致应用**无法启动**(插件客户端 bundle 引用了已移除的 `@deepseek-ai/dsh-client-runtime` 模块),请勿安装旧版本。
67
+
47
68
  ## 开发
48
69
 
49
70
  ```sh
package/lib/client.js CHANGED
@@ -18,7 +18,11 @@ window.__ModuleLoader__.load({
18
18
  var exports = module.exports;
19
19
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
20
20
  let react_jsx_runtime = require("react/jsx-runtime");
21
- let _runtime_client = require("@deepseek-ai/dsh-client-runtime/client");
21
+ // DSH client packages moved to 0.1.2-alpha.1 in DSH Desktop 2.0.4:
22
+ // `@deepseek-ai/dsh-client-runtime` no longer exists in the web app's
23
+ // seed module table — `defineStore` lives in
24
+ // `@deepseek-ai/dsh-client-store` (a platform seed word).
25
+ let _client_store = require("@deepseek-ai/dsh-client-store");
22
26
 
23
27
  //#region dsh-dracula: definitions
24
28
  /** The settings row's locale namespace. */
@@ -508,7 +512,7 @@ window.__ModuleLoader__.load({
508
512
  * component reads via props.useStore.
509
513
  */
510
514
  function createSkinStore() {
511
- return (0, _runtime_client.defineStore)({
515
+ return (0, _client_store.defineStore)({
512
516
  init: () => ({
513
517
  skin: DEFAULT_SKIN,
514
518
  revision: -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-dracula-theme",
3
- "version": "0.1.5",
3
+ "version": "1.1.0",
4
4
  "description": "🧛 Dracula theme for DeepSeek Harness: the classic dark palette (plus the Soft variant) registered into the built-in theme runtime",
5
5
  "license": "MIT",
6
6
  "author": "ossFrankFrank",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "client": {
40
40
  "inject": [
41
- "@deepseek-ai/dsh-client-runtime",
41
+ "@deepseek-ai/dsh-client-store",
42
42
  "@deepseek-ai/dsh-client-locale",
43
43
  "@deepseek-ai/dsh-client-ui-theme"
44
44
  ],
@@ -49,12 +49,12 @@
49
49
  "peerDependencies": {
50
50
  "react": "^18.2.0",
51
51
  "@deepseek-ai/cordis": "^4.0.1",
52
- "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.6",
53
- "@deepseek-ai/dsh-client-ui-theme": "^0.1.0-rc.6",
54
- "@deepseek-ai/dsh-client-locale": "^0.1.0-rc.6",
55
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.6"
52
+ "@deepseek-ai/dsh-client-store": "^0.1.2-alpha.1",
53
+ "@deepseek-ai/dsh-client-ui-theme": "^0.1.2-alpha.1",
54
+ "@deepseek-ai/dsh-client-locale": "^0.1.2-alpha.1",
55
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.2-alpha.1"
56
56
  },
57
57
  "scripts": {
58
58
  "generate": "node scripts/gen-themes.mjs"
59
59
  }
60
- }
60
+ }