@kanadego/dsh-heartbeat 2.1.1 → 2.1.2
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/README.md +7 -1
- package/client.js +16 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -294,7 +294,7 @@ node <插件目录>/dist/cli/index.js <命令>
|
|
|
294
294
|
|
|
295
295
|
| 插件版本 | 适配的 DSH |
|
|
296
296
|
| ------------------ | --------------------------- |
|
|
297
|
-
| **v2.1.
|
|
297
|
+
| **v2.1.1 – v2.1.2**(当前) | `0.2.0-rc.1` – `0.2.1-rc.5` |
|
|
298
298
|
| v2.0.0 – v2.0.1 | `0.2.0-rc.1` – `0.2.1-rc.2` |
|
|
299
299
|
| v1.7.4 – v1.9.3 | `0.2.0-rc.1` – `0.2.0-rc.2` |
|
|
300
300
|
| v1.7.2 – v1.7.3 | `0.1.7-rc.1` – `0.2.0-rc.1` |
|
|
@@ -349,6 +349,12 @@ dsh plugin --profile web remove @kanadego/dsh-heartbeat
|
|
|
349
349
|
- **最小 Linux 支持**:心跳在 Linux / macOS 上能跑起来了。原先第一跳就卡死,因为主密钥要靠 `powershell.exe` 解——现在非 Windows 平台改为把 32 字节密钥直接落成 `data/vault.key`(0600,原子改名发布),加解密仍走 Node 的 AES-256-GCM;`package.json` 的 `os` 同时从 `win32` 放开到三平台(此前 `npm install` 在这些平台上会直接被 `EBADPLATFORM` 拒掉)。截屏、空闲 / 锁屏检测、前台窗口、桌面通知仍只认 PowerShell,其他平台直接按「探针失败」降级——不再每跳白等一次进程启动,更不会拖住整跳。数据不跨平台迁移。
|
|
350
350
|
- **settings 改软依赖**:`settings` 从模块级 `inject` 里挪走了。cordis 把模块级 inject 当硬依赖——宿主不给这个服务,插件就一直停在 `pending (waiting for service: settings)`,桌面上光这一个 pending 就够把整个壳带崩(`openInitialWindow` 报 `Web RPC failed`,崩溃弹窗三个按钮全无响应)。设置表单本来只是便利:节律值来自 `data/settings/ui.json` 加 apply 时的 `config`,没有它照跳。现在改由 `ctx.inject(['settings'], …)` 延迟挂载——心跳靠 `agents` 一个服务就能起,表单在服务出现时挂上、服务消失时副作用跟着回收。顺手清掉两条早已走不到的旧分支(0.1.5 的 `installSection` 与 0.1.1/0.1.2 的 free-function 回退),`@deepseek-ai/dsh-settings` 随之从依赖里移除。
|
|
351
351
|
|
|
352
|
+
### v2.1.2 · 2026-11-04(修复:原生面板槽位同时注册短名与全名)
|
|
353
|
+
|
|
354
|
+
> ⚠️ **升级提示:v2.1.1 存在渲染回归,建议直接跳过 v2.1.1 安装 v2.1.2。** v2.1.1 的面板槽位 key 只注册了 npm 全名 `@kanadego/dsh-heartbeat`,`file:` / 本地安装方式下宿主报的 bundle 名是短名 `dsh-heartbeat`,两者对不上时详情页整块配置区不会渲染(issue #8 跟进)。直接升级到 v2.1.2 即可恢复。
|
|
355
|
+
|
|
356
|
+
- **面板槽位 key 改为双注册**:`plugins.bundle.config` 同一组件同时以 `dsh-heartbeat` 与 `@kanadego/dsh-heartbeat` 两个 key 注册,npm 安装与本地安装两种方式下面板都不再消失;`scripts/panel-smoke.mjs` 冒烟断言同步覆盖双 key。
|
|
357
|
+
|
|
352
358
|
### v2.1.1 · 2026-11-04(修复:原生面板在 DSH 0.2.1-rc.3+ 详情页完全不显示)
|
|
353
359
|
|
|
354
360
|
- **面板槽位 key 改回全名**:`plugins.bundle.config` 的注册 key 误用短名 `dsh-heartbeat`,而宿主 plugin-manager 按 npm 全名 `@kanadego/dsh-heartbeat`(manifest dependencies 的 key)判定是否渲染插件详情页的配置区——key 对不上,面板「装了但看不见」(issue #8)。v2.1.1 把 key 改回 `@kanadego/dsh-heartbeat` 并同步修正冒烟断言;v2.1.0 的「必须用短名」结论是反的,见 CHANGELOG v2.1.0 段订正。
|
package/client.js
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
// types on 0.1.1-rc.2; reworked for 0.1.7-rc.2 in v1.7.0):
|
|
5
5
|
// - the client module is applied as a CLIENT-SIDE cordis plugin; the
|
|
6
6
|
// ModuleLoader factory must return an object with an "apply" method;
|
|
7
|
-
// - the panel is
|
|
8
|
-
//
|
|
7
|
+
// - the panel is registered on 'plugins.bundle.config' under BOTH the short
|
|
8
|
+
// key 'dsh-heartbeat' and the scoped key '@kanadego/dsh-heartbeat'
|
|
9
|
+
// (install key differs between file: installs and npm installs; same
|
|
10
|
+
// component, two keys); the old settings.section
|
|
9
11
|
// card was retired in v2.1.0;
|
|
10
12
|
// - the rhythm editor rides the /api RPC channel (host persists to
|
|
11
13
|
// data/settings/ui.json and applies live) — no host settings API needed;
|
|
@@ -1328,17 +1330,18 @@ const LOCALE_NS = "heartbeat";
|
|
|
1328
1330
|
}
|
|
1329
1331
|
|
|
1330
1332
|
try {
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1333
|
+
// 同时注册短名 + npm 全名:宿主 listBundles() 的 bundle 名取决于 profile 依赖的 key,
|
|
1334
|
+
// file: 安装时是短名 'dsh-heartbeat',npm 安装时是 scoped 全名 '@kanadego/dsh-heartbeat'。
|
|
1335
|
+
// 双注册保证面板在两种安装方式下都不消失(v2.1.0 单短名只覆盖 file:,v2.1.1 单全名只覆盖 npm)。
|
|
1336
|
+
for (const key of ["dsh-heartbeat", "@kanadego/dsh-heartbeat"]) {
|
|
1337
|
+
ctx.slots.inject("plugins.bundle.config", function () {
|
|
1338
|
+
const disposer = ctx.slots.register(
|
|
1339
|
+
{ name: "plugins.bundle.config", key },
|
|
1340
|
+
HeartbeatSection,
|
|
1341
|
+
);
|
|
1342
|
+
return disposer;
|
|
1343
|
+
});
|
|
1344
|
+
}
|
|
1342
1345
|
} catch (e) {
|
|
1343
1346
|
// v2.1.0 起旧设置页面板退役:不再往 settings.section 挂第二份 UI。
|
|
1344
1347
|
// 宿主 0.2.1 起就有 plugins.bundle.config,宿主过旧时面板不可用,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanadego/dsh-heartbeat",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Heartbeat plugin for DeepSeek Harness: scheduled autonomous reflection loop with user profile, material pool, pace gate, and gated proactive expression.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|