@shgroup/dsh-serenity-hooks 1.25.4 → 1.25.5
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/dsh.plugin.json +1 -1
- package/lib/index.js +12 -2
- package/package.json +1 -1
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-serenity-hooks",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.5",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"description": "宁静号 ACC harness(Native Cordis 插件):真实 DSH 工具 cc_fs/session/acc_msm/eap/neat/cce/handyman/session_rebuild/skiff_admin + 拦截缝机械约束(safe-mode/路径守卫)+ 高级设定面板(双端口网关/账号管理)+ Skiff 认知子集角色(实验性)。适配 DSH 公开版(0.1.0-rc,deepseek-ai/deepseek-harness)。",
|
|
6
6
|
"engines": {
|
package/lib/index.js
CHANGED
|
@@ -9382,12 +9382,22 @@ function sendHtml(res, html) {
|
|
|
9382
9382
|
res.end(html);
|
|
9383
9383
|
}
|
|
9384
9384
|
/**
|
|
9385
|
-
* 发现候选 CCC 列表(多 CCC 手工切换,v1.25.4
|
|
9386
|
-
*
|
|
9385
|
+
* 发现候选 CCC 列表(多 CCC 手工切换,v1.25.4+):
|
|
9386
|
+
* ① **dsh 工作区注册表**(workspaceRegistry.list,持久化——所有工作目录即使无 live 会话;
|
|
9387
|
+
* S142 用户 2026-08-29:应直接拉 dsh 工作区,且只列具体 CCC)
|
|
9388
|
+
* ② live 会话兜底(无 workspace 服务 / 注册表为空)
|
|
9389
|
+
* ③ 默认绑定 root 兜底(不在列表时放首位)
|
|
9387
9390
|
*/
|
|
9388
9391
|
function discoverCccs(ctx, defaultRoot) {
|
|
9389
9392
|
const roots = [];
|
|
9390
9393
|
try {
|
|
9394
|
+
const registry = ctx.get?.("workspaceRegistry");
|
|
9395
|
+
for (const ws of registry?.list?.() ?? []) if (typeof ws.path === "string" && ws.path !== "") {
|
|
9396
|
+
const r = findSerenityRoot(ws.path);
|
|
9397
|
+
if (r && !roots.includes(r)) roots.push(r);
|
|
9398
|
+
}
|
|
9399
|
+
} catch {}
|
|
9400
|
+
if (roots.length === 0) try {
|
|
9391
9401
|
const sessions = ctx.sessions;
|
|
9392
9402
|
for (const s of sessions?.list?.() ?? []) {
|
|
9393
9403
|
const cwd = s?.header?.cwd;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shgroup/dsh-serenity-hooks",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.5",
|
|
4
4
|
"description": "宁静号 ACC harness — Native Cordis 插件(DeepSeek Harness 运行时)。真实 DSH 工具注册(cc_fs/session/acc_msm 等 9 工具)+ 拦截缝机械约束(safe-mode/路径守卫/会话落盘)+ 系统提示词注入(ACC/CCE/Constraints/SKILL/Session 五块)。适配 DSH 公开版(deepseek-ai/deepseek-harness 0.1.0-rc)。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|