dsh-dafeiyu-emotion 0.2.2 → 0.2.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/CHANGELOG.md +14 -0
- package/README.md +26 -5
- package/docs/MARKETPLACE.md +5 -1
- package/lib/client.js +944 -3
- package/package.json +2 -2
- package/scripts/test-client-registration.mjs +140 -0
- package/scripts/test-config-handler.mjs +188 -0
- package/src/index.js +180 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.4
|
|
4
|
+
|
|
5
|
+
- Added a full settings card for DSH's plugin settings, with live status for lightweight and enhanced modes.
|
|
6
|
+
- Added a "情绪耳朵" tab for `dsh-better-sidebar` so the same panel can be pinned in the right sidebar.
|
|
7
|
+
- Settings now cover enable/disable, recognition language, VoiceSense directory, Python path, recording limit, startup timeout and request timeout.
|
|
8
|
+
- Added `GET/PATCH /plugins/dsh-dafeiyu-emotion/config` with local-only access, strict field validation and live backend restart when paths or timeouts change.
|
|
9
|
+
- Refreshed the fish-ear trigger and settings panel with a calmer whale-blue visual system, visible focus states and reduced-motion support.
|
|
10
|
+
- Added config-handler regression tests (validation, read-only hosts, status codes and runtime updates).
|
|
11
|
+
|
|
12
|
+
## 0.2.3
|
|
13
|
+
|
|
14
|
+
- Documentation-only release: npm and the 1024Store entry now serve the corrected install notes for the 0.2.2 bug-fix release.
|
|
15
|
+
- No runtime behavior changed from 0.2.2.
|
|
16
|
+
|
|
3
17
|
## 0.2.2
|
|
4
18
|
|
|
5
19
|
- Fixed a duplicate-send race between auto-send and the manual send button.
|
package/README.md
CHANGED
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
>
|
|
25
25
|
> 角色主视觉采用蓝发鲸鱼少女的大肥鱼设定。
|
|
26
26
|
|
|
27
|
+
🎬 [观看 43 秒功能演示](https://github.com/LiDu-china/dsh-dafeiyu-emotion/releases/download/v0.2.3/dsh-dafeiyu-emotion-demo.mp4)
|
|
28
|
+
|
|
27
29
|
---
|
|
28
30
|
|
|
29
31
|
<a id="中文"></a>
|
|
@@ -68,6 +70,8 @@
|
|
|
68
70
|
|
|
69
71
|
- 🎙️ 输入框内录音,不需要跳到另一个应用;
|
|
70
72
|
- ⌨️ DSH 原生语音快捷键,可在快捷键设置中自行改键;
|
|
73
|
+
- 🎛️ DSH 设置页里的完整设置卡片:启用、语言、增强后端、超时和录音上限;
|
|
74
|
+
- 🧭 安装 Better Sidebar 后,可把「情绪耳朵」固定到右侧边栏;
|
|
71
75
|
- 🐋 大肥鱼主题的“鱼耳”入口,和普通对话共用同一个 composer;
|
|
72
76
|
- 🧠 情绪标签:喜悦 / 低落 / 生气 / 紧张 / 惊讶 / 厌烦 / 平静;
|
|
73
77
|
- 📈 额外给出 confidence、valence、arousal 和语气摘要;
|
|
@@ -90,8 +94,6 @@ dsh-dafeiyu-emotion
|
|
|
90
94
|
|
|
91
95
|
`dsh-dafeiyu-emotion` 已发布到 npm。1024Store 会自动刷新一键安装入口;如果客户端尚未缓存到新版本,可以直接使用下面的 npm 命令。
|
|
92
96
|
|
|
93
|
-
> `0.2.2` 目前通过 GitHub Release 提供;npm 上的最新版仍是 `0.2.1`,待 npm 发布完成后一键安装会自动升级。
|
|
94
|
-
|
|
95
97
|
### 通过 npm
|
|
96
98
|
|
|
97
99
|
```bash
|
|
@@ -109,13 +111,32 @@ dsh plugin --profile desktop add github:LiDu-china/dsh-dafeiyu-emotion
|
|
|
109
111
|
### 通过 Release tarball
|
|
110
112
|
|
|
111
113
|
```bash
|
|
112
|
-
curl -L -o dsh-dafeiyu-emotion-0.2.
|
|
113
|
-
https://github.com/LiDu-china/dsh-dafeiyu-emotion/releases/download/v0.2.
|
|
114
|
-
dsh plugin --profile desktop add "D:/path/to/dsh-dafeiyu-emotion-0.2.
|
|
114
|
+
curl -L -o dsh-dafeiyu-emotion-0.2.4.tgz \
|
|
115
|
+
https://github.com/LiDu-china/dsh-dafeiyu-emotion/releases/download/v0.2.4/dsh-dafeiyu-emotion-0.2.4.tgz
|
|
116
|
+
dsh plugin --profile desktop add "D:/path/to/dsh-dafeiyu-emotion-0.2.4.tgz"
|
|
115
117
|
```
|
|
116
118
|
|
|
117
119
|
> DSH Desktop 的 profile 由 Electron 应用管理;命令行安装请使用桌面应用自带的 `dsh` 命令。
|
|
118
120
|
|
|
121
|
+
## 设置页与侧边栏
|
|
122
|
+
|
|
123
|
+
插件会把自己的设置卡片注册到 DSH 的插件设置页。打开:
|
|
124
|
+
|
|
125
|
+
```text
|
|
126
|
+
设置 → 插件 → 大肥鱼情绪耳朵
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
可以直接调整:
|
|
130
|
+
|
|
131
|
+
- 启用 / 停用情绪耳朵;
|
|
132
|
+
- 识别语言:中文、English 或自动;
|
|
133
|
+
- VoiceSense 增强后端目录与 Python 路径;
|
|
134
|
+
- 单次录音上限、后端启动超时、单次分析超时。
|
|
135
|
+
|
|
136
|
+
卡片顶部会实时显示当前模式:轻量模式、增强模式已就绪、模型加载中、后端目录不存在或等待 Voice Input。保存后配置会立即写入 DSH 设置,并在路径或超时变化时自动重启语音 worker。
|
|
137
|
+
|
|
138
|
+
如果安装了 [Better Sidebar](https://github.com/omdsh-dev/DSH-better-sidebar),还可以在右侧边栏的 `+` 菜单里固定「情绪耳朵」,把同一份设置和状态放在对话旁边。
|
|
139
|
+
|
|
119
140
|
## 语音快捷键
|
|
120
141
|
|
|
121
142
|
插件会向 DSH 注册一个原生快捷键命令。打开:
|
package/docs/MARKETPLACE.md
CHANGED
|
@@ -24,6 +24,10 @@ https://raw.githubusercontent.com/LiDu-china/dsh-dafeiyu-emotion/main/assets/ico
|
|
|
24
24
|
|
|
25
25
|
让 DSH 里的大肥鱼听得见、听得懂,并按对方的语气和情绪自然回复。
|
|
26
26
|
|
|
27
|
+
## Demo video
|
|
28
|
+
|
|
29
|
+
https://github.com/LiDu-china/dsh-dafeiyu-emotion/releases/download/v0.2.3/dsh-dafeiyu-emotion-demo.mp4
|
|
30
|
+
|
|
27
31
|
## Short description
|
|
28
32
|
|
|
29
33
|
在 DSH 输入框旁边加一个 🐋 鱼耳:本地转写语音,分析语速/停顿/音高/能量和文字线索,生成克制的情绪上下文,再自动发送给大肥鱼回复。默认不把音频上传到云端。
|
|
@@ -68,7 +72,7 @@ https://raw.githubusercontent.com/LiDu-china/dsh-dafeiyu-emotion/main/assets/ico
|
|
|
68
72
|
dsh plugin --profile desktop add dsh-dafeiyu-emotion
|
|
69
73
|
```
|
|
70
74
|
|
|
71
|
-
|
|
75
|
+
Published as `dsh-dafeiyu-emotion@0.2.4` on npm. The 1024Store entry refreshes its one-click install automatically. GitHub-source and Release-tarball installs remain available as fallbacks.
|
|
72
76
|
|
|
73
77
|
## Privacy
|
|
74
78
|
|