@shgroup/dsh-serenity-hooks 1.30.8 → 1.30.10
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/ccc.d.ts +13 -0
- package/lib/config-ops.d.ts +10 -0
- package/lib/index.js +662 -134
- package/lib/msm-ops.d.ts +1 -1
- package/lib/skiff-core.d.ts +10 -2
- package/lib/{skiff-debug-8pF60JBO.js → skiff-debug-TONJlpgF.js} +23 -4
- package/lib/{weixin-api-OUCuw0Ws.js → weixin-api-BMpljodH.js} +25 -3
- package/lib/weixin-api.d.ts +12 -1
- package/lib/weixin-bridge.d.ts +54 -1
- package/lib/weixin-hook.d.ts +9 -0
- package/lib/{weixin-route-BJ4g4ZNq.js → weixin-route-BD_yYAZz.js} +1 -0
- package/lib/weixin-send-api.d.ts +87 -0
- package/lib/weixin-send-endpoint.d.ts +17 -0
- 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.30.
|
|
3
|
+
"version": "1.30.10",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"description": "宁静号 ACC harness(Native Cordis 插件):真实 DSH 工具 container_fs/logbook/dashboard/container_git/msm/praxis/handyman/localstore/container_admin/autopilot-trajectory + 拦截缝机械约束(safe-mode/路径守卫)+ 高级设定面板(双端口网关/账号管理)+ Skiff 认知子集角色(实验性)。适配 DSH 公开版(0.1.0-rc,deepseek-ai/deepseek-harness)。",
|
|
6
6
|
"engines": {
|
package/lib/ccc.d.ts
CHANGED
|
@@ -139,6 +139,19 @@ export interface WeixinSettings {
|
|
|
139
139
|
* 执行语义:旁路 fire-and-forget + 超时 + 失败仅日志(微信桥可靠性不受 hook 影响)。
|
|
140
140
|
*/
|
|
141
141
|
hook?: string;
|
|
142
|
+
/**
|
|
143
|
+
* 桥是否**自动回发 agent 的最终文本**(v1.30.10,用户拍板命名;缺省 true = 现状)。
|
|
144
|
+
*
|
|
145
|
+
* 关闭(false)→ 桥不再把一轮结束时 agent 的最终 assistant 文本转发给用户;
|
|
146
|
+
* 输出权完全交给 agent:每轮 question 前缀注入「输出纪律」块(含可直接执行的
|
|
147
|
+
* weixin-send 命令),由 agent 自己决定发什么/发几条(全部记 `source=proactive`)。
|
|
148
|
+
*
|
|
149
|
+
* 为什么需要(R↓):v1.30.9 起 agent 已能经 msm 主动输出(`weixin-send` → 桥 → iLink),
|
|
150
|
+
* 「桥替 agent 说最后一句」从机制上变成可选项——进程式汇报、多段输出、静默处理都需要它。
|
|
151
|
+
* 语义边界(用户拍板):只关**最终文本**;系统类消息(新对话通知 / 语音无法解析提示)保留;
|
|
152
|
+
* agent 一轮未输出 → 静默不兜底(否则开关语义被破坏)。
|
|
153
|
+
*/
|
|
154
|
+
autoReplyWithLastMessage?: boolean;
|
|
142
155
|
}
|
|
143
156
|
/** 微信桥账号配置(serenity.json 内;凭据部分在 localstore) */
|
|
144
157
|
export interface WeixinAccountConfig {
|
package/lib/config-ops.d.ts
CHANGED
|
@@ -71,6 +71,16 @@ export interface AdvancedSettings {
|
|
|
71
71
|
gateway: GatewaySettings;
|
|
72
72
|
persona: PersonaSettings;
|
|
73
73
|
publicAsk: PublicAskSettings;
|
|
74
|
+
/** 主动发送入口(v1.30.9):**只绑 127.0.0.1** 的独立监听器——CCC 的 MSM 用它发消息给指定用户 */
|
|
75
|
+
weixinApi: WeixinApiSettings;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* 主动发送入口配置(v1.30.9,S142 用户需求"微信桥支持被调用发消息")。
|
|
79
|
+
* 只监听 loopback(公网网关 3081 不可达),故不做密钥;`enabled:false` 或 `port:0` 关闭。
|
|
80
|
+
*/
|
|
81
|
+
export interface WeixinApiSettings {
|
|
82
|
+
enabled: boolean;
|
|
83
|
+
port: number;
|
|
74
84
|
}
|
|
75
85
|
/** 默认值(工厂——每次返回新对象,防止调用方意外共享引用) */
|
|
76
86
|
export declare function defaultAdvancedSettings(): AdvancedSettings;
|