@zhin.js/runtime 1.1.11 → 1.1.12
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 +41 -1
- package/lib/host-config-schema.json +63 -5
- package/package.json +15 -15
package/lib/config-composer.d.ts
CHANGED
|
@@ -1841,6 +1841,22 @@ export declare const HOST_CONFIG_SCHEMA: {
|
|
|
1841
1841
|
type: string[];
|
|
1842
1842
|
description: string;
|
|
1843
1843
|
};
|
|
1844
|
+
fallbacks: {
|
|
1845
|
+
type: string;
|
|
1846
|
+
description: string;
|
|
1847
|
+
items: {
|
|
1848
|
+
type: string;
|
|
1849
|
+
required: string[];
|
|
1850
|
+
properties: {
|
|
1851
|
+
provider: {
|
|
1852
|
+
type: string;
|
|
1853
|
+
};
|
|
1854
|
+
model: {
|
|
1855
|
+
type: string;
|
|
1856
|
+
};
|
|
1857
|
+
};
|
|
1858
|
+
};
|
|
1859
|
+
};
|
|
1844
1860
|
};
|
|
1845
1861
|
description: string;
|
|
1846
1862
|
};
|
|
@@ -2084,7 +2100,10 @@ export declare const HOST_CONFIG_SCHEMA: {
|
|
|
2084
2100
|
description: string;
|
|
2085
2101
|
};
|
|
2086
2102
|
judge: {
|
|
2087
|
-
type: string;
|
|
2103
|
+
type: string[];
|
|
2104
|
+
items: {
|
|
2105
|
+
type: string;
|
|
2106
|
+
};
|
|
2088
2107
|
description: string;
|
|
2089
2108
|
};
|
|
2090
2109
|
quietMs: {
|
|
@@ -2099,6 +2118,14 @@ export declare const HOST_CONFIG_SCHEMA: {
|
|
|
2099
2118
|
type: string[];
|
|
2100
2119
|
description: string;
|
|
2101
2120
|
};
|
|
2121
|
+
conversationWindowMs: {
|
|
2122
|
+
type: string[];
|
|
2123
|
+
description: string;
|
|
2124
|
+
};
|
|
2125
|
+
judgeIntervalMs: {
|
|
2126
|
+
type: string[];
|
|
2127
|
+
description: string;
|
|
2128
|
+
};
|
|
2102
2129
|
minConfidence: {
|
|
2103
2130
|
type: string[];
|
|
2104
2131
|
description: string;
|
|
@@ -2113,6 +2140,19 @@ export declare const HOST_CONFIG_SCHEMA: {
|
|
|
2113
2140
|
};
|
|
2114
2141
|
description: string;
|
|
2115
2142
|
};
|
|
2143
|
+
usage: {
|
|
2144
|
+
type: string[];
|
|
2145
|
+
additionalProperties: boolean;
|
|
2146
|
+
description: string;
|
|
2147
|
+
properties: {
|
|
2148
|
+
retentionDays: {
|
|
2149
|
+
type: string[];
|
|
2150
|
+
minimum: number;
|
|
2151
|
+
default: number;
|
|
2152
|
+
description: string;
|
|
2153
|
+
};
|
|
2154
|
+
};
|
|
2155
|
+
};
|
|
2116
2156
|
};
|
|
2117
2157
|
};
|
|
2118
2158
|
menuKeyword: {
|
|
@@ -2540,6 +2540,25 @@
|
|
|
2540
2540
|
"string"
|
|
2541
2541
|
],
|
|
2542
2542
|
"description": "Media described per turn; the rest keep the placeholder. Default 4."
|
|
2543
|
+
},
|
|
2544
|
+
"fallbacks": {
|
|
2545
|
+
"type": "array",
|
|
2546
|
+
"description": "主识图模型失败、空回答或不支持该媒体时,按顺序尝试;不改变主对话模型。",
|
|
2547
|
+
"items": {
|
|
2548
|
+
"type": "object",
|
|
2549
|
+
"required": [
|
|
2550
|
+
"provider",
|
|
2551
|
+
"model"
|
|
2552
|
+
],
|
|
2553
|
+
"properties": {
|
|
2554
|
+
"provider": {
|
|
2555
|
+
"type": "string"
|
|
2556
|
+
},
|
|
2557
|
+
"model": {
|
|
2558
|
+
"type": "string"
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2543
2562
|
}
|
|
2544
2563
|
},
|
|
2545
2564
|
"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 +2873,7 @@
|
|
|
2854
2873
|
},
|
|
2855
2874
|
"errorTemplate": {
|
|
2856
2875
|
"type": "string",
|
|
2857
|
-
"description": "
|
|
2876
|
+
"description": "入口层错误提示模板,{error} 为错误信息(可选;不配置时用聊天口吻说\"刚卡了一下\",主人额外看到原因)"
|
|
2858
2877
|
},
|
|
2859
2878
|
"ambient": {
|
|
2860
2879
|
"type": "object",
|
|
@@ -2869,8 +2888,14 @@
|
|
|
2869
2888
|
"description": "开启旁听的群,格式 platform:groupId;* 表示所有群。默认为空(关闭)"
|
|
2870
2889
|
},
|
|
2871
2890
|
"judge": {
|
|
2872
|
-
"type":
|
|
2873
|
-
|
|
2891
|
+
"type": [
|
|
2892
|
+
"string",
|
|
2893
|
+
"array"
|
|
2894
|
+
],
|
|
2895
|
+
"items": {
|
|
2896
|
+
"type": "string"
|
|
2897
|
+
},
|
|
2898
|
+
"description": "判断模型 providerAlias/model;也可以写成列表,前一个失败或限流时按顺序换下一个(免费额度通常按模型分别计算)。默认用主 Agent 的模型"
|
|
2874
2899
|
},
|
|
2875
2900
|
"quietMs": {
|
|
2876
2901
|
"type": [
|
|
@@ -2884,14 +2909,28 @@
|
|
|
2884
2909
|
"number",
|
|
2885
2910
|
"string"
|
|
2886
2911
|
],
|
|
2887
|
-
"description": "
|
|
2912
|
+
"description": "两次主动插话之间的最短间隔(毫秒,默认 120000);对话进行中不受限制"
|
|
2888
2913
|
},
|
|
2889
2914
|
"maxPerHour": {
|
|
2890
2915
|
"type": [
|
|
2891
2916
|
"number",
|
|
2892
2917
|
"string"
|
|
2893
2918
|
],
|
|
2894
|
-
"description": "
|
|
2919
|
+
"description": "每个群每小时最多主动插话次数(默认 3);对话进行中不计入"
|
|
2920
|
+
},
|
|
2921
|
+
"conversationWindowMs": {
|
|
2922
|
+
"type": [
|
|
2923
|
+
"number",
|
|
2924
|
+
"string"
|
|
2925
|
+
],
|
|
2926
|
+
"description": "机器人说话后,这段时间内算作对话进行中:群友接它的话只由判断模型决定,不受冷却和每小时次数限制(毫秒,默认 180000)"
|
|
2927
|
+
},
|
|
2928
|
+
"judgeIntervalMs": {
|
|
2929
|
+
"type": [
|
|
2930
|
+
"number",
|
|
2931
|
+
"string"
|
|
2932
|
+
],
|
|
2933
|
+
"description": "没在对话时,同一个群至少隔这么久才判断一次(毫秒,默认 30000),节省判断模型的额度"
|
|
2895
2934
|
},
|
|
2896
2935
|
"minConfidence": {
|
|
2897
2936
|
"type": [
|
|
@@ -2912,6 +2951,25 @@
|
|
|
2912
2951
|
}
|
|
2913
2952
|
},
|
|
2914
2953
|
"description": "AI 触发配置"
|
|
2954
|
+
},
|
|
2955
|
+
"usage": {
|
|
2956
|
+
"type": [
|
|
2957
|
+
"object",
|
|
2958
|
+
"null"
|
|
2959
|
+
],
|
|
2960
|
+
"additionalProperties": false,
|
|
2961
|
+
"description": "结构化用量存储(SQLite、MySQL、PostgreSQL);独立于日志级别,不保存正文或工具参数。",
|
|
2962
|
+
"properties": {
|
|
2963
|
+
"retentionDays": {
|
|
2964
|
+
"type": [
|
|
2965
|
+
"integer",
|
|
2966
|
+
"string"
|
|
2967
|
+
],
|
|
2968
|
+
"minimum": 1,
|
|
2969
|
+
"default": 30,
|
|
2970
|
+
"description": "用量明细保留天数,正整数,默认 30 天;按回合结束时间清理,子调用与所属回合一起删除。"
|
|
2971
|
+
}
|
|
2972
|
+
}
|
|
2915
2973
|
}
|
|
2916
2974
|
}
|
|
2917
2975
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/runtime",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
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/
|
|
23
|
-
"@zhin.js/
|
|
22
|
+
"@zhin.js/plugin-runtime": "1.1.16",
|
|
23
|
+
"@zhin.js/feature-kit": "1.1.8"
|
|
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/
|
|
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/handler": "1.1.8",
|
|
32
|
+
"@zhin.js/component": "1.1.9",
|
|
33
|
+
"@zhin.js/command": "1.1.10",
|
|
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",
|