evolcore 0.0.28 → 0.0.29
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 +12 -0
- package/bin/ec-safe-output.js +270 -54
- package/dist/agents/baseagent-availability.js +37 -1
- package/dist/agents/baseagent.js +19 -9
- package/dist/agents/claude-runner.js +171 -13
- package/dist/agents/codex/app-server-client.js +6 -2
- package/dist/agents/codex/diagnostics.js +4 -3
- package/dist/agents/codex-runner.js +396 -95
- package/dist/agents/gemini-runner.js +35 -17
- package/dist/aun/group/history.js +130 -90
- package/dist/aun/group/operations.js +1 -3
- package/dist/aun/menu/transport.js +5 -3
- package/dist/aun/msg/managed-operation.js +70 -0
- package/dist/aun/msg/p2p.js +1 -3
- package/dist/aun/msg/upload.js +2 -2
- package/dist/aun/outbox.js +1 -37
- package/dist/channels/aun.js +249 -89
- package/dist/channels/daemon.js +18 -1
- package/dist/channels/feishu.js +1 -2
- package/dist/cli/agent-command.js +23 -3
- package/dist/cli/agent-create.js +68 -2
- package/dist/cli/agent.js +12 -2
- package/dist/cli/aun-commands.js +87 -13
- package/dist/cli/cli-argv.js +26 -0
- package/dist/cli/daemon-commands.js +40 -10
- package/dist/cli/data-command.js +4 -4
- package/dist/cli/handoff-command.js +2 -0
- package/dist/cli/index.js +18 -1
- package/dist/cli/managed-command-guard.js +10 -0
- package/dist/cli/memory-command.js +441 -0
- package/dist/cli/restart-monitor.js +62 -6
- package/dist/cli/skill-command.js +41 -0
- package/dist/cli/task-context.js +2 -23
- package/dist/cli/trigger-command.js +9 -1
- package/dist/cli/watch-msg-diag.js +209 -0
- package/dist/config/config-field-policy.js +52 -3
- package/dist/config/config-manager.js +17 -4
- package/dist/config/contact-book-store.js +2 -2
- package/dist/config/mention-mode.js +7 -2
- package/dist/config/merge.js +28 -9
- package/dist/config/resolved-config-op.js +1 -1
- package/dist/config/runtime-env.js +137 -0
- package/dist/config/schema-registry.js +11 -1
- package/dist/config-store.js +10 -10
- package/dist/core/audit/event-key.js +3 -1
- package/dist/core/audit/log-integrity.js +4 -0
- package/dist/core/auth/agent-delegation.js +2 -1
- package/dist/core/auth/auth-gateway.js +13 -6
- package/dist/core/auth/authorization-audit.js +54 -19
- package/dist/core/auth/operation-authorizer.js +17 -0
- package/dist/core/auth/operation-catalog.js +9 -0
- package/dist/core/causation/context.js +5 -1
- package/dist/core/command/agent-control.js +1 -2
- package/dist/core/command/command-handler.js +51 -23
- package/dist/core/command/memory-slash.js +270 -0
- package/dist/core/command/menu-catalog.js +1 -0
- package/dist/core/command/menu-handler.js +315 -60
- package/dist/core/command/menu-protocol.js +42 -4
- package/dist/core/command/slash-gate.js +10 -10
- package/dist/core/command/slash-handler.js +206 -64
- package/dist/core/data-migration.js +282 -505
- package/dist/core/event-catalog.js +26 -0
- package/dist/core/evolagent-registry.js +6 -0
- package/dist/core/evolagent.js +0 -10
- package/dist/core/handoff/store.js +1 -20
- package/dist/core/inference/text-inference.js +57 -1
- package/dist/core/memory/consolidation-context.js +505 -0
- package/dist/core/memory/consolidation-ops-records.js +124 -0
- package/dist/core/memory/consolidation-trigger.js +394 -0
- package/dist/core/memory/index-manager.js +308 -0
- package/dist/core/memory/launch-consolidation.js +395 -0
- package/dist/core/memory/memory-admin.js +234 -0
- package/dist/core/memory/memory-document.js +100 -0
- package/dist/core/memory/memory-session-policy.js +41 -0
- package/dist/core/memory/memory-signature.js +257 -0
- package/dist/core/memory/memory-writer.js +432 -0
- package/dist/core/memory/staleness.js +117 -0
- package/dist/core/message/auto-mention-gate.js +454 -0
- package/dist/core/message/im-renderer.js +69 -16
- package/dist/core/message/message-bridge.js +287 -21
- package/dist/core/message/message-log.js +1 -0
- package/dist/core/message/message-queue.js +114 -27
- package/dist/core/message/pending-hints.js +329 -161
- package/dist/core/message/response-engine.js +567 -80
- package/dist/core/permission/ec-command-parser.js +1029 -80
- package/dist/core/permission/protected-paths.js +376 -126
- package/dist/core/permission/sandbox-runtime.js +40 -12
- package/dist/core/permission/tool-error-code.js +96 -13
- package/dist/core/permission/tool-policy.js +276 -23
- package/dist/core/role/runtime-policy.js +3 -7
- package/dist/core/session/{runner-task-history.js → runner-event-summary.js} +1 -1
- package/dist/core/session/session-fs-store.js +0 -76
- package/dist/core/session/session-idle-monitor.js +355 -0
- package/dist/core/session/session-manager.js +478 -17
- package/dist/core/session/session-mapper.js +33 -16
- package/dist/core/session/session-renew.js +217 -155
- package/dist/core/session/{session-turns.js → session-transcript.js} +35 -6
- package/dist/core/skill/global-watcher.js +282 -0
- package/dist/core/skill/index-generator.js +84 -0
- package/dist/core/skill/startup.js +73 -0
- package/dist/core/skill/switch-resolver.js +115 -0
- package/dist/core/task/task-activity-store.js +219 -0
- package/dist/eck/kit-renderer.js +30 -3
- package/dist/eck/manifest-engine.js +26 -4
- package/dist/index.js +708 -18
- package/dist/ipc.js +564 -2
- package/dist/paths.js +30 -9
- package/dist/response-system/engines/v1/proactive-flow.js +116 -15
- package/dist/response-system/modes/single-session/index.js +3 -0
- package/dist/trigger/feedback.js +1 -0
- package/dist/trigger/manager.js +0 -10
- package/dist/trigger/scheduler.js +11 -0
- package/dist/trigger/validation.js +22 -0
- package/dist/utils/avatar-upload.js +59 -18
- package/dist/utils/error-dict.json +6 -3
- package/dist/utils/error-utils.js +27 -0
- package/dist/utils/logger.js +32 -10
- package/dist/utils/media-cache.js +84 -0
- package/dist/utils/msg-diag.js +97 -0
- package/dist/utils/welcome.js +37 -8
- package/kits/docs/AUTHORING.md +314 -0
- package/kits/docs/GUIDE.md +2 -0
- package/kits/docs/INDEX.md +2 -0
- package/kits/docs/aun/CHEATSHEET.md +4 -0
- package/kits/docs/aun/SDK.md +60 -0
- package/kits/docs/context-assembly.md +10 -6
- package/kits/docs/evolcore/INDEX.md +17 -3
- package/kits/docs/evolcore/agent-create.md +24 -0
- package/kits/docs/evolcore/agent.md +5 -2
- package/kits/docs/evolcore/config.md +1 -1
- package/kits/docs/evolcore/ec-capabilities.md +364 -0
- package/kits/docs/evolcore/group.md +34 -18
- package/kits/docs/evolcore/memory-architecture.md +78 -0
- package/kits/docs/evolcore/memory-consolidation-batches.md +133 -0
- package/kits/docs/evolcore/memory-consolidation.md +263 -0
- package/kits/docs/evolcore/memory-tags.md +63 -0
- package/kits/docs/evolcore/memory.md +110 -0
- package/kits/docs/evolcore/menu-client.md +27 -11
- package/kits/{schemas → docs/evolcore}/menu-exec-schema-commands.md +12 -6
- package/kits/docs/evolcore/menu-protocol.md +213 -0
- package/kits/docs/evolcore/msg.md +2 -0
- package/kits/docs/evolcore/trigger.md +7 -5
- package/kits/docs/path-registry.md +6 -8
- package/kits/docs/prompt-loading-architecture.md +5 -3
- package/kits/docs/venues/group.md +5 -4
- package/kits/eck_manifest.json +294 -88
- package/kits/eck_manifest.memory.json +257 -0
- package/kits/rules/03-identity.md +8 -8
- package/kits/rules/05-venue.md +4 -2
- package/kits/rules/06-channel.md +1 -1
- package/kits/schemas/_meta.json +276 -47
- package/kits/schemas/agent-config.schema.12.json +38 -2
- package/kits/schemas/agent-config.schema.13.json +591 -0
- package/kits/schemas/daemon.schema.6.json +9 -9
- package/kits/schemas/defaults.schema.5.json +29 -0
- package/kits/schemas/relation-config.schema.8.json +14 -1
- package/kits/schemas/relation-config.schema.9.json +129 -0
- package/kits/schemas/role-config.schema.1.json +3 -3
- package/kits/skills/.switches.json +3 -0
- package/kits/skills/ec-skill/SKILL.md +217 -0
- package/kits/skills/ec-skill/scripts/cli.mjs +128 -0
- package/kits/skills/ec-skill/scripts/deps.mjs +107 -0
- package/kits/skills/ec-skill/scripts/frontmatter.mjs +104 -0
- package/kits/skills/ec-skill/scripts/skill.mjs +629 -0
- package/kits/skills/ec-skill/scripts/template/SKILL.md.tmpl +30 -0
- package/kits/templates/decision/auto-mention.md +25 -0
- package/kits/templates/decision/session-renew.md +22 -0
- package/kits/templates/memory-consolidation/forget.md +104 -0
- package/kits/templates/memory-consolidation/generalize.md +76 -0
- package/kits/templates/memory-consolidation/notes.md +133 -0
- package/kits/templates/memory-consolidation/profile.md +58 -0
- package/kits/templates/memory-consolidation/promote.md +72 -0
- package/kits/templates/memory-consolidation/workflow.md +75 -0
- package/kits/templates/system-fragments/bootstrap.md +14 -5
- package/kits/templates/system-fragments/commands.md +1 -0
- package/kits/templates/system-fragments/group-history.md +6 -0
- package/kits/templates/system-fragments/identity.md +0 -3
- package/kits/templates/system-fragments/memory.md +79 -0
- package/kits/templates/system-fragments/reply.md +1 -0
- package/kits/templates/system-fragments/venue.md +1 -1
- package/package.json +4 -6
- package/dist/trigger/legacy-session-history.js +0 -19
- package/kits/templates/system-fragments/group-unread-history.md +0 -7
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"description": "允许同时属于 AgentOwner 与 daemonOwner 的直接私聊任务使用宿主级 fullaccess"
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
|
-
"description": "Agent 级宿主执行策略;仅 EC Web
|
|
115
|
+
"description": "Agent 级宿主执行策略;仅 EC Web 可设置,不从 defaults 或 relation 继承"
|
|
116
116
|
},
|
|
117
117
|
"access": {
|
|
118
118
|
"type": "object",
|
|
@@ -190,6 +190,27 @@
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
|
+
"decision_model": {
|
|
194
|
+
"type": "object",
|
|
195
|
+
"description": "Session Renew 和群聊 auto 注意力分类使用的 Decision Model 配置;base_url 为完整请求地址,运行时直接 POST。",
|
|
196
|
+
"x-merge": "dict",
|
|
197
|
+
"additionalProperties": false,
|
|
198
|
+
"properties": {
|
|
199
|
+
"model": { "type": "string", "minLength": 1 },
|
|
200
|
+
"base_url": { "type": "string", "minLength": 1 },
|
|
201
|
+
"apikey": { "type": "string", "minLength": 1 },
|
|
202
|
+
"headers": {
|
|
203
|
+
"type": "object",
|
|
204
|
+
"propertyNames": { "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$" },
|
|
205
|
+
"additionalProperties": { "type": "string", "pattern": "^[^\\u0000\\r\\n]*$" }
|
|
206
|
+
},
|
|
207
|
+
"queryParams": {
|
|
208
|
+
"type": "object",
|
|
209
|
+
"propertyNames": { "minLength": 1 },
|
|
210
|
+
"additionalProperties": { "type": "string" }
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
193
214
|
"models": {
|
|
194
215
|
"type": "object",
|
|
195
216
|
"x-merge": "dict",
|
|
@@ -308,7 +329,8 @@
|
|
|
308
329
|
"type": "string",
|
|
309
330
|
"enum": [
|
|
310
331
|
"disabled",
|
|
311
|
-
"mention-only"
|
|
332
|
+
"mention-only",
|
|
333
|
+
"auto"
|
|
312
334
|
],
|
|
313
335
|
"default": "disabled",
|
|
314
336
|
"x-merge": "scalar",
|
|
@@ -318,6 +340,13 @@
|
|
|
318
340
|
"mention-only": "只处理被 @ 的消息,未 @ 作引用上下文"
|
|
319
341
|
}
|
|
320
342
|
},
|
|
343
|
+
"autoMentionQuietWindowMs": {
|
|
344
|
+
"type": "number",
|
|
345
|
+
"minimum": 0,
|
|
346
|
+
"default": 3000,
|
|
347
|
+
"x-merge": "scalar",
|
|
348
|
+
"description": "群聊 auto 注意力分类的静默等待窗口,单位为毫秒;默认 3000"
|
|
349
|
+
},
|
|
321
350
|
"groupSlashRequireMentions": {
|
|
322
351
|
"type": "boolean",
|
|
323
352
|
"default": true,
|
|
@@ -398,6 +427,13 @@
|
|
|
398
427
|
"continue": "继续沿用当前会话",
|
|
399
428
|
"new": "开启新会话"
|
|
400
429
|
}
|
|
430
|
+
},
|
|
431
|
+
"new_probability_threshold": {
|
|
432
|
+
"type": "number",
|
|
433
|
+
"minimum": 0,
|
|
434
|
+
"maximum": 1,
|
|
435
|
+
"default": 0.85,
|
|
436
|
+
"description": "noul 达到该概率后开启新会话"
|
|
401
437
|
}
|
|
402
438
|
}
|
|
403
439
|
},
|
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "agent-config.schema.13.json",
|
|
4
|
+
"title": "AgentConfig v13 (agents/{aid}/config.json)",
|
|
5
|
+
"description": "Agent v12 主配置。备用模型链只允许在 defaults.json 定义。",
|
|
6
|
+
"x-logical-name": "agent-config",
|
|
7
|
+
"x-scope": "agent",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": true,
|
|
10
|
+
"not": {
|
|
11
|
+
"description": "禁止旧权限字段和已迁移到 relation role 的 admins。",
|
|
12
|
+
"anyOf": [
|
|
13
|
+
{
|
|
14
|
+
"description": "禁止旧版顶层 permissionMode;权限模式由独立角色策略决定。",
|
|
15
|
+
"required": [
|
|
16
|
+
"permissionMode"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"description": "禁止旧版内嵌 roles;角色定义和默认角色已迁移到独立 roles/ 配置域。",
|
|
21
|
+
"required": [
|
|
22
|
+
"roles"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"description": "admin 关系身份由 AUN 私聊 relation role 管理。",
|
|
27
|
+
"required": [
|
|
28
|
+
"admins"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"description": "debug 是 daemon 进程级配置,不进入 Agent 覆盖链。",
|
|
33
|
+
"required": [
|
|
34
|
+
"debug"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"required": [
|
|
40
|
+
"aid",
|
|
41
|
+
"channels"
|
|
42
|
+
],
|
|
43
|
+
"properties": {
|
|
44
|
+
"$schema_version": {
|
|
45
|
+
"type": "number",
|
|
46
|
+
"const": 13,
|
|
47
|
+
"default": 13,
|
|
48
|
+
"x-merge": "scalar",
|
|
49
|
+
"description": "配置 Schema 版本;v13 添加 memory.enableRelation AND 合并语义及子字段递归感知"
|
|
50
|
+
},
|
|
51
|
+
"aid": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"x-merge": "scalar",
|
|
54
|
+
"description": "Agent 的全局唯一身份标识"
|
|
55
|
+
},
|
|
56
|
+
"enabled": {
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"default": true,
|
|
59
|
+
"x-merge": "scalar",
|
|
60
|
+
"description": "是否启用 Agent;缺省按启用处理"
|
|
61
|
+
},
|
|
62
|
+
"lifecycle": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"default": "active",
|
|
65
|
+
"enum": [
|
|
66
|
+
"created",
|
|
67
|
+
"bootstrapping",
|
|
68
|
+
"active"
|
|
69
|
+
],
|
|
70
|
+
"x-merge": "scalar",
|
|
71
|
+
"description": "agent 生命周期状态;缺失时按 active 处理",
|
|
72
|
+
"x-enumDescriptions": {
|
|
73
|
+
"created": "已创建,尚未进入引导流程",
|
|
74
|
+
"bootstrapping": "引导中(初始化配置/身份)",
|
|
75
|
+
"active": "已激活,正常运行"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"initialization": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"x-merge": "scalar",
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"required": [
|
|
83
|
+
"mode",
|
|
84
|
+
"operationId"
|
|
85
|
+
],
|
|
86
|
+
"properties": {
|
|
87
|
+
"mode": {
|
|
88
|
+
"const": "supplied"
|
|
89
|
+
},
|
|
90
|
+
"operationId": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"pattern": "^init-[a-f0-9]{24}$"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"description": "Creation-service owned initialization operation"
|
|
96
|
+
},
|
|
97
|
+
"initialized": {
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"x-merge": "scalar",
|
|
100
|
+
"description": "是否已完成 Agent 初始化流程"
|
|
101
|
+
},
|
|
102
|
+
"owners": {
|
|
103
|
+
"type": "array",
|
|
104
|
+
"items": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"description": "一个 Agent owner 的身份标识,通常为 AID。"
|
|
107
|
+
},
|
|
108
|
+
"uniqueItems": true,
|
|
109
|
+
"x-merge": "list",
|
|
110
|
+
"description": "Agent 所有者身份列表;用于 owner 级控制和通知"
|
|
111
|
+
},
|
|
112
|
+
"fullaccess": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"x-merge": "dict",
|
|
115
|
+
"additionalProperties": false,
|
|
116
|
+
"properties": {
|
|
117
|
+
"enabled": {
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"default": false,
|
|
120
|
+
"description": "允许同时属于 AgentOwner 与 daemonOwner 的直接私聊任务使用宿主级 fullaccess"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"description": "Agent 级宿主执行策略;仅 EC Web 可设置,不从 defaults 或 relation 继承"
|
|
124
|
+
},
|
|
125
|
+
"access": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"x-merge": "dict",
|
|
128
|
+
"additionalProperties": false,
|
|
129
|
+
"required": [
|
|
130
|
+
"policyMode",
|
|
131
|
+
"requestLimit"
|
|
132
|
+
],
|
|
133
|
+
"properties": {
|
|
134
|
+
"policyMode": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"enum": [
|
|
137
|
+
"open",
|
|
138
|
+
"contacts",
|
|
139
|
+
"owners"
|
|
140
|
+
],
|
|
141
|
+
"description": "私聊和群聊准入策略:开放、仅联系人或仅 Owner。"
|
|
142
|
+
},
|
|
143
|
+
"requestLimit": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"additionalProperties": false,
|
|
146
|
+
"required": [
|
|
147
|
+
"maxTimes",
|
|
148
|
+
"coolDown"
|
|
149
|
+
],
|
|
150
|
+
"properties": {
|
|
151
|
+
"maxTimes": {
|
|
152
|
+
"type": "integer",
|
|
153
|
+
"minimum": 1,
|
|
154
|
+
"maximum": 100000,
|
|
155
|
+
"description": "每个 Agent、每个渠道实例在窗口内最多发送的准入控制消息数。"
|
|
156
|
+
},
|
|
157
|
+
"coolDown": {
|
|
158
|
+
"type": "integer",
|
|
159
|
+
"minimum": 1,
|
|
160
|
+
"maximum": 86400,
|
|
161
|
+
"description": "准入控制消息限额的冷却窗口,单位秒。"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"description": "Agent 自身的消息准入策略;不参与 defaults 或 relation 覆盖链。"
|
|
167
|
+
},
|
|
168
|
+
"channels": {
|
|
169
|
+
"type": "array",
|
|
170
|
+
"items": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"allOf": [
|
|
173
|
+
{
|
|
174
|
+
"if": {
|
|
175
|
+
"properties": {
|
|
176
|
+
"type": {
|
|
177
|
+
"const": "aun"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"required": [
|
|
181
|
+
"type"
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
"then": {
|
|
185
|
+
"not": {
|
|
186
|
+
"required": [
|
|
187
|
+
"gatewayUrl"
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"description": "一个渠道实例配置;具体字段由渠道类型及其适配器定义。"
|
|
194
|
+
},
|
|
195
|
+
"x-merge": "list",
|
|
196
|
+
"description": "Agent 绑定的消息渠道实例列表"
|
|
197
|
+
},
|
|
198
|
+
"aun": {
|
|
199
|
+
"type": "object",
|
|
200
|
+
"x-merge": "dict",
|
|
201
|
+
"description": "Agent 级 AUN 通信配置",
|
|
202
|
+
"properties": {
|
|
203
|
+
"gatewayUrl": {
|
|
204
|
+
"not": {},
|
|
205
|
+
"description": "已移除;网关由 fastaun 缓存和 AID discovery 决定"
|
|
206
|
+
},
|
|
207
|
+
"defaultEncrypt": {
|
|
208
|
+
"not": {},
|
|
209
|
+
"description": "不支持在 Agent 配置;请使用 daemon.json.aun.defaultEncrypt"
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"decision_model": {
|
|
214
|
+
"type": "object",
|
|
215
|
+
"description": "Session Renew 和群聊 auto 注意力分类使用的 Decision Model 配置;base_url 为完整请求地址,运行时直接 POST。",
|
|
216
|
+
"x-merge": "dict",
|
|
217
|
+
"additionalProperties": false,
|
|
218
|
+
"properties": {
|
|
219
|
+
"model": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"minLength": 1
|
|
222
|
+
},
|
|
223
|
+
"base_url": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"minLength": 1
|
|
226
|
+
},
|
|
227
|
+
"apikey": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"minLength": 1
|
|
230
|
+
},
|
|
231
|
+
"headers": {
|
|
232
|
+
"type": "object",
|
|
233
|
+
"propertyNames": {
|
|
234
|
+
"pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
|
|
235
|
+
},
|
|
236
|
+
"additionalProperties": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"pattern": "^[^\\u0000\\r\\n]*$"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"queryParams": {
|
|
242
|
+
"type": "object",
|
|
243
|
+
"propertyNames": {
|
|
244
|
+
"minLength": 1
|
|
245
|
+
},
|
|
246
|
+
"additionalProperties": {
|
|
247
|
+
"type": "string"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"models": {
|
|
253
|
+
"type": "object",
|
|
254
|
+
"x-merge": "dict",
|
|
255
|
+
"description": "Agent 级模型别名、注册表或模型覆盖配置"
|
|
256
|
+
},
|
|
257
|
+
"active_baseagent": {
|
|
258
|
+
"type": "string",
|
|
259
|
+
"x-merge": "scalar",
|
|
260
|
+
"description": "默认使用的 base agent 标识,例如 claude 或 codex"
|
|
261
|
+
},
|
|
262
|
+
"baseagents": {
|
|
263
|
+
"type": "object",
|
|
264
|
+
"x-merge": "dict",
|
|
265
|
+
"description": "各 base agent 的模型、推理强度及运行参数;备用模型链只能在 defaults.json 配置。codex.enableRequestUserInput 为布尔值,默认 true,仅控制 Default 模式阻塞式提问;异步问题自动接入卡片。",
|
|
266
|
+
"additionalProperties": {
|
|
267
|
+
"not": {
|
|
268
|
+
"type": "object",
|
|
269
|
+
"required": [
|
|
270
|
+
"fallbackModels"
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
"properties": {
|
|
274
|
+
"headers": {
|
|
275
|
+
"type": "object",
|
|
276
|
+
"propertyNames": {
|
|
277
|
+
"pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
|
|
278
|
+
},
|
|
279
|
+
"additionalProperties": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"pattern": "^[^\\u0000\\r\\n]*$"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"queryParams": {
|
|
285
|
+
"type": "object",
|
|
286
|
+
"propertyNames": {
|
|
287
|
+
"minLength": 1
|
|
288
|
+
},
|
|
289
|
+
"additionalProperties": {
|
|
290
|
+
"type": "string"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"auxiliaryModel": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"minLength": 1,
|
|
296
|
+
"description": "Session Renew 语义连续性判断使用的 direct 辅助模型。"
|
|
297
|
+
},
|
|
298
|
+
"auxiliaryEffort": {
|
|
299
|
+
"type": "string",
|
|
300
|
+
"enum": [
|
|
301
|
+
"low",
|
|
302
|
+
"medium",
|
|
303
|
+
"high",
|
|
304
|
+
"xhigh",
|
|
305
|
+
"max"
|
|
306
|
+
],
|
|
307
|
+
"description": "Session Renew 辅助模型的可选推理强度。"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"dependencies": {
|
|
311
|
+
"auxiliaryEffort": [
|
|
312
|
+
"auxiliaryModel"
|
|
313
|
+
]
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"projects": {
|
|
318
|
+
"type": "object",
|
|
319
|
+
"x-merge": "dict",
|
|
320
|
+
"description": "Agent 可用项目路径和项目选择配置"
|
|
321
|
+
},
|
|
322
|
+
"capabilities": {
|
|
323
|
+
"type": "object",
|
|
324
|
+
"x-merge": "dict",
|
|
325
|
+
"description": "Agent 能力开关及能力参数"
|
|
326
|
+
},
|
|
327
|
+
"readonlySourceDiagnostics": {
|
|
328
|
+
"type": "boolean",
|
|
329
|
+
"x-merge": "scalar",
|
|
330
|
+
"default": false,
|
|
331
|
+
"description": "允许只读会话在显式源码目录内执行受限、可证明只读的诊断查询"
|
|
332
|
+
},
|
|
333
|
+
"observable": {
|
|
334
|
+
"type": "boolean",
|
|
335
|
+
"default": true,
|
|
336
|
+
"x-merge": "scalar",
|
|
337
|
+
"description": "是否将 Agent 的入站和出站消息转发给 owners;默认开启"
|
|
338
|
+
},
|
|
339
|
+
"chatmode": {
|
|
340
|
+
"type": "object",
|
|
341
|
+
"x-merge": "dict",
|
|
342
|
+
"default": {
|
|
343
|
+
"private": "interactive",
|
|
344
|
+
"group": "proactive",
|
|
345
|
+
"nothuman": "proactive"
|
|
346
|
+
},
|
|
347
|
+
"properties": {
|
|
348
|
+
"private": {
|
|
349
|
+
"enum": [
|
|
350
|
+
"interactive",
|
|
351
|
+
"proactive"
|
|
352
|
+
],
|
|
353
|
+
"description": "人类私聊场景的投递方式",
|
|
354
|
+
"x-enumDescriptions": {
|
|
355
|
+
"interactive": "同步交互:输出即回复",
|
|
356
|
+
"proactive": "主动推送:CLI 回复 + 思考投影"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"group": {
|
|
360
|
+
"enum": [
|
|
361
|
+
"interactive",
|
|
362
|
+
"proactive"
|
|
363
|
+
],
|
|
364
|
+
"description": "群聊场景的投递方式",
|
|
365
|
+
"x-enumDescriptions": {
|
|
366
|
+
"interactive": "同步交互:输出即回复",
|
|
367
|
+
"proactive": "主动推送:CLI 回复 + 思考投影"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"nothuman": {
|
|
371
|
+
"enum": [
|
|
372
|
+
"interactive",
|
|
373
|
+
"proactive"
|
|
374
|
+
],
|
|
375
|
+
"description": "非人类(agent)私聊场景的投递方式",
|
|
376
|
+
"x-enumDescriptions": {
|
|
377
|
+
"interactive": "同步交互:输出即回复",
|
|
378
|
+
"proactive": "主动推送:CLI 回复 + 思考投影"
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"additionalProperties": false,
|
|
383
|
+
"description": "chatmode 场景默认表;出厂默认值即此 default(agent 级改默认,关系级按键覆盖)。键封闭 private/group/nothuman,值枚举 interactive/proactive"
|
|
384
|
+
},
|
|
385
|
+
"mentionMode": {
|
|
386
|
+
"type": "string",
|
|
387
|
+
"enum": [
|
|
388
|
+
"disabled",
|
|
389
|
+
"mention-only",
|
|
390
|
+
"auto"
|
|
391
|
+
],
|
|
392
|
+
"default": "disabled",
|
|
393
|
+
"x-merge": "scalar",
|
|
394
|
+
"description": "@ 处理策略(顶层通用参数)",
|
|
395
|
+
"x-enumDescriptions": {
|
|
396
|
+
"disabled": "处理所有消息",
|
|
397
|
+
"mention-only": "只处理被 @ 的消息,未 @ 作引用上下文"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"autoMentionQuietWindowMs": {
|
|
401
|
+
"type": "number",
|
|
402
|
+
"minimum": 0,
|
|
403
|
+
"default": 3000,
|
|
404
|
+
"x-merge": "scalar",
|
|
405
|
+
"description": "群聊 auto 注意力分类的静默等待窗口,单位为毫秒;默认 3000"
|
|
406
|
+
},
|
|
407
|
+
"groupSlashRequireMentions": {
|
|
408
|
+
"type": "boolean",
|
|
409
|
+
"default": true,
|
|
410
|
+
"x-merge": "scalar",
|
|
411
|
+
"description": "AUN 群聊 slash 命令是否必须携带结构化 mentions;默认必须"
|
|
412
|
+
},
|
|
413
|
+
"model": {
|
|
414
|
+
"type": "string",
|
|
415
|
+
"x-merge": "scalar",
|
|
416
|
+
"description": "主会话模型(顶层通用参数);无默认值,缺省时由响应模式/全局默认决定"
|
|
417
|
+
},
|
|
418
|
+
"responseMode": {
|
|
419
|
+
"type": "string",
|
|
420
|
+
"x-merge": "scalar",
|
|
421
|
+
"description": "响应模式 id(标量);候选清单/默认值来自注册表,非 schema。关系级>agent级>注册表首选"
|
|
422
|
+
},
|
|
423
|
+
"responseModeParams": {
|
|
424
|
+
"type": "object",
|
|
425
|
+
"x-merge": "dict",
|
|
426
|
+
"description": "响应模式特有参数字典,按模式 id 分桶:{ [modeId]: {...} }"
|
|
427
|
+
},
|
|
428
|
+
"flush_delay": {
|
|
429
|
+
"type": "number",
|
|
430
|
+
"minimum": 0,
|
|
431
|
+
"default": 3,
|
|
432
|
+
"x-merge": "scalar",
|
|
433
|
+
"description": "流式出站消息的批量刷新间隔,单位为秒;默认 3 秒"
|
|
434
|
+
},
|
|
435
|
+
"debounce": {
|
|
436
|
+
"type": "number",
|
|
437
|
+
"minimum": 0,
|
|
438
|
+
"default": 0,
|
|
439
|
+
"x-merge": "scalar",
|
|
440
|
+
"description": "入站消息合并窗口,单位为秒;0 表示不合并,默认 0"
|
|
441
|
+
},
|
|
442
|
+
"show_activities": {
|
|
443
|
+
"type": "string",
|
|
444
|
+
"enum": [
|
|
445
|
+
"all",
|
|
446
|
+
"text",
|
|
447
|
+
"none"
|
|
448
|
+
],
|
|
449
|
+
"default": "all",
|
|
450
|
+
"x-merge": "scalar",
|
|
451
|
+
"description": "中间输出展示范围(仅对 interactive 私聊有意义)",
|
|
452
|
+
"x-enumDescriptions": {
|
|
453
|
+
"all": "文本 + activity",
|
|
454
|
+
"text": "仅文本",
|
|
455
|
+
"none": "全部静默"
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
"session_renew": {
|
|
459
|
+
"type": "object",
|
|
460
|
+
"x-merge": "dict",
|
|
461
|
+
"additionalProperties": false,
|
|
462
|
+
"description": "会话超时后的续接判定",
|
|
463
|
+
"properties": {
|
|
464
|
+
"enabled": {
|
|
465
|
+
"type": "boolean",
|
|
466
|
+
"default": false,
|
|
467
|
+
"description": "是否启用超时后的会话连续性判定"
|
|
468
|
+
},
|
|
469
|
+
"after_hours": {
|
|
470
|
+
"type": "number",
|
|
471
|
+
"exclusiveMinimum": 0,
|
|
472
|
+
"default": 24,
|
|
473
|
+
"description": "距最后一条有效对话超过该小时数才触发判定"
|
|
474
|
+
},
|
|
475
|
+
"fallback_action": {
|
|
476
|
+
"type": "string",
|
|
477
|
+
"enum": [
|
|
478
|
+
"continue",
|
|
479
|
+
"new"
|
|
480
|
+
],
|
|
481
|
+
"default": "continue",
|
|
482
|
+
"description": "无法判定时的兜底动作",
|
|
483
|
+
"x-enumDescriptions": {
|
|
484
|
+
"continue": "继续沿用当前会话",
|
|
485
|
+
"new": "开启新会话"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
"new_probability_threshold": {
|
|
489
|
+
"type": "number",
|
|
490
|
+
"minimum": 0,
|
|
491
|
+
"maximum": 1,
|
|
492
|
+
"default": 0.85,
|
|
493
|
+
"description": "noul 达到该概率后开启新会话"
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
"group_venue_sync": {
|
|
498
|
+
"type": "object",
|
|
499
|
+
"x-merge": "dict",
|
|
500
|
+
"description": "AUN 群资源同步配置;控制规则文件路径、资源索引路径、条目/字节限制及刷新间隔。"
|
|
501
|
+
},
|
|
502
|
+
"groupRules": {
|
|
503
|
+
"type": "object",
|
|
504
|
+
"x-merge": "dict",
|
|
505
|
+
"additionalProperties": false,
|
|
506
|
+
"properties": {
|
|
507
|
+
"mode": {
|
|
508
|
+
"type": "string",
|
|
509
|
+
"enum": [
|
|
510
|
+
"load",
|
|
511
|
+
"ignore"
|
|
512
|
+
],
|
|
513
|
+
"default": "load",
|
|
514
|
+
"description": "是否读取并注入 AUN 群已发布的 /rules.md;默认 load。"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"description": "本 Agent 对 AUN 群规则的本地加载策略。"
|
|
518
|
+
},
|
|
519
|
+
"render": {
|
|
520
|
+
"type": "object",
|
|
521
|
+
"x-merge": "dict",
|
|
522
|
+
"description": "私聊、群聊及注入内容使用的渲染器标识配置。"
|
|
523
|
+
},
|
|
524
|
+
"sessionManifests": {
|
|
525
|
+
"type": "object",
|
|
526
|
+
"x-merge": "dict",
|
|
527
|
+
"description": "会话类型到 manifest 文件的映射,用于选择对应的系统提示词清单。"
|
|
528
|
+
},
|
|
529
|
+
"enable_rich_content": {
|
|
530
|
+
"type": "boolean",
|
|
531
|
+
"x-merge": "scalar",
|
|
532
|
+
"description": "是否允许渠道使用富内容消息;未设置时由渠道能力和运行时默认决定"
|
|
533
|
+
},
|
|
534
|
+
"extra_backup": {
|
|
535
|
+
"type": "array",
|
|
536
|
+
"items": {
|
|
537
|
+
"type": "object",
|
|
538
|
+
"description": "一个额外备份规则,包含相对 path 和可选的文件匹配 pattern。"
|
|
539
|
+
},
|
|
540
|
+
"x-merge": "list",
|
|
541
|
+
"description": "配置快照需要额外包含的文件声明;不得指向 .env。"
|
|
542
|
+
},
|
|
543
|
+
"memory": {
|
|
544
|
+
"type": "object",
|
|
545
|
+
"x-merge": "dict",
|
|
546
|
+
"additionalProperties": false,
|
|
547
|
+
"description": "记忆系统配置。enableRelation 是总开关(relation 是所有记忆的唯一出生地);它在关系层使用 x-merge-logic: AND 语义,任意层为 false 则关闭。",
|
|
548
|
+
"properties": {
|
|
549
|
+
"enableRelation": {
|
|
550
|
+
"type": "boolean",
|
|
551
|
+
"x-merge-logic": "AND",
|
|
552
|
+
"description": "启用 relation 作用域记忆。默认 true。这是总开关:关闭后 agent 级与 owner 级记忆也无从产生,note 写入、索引注入、五种整理模式的触发器与手动调用一并停用。relation 层可用此字段做 AND 合并(任意层为 false 则关闭)。"
|
|
553
|
+
},
|
|
554
|
+
"enableAgent": {
|
|
555
|
+
"type": "boolean",
|
|
556
|
+
"description": "启用 agent 作用域记忆(泛化模式的产出)。默认 true。"
|
|
557
|
+
},
|
|
558
|
+
"enableOwner": {
|
|
559
|
+
"type": "boolean",
|
|
560
|
+
"description": "启用 owner 作用域记忆(提升模式的产出)。默认 true。"
|
|
561
|
+
},
|
|
562
|
+
"idleHours": {
|
|
563
|
+
"type": "number",
|
|
564
|
+
"description": "空闲时长阈值(小时),超过此值才允许定时触发整理。默认 4。"
|
|
565
|
+
},
|
|
566
|
+
"checkIntervalHours": {
|
|
567
|
+
"type": "number",
|
|
568
|
+
"description": "定时触发器检查间隔(小时)。默认 1。"
|
|
569
|
+
},
|
|
570
|
+
"backlogHours": {
|
|
571
|
+
"type": "number",
|
|
572
|
+
"description": "pending 堆积多久(小时)算需要补漏整理。默认 24。"
|
|
573
|
+
},
|
|
574
|
+
"indexMaxBytes": {
|
|
575
|
+
"type": "number",
|
|
576
|
+
"description": "MEMORY.md 索引大小上限(字节)。默认 5120(5KB)。"
|
|
577
|
+
},
|
|
578
|
+
"forgetAfterDays": {
|
|
579
|
+
"type": "number",
|
|
580
|
+
"minimum": 1,
|
|
581
|
+
"maximum": 7,
|
|
582
|
+
"description": "普通记忆多久(天)未更新即进入遗忘候选。默认 3,允许 1-7。打了 long-term 的记忆固定 30 天,不受此值影响。"
|
|
583
|
+
},
|
|
584
|
+
"profileRegenDays": {
|
|
585
|
+
"type": "number",
|
|
586
|
+
"description": "间隔多久(天)重新生成一次画像。默认 3。"
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
@@ -16,15 +16,6 @@
|
|
|
16
16
|
"description": "进程控制面鉴权名单(谁能远程管 daemon)",
|
|
17
17
|
"x-merge": "list"
|
|
18
18
|
},
|
|
19
|
-
"fullaccess": {
|
|
20
|
-
"type": "object",
|
|
21
|
-
"description": "daemon-owner 批准的按调用宿主级执行功能;默认开启",
|
|
22
|
-
"x-merge": "dict",
|
|
23
|
-
"additionalProperties": false,
|
|
24
|
-
"properties": {
|
|
25
|
-
"enabled": { "type": "boolean", "default": true, "description": "启用 /fa 与 Trigger permissionMode=fullaccess" }
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
19
|
"debug": {
|
|
29
20
|
"type": "object",
|
|
30
21
|
"description": "进程级调试配置;唯一合法来源为 daemon.json,不参与 Agent 覆盖链",
|
|
@@ -108,6 +99,15 @@
|
|
|
108
99
|
}
|
|
109
100
|
},
|
|
110
101
|
"configSnapshots": { "type": "boolean", "default": true, "description": "是否自动维护配置快照、启动日志和自检回落", "x-merge": "scalar" },
|
|
102
|
+
"restartRecovery": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"description": "重启失败后的自动修复配置;仅控制 restart-monitor 的 Claude self-heal",
|
|
105
|
+
"x-merge": "dict",
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"properties": {
|
|
108
|
+
"enabled": { "type": "boolean", "default": false, "description": "是否在重启失败后执行 Claude 自动修复;默认关闭" }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
111
|
"idleMonitor": {
|
|
112
112
|
"type": "object",
|
|
113
113
|
"description": "流式输出空闲监控配置",
|