evolcore 0.0.43-test.3 → 0.0.43-test.4
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/ecmsg.js +229 -0
- package/bin/install-codex-managed-hooks.mjs +130 -8
- package/dist/ability/application-service.js +37 -0
- package/dist/ability/resources.js +28 -0
- package/dist/ability/runtime.js +6 -1
- package/dist/agents/claude-runner.js +7 -5
- package/dist/agents/codex/app-server-client.js +0 -12
- package/dist/agents/codex-runner.js +0 -37
- package/dist/agents/ecagent-runner.js +130 -35
- package/dist/aun/aid/agentmd.js +31 -12
- package/dist/aun/menu/client.js +8 -7
- package/dist/aun/menu/index.js +1 -1
- package/dist/aun/menu/transport.js +8 -5
- package/dist/aun/service-proxy.js +3 -0
- package/dist/channels/aun.js +26 -5
- package/dist/channels/daemon.js +10 -2
- package/dist/cli/agent-command.js +5 -0
- package/dist/cli/agent-create.js +28 -6
- package/dist/cli/agent.js +9 -3
- package/dist/cli/aun-commands.js +2 -2
- package/dist/cli/daemon-commands.js +30 -18
- package/dist/cli/directory.js +4 -7
- package/dist/cli/getmeta-command.js +2 -1
- package/dist/cli/init.js +13 -5
- package/dist/cli/trigger-command.js +20 -14
- package/dist/config/boot-log.js +12 -2
- package/dist/config/config-field-policy.js +2 -0
- package/dist/config/config-manager.js +9 -4
- package/dist/config/peer-role-resolver.js +1 -1
- package/dist/config/role-schema.js +3 -3
- package/dist/config/schema-migration.js +121 -0
- package/dist/core/agent-application-service.js +11 -0
- package/dist/core/agent-ipc-registration.js +2 -0
- package/dist/core/agent-runtime.js +41 -9
- package/dist/core/auth/auth-gateway.js +3 -3
- package/dist/core/auth/operation-authorizer.js +2 -1
- package/dist/core/baseagent-loader.js +11 -3
- package/dist/core/bootstrap-service.js +8 -0
- package/dist/core/channel-loader.js +61 -23
- package/dist/core/command/agent-control.js +4 -1
- package/dist/core/command/chatmode-config.js +46 -0
- package/dist/core/command/command-handler.js +5 -14
- package/dist/core/command/daemon-diagnostics.js +2 -1
- package/dist/core/command/menu-catalog.js +1 -1
- package/dist/core/command/menu-handler.js +16 -16
- package/dist/core/command/slash-handler.js +4 -26
- package/dist/core/daemon-lifecycle.js +35 -17
- package/dist/core/event-catalog.js +19 -0
- package/dist/core/evolagent-registry.js +3 -0
- package/dist/core/ipc-registration.js +6 -0
- package/dist/core/message/im-renderer.js +24 -19
- package/dist/core/message/message-admission.js +11 -2
- package/dist/core/message/response-engine.js +17 -18
- package/dist/core/model/model-capabilities.js +37 -0
- package/dist/core/model/model-catalog.js +6 -2
- package/dist/core/ownership/owner-resolver.js +6 -6
- package/dist/core/permission/ec-command-parser.js +47 -12
- package/dist/core/plugin-lifecycle.js +6 -2
- package/dist/core/relation/pa-team.js +7 -2
- package/dist/directory/owner-directory-cache.js +4 -2
- package/dist/directory/owner-directory-query-operation.js +5 -7
- package/dist/ecweb/runtime/lifecycle.js +29 -5
- package/dist/ecweb/runtime/supervisor.js +83 -27
- package/dist/index.js +198 -38
- package/dist/proxy/service-supervisor.js +377 -141
- package/dist/trigger/audit.js +3 -2
- package/dist/trigger/authorization.js +2 -3
- package/dist/trigger/history.js +4 -3
- package/dist/trigger/ipc-service.js +24 -19
- package/dist/trigger/manager.js +3 -5
- package/dist/trigger/parser.js +4 -21
- package/dist/trigger/patch.js +3 -15
- package/dist/trigger/scheduler.js +45 -10
- package/dist/trigger/validation.js +0 -13
- package/dist/utils/error-utils.js +8 -0
- package/dist/utils/macos-autostart.js +31 -0
- package/dist/utils/model-prices.jsonl +15 -8
- package/dist/utils/process-introspect.js +21 -1
- package/dist/utils/startup-trace.js +7 -1
- package/dist/utils/windows-autostart.js +1 -0
- package/ecagent/dist/harness/compaction/branch-summarization.js +1 -1
- package/ecagent/dist/harness/compaction/compaction.js +4 -4
- package/kits/docs/evolcore/INDEX.md +1 -1
- package/kits/docs/evolcore/file-navigation.md +63 -49
- package/kits/docs/evolcore/menu-protocol.md +1 -0
- package/kits/docs/evolcore/model.md +5 -3
- package/kits/docs/evolcore/response.md +2 -0
- package/kits/docs/evolcore/thread-chain.md +1 -1
- package/kits/docs/evolcore/tool-authorization.md +4 -1
- package/kits/docs/evolcore/trigger.md +10 -7
- package/kits/eck_manifest.json +0 -21
- package/kits/rules/01-overview.md +42 -44
- package/kits/rules/02-navigation.md +44 -53
- package/kits/rules/03-identity.md +21 -25
- package/kits/rules/04-relation.md +23 -33
- package/kits/rules/05-venue.md +24 -25
- package/kits/schemas/_meta.json +13 -26
- package/kits/schemas/agent-config.schema.19.json +10 -6
- package/kits/schemas/relation-config.schema.12.json +2 -2
- package/kits/schemas/role-config.schema.2.json +5 -5
- package/kits/skills/ec-service-proxy/SKILL.md +10 -0
- package/kits/skills/ec-trigger/SKILL.md +1 -1
- package/kits/templates/system-fragments/commands.md +1 -1
- package/kits/templates/system-fragments/identity.md +0 -1
- package/package.json +18 -13
- package/kits/schemas/agent-config.schema.20.json +0 -925
- package/kits/schemas/relation-config.schema.13.json +0 -289
- package/kits/schemas/role-config.schema.3.json +0 -1038
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "relation-config.schema.13.json",
|
|
4
|
-
"title": "RelationConfig v13 (agents/{aid}/relations/{peerKey}/config.json)",
|
|
5
|
-
"x-logical-name": "relation-config",
|
|
6
|
-
"x-scope": "relation",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"additionalProperties": true,
|
|
9
|
-
"not": {
|
|
10
|
-
"anyOf": [
|
|
11
|
-
{
|
|
12
|
-
"required": [
|
|
13
|
-
"permissionMode"
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"required": [
|
|
18
|
-
"roles"
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"required": [
|
|
23
|
-
"aun"
|
|
24
|
-
],
|
|
25
|
-
"properties": {
|
|
26
|
-
"aun": {
|
|
27
|
-
"type": "object",
|
|
28
|
-
"required": [
|
|
29
|
-
"defaultEncrypt"
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
"properties": {
|
|
37
|
-
"$schema_version": {
|
|
38
|
-
"type": "number",
|
|
39
|
-
"const": 13,
|
|
40
|
-
"default": 13,
|
|
41
|
-
"x-merge": "scalar",
|
|
42
|
-
"description": "配置 Schema 版本;v13 固定群聊 chatmode 为 proactive"
|
|
43
|
-
},
|
|
44
|
-
"targetKind": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"enum": [
|
|
47
|
-
"private",
|
|
48
|
-
"group"
|
|
49
|
-
],
|
|
50
|
-
"x-merge": "scalar"
|
|
51
|
-
},
|
|
52
|
-
"role": {
|
|
53
|
-
"type": [
|
|
54
|
-
"string",
|
|
55
|
-
"null"
|
|
56
|
-
],
|
|
57
|
-
"pattern": "^(?!owner$)[a-z0-9_-]+$",
|
|
58
|
-
"x-merge": "scalar",
|
|
59
|
-
"description": "关系角色;允许 admin/member/visitor/自定义角色,禁止 owner"
|
|
60
|
-
},
|
|
61
|
-
"chatmode": {
|
|
62
|
-
"type": "object",
|
|
63
|
-
"x-merge": "dict",
|
|
64
|
-
"properties": {
|
|
65
|
-
"private": {
|
|
66
|
-
"enum": [
|
|
67
|
-
"interactive",
|
|
68
|
-
"proactive",
|
|
69
|
-
"paactive"
|
|
70
|
-
]
|
|
71
|
-
},
|
|
72
|
-
"group": {
|
|
73
|
-
"enum": [
|
|
74
|
-
"proactive"
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
|
-
"nothuman": {
|
|
78
|
-
"enum": [
|
|
79
|
-
"interactive",
|
|
80
|
-
"proactive"
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"additionalProperties": false
|
|
85
|
-
},
|
|
86
|
-
"mentionMode": {
|
|
87
|
-
"type": "string",
|
|
88
|
-
"enum": [
|
|
89
|
-
"disabled",
|
|
90
|
-
"mention-only",
|
|
91
|
-
"auto"
|
|
92
|
-
],
|
|
93
|
-
"x-merge": "scalar"
|
|
94
|
-
},
|
|
95
|
-
"autoMentionQuietWindowMs": {
|
|
96
|
-
"type": "number",
|
|
97
|
-
"minimum": 0,
|
|
98
|
-
"default": 3000,
|
|
99
|
-
"x-merge": "scalar",
|
|
100
|
-
"description": "群聊 auto 注意力分类的静默等待窗口,单位为毫秒;默认 3000"
|
|
101
|
-
},
|
|
102
|
-
"sessionLoop": {
|
|
103
|
-
"type": "object",
|
|
104
|
-
"x-merge": "scalar",
|
|
105
|
-
"description": "当前关系主会话的闲置触发设置;话题不继承",
|
|
106
|
-
"oneOf": [
|
|
107
|
-
{
|
|
108
|
-
"properties": {
|
|
109
|
-
"enabled": {
|
|
110
|
-
"const": false
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"required": [
|
|
114
|
-
"enabled"
|
|
115
|
-
],
|
|
116
|
-
"additionalProperties": false
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"properties": {
|
|
120
|
-
"enabled": {
|
|
121
|
-
"const": true
|
|
122
|
-
},
|
|
123
|
-
"idleSeconds": {
|
|
124
|
-
"type": "integer",
|
|
125
|
-
"minimum": 30,
|
|
126
|
-
"maximum": 86400
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
"required": [
|
|
130
|
-
"enabled",
|
|
131
|
-
"idleSeconds"
|
|
132
|
-
],
|
|
133
|
-
"additionalProperties": false
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
|
-
"sessionFullAccess": {
|
|
138
|
-
"type": "object",
|
|
139
|
-
"x-merge": "scalar",
|
|
140
|
-
"description": "当前关系主会话的 /fa 开关,跨 EC session 保留;话题不继承,仅由 /fa 和 session Menu 管理",
|
|
141
|
-
"properties": {
|
|
142
|
-
"enabled": {
|
|
143
|
-
"type": "boolean"
|
|
144
|
-
},
|
|
145
|
-
"authorizedBy": {
|
|
146
|
-
"type": "string",
|
|
147
|
-
"minLength": 1
|
|
148
|
-
},
|
|
149
|
-
"promptedSessionId": {
|
|
150
|
-
"type": "string",
|
|
151
|
-
"minLength": 1,
|
|
152
|
-
"description": "本次局部开启后已收到 fullaccess 提示的 EC session"
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
"required": [
|
|
156
|
-
"enabled",
|
|
157
|
-
"authorizedBy"
|
|
158
|
-
],
|
|
159
|
-
"additionalProperties": false
|
|
160
|
-
},
|
|
161
|
-
"responseMode": {
|
|
162
|
-
"type": "string",
|
|
163
|
-
"x-merge": "scalar"
|
|
164
|
-
},
|
|
165
|
-
"responseModeParams": {
|
|
166
|
-
"type": "object",
|
|
167
|
-
"x-merge": "dict"
|
|
168
|
-
},
|
|
169
|
-
"baseagents": {
|
|
170
|
-
"type": "object",
|
|
171
|
-
"additionalProperties": false,
|
|
172
|
-
"description": "关系级仅可配置 runner 行为参数;model 与 effort 仅支持 Agent 级。",
|
|
173
|
-
"patternProperties": {
|
|
174
|
-
"^[a-z][a-z0-9_-]*$": {
|
|
175
|
-
"type": "object",
|
|
176
|
-
"additionalProperties": false,
|
|
177
|
-
"properties": {
|
|
178
|
-
"agentProgressSummaries": {
|
|
179
|
-
"type": "boolean"
|
|
180
|
-
},
|
|
181
|
-
"excludeDynamicSections": {
|
|
182
|
-
"type": "boolean"
|
|
183
|
-
},
|
|
184
|
-
"enableRequestUserInput": {
|
|
185
|
-
"type": "boolean"
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
"x-merge": "dict"
|
|
191
|
-
},
|
|
192
|
-
"flush_delay": {
|
|
193
|
-
"type": "number",
|
|
194
|
-
"x-merge": "scalar"
|
|
195
|
-
},
|
|
196
|
-
"debounce": {
|
|
197
|
-
"type": "number",
|
|
198
|
-
"x-merge": "scalar"
|
|
199
|
-
},
|
|
200
|
-
"show_activities": {
|
|
201
|
-
"type": "string",
|
|
202
|
-
"enum": [
|
|
203
|
-
"all",
|
|
204
|
-
"text",
|
|
205
|
-
"none"
|
|
206
|
-
],
|
|
207
|
-
"x-merge": "scalar"
|
|
208
|
-
},
|
|
209
|
-
"enable_rich_content": {
|
|
210
|
-
"type": "boolean",
|
|
211
|
-
"x-merge": "scalar"
|
|
212
|
-
},
|
|
213
|
-
"session_renew": {
|
|
214
|
-
"type": "object",
|
|
215
|
-
"x-merge": "dict",
|
|
216
|
-
"additionalProperties": false,
|
|
217
|
-
"properties": {
|
|
218
|
-
"enabled": {
|
|
219
|
-
"type": "boolean"
|
|
220
|
-
},
|
|
221
|
-
"after_hours": {
|
|
222
|
-
"type": "number",
|
|
223
|
-
"exclusiveMinimum": 0
|
|
224
|
-
},
|
|
225
|
-
"fallback_action": {
|
|
226
|
-
"type": "string",
|
|
227
|
-
"enum": [
|
|
228
|
-
"continue",
|
|
229
|
-
"new"
|
|
230
|
-
]
|
|
231
|
-
},
|
|
232
|
-
"new_probability_threshold": {
|
|
233
|
-
"type": "number",
|
|
234
|
-
"minimum": 0,
|
|
235
|
-
"maximum": 1
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
"memory": {
|
|
240
|
-
"type": "object",
|
|
241
|
-
"x-merge": "dict",
|
|
242
|
-
"additionalProperties": false,
|
|
243
|
-
"description": "关系级记忆开关;enableRelation 由对端自主配置,与 agent 级 memory.enableRelation 做 AND 合并(任意层为 false 则关闭)。",
|
|
244
|
-
"properties": {
|
|
245
|
-
"enableRelation": {
|
|
246
|
-
"type": "boolean",
|
|
247
|
-
"x-merge-logic": "AND",
|
|
248
|
-
"description": "对端自主控制本关系的 relation 作用域记忆是否启用;与 agent 级 enableRelation 做 AND 合并。"
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
"group_venue_sync": {
|
|
253
|
-
"type": "object",
|
|
254
|
-
"x-merge": "dict"
|
|
255
|
-
},
|
|
256
|
-
"groupRules": {
|
|
257
|
-
"type": "object",
|
|
258
|
-
"x-merge": "dict",
|
|
259
|
-
"additionalProperties": false,
|
|
260
|
-
"properties": {
|
|
261
|
-
"mode": {
|
|
262
|
-
"type": "string",
|
|
263
|
-
"enum": [
|
|
264
|
-
"load",
|
|
265
|
-
"ignore"
|
|
266
|
-
],
|
|
267
|
-
"default": "load",
|
|
268
|
-
"description": "是否读取并注入当前 AUN 群已发布的 /rules.md;默认 load。"
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
"render": {
|
|
273
|
-
"type": "object",
|
|
274
|
-
"x-merge": "dict"
|
|
275
|
-
},
|
|
276
|
-
"sessionManifests": {
|
|
277
|
-
"type": "object",
|
|
278
|
-
"x-merge": "dict"
|
|
279
|
-
},
|
|
280
|
-
"extra_backup": {
|
|
281
|
-
"type": "array",
|
|
282
|
-
"items": {
|
|
283
|
-
"type": "object"
|
|
284
|
-
},
|
|
285
|
-
"x-merge": "list"
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
"description": "关系级配置。模型参数(模型、服务商、推理强度、降级链)只在 Agent 级 config.json 配置。"
|
|
289
|
-
}
|