evolcore 0.0.43-test.3 → 0.0.43-test.5
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 +82 -0
- package/bin/ecmsg.js +492 -0
- package/bin/install-codex-managed-hooks.mjs +130 -8
- package/dist/ability/application-service.js +37 -0
- package/dist/ability/resources.js +28 -0
- package/dist/ability/runtime.js +6 -1
- package/dist/agents/claude-runner.js +7 -5
- package/dist/agents/codex/app-server-client.js +0 -12
- package/dist/agents/codex-runner.js +12 -54
- package/dist/agents/ecagent-runner.js +130 -35
- package/dist/aun/aid/agentmd.js +56 -12
- package/dist/aun/aid/control-aid.js +15 -0
- package/dist/aun/aid/identity.js +8 -0
- package/dist/aun/aid/ownership-operation.js +12 -3
- package/dist/aun/menu/client.js +8 -7
- package/dist/aun/menu/index.js +1 -1
- package/dist/aun/menu/transport.js +8 -5
- package/dist/aun/service-proxy.js +3 -0
- package/dist/channels/aun.js +56 -22
- package/dist/channels/daemon.js +12 -4
- package/dist/cli/agent-command.js +5 -0
- package/dist/cli/agent-create.js +32 -8
- package/dist/cli/agent.js +9 -3
- package/dist/cli/aid-bind-command.js +3 -0
- package/dist/cli/aun-commands.js +12 -5
- package/dist/cli/code-stats.js +451 -213
- package/dist/cli/ctl-command.js +1 -3
- package/dist/cli/daemon-commands.js +42 -21
- package/dist/cli/directory.js +7 -8
- package/dist/cli/ecmsg-gateway.js +204 -0
- package/dist/cli/getmeta-command.js +2 -1
- package/dist/cli/index.js +6 -0
- package/dist/cli/init.js +58 -18
- package/dist/cli/provider-command.js +82 -5
- package/dist/cli/restart-monitor.js +11 -19
- package/dist/cli/stats.js +8 -1
- package/dist/cli/task-context.js +3 -0
- package/dist/cli/trigger-command.js +20 -14
- package/dist/config/boot-log.js +23 -2
- package/dist/config/config-field-policy.js +2 -0
- package/dist/config/config-manager.js +13 -17
- package/dist/config/daemon-services.js +1 -0
- package/dist/config/peer-role-resolver.js +6 -6
- package/dist/config/provider-identity-migration.js +202 -0
- package/dist/config/provider-identity.js +37 -0
- package/dist/config/provider-ipc-service.js +40 -3
- package/dist/config/provider-local-sync.js +153 -0
- package/dist/config/providers-config.js +32 -4
- package/dist/config/providers-management.js +144 -68
- package/dist/config/providers.js +4 -1
- package/dist/config/role-schema.js +3 -3
- package/dist/config/schema-migration.js +188 -3
- package/dist/core/agent-application-service.js +11 -0
- package/dist/core/agent-ipc-registration.js +2 -0
- package/dist/core/agent-runtime.js +45 -11
- package/dist/core/auth/auth-gateway.js +8 -6
- package/dist/core/auth/delegation-diagnostics.js +6 -2
- package/dist/core/auth/operation-authorizer.js +5 -2
- package/dist/core/auth/operation-catalog.js +6 -4
- package/dist/core/baseagent-loader.js +11 -3
- package/dist/core/bootstrap-service.js +8 -0
- package/dist/core/channel-loader.js +61 -23
- package/dist/core/command/agent-control.js +4 -1
- package/dist/core/command/chatmode-config.js +46 -0
- package/dist/core/command/cli-intent-parser.js +2 -1
- package/dist/core/command/command-handler.js +16 -20
- package/dist/core/command/daemon-diagnostics.js +2 -1
- package/dist/core/command/menu-catalog.js +1 -1
- package/dist/core/command/menu-handler.js +16 -16
- package/dist/core/command/menu-protocol.js +4 -2
- package/dist/core/command/provider-menu.js +4 -2
- package/dist/core/command/role-menu.js +2 -2
- package/dist/core/command/slash-handler.js +56 -42
- package/dist/core/daemon-lifecycle.js +35 -17
- package/dist/core/event-catalog.js +19 -0
- package/dist/core/evolagent-registry.js +3 -0
- package/dist/core/handoff/runtime.js +9 -3
- package/dist/core/initialization/service.js +4 -3
- package/dist/core/ipc-registration.js +6 -0
- package/dist/core/message/aun-ipc-sender.js +81 -3
- package/dist/core/message/im-renderer.js +24 -19
- package/dist/core/message/message-admission.js +13 -2
- package/dist/core/message/response-engine.js +40 -41
- package/dist/core/message/send-options.js +40 -0
- package/dist/core/message/send-routing.js +310 -0
- package/dist/core/model/model-capabilities.js +37 -0
- package/dist/core/model/model-catalog.js +6 -2
- package/dist/core/ownership/owner-resolver.js +117 -14
- package/dist/core/permission/ec-command-parser.js +195 -27
- package/dist/core/permission/readonly-shell-query.js +66 -7
- package/dist/core/permission/tool-error-code.js +13 -1
- package/dist/core/permission/tool-policy.js +74 -20
- package/dist/core/plugin-lifecycle.js +6 -2
- package/dist/core/relation/pa-team.js +7 -2
- package/dist/core/relation/same-owner-proof.js +131 -0
- package/dist/core/session/session-idle-monitor.js +94 -16
- package/dist/core/session/session-manager.js +69 -16
- package/dist/core/thread/thread-route.js +5 -2
- package/dist/directory/owner-directory-cache.js +690 -99
- package/dist/directory/owner-directory-markdown.js +146 -36
- package/dist/directory/owner-directory-query-operation.js +7 -9
- package/dist/directory/owner-directory-scope.js +12 -0
- package/dist/directory/owner-directory-search.js +5 -1
- package/dist/directory/owner-directory-store.js +28 -0
- package/dist/ecweb/basic-settings-service.js +15 -1
- package/dist/ecweb/message-context-service.js +2 -2
- package/dist/ecweb/providers-service.js +3 -1
- package/dist/ecweb/runtime/lifecycle.js +38 -5
- package/dist/ecweb/runtime/supervisor.js +157 -49
- package/dist/index.js +202 -38
- package/dist/paths.js +2 -1
- package/dist/proxy/manager.js +2 -0
- package/dist/proxy/service-supervisor.js +379 -143
- package/dist/response-system/engines/v1/proactive-flow.js +4 -0
- package/dist/trigger/application-service.js +1 -0
- package/dist/trigger/audit.js +3 -2
- package/dist/trigger/authorization.js +2 -3
- package/dist/trigger/event-source.js +4 -0
- package/dist/trigger/feedback.js +26 -2
- package/dist/trigger/history.js +4 -3
- package/dist/trigger/ipc-service.js +24 -19
- package/dist/trigger/manager.js +3 -5
- package/dist/trigger/parser.js +4 -21
- package/dist/trigger/patch.js +3 -15
- package/dist/trigger/scheduler.js +48 -13
- package/dist/trigger/system-definitions.js +2 -2
- package/dist/trigger/validation.js +4 -13
- package/dist/utils/autostart.js +2 -2
- package/dist/utils/cross-platform.js +36 -8
- package/dist/utils/error-utils.js +8 -0
- package/dist/utils/macos-autostart.js +31 -0
- package/dist/utils/model-prices.jsonl +15 -8
- package/dist/utils/process-introspect.js +21 -1
- package/dist/utils/public-suffix.js +5811 -0
- package/dist/utils/startup-trace.js +7 -1
- package/dist/utils/windows-autostart.js +42 -7
- package/ecagent/dist/harness/compaction/branch-summarization.js +1 -1
- package/ecagent/dist/harness/compaction/compaction.js +4 -4
- package/ecagent/dist/harness/env/nodejs.js +46 -2
- package/kits/docs/aun/ABILITY_CALLING.md +3 -3
- package/kits/docs/channels/aun.md +1 -1
- package/kits/docs/channels/feishu.md +2 -2
- package/kits/docs/context-assembly.md +20 -4
- package/kits/docs/evolcore/INDEX.md +3 -2
- package/kits/docs/evolcore/agent.md +2 -2
- package/kits/docs/evolcore/aid.md +8 -2
- package/kits/docs/evolcore/ctl.md +13 -4
- package/kits/docs/evolcore/directory.md +48 -15
- package/kits/docs/evolcore/file-navigation.md +63 -49
- package/kits/docs/evolcore/group.md +6 -6
- package/kits/docs/evolcore/memory-consolidation.md +1 -1
- package/kits/docs/evolcore/menu-protocol.md +33 -3
- package/kits/docs/evolcore/model.md +5 -3
- package/kits/docs/evolcore/msg.md +28 -27
- package/kits/docs/evolcore/provider.md +39 -5
- package/kits/docs/evolcore/response.md +3 -1
- package/kits/docs/evolcore/thread-chain.md +12 -14
- package/kits/docs/evolcore/tool-authorization.md +21 -1
- package/kits/docs/evolcore/trigger.md +12 -9
- package/kits/docs/identity/ROLE_DETAIL.md +1 -1
- package/kits/docs/prompt-loading-architecture.md +30 -20
- package/kits/eck_manifest.auxiliary.json +5 -5
- package/kits/eck_manifest.json +28 -49
- package/kits/eck_manifest.memory.json +18 -18
- package/kits/rules/01-overview.md +43 -45
- package/kits/rules/02-navigation.md +44 -53
- package/kits/rules/03-identity.md +21 -25
- package/kits/rules/04-relation.md +23 -33
- package/kits/rules/05-venue.md +24 -25
- package/kits/rules/06-channel.md +3 -3
- package/kits/schemas/_meta.json +20 -27
- package/kits/schemas/agent-config.schema.19.json +10 -6
- package/kits/schemas/providers.schema.2.json +74 -0
- package/kits/schemas/relation-config.schema.12.json +2 -2
- package/kits/schemas/role-config.schema.2.json +5 -5
- package/kits/schemas/role-registry.schema.1.json +1 -1
- package/kits/skills/ec-agent-create/SKILL.md +1 -0
- package/kits/skills/ec-service-proxy/SKILL.md +3 -0
- package/kits/skills/ec-trigger/SKILL.md +4 -4
- package/kits/skills/ec-trigger/references/examples.md +1 -1
- package/kits/templates/system-fragments/channel.md +5 -5
- package/kits/templates/system-fragments/commands.md +3 -2
- package/kits/templates/system-fragments/directory-contacts.md +10 -3
- package/kits/templates/system-fragments/identity.md +0 -1
- package/kits/templates/system-fragments/personal-assistant.md +22 -3
- package/kits/templates/system-fragments/reply.md +47 -28
- package/kits/templates/system-fragments/session.md +2 -9
- package/kits/templates/system-fragments/thread.md +5 -5
- package/package.json +17 -13
- package/kits/schemas/agent-config.schema.20.json +0 -925
- package/kits/schemas/relation-config.schema.13.json +0 -289
- package/kits/schemas/role-config.schema.3.json +0 -1038
|
@@ -1,925 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "agent-config.schema.20.json",
|
|
4
|
-
"title": "AgentConfig v20 (agents/{aid}/config.json)",
|
|
5
|
-
"description": "消息准入:内部联系人 / 外部联系人两档开关,加 allowAllContacts 总开关;陌生人档并入总开关。",
|
|
6
|
-
"x-logical-name": "agent-config",
|
|
7
|
-
"x-scope": "agent",
|
|
8
|
-
"type": "object",
|
|
9
|
-
"additionalProperties": false,
|
|
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": 20,
|
|
47
|
-
"default": 20,
|
|
48
|
-
"x-merge": "scalar",
|
|
49
|
-
"description": "配置 Schema 版本;v20 固定群聊 chatmode 为 proactive"
|
|
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
|
-
"ownerpending",
|
|
68
|
-
"bootstrapping",
|
|
69
|
-
"active"
|
|
70
|
-
],
|
|
71
|
-
"x-merge": "scalar",
|
|
72
|
-
"description": "agent 生命周期状态;缺失时按 active 处理",
|
|
73
|
-
"x-enumDescriptions": {
|
|
74
|
-
"created": "已创建,尚未进入引导流程",
|
|
75
|
-
"ownerpending": "初始名片已发布,等待协议 Owner 共识",
|
|
76
|
-
"bootstrapping": "引导中(初始化配置/身份)",
|
|
77
|
-
"active": "已激活,正常运行"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"initialization": {
|
|
81
|
-
"type": "object",
|
|
82
|
-
"x-merge": "scalar",
|
|
83
|
-
"additionalProperties": false,
|
|
84
|
-
"required": [
|
|
85
|
-
"mode",
|
|
86
|
-
"operationId"
|
|
87
|
-
],
|
|
88
|
-
"properties": {
|
|
89
|
-
"mode": {
|
|
90
|
-
"const": "supplied"
|
|
91
|
-
},
|
|
92
|
-
"operationId": {
|
|
93
|
-
"type": "string",
|
|
94
|
-
"pattern": "^init-[a-f0-9]{24}$"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"description": "Creation-service owned initialization operation"
|
|
98
|
-
},
|
|
99
|
-
"initialized": {
|
|
100
|
-
"type": "boolean",
|
|
101
|
-
"x-merge": "scalar",
|
|
102
|
-
"description": "是否已完成 Agent 初始化流程"
|
|
103
|
-
},
|
|
104
|
-
"owners": {
|
|
105
|
-
"type": "array",
|
|
106
|
-
"items": {
|
|
107
|
-
"type": "string",
|
|
108
|
-
"description": "兼容的绑定目标 AID;初次绑定前可作为 Owner 兼容来源,协议关系建立后 Owner 以 Ownership 2.1 共识为准。"
|
|
109
|
-
},
|
|
110
|
-
"uniqueItems": true,
|
|
111
|
-
"x-merge": "list",
|
|
112
|
-
"description": "兼容的 Ownership 绑定目标列表;初次绑定前可作为 Owner 兼容来源,协议关系建立后不能作为 owner 级授权依据。"
|
|
113
|
-
},
|
|
114
|
-
"owner": {
|
|
115
|
-
"type": "string",
|
|
116
|
-
"description": "本地兼容的单个 Ownership 绑定目标 AID;与 owners 合并读取,初次绑定前可作为 Owner 兼容来源",
|
|
117
|
-
"x-merge": "scalar"
|
|
118
|
-
},
|
|
119
|
-
"fullaccess": {
|
|
120
|
-
"type": "object",
|
|
121
|
-
"x-merge": "dict",
|
|
122
|
-
"additionalProperties": false,
|
|
123
|
-
"properties": {
|
|
124
|
-
"enabled": {
|
|
125
|
-
"type": "boolean",
|
|
126
|
-
"default": false,
|
|
127
|
-
"description": "允许同时属于 AgentOwner 与 daemonOwner 的直接私聊任务使用宿主级 fullaccess"
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
"description": "Agent 级宿主执行策略;已认证 EC Web 或目标 Agent 与 daemon 的双 Owner 直接 Menu 可设置,不从 defaults 或 relation 继承"
|
|
131
|
-
},
|
|
132
|
-
"access": {
|
|
133
|
-
"type": "object",
|
|
134
|
-
"x-merge": "dict",
|
|
135
|
-
"additionalProperties": false,
|
|
136
|
-
"required": [
|
|
137
|
-
"requestLimit"
|
|
138
|
-
],
|
|
139
|
-
"properties": {
|
|
140
|
-
"contactAdmission": {
|
|
141
|
-
"type": "string",
|
|
142
|
-
"enum": [
|
|
143
|
-
"legacy",
|
|
144
|
-
"app-v1"
|
|
145
|
-
],
|
|
146
|
-
"description": "联系人准入灰度:app-v1 由 Owner App 维护申请及名单,启用前须完成 App 联调;缺省保留现行流程。"
|
|
147
|
-
},
|
|
148
|
-
"allowInternalContacts": {
|
|
149
|
-
"type": "boolean",
|
|
150
|
-
"default": true,
|
|
151
|
-
"description": "Owner 名录中归属本 Owner 的主体(条目 owner_aid 等于本 Agent 的 Owner)能否联系本 Agent。"
|
|
152
|
-
},
|
|
153
|
-
"allowExternalContacts": {
|
|
154
|
-
"type": "boolean",
|
|
155
|
-
"default": false,
|
|
156
|
-
"description": "Owner 名录中归属其他 Owner 的主体(条目 owner_aid 不同于本 Agent 的 Owner,或缺失归属)能否联系本 Agent。"
|
|
157
|
-
},
|
|
158
|
-
"allowAllContacts": {
|
|
159
|
-
"type": "boolean",
|
|
160
|
-
"default": false,
|
|
161
|
-
"description": "总开关:开启后跳过 Owner 名录三档判定,内部、外部、名录外主体以及名录不可用一律放行。仍在 Agent 本地拉黑与 deniedAids 之后。Owner 与个人助理本就恒放行。群聊不按发言人判定,准入单位是整个群。"
|
|
162
|
-
},
|
|
163
|
-
"allowedAids": {
|
|
164
|
-
"type": "array",
|
|
165
|
-
"items": {
|
|
166
|
-
"type": "string",
|
|
167
|
-
"pattern": "^[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?){2,}$"
|
|
168
|
-
},
|
|
169
|
-
"uniqueItems": true,
|
|
170
|
-
"default": [],
|
|
171
|
-
"description": "白名单例外:命中者即使落在被关闭的内部或外部档也放行;不覆盖 deniedAids、Agent 本地拉黑或 Owner 身份校验。"
|
|
172
|
-
},
|
|
173
|
-
"deniedAids": {
|
|
174
|
-
"type": "array",
|
|
175
|
-
"items": {
|
|
176
|
-
"type": "string",
|
|
177
|
-
"pattern": "^[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?){2,}$"
|
|
178
|
-
},
|
|
179
|
-
"uniqueItems": true,
|
|
180
|
-
"default": [],
|
|
181
|
-
"description": "黑名单:命中者在名录允许范围内也被拒绝,优先于 allowedAids;不影响 Owner 与个人助理。"
|
|
182
|
-
},
|
|
183
|
-
"requestLimit": {
|
|
184
|
-
"type": "object",
|
|
185
|
-
"additionalProperties": false,
|
|
186
|
-
"required": [
|
|
187
|
-
"maxTimes",
|
|
188
|
-
"coolDown"
|
|
189
|
-
],
|
|
190
|
-
"properties": {
|
|
191
|
-
"maxTimes": {
|
|
192
|
-
"type": "integer",
|
|
193
|
-
"minimum": 1,
|
|
194
|
-
"maximum": 100000,
|
|
195
|
-
"description": "每个 Agent、每个渠道实例在窗口内最多发送的准入控制消息数。"
|
|
196
|
-
},
|
|
197
|
-
"coolDown": {
|
|
198
|
-
"type": "integer",
|
|
199
|
-
"minimum": 1,
|
|
200
|
-
"maximum": 86400,
|
|
201
|
-
"description": "准入控制消息限额的冷却窗口,单位秒。"
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
"description": "Agent 自身的消息准入策略;不参与 defaults 或 relation 覆盖链。出站私聊与入站使用同一判定。"
|
|
207
|
-
},
|
|
208
|
-
"channels": {
|
|
209
|
-
"type": "array",
|
|
210
|
-
"items": {
|
|
211
|
-
"type": "object",
|
|
212
|
-
"allOf": [
|
|
213
|
-
{
|
|
214
|
-
"if": {
|
|
215
|
-
"properties": {
|
|
216
|
-
"type": {
|
|
217
|
-
"const": "aun"
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
"required": [
|
|
221
|
-
"type"
|
|
222
|
-
]
|
|
223
|
-
},
|
|
224
|
-
"then": {
|
|
225
|
-
"not": {
|
|
226
|
-
"required": [
|
|
227
|
-
"gatewayUrl"
|
|
228
|
-
]
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
],
|
|
233
|
-
"description": "一个渠道实例配置;具体字段由渠道类型及其适配器定义。"
|
|
234
|
-
},
|
|
235
|
-
"x-merge": "list",
|
|
236
|
-
"description": "Agent 绑定的消息渠道实例列表"
|
|
237
|
-
},
|
|
238
|
-
"aun": {
|
|
239
|
-
"type": "object",
|
|
240
|
-
"x-merge": "dict",
|
|
241
|
-
"description": "Agent 级 AUN 通信配置",
|
|
242
|
-
"properties": {
|
|
243
|
-
"gatewayUrl": {
|
|
244
|
-
"not": {},
|
|
245
|
-
"description": "已移除;网关由 fastaun 缓存和 AID discovery 决定"
|
|
246
|
-
},
|
|
247
|
-
"defaultEncrypt": {
|
|
248
|
-
"not": {},
|
|
249
|
-
"description": "不支持在 Agent 配置;请使用 daemon.json.aun.defaultEncrypt"
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
"active_baseagent": {
|
|
254
|
-
"type": "string",
|
|
255
|
-
"x-merge": "scalar",
|
|
256
|
-
"description": "默认使用的 base agent 标识:claude/codex/gemini/ecagent"
|
|
257
|
-
},
|
|
258
|
-
"baseagents": {
|
|
259
|
-
"type": "object",
|
|
260
|
-
"x-merge": "dict",
|
|
261
|
-
"description": "按 base agent 配置模型选择(模型 / 服务商 / 推理强度 / 降级链)与运行参数;连接地址与密钥在 providers.json。",
|
|
262
|
-
"propertyNames": {
|
|
263
|
-
"enum": [
|
|
264
|
-
"claude",
|
|
265
|
-
"codex",
|
|
266
|
-
"gemini",
|
|
267
|
-
"ecagent"
|
|
268
|
-
]
|
|
269
|
-
},
|
|
270
|
-
"additionalProperties": false,
|
|
271
|
-
"properties": {
|
|
272
|
-
"claude": {
|
|
273
|
-
"type": "object",
|
|
274
|
-
"additionalProperties": false,
|
|
275
|
-
"properties": {
|
|
276
|
-
"model": {
|
|
277
|
-
"type": "string",
|
|
278
|
-
"minLength": 1,
|
|
279
|
-
"description": "该 base agent 使用的模型。"
|
|
280
|
-
},
|
|
281
|
-
"provider": {
|
|
282
|
-
"type": "string",
|
|
283
|
-
"minLength": 1,
|
|
284
|
-
"pattern": "^[A-Za-z0-9_-]+$",
|
|
285
|
-
"description": "providers.json 中的服务商 id;缺省用 base agent 自带网关。"
|
|
286
|
-
},
|
|
287
|
-
"effort": {
|
|
288
|
-
"type": "string",
|
|
289
|
-
"enum": [
|
|
290
|
-
"low",
|
|
291
|
-
"medium",
|
|
292
|
-
"high",
|
|
293
|
-
"xhigh",
|
|
294
|
-
"max"
|
|
295
|
-
],
|
|
296
|
-
"description": "推理强度。"
|
|
297
|
-
},
|
|
298
|
-
"fallback": {
|
|
299
|
-
"type": "array",
|
|
300
|
-
"maxItems": 3,
|
|
301
|
-
"description": "同 provider 服务类型的降级链;每一项都要显式写明 provider、model 和 effort。",
|
|
302
|
-
"items": {
|
|
303
|
-
"type": "object",
|
|
304
|
-
"additionalProperties": false,
|
|
305
|
-
"required": [
|
|
306
|
-
"provider",
|
|
307
|
-
"model",
|
|
308
|
-
"effort"
|
|
309
|
-
],
|
|
310
|
-
"properties": {
|
|
311
|
-
"provider": {
|
|
312
|
-
"type": "string",
|
|
313
|
-
"minLength": 1,
|
|
314
|
-
"pattern": "^[A-Za-z0-9_-]+$"
|
|
315
|
-
},
|
|
316
|
-
"model": {
|
|
317
|
-
"type": "string",
|
|
318
|
-
"minLength": 1
|
|
319
|
-
},
|
|
320
|
-
"effort": {
|
|
321
|
-
"type": "string",
|
|
322
|
-
"enum": [
|
|
323
|
-
"low",
|
|
324
|
-
"medium",
|
|
325
|
-
"high",
|
|
326
|
-
"xhigh",
|
|
327
|
-
"max"
|
|
328
|
-
]
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
"agentProgressSummaries": {
|
|
334
|
-
"type": "boolean",
|
|
335
|
-
"description": "打开 SDK 进度摘要(默认 true)。"
|
|
336
|
-
},
|
|
337
|
-
"excludeDynamicSections": {
|
|
338
|
-
"type": "boolean",
|
|
339
|
-
"description": "系统提示词去掉动态段以稳定提示缓存(默认 false)。"
|
|
340
|
-
},
|
|
341
|
-
"useSettingSources": {
|
|
342
|
-
"type": "boolean",
|
|
343
|
-
"description": "读取 project/user 两级 settings(默认 true;fullaccess 强制不读)。"
|
|
344
|
-
},
|
|
345
|
-
"pathToClaudeCodeExecutable": {
|
|
346
|
-
"type": "string",
|
|
347
|
-
"minLength": 1,
|
|
348
|
-
"description": "自定义 Claude Code 可执行文件路径。"
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
"codex": {
|
|
353
|
-
"type": "object",
|
|
354
|
-
"additionalProperties": false,
|
|
355
|
-
"properties": {
|
|
356
|
-
"model": {
|
|
357
|
-
"type": "string",
|
|
358
|
-
"minLength": 1,
|
|
359
|
-
"description": "该 base agent 使用的模型。"
|
|
360
|
-
},
|
|
361
|
-
"provider": {
|
|
362
|
-
"type": "string",
|
|
363
|
-
"minLength": 1,
|
|
364
|
-
"pattern": "^[A-Za-z0-9_-]+$",
|
|
365
|
-
"description": "providers.json 中的服务商 id;缺省用 base agent 自带网关。"
|
|
366
|
-
},
|
|
367
|
-
"effort": {
|
|
368
|
-
"type": "string",
|
|
369
|
-
"enum": [
|
|
370
|
-
"low",
|
|
371
|
-
"medium",
|
|
372
|
-
"high",
|
|
373
|
-
"xhigh",
|
|
374
|
-
"max"
|
|
375
|
-
],
|
|
376
|
-
"description": "推理强度。"
|
|
377
|
-
},
|
|
378
|
-
"fallback": {
|
|
379
|
-
"type": "array",
|
|
380
|
-
"maxItems": 3,
|
|
381
|
-
"description": "同 provider 服务类型的降级链;每一项都要显式写明 provider、model 和 effort。",
|
|
382
|
-
"items": {
|
|
383
|
-
"type": "object",
|
|
384
|
-
"additionalProperties": false,
|
|
385
|
-
"required": [
|
|
386
|
-
"provider",
|
|
387
|
-
"model",
|
|
388
|
-
"effort"
|
|
389
|
-
],
|
|
390
|
-
"properties": {
|
|
391
|
-
"provider": {
|
|
392
|
-
"type": "string",
|
|
393
|
-
"minLength": 1,
|
|
394
|
-
"pattern": "^[A-Za-z0-9_-]+$"
|
|
395
|
-
},
|
|
396
|
-
"model": {
|
|
397
|
-
"type": "string",
|
|
398
|
-
"minLength": 1
|
|
399
|
-
},
|
|
400
|
-
"effort": {
|
|
401
|
-
"type": "string",
|
|
402
|
-
"enum": [
|
|
403
|
-
"low",
|
|
404
|
-
"medium",
|
|
405
|
-
"high",
|
|
406
|
-
"xhigh",
|
|
407
|
-
"max"
|
|
408
|
-
]
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
},
|
|
413
|
-
"enableRequestUserInput": {
|
|
414
|
-
"type": "boolean",
|
|
415
|
-
"description": "Default 模式允许阻塞式 request_user_input(默认 true);不影响异步问题与审批。"
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
},
|
|
419
|
-
"gemini": {
|
|
420
|
-
"type": "object",
|
|
421
|
-
"additionalProperties": false,
|
|
422
|
-
"properties": {
|
|
423
|
-
"model": {
|
|
424
|
-
"type": "string",
|
|
425
|
-
"minLength": 1,
|
|
426
|
-
"description": "该 base agent 使用的模型。"
|
|
427
|
-
},
|
|
428
|
-
"provider": {
|
|
429
|
-
"type": "string",
|
|
430
|
-
"minLength": 1,
|
|
431
|
-
"pattern": "^[A-Za-z0-9_-]+$",
|
|
432
|
-
"description": "providers.json 中的服务商 id;缺省用 base agent 自带网关。"
|
|
433
|
-
},
|
|
434
|
-
"effort": {
|
|
435
|
-
"type": "string",
|
|
436
|
-
"enum": [
|
|
437
|
-
"low",
|
|
438
|
-
"medium",
|
|
439
|
-
"high",
|
|
440
|
-
"xhigh",
|
|
441
|
-
"max"
|
|
442
|
-
],
|
|
443
|
-
"description": "推理强度。"
|
|
444
|
-
},
|
|
445
|
-
"fallback": {
|
|
446
|
-
"type": "array",
|
|
447
|
-
"maxItems": 3,
|
|
448
|
-
"description": "同 provider 服务类型的降级链;每一项都要显式写明 provider、model 和 effort。",
|
|
449
|
-
"items": {
|
|
450
|
-
"type": "object",
|
|
451
|
-
"additionalProperties": false,
|
|
452
|
-
"required": [
|
|
453
|
-
"provider",
|
|
454
|
-
"model",
|
|
455
|
-
"effort"
|
|
456
|
-
],
|
|
457
|
-
"properties": {
|
|
458
|
-
"provider": {
|
|
459
|
-
"type": "string",
|
|
460
|
-
"minLength": 1,
|
|
461
|
-
"pattern": "^[A-Za-z0-9_-]+$"
|
|
462
|
-
},
|
|
463
|
-
"model": {
|
|
464
|
-
"type": "string",
|
|
465
|
-
"minLength": 1
|
|
466
|
-
},
|
|
467
|
-
"effort": {
|
|
468
|
-
"type": "string",
|
|
469
|
-
"enum": [
|
|
470
|
-
"low",
|
|
471
|
-
"medium",
|
|
472
|
-
"high",
|
|
473
|
-
"xhigh",
|
|
474
|
-
"max"
|
|
475
|
-
]
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
},
|
|
480
|
-
"cliPath": {
|
|
481
|
-
"type": "string",
|
|
482
|
-
"minLength": 1,
|
|
483
|
-
"description": "Gemini CLI 可执行文件路径;缺省自动探测。"
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
},
|
|
487
|
-
"ecagent": {
|
|
488
|
-
"type": "object",
|
|
489
|
-
"additionalProperties": false,
|
|
490
|
-
"properties": {
|
|
491
|
-
"model": {
|
|
492
|
-
"type": "string",
|
|
493
|
-
"minLength": 1,
|
|
494
|
-
"description": "该 base agent 使用的模型。"
|
|
495
|
-
},
|
|
496
|
-
"provider": {
|
|
497
|
-
"type": "string",
|
|
498
|
-
"minLength": 1,
|
|
499
|
-
"pattern": "^[A-Za-z0-9_-]+$",
|
|
500
|
-
"description": "providers.json 中的服务商 id;缺省用 base agent 自带网关。"
|
|
501
|
-
},
|
|
502
|
-
"effort": {
|
|
503
|
-
"type": "string",
|
|
504
|
-
"enum": [
|
|
505
|
-
"low",
|
|
506
|
-
"medium",
|
|
507
|
-
"high",
|
|
508
|
-
"xhigh",
|
|
509
|
-
"max"
|
|
510
|
-
],
|
|
511
|
-
"description": "推理强度。"
|
|
512
|
-
},
|
|
513
|
-
"fallback": {
|
|
514
|
-
"type": "array",
|
|
515
|
-
"maxItems": 3,
|
|
516
|
-
"description": "同 provider 服务类型的降级链;每一项都要显式写明 provider、model 和 effort。",
|
|
517
|
-
"items": {
|
|
518
|
-
"type": "object",
|
|
519
|
-
"additionalProperties": false,
|
|
520
|
-
"required": [
|
|
521
|
-
"provider",
|
|
522
|
-
"model",
|
|
523
|
-
"effort"
|
|
524
|
-
],
|
|
525
|
-
"properties": {
|
|
526
|
-
"provider": {
|
|
527
|
-
"type": "string",
|
|
528
|
-
"minLength": 1,
|
|
529
|
-
"pattern": "^[A-Za-z0-9_-]+$"
|
|
530
|
-
},
|
|
531
|
-
"model": {
|
|
532
|
-
"type": "string",
|
|
533
|
-
"minLength": 1
|
|
534
|
-
},
|
|
535
|
-
"effort": {
|
|
536
|
-
"type": "string",
|
|
537
|
-
"enum": [
|
|
538
|
-
"low",
|
|
539
|
-
"medium",
|
|
540
|
-
"high",
|
|
541
|
-
"xhigh",
|
|
542
|
-
"max"
|
|
543
|
-
]
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
},
|
|
548
|
-
"timeoutMs": {
|
|
549
|
-
"type": "number",
|
|
550
|
-
"minimum": 1,
|
|
551
|
-
"description": "单次网关请求超时毫秒(默认 120000)。"
|
|
552
|
-
},
|
|
553
|
-
"maxRetries": {
|
|
554
|
-
"type": "number",
|
|
555
|
-
"minimum": 0,
|
|
556
|
-
"description": "失败重试次数(默认 2;总尝试 = 重试 + 1)。"
|
|
557
|
-
},
|
|
558
|
-
"maxRetryDelayMs": {
|
|
559
|
-
"type": "number",
|
|
560
|
-
"minimum": 0,
|
|
561
|
-
"description": "重试退避上限毫秒(默认 4000)。"
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
},
|
|
567
|
-
"Services": {
|
|
568
|
-
"type": "object",
|
|
569
|
-
"description": "按用途选择 provider、模型、推理强度和降级链;用途名可扩展(如 decision)。",
|
|
570
|
-
"x-merge": "dict",
|
|
571
|
-
"propertyNames": {
|
|
572
|
-
"pattern": "^[A-Za-z0-9_-]+$"
|
|
573
|
-
},
|
|
574
|
-
"additionalProperties": {
|
|
575
|
-
"type": "object",
|
|
576
|
-
"additionalProperties": false,
|
|
577
|
-
"properties": {
|
|
578
|
-
"provider": {
|
|
579
|
-
"type": "string",
|
|
580
|
-
"minLength": 1
|
|
581
|
-
},
|
|
582
|
-
"model": {
|
|
583
|
-
"type": "string",
|
|
584
|
-
"minLength": 1
|
|
585
|
-
},
|
|
586
|
-
"effort": {
|
|
587
|
-
"type": "string",
|
|
588
|
-
"minLength": 1
|
|
589
|
-
},
|
|
590
|
-
"fallback": {
|
|
591
|
-
"type": "array",
|
|
592
|
-
"maxItems": 3,
|
|
593
|
-
"items": {
|
|
594
|
-
"type": "object",
|
|
595
|
-
"additionalProperties": false,
|
|
596
|
-
"required": [
|
|
597
|
-
"provider",
|
|
598
|
-
"model",
|
|
599
|
-
"effort"
|
|
600
|
-
],
|
|
601
|
-
"properties": {
|
|
602
|
-
"provider": {
|
|
603
|
-
"type": "string",
|
|
604
|
-
"minLength": 1,
|
|
605
|
-
"pattern": "^[A-Za-z0-9_-]+$"
|
|
606
|
-
},
|
|
607
|
-
"model": {
|
|
608
|
-
"type": "string",
|
|
609
|
-
"minLength": 1
|
|
610
|
-
},
|
|
611
|
-
"effort": {
|
|
612
|
-
"type": "string",
|
|
613
|
-
"minLength": 1
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
},
|
|
621
|
-
"projects": {
|
|
622
|
-
"type": "object",
|
|
623
|
-
"x-merge": "dict",
|
|
624
|
-
"description": "Agent 可用项目路径和项目选择配置"
|
|
625
|
-
},
|
|
626
|
-
"capabilities": {
|
|
627
|
-
"type": "object",
|
|
628
|
-
"x-merge": "dict",
|
|
629
|
-
"description": "Agent 能力开关及能力参数"
|
|
630
|
-
},
|
|
631
|
-
"ability": {
|
|
632
|
-
"type": "object",
|
|
633
|
-
"x-merge": "dict",
|
|
634
|
-
"additionalProperties": false,
|
|
635
|
-
"properties": {
|
|
636
|
-
"codeApproval": {
|
|
637
|
-
"type": "object",
|
|
638
|
-
"x-merge": "dict",
|
|
639
|
-
"additionalProperties": false,
|
|
640
|
-
"properties": {
|
|
641
|
-
"enabled": {
|
|
642
|
-
"type": "boolean",
|
|
643
|
-
"default": true,
|
|
644
|
-
"description": "Whether the target Agent Owner may submit trusted ability code approval requests; defaults to enabled"
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
},
|
|
649
|
-
"description": "Agent ability plugin management policy"
|
|
650
|
-
},
|
|
651
|
-
"baseagentSkills": {
|
|
652
|
-
"type": "boolean",
|
|
653
|
-
"x-merge": "scalar",
|
|
654
|
-
"default": false,
|
|
655
|
-
"description": "开放基座 agent 自带的 skill 功能(Claude Skill 工具、Codex skills);默认 false 关闭,对所有基座统一生效。不影响 EC 技能(ec skill)"
|
|
656
|
-
},
|
|
657
|
-
"readonlySourceDiagnostics": {
|
|
658
|
-
"type": "boolean",
|
|
659
|
-
"x-merge": "scalar",
|
|
660
|
-
"default": false,
|
|
661
|
-
"description": "允许只读会话在显式源码目录内执行受限、可证明只读的诊断查询"
|
|
662
|
-
},
|
|
663
|
-
"observable": {
|
|
664
|
-
"type": "boolean",
|
|
665
|
-
"default": true,
|
|
666
|
-
"x-merge": "scalar",
|
|
667
|
-
"description": "是否将 Agent 的入站和出站消息转发给 owners;默认开启"
|
|
668
|
-
},
|
|
669
|
-
"chatmode": {
|
|
670
|
-
"type": "object",
|
|
671
|
-
"x-merge": "dict",
|
|
672
|
-
"default": {
|
|
673
|
-
"private": "interactive",
|
|
674
|
-
"group": "proactive",
|
|
675
|
-
"nothuman": "proactive"
|
|
676
|
-
},
|
|
677
|
-
"properties": {
|
|
678
|
-
"private": {
|
|
679
|
-
"enum": [
|
|
680
|
-
"interactive",
|
|
681
|
-
"proactive",
|
|
682
|
-
"paactive"
|
|
683
|
-
],
|
|
684
|
-
"description": "人类私聊场景的投递方式",
|
|
685
|
-
"x-enumDescriptions": {
|
|
686
|
-
"interactive": "同步交互:输出即回复",
|
|
687
|
-
"proactive": "主动推送:CLI 回复 + 思考投影",
|
|
688
|
-
"paactive": "PA 模式:文本作为 activity,正式回复使用 CLI"
|
|
689
|
-
}
|
|
690
|
-
},
|
|
691
|
-
"group": {
|
|
692
|
-
"enum": [
|
|
693
|
-
"proactive"
|
|
694
|
-
],
|
|
695
|
-
"description": "群聊固定使用 proactive 投递方式",
|
|
696
|
-
"x-enumDescriptions": {
|
|
697
|
-
"proactive": "主动推送:CLI 回复 + 思考投影"
|
|
698
|
-
}
|
|
699
|
-
},
|
|
700
|
-
"nothuman": {
|
|
701
|
-
"enum": [
|
|
702
|
-
"interactive",
|
|
703
|
-
"proactive"
|
|
704
|
-
],
|
|
705
|
-
"description": "非人类(agent)私聊场景的投递方式",
|
|
706
|
-
"x-enumDescriptions": {
|
|
707
|
-
"interactive": "同步交互:输出即回复",
|
|
708
|
-
"proactive": "主动推送:CLI 回复 + 思考投影"
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
},
|
|
712
|
-
"additionalProperties": false,
|
|
713
|
-
"description": "场景投递表:私聊支持 interactive/proactive/paactive;paactive 仅在 active AUN 人类 Owner 私聊生效;群聊及非人类私聊固定 proactive。"
|
|
714
|
-
},
|
|
715
|
-
"mentionMode": {
|
|
716
|
-
"type": "string",
|
|
717
|
-
"enum": [
|
|
718
|
-
"disabled",
|
|
719
|
-
"mention-only",
|
|
720
|
-
"auto"
|
|
721
|
-
],
|
|
722
|
-
"default": "disabled",
|
|
723
|
-
"x-merge": "scalar",
|
|
724
|
-
"description": "@ 处理策略(顶层通用参数)",
|
|
725
|
-
"x-enumDescriptions": {
|
|
726
|
-
"disabled": "处理所有消息",
|
|
727
|
-
"mention-only": "只处理被 @ 的消息,未 @ 作引用上下文"
|
|
728
|
-
}
|
|
729
|
-
},
|
|
730
|
-
"autoMentionQuietWindowMs": {
|
|
731
|
-
"type": "number",
|
|
732
|
-
"minimum": 0,
|
|
733
|
-
"default": 3000,
|
|
734
|
-
"x-merge": "scalar",
|
|
735
|
-
"description": "群聊 auto 注意力分类的静默等待窗口,单位为毫秒;默认 3000"
|
|
736
|
-
},
|
|
737
|
-
"groupSlashRequireMentions": {
|
|
738
|
-
"type": "boolean",
|
|
739
|
-
"default": true,
|
|
740
|
-
"x-merge": "scalar",
|
|
741
|
-
"description": "AUN 群聊 slash 命令是否必须携带结构化 mentions;默认必须"
|
|
742
|
-
},
|
|
743
|
-
"responseMode": {
|
|
744
|
-
"type": "string",
|
|
745
|
-
"x-merge": "scalar",
|
|
746
|
-
"description": "响应模式 id(标量);候选清单/默认值来自注册表,非 schema。关系级>agent级>注册表首选"
|
|
747
|
-
},
|
|
748
|
-
"responseModeParams": {
|
|
749
|
-
"type": "object",
|
|
750
|
-
"x-merge": "dict",
|
|
751
|
-
"description": "响应模式特有参数字典,按模式 id 分桶:{ [modeId]: {...} }"
|
|
752
|
-
},
|
|
753
|
-
"flush_delay": {
|
|
754
|
-
"type": "number",
|
|
755
|
-
"minimum": 0,
|
|
756
|
-
"default": 3,
|
|
757
|
-
"x-merge": "scalar",
|
|
758
|
-
"description": "流式出站消息的批量刷新间隔,单位为秒;默认 3 秒"
|
|
759
|
-
},
|
|
760
|
-
"debounce": {
|
|
761
|
-
"type": "number",
|
|
762
|
-
"minimum": 0,
|
|
763
|
-
"default": 0,
|
|
764
|
-
"x-merge": "scalar",
|
|
765
|
-
"description": "入站消息合并窗口,单位为秒;0 表示不合并,默认 0"
|
|
766
|
-
},
|
|
767
|
-
"show_activities": {
|
|
768
|
-
"type": "string",
|
|
769
|
-
"enum": [
|
|
770
|
-
"all",
|
|
771
|
-
"text",
|
|
772
|
-
"none"
|
|
773
|
-
],
|
|
774
|
-
"default": "all",
|
|
775
|
-
"x-merge": "scalar",
|
|
776
|
-
"description": "中间输出展示范围(interactive/paactive 私聊);paactive 的文本投影为 activity。",
|
|
777
|
-
"x-enumDescriptions": {
|
|
778
|
-
"all": "文本 + activity",
|
|
779
|
-
"text": "仅文本",
|
|
780
|
-
"none": "全部静默"
|
|
781
|
-
}
|
|
782
|
-
},
|
|
783
|
-
"session_renew": {
|
|
784
|
-
"type": "object",
|
|
785
|
-
"x-merge": "dict",
|
|
786
|
-
"additionalProperties": false,
|
|
787
|
-
"description": "会话超时后的续接判定",
|
|
788
|
-
"properties": {
|
|
789
|
-
"enabled": {
|
|
790
|
-
"type": "boolean",
|
|
791
|
-
"default": false,
|
|
792
|
-
"description": "是否启用超时后的会话连续性判定"
|
|
793
|
-
},
|
|
794
|
-
"after_hours": {
|
|
795
|
-
"type": "number",
|
|
796
|
-
"exclusiveMinimum": 0,
|
|
797
|
-
"default": 24,
|
|
798
|
-
"description": "距最后一条有效对话超过该小时数才触发判定"
|
|
799
|
-
},
|
|
800
|
-
"fallback_action": {
|
|
801
|
-
"type": "string",
|
|
802
|
-
"enum": [
|
|
803
|
-
"continue",
|
|
804
|
-
"new"
|
|
805
|
-
],
|
|
806
|
-
"default": "continue",
|
|
807
|
-
"description": "无法判定时的兜底动作",
|
|
808
|
-
"x-enumDescriptions": {
|
|
809
|
-
"continue": "继续沿用当前会话",
|
|
810
|
-
"new": "开启新会话"
|
|
811
|
-
}
|
|
812
|
-
},
|
|
813
|
-
"new_probability_threshold": {
|
|
814
|
-
"type": "number",
|
|
815
|
-
"minimum": 0,
|
|
816
|
-
"maximum": 1,
|
|
817
|
-
"default": 0.85,
|
|
818
|
-
"description": "noul 达到该概率后开启新会话"
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
},
|
|
822
|
-
"group_venue_sync": {
|
|
823
|
-
"type": "object",
|
|
824
|
-
"x-merge": "dict",
|
|
825
|
-
"description": "AUN 群资源同步配置;控制规则文件路径、资源索引路径、条目/字节限制及刷新间隔。"
|
|
826
|
-
},
|
|
827
|
-
"groupRules": {
|
|
828
|
-
"type": "object",
|
|
829
|
-
"x-merge": "dict",
|
|
830
|
-
"additionalProperties": false,
|
|
831
|
-
"properties": {
|
|
832
|
-
"mode": {
|
|
833
|
-
"type": "string",
|
|
834
|
-
"enum": [
|
|
835
|
-
"load",
|
|
836
|
-
"ignore"
|
|
837
|
-
],
|
|
838
|
-
"default": "load",
|
|
839
|
-
"description": "是否读取并注入 AUN 群已发布的 /rules.md;默认 load。"
|
|
840
|
-
}
|
|
841
|
-
},
|
|
842
|
-
"description": "本 Agent 对 AUN 群规则的本地加载策略。"
|
|
843
|
-
},
|
|
844
|
-
"render": {
|
|
845
|
-
"type": "object",
|
|
846
|
-
"x-merge": "dict",
|
|
847
|
-
"description": "私聊、群聊及注入内容使用的渲染器标识配置。"
|
|
848
|
-
},
|
|
849
|
-
"sessionManifests": {
|
|
850
|
-
"type": "object",
|
|
851
|
-
"x-merge": "dict",
|
|
852
|
-
"description": "会话类型到 manifest 文件的映射,用于选择对应的系统提示词清单。"
|
|
853
|
-
},
|
|
854
|
-
"enable_rich_content": {
|
|
855
|
-
"type": "boolean",
|
|
856
|
-
"x-merge": "scalar",
|
|
857
|
-
"description": "是否允许渠道使用富内容消息;未设置时由渠道能力和运行时默认决定"
|
|
858
|
-
},
|
|
859
|
-
"extra_backup": {
|
|
860
|
-
"type": "array",
|
|
861
|
-
"items": {
|
|
862
|
-
"type": "object",
|
|
863
|
-
"description": "一个额外备份规则,包含相对 path 和可选的文件匹配 pattern。"
|
|
864
|
-
},
|
|
865
|
-
"x-merge": "list",
|
|
866
|
-
"description": "配置快照需要额外包含的文件声明;不得指向 .env。"
|
|
867
|
-
},
|
|
868
|
-
"memory": {
|
|
869
|
-
"type": "object",
|
|
870
|
-
"x-merge": "dict",
|
|
871
|
-
"additionalProperties": false,
|
|
872
|
-
"description": "记忆系统配置。enableRelation 是总开关(relation 是所有记忆的唯一出生地);它在关系层使用 x-merge-logic: AND 语义,任意层为 false 则关闭。",
|
|
873
|
-
"properties": {
|
|
874
|
-
"enableRelation": {
|
|
875
|
-
"type": "boolean",
|
|
876
|
-
"x-merge-logic": "AND",
|
|
877
|
-
"description": "启用 relation 作用域记忆。默认 true。这是总开关:关闭后 agent 级与 owner 级记忆也无从产生,note 写入、索引注入、五种整理模式的触发器与手动调用一并停用。relation 层可用此字段做 AND 合并(任意层为 false 则关闭)。"
|
|
878
|
-
},
|
|
879
|
-
"enableAgent": {
|
|
880
|
-
"type": "boolean",
|
|
881
|
-
"description": "启用 agent 作用域记忆(泛化模式的产出)。默认 true。"
|
|
882
|
-
},
|
|
883
|
-
"enableOwner": {
|
|
884
|
-
"type": "boolean",
|
|
885
|
-
"description": "启用 owner 作用域记忆(提升模式的产出)。默认 true。"
|
|
886
|
-
},
|
|
887
|
-
"idleHours": {
|
|
888
|
-
"type": "number",
|
|
889
|
-
"description": "关系空闲时长(小时):一个关系最后一次活动(入站、写 note)后这么久没有新活动,触发该关系的整理链,只跑候选攒够 minBatchItems 的步骤。默认 1。"
|
|
890
|
-
},
|
|
891
|
-
"maxUnconsolidatedHours": {
|
|
892
|
-
"type": "number",
|
|
893
|
-
"description": "关系兜底整理时长(小时):一个关系最早一次未整理的活动满这么久,即使仍在聊也触发整理链,有 1 条候选就跑。默认 8。"
|
|
894
|
-
},
|
|
895
|
-
"minBatchItems": {
|
|
896
|
-
"type": "number",
|
|
897
|
-
"minimum": 1,
|
|
898
|
-
"description": "空闲到期时一步至少攒够多少条候选才跑(note 条数 / to-generalize 条数 / to-promote 条数),不够的留给兜底。默认 3。"
|
|
899
|
-
},
|
|
900
|
-
"checkIntervalHours": {
|
|
901
|
-
"type": "number",
|
|
902
|
-
"description": "定时触发器检查间隔(小时)。默认 1。"
|
|
903
|
-
},
|
|
904
|
-
"backlogHours": {
|
|
905
|
-
"type": "number",
|
|
906
|
-
"description": "已废弃,不再生效(pending 由关系空闲 / 兜底计时覆盖)。保留只为旧配置文件仍能通过校验。"
|
|
907
|
-
},
|
|
908
|
-
"indexMaxBytes": {
|
|
909
|
-
"type": "number",
|
|
910
|
-
"description": "MEMORY.md 索引大小上限(字节)。默认 5120(5KB)。"
|
|
911
|
-
},
|
|
912
|
-
"forgetAfterDays": {
|
|
913
|
-
"type": "number",
|
|
914
|
-
"minimum": 1,
|
|
915
|
-
"maximum": 7,
|
|
916
|
-
"description": "普通记忆多久(天)未更新即进入遗忘候选。默认 3,允许 1-7。打了 long-term 的记忆固定 30 天,不受此值影响。"
|
|
917
|
-
},
|
|
918
|
-
"profileRegenDays": {
|
|
919
|
-
"type": "number",
|
|
920
|
-
"description": "间隔多久(天)重新生成一次画像。默认 3。"
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
}
|