dsh-inkpond 0.0.0-stage → 0.2.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Shin
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.
package/README.en.md ADDED
@@ -0,0 +1,102 @@
1
+ # Inkpond for DSH
2
+
3
+ [简体中文](README.md)
4
+
5
+ Interactive Chinese glyph ink-wash backgrounds for DeepSeek Harness.
6
+ The default **lotus pond** has drifting koi, lotus leaves and flowers. Pointer movement makes ripples;
7
+ clicking empty space drops ink. Misty hills, a Qingming handscroll, the 24 solar terms and the Northern sea are also included.
8
+
9
+ ![Lotus pond live preview in DSH, 1280×720](https://raw.githubusercontent.com/shin4/inkpond-dsh/main/docs/images/lotus-preview.gif)
10
+
11
+ [View the 16:9 still screenshot](https://raw.githubusercontent.com/shin4/inkpond-dsh/main/docs/images/lotus-preview.png) · Actual capture, approximately 10 seconds, with the default lotus scene and 45% strength.
12
+
13
+ ## Compatibility
14
+
15
+ The initial verified host is **DSH 0.2.1-rc.3**, using the kernel shipped with the official macOS
16
+ Desktop app in an isolated Web profile. `engines.dsh` is intentionally pinned to that version.
17
+ Other releases and Windows/Linux are not yet verified. The adapter uses semantic conversation DOM
18
+ markers; host layout/API changes need validation before widening compatibility.
19
+
20
+ ## Install
21
+
22
+ ### Desktop or Web: use the Add plugin wizard (recommended)
23
+
24
+ 1. Open **Plugins → Add plugin → Install a third-party plugin** in DSH.
25
+ 2. Enter the npm package name in the **Package name or address** field:
26
+
27
+ ```text
28
+ dsh-inkpond
29
+ ```
30
+
31
+ To pin the current version, enter `dsh-inkpond@0.2.0` instead.
32
+ 3. Select **Official npm registry** under the installation registry options, then click **Install**.
33
+ Mirrors may not have synchronized a newly published version yet.
34
+ 4. Start a new empty conversation to see the default lotus pond. If DSH requests a restart,
35
+ fully quit and reopen the application.
36
+
37
+ The wizard installs directly from npm, independently of listings in 1024 Store or dshmarket.
38
+ No source checkout or local compilation is needed. The compatibility limits above still apply.
39
+
40
+ ### Install into a Web profile with the CLI
41
+
42
+ ```bash
43
+ dsh plugin --profile web add dsh-inkpond@0.2.0
44
+ ```
45
+
46
+ For Desktop, prefer the in-app wizard above, which targets the current application's profile.
47
+ The terminal's `web` profile is not necessarily the Desktop profile.
48
+ The package is published on [npm](https://www.npmjs.com/package/dsh-inkpond).
49
+
50
+ ### Install a Release tarball
51
+
52
+ Download `dsh-inkpond-0.2.0.tgz` from [Releases](https://github.com/shin4/inkpond-dsh/releases).
53
+ Enter its absolute local path in the host plugin manager, or install into a regular Web profile:
54
+
55
+ ```bash
56
+ dsh plugin --profile web add /absolute/path/to/dsh-inkpond-0.2.0.tgz
57
+ ```
58
+
59
+ Refresh the page; restart the instance if it does not hot-load. The tarball is prebuilt and
60
+ does not compile code at installation time.
61
+ A GitHub source checkout requires `npm ci && npm run build` before installation.
62
+
63
+ ## Preferences
64
+
65
+ Open Plugins → Installed → dsh-inkpond. Select Lotus pond (default), Misty hills, Qingming handscroll, 24 solar terms (selected by the current date) or Northern sea (waves and a whale);
66
+ choose new conversations only (default) or all conversations, toggle color accents, adjust ink strength,
67
+ and select system animation preferences or a still image. All-conversation mode needs further long-chat testing.
68
+ Restore defaults returns to Lotus pond, 45% strength, new conversations only and system motion preferences.
69
+
70
+ The canvas passes through clicks and never controls typing or sending. Hidden pages pause animation;
71
+ reduced motion produces a still image, and forced colors hides the decoration. Weak devices downgrade automatically.
72
+
73
+ Preferences use this client's origin-local storage (`dsh-inkpond.preferences.v1`); performance uses
74
+ `dsh-inkpond.tier.v1`. They do not synchronize between browsers, ports or devices. When storage is
75
+ unavailable, changes last only for the current page. Uninstall removes runtime instances, styles and DOM
76
+ markers but retains preferences for reinstall. Delete those two storage keys to remove preferences too.
77
+
78
+ ## Development
79
+
80
+ Node.js 22+ and npm:
81
+
82
+ ```bash
83
+ npm ci
84
+ npm run check
85
+ npm pack
86
+ ```
87
+
88
+ `check` runs type checking, tests and the build. The tarball contains the Host entry, DSH client factory,
89
+ offline fonts and licenses. React comes from DSH; the renderer is pinned to local inkpond commit `c502ef8ba4a898b22f321a5dba3e2255736bc60c`
90
+ (an independent dependency tarball; see `vendor/README.md`).
91
+ Test tarballs in a separate `DSH_HOME`. Avoid uninstall tests in a daily profile. DSH local-link removal
92
+ was observed cleaning the linked target's development dependencies, so use tarballs for acceptance testing.
93
+ See the [verification record](docs/verification.md) and [release checklist](docs/release.md).
94
+
95
+ ## Scope and licenses
96
+
97
+ This plugin adds only backgrounds and appearance preferences. It registers no model tools, reads no
98
+ messages, sends no telemetry and makes no third-party network requests. All fonts are included; no CDN
99
+ is needed. The host's own networking is outside this plugin's control.
100
+
101
+ MIT code; renderer from [inkpond](https://github.com/shin4/inkpond). Font subsets use SIL OFL 1.1;
102
+ see [third-party notices](THIRD_PARTY_NOTICES.md). Independent community project, unaffiliated with DeepSeek.
package/README.md CHANGED
@@ -1,3 +1,101 @@
1
- # Temporary Holding Version
1
+ # 墨池 · Inkpond for DSH
2
2
 
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.
3
+ [English](README.en.md)
4
+
5
+ 以字为墨,以页为池。为 DeepSeek Harness 会话界面铺一层可交互的汉字水墨背景。
6
+
7
+ 默认是**莲池**:荷叶与荷花之间,鲤鱼缓缓游动。鼠标划过起涟漪,点击空白处落墨。
8
+ 可切换山水、清明上河、二十四节气和北冥,保留输入区留白、明暗主题跟随及自动性能降级。
9
+
10
+ ![莲池动态预览:DSH 实际运行画面,1280×720](https://raw.githubusercontent.com/shin4/inkpond-dsh/main/docs/images/lotus-preview.gif)
11
+
12
+ [查看 16:9 静态截图](https://raw.githubusercontent.com/shin4/inkpond-dsh/main/docs/images/lotus-preview.png) · 实际录屏,约 10 秒,默认莲池与 45% 浓度。
13
+
14
+ ## 兼容性
15
+
16
+ 首版验证基线为 **DSH 0.2.1-rc.3**(macOS 官方桌面应用携带的内核,隔离 Web profile)。
17
+ `engines.dsh` 暂时固定该版本;其他版本及 Windows/Linux 尚未验证。
18
+ 插件依赖会话容器的语义 DOM 标记,宿主 API 或布局改变时需要重新验证后扩大版本范围。
19
+
20
+ ## 安装
21
+
22
+ ### 桌面版或网页版:通过添加插件向导安装(推荐)
23
+
24
+ 1. 打开 DSH 的 **插件 → 添加插件 → 安装第三方插件**(Add plugin)。
25
+ 2. 在向导的「包名或地址」输入框中填写 npm 包名:
26
+
27
+ ```text
28
+ dsh-inkpond
29
+ ```
30
+
31
+ 如需固定当前版本,填写 `dsh-inkpond@0.2.0`。
32
+ 3. 在「安装源」中选择 **npm 官方源**,点击 **安装**(Install)。新版本可能尚未同步到镜像源。
33
+ 4. 安装后新建空白会话,即可看到默认莲池。若宿主提示重启,请完全退出并重新打开 DSH。
34
+
35
+ 此入口直接从 npm 安装,不依赖 1024 Store 或 dshmarket 是否已收录。
36
+ 无需下载源码或在本机编译。适用版本仍以本文的兼容性说明为准。
37
+
38
+ ### 使用 CLI 安装到 Web profile
39
+
40
+ ```bash
41
+ dsh plugin --profile web add dsh-inkpond@0.2.0
42
+ ```
43
+
44
+ 桌面版推荐使用上述应用内向导,它会安装到当前应用的 profile;
45
+ 不要假定终端的 `web` profile 就是桌面配置。包发布于 [npm](https://www.npmjs.com/package/dsh-inkpond)。
46
+
47
+ ### 使用 Release 安装包
48
+
49
+ 从 [GitHub Releases](https://github.com/shin4/inkpond-dsh/releases) 下载 `dsh-inkpond-0.2.0.tgz`。
50
+ 在 DSH 插件管理页填入本地安装包的绝对路径,或使用普通 Web profile:
51
+
52
+ ```bash
53
+ dsh plugin --profile web add /absolute/path/to/dsh-inkpond-0.2.0.tgz
54
+ ```
55
+
56
+ 刷新页面;若宿主未热加载,重启对应实例。安装包包含构建产物,不执行安装期编译。
57
+ GitHub 源码 checkout 需要先 `npm ci && npm run build`,不能直接从未构建源码安装。
58
+
59
+ ## 使用
60
+
61
+ 插件 → 已安装 → dsh-inkpond:
62
+
63
+ - 默认莲池,亦可选山水、清明上河、二十四节气和北冥。节气随当前日期选择画面;北冥呈现海浪与鲸影。
64
+ - 默认仅新会话显示;可选择所有会话(长对话兼容性仍需更多实测)。
65
+ - 调整淡彩、墨色浓淡,选择跟随系统动画或静态画面。
66
+ - 恢复默认会回到莲池、45% 浓度、仅新会话、跟随系统动画。
67
+
68
+ 画布不会接管点击、键盘或发送消息。关闭标签页显示会暂停,减少动画设置会生成静态画面,
69
+ 高对比度模式会隐藏画布。弱设备会自动降低动画档位。
70
+
71
+ 外观偏好存于当前客户端 origin 的 `localStorage`(`dsh-inkpond.preferences.v1`),
72
+ 性能档位使用 `dsh-inkpond.tier.v1`。它们不跨浏览器、端口或设备同步。
73
+ 存储不可用时设置仅在当前页面有效。卸载会清除运行实例、样式与 DOM 标记,保留本地偏好便于重装;
74
+ 需要彻底清除偏好时可删除上述两个站点存储键。
75
+
76
+ ## 开发
77
+
78
+ Node.js 22+,npm:
79
+
80
+ ```bash
81
+ npm ci
82
+ npm run check
83
+ npm pack
84
+ ```
85
+
86
+ `check` 执行类型检查、单元测试和构建。`npm pack` 生成独立安装包,包含 Host 入口、
87
+ DSH 客户端工厂、内嵌字体和许可证。React 由宿主提供,绘制引擎固定使用 本地 inkpond 提交 `c502ef8ba4a898b22f321a5dba3e2255736bc60c`(独立依赖包,详见 `vendor/README.md`)。
88
+
89
+ 使用独立 `DSH_HOME` 验证安装包;不要在日常 profile 中进行卸载测试。
90
+ 已观察到 DSH 本地链接卸载可能清理链接目标的开发依赖,因此推荐始终用 `.tgz` 做安装验收。
91
+
92
+ 详见 [验证记录](docs/verification.md) 和 [发布清单](docs/release.md)。
93
+
94
+ ## 范围与许可
95
+
96
+ 本插件只提供背景和外观设置,没有模型工具、遥测、消息读取或第三方网络请求。
97
+ 五个字体子集随包提供,无需 CDN。宿主自身的网络行为不由本插件控制。
98
+
99
+ 代码采用 MIT;绘制核心来自 [inkpond](https://github.com/shin4/inkpond),
100
+ 字体采用 SIL OFL 1.1,见 [第三方声明](THIRD_PARTY_NOTICES.md)。
101
+ 独立社区插件,与 DeepSeek 官方无隶属关系。
@@ -0,0 +1,13 @@
1
+ # Third-party notices
2
+
3
+ The browser artifact bundles Inkpond 0.1.0 (https://github.com/shin4/inkpond),
4
+ Copyright (c) 2026 Shin, under the MIT license. Built from local upstream commit c502ef8ba4a898b22f321a5dba3e2255736bc60c,
5
+ not the published npm 0.1.0 artifact. Its vendored tarball integrity is pinned in
6
+ package-lock.json. The upstream library remains independently maintained.
7
+
8
+ The five bundled Inkpond Glyphs font subsets derive from Source Han Serif SC
9
+ Medium and are licensed under SIL OFL 1.1. They retain their modified names.
10
+ The complete license, copyright and modification notice is shipped in
11
+ lib/licenses/OFL.txt; the upstream code license is in lib/licenses/inkpond-MIT.txt.
12
+
13
+ React and Cordis are supplied by the DSH host, not bundled into the browser artifact.
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: inkpond
3
+ name: dsh-inkpond
@@ -0,0 +1,4 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "inkpond": "file:vendor/inkpond-c502ef8.tgz"
4
+ }