@dsh-tom/dsh-css 0.3.2 → 0.3.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 CHANGED
@@ -22,7 +22,7 @@ npm publish --access public --registry=https://registry.npmjs.org/
22
22
  打开 **插件 → 添加插件 → 安装第三方插件**,在“包名或地址”输入:
23
23
 
24
24
  ```text
25
- D:\product\dsh-css\dsh-tom-dsh-css-0.3.2.tgz
25
+ D:\product\dsh-css\dsh-tom-dsh-css-0.3.4.tgz
26
26
  ```
27
27
 
28
28
  安装并启用,然后完全退出并重新打开 dsh。
@@ -32,7 +32,7 @@ D:\product\dsh-css\dsh-tom-dsh-css-0.3.2.tgz
32
32
  包发布到 npmjs 后,先卸载已安装的旧版,再打开 **插件 → 添加插件 → 安装第三方插件**,输入:
33
33
 
34
34
  ```text
35
- @dsh-tom/dsh-css@0.3.2
35
+ @dsh-tom/dsh-css@0.3.4
36
36
  ```
37
37
 
38
38
  选择 **安装源 → npm 官方源**,安装并启用,然后完全退出并重新打开 dsh。
package/dist/client.js CHANGED
@@ -78,6 +78,14 @@ html body[data-ds-dark-theme] {
78
78
  --dsw-alias-markdown-code-block: rgb(55, 56, 50) !important;
79
79
  }
80
80
 
81
+ /* \u5DF2\u7F16\u8F91\u6587\u4EF6\u5361\u7247\uFF1A\u533A\u57DF 1 \u4E3A\u6807\u9898\uFF0C\u533A\u57DF 2 \u4E3A\u6587\u4EF6\u5217\u8868\u53CA\u5C55\u5F00\u6309\u94AE\u3002 */
82
+ html body[data-ds-dark-theme] [data-changed-files] {
83
+ --changes-fill: #30312b;
84
+ --changes-hover: #353630;
85
+ --dsw-alias-interactive-bg-hover: #3a3b34;
86
+ background: #292b25;
87
+ }
88
+
81
89
  /* \u6807\u9898\u680F\u53CA\u539F\u751F\u7A97\u53E3\u6309\u94AE\u5171\u4EAB\u6B64\u989C\u8272\uFF0C\u4F1A\u8BDD\u5217\u8868\u7EE7\u7EED\u4F7F\u7528\u539F\u6765\u7684\u80CC\u666F\u3002 */
82
90
  html[data-windows-titlebar] body[data-ds-dark-theme] {
83
91
  --dsw-specific-sidebar-fill: rgb(32, 32, 32) !important;
package/dist/index.js CHANGED
@@ -20189,8 +20189,8 @@ function registerRea(ctx) {
20189
20189
  if (entries.length > 1) ctx.logger.warn("\u68C0\u6D4B\u5230\u591A\u6761\u5168\u5C40 REA MCP \u914D\u7F6E\uFF0C\u8BF7\u4FDD\u7559\u4E00\u6761\u540E\u518D\u542F\u7528 /rea\u3002");
20190
20190
  return;
20191
20191
  }
20192
- if (!source.disabled) {
20193
- const fiber = source.fiber;
20192
+ const fiber = source.fiber;
20193
+ if (!source.disabled || fiber?.uid) {
20194
20194
  await source.update({ disabled: true });
20195
20195
  while (fiber?.inertia) await fiber.inertia;
20196
20196
  }
@@ -20216,7 +20216,11 @@ function registerRea(ctx) {
20216
20216
  ctx.on("loader/entry-init", scheduleRefresh, { global: true });
20217
20217
  ctx.on("loader/partial-dispose", scheduleRefresh, { global: true });
20218
20218
  ctx.on("internal/plugin", (fiber) => {
20219
- if (fiber.entry?.options.name === MCP_PLUGIN && scopeOf(fiber.ctx) === void 0) scheduleRefresh();
20219
+ if (fiber.entry?.options.name !== MCP_PLUGIN || scopeOf(fiber.ctx) !== void 0) return;
20220
+ if (fiber.entry === source && source.disabled && fiber.uid) {
20221
+ Promise.resolve(fiber.dispose()).catch((error62) => ctx.logger.warn(error62));
20222
+ }
20223
+ scheduleRefresh();
20220
20224
  }, { global: true });
20221
20225
  ctx.on("agent/created", async ({ agent }) => {
20222
20226
  await Promise.resolve();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-tom/dsh-css",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "为 DeepSeek Harness 调整深色界面,增加项目管理、费用统计和任务进展播报。",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/theme.css CHANGED
@@ -44,6 +44,14 @@ html body[data-ds-dark-theme] {
44
44
  --dsw-alias-markdown-code-block: rgb(55, 56, 50) !important;
45
45
  }
46
46
 
47
+ /* 已编辑文件卡片:区域 1 为标题,区域 2 为文件列表及展开按钮。 */
48
+ html body[data-ds-dark-theme] [data-changed-files] {
49
+ --changes-fill: #30312b;
50
+ --changes-hover: #353630;
51
+ --dsw-alias-interactive-bg-hover: #3a3b34;
52
+ background: #292b25;
53
+ }
54
+
47
55
  /* 标题栏及原生窗口按钮共享此颜色,会话列表继续使用原来的背景。 */
48
56
  html[data-windows-titlebar] body[data-ds-dark-theme] {
49
57
  --dsw-specific-sidebar-fill: rgb(32, 32, 32) !important;