@shgroup/dsh-serenity-hooks 1.27.7 → 1.27.9
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/autopilot-trajectory.d.ts +3 -1
- package/lib/client.js +11 -1
- package/lib/index.js +22 -2126
- package/lib/settings-section-PzeHStWP.js +2124 -0
- package/lib/settings-section.d.ts +5 -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.27.
|
|
3
|
+
"version": "1.27.9",
|
|
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": {
|
|
@@ -33,8 +33,10 @@ export declare const DEFAULT_BIAS_PROVIDER = "autopilot-bias.ts";
|
|
|
33
33
|
export declare const LEGACY_BIAS_PROVIDER = "autotrajectory-bias.ts";
|
|
34
34
|
/** 自主轨迹会话目录后缀标志(--auto 保留——简短且历史会话 S060--auto 已存在) */
|
|
35
35
|
export declare const AUTO_DIR_SUFFIX = "--auto";
|
|
36
|
-
/** 调度 tick 周期(
|
|
36
|
+
/** 调度 tick 周期(5min——用户"tick改为5分钟吧";0.01h 间隔下每 5min 评估一次) */
|
|
37
37
|
export declare const TICK_MS: number;
|
|
38
|
+
/** 间隔下限(支持小数——用户"让它支持小数行吗,这样可以配0.01";0.01h ≈ 36s) */
|
|
39
|
+
export declare const MIN_INTERVAL_HOURS = 0.01;
|
|
38
40
|
/** SESSION.md 内「下一轮动机」段标记(自生偏见载体——轨迹预设自己的未来) */
|
|
39
41
|
export declare const MOTIVATION_MARKER = "\u4E0B\u4E00\u8F6E\u52A8\u673A";
|
|
40
42
|
/** 缺省避开的高峰时段(北京时间 [start, end) 不唤起——用量峰谷省钱) */
|
package/lib/client.js
CHANGED
|
@@ -4760,6 +4760,7 @@ Instruction-following style:
|
|
|
4760
4760
|
const acpOn = value?.acpEnabled ?? false;
|
|
4761
4761
|
const acpPort = value?.acpHttpPort ?? 3100;
|
|
4762
4762
|
const publicAskOn = value?.publicAskEnabled ?? false;
|
|
4763
|
+
const autopilotOn = value?.autopilotEnabled ?? false;
|
|
4763
4764
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
4764
4765
|
className: "ss-section",
|
|
4765
4766
|
children: [
|
|
@@ -4867,6 +4868,15 @@ Instruction-following style:
|
|
|
4867
4868
|
checked: publicAskOn,
|
|
4868
4869
|
onChange: (on) => toggle("publicAskEnabled", on)
|
|
4869
4870
|
})
|
|
4871
|
+
}) }),
|
|
4872
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RowCard, {
|
|
4873
|
+
title: "Autopilot Trajectory",
|
|
4874
|
+
desc: "自动巡航轨迹(全局开关,默认关——只在指定电脑开启)",
|
|
4875
|
+
help: "Autopilot Trajectory 全局总开关(v1.27.9):\n· 作用:控制本机(本 dsh 实例)是否运行自动巡航轨迹\n· 默认关:未开启即使 CCC 配置 enabled=true 也不启动定时器\n· 定位:多台电脑装 dsp 时,只在指定电脑开启(其余默认关)\n· 双重门控:全局开关 AND CCC 级 enabled 都满足才运行\n· CCC 级配置(interval/session/偏见脚本/焦点)不受影响",
|
|
4876
|
+
control: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Toggle, {
|
|
4877
|
+
checked: autopilotOn,
|
|
4878
|
+
onChange: (on) => toggle("autopilotEnabled", on)
|
|
4879
|
+
})
|
|
4870
4880
|
}) })
|
|
4871
4881
|
]
|
|
4872
4882
|
}),
|
|
@@ -4887,7 +4897,7 @@ Instruction-following style:
|
|
|
4887
4897
|
}),
|
|
4888
4898
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Collapse, {
|
|
4889
4899
|
title: "Autopilot Trajectory",
|
|
4890
|
-
desc:
|
|
4900
|
+
desc: autopilotOn ? "全局已开启" : "全局关闭(外部能力组开启)",
|
|
4891
4901
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AutopilotTrajectoryStatusBlock, {})
|
|
4892
4902
|
}),
|
|
4893
4903
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Collapse, {
|