@shgroup/dsh-serenity-hooks 1.138.1 → 1.138.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/dsh.plugin.json +1 -1
- package/lib/index.js +13 -5
- 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.138.
|
|
3
|
+
"version": "1.138.2",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"description": "宁静号 ACC harness(Native Cordis 插件):给 DSH 装一个「AI 工作区」——13 个工具(container_fs/cognitive_trajectory/dashboard/container_git/msm/praxis/ontology/serenity-skill-creator/localstore/container_admin/browser_slot;另两个 im-bridge/diagram 按条件出现)+ 机械约束(安全模式/工作区围墙/密钥守卫)+ 认知轨迹日志与原地重建 + 网页登录入口/IM 桥/认知轨迹唤醒注册表 + 浏览器槽位管理(≤20 个独立 profile 的 Chrome 槽位,带占用归属与异常时向所属会话反向注入提醒)。轨迹声明 = 轨迹目录下的 trajectory.json(约束面 + 旧标识 uid + CRO 机器绑定 cro.host;旧名 trajectory-constraint.json / skiff.json 仍在读取族里);轨迹提示词 = 轨迹目录下的 PROMPT.md(一条轨迹「是谁、按什么章程工作」,所有轨迹通用,追加在容器层与质量层之后,不替换它们)。适配 DSH 0.1.7-rc.1 / 0.2.0-rc.1 / 0.2.1-rc.1(三档,deepseek-ai/deepseek-harness)。",
|
|
6
6
|
"engines": {
|
package/lib/index.js
CHANGED
|
@@ -22972,12 +22972,20 @@ async function run(ctx, root, sessionId, trajectory, action, args) {
|
|
|
22972
22972
|
return `[browser_slot] targetId=${await slotOpen(root, n, sessionId, url)}` + domainSkillTail(root, url, sessionId, n);
|
|
22973
22973
|
}
|
|
22974
22974
|
case "goto": {
|
|
22975
|
-
const n =
|
|
22975
|
+
const n = normalizeSlotId(String(args.slot ?? ""));
|
|
22976
22976
|
const url = str(args.url);
|
|
22977
|
-
|
|
22978
|
-
const
|
|
22979
|
-
|
|
22980
|
-
|
|
22977
|
+
const target = str(args.target);
|
|
22978
|
+
const match = str(args.match);
|
|
22979
|
+
const missing = [];
|
|
22980
|
+
if (n === 0) missing.push("--slot <b1..b20>");
|
|
22981
|
+
if (!target && !match) missing.push("--target <targetId> 或 --match <URL/标题子串>(先跑 targets 看清有什么)");
|
|
22982
|
+
if (!url) missing.push("--url <目的地地址>");
|
|
22983
|
+
if (missing.length > 0) return `⛔ goto 缺少 ${missing.length} 个参数,一次列全:\n` + missing.map((m) => ` · ${m}`).join("\n") + `\n ⚠️ goto 与 open 形状不同:open 只要 --slot + --url;goto 还要指出**在哪个标签页**导航。`;
|
|
22984
|
+
const slotN = n;
|
|
22985
|
+
const destUrl = url;
|
|
22986
|
+
const tgt = target ?? await needTarget(root, slotN, sessionId, args);
|
|
22987
|
+
await slotGoto(root, slotN, sessionId, tgt, destUrl);
|
|
22988
|
+
return `[browser_slot] navigate ${tgt} → ${destUrl}` + domainSkillTail(root, destUrl, sessionId, slotN);
|
|
22981
22989
|
}
|
|
22982
22990
|
case "eval": {
|
|
22983
22991
|
const n = needSlot(args);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shgroup/dsh-serenity-hooks",
|
|
3
|
-
"version": "1.138.
|
|
3
|
+
"version": "1.138.2",
|
|
4
4
|
"description": "宁静号 ACC harness(Native Cordis 插件)——给 DeepSeek Harness 装一个「AI 工作区」:13 个工具(container_fs/cognitive_trajectory/dashboard/container_git/msm/praxis/ontology/serenity-skill-creator/localstore/container_admin/browser_slot;另两个 im-bridge/diagram 按条件出现)+ 机械约束(安全模式/工作区围墙/密钥守卫/对外输出守卫)+ 认知轨迹日志与原地重建 + 网页登录入口/IM 桥/认知轨迹唤醒注册表 + 浏览器槽位管理(≤20 个独立 profile 的 Chrome 槽位,带占用归属与异常时向所属会话反向注入提醒)。轨迹声明 = 轨迹目录下的 trajectory.json(约束面 + 旧标识 uid + CRO 机器绑定 cro.host;旧名 trajectory-constraint.json / skiff.json 仍在读取族里);轨迹提示词 = 轨迹目录下的 PROMPT.md(一条轨迹「是谁、按什么章程工作」,所有轨迹通用,追加在容器层与质量层之后,不替换它们)。适配 DSH 0.1.7-rc.1 / 0.2.0-rc.1 / 0.2.1-rc.1(三档)。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|