dsh-oort-theme-plugin 0.0.0-stage → 0.1.1

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DeepSeek
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.
@@ -0,0 +1,37 @@
1
+ # Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
2
+ # section, a hash of its English and Chinese blocks outside code blocks and generated regions.
3
+ # After editing either side, bring the other along and re-record with:
4
+ # pnpm run verify-translation-pairing --write theme-plugin/README.md
5
+ /:
6
+ en: 284c2f1d20f8450f
7
+ zh: 6eea2682ef3f023a
8
+ /dsh-oort-theme-plugin:
9
+ en: 008ca914d02b6785
10
+ zh: 81738d91fc1743a2
11
+ /dsh-oort-theme-plugin/summary:
12
+ en: cb86b4478c72ea61
13
+ zh: e88f3fc8ed5eccf5
14
+ /dsh-oort-theme-plugin/table-of-contents:
15
+ en: d152484eb41ac6b4
16
+ zh: e36dead4f5b39924
17
+ /dsh-oort-theme-plugin/use-this-package:
18
+ en: bbff250eba0f1b89
19
+ zh: be52206a1599204f
20
+ /dsh-oort-theme-plugin/use-this-package/install-a-local-package-archive:
21
+ en: a102bf63bc785773
22
+ zh: 5fbfadb8a07e0795
23
+ /dsh-oort-theme-plugin/understand-the-implementation:
24
+ en: 659711f8bef2f20d
25
+ zh: 0c6cfc4923914973
26
+ /dsh-oort-theme-plugin/further-exploration:
27
+ en: 5a33a44e99fa4a4d
28
+ zh: f8f23a2fd9f92f36
29
+ /dsh-oort-theme-plugin/model-experience:
30
+ en: a9adeafd581db859
31
+ zh: 0a828c3687bae3d3
32
+ /dsh-oort-theme-plugin/known-limitations-and-deferred-work:
33
+ en: bfeea25d6565e8c4
34
+ zh: e59a722d24fd9b55
35
+ /dsh-oort-theme-plugin/known-limitations-and-deferred-work/dev-note:
36
+ en: e67f633dc6fe7773
37
+ zh: 4f9f026b33f03db6
package/README.md CHANGED
@@ -1,3 +1,85 @@
1
- # Temporary Holding Version
1
+ ---
2
+ description: "Adds an Appearance dialog and image themes to the DSH desktop and Web client."
3
+ kind: "package-bundle"
4
+ ---
2
5
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
6
+ # dsh-oort-theme-plugin
7
+
8
+ English | [中文](README.zh.md)
9
+
10
+ ## Summary
11
+
12
+ This bundle adds an Appearance dialog to the account menu and provides selectable image themes. It uses the host's theme service, so the built-in light, dark, and system modes remain available. Install the bundle in a DSH profile and restart the application to load it.
13
+
14
+ ## Table of Contents
15
+
16
+ - [Use this package](#use-this-package)
17
+ - [Understand the implementation](#understand-the-implementation)
18
+ - [Further Exploration](#further-exploration)
19
+ - [Model Experience](#model-experience)
20
+ - [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
21
+ - [Dev Note](#dev-note)
22
+
23
+ -----
24
+
25
+ <a id="use-this-package"></a>
26
+ ## Use this package
27
+
28
+ ### Install a local package archive
29
+
30
+ Build and pack this directory from the repository checkout:
31
+
32
+ ```powershell
33
+ cd theme-plugin
34
+ npm pack
35
+ ```
36
+
37
+ Desktop includes version `0.1.0` as an offline fallback and checks npm for newer versions at startup. To install this archive manually, fully quit Desktop and run:
38
+
39
+ ```powershell
40
+ dsh plugin --profile desktop add C:\path\to\dsh-oort-theme-plugin-0.1.1.tgz
41
+ ```
42
+
43
+ Reopen Desktop to use a manual installation. The Appearance entry is in the menu opened from the account avatar at the lower left. The Web profile accepts the same archive through `dsh plugin --profile web add <archive>`.
44
+
45
+ -----
46
+
47
+ <a id="understand-the-implementation"></a>
48
+ ## Understand the implementation
49
+
50
+ <details>
51
+ <summary>Implementation internals — click to expand</summary>
52
+
53
+ The bundle patch inserts one Host row. The package's browser entry registers the theme options and dialog through the host's theme and slot services. Image assets are embedded in `lib/client.js` during the package build.
54
+
55
+ Version `0.1.1` adds Spring, Autumn leaves, Winter snow, Lavender, and Chinese ink backgrounds. Their photos come from Pixabay: [Spring](https://pixabay.com/photos/tree-276014/), [Autumn](https://pixabay.com/photos/forest-8371211/), [Winter](https://pixabay.com/photos/trees-4830285/), [Lavender](https://pixabay.com/photos/sunset-1373171/), and [Chinese ink](https://pixabay.com/photos/mountain-6815304/). The photos follow the [Pixabay Content License](https://pixabay.com/service/license-summary/); the theme palette and preview are defined in this package.
56
+
57
+ </details>
58
+
59
+ -----
60
+
61
+ <a id="further-exploration"></a>
62
+ ## Further Exploration
63
+
64
+ See the [Desktop plugin installation guide](../apps/desktop/README.md) and the [profile bundle model](../docs/architecture.md).
65
+
66
+ -----
67
+
68
+ <a id="model-experience"></a>
69
+ ## Model Experience
70
+
71
+ This bundle changes the interface only. It does not add model-visible input or tools.
72
+
73
+ ## Known Limitations and Deferred Work
74
+
75
+ The host must provide the Appearance menu action and theme service used by this package. Desktop checks npm for newer versions at startup; other profiles retain their installed version until updated explicitly.
76
+
77
+ <a id="dev-note"></a>
78
+ ### Dev Note
79
+
80
+ <details>
81
+ <summary>Working context for maintainers — click to expand</summary>
82
+
83
+ None.
84
+
85
+ </details>
package/README.zh.md ADDED
@@ -0,0 +1,85 @@
1
+ ---
2
+ description: "为 DSH 桌面版和 Web 客户端提供外观弹框与图片主题。"
3
+ kind: "package-bundle"
4
+ ---
5
+
6
+ # dsh-oort-theme-plugin
7
+
8
+ [English](README.md) | 中文
9
+
10
+ ## 概述
11
+
12
+ 此扩展包在账号菜单中提供「外观」弹框和可选图片主题。弹框使用宿主的主题服务,内置浅色、深色和跟随系统模式仍由宿主提供。将扩展包安装到 DSH 配置后,重启应用即可加载。
13
+
14
+ ## 目录
15
+
16
+ - [使用此扩展包](#use-this-package)
17
+ - [实现方式](#understand-the-implementation)
18
+ - [延伸阅读](#further-exploration)
19
+ - [模型体验](#model-experience)
20
+ - [已知限制](#known-limitations-and-deferred-work)
21
+ - [开发备注](#dev-note)
22
+
23
+ -----
24
+
25
+ <a id="use-this-package"></a>
26
+ ## 使用此扩展包
27
+
28
+ ### 安装本地压缩包
29
+
30
+ 在仓库检出目录构建并打包:
31
+
32
+ ```powershell
33
+ cd theme-plugin
34
+ npm pack
35
+ ```
36
+
37
+ 桌面版以 `0.1.0` 作为离线兜底,启动时检查 npm 是否有更新。若需手动安装此压缩包,先完全退出桌面版,再运行:
38
+
39
+ ```powershell
40
+ dsh plugin --profile desktop add C:\path\to\dsh-oort-theme-plugin-0.1.1.tgz
41
+ ```
42
+
43
+ 手动安装后重新打开桌面版。点击左下角账号头像展开菜单,即可找到「外观」。Web 配置也可用 `dsh plugin --profile web add <压缩包路径>` 安装同一压缩包。
44
+
45
+ -----
46
+
47
+ <a id="understand-the-implementation"></a>
48
+ ## 实现方式
49
+
50
+ <details>
51
+ <summary>实现细节——点击展开</summary>
52
+
53
+ 扩展包补丁插入一条 Host 配置。浏览器入口通过宿主的主题与槽位服务注册主题选项和弹框。构建时,图片资源被嵌入 `lib/client.js`。
54
+
55
+ `0.1.1` 新增春日、秋叶、冬雪、紫罗兰、中国风五套背景。照片来自 Pixabay:[春日](https://pixabay.com/photos/tree-276014/)、[秋叶](https://pixabay.com/photos/forest-8371211/)、[冬雪](https://pixabay.com/photos/trees-4830285/)、[紫罗兰](https://pixabay.com/photos/sunset-1373171/)及[中国风](https://pixabay.com/photos/mountain-6815304/)。照片适用 [Pixabay 内容许可](https://pixabay.com/service/license-summary/);本插件负责配色与预览。
56
+
57
+ </details>
58
+
59
+ -----
60
+
61
+ <a id="further-exploration"></a>
62
+ ## 延伸阅读
63
+
64
+ 参见[桌面插件安装说明](../apps/desktop/README.zh.md)和[配置扩展包机制](../docs/architecture.zh.md)。
65
+
66
+ -----
67
+
68
+ <a id="model-experience"></a>
69
+ ## 模型体验
70
+
71
+ 此扩展包只改变界面,不增加模型可见输入或工具。
72
+
73
+ ## 已知限制
74
+
75
+ 宿主必须提供此扩展包使用的「外观」菜单操作和主题服务。桌面版启动时检查 npm 新版本;其他配置需显式更新已安装版本。
76
+
77
+ <a id="dev-note"></a>
78
+ ### 开发备注
79
+
80
+ <details>
81
+ <summary>维护者工作记录——点击展开</summary>
82
+
83
+ 无。
84
+
85
+ </details>
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: oort-theme-plugin
3
+ name: dsh-oort-theme-plugin