dsh-dafeiyu-emotion 0.2.6 → 0.2.7

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.7
4
+
5
+ - Fixed a host activation failure: `apply` read `ctx.settings` while the plugin only declared `webServer`. Cordis throws `cannot get property "settings" without inject`, so the whole host plugin failed to mount and `/plugins/dsh-dafeiyu-emotion/config` returned 404.
6
+ - Added `settings` to the declared inject list so the host can mount and register the health, analyze and config routes.
7
+ - Added a regression assertion that both `webServer` and `settings` are declared dependencies.
8
+
3
9
  ## 0.2.6
4
10
 
5
11
  - Fixed a blocking `Config` validation error: the 12 MiB `maxAudioBytes` default violated the old 1 MiB step relative to the 256 KiB minimum. Removed the schema step so the shipped default and the settings inputs validate.
@@ -17,7 +23,7 @@
17
23
 
18
24
  - Exported the Schemastery `Config` schema so DSH can persist setting changes from the panel.
19
25
  - Marked every config field volatile, matching the DSH settings service contract.
20
- - 0.2.4 shipped the settings UI; on hosts that require a registered volatile schema, saving failed. Install 0.2.5 for the full read/write path.
26
+ - 0.2.4 shipped the settings UI; on hosts that require a registered volatile schema, saving failed. 0.2.5 added the schema but its 1 MiB step rejected the 12 MiB default; install 0.2.6 instead.
21
27
 
22
28
  ## 0.2.4
23
29
 
package/README.md CHANGED
@@ -111,9 +111,9 @@ dsh plugin --profile desktop add github:LiDu-china/dsh-dafeiyu-emotion
111
111
  ### 通过 Release tarball
112
112
 
113
113
  ```bash
114
- curl -L -o dsh-dafeiyu-emotion-0.2.6.tgz \
115
- https://github.com/LiDu-china/dsh-dafeiyu-emotion/releases/download/v0.2.6/dsh-dafeiyu-emotion-0.2.6.tgz
116
- dsh plugin --profile desktop add "D:/path/to/dsh-dafeiyu-emotion-0.2.6.tgz"
114
+ curl -L -o dsh-dafeiyu-emotion-0.2.7.tgz \
115
+ https://github.com/LiDu-china/dsh-dafeiyu-emotion/releases/download/v0.2.7/dsh-dafeiyu-emotion-0.2.7.tgz
116
+ dsh plugin --profile desktop add "D:/path/to/dsh-dafeiyu-emotion-0.2.7.tgz"
117
117
  ```
118
118
 
119
119
  > DSH Desktop 的 profile 由 Electron 应用管理;命令行安装请使用桌面应用自带的 `dsh` 命令。
@@ -72,7 +72,7 @@ https://github.com/LiDu-china/dsh-dafeiyu-emotion/releases/download/v0.2.3/dsh-d
72
72
  dsh plugin --profile desktop add dsh-dafeiyu-emotion
73
73
  ```
74
74
 
75
- Published as `dsh-dafeiyu-emotion@0.2.6` on npm. The 1024Store entry refreshes its one-click install automatically. GitHub-source and Release-tarball installs remain available as fallbacks.
75
+ Published as `dsh-dafeiyu-emotion@0.2.7` on npm. The 1024Store entry refreshes its one-click install automatically. GitHub-source and Release-tarball installs remain available as fallbacks.
76
76
 
77
77
  ## Privacy
78
78
 
@@ -0,0 +1,15 @@
1
+ ## 0.2.7
2
+
3
+ 修复设置页显示“设置暂时不可用 / 读取设置失败(404)”的 Host 激活问题。
4
+
5
+ - 0.2.5/0.2.6 在 `apply` 中读取了 `ctx.settings`,但插件只声明了 `webServer` 依赖。Cordis 会抛 `cannot get property "settings" without inject`,导致整个 Host 插件没有挂载,`/plugins/dsh-dafeiyu-emotion/config` 返回 404。
6
+ - 0.2.7 把 `settings` 加入声明依赖,Host 现在可以正常注册 health、analyze 和 config 路由。
7
+ - 新增回归断言:`webServer` 和 `settings` 必须同时出现在 `inject` 中。
8
+
9
+ ## 安装
10
+
11
+ ```bash
12
+ dsh plugin --profile desktop add dsh-dafeiyu-emotion
13
+ ```
14
+
15
+ 升级后请完全退出并重新启动 the agent harness,让 Host 重新加载插件。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-dafeiyu-emotion",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "大肥鱼语音情绪耳朵:听语气、识别情绪,并让 DSH 按对方当下的状态自然回复。 · Voice + emotion-aware companion for DeepSeek Harness.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -2,7 +2,10 @@ import assert from 'node:assert/strict'
2
2
  import { EventEmitter } from 'node:events'
3
3
  import { Readable } from 'node:stream'
4
4
 
5
- import { apply } from '../src/index.js'
5
+ import { apply, inject } from '../src/index.js'
6
+
7
+ assert.ok(inject.includes('webServer'), 'webServer must be a declared dependency')
8
+ assert.ok(inject.includes('settings'), 'settings must be a declared dependency')
6
9
 
7
10
  const ANALYZE = '/plugins/dsh-dafeiyu-emotion/analyze'
8
11
  const HEALTH = '/plugins/dsh-dafeiyu-emotion/health'
package/src/index.js CHANGED
@@ -8,7 +8,7 @@ import { fileURLToPath } from 'node:url'
8
8
  import Schema from '@deepseek-ai/schemastery'
9
9
 
10
10
  export const name = 'dsh-dafeiyu-emotion'
11
- export const inject = ['webServer']
11
+ export const inject = ['webServer', 'settings']
12
12
 
13
13
  const ANALYZE_ENDPOINT = '/plugins/dsh-dafeiyu-emotion/analyze'
14
14
  const HEALTH_ENDPOINT = '/plugins/dsh-dafeiyu-emotion/health'