evolcore 0.0.48 → 0.0.50

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