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