dsh-anime-bundle 0.0.0-stage → 1.0.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 吴靖文
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.md CHANGED
@@ -1,3 +1,108 @@
1
- # Temporary Holding Version
1
+ # dsh-anime-bundle · 二次元大肥鱼模式
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
+ > **第三方插件,非 DeepSeek / DSH 官方出品。**
4
+ > 与「大肥鱼」人设、`dafy-whale-theme`、`dsh-boot-suite` 的作者(LeeRolling / 沈宏宏)**没有隶属、授权或合作关系**。
5
+ > 本插件只是把你**自己**装的这套二次元外观插件编排成一个开关;默认清单里每个插件的版权归各自作者所有,
6
+ > 本包**不打包**它们的任何代码、素材或字体。
7
+
8
+ 一个设置页,把「这一套二次元外观」当成一个整体来管:总开关、人格开关、插件清单、一键装回缺失、检查更新。
9
+
10
+ - **模式总开关**:一键关掉 / 恢复整套二次元外观。关闭时记住当前组合,再开启按这份组合恢复;想换基准点「记住当前组合」。
11
+ - **肥鱼娘人格**:打开后把人格段落注入系统提示词,关闭立刻回到正常模式;下一条消息生效,不用重启。设置页有自检,会读一遍组装后的提示词确认段落进去了。
12
+ - **插件清单**:默认 8 个,可单独开关;显示版本、未安装、本地链接、可更新。
13
+ - **添加 / 移除插件**:「添加插件」列出**已安装但不在清单里**的第三方插件,可加入外观或功能组;每行的 `×` 只把条目从清单移除,**不卸载、不改开关**;「恢复默认清单」一键还原。
14
+ - **一键下载缺失**:按清单里的锁定版本把缺的插件装回来,并把原本开着的重新打开。
15
+ - **检查更新 / 更新全部**:走 npm 仓库,每包最多重试 3 次,查完复核状态。
16
+ - **自检**:提示词、状态文件、插件清单各查一遍,结果直接显示在页面上。
17
+
18
+ ## 安装
19
+
20
+ ```bash
21
+ # 普通 DSH
22
+ dsh plugin --profile <profile> add dsh-anime-bundle
23
+ ```
24
+
25
+ 桌面端:**设置 → 插件 → 添加插件**,输入 `dsh-anime-bundle`。
26
+
27
+ 本地开发(指向克隆目录):
28
+
29
+ ```bash
30
+ dsh plugin --profile desktop add "link:<克隆下来的目录>"
31
+ ```
32
+
33
+ 装完刷新页面;Host 侧改代码要在「设置 → 插件」里把这个插件关一次再开(或重启 DSH),Client 侧改代码刷新页面即可。
34
+
35
+ ## 入口
36
+
37
+ 设置 → **大肥鱼模式**(与「启动动画」「聊天背景」同一列)。
38
+
39
+ ## 默认清单
40
+
41
+ | 插件 | 分组 | 锁定版本 |
42
+ |---|---|---|
43
+ | `dafy-whale-theme` 蓝色大肥鱼主题 | 外观 | 2.1.0 |
44
+ | `dsh-whale-widget` 鲸鱼挂件 | 外观 | 0.4.2 |
45
+ | `dsh-boot-suite` 开机动画套件 | 外观 | 2.16.2 |
46
+ | `@smalltailqwq/dsh-client-ui-skin-deep-whale-manager` 皮肤管理器 | 外观 | 0.1.8 |
47
+ | `@smalltailqwq/dsh-client-ui-skin-maid-atelier` 深海女仆工坊 | 外观 | 0.1.9 |
48
+ | `dsh-mnemon` 记忆 | 功能 | 0.5.39 |
49
+ | `dsh-media-serve` 媒体服务 | 功能 | 0.2.4 |
50
+ | `dsh-mcp-panel` MCP 面板 | 功能 | 0.6.29 |
51
+
52
+ 这些**都不随本插件打包**,是安装时从 npm 单独拉取的第三方包。
53
+
54
+ ## 增删规则
55
+
56
+ - 只列 `installed: true` 的第三方 bundle;`@deepseek-ai/*` 和官方插件不在这里管,请去「设置 → 插件」。
57
+ - 加入时把当前版本记成 `pin`(npm)或本地路径(link),「一键下载缺失」按这个版本装回来。
58
+ - 移除只是从清单里拿掉,**不卸载、不改开关**;想彻底卸载请用「设置 → 插件」。
59
+ - 移除默认条目后再加回来,会恢复它原本的分组(外观 / 功能)。
60
+
61
+ ## 状态
62
+
63
+ `` `~/.dsh/dafy-mode.json` `` —— 人格开关、模式开关、记住的组合、更新检查结果、运行期增删的 `added` / `removed`。
64
+
65
+ > 文件名的 `dafy-mode` 是历史遗留标识(与内部路由 `/dafy-mode/*` 一起保留),为了从早期版本升级时不丢设置。
66
+ > 包名、设置页显示名与它的含义无关。
67
+
68
+ ## 它做了什么(安全说明)
69
+
70
+ - 所有开关都走 DSH 官方的插件管理路径(`pluginManager.setBundleEnabled`),和「设置 → 插件」按钮等价。
71
+ - 「一键下载缺失 / 更新全部」会让宿主用 pnpm 从 `registry.npmjs.org`(或你配置的镜像)安装清单里的包,
72
+ 安装内容完全由清单决定;不会执行清单以外的下载。
73
+ - Host 侧只读写 `~/.dsh/dafy-mode.json`,不访问网络、不收集任何数据。
74
+
75
+ ## 开发
76
+
77
+ | 想改什么 | 改哪里 |
78
+ |---|---|
79
+ | 人格口癖、称呼、开场白 | `persona.js` 的 `PERSONA_TEXT` |
80
+ | 默认清单、锁定版本、默认开关 | `catalog.js` 的 `MANAGED` |
81
+ | 运行期加 / 减插件 | 设置页「添加插件」/ 每行的 `×` / 「恢复默认清单」 |
82
+ | 页面文案(中 / 英) | `client.js` 顶部的 `zh` / `en` |
83
+ | 设置页名称、图标、描述 | `locale/zh.json`、`locale/en.json`、`icon.svg` |
84
+
85
+ ## 许可与致谢
86
+
87
+ MIT(只覆盖本插件自己的代码与文案)。
88
+
89
+ 默认清单里的插件由其各自作者发布并按各自许可分发;「大肥鱼 / 肥鱼娘」相关设定与素材的所有权归原作者。
90
+ 本插件不包含、也不再分发这些素材。
91
+
92
+ ---
93
+
94
+ ## English
95
+
96
+ A settings page that treats your anime skin stack as one switch: toggle the whole look, flip a
97
+ persona prompt on/off, see every managed plugin's version, reinstall what's missing, and check for
98
+ updates — all through DSH's own plugin-manager APIs.
99
+
100
+ **Unofficial.** Not affiliated with or endorsed by DeepSeek, DSH, or the authors of the plugins in
101
+ the default list (`dafy-whale-theme`, `dsh-boot-suite`, the whale skins). Those packages keep their
102
+ own licenses and are installed separately from npm — none of their code or assets are bundled here.
103
+
104
+ ```bash
105
+ dsh plugin --profile <profile> add dsh-anime-bundle
106
+ ```
107
+
108
+ Then open **Settings → 大肥鱼模式**.
package/catalog.js ADDED
@@ -0,0 +1,91 @@
1
+ /**
2
+ * 「大肥鱼模式」的默认插件清单(发布时的默认组合)。
3
+ * 设置页可以运行期增删:增删记录存在 ~/.dsh/dafy-mode.json 的 added / removed,
4
+ * 这里只负责开箱默认值,不用为了增删改代码。
5
+ *
6
+ * kind:
7
+ * - npm :走 npm 仓库安装,pin 是装回来时锁定的版本(保证"一键下载"复刻现在的组合)
8
+ * - link :本机目录 link 安装,装不回来时给出明确提示
9
+ * group:
10
+ * - mode :二次元外观,归"大肥鱼模式"总开关管
11
+ * - util :功能插件,只做单独开关,不随总开关走
12
+ */
13
+ export const MANAGED = [
14
+ {
15
+ name: 'dafy-whale-theme',
16
+ title: '蓝色大肥鱼主题',
17
+ note: '整站海洋蓝配色、鱼群、气泡和每日鱼语',
18
+ group: 'mode',
19
+ kind: 'npm',
20
+ pin: '2.1.0',
21
+ defaultEnabled: false,
22
+ },
23
+ {
24
+ name: 'dsh-whale-widget',
25
+ title: '鲸鱼挂件',
26
+ note: '桌面鲸鱼浮窗与状态挂件',
27
+ group: 'mode',
28
+ kind: 'npm',
29
+ pin: '0.4.2',
30
+ defaultEnabled: true,
31
+ },
32
+ {
33
+ name: 'dsh-boot-suite',
34
+ title: '开机动画套件',
35
+ note: '六幕开机动画、模板与聊天壁纸',
36
+ group: 'mode',
37
+ kind: 'npm',
38
+ pin: '2.16.2',
39
+ defaultEnabled: true,
40
+ },
41
+ {
42
+ name: '@smalltailqwq/dsh-client-ui-skin-deep-whale-manager',
43
+ title: '皮肤管理器',
44
+ note: '切换已装皮肤、调每套皮肤自己的选项',
45
+ group: 'mode',
46
+ kind: 'npm',
47
+ pin: '0.1.8',
48
+ defaultEnabled: true,
49
+ },
50
+ {
51
+ name: '@smalltailqwq/dsh-client-ui-skin-maid-atelier',
52
+ title: '深海女仆工坊',
53
+ note: '双女仆皮肤',
54
+ group: 'mode',
55
+ kind: 'npm',
56
+ pin: '0.1.9',
57
+ defaultEnabled: true,
58
+ },
59
+ {
60
+ name: 'dsh-mnemon',
61
+ title: 'Mnemon 记忆',
62
+ note: '长期记忆、文档检索与热记忆注入',
63
+ group: 'util',
64
+ kind: 'npm',
65
+ pin: '0.5.39',
66
+ defaultEnabled: true,
67
+ },
68
+ {
69
+ name: 'dsh-media-serve',
70
+ title: '媒体服务',
71
+ note: '本地图片 / 视频素材的同源静态服务',
72
+ group: 'util',
73
+ kind: 'npm',
74
+ pin: '0.2.4',
75
+ defaultEnabled: true,
76
+ },
77
+ {
78
+ name: 'dsh-mcp-panel',
79
+ title: 'MCP 面板',
80
+ note: 'MCP 服务器的安装、探活与工具调用',
81
+ group: 'util',
82
+ kind: 'npm',
83
+ pin: '0.6.29',
84
+ defaultEnabled: true,
85
+ },
86
+ ]
87
+
88
+ /** 总开关只负责外观这一组。 */
89
+ export const MODE_PLUGINS = MANAGED.filter((entry) => entry.group === 'mode')
90
+
91
+ export const MANAGED_NAMES = new Set(MANAGED.map((entry) => entry.name))