@zhin.js/runtime 1.1.10 → 1.1.11

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.
@@ -2071,6 +2071,45 @@ export declare const HOST_CONFIG_SCHEMA: {
2071
2071
  type: string;
2072
2072
  description: string;
2073
2073
  };
2074
+ ambient: {
2075
+ type: string;
2076
+ additionalProperties: boolean;
2077
+ description: string;
2078
+ properties: {
2079
+ conversations: {
2080
+ type: string;
2081
+ items: {
2082
+ type: string;
2083
+ };
2084
+ description: string;
2085
+ };
2086
+ judge: {
2087
+ type: string;
2088
+ description: string;
2089
+ };
2090
+ quietMs: {
2091
+ type: string[];
2092
+ description: string;
2093
+ };
2094
+ cooldownMs: {
2095
+ type: string[];
2096
+ description: string;
2097
+ };
2098
+ maxPerHour: {
2099
+ type: string[];
2100
+ description: string;
2101
+ };
2102
+ minConfidence: {
2103
+ type: string[];
2104
+ description: string;
2105
+ };
2106
+ mode: {
2107
+ type: string;
2108
+ enum: string[];
2109
+ description: string;
2110
+ };
2111
+ };
2112
+ };
2074
2113
  };
2075
2114
  description: string;
2076
2115
  };
@@ -2855,6 +2855,60 @@
2855
2855
  "errorTemplate": {
2856
2856
  "type": "string",
2857
2857
  "description": "错误提示模板(默认 '❌ AI 处理失败: {error}')"
2858
+ },
2859
+ "ambient": {
2860
+ "type": "object",
2861
+ "additionalProperties": true,
2862
+ "description": "群聊旁听:群里没人叫机器人时,由判断模型决定是否接话。被 @、引用和私聊不经过这里,总会交给 Agent(Agent 也可以选择不回复)。",
2863
+ "properties": {
2864
+ "conversations": {
2865
+ "type": "array",
2866
+ "items": {
2867
+ "type": "string"
2868
+ },
2869
+ "description": "开启旁听的群,格式 platform:groupId;* 表示所有群。默认为空(关闭)"
2870
+ },
2871
+ "judge": {
2872
+ "type": "string",
2873
+ "description": "判断模型 providerAlias/model;默认用主 Agent 的模型"
2874
+ },
2875
+ "quietMs": {
2876
+ "type": [
2877
+ "number",
2878
+ "string"
2879
+ ],
2880
+ "description": "群安静多久后才判断一次(毫秒,默认 4000)"
2881
+ },
2882
+ "cooldownMs": {
2883
+ "type": [
2884
+ "number",
2885
+ "string"
2886
+ ],
2887
+ "description": "机器人在群里说话后的冷却时间(毫秒,默认 120000)"
2888
+ },
2889
+ "maxPerHour": {
2890
+ "type": [
2891
+ "number",
2892
+ "string"
2893
+ ],
2894
+ "description": "每个群每小时最多主动接话次数(默认 3)"
2895
+ },
2896
+ "minConfidence": {
2897
+ "type": [
2898
+ "number",
2899
+ "string"
2900
+ ],
2901
+ "description": "判断模型置信度门槛 0..1(默认 0.7)"
2902
+ },
2903
+ "mode": {
2904
+ "type": "string",
2905
+ "enum": [
2906
+ "active",
2907
+ "shadow"
2908
+ ],
2909
+ "description": "shadow 只记录判断结果、不回复(默认 active)"
2910
+ }
2911
+ }
2858
2912
  }
2859
2913
  },
2860
2914
  "description": "AI 触发配置"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/runtime",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "Static Plugin graph, generation transaction and HMR Root runtime for Zhin.js",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -29,14 +29,14 @@
29
29
  "@zhin.js/adapter": "1.1.21",
30
30
  "@zhin.js/agent-feature": "1.1.8",
31
31
  "@zhin.js/command": "1.1.9",
32
+ "@zhin.js/handler": "1.1.7",
32
33
  "@zhin.js/component": "1.1.8",
33
34
  "@zhin.js/layout": "1.1.8",
35
+ "@zhin.js/mcp-feature": "1.1.8",
34
36
  "@zhin.js/page": "1.1.8",
35
- "@zhin.js/handler": "1.1.7",
36
- "@zhin.js/middleware": "1.1.8",
37
37
  "@zhin.js/prompt-section": "1.1.7",
38
- "@zhin.js/mcp-feature": "1.1.8",
39
38
  "@zhin.js/skill": "1.1.8",
39
+ "@zhin.js/middleware": "1.1.8",
40
40
  "@zhin.js/tool": "1.1.8"
41
41
  },
42
42
  "repository": {