@shgroup/dsh-serenity-hooks 1.127.0 → 1.128.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/lib/invariant.js CHANGED
@@ -162,6 +162,7 @@ const REGISTERED_TOOLS = [
162
162
  "serenity-skill-creator",
163
163
  "localstore",
164
164
  "container_admin",
165
+ "browser_slot",
165
166
  "im-bridge",
166
167
  "diagram",
167
168
  "reconstruct"
@@ -58,6 +58,6 @@ export declare function assertManifestProse(manifestPath: string, readmePaths: r
58
58
  * `review`(C 档,调引擎 `compliance`)/`index`(调 P1 的生成器)/`status` ⇒ **14**。
59
59
  * 同规格:**条件可见与否不影响这里列它**(本常量 = "插件**具备**的工具面")。
60
60
  */
61
- export declare const REGISTERED_TOOLS: readonly ["container_fs", "cognitive_trajectory", "dashboard", "container_git", "msm", "praxis", "ontology", "serenity-skill-creator", "localstore", "container_admin", "im-bridge", "diagram", "reconstruct"];
61
+ export declare const REGISTERED_TOOLS: readonly ["container_fs", "cognitive_trajectory", "dashboard", "container_git", "msm", "praxis", "ontology", "serenity-skill-creator", "localstore", "container_admin", "browser_slot", "im-bridge", "diagram", "reconstruct"];
62
62
  /** 条件出现的工具数(`REGISTERED_TOOLS` 的**末段**;`assertManifestProse` 用) */
63
63
  export declare const CONDITIONAL_TOOL_COUNT = 3;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * tools/browser-slot/index.ts — browser_slot 工具(ACC 级浏览器槽位管理器)
3
+ *
4
+ * owner 2026-11-09 令(原话):
5
+ * 「通过 msm 通道获得另外两个宁静号的浏览器操作完整实现,然后各取所长,开始实现 ACC 级的
6
+ * 浏览器操作,务必给我实现槽位管理,最多 20 个 chrome 槽位,每个独立 profile,固定分辨率,
7
+ * 每个槽位有状态,状态异常例如长时间不动作、cpu 占用过高,直接可以反过来向唤醒这个浏览器的
8
+ * 会话注入消息提醒它管好自己的浏览器,槽位是否已经被会话正在使用要有状态,每个会话用完要
9
+ * 自觉退出占用」
10
+ *
11
+ * 本工具接的就是这条令。它是 **ACC 级**(进插件本体、随 npm 发布),
12
+ * ⛔ 不是 CCC 的某个 skill —— 因为"浏览器进程属于谁"和"哪个会话忘了关"是**跨 CCC 的**问题。
13
+ */
14
+ import type { Context } from 'cordis';
15
+ export declare function createBrowserSlotTool(ctx: Context): import("@deepseek-ai/dsh-tools").ToolDefinition;
16
+ /**
17
+ * 槽位看守(后台)—— owner 要的「反过来向唤醒这个浏览器的会话注入消息」就是这里。
18
+ *
19
+ * 🔴 为什么放在 ACC 而不是某个轨迹:**忘了关浏览器的不止一条轨迹**,而看守必须比任何
20
+ * 单条轨迹活得久。它挂在宿主进程上,任何轨迹租的槽位都由它盯。
21
+ *
22
+ * ⚠️ 它**只提醒、不代为释放** —— 见 nudgeText 的判据:只有占用者知道那个浏览器还有没有用。
23
+ */
24
+ export declare function registerSlotWatchman(ctx: Context, rootProvider: () => string | null): {
25
+ dispose: () => void;
26
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shgroup/dsh-serenity-hooks",
3
- "version": "1.127.0",
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;另三个 im-bridge/diagram/reconstruct 按条件出现)+ 机械约束(安全模式/工作区围墙/密钥守卫/对外输出守卫)+ 认知轨迹日志与原地重建 + 网页登录入口/IM 桥/认知轨迹唤醒注册表。轨迹声明 = 轨迹目录下的 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(三档)。",
3
+ "version": "1.128.0",
4
+ "description": "宁静号 ACC harness(Native Cordis 插件)——给 DeepSeek Harness 装一个「AI 工作区」:14 个工具(container_fs/cognitive_trajectory/dashboard/container_git/msm/praxis/ontology/serenity-skill-creator/localstore/container_admin/browser_slot;另三个 im-bridge/diagram/reconstruct 按条件出现)+ 机械约束(安全模式/工作区围墙/密钥守卫/对外输出守卫)+ 认知轨迹日志与原地重建 + 网页登录入口/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": {
7
7
  "type": "git",