evolcore 0.0.25 → 0.0.26
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/CHANGELOG.md +607 -565
- package/LICENSE +21 -21
- package/README.md +455 -455
- package/bin/codex-managed-acl.ps1 +160 -160
- package/bin/codex-managed-hook.mjs +208 -208
- package/bin/ec-safe-output.js +327 -327
- package/bin/ec.js +40 -29
- package/bin/install-codex-managed-hooks.mjs +582 -555
- package/dist/agents/baseagent.js +96 -46
- package/dist/agents/claude-runner.js +50 -12
- package/dist/agents/codex/app-server-client.js +13 -5
- package/dist/agents/codex/catalog.js +1 -1
- package/dist/agents/codex/diagnostics.js +34 -1
- package/dist/agents/codex-runner.js +121 -38
- package/dist/agents/ecagent-runner.js +4 -9
- package/dist/agents/gemini-runner.js +2 -7
- package/dist/agents/runner-types.js +25 -17
- package/dist/aun/aid/agentmd.js +81 -8
- package/dist/aun/aid/client.js +1 -1
- package/dist/aun/aid/identity.js +1 -1
- package/dist/aun/aid/index.js +1 -1
- package/dist/aun/aid/store.js +17 -13
- package/dist/aun/menu-client.js +74 -0
- package/dist/aun/msg/group.js +1 -1
- package/dist/aun/msg/managed-operation.js +1 -1
- package/dist/aun/msg/p2p.js +6 -1
- package/dist/aun/msg/upload.js +30 -22
- package/dist/channels/aun.js +329 -94
- package/dist/cli/agent-command.js +105 -84
- package/dist/cli/agent-create.js +112 -10
- package/dist/cli/agent.js +16 -5
- package/dist/cli/aun-commands.js +297 -296
- package/dist/cli/bench.js +20 -20
- package/dist/cli/config.js +47 -28
- package/dist/cli/contact.js +70 -13
- package/dist/cli/ctl-command.js +22 -22
- package/dist/cli/daemon-commands.js +105 -40
- package/dist/cli/diag.js +31 -0
- package/dist/cli/fs-command.js +67 -67
- package/dist/cli/handoff-command.js +41 -9
- package/dist/cli/index.js +83 -77
- package/dist/cli/link-rules.js +21 -21
- package/dist/cli/managed-command-guard.js +3 -0
- package/dist/cli/menu-client.js +46 -31
- package/dist/cli/net-check.js +22 -22
- package/dist/cli/queue-command.js +29 -29
- package/dist/cli/response.js +30 -30
- package/dist/cli/restart-monitor.js +87 -40
- package/dist/cli/stats.js +51 -51
- package/dist/cli/trigger-command.js +56 -56
- package/dist/config/builtin-roles.js +1 -0
- package/dist/config/config-operation-service.js +145 -0
- package/dist/config/contact-operation-service.js +96 -7
- package/dist/config/resolved-config-op.js +27 -7
- package/dist/core/agent-application-service.js +2 -1
- package/dist/core/auth/authorization-audit.js +20 -12
- package/dist/core/auth/operation-authorizer.js +25 -4
- package/dist/core/auth/operation-catalog.js +35 -4
- package/dist/core/auth/remote-access-store.js +40 -1
- package/dist/core/bootstrap-service.js +1 -1
- package/dist/core/command/command-handler.js +83 -26
- package/dist/core/command/diag-service.js +118 -0
- package/dist/core/command/menu-catalog.js +12 -3
- package/dist/core/command/menu-handler.js +47 -26
- package/dist/core/command/menu-protocol.js +5 -0
- package/dist/core/command/menu-token-store.js +41 -8
- package/dist/core/command/slash-gate.js +34 -4
- package/dist/core/command/slash-handler.js +86 -21
- package/dist/core/handoff/runtime.js +205 -27
- package/dist/core/handoff/store.js +193 -4
- package/dist/core/message/im-renderer.js +72 -21
- package/dist/core/message/message-bridge.js +69 -9
- package/dist/core/message/message-queue.js +26 -0
- package/dist/core/message/message-utils.js +1 -0
- package/dist/core/message/response-engine.js +47 -28
- package/dist/core/model/catalog-service.js +79 -49
- package/dist/core/model/context-window-suffix.js +33 -0
- package/dist/core/model/model-catalog.js +1 -1
- package/dist/core/model/model-permission.js +12 -3
- package/dist/core/permission/ec-command-parser.js +51 -12
- package/dist/core/permission/sandbox-runtime.js +36 -14
- package/dist/core/permission/tool-policy.js +2 -1
- package/dist/index.js +280 -163
- package/dist/ipc.js +54 -2
- package/dist/response-system/engines/v1/proactive-flow.js +59 -2
- package/dist/stats/billing.js +41 -15
- package/dist/stats/db.js +159 -159
- package/dist/stats/eck-vars.js +9 -9
- package/dist/stats/price-resolver.js +28 -10
- package/dist/stats/query.js +139 -139
- package/dist/stats/role-budget.js +6 -6
- package/dist/stats/writer.js +51 -51
- package/dist/utils/cross-platform.js +30 -1
- package/dist/utils/error-dict.json +160 -160
- package/dist/utils/error-utils.js +21 -0
- package/dist/utils/evolcore-version.js +129 -0
- package/dist/utils/logger.js +3 -1
- package/dist/utils/macos-autostart.js +22 -22
- package/dist/utils/model-prices.jsonl +23 -23
- package/dist/utils/npm-ops.js +176 -35
- package/dist/utils/welcome.js +22 -22
- package/ecagent/LICENSE +21 -21
- package/ecagent/NOTICE +11 -11
- package/ecagent/README.md +61 -61
- package/ecagent/dist/harness/compaction/branch-summarization.js +30 -30
- package/ecagent/dist/harness/compaction/compaction.js +83 -83
- package/ecagent/dist/harness/messages.js +7 -7
- package/kits/docs/GUIDE.md +20 -20
- package/kits/docs/INDEX.md +66 -66
- package/kits/docs/aun/CHEATSHEET.md +19 -19
- package/kits/docs/aun/SYNC_PROTOCOL.md +15 -15
- package/kits/docs/channels/aun.md +56 -56
- package/kits/docs/channels/feishu.md +56 -56
- package/kits/docs/context-assembly.md +364 -364
- package/kits/docs/eck_templates/GUIDE.template.md +22 -22
- package/kits/docs/eck_templates/INDEX.template.md +28 -28
- package/kits/docs/eck_templates/path-registry.template.md +33 -33
- package/kits/docs/eck_templates/runtime.template.md +19 -19
- package/kits/docs/evolcore/INDEX.md +71 -71
- package/kits/docs/evolcore/agent-create.md +170 -165
- package/kits/docs/evolcore/agent.md +66 -66
- package/kits/docs/evolcore/aid.md +60 -60
- package/kits/docs/evolcore/codex-windows-sandbox.md +146 -146
- package/kits/docs/evolcore/config.md +202 -195
- package/kits/docs/evolcore/contact.md +75 -68
- package/kits/docs/evolcore/ctl.md +46 -46
- package/kits/docs/evolcore/event.md +216 -216
- package/kits/docs/evolcore/fs-architecture.md +1215 -1215
- package/kits/docs/evolcore/fs.md +110 -110
- package/kits/docs/evolcore/group-collaboration.md +243 -243
- package/kits/docs/evolcore/group-fs.md +17 -17
- package/kits/docs/evolcore/group-rules.md +251 -251
- package/kits/docs/evolcore/group.md +152 -152
- package/kits/docs/evolcore/menu-client.md +42 -34
- package/kits/docs/evolcore/model.md +50 -50
- package/kits/docs/evolcore/msg.md +166 -165
- package/kits/docs/evolcore/response.md +75 -75
- package/kits/docs/evolcore/rpc.md +37 -37
- package/kits/docs/evolcore/self-summary.md +29 -29
- package/kits/docs/evolcore/stats.md +83 -83
- package/kits/docs/evolcore/storage.md +50 -50
- package/kits/docs/evolcore/trigger.md +575 -575
- package/kits/docs/identity/AID_PROFILE_SPEC.md +26 -26
- package/kits/docs/identity/PATH_OPS.md +16 -16
- package/kits/docs/identity/ROLE_DETAIL.md +25 -25
- package/kits/docs/identity/identity-tools.md +26 -26
- package/kits/docs/path-registry.md +62 -62
- package/kits/docs/prompt-loading-architecture.md +269 -269
- package/kits/docs/venues/aun-group.md +45 -45
- package/kits/docs/venues/aun-private.md +10 -10
- package/kits/docs/venues/client-desktop.md +10 -10
- package/kits/docs/venues/client-mobile.md +10 -10
- package/kits/docs/venues/feishu-group.md +13 -13
- package/kits/docs/venues/feishu-private.md +9 -9
- package/kits/docs/venues/group.md +37 -25
- package/kits/docs/venues/private.md +10 -10
- package/kits/eck_manifest.auxiliary.json +43 -43
- package/kits/eck_manifest.json +190 -190
- package/kits/eck_message_manifest.json +74 -74
- package/kits/migrations/README-role-config-v4.md +32 -32
- package/kits/migrations/migrate-contact-book-v2.mjs +748 -748
- package/kits/migrations/migrate-role-config-v4.mjs +614 -614
- package/kits/migrations/migrate-role-config-v5.mjs +365 -365
- package/kits/migrations/rename-config-file.mjs +99 -99
- package/kits/rules/01-overview.md +162 -162
- package/kits/rules/02-navigation.md +96 -96
- package/kits/rules/03-identity.md +36 -36
- package/kits/rules/04-relation.md +75 -75
- package/kits/rules/05-venue.md +60 -60
- package/kits/rules/06-channel.md +63 -63
- package/kits/schemas/_meta.json +53 -53
- package/kits/schemas/agent-config.schema.1.json +177 -177
- package/kits/schemas/agent-config.schema.10.json +395 -395
- package/kits/schemas/agent-config.schema.11.json +421 -421
- package/kits/schemas/agent-config.schema.12.json +427 -427
- package/kits/schemas/agent-config.schema.2.json +239 -239
- package/kits/schemas/agent-config.schema.3.json +119 -119
- package/kits/schemas/agent-config.schema.4.json +208 -208
- package/kits/schemas/agent-config.schema.5.json +326 -326
- package/kits/schemas/agent-config.schema.6.json +322 -322
- package/kits/schemas/agent-config.schema.7.json +303 -303
- package/kits/schemas/agent-config.schema.8.json +304 -304
- package/kits/schemas/agent-config.schema.9.json +364 -364
- package/kits/schemas/contact-book.schema.1.json +36 -36
- package/kits/schemas/contact-book.schema.2.json +43 -43
- package/kits/schemas/contact-book.schema.3.json +67 -67
- package/kits/schemas/daemon.schema.1.json +91 -91
- package/kits/schemas/daemon.schema.2.json +101 -101
- package/kits/schemas/daemon.schema.3.json +123 -123
- package/kits/schemas/daemon.schema.4.json +136 -136
- package/kits/schemas/daemon.schema.5.json +135 -135
- package/kits/schemas/daemon.schema.6.json +131 -131
- package/kits/schemas/defaults.schema.1.json +81 -81
- package/kits/schemas/defaults.schema.2.json +85 -85
- package/kits/schemas/defaults.schema.3.json +73 -73
- package/kits/schemas/defaults.schema.4.json +107 -107
- package/kits/schemas/defaults.schema.5.json +119 -119
- package/kits/schemas/menu-exec-schema-commands.md +208 -208
- package/kits/schemas/migrations/README.md +30 -30
- package/kits/schemas/relation-config.schema.1.json +158 -158
- package/kits/schemas/relation-config.schema.2.json +73 -73
- package/kits/schemas/relation-config.schema.3.json +50 -50
- package/kits/schemas/relation-config.schema.4.json +47 -47
- package/kits/schemas/relation-config.schema.5.json +47 -47
- package/kits/schemas/relation-config.schema.6.json +46 -46
- package/kits/schemas/relation-config.schema.7.json +59 -59
- package/kits/schemas/relation-config.schema.8.json +103 -103
- package/kits/schemas/role-config.schema.1.json +201 -201
- package/kits/schemas/role-registry.schema.1.json +35 -35
- package/kits/schemas/single-session.schema.1.json +31 -31
- package/kits/schemas/single-session.schema.2.json +57 -57
- package/kits/schemas/single-session.schema.3.json +32 -32
- package/kits/templates/bootstrap-welcome.md +17 -17
- package/kits/templates/message-fragments/handoff-context-to-target.md +9 -9
- package/kits/templates/message-fragments/handoff-request-to-target.md +19 -19
- package/kits/templates/message-fragments/handoff-response-to-origin.md +9 -9
- package/kits/templates/message-fragments/inject-default.md +2 -2
- package/kits/templates/message-fragments/item.md +2 -2
- package/kits/templates/roles/admin.json +92 -92
- package/kits/templates/roles/member.json +96 -96
- package/kits/templates/roles/owner.json +9 -9
- package/kits/templates/roles/visitor.json +85 -85
- package/kits/templates/system-fragments/baseagent.md +14 -14
- package/kits/templates/system-fragments/bootstrap.md +31 -29
- package/kits/templates/system-fragments/channel.md +64 -64
- package/kits/templates/system-fragments/commands.md +28 -28
- package/kits/templates/system-fragments/identity.md +13 -13
- package/kits/templates/system-fragments/relation.md +19 -19
- package/kits/templates/system-fragments/session.md +59 -59
- package/kits/templates/system-fragments/venue.md +31 -31
- package/package.json +100 -98
|
@@ -1,421 +1,421 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "agent-config.schema.11.json",
|
|
4
|
-
"title": "AgentConfig v11 (agents/{aid}/config.json)",
|
|
5
|
-
"description": "Agent v11 主配置。备用模型链只允许在 defaults.json 定义。",
|
|
6
|
-
"x-logical-name": "agent-config",
|
|
7
|
-
"x-scope": "agent",
|
|
8
|
-
"type": "object",
|
|
9
|
-
"additionalProperties": true,
|
|
10
|
-
"not": {
|
|
11
|
-
"description": "禁止旧权限字段和已迁移到 relation role 的 admins。",
|
|
12
|
-
"anyOf": [
|
|
13
|
-
{
|
|
14
|
-
"description": "禁止旧版顶层 permissionMode;权限模式由独立角色策略决定。",
|
|
15
|
-
"required": [
|
|
16
|
-
"permissionMode"
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"description": "禁止旧版内嵌 roles;角色定义和默认角色已迁移到独立 roles/ 配置域。",
|
|
21
|
-
"required": [
|
|
22
|
-
"roles"
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"description": "admin 关系身份由 AUN 私聊 relation role 管理。",
|
|
27
|
-
"required": [
|
|
28
|
-
"admins"
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"description": "debug 是 daemon 进程级配置,不进入 Agent 覆盖链。",
|
|
33
|
-
"required": [
|
|
34
|
-
"debug"
|
|
35
|
-
]
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
"required": [
|
|
40
|
-
"aid",
|
|
41
|
-
"channels"
|
|
42
|
-
],
|
|
43
|
-
"properties": {
|
|
44
|
-
"$schema_version": {
|
|
45
|
-
"type": "number",
|
|
46
|
-
"const": 11,
|
|
47
|
-
"default": 11,
|
|
48
|
-
"x-merge": "scalar",
|
|
49
|
-
"description": "配置 Schema 版本;v11 移除 AUN gateway override"
|
|
50
|
-
},
|
|
51
|
-
"aid": {
|
|
52
|
-
"type": "string",
|
|
53
|
-
"x-merge": "scalar",
|
|
54
|
-
"description": "Agent 的全局唯一身份标识"
|
|
55
|
-
},
|
|
56
|
-
"enabled": {
|
|
57
|
-
"type": "boolean",
|
|
58
|
-
"default": true,
|
|
59
|
-
"x-merge": "scalar",
|
|
60
|
-
"description": "是否启用 Agent;缺省按启用处理"
|
|
61
|
-
},
|
|
62
|
-
"lifecycle": {
|
|
63
|
-
"type": "string",
|
|
64
|
-
"default": "active",
|
|
65
|
-
"enum": [
|
|
66
|
-
"created",
|
|
67
|
-
"bootstrapping",
|
|
68
|
-
"active"
|
|
69
|
-
],
|
|
70
|
-
"x-merge": "scalar",
|
|
71
|
-
"description": "agent 生命周期状态;缺失时按 active 处理",
|
|
72
|
-
"x-enumDescriptions": {
|
|
73
|
-
"created": "已创建,尚未进入引导流程",
|
|
74
|
-
"bootstrapping": "引导中(初始化配置/身份)",
|
|
75
|
-
"active": "已激活,正常运行"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"initialized": {
|
|
79
|
-
"type": "boolean",
|
|
80
|
-
"x-merge": "scalar",
|
|
81
|
-
"description": "是否已完成 Agent 初始化流程"
|
|
82
|
-
},
|
|
83
|
-
"owners": {
|
|
84
|
-
"type": "array",
|
|
85
|
-
"items": {
|
|
86
|
-
"type": "string",
|
|
87
|
-
"description": "一个 Agent owner 的身份标识,通常为 AID。"
|
|
88
|
-
},
|
|
89
|
-
"uniqueItems": true,
|
|
90
|
-
"x-merge": "list",
|
|
91
|
-
"description": "Agent 所有者身份列表;用于 owner 级控制和通知"
|
|
92
|
-
},
|
|
93
|
-
"access": {
|
|
94
|
-
"type": "object",
|
|
95
|
-
"x-merge": "dict",
|
|
96
|
-
"additionalProperties": false,
|
|
97
|
-
"required": [
|
|
98
|
-
"policyMode",
|
|
99
|
-
"requestLimit"
|
|
100
|
-
],
|
|
101
|
-
"properties": {
|
|
102
|
-
"policyMode": {
|
|
103
|
-
"type": "string",
|
|
104
|
-
"enum": [
|
|
105
|
-
"open",
|
|
106
|
-
"contacts",
|
|
107
|
-
"owners"
|
|
108
|
-
],
|
|
109
|
-
"description": "私聊和群聊准入策略:开放、仅联系人或仅 Owner。"
|
|
110
|
-
},
|
|
111
|
-
"requestLimit": {
|
|
112
|
-
"type": "object",
|
|
113
|
-
"additionalProperties": false,
|
|
114
|
-
"required": [
|
|
115
|
-
"maxTimes",
|
|
116
|
-
"coolDown"
|
|
117
|
-
],
|
|
118
|
-
"properties": {
|
|
119
|
-
"maxTimes": {
|
|
120
|
-
"type": "integer",
|
|
121
|
-
"minimum": 1,
|
|
122
|
-
"maximum": 100000,
|
|
123
|
-
"description": "每个 Agent、每个渠道实例在窗口内最多发送的准入控制消息数。"
|
|
124
|
-
},
|
|
125
|
-
"coolDown": {
|
|
126
|
-
"type": "integer",
|
|
127
|
-
"minimum": 1,
|
|
128
|
-
"maximum": 86400,
|
|
129
|
-
"description": "准入控制消息限额的冷却窗口,单位秒。"
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
"description": "Agent 自身的消息准入策略;不参与 defaults 或 relation 覆盖链。"
|
|
135
|
-
},
|
|
136
|
-
"channels": {
|
|
137
|
-
"type": "array",
|
|
138
|
-
"items": {
|
|
139
|
-
"type": "object",
|
|
140
|
-
"allOf": [
|
|
141
|
-
{
|
|
142
|
-
"if": {
|
|
143
|
-
"properties": { "type": { "const": "aun" } },
|
|
144
|
-
"required": ["type"]
|
|
145
|
-
},
|
|
146
|
-
"then": { "not": { "required": ["gatewayUrl"] } }
|
|
147
|
-
}
|
|
148
|
-
],
|
|
149
|
-
"description": "一个渠道实例配置;具体字段由渠道类型及其适配器定义。"
|
|
150
|
-
},
|
|
151
|
-
"x-merge": "list",
|
|
152
|
-
"description": "Agent 绑定的消息渠道实例列表"
|
|
153
|
-
},
|
|
154
|
-
"aun": {
|
|
155
|
-
"type": "object",
|
|
156
|
-
"x-merge": "dict",
|
|
157
|
-
"description": "Agent 级 AUN 通信配置",
|
|
158
|
-
"properties": {
|
|
159
|
-
"gatewayUrl": {
|
|
160
|
-
"not": {},
|
|
161
|
-
"description": "已移除;网关由 fastaun 缓存和 AID discovery 决定"
|
|
162
|
-
},
|
|
163
|
-
"defaultEncrypt": {
|
|
164
|
-
"not": {},
|
|
165
|
-
"description": "不支持在 Agent 配置;请使用 daemon.json.aun.defaultEncrypt"
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
"models": {
|
|
170
|
-
"type": "object",
|
|
171
|
-
"x-merge": "dict",
|
|
172
|
-
"description": "Agent 级模型别名、注册表或模型覆盖配置"
|
|
173
|
-
},
|
|
174
|
-
"active_baseagent": {
|
|
175
|
-
"type": "string",
|
|
176
|
-
"x-merge": "scalar",
|
|
177
|
-
"description": "默认使用的 base agent 标识,例如 claude 或 codex"
|
|
178
|
-
},
|
|
179
|
-
"baseagents": {
|
|
180
|
-
"type": "object",
|
|
181
|
-
"x-merge": "dict",
|
|
182
|
-
"description": "各 base agent 的模型、推理强度及运行参数;备用模型链只能在 defaults.json 配置。",
|
|
183
|
-
"additionalProperties": {
|
|
184
|
-
"not": {
|
|
185
|
-
"type": "object",
|
|
186
|
-
"required": ["fallbackModels"]
|
|
187
|
-
},
|
|
188
|
-
"properties": {
|
|
189
|
-
"headers": {
|
|
190
|
-
"type": "object",
|
|
191
|
-
"propertyNames": { "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$" },
|
|
192
|
-
"additionalProperties": { "type": "string", "pattern": "^[^\\u0000\\r\\n]*$" }
|
|
193
|
-
},
|
|
194
|
-
"queryParams": {
|
|
195
|
-
"type": "object",
|
|
196
|
-
"propertyNames": { "minLength": 1 },
|
|
197
|
-
"additionalProperties": { "type": "string" }
|
|
198
|
-
},
|
|
199
|
-
"auxiliaryModel": {
|
|
200
|
-
"type": "string",
|
|
201
|
-
"minLength": 1,
|
|
202
|
-
"description": "Session Renew 语义连续性判断使用的 direct 辅助模型。"
|
|
203
|
-
},
|
|
204
|
-
"auxiliaryEffort": {
|
|
205
|
-
"type": "string",
|
|
206
|
-
"enum": ["low", "medium", "high", "xhigh", "max"],
|
|
207
|
-
"description": "Session Renew 辅助模型的可选推理强度。"
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
"dependencies": {
|
|
211
|
-
"auxiliaryEffort": ["auxiliaryModel"]
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
"projects": {
|
|
216
|
-
"type": "object",
|
|
217
|
-
"x-merge": "dict",
|
|
218
|
-
"description": "Agent 可用项目路径和项目选择配置"
|
|
219
|
-
},
|
|
220
|
-
"capabilities": {
|
|
221
|
-
"type": "object",
|
|
222
|
-
"x-merge": "dict",
|
|
223
|
-
"description": "Agent 能力开关及能力参数"
|
|
224
|
-
},
|
|
225
|
-
"readonlySourceDiagnostics": {
|
|
226
|
-
"type": "boolean",
|
|
227
|
-
"x-merge": "scalar",
|
|
228
|
-
"default": false,
|
|
229
|
-
"description": "允许只读会话在显式源码目录内执行受限、可证明只读的诊断查询"
|
|
230
|
-
},
|
|
231
|
-
"observable": {
|
|
232
|
-
"type": "boolean",
|
|
233
|
-
"default": true,
|
|
234
|
-
"x-merge": "scalar",
|
|
235
|
-
"description": "是否将 Agent 的入站和出站消息转发给 owners;默认开启"
|
|
236
|
-
},
|
|
237
|
-
"chatmode": {
|
|
238
|
-
"type": "object",
|
|
239
|
-
"x-merge": "dict",
|
|
240
|
-
"default": {
|
|
241
|
-
"private": "interactive",
|
|
242
|
-
"group": "proactive",
|
|
243
|
-
"nothuman": "proactive"
|
|
244
|
-
},
|
|
245
|
-
"properties": {
|
|
246
|
-
"private": {
|
|
247
|
-
"enum": [
|
|
248
|
-
"interactive",
|
|
249
|
-
"proactive"
|
|
250
|
-
],
|
|
251
|
-
"description": "人类私聊场景的投递方式",
|
|
252
|
-
"x-enumDescriptions": {
|
|
253
|
-
"interactive": "同步交互:输出即回复",
|
|
254
|
-
"proactive": "主动推送:CLI 回复 + 思考投影"
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
"group": {
|
|
258
|
-
"enum": [
|
|
259
|
-
"interactive",
|
|
260
|
-
"proactive"
|
|
261
|
-
],
|
|
262
|
-
"description": "群聊场景的投递方式",
|
|
263
|
-
"x-enumDescriptions": {
|
|
264
|
-
"interactive": "同步交互:输出即回复",
|
|
265
|
-
"proactive": "主动推送:CLI 回复 + 思考投影"
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
"nothuman": {
|
|
269
|
-
"enum": [
|
|
270
|
-
"interactive",
|
|
271
|
-
"proactive"
|
|
272
|
-
],
|
|
273
|
-
"description": "非人类(agent)私聊场景的投递方式",
|
|
274
|
-
"x-enumDescriptions": {
|
|
275
|
-
"interactive": "同步交互:输出即回复",
|
|
276
|
-
"proactive": "主动推送:CLI 回复 + 思考投影"
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
"additionalProperties": false,
|
|
281
|
-
"description": "chatmode 场景默认表;出厂默认值即此 default(agent 级改默认,关系级按键覆盖)。键封闭 private/group/nothuman,值枚举 interactive/proactive"
|
|
282
|
-
},
|
|
283
|
-
"mentionMode": {
|
|
284
|
-
"type": "string",
|
|
285
|
-
"enum": [
|
|
286
|
-
"disabled",
|
|
287
|
-
"mention-only"
|
|
288
|
-
],
|
|
289
|
-
"default": "disabled",
|
|
290
|
-
"x-merge": "scalar",
|
|
291
|
-
"description": "@ 处理策略(顶层通用参数)",
|
|
292
|
-
"x-enumDescriptions": {
|
|
293
|
-
"disabled": "处理所有消息",
|
|
294
|
-
"mention-only": "只处理被 @ 的消息,未 @ 作引用上下文"
|
|
295
|
-
}
|
|
296
|
-
},
|
|
297
|
-
"model": {
|
|
298
|
-
"type": "string",
|
|
299
|
-
"x-merge": "scalar",
|
|
300
|
-
"description": "主会话模型(顶层通用参数);无默认值,缺省时由响应模式/全局默认决定"
|
|
301
|
-
},
|
|
302
|
-
"responseMode": {
|
|
303
|
-
"type": "string",
|
|
304
|
-
"x-merge": "scalar",
|
|
305
|
-
"description": "响应模式 id(标量);候选清单/默认值来自注册表,非 schema。关系级>agent级>注册表首选"
|
|
306
|
-
},
|
|
307
|
-
"responseModeParams": {
|
|
308
|
-
"type": "object",
|
|
309
|
-
"x-merge": "dict",
|
|
310
|
-
"description": "响应模式特有参数字典,按模式 id 分桶:{ [modeId]: {...} }"
|
|
311
|
-
},
|
|
312
|
-
"flush_delay": {
|
|
313
|
-
"type": "number",
|
|
314
|
-
"minimum": 0,
|
|
315
|
-
"default": 3,
|
|
316
|
-
"x-merge": "scalar",
|
|
317
|
-
"description": "流式出站消息的批量刷新间隔,单位为秒;默认 3 秒"
|
|
318
|
-
},
|
|
319
|
-
"debounce": {
|
|
320
|
-
"type": "number",
|
|
321
|
-
"minimum": 0,
|
|
322
|
-
"default": 0,
|
|
323
|
-
"x-merge": "scalar",
|
|
324
|
-
"description": "入站消息合并窗口,单位为秒;0 表示不合并,默认 0"
|
|
325
|
-
},
|
|
326
|
-
"show_activities": {
|
|
327
|
-
"type": "string",
|
|
328
|
-
"enum": [
|
|
329
|
-
"all",
|
|
330
|
-
"text",
|
|
331
|
-
"none"
|
|
332
|
-
],
|
|
333
|
-
"default": "all",
|
|
334
|
-
"x-merge": "scalar",
|
|
335
|
-
"description": "中间输出展示范围(仅对 interactive 私聊有意义)",
|
|
336
|
-
"x-enumDescriptions": {
|
|
337
|
-
"all": "文本 + activity",
|
|
338
|
-
"text": "仅文本",
|
|
339
|
-
"none": "全部静默"
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
"session_renew": {
|
|
343
|
-
"type": "object",
|
|
344
|
-
"x-merge": "dict",
|
|
345
|
-
"additionalProperties": false,
|
|
346
|
-
"description": "会话超时后的续接判定",
|
|
347
|
-
"properties": {
|
|
348
|
-
"enabled": {
|
|
349
|
-
"type": "boolean",
|
|
350
|
-
"default": false,
|
|
351
|
-
"description": "是否启用超时后的会话连续性判定"
|
|
352
|
-
},
|
|
353
|
-
"after_hours": {
|
|
354
|
-
"type": "number",
|
|
355
|
-
"exclusiveMinimum": 0,
|
|
356
|
-
"default": 24,
|
|
357
|
-
"description": "距最后一条有效对话超过该小时数才触发判定"
|
|
358
|
-
},
|
|
359
|
-
"fallback_action": {
|
|
360
|
-
"type": "string",
|
|
361
|
-
"enum": [
|
|
362
|
-
"continue",
|
|
363
|
-
"new"
|
|
364
|
-
],
|
|
365
|
-
"default": "continue",
|
|
366
|
-
"description": "无法判定时的兜底动作",
|
|
367
|
-
"x-enumDescriptions": {
|
|
368
|
-
"continue": "继续沿用当前会话",
|
|
369
|
-
"new": "开启新会话"
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
},
|
|
374
|
-
"group_venue_sync": {
|
|
375
|
-
"type": "object",
|
|
376
|
-
"x-merge": "dict",
|
|
377
|
-
"description": "AUN 群资源同步配置;控制规则文件路径、资源索引路径、条目/字节限制及刷新间隔。"
|
|
378
|
-
},
|
|
379
|
-
"groupRules": {
|
|
380
|
-
"type": "object",
|
|
381
|
-
"x-merge": "dict",
|
|
382
|
-
"additionalProperties": false,
|
|
383
|
-
"properties": {
|
|
384
|
-
"mode": {
|
|
385
|
-
"type": "string",
|
|
386
|
-
"enum": [
|
|
387
|
-
"load",
|
|
388
|
-
"ignore"
|
|
389
|
-
],
|
|
390
|
-
"default": "load",
|
|
391
|
-
"description": "是否读取并注入 AUN 群已发布的 /rules.md;默认 load。"
|
|
392
|
-
}
|
|
393
|
-
},
|
|
394
|
-
"description": "本 Agent 对 AUN 群规则的本地加载策略。"
|
|
395
|
-
},
|
|
396
|
-
"render": {
|
|
397
|
-
"type": "object",
|
|
398
|
-
"x-merge": "dict",
|
|
399
|
-
"description": "私聊、群聊及注入内容使用的渲染器标识配置。"
|
|
400
|
-
},
|
|
401
|
-
"sessionManifests": {
|
|
402
|
-
"type": "object",
|
|
403
|
-
"x-merge": "dict",
|
|
404
|
-
"description": "会话类型到 manifest 文件的映射,用于选择对应的系统提示词清单。"
|
|
405
|
-
},
|
|
406
|
-
"enable_rich_content": {
|
|
407
|
-
"type": "boolean",
|
|
408
|
-
"x-merge": "scalar",
|
|
409
|
-
"description": "是否允许渠道使用富内容消息;未设置时由渠道能力和运行时默认决定"
|
|
410
|
-
},
|
|
411
|
-
"extra_backup": {
|
|
412
|
-
"type": "array",
|
|
413
|
-
"items": {
|
|
414
|
-
"type": "object",
|
|
415
|
-
"description": "一个额外备份规则,包含相对 path 和可选的文件匹配 pattern。"
|
|
416
|
-
},
|
|
417
|
-
"x-merge": "list",
|
|
418
|
-
"description": "配置快照需要额外包含的文件声明;不得指向 .env。"
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "agent-config.schema.11.json",
|
|
4
|
+
"title": "AgentConfig v11 (agents/{aid}/config.json)",
|
|
5
|
+
"description": "Agent v11 主配置。备用模型链只允许在 defaults.json 定义。",
|
|
6
|
+
"x-logical-name": "agent-config",
|
|
7
|
+
"x-scope": "agent",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": true,
|
|
10
|
+
"not": {
|
|
11
|
+
"description": "禁止旧权限字段和已迁移到 relation role 的 admins。",
|
|
12
|
+
"anyOf": [
|
|
13
|
+
{
|
|
14
|
+
"description": "禁止旧版顶层 permissionMode;权限模式由独立角色策略决定。",
|
|
15
|
+
"required": [
|
|
16
|
+
"permissionMode"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"description": "禁止旧版内嵌 roles;角色定义和默认角色已迁移到独立 roles/ 配置域。",
|
|
21
|
+
"required": [
|
|
22
|
+
"roles"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"description": "admin 关系身份由 AUN 私聊 relation role 管理。",
|
|
27
|
+
"required": [
|
|
28
|
+
"admins"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"description": "debug 是 daemon 进程级配置,不进入 Agent 覆盖链。",
|
|
33
|
+
"required": [
|
|
34
|
+
"debug"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"required": [
|
|
40
|
+
"aid",
|
|
41
|
+
"channels"
|
|
42
|
+
],
|
|
43
|
+
"properties": {
|
|
44
|
+
"$schema_version": {
|
|
45
|
+
"type": "number",
|
|
46
|
+
"const": 11,
|
|
47
|
+
"default": 11,
|
|
48
|
+
"x-merge": "scalar",
|
|
49
|
+
"description": "配置 Schema 版本;v11 移除 AUN gateway override"
|
|
50
|
+
},
|
|
51
|
+
"aid": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"x-merge": "scalar",
|
|
54
|
+
"description": "Agent 的全局唯一身份标识"
|
|
55
|
+
},
|
|
56
|
+
"enabled": {
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"default": true,
|
|
59
|
+
"x-merge": "scalar",
|
|
60
|
+
"description": "是否启用 Agent;缺省按启用处理"
|
|
61
|
+
},
|
|
62
|
+
"lifecycle": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"default": "active",
|
|
65
|
+
"enum": [
|
|
66
|
+
"created",
|
|
67
|
+
"bootstrapping",
|
|
68
|
+
"active"
|
|
69
|
+
],
|
|
70
|
+
"x-merge": "scalar",
|
|
71
|
+
"description": "agent 生命周期状态;缺失时按 active 处理",
|
|
72
|
+
"x-enumDescriptions": {
|
|
73
|
+
"created": "已创建,尚未进入引导流程",
|
|
74
|
+
"bootstrapping": "引导中(初始化配置/身份)",
|
|
75
|
+
"active": "已激活,正常运行"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"initialized": {
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"x-merge": "scalar",
|
|
81
|
+
"description": "是否已完成 Agent 初始化流程"
|
|
82
|
+
},
|
|
83
|
+
"owners": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"items": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"description": "一个 Agent owner 的身份标识,通常为 AID。"
|
|
88
|
+
},
|
|
89
|
+
"uniqueItems": true,
|
|
90
|
+
"x-merge": "list",
|
|
91
|
+
"description": "Agent 所有者身份列表;用于 owner 级控制和通知"
|
|
92
|
+
},
|
|
93
|
+
"access": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"x-merge": "dict",
|
|
96
|
+
"additionalProperties": false,
|
|
97
|
+
"required": [
|
|
98
|
+
"policyMode",
|
|
99
|
+
"requestLimit"
|
|
100
|
+
],
|
|
101
|
+
"properties": {
|
|
102
|
+
"policyMode": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"enum": [
|
|
105
|
+
"open",
|
|
106
|
+
"contacts",
|
|
107
|
+
"owners"
|
|
108
|
+
],
|
|
109
|
+
"description": "私聊和群聊准入策略:开放、仅联系人或仅 Owner。"
|
|
110
|
+
},
|
|
111
|
+
"requestLimit": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"required": [
|
|
115
|
+
"maxTimes",
|
|
116
|
+
"coolDown"
|
|
117
|
+
],
|
|
118
|
+
"properties": {
|
|
119
|
+
"maxTimes": {
|
|
120
|
+
"type": "integer",
|
|
121
|
+
"minimum": 1,
|
|
122
|
+
"maximum": 100000,
|
|
123
|
+
"description": "每个 Agent、每个渠道实例在窗口内最多发送的准入控制消息数。"
|
|
124
|
+
},
|
|
125
|
+
"coolDown": {
|
|
126
|
+
"type": "integer",
|
|
127
|
+
"minimum": 1,
|
|
128
|
+
"maximum": 86400,
|
|
129
|
+
"description": "准入控制消息限额的冷却窗口,单位秒。"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"description": "Agent 自身的消息准入策略;不参与 defaults 或 relation 覆盖链。"
|
|
135
|
+
},
|
|
136
|
+
"channels": {
|
|
137
|
+
"type": "array",
|
|
138
|
+
"items": {
|
|
139
|
+
"type": "object",
|
|
140
|
+
"allOf": [
|
|
141
|
+
{
|
|
142
|
+
"if": {
|
|
143
|
+
"properties": { "type": { "const": "aun" } },
|
|
144
|
+
"required": ["type"]
|
|
145
|
+
},
|
|
146
|
+
"then": { "not": { "required": ["gatewayUrl"] } }
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"description": "一个渠道实例配置;具体字段由渠道类型及其适配器定义。"
|
|
150
|
+
},
|
|
151
|
+
"x-merge": "list",
|
|
152
|
+
"description": "Agent 绑定的消息渠道实例列表"
|
|
153
|
+
},
|
|
154
|
+
"aun": {
|
|
155
|
+
"type": "object",
|
|
156
|
+
"x-merge": "dict",
|
|
157
|
+
"description": "Agent 级 AUN 通信配置",
|
|
158
|
+
"properties": {
|
|
159
|
+
"gatewayUrl": {
|
|
160
|
+
"not": {},
|
|
161
|
+
"description": "已移除;网关由 fastaun 缓存和 AID discovery 决定"
|
|
162
|
+
},
|
|
163
|
+
"defaultEncrypt": {
|
|
164
|
+
"not": {},
|
|
165
|
+
"description": "不支持在 Agent 配置;请使用 daemon.json.aun.defaultEncrypt"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"models": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"x-merge": "dict",
|
|
172
|
+
"description": "Agent 级模型别名、注册表或模型覆盖配置"
|
|
173
|
+
},
|
|
174
|
+
"active_baseagent": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"x-merge": "scalar",
|
|
177
|
+
"description": "默认使用的 base agent 标识,例如 claude 或 codex"
|
|
178
|
+
},
|
|
179
|
+
"baseagents": {
|
|
180
|
+
"type": "object",
|
|
181
|
+
"x-merge": "dict",
|
|
182
|
+
"description": "各 base agent 的模型、推理强度及运行参数;备用模型链只能在 defaults.json 配置。",
|
|
183
|
+
"additionalProperties": {
|
|
184
|
+
"not": {
|
|
185
|
+
"type": "object",
|
|
186
|
+
"required": ["fallbackModels"]
|
|
187
|
+
},
|
|
188
|
+
"properties": {
|
|
189
|
+
"headers": {
|
|
190
|
+
"type": "object",
|
|
191
|
+
"propertyNames": { "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$" },
|
|
192
|
+
"additionalProperties": { "type": "string", "pattern": "^[^\\u0000\\r\\n]*$" }
|
|
193
|
+
},
|
|
194
|
+
"queryParams": {
|
|
195
|
+
"type": "object",
|
|
196
|
+
"propertyNames": { "minLength": 1 },
|
|
197
|
+
"additionalProperties": { "type": "string" }
|
|
198
|
+
},
|
|
199
|
+
"auxiliaryModel": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"minLength": 1,
|
|
202
|
+
"description": "Session Renew 语义连续性判断使用的 direct 辅助模型。"
|
|
203
|
+
},
|
|
204
|
+
"auxiliaryEffort": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"enum": ["low", "medium", "high", "xhigh", "max"],
|
|
207
|
+
"description": "Session Renew 辅助模型的可选推理强度。"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"dependencies": {
|
|
211
|
+
"auxiliaryEffort": ["auxiliaryModel"]
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"projects": {
|
|
216
|
+
"type": "object",
|
|
217
|
+
"x-merge": "dict",
|
|
218
|
+
"description": "Agent 可用项目路径和项目选择配置"
|
|
219
|
+
},
|
|
220
|
+
"capabilities": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"x-merge": "dict",
|
|
223
|
+
"description": "Agent 能力开关及能力参数"
|
|
224
|
+
},
|
|
225
|
+
"readonlySourceDiagnostics": {
|
|
226
|
+
"type": "boolean",
|
|
227
|
+
"x-merge": "scalar",
|
|
228
|
+
"default": false,
|
|
229
|
+
"description": "允许只读会话在显式源码目录内执行受限、可证明只读的诊断查询"
|
|
230
|
+
},
|
|
231
|
+
"observable": {
|
|
232
|
+
"type": "boolean",
|
|
233
|
+
"default": true,
|
|
234
|
+
"x-merge": "scalar",
|
|
235
|
+
"description": "是否将 Agent 的入站和出站消息转发给 owners;默认开启"
|
|
236
|
+
},
|
|
237
|
+
"chatmode": {
|
|
238
|
+
"type": "object",
|
|
239
|
+
"x-merge": "dict",
|
|
240
|
+
"default": {
|
|
241
|
+
"private": "interactive",
|
|
242
|
+
"group": "proactive",
|
|
243
|
+
"nothuman": "proactive"
|
|
244
|
+
},
|
|
245
|
+
"properties": {
|
|
246
|
+
"private": {
|
|
247
|
+
"enum": [
|
|
248
|
+
"interactive",
|
|
249
|
+
"proactive"
|
|
250
|
+
],
|
|
251
|
+
"description": "人类私聊场景的投递方式",
|
|
252
|
+
"x-enumDescriptions": {
|
|
253
|
+
"interactive": "同步交互:输出即回复",
|
|
254
|
+
"proactive": "主动推送:CLI 回复 + 思考投影"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"group": {
|
|
258
|
+
"enum": [
|
|
259
|
+
"interactive",
|
|
260
|
+
"proactive"
|
|
261
|
+
],
|
|
262
|
+
"description": "群聊场景的投递方式",
|
|
263
|
+
"x-enumDescriptions": {
|
|
264
|
+
"interactive": "同步交互:输出即回复",
|
|
265
|
+
"proactive": "主动推送:CLI 回复 + 思考投影"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"nothuman": {
|
|
269
|
+
"enum": [
|
|
270
|
+
"interactive",
|
|
271
|
+
"proactive"
|
|
272
|
+
],
|
|
273
|
+
"description": "非人类(agent)私聊场景的投递方式",
|
|
274
|
+
"x-enumDescriptions": {
|
|
275
|
+
"interactive": "同步交互:输出即回复",
|
|
276
|
+
"proactive": "主动推送:CLI 回复 + 思考投影"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"additionalProperties": false,
|
|
281
|
+
"description": "chatmode 场景默认表;出厂默认值即此 default(agent 级改默认,关系级按键覆盖)。键封闭 private/group/nothuman,值枚举 interactive/proactive"
|
|
282
|
+
},
|
|
283
|
+
"mentionMode": {
|
|
284
|
+
"type": "string",
|
|
285
|
+
"enum": [
|
|
286
|
+
"disabled",
|
|
287
|
+
"mention-only"
|
|
288
|
+
],
|
|
289
|
+
"default": "disabled",
|
|
290
|
+
"x-merge": "scalar",
|
|
291
|
+
"description": "@ 处理策略(顶层通用参数)",
|
|
292
|
+
"x-enumDescriptions": {
|
|
293
|
+
"disabled": "处理所有消息",
|
|
294
|
+
"mention-only": "只处理被 @ 的消息,未 @ 作引用上下文"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"model": {
|
|
298
|
+
"type": "string",
|
|
299
|
+
"x-merge": "scalar",
|
|
300
|
+
"description": "主会话模型(顶层通用参数);无默认值,缺省时由响应模式/全局默认决定"
|
|
301
|
+
},
|
|
302
|
+
"responseMode": {
|
|
303
|
+
"type": "string",
|
|
304
|
+
"x-merge": "scalar",
|
|
305
|
+
"description": "响应模式 id(标量);候选清单/默认值来自注册表,非 schema。关系级>agent级>注册表首选"
|
|
306
|
+
},
|
|
307
|
+
"responseModeParams": {
|
|
308
|
+
"type": "object",
|
|
309
|
+
"x-merge": "dict",
|
|
310
|
+
"description": "响应模式特有参数字典,按模式 id 分桶:{ [modeId]: {...} }"
|
|
311
|
+
},
|
|
312
|
+
"flush_delay": {
|
|
313
|
+
"type": "number",
|
|
314
|
+
"minimum": 0,
|
|
315
|
+
"default": 3,
|
|
316
|
+
"x-merge": "scalar",
|
|
317
|
+
"description": "流式出站消息的批量刷新间隔,单位为秒;默认 3 秒"
|
|
318
|
+
},
|
|
319
|
+
"debounce": {
|
|
320
|
+
"type": "number",
|
|
321
|
+
"minimum": 0,
|
|
322
|
+
"default": 0,
|
|
323
|
+
"x-merge": "scalar",
|
|
324
|
+
"description": "入站消息合并窗口,单位为秒;0 表示不合并,默认 0"
|
|
325
|
+
},
|
|
326
|
+
"show_activities": {
|
|
327
|
+
"type": "string",
|
|
328
|
+
"enum": [
|
|
329
|
+
"all",
|
|
330
|
+
"text",
|
|
331
|
+
"none"
|
|
332
|
+
],
|
|
333
|
+
"default": "all",
|
|
334
|
+
"x-merge": "scalar",
|
|
335
|
+
"description": "中间输出展示范围(仅对 interactive 私聊有意义)",
|
|
336
|
+
"x-enumDescriptions": {
|
|
337
|
+
"all": "文本 + activity",
|
|
338
|
+
"text": "仅文本",
|
|
339
|
+
"none": "全部静默"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"session_renew": {
|
|
343
|
+
"type": "object",
|
|
344
|
+
"x-merge": "dict",
|
|
345
|
+
"additionalProperties": false,
|
|
346
|
+
"description": "会话超时后的续接判定",
|
|
347
|
+
"properties": {
|
|
348
|
+
"enabled": {
|
|
349
|
+
"type": "boolean",
|
|
350
|
+
"default": false,
|
|
351
|
+
"description": "是否启用超时后的会话连续性判定"
|
|
352
|
+
},
|
|
353
|
+
"after_hours": {
|
|
354
|
+
"type": "number",
|
|
355
|
+
"exclusiveMinimum": 0,
|
|
356
|
+
"default": 24,
|
|
357
|
+
"description": "距最后一条有效对话超过该小时数才触发判定"
|
|
358
|
+
},
|
|
359
|
+
"fallback_action": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"enum": [
|
|
362
|
+
"continue",
|
|
363
|
+
"new"
|
|
364
|
+
],
|
|
365
|
+
"default": "continue",
|
|
366
|
+
"description": "无法判定时的兜底动作",
|
|
367
|
+
"x-enumDescriptions": {
|
|
368
|
+
"continue": "继续沿用当前会话",
|
|
369
|
+
"new": "开启新会话"
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"group_venue_sync": {
|
|
375
|
+
"type": "object",
|
|
376
|
+
"x-merge": "dict",
|
|
377
|
+
"description": "AUN 群资源同步配置;控制规则文件路径、资源索引路径、条目/字节限制及刷新间隔。"
|
|
378
|
+
},
|
|
379
|
+
"groupRules": {
|
|
380
|
+
"type": "object",
|
|
381
|
+
"x-merge": "dict",
|
|
382
|
+
"additionalProperties": false,
|
|
383
|
+
"properties": {
|
|
384
|
+
"mode": {
|
|
385
|
+
"type": "string",
|
|
386
|
+
"enum": [
|
|
387
|
+
"load",
|
|
388
|
+
"ignore"
|
|
389
|
+
],
|
|
390
|
+
"default": "load",
|
|
391
|
+
"description": "是否读取并注入 AUN 群已发布的 /rules.md;默认 load。"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"description": "本 Agent 对 AUN 群规则的本地加载策略。"
|
|
395
|
+
},
|
|
396
|
+
"render": {
|
|
397
|
+
"type": "object",
|
|
398
|
+
"x-merge": "dict",
|
|
399
|
+
"description": "私聊、群聊及注入内容使用的渲染器标识配置。"
|
|
400
|
+
},
|
|
401
|
+
"sessionManifests": {
|
|
402
|
+
"type": "object",
|
|
403
|
+
"x-merge": "dict",
|
|
404
|
+
"description": "会话类型到 manifest 文件的映射,用于选择对应的系统提示词清单。"
|
|
405
|
+
},
|
|
406
|
+
"enable_rich_content": {
|
|
407
|
+
"type": "boolean",
|
|
408
|
+
"x-merge": "scalar",
|
|
409
|
+
"description": "是否允许渠道使用富内容消息;未设置时由渠道能力和运行时默认决定"
|
|
410
|
+
},
|
|
411
|
+
"extra_backup": {
|
|
412
|
+
"type": "array",
|
|
413
|
+
"items": {
|
|
414
|
+
"type": "object",
|
|
415
|
+
"description": "一个额外备份规则,包含相对 path 和可选的文件匹配 pattern。"
|
|
416
|
+
},
|
|
417
|
+
"x-merge": "list",
|
|
418
|
+
"description": "配置快照需要额外包含的文件声明;不得指向 .env。"
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|