@shgroup/dsh-serenity-hooks 1.36.1 → 1.37.0
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 +3 -5
- package/lib/seams/context.d.ts +2 -1
- 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.
|
|
3
|
+
"version": "1.37.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"description": "宁静号 ACC harness(Native Cordis 插件):给 DSH 装一个「AI 工作区」——11 个工具(container_fs/container_trajectory/dashboard/container_git/msm/praxis/handyman/localstore/container_admin/im-bridge/acc-diag;后两个按配置条件出现)+ 机械约束(安全模式/工作区围墙/密钥守卫)+ 轨迹日志与原地重建 + 网页登录入口/微信桥/子角色/对外问答页/trajectory 唤醒注册表。适配 DSH 0.1.5-rc.2(deepseek-ai/deepseek-harness)。",
|
|
6
6
|
"engines": {
|
package/lib/index.js
CHANGED
|
@@ -5557,7 +5557,7 @@ function identityBlock(root) {
|
|
|
5557
5557
|
"",
|
|
5558
5558
|
"The DSH platform tools remain available too (read/write/edit/glob/grep/web_search/ask_user_question/subagent/workflow/goal and more) — the ACC tools are the serenity-native layer, not the only tools.",
|
|
5559
5559
|
"",
|
|
5560
|
-
"Additional MSMs registered by this CCC are available — call msm(
|
|
5560
|
+
"Additional MSMs registered by this CCC are available — call msm() with no arguments to list them, or msm(\"<name>\") to execute one.",
|
|
5561
5561
|
""
|
|
5562
5562
|
].join("\n");
|
|
5563
5563
|
}
|
|
@@ -6101,8 +6101,6 @@ function readDshSessionTitle(session) {
|
|
|
6101
6101
|
return null;
|
|
6102
6102
|
}
|
|
6103
6103
|
function accIdentityText(root, configPaths = DEFAULT_SERENITY_CONFIG_PATHS, entrySkillMaxChars = DEFAULT_ENTRY_SKILL_MAX_CHARS) {
|
|
6104
|
-
loadSerenityConfig(root, configPaths);
|
|
6105
|
-
const defaultModel = readHandymanConfig(root, configPaths)?.defaultModel;
|
|
6106
6104
|
const phase2 = existsSync(resolve(root, ".dsh", "PHASE2-PROMPT.md"));
|
|
6107
6105
|
const lines = [
|
|
6108
6106
|
`[ACC] Serenity cognitive container active (dsh-serenity-hooks v${ACC_VERSION})`,
|
|
@@ -6110,7 +6108,6 @@ function accIdentityText(root, configPaths = DEFAULT_SERENITY_CONFIG_PATHS, entr
|
|
|
6110
6108
|
`- Constraints: path isolation (P3, fs sandbox) + session tracking (AGENT_SESSIONS/)`,
|
|
6111
6109
|
`- Knowledge: load the acc-serenity entry skill; use acc-eap / acc-neat for design collaboration`
|
|
6112
6110
|
];
|
|
6113
|
-
if (defaultModel) lines.push(`- handyman default model: ${defaultModel}`);
|
|
6114
6111
|
if (phase2) {
|
|
6115
6112
|
lines.push("- ⚠️ **Phase 2 cognitive alignment interview pending**: work through the 5 Topics below and record answers in an AGENT_SESSIONS/ session");
|
|
6116
6113
|
try {
|
|
@@ -6125,7 +6122,8 @@ const PLUGIN_SOURCE$4 = {
|
|
|
6125
6122
|
plugin: "dsh-serenity-hooks"
|
|
6126
6123
|
};
|
|
6127
6124
|
/**
|
|
6128
|
-
* ACC 注入消息(S134 去重):**只含简短身份锚点**([ACC] 已激活 + CCC 根 + 约束 +
|
|
6125
|
+
* ACC 注入消息(S134 去重):**只含简短身份锚点**([ACC] 已激活 + CCC 根 + 约束 + Phase 2)。
|
|
6126
|
+
* ⚠️ 原文案含「+ handyman 模型」,该注入已于 2026-09-16 删除(§0e-G)⇒ 此处同步订正(散文级残留)。
|
|
6129
6127
|
* 完整身份(ACC 5 块 + CCE + Constraints + EAP + SKILL 全文 + Session 块)由**系统提示词层**
|
|
6130
6128
|
* (systemPrompt.section,每轮 prompt 装配自动注入,含 subagent)承担——对话消息流/压缩重注入
|
|
6131
6129
|
* 不再重复注入同一内容(token 双倍浪费,见 S134 注入方案梳理)。
|
package/lib/seams/context.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ import type { Agent } from '@deepseek-ai/dsh-agent';
|
|
|
14
14
|
import type { UserMessage } from '@deepseek-ai/dsh-session';
|
|
15
15
|
export declare function accIdentityText(root: string, configPaths?: string[], entrySkillMaxChars?: number): string;
|
|
16
16
|
/**
|
|
17
|
-
* ACC 注入消息(S134 去重):**只含简短身份锚点**([ACC] 已激活 + CCC 根 + 约束 +
|
|
17
|
+
* ACC 注入消息(S134 去重):**只含简短身份锚点**([ACC] 已激活 + CCC 根 + 约束 + Phase 2)。
|
|
18
|
+
* ⚠️ 原文案含「+ handyman 模型」,该注入已于 2026-09-16 删除(§0e-G)⇒ 此处同步订正(散文级残留)。
|
|
18
19
|
* 完整身份(ACC 5 块 + CCE + Constraints + EAP + SKILL 全文 + Session 块)由**系统提示词层**
|
|
19
20
|
* (systemPrompt.section,每轮 prompt 装配自动注入,含 subagent)承担——对话消息流/压缩重注入
|
|
20
21
|
* 不再重复注入同一内容(token 双倍浪费,见 S134 注入方案梳理)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shgroup/dsh-serenity-hooks",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.37.0",
|
|
4
4
|
"description": "宁静号 ACC harness(Native Cordis 插件)——给 DeepSeek Harness 装一个「AI 工作区」:11 个工具(container_fs/container_trajectory/dashboard/container_git/msm/praxis/handyman/localstore/container_admin/im-bridge/acc-diag)+ 机械约束(安全模式/工作区围墙/密钥守卫/对外输出守卫)+ 工作日志与原地重建 + 网页登录入口/微信桥/子角色/对外问答页/trajectory 唤醒注册表。适配 DSH 0.1.5-rc.2。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|