@zhin.js/runtime 1.1.11 → 1.1.13
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/config-composer.d.ts +46 -1
- package/lib/host-config-schema.json +68 -5
- package/package.json +15 -15
package/lib/config-composer.d.ts
CHANGED
|
@@ -590,6 +590,11 @@ export declare const HOST_CONFIG_SCHEMA: {
|
|
|
590
590
|
approval: {
|
|
591
591
|
$ref: string;
|
|
592
592
|
};
|
|
593
|
+
ambient: {
|
|
594
|
+
$ref: string;
|
|
595
|
+
description: string;
|
|
596
|
+
"x-descriptionZh": string;
|
|
597
|
+
};
|
|
593
598
|
};
|
|
594
599
|
};
|
|
595
600
|
workroom: {
|
|
@@ -1841,6 +1846,22 @@ export declare const HOST_CONFIG_SCHEMA: {
|
|
|
1841
1846
|
type: string[];
|
|
1842
1847
|
description: string;
|
|
1843
1848
|
};
|
|
1849
|
+
fallbacks: {
|
|
1850
|
+
type: string;
|
|
1851
|
+
description: string;
|
|
1852
|
+
items: {
|
|
1853
|
+
type: string;
|
|
1854
|
+
required: string[];
|
|
1855
|
+
properties: {
|
|
1856
|
+
provider: {
|
|
1857
|
+
type: string;
|
|
1858
|
+
};
|
|
1859
|
+
model: {
|
|
1860
|
+
type: string;
|
|
1861
|
+
};
|
|
1862
|
+
};
|
|
1863
|
+
};
|
|
1864
|
+
};
|
|
1844
1865
|
};
|
|
1845
1866
|
description: string;
|
|
1846
1867
|
};
|
|
@@ -2084,7 +2105,10 @@ export declare const HOST_CONFIG_SCHEMA: {
|
|
|
2084
2105
|
description: string;
|
|
2085
2106
|
};
|
|
2086
2107
|
judge: {
|
|
2087
|
-
type: string;
|
|
2108
|
+
type: string[];
|
|
2109
|
+
items: {
|
|
2110
|
+
type: string;
|
|
2111
|
+
};
|
|
2088
2112
|
description: string;
|
|
2089
2113
|
};
|
|
2090
2114
|
quietMs: {
|
|
@@ -2099,6 +2123,14 @@ export declare const HOST_CONFIG_SCHEMA: {
|
|
|
2099
2123
|
type: string[];
|
|
2100
2124
|
description: string;
|
|
2101
2125
|
};
|
|
2126
|
+
conversationWindowMs: {
|
|
2127
|
+
type: string[];
|
|
2128
|
+
description: string;
|
|
2129
|
+
};
|
|
2130
|
+
judgeIntervalMs: {
|
|
2131
|
+
type: string[];
|
|
2132
|
+
description: string;
|
|
2133
|
+
};
|
|
2102
2134
|
minConfidence: {
|
|
2103
2135
|
type: string[];
|
|
2104
2136
|
description: string;
|
|
@@ -2113,6 +2145,19 @@ export declare const HOST_CONFIG_SCHEMA: {
|
|
|
2113
2145
|
};
|
|
2114
2146
|
description: string;
|
|
2115
2147
|
};
|
|
2148
|
+
usage: {
|
|
2149
|
+
type: string[];
|
|
2150
|
+
additionalProperties: boolean;
|
|
2151
|
+
description: string;
|
|
2152
|
+
properties: {
|
|
2153
|
+
retentionDays: {
|
|
2154
|
+
type: string[];
|
|
2155
|
+
minimum: number;
|
|
2156
|
+
default: number;
|
|
2157
|
+
description: string;
|
|
2158
|
+
};
|
|
2159
|
+
};
|
|
2160
|
+
};
|
|
2116
2161
|
};
|
|
2117
2162
|
};
|
|
2118
2163
|
menuKeyword: {
|
|
@@ -732,6 +732,11 @@
|
|
|
732
732
|
},
|
|
733
733
|
"approval": {
|
|
734
734
|
"$ref": "#/$defs/decisionTask"
|
|
735
|
+
},
|
|
736
|
+
"ambient": {
|
|
737
|
+
"$ref": "#/$defs/decisionTask",
|
|
738
|
+
"description": "Unprompted group engagement (ai.trigger.ambient). active: the provider decides whether to speak up and the ambient judge models are the fallback; shadow: logged only.",
|
|
739
|
+
"x-descriptionZh": "群聊旁听(ai.trigger.ambient)是否接话。active:由决策服务判断,ambient.judge 模型列表作为兜底;shadow:只记录。"
|
|
735
740
|
}
|
|
736
741
|
}
|
|
737
742
|
},
|
|
@@ -2540,6 +2545,25 @@
|
|
|
2540
2545
|
"string"
|
|
2541
2546
|
],
|
|
2542
2547
|
"description": "Media described per turn; the rest keep the placeholder. Default 4."
|
|
2548
|
+
},
|
|
2549
|
+
"fallbacks": {
|
|
2550
|
+
"type": "array",
|
|
2551
|
+
"description": "主识图模型失败、空回答或不支持该媒体时,按顺序尝试;不改变主对话模型。",
|
|
2552
|
+
"items": {
|
|
2553
|
+
"type": "object",
|
|
2554
|
+
"required": [
|
|
2555
|
+
"provider",
|
|
2556
|
+
"model"
|
|
2557
|
+
],
|
|
2558
|
+
"properties": {
|
|
2559
|
+
"provider": {
|
|
2560
|
+
"type": "string"
|
|
2561
|
+
},
|
|
2562
|
+
"model": {
|
|
2563
|
+
"type": "string"
|
|
2564
|
+
}
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2543
2567
|
}
|
|
2544
2568
|
},
|
|
2545
2569
|
"description": "Perception pre-pass: when the turn's model cannot take an image / video / PDF,\nthis media-capable model describes it and the description is injected as\nuntrusted text (`[图片描述] …`). Unset = off (placeholders as before)."
|
|
@@ -2854,7 +2878,7 @@
|
|
|
2854
2878
|
},
|
|
2855
2879
|
"errorTemplate": {
|
|
2856
2880
|
"type": "string",
|
|
2857
|
-
"description": "
|
|
2881
|
+
"description": "入口层错误提示模板,{error} 为错误信息(可选;不配置时用聊天口吻说\"刚卡了一下\",主人额外看到原因)"
|
|
2858
2882
|
},
|
|
2859
2883
|
"ambient": {
|
|
2860
2884
|
"type": "object",
|
|
@@ -2869,8 +2893,14 @@
|
|
|
2869
2893
|
"description": "开启旁听的群,格式 platform:groupId;* 表示所有群。默认为空(关闭)"
|
|
2870
2894
|
},
|
|
2871
2895
|
"judge": {
|
|
2872
|
-
"type":
|
|
2873
|
-
|
|
2896
|
+
"type": [
|
|
2897
|
+
"string",
|
|
2898
|
+
"array"
|
|
2899
|
+
],
|
|
2900
|
+
"items": {
|
|
2901
|
+
"type": "string"
|
|
2902
|
+
},
|
|
2903
|
+
"description": "判断模型 providerAlias/model;也可以写成列表,前一个失败或限流时按顺序换下一个(免费额度通常按模型分别计算)。默认用主 Agent 的模型。ai.decisions.ambient 为 active 时由决策服务先判断,这里的模型作为兜底"
|
|
2874
2904
|
},
|
|
2875
2905
|
"quietMs": {
|
|
2876
2906
|
"type": [
|
|
@@ -2884,14 +2914,28 @@
|
|
|
2884
2914
|
"number",
|
|
2885
2915
|
"string"
|
|
2886
2916
|
],
|
|
2887
|
-
"description": "
|
|
2917
|
+
"description": "两次主动插话之间的最短间隔(毫秒,默认 120000);对话进行中不受限制"
|
|
2888
2918
|
},
|
|
2889
2919
|
"maxPerHour": {
|
|
2890
2920
|
"type": [
|
|
2891
2921
|
"number",
|
|
2892
2922
|
"string"
|
|
2893
2923
|
],
|
|
2894
|
-
"description": "
|
|
2924
|
+
"description": "每个群每小时最多主动插话次数(默认 3);对话进行中不计入"
|
|
2925
|
+
},
|
|
2926
|
+
"conversationWindowMs": {
|
|
2927
|
+
"type": [
|
|
2928
|
+
"number",
|
|
2929
|
+
"string"
|
|
2930
|
+
],
|
|
2931
|
+
"description": "机器人说话后,这段时间内算作对话进行中:群友接它的话只由判断模型决定,不受冷却和每小时次数限制(毫秒,默认 180000)"
|
|
2932
|
+
},
|
|
2933
|
+
"judgeIntervalMs": {
|
|
2934
|
+
"type": [
|
|
2935
|
+
"number",
|
|
2936
|
+
"string"
|
|
2937
|
+
],
|
|
2938
|
+
"description": "没在对话时,同一个群至少隔这么久才判断一次(毫秒,默认 30000),节省判断模型的额度"
|
|
2895
2939
|
},
|
|
2896
2940
|
"minConfidence": {
|
|
2897
2941
|
"type": [
|
|
@@ -2912,6 +2956,25 @@
|
|
|
2912
2956
|
}
|
|
2913
2957
|
},
|
|
2914
2958
|
"description": "AI 触发配置"
|
|
2959
|
+
},
|
|
2960
|
+
"usage": {
|
|
2961
|
+
"type": [
|
|
2962
|
+
"object",
|
|
2963
|
+
"null"
|
|
2964
|
+
],
|
|
2965
|
+
"additionalProperties": false,
|
|
2966
|
+
"description": "结构化用量存储(SQLite、MySQL、PostgreSQL);独立于日志级别,不保存正文或工具参数。",
|
|
2967
|
+
"properties": {
|
|
2968
|
+
"retentionDays": {
|
|
2969
|
+
"type": [
|
|
2970
|
+
"integer",
|
|
2971
|
+
"string"
|
|
2972
|
+
],
|
|
2973
|
+
"minimum": 1,
|
|
2974
|
+
"default": 30,
|
|
2975
|
+
"description": "用量明细保留天数,正整数,默认 30 天;按回合结束时间清理,子调用与所属回合一起删除。"
|
|
2976
|
+
}
|
|
2977
|
+
}
|
|
2915
2978
|
}
|
|
2916
2979
|
}
|
|
2917
2980
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/runtime",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.13",
|
|
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",
|
|
@@ -19,25 +19,25 @@
|
|
|
19
19
|
"es-module-lexer": "2.3.1",
|
|
20
20
|
"import-meta-resolve": "4.2.0",
|
|
21
21
|
"semver": "7.8.5",
|
|
22
|
-
"@zhin.js/feature-kit": "1.1.
|
|
23
|
-
"@zhin.js/plugin-runtime": "1.1.
|
|
22
|
+
"@zhin.js/feature-kit": "1.1.8",
|
|
23
|
+
"@zhin.js/plugin-runtime": "1.1.16"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^26.1.2",
|
|
27
27
|
"tsx": "^4.23.1",
|
|
28
28
|
"typescript": "^6.0.3",
|
|
29
|
-
"@zhin.js/adapter": "1.1.
|
|
30
|
-
"@zhin.js/agent-feature": "1.1.
|
|
31
|
-
"@zhin.js/command": "1.1.
|
|
32
|
-
"@zhin.js/
|
|
33
|
-
"@zhin.js/
|
|
34
|
-
"@zhin.js/layout": "1.1.
|
|
35
|
-
"@zhin.js/mcp-feature": "1.1.
|
|
36
|
-
"@zhin.js/
|
|
37
|
-
"@zhin.js/
|
|
38
|
-
"@zhin.js/
|
|
39
|
-
"@zhin.js/
|
|
40
|
-
"@zhin.js/tool": "1.1.
|
|
29
|
+
"@zhin.js/adapter": "1.1.22",
|
|
30
|
+
"@zhin.js/agent-feature": "1.1.9",
|
|
31
|
+
"@zhin.js/command": "1.1.10",
|
|
32
|
+
"@zhin.js/component": "1.1.9",
|
|
33
|
+
"@zhin.js/handler": "1.1.8",
|
|
34
|
+
"@zhin.js/layout": "1.1.9",
|
|
35
|
+
"@zhin.js/mcp-feature": "1.1.9",
|
|
36
|
+
"@zhin.js/middleware": "1.1.9",
|
|
37
|
+
"@zhin.js/page": "1.1.9",
|
|
38
|
+
"@zhin.js/prompt-section": "1.1.8",
|
|
39
|
+
"@zhin.js/skill": "1.1.9",
|
|
40
|
+
"@zhin.js/tool": "1.1.9"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|