engine7 7.1.148 → 7.1.150

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.
@@ -11964,12 +11964,11 @@ ${e.outcome}
11964
11964
  };
11965
11965
 
11966
11966
  // src/messages/strip-injected.ts
11967
- var SKILL_GATE_HINT_PREFIX = "\u8FD9\u6761\u6D88\u606F\u662F\u5F00\u53D1\u4EFB\u52A1";
11968
11967
  var SYSTEM_REMINDER_BLOCK = /<system-reminder>[\s\S]*?<\/system-reminder>/g;
11969
11968
  var INJECT_SECTION_HEADS = /^(本轮对话|当前情绪状态|当前模式)/;
11970
11969
  var KNOWN_INJECTED_TEXT = [
11971
- SKILL_GATE_HINT_PREFIX,
11972
- // skill-gate hint 默认/自定义前缀(1007 现行)
11970
+ "\u8FD9\u6761\u6D88\u606F\u662F\u5F00\u53D1\u4EFB\u52A1",
11971
+ // 旧版 skill-gate 提示前缀,兼容未打标签的历史
11973
11972
  "\u5F00\u53D1\u4EFB\u52A1\u8DEF\u6807\uFF0C\u6309\u573A\u666F\u5BF9\u53F7\u5165\u5EA7",
11974
11973
  // skill-gate hint(0912 老文案,历史 JSONL 兼容)
11975
11974
  "\u3010\u5B9A\u65F6\u5FC3\u8DF3\u3011\u8BF7 read HEARTBEAT.md"
@@ -1666,6 +1666,18 @@ var init_registry = __esm({
1666
1666
  effect: "hot",
1667
1667
  internal: true
1668
1668
  },
1669
+ // 1130 Gmail 冷启动:连接即触发 + 每日巡查,新装机默认开。model 为空走 topics.clean.model → extract → mem7 链(免费档自动退回主力模型)
1670
+ { path: "gmailColdstart.enabled", type: "boolean", group: "feature", label: "Gmail \u51B7\u542F\u52A8\uFF08\u8FDE\u63A5\u540E\u81EA\u52A8\u8BFB\u5386\u53F2\u8BA4\u4EBA\uFF09", effect: "hot", internal: true },
1671
+ { path: "gmailColdstart.model", type: "string", group: "model", label: "Gmail \u51B7\u542F\u52A8\u63D0\u70BC\u6A21\u578B\uFF08\u7A7A=\u6CBF\u7528\u8BB0\u5FC6\u63D0\u53D6\u6A21\u578B\uFF0C\u514D\u8D39\u6863\u81EA\u52A8\u9000\u56DE\u4E3B\u529B\uFF09", effect: "hot", internal: true },
1672
+ {
1673
+ path: "gmailColdstart.patrolHour",
1674
+ type: "number",
1675
+ group: "feature",
1676
+ label: "Gmail \u6BCF\u65E5\u5DE1\u67E5\u6574\u70B9\uFF080-23\uFF09",
1677
+ effect: "hot",
1678
+ internal: true,
1679
+ validate: (value) => Number.isInteger(value) && Number(value) >= 0 && Number(value) <= 23 ? null : "\u5DE1\u67E5\u6574\u70B9\u987B\u4E3A 0-23"
1680
+ },
1669
1681
  {
1670
1682
  path: "mem7.turnReadBudgetMs",
1671
1683
  type: "number",
@@ -3502,7 +3514,7 @@ async function unpackBundle(body, expected) {
3502
3514
  }
3503
3515
 
3504
3516
  // src/travel/apply-transaction.ts
3505
- import { closeSync as closeSync2, existsSync as existsSync4, fsyncSync as fsyncSync2, lstatSync as lstatSync2, mkdirSync as mkdirSync3, openSync as openSync2, readFileSync as readFileSync5, readSync as readSync2, renameSync as renameSync2, rmSync, writeFileSync as writeFileSync3 } from "node:fs";
3517
+ import { closeSync as closeSync2, existsSync as existsSync4, fsyncSync as fsyncSync2, linkSync, lstatSync as lstatSync2, mkdirSync as mkdirSync3, openSync as openSync2, readFileSync as readFileSync5, readSync as readSync2, renameSync as renameSync2, rmSync, writeFileSync as writeFileSync3 } from "node:fs";
3506
3518
  import { dirname as dirname3, join as join5, resolve as resolve3 } from "node:path";
3507
3519
  var safeRel = (rel) => !!rel && !/[\\:\x00-\x1f]/.test(rel) && rel.split("/").every((p) => p && p !== "." && p !== "..");
3508
3520
  function assertPath(root, rel) {