evolcore 0.0.43-test.4 → 0.0.43-test.6
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 +93 -0
- package/bin/ecmsg.js +437 -91
- package/dist/agents/baseagent-availability.js +19 -4
- package/dist/agents/baseagent.js +2 -2
- package/dist/agents/claude-runner.js +19 -4
- package/dist/agents/codex/app-server-client.js +14 -3
- package/dist/agents/codex-runner.js +18 -23
- package/dist/aun/aid/agentmd.js +25 -0
- package/dist/aun/aid/control-aid.js +15 -0
- package/dist/aun/aid/identity.js +8 -0
- package/dist/aun/aid/ownership-operation.js +12 -3
- package/dist/aun/group/invite-service.js +3 -2
- package/dist/aun/service-proxy.js +18 -6
- package/dist/channels/aun.js +99 -23
- package/dist/channels/daemon.js +2 -2
- package/dist/cli/agent-create.js +19 -7
- package/dist/cli/aid-bind-command.js +3 -0
- package/dist/cli/aun-commands.js +19 -4
- package/dist/cli/code-stats.js +451 -213
- package/dist/cli/ctl-command.js +1 -3
- package/dist/cli/daemon-commands.js +42 -4
- package/dist/cli/directory.js +3 -1
- package/dist/cli/ecmsg-gateway.js +206 -0
- package/dist/cli/index.js +6 -0
- package/dist/cli/init.js +120 -13
- package/dist/cli/provider-command.js +82 -5
- package/dist/cli/restart-monitor.js +35 -24
- package/dist/cli/stats.js +8 -1
- package/dist/cli/task-context.js +41 -1
- package/dist/cli/watch-logs.js +6 -4
- package/dist/config/boot-log.js +16 -3
- package/dist/config/builtin-roles.js +2 -2
- package/dist/config/config-manager.js +5 -14
- package/dist/config/daemon-services.js +1 -0
- package/dist/config/peer-role-resolver.js +6 -6
- package/dist/config/provider-identity-migration.js +277 -0
- package/dist/config/provider-identity.js +37 -0
- package/dist/config/provider-ipc-service.js +40 -3
- package/dist/config/provider-local-sync.js +155 -0
- package/dist/config/providers-config.js +45 -4
- package/dist/config/providers-management.js +242 -76
- package/dist/config/providers.js +4 -1
- package/dist/config/role-service.js +8 -8
- package/dist/config/role-store.js +22 -22
- package/dist/config/schema-migration.js +143 -86
- package/dist/config/snapshot.js +70 -41
- package/dist/core/agent-runtime.js +48 -9
- package/dist/core/auth/auth-gateway.js +5 -3
- package/dist/core/auth/delegation-diagnostics.js +6 -2
- package/dist/core/auth/operation-authorizer.js +3 -1
- package/dist/core/auth/operation-catalog.js +6 -4
- package/dist/core/baseagent-loader.js +114 -11
- package/dist/core/channel-loader.js +36 -13
- package/dist/core/channel-runtime.js +112 -42
- package/dist/core/command/cli-intent-parser.js +2 -1
- package/dist/core/command/command-handler.js +16 -11
- package/dist/core/command/menu-handler.js +8 -3
- package/dist/core/command/menu-protocol.js +80 -7
- package/dist/core/command/provider-menu.js +4 -2
- package/dist/core/command/role-menu.js +29 -17
- package/dist/core/command/slash-handler.js +52 -16
- package/dist/core/daemon-control.js +42 -15
- package/dist/core/daemon-lifecycle.js +411 -67
- package/dist/core/handoff/dispatcher.js +9 -3
- package/dist/core/handoff/runtime.js +139 -45
- package/dist/core/handoff/store.js +190 -2
- package/dist/core/handoff/types.js +5 -0
- package/dist/core/initialization/service.js +7 -6
- package/dist/core/ipc-registration.js +5 -4
- package/dist/core/lifecycle-notice.js +10 -4
- package/dist/core/message/aun-ipc-sender.js +83 -5
- package/dist/core/message/message-admission.js +2 -0
- package/dist/core/message/message-bridge.js +53 -4
- package/dist/core/message/message-queue.js +46 -4
- package/dist/core/message/pending-hints.js +4 -10
- package/dist/core/message/response-engine.js +33 -25
- package/dist/core/message/send-options.js +40 -0
- package/dist/core/message/send-routing.js +320 -0
- package/dist/core/ownership/owner-resolver.js +112 -8
- package/dist/core/permission/ec-command-parser.js +159 -16
- package/dist/core/permission/readonly-shell-query.js +66 -7
- package/dist/core/permission/tool-error-code.js +13 -1
- package/dist/core/permission/tool-policy.js +74 -20
- package/dist/core/relation/same-owner-proof.js +131 -0
- package/dist/core/session/adapters/claude-session-file-adapter.js +24 -0
- package/dist/core/session/adapters/codex-session-file-adapter.js +80 -0
- package/dist/core/session/adapters/ecagent-session-file-adapter.js +22 -0
- package/dist/core/session/adapters/gemini-session-file-adapter.js +39 -0
- package/dist/core/session/session-fs-store.js +164 -3
- package/dist/core/session/session-idle-monitor.js +103 -17
- package/dist/core/session/session-manager.js +105 -18
- package/dist/core/thread/thread-route.js +5 -2
- package/dist/directory/owner-directory-admission.js +26 -1
- package/dist/directory/owner-directory-cache.js +739 -109
- package/dist/directory/owner-directory-markdown.js +146 -36
- package/dist/directory/owner-directory-query-operation.js +6 -3
- package/dist/directory/owner-directory-scope.js +12 -0
- package/dist/directory/owner-directory-search.js +5 -1
- package/dist/directory/owner-directory-store.js +28 -0
- package/dist/ecweb/basic-settings-service.js +15 -1
- package/dist/ecweb/message-context-service.js +2 -2
- package/dist/ecweb/providers-service.js +3 -1
- package/dist/ecweb/runtime/lifecycle.js +26 -15
- package/dist/ecweb/runtime/supervisor.js +120 -51
- package/dist/index.js +551 -250
- package/dist/paths.js +2 -1
- package/dist/proxy/manager.js +40 -17
- package/dist/proxy/service-supervisor.js +67 -33
- package/dist/response-system/engines/v1/proactive-flow.js +4 -0
- package/dist/trigger/application-service.js +4 -1
- package/dist/trigger/audit.js +19 -4
- package/dist/trigger/authorization.js +14 -5
- package/dist/trigger/event-source.js +4 -0
- package/dist/trigger/feedback.js +26 -2
- package/dist/trigger/history.js +176 -7
- package/dist/trigger/manager.js +1 -3
- package/dist/trigger/scheduler.js +81 -8
- package/dist/trigger/system-definitions.js +2 -2
- package/dist/trigger/validation.js +4 -0
- package/dist/utils/autostart.js +2 -2
- package/dist/utils/cross-platform.js +188 -12
- package/dist/utils/host-info.js +11 -8
- package/dist/utils/npm-ops.js +48 -0
- package/dist/utils/process-introspect.js +64 -1
- package/dist/utils/public-suffix.js +5811 -0
- package/dist/utils/startup-trace.js +160 -19
- package/dist/utils/windows-autostart.js +41 -7
- package/ecagent/dist/harness/env/nodejs.js +46 -2
- package/kits/docs/aun/ABILITY_CALLING.md +6 -6
- package/kits/docs/channels/aun.md +1 -1
- package/kits/docs/channels/feishu.md +2 -2
- package/kits/docs/context-assembly.md +20 -4
- package/kits/docs/evolcore/INDEX.md +5 -3
- package/kits/docs/evolcore/agent.md +2 -2
- package/kits/docs/evolcore/aid.md +8 -2
- package/kits/docs/evolcore/ctl.md +15 -5
- package/kits/docs/evolcore/directory.md +48 -15
- package/kits/docs/evolcore/group.md +8 -8
- package/kits/docs/evolcore/memory-consolidation.md +1 -1
- package/kits/docs/evolcore/menu-exec-schema-commands.md +1 -1
- package/kits/docs/evolcore/menu-protocol.md +32 -3
- package/kits/docs/evolcore/msg.md +38 -30
- package/kits/docs/evolcore/provider.md +57 -5
- package/kits/docs/evolcore/response.md +2 -2
- package/kits/docs/evolcore/thread-chain.md +11 -13
- package/kits/docs/evolcore/tool-authorization.md +17 -0
- package/kits/docs/evolcore/trigger.md +2 -2
- package/kits/docs/identity/ROLE_DETAIL.md +1 -1
- package/kits/docs/prompt-loading-architecture.md +30 -20
- package/kits/eck_manifest.auxiliary.json +5 -5
- package/kits/eck_manifest.json +44 -32
- package/kits/eck_manifest.memory.json +18 -18
- package/kits/eck_message_manifest.json +3 -3
- package/kits/rules/01-overview.md +1 -1
- package/kits/rules/06-channel.md +7 -8
- package/kits/schemas/_meta.json +7 -1
- package/kits/schemas/daemon.schema.1.json +5 -0
- package/kits/schemas/daemon.schema.2.json +5 -0
- package/kits/schemas/daemon.schema.3.json +2 -1
- package/kits/schemas/daemon.schema.4.json +2 -1
- package/kits/schemas/daemon.schema.5.json +2 -1
- package/kits/schemas/daemon.schema.6.json +1 -1
- package/kits/schemas/daemon.schema.7.json +1 -1
- package/kits/schemas/daemon.schema.8.json +2 -1
- package/kits/schemas/daemon.schema.9.json +2 -1
- package/kits/schemas/providers.schema.2.json +74 -0
- package/kits/schemas/role-registry.schema.1.json +2 -2
- package/kits/schemas/single-session.schema.1.json +1 -1
- package/kits/schemas/single-session.schema.2.json +1 -1
- package/kits/schemas/single-session.schema.3.json +1 -1
- package/kits/skills/aid-ability/SKILL.md +7 -7
- package/kits/skills/ec-agent-create/SKILL.md +1 -0
- package/kits/skills/ec-group/SKILL.md +8 -5
- package/kits/skills/ec-group-collaboration/SKILL.md +7 -7
- package/kits/skills/ec-service-proxy/SKILL.md +3 -10
- package/kits/skills/ec-trigger/SKILL.md +9 -9
- package/kits/skills/ec-trigger/references/examples.md +1 -1
- package/kits/skills/thread-ops/SKILL.md +10 -10
- package/kits/templates/system-fragments/channel.md +5 -5
- package/kits/templates/system-fragments/commands.md +7 -6
- package/kits/templates/system-fragments/directory-contacts.md +10 -3
- package/kits/templates/system-fragments/personal-assistant.md +22 -3
- package/kits/templates/system-fragments/reply.md +48 -28
- package/kits/templates/system-fragments/session.md +3 -10
- package/kits/templates/system-fragments/thread.md +5 -5
- package/package.json +4 -4
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
## 场景矩阵
|
|
20
20
|
|
|
21
|
-
默认角色分为 `private`、`group`、`paTeam
|
|
21
|
+
默认角色分为 `private`、`group`、`paTeam`。其中 `paTeam` 是兼容保留的配置键,实际表示“同 Owner 内部 Agent”默认:AUN 私聊中双方 agent.md 验签通过、类型为 `agent`,且新鲜 Ownership 共识确认同 Owner 时使用该独立默认;不再要求 `exttype=pa.*`。缺失/null 默认 member,不复用 private。真实 Owner 优先,显式关系角色优先于内部默认。资格失效会触发后续鉴权及工具执行重验,不批量改写关系配置;群聊和非 AUN 不适用。
|
|
22
22
|
|
|
23
23
|
| 场景 | 响应策略 | 工具可用性 |
|
|
24
24
|
|------|----------|-----------|
|
|
@@ -98,26 +98,36 @@
|
|
|
98
98
|
|
|
99
99
|
### manifest 默认段(按 order)
|
|
100
100
|
|
|
101
|
-
| order | id | 加载条件 |
|
|
101
|
+
| order | id | 加载条件 | 模板渲染 | section 名 / 内容 |
|
|
102
102
|
|-------|----|----|--------|------|
|
|
103
|
-
| 10 | rules | always | ✗ | `$KITS_RULES/`
|
|
104
|
-
|
|
|
105
|
-
|
|
|
106
|
-
|
|
|
107
|
-
|
|
|
108
|
-
|
|
|
109
|
-
|
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
|
|
|
113
|
-
|
|
|
114
|
-
|
|
|
115
|
-
|
|
|
116
|
-
|
|
|
117
|
-
|
|
|
118
|
-
|
|
|
119
|
-
|
|
|
120
|
-
|
|
|
103
|
+
| 10 | rules | always | ✗ | 核心规则 / 目录 `$KITS_RULES/` |
|
|
104
|
+
| 15 | bootstrap-guide | lifecycle=bootstrapping | ✓ | Bootstrap 引导 |
|
|
105
|
+
| 20 | identity-layer | chatType≠null | ✓ | 身份层 |
|
|
106
|
+
| 20.5 | skills-builtin | 缺文件则跳过 | ✗ | 内置技能 / `$AGENT_DIR/skills/.index-builtin.md` |
|
|
107
|
+
| 20.6 | skills-local | 缺文件则跳过 | ✗ | 本机技能 / `$AGENT_DIR/skills/.index-local.md` |
|
|
108
|
+
| 21 | soul | chatType≠null | ✗ | 常驻自我 / 目录 `$PERSONAL_DIR/soul`(`*.md`;骨架分册与空文件不注入,`00-GUIDE.md` 常驻) |
|
|
109
|
+
| 28 | owner-directory | hasOwnerDirectory=true | ✗ | Owner 名录 / `$AGENT_DIR/directory/directory.md`(渲染产物) |
|
|
110
|
+
| 29.4 | contacts-profile | hasOwnerDirectory=true 且 isPersonalAssistant≠true | ✓ | 联系人名录 |
|
|
111
|
+
| 29.5 | pa-profile | hasOwnerDirectory=true 且 isPersonalAssistant=true | ✓ | 个人助理 |
|
|
112
|
+
| 30 | relation-layer | chatType∈{private,group} | ✓ | 关系层 |
|
|
113
|
+
| 35 | memory | memoryEnableRelation≠false | ✓ | 记忆系统(按 sessionType 分支) |
|
|
114
|
+
| 36 | agent-memory | memoryEnableAgent≠false | ✗ | agent 记忆 / `$PERSONAL_DIR/memory/MEMORY.md` |
|
|
115
|
+
| 37 | owner-memory | ownerAid≠null | ✗ | Owner 记忆 / `$EVOLCORE_HOME/memory/owner/{{ownerAid}}/MEMORY.md` |
|
|
116
|
+
| 38 | relation-memory | peerKey≠null | ✗ | 对端记忆 / `$RELATIONS_DIR/{{peerKey}}/memory/MEMORY.md` |
|
|
117
|
+
| 40 | venue-fragment | chatType≠null | ✓ | 环境层 |
|
|
118
|
+
| 41 | venue-chattype | chatType≠null | ✗ | 场景环境 / `venues/{{chatType}}.md` |
|
|
119
|
+
| 42 | venue-channel-chattype | chatType≠null | ✗ | 渠道场景环境 / `venues/{{channel}}-{{chatType}}.md` |
|
|
120
|
+
| 42.5 | group-history | channel=aun 且 chatType=group 且 groupHistoryAvailable=true | ✓ | 群历史 |
|
|
121
|
+
| 43.2 | relation-group-rules | groupRulesPath≠null | ✗ | 群规则 / `$RELATIONS_DIR/{{peerKey}}/rules.md` |
|
|
122
|
+
| 44 | venue-client | clientType≠null | ✗ | 客户端环境 / `venues/client-{{clientType}}.md` |
|
|
123
|
+
| 46 | thread | chatType∈{private,group} | ✗ | 话题系统 |
|
|
124
|
+
| 49 | reply-contract | channel≠null 且 lifecycle∈{active,bootstrapping} | ✓ | 回复规则 |
|
|
125
|
+
| 50 | channel-layer | channel≠null | ✓ | 渠道层 |
|
|
126
|
+
| 55 | commands | channel≠null | ✓ | 命令集 |
|
|
127
|
+
| 60 | session | always | ✓ | 会话(含 localDate/weekday) |
|
|
128
|
+
| 70 | baseagent | baseAgent≠null | ✓ | base agent |
|
|
129
|
+
| 75 | bash-description | baseAgent∈{claude,ecagent} 且 lifecycle∈{active,bootstrapping} | ✓ | Bash 格式 |
|
|
130
|
+
| 80 | managed-runtime-notice | lifecycle=active | ✓ | 托管运行时(勿重复读 $KITS_RULES/ 与 CLAUDE.md 指令) |
|
|
121
131
|
|
|
122
132
|
### 输出结构
|
|
123
133
|
|
|
@@ -125,7 +135,7 @@
|
|
|
125
135
|
<system-reminder>
|
|
126
136
|
EvolCore Context Kit documents are shown below.
|
|
127
137
|
|
|
128
|
-
Contenu de $KITS_RULES/01-overview.md (rules —
|
|
138
|
+
Contenu de $KITS_RULES/01-overview.md (rules — 核心规则):
|
|
129
139
|
...(各 section 内容,按 order)
|
|
130
140
|
|
|
131
141
|
IMPORTANT: Use this context when it affects the current interaction.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"needsInjection": false,
|
|
12
12
|
"maxFileBytes": 16384,
|
|
13
13
|
"when": "always",
|
|
14
|
-
"description": "
|
|
14
|
+
"description": "核心规则"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"id": "auxiliary-role",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"order": 20,
|
|
21
21
|
"needsInjection": true,
|
|
22
22
|
"when": "always",
|
|
23
|
-
"description": "
|
|
23
|
+
"description": "辅助会话"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"id": "session",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"order": 60,
|
|
30
30
|
"needsInjection": true,
|
|
31
31
|
"when": "always",
|
|
32
|
-
"description": "
|
|
32
|
+
"description": "会话"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"id": "baseagent",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"order": 70,
|
|
39
39
|
"needsInjection": true,
|
|
40
40
|
"when": { "var": "baseAgent", "neq": null },
|
|
41
|
-
"description": "
|
|
41
|
+
"description": "base agent"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"id": "bash-description",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"order": 75,
|
|
48
48
|
"needsInjection": true,
|
|
49
49
|
"when": { "var": "baseAgent", "in": ["claude", "ecagent"] },
|
|
50
|
-
"description": "Bash
|
|
50
|
+
"description": "Bash 格式"
|
|
51
51
|
}
|
|
52
52
|
]
|
|
53
53
|
}
|
package/kits/eck_manifest.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"var": "lifecycle",
|
|
13
13
|
"eq": "active"
|
|
14
14
|
},
|
|
15
|
-
"description": "
|
|
15
|
+
"description": "核心规则"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"id": "bootstrap-guide",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"var": "lifecycle",
|
|
25
25
|
"eq": "bootstrapping"
|
|
26
26
|
},
|
|
27
|
-
"description": "Bootstrap
|
|
27
|
+
"description": "Bootstrap 引导"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"id": "identity-layer",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
|
-
"description": "
|
|
47
|
+
"description": "身份层"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"id": "skills-builtin",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"var": "lifecycle",
|
|
58
58
|
"eq": "active"
|
|
59
59
|
},
|
|
60
|
-
"description": "
|
|
60
|
+
"description": "内置技能"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"id": "skills-local",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"var": "lifecycle",
|
|
71
71
|
"eq": "active"
|
|
72
72
|
},
|
|
73
|
-
"description": "
|
|
73
|
+
"description": "本机技能"
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"id": "soul",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
}
|
|
97
97
|
]
|
|
98
98
|
},
|
|
99
|
-
"description": "
|
|
99
|
+
"description": "常驻自我"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"id": "owner-directory",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
}
|
|
118
118
|
]
|
|
119
119
|
},
|
|
120
|
-
"description": "Owner
|
|
120
|
+
"description": "Owner 名录与 PA Team"
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"id": "contacts-profile",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
},
|
|
145
|
-
"description": "
|
|
145
|
+
"description": "联系人名录"
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
"id": "pa-profile",
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
}
|
|
168
168
|
]
|
|
169
169
|
},
|
|
170
|
-
"description": "
|
|
170
|
+
"description": "个人助理"
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
"id": "relation-layer",
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
}
|
|
191
191
|
]
|
|
192
192
|
},
|
|
193
|
-
"description": "
|
|
193
|
+
"description": "关系层"
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
"id": "memory",
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
}
|
|
211
211
|
]
|
|
212
212
|
},
|
|
213
|
-
"description": "
|
|
213
|
+
"description": "记忆系统"
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
"id": "agent-memory",
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
}
|
|
231
231
|
]
|
|
232
232
|
},
|
|
233
|
-
"description": "agent
|
|
233
|
+
"description": "agent 记忆"
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
"id": "owner-memory",
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
}
|
|
255
255
|
]
|
|
256
256
|
},
|
|
257
|
-
"description": "
|
|
257
|
+
"description": "Owner 记忆"
|
|
258
258
|
},
|
|
259
259
|
{
|
|
260
260
|
"id": "relation-memory",
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
}
|
|
275
275
|
]
|
|
276
276
|
},
|
|
277
|
-
"description": "
|
|
277
|
+
"description": "对端记忆"
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
"id": "venue-fragment",
|
|
@@ -294,7 +294,7 @@
|
|
|
294
294
|
}
|
|
295
295
|
]
|
|
296
296
|
},
|
|
297
|
-
"description": "
|
|
297
|
+
"description": "环境层"
|
|
298
298
|
},
|
|
299
299
|
{
|
|
300
300
|
"id": "venue-chattype",
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
"and": [
|
|
307
307
|
{
|
|
308
308
|
"var": "chatType",
|
|
309
|
-
"
|
|
309
|
+
"in": ["private"]
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
312
|
"var": "lifecycle",
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
}
|
|
315
315
|
]
|
|
316
316
|
},
|
|
317
|
-
"description": "
|
|
317
|
+
"description": "场景环境(仅匹配 kits/docs/venues 下已有文档的 chatType;新增文档时同步此条件)"
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
320
|
"id": "venue-channel-chattype",
|
|
@@ -325,8 +325,20 @@
|
|
|
325
325
|
"when": {
|
|
326
326
|
"and": [
|
|
327
327
|
{
|
|
328
|
-
"
|
|
329
|
-
|
|
328
|
+
"or": [
|
|
329
|
+
{
|
|
330
|
+
"and": [
|
|
331
|
+
{ "var": "channel", "eq": "aun" },
|
|
332
|
+
{ "var": "chatType", "in": ["private"] }
|
|
333
|
+
]
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"and": [
|
|
337
|
+
{ "var": "channel", "eq": "feishu" },
|
|
338
|
+
{ "var": "chatType", "in": ["private", "group"] }
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
]
|
|
330
342
|
},
|
|
331
343
|
{
|
|
332
344
|
"var": "lifecycle",
|
|
@@ -334,7 +346,7 @@
|
|
|
334
346
|
}
|
|
335
347
|
]
|
|
336
348
|
},
|
|
337
|
-
"description": "
|
|
349
|
+
"description": "渠道场景环境(仅匹配 kits/docs/venues 下已有文档的渠道×chatType;新增文档时同步此条件)"
|
|
338
350
|
},
|
|
339
351
|
{
|
|
340
352
|
"id": "group-history",
|
|
@@ -362,7 +374,7 @@
|
|
|
362
374
|
}
|
|
363
375
|
]
|
|
364
376
|
},
|
|
365
|
-
"description": "
|
|
377
|
+
"description": "群历史"
|
|
366
378
|
},
|
|
367
379
|
{
|
|
368
380
|
"id": "relation-group-rules",
|
|
@@ -382,7 +394,7 @@
|
|
|
382
394
|
}
|
|
383
395
|
]
|
|
384
396
|
},
|
|
385
|
-
"description": "
|
|
397
|
+
"description": "群规则"
|
|
386
398
|
},
|
|
387
399
|
{
|
|
388
400
|
"id": "venue-client",
|
|
@@ -394,7 +406,7 @@
|
|
|
394
406
|
"and": [
|
|
395
407
|
{
|
|
396
408
|
"var": "clientType",
|
|
397
|
-
"
|
|
409
|
+
"in": ["desktop", "mobile"]
|
|
398
410
|
},
|
|
399
411
|
{
|
|
400
412
|
"var": "lifecycle",
|
|
@@ -402,7 +414,7 @@
|
|
|
402
414
|
}
|
|
403
415
|
]
|
|
404
416
|
},
|
|
405
|
-
"description": "
|
|
417
|
+
"description": "客户端环境(仅匹配 kits/docs/venues 下已有文档的 clientType;新增文档时同步此条件)"
|
|
406
418
|
},
|
|
407
419
|
{
|
|
408
420
|
"id": "thread",
|
|
@@ -425,7 +437,7 @@
|
|
|
425
437
|
}
|
|
426
438
|
]
|
|
427
439
|
},
|
|
428
|
-
"description": "
|
|
440
|
+
"description": "话题系统"
|
|
429
441
|
},
|
|
430
442
|
{
|
|
431
443
|
"id": "reply-contract",
|
|
@@ -448,7 +460,7 @@
|
|
|
448
460
|
}
|
|
449
461
|
]
|
|
450
462
|
},
|
|
451
|
-
"description": "
|
|
463
|
+
"description": "回复规则"
|
|
452
464
|
},
|
|
453
465
|
{
|
|
454
466
|
"id": "channel-layer",
|
|
@@ -468,7 +480,7 @@
|
|
|
468
480
|
}
|
|
469
481
|
]
|
|
470
482
|
},
|
|
471
|
-
"description": "
|
|
483
|
+
"description": "渠道层"
|
|
472
484
|
},
|
|
473
485
|
{
|
|
474
486
|
"id": "commands",
|
|
@@ -488,7 +500,7 @@
|
|
|
488
500
|
}
|
|
489
501
|
]
|
|
490
502
|
},
|
|
491
|
-
"description": "
|
|
503
|
+
"description": "命令集"
|
|
492
504
|
},
|
|
493
505
|
{
|
|
494
506
|
"id": "session",
|
|
@@ -500,7 +512,7 @@
|
|
|
500
512
|
"var": "lifecycle",
|
|
501
513
|
"eq": "active"
|
|
502
514
|
},
|
|
503
|
-
"description": "
|
|
515
|
+
"description": "会话"
|
|
504
516
|
},
|
|
505
517
|
{
|
|
506
518
|
"id": "baseagent",
|
|
@@ -520,7 +532,7 @@
|
|
|
520
532
|
}
|
|
521
533
|
]
|
|
522
534
|
},
|
|
523
|
-
"description": "
|
|
535
|
+
"description": "base agent"
|
|
524
536
|
},
|
|
525
537
|
{
|
|
526
538
|
"id": "bash-description",
|
|
@@ -540,7 +552,7 @@
|
|
|
540
552
|
}
|
|
541
553
|
]
|
|
542
554
|
},
|
|
543
|
-
"description": "Bash
|
|
555
|
+
"description": "Bash 格式"
|
|
544
556
|
},
|
|
545
557
|
{
|
|
546
558
|
"id": "managed-runtime-notice",
|
|
@@ -552,7 +564,7 @@
|
|
|
552
564
|
"var": "lifecycle",
|
|
553
565
|
"eq": "active"
|
|
554
566
|
},
|
|
555
|
-
"description": "
|
|
567
|
+
"description": "托管运行时"
|
|
556
568
|
}
|
|
557
569
|
]
|
|
558
570
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
|
-
"description": "
|
|
22
|
+
"description": "记忆系统"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"id": "memory-workflow",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"var": "lifecycle",
|
|
32
32
|
"eq": "active"
|
|
33
33
|
},
|
|
34
|
-
"description": "
|
|
34
|
+
"description": "整理流程"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"id": "memory-tags",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"var": "lifecycle",
|
|
44
44
|
"eq": "active"
|
|
45
45
|
},
|
|
46
|
-
"description": "
|
|
46
|
+
"description": "记忆标签"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"id": "soul",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"var": "lifecycle",
|
|
62
62
|
"eq": "active"
|
|
63
63
|
},
|
|
64
|
-
"description": "
|
|
64
|
+
"description": "常驻自我"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"id": "peer-profile",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
}
|
|
82
82
|
]
|
|
83
83
|
},
|
|
84
|
-
"description": "
|
|
84
|
+
"description": "对端画像"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"id": "owner-directory",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
]
|
|
104
104
|
},
|
|
105
|
-
"description": "Owner
|
|
105
|
+
"description": "Owner 名录与 PA Team"
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"id": "contacts-profile",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
}
|
|
128
128
|
]
|
|
129
129
|
},
|
|
130
|
-
"description": "
|
|
130
|
+
"description": "联系人名录"
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"id": "pa-profile",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
}
|
|
153
153
|
]
|
|
154
154
|
},
|
|
155
|
-
"description": "
|
|
155
|
+
"description": "个人助理"
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
"id": "memory-mode-notes",
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
}
|
|
173
173
|
]
|
|
174
174
|
},
|
|
175
|
-
"description": "notes
|
|
175
|
+
"description": "notes 模式"
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
"id": "memory-mode-generalize",
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
}
|
|
193
193
|
]
|
|
194
194
|
},
|
|
195
|
-
"description": "generalize
|
|
195
|
+
"description": "generalize 模式"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
"id": "memory-mode-promote",
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
}
|
|
213
213
|
]
|
|
214
214
|
},
|
|
215
|
-
"description": "promote
|
|
215
|
+
"description": "promote 模式"
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
"id": "memory-mode-profile",
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
}
|
|
233
233
|
]
|
|
234
234
|
},
|
|
235
|
-
"description": "profile
|
|
235
|
+
"description": "profile 模式"
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
"id": "memory-mode-forget",
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
}
|
|
253
253
|
]
|
|
254
254
|
},
|
|
255
|
-
"description": "forget
|
|
255
|
+
"description": "forget 模式"
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
"id": "agent-memory",
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
}
|
|
273
273
|
]
|
|
274
274
|
},
|
|
275
|
-
"description": "agent
|
|
275
|
+
"description": "agent 记忆"
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
"id": "owner-memory",
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
}
|
|
297
297
|
]
|
|
298
298
|
},
|
|
299
|
-
"description": "
|
|
299
|
+
"description": "Owner 记忆"
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
"id": "relation-memory",
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
}
|
|
317
317
|
]
|
|
318
318
|
},
|
|
319
|
-
"description": "
|
|
319
|
+
"description": "对端记忆"
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
322
|
"id": "session",
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
"var": "lifecycle",
|
|
329
329
|
"eq": "active"
|
|
330
330
|
},
|
|
331
|
-
"description": "
|
|
331
|
+
"description": "会话"
|
|
332
332
|
},
|
|
333
333
|
{
|
|
334
334
|
"id": "bash-description",
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
}
|
|
349
349
|
]
|
|
350
350
|
},
|
|
351
|
-
"description": "Bash
|
|
351
|
+
"description": "Bash 格式"
|
|
352
352
|
}
|
|
353
353
|
]
|
|
354
354
|
}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
|
-
"description": "[DEPRECATED]
|
|
51
|
+
"description": "[DEPRECATED] 跨话题发送的请求回复上下文渲染(handoff 已被 Thread Context 取代,见 docs/thread-chain/handoff-deprecation.md)"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
"id": "msg-handoff-context-to-target",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
}
|
|
75
75
|
]
|
|
76
76
|
},
|
|
77
|
-
"description": "[DEPRECATED]
|
|
77
|
+
"description": "[DEPRECATED] 跨话题发送的单次本地上下文渲染(handoff 已被 Thread Context 取代,见 docs/thread-chain/handoff-deprecation.md)"
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
"id": "msg-handoff-response-to-origin",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
}
|
|
97
97
|
]
|
|
98
98
|
},
|
|
99
|
-
"description": "[DEPRECATED]
|
|
99
|
+
"description": "[DEPRECATED] 跨话题发送的结果回流上下文渲染(handoff 已被 Thread Context 取代,见 docs/thread-chain/handoff-deprecation.md)"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"id": "msg-trigger-thread-check",
|
|
@@ -159,7 +159,7 @@ manifest schema、when 条件、合并覆盖、模板渲染、运行时变量目
|
|
|
159
159
|
命令会被拒绝——`ec` 只接受能确认为字面量的命令。
|
|
160
160
|
|
|
161
161
|
**正文本身含单引号时**,改用 bash ANSI-C quoting:`$'…'`。
|
|
162
|
-
内部支持转义:`\'` `\n` `\t` `\\`。例:`
|
|
162
|
+
内部支持转义:`\'` `\n` `\t` `\\`。例:`ecmsg send $'it\'s fine'`。
|
|
163
163
|
|
|
164
164
|
## 术语
|
|
165
165
|
|
package/kits/rules/06-channel.md
CHANGED
|
@@ -22,16 +22,15 @@
|
|
|
22
22
|
要点:
|
|
23
23
|
- **回复方式随实际 `chatMode` 走**,以 `[reply]` 段为准,不按对端类型或是否私聊推断:
|
|
24
24
|
- interactive:直接输出即回复
|
|
25
|
-
- proactive
|
|
26
|
-
-
|
|
27
|
-
- **以自己的 AID 为发送者**;拿不到时退回 `ec ctl send '<text>'`
|
|
25
|
+
- proactive:用 `ecmsg send` 正式回复,见 `[reply]` 段
|
|
26
|
+
- **发消息只有 `ecmsg` 一个入口**:文字、文件、图片、语音、链接、@某人、加密、联系第三方,全部用 `ecmsg send`。本端恒为当前会话本端,无需指定
|
|
28
27
|
|
|
29
28
|
### 命令返回值
|
|
30
29
|
|
|
31
30
|
判断成败**看 exit code**,别靠字符串前缀——各命令集格式不统一:
|
|
32
31
|
|
|
33
|
-
- `
|
|
34
|
-
- `
|
|
32
|
+
- `ecmsg send`(AUN 目标):成功 `✓ 已发送 from=… to=… thread=… message_id=… seq=…`;失败退出码非 0
|
|
33
|
+
- `ecmsg send`(非 AUN 渠道):成功 `✓ 已发送 … status=sent message_id=n/a`;该通道不返回 message_id
|
|
35
34
|
|
|
36
35
|
发送成功后**继续后续处理**。一次任务可能发 0 到多条消息不要因为看到"已发送"就反复发送同一条消息。
|
|
37
36
|
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
**重要**:遇到明确触发词(费用/用量/统计/创建/查群/远程 daemon 诊断/改配置/个人助理工作区入口调整等)时,优先查 `$KITS_DOCS/evolcore/INDEX.md`
|
|
41
40
|
或直接试对应 ec 命令。`[commands]` 段仅列常用命令,完整目录在 INDEX.md。
|
|
42
41
|
|
|
43
|
-
|
|
42
|
+
**发消息一律用 `ecmsg`**,它是唯一的发送入口。其余命令以 `ec` 为前缀。**运行时按当前场景(有无对端/群、对端角色)注入的精简能力卡由 `commands` fragment 决定**(见动态注入的 `[commands]` 段)。
|
|
44
43
|
|
|
45
44
|
**完整命令集目录(含分类、触发词、适用场景)**:`$KITS_DOCS/evolcore/INDEX.md`。
|
|
46
45
|
单个命令集的详细用法按需 Read 对应文档。
|
|
@@ -54,8 +53,8 @@
|
|
|
54
53
|
修改承载当前会话的 EvolCore 源码后,Agent 只负责构建并报告需要宿主重启;`ec agent reload` 只重载配置/soul/memory,不重载源码。
|
|
55
54
|
|
|
56
55
|
共同约定:
|
|
57
|
-
-
|
|
58
|
-
- 回复方式随 `chatMode` 走(见上方通信规则);附加能力(文件/@/加密/发第三方)任何模式下都用
|
|
56
|
+
- 发送只有 `ecmsg` 一个入口,本端恒为当前会话本端,不写 `--from`,也不需要知道自己的 AID
|
|
57
|
+
- 回复方式随 `chatMode` 走(见上方通信规则);附加能力(文件/@/加密/发第三方)任何模式下都用 `ecmsg`
|
|
59
58
|
- `--format json` / `--app <name>` **不是全局参数**:只在自身 `--help` 明确列出的命令上有效
|
|
60
59
|
(`--app` 主要用于消息 pull/ack、消费类 RPC 和支持 app slot 的文件操作)。拿不准就先跑 `--help`
|
|
61
60
|
|
package/kits/schemas/_meta.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemas": {
|
|
3
3
|
"providers": {
|
|
4
|
-
"currentVersion":
|
|
4
|
+
"currentVersion": 2
|
|
5
5
|
},
|
|
6
6
|
"daemon": {
|
|
7
7
|
"currentVersion": 9
|
|
@@ -64,6 +64,12 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"history": [
|
|
67
|
+
{
|
|
68
|
+
"schema": "providers",
|
|
69
|
+
"version": 2,
|
|
70
|
+
"date": "2026-11-06",
|
|
71
|
+
"description": "域名哈希稳定 Provider ID、规范域名和旧 ID 兼容映射"
|
|
72
|
+
},
|
|
67
73
|
{
|
|
68
74
|
"schema": "role-config",
|
|
69
75
|
"version": 2,
|