evolclaw 3.1.3 → 3.1.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 +17 -0
- package/assets/.env.template +4 -0
- package/assets/config.json.template +6 -0
- package/assets/wechat-group-qr.jpeg +0 -0
- package/dist/agents/kit-renderer.js +35 -21
- package/dist/aun/aid/agentmd.js +25 -54
- package/dist/aun/aid/client.js +22 -7
- package/dist/aun/aid/identity.js +314 -28
- package/dist/aun/aid/index.js +1 -1
- package/dist/aun/rpc/connection.js +8 -13
- package/dist/channels/aun.js +31 -72
- package/dist/cli/agent.js +15 -22
- package/dist/cli/bench.js +8 -14
- package/dist/cli/help.js +23 -0
- package/dist/cli/index.js +371 -36
- package/dist/cli/init-channel.js +2 -3
- package/dist/cli/link-rules.js +2 -1
- package/dist/cli/net-check.js +10 -11
- package/dist/core/command-handler.js +6 -7
- package/dist/core/message/message-processor.js +19 -18
- package/dist/core/relation/peer-identity.js +64 -21
- package/dist/core/session/session-manager.js +6 -2
- package/dist/core/trigger/manager.js +37 -0
- package/dist/index.js +4 -1
- package/dist/paths.js +87 -16
- package/dist/utils/npm-ops.js +18 -11
- package/kits/eck_manifest.json +8 -8
- package/kits/rules/05-venue.md +2 -2
- package/kits/templates/system-fragments/baseagent.md +7 -1
- package/kits/templates/system-fragments/channel.md +4 -1
- package/kits/templates/system-fragments/identity.md +4 -4
- package/kits/templates/system-fragments/relation.md +8 -5
- package/kits/templates/system-fragments/session.md +20 -0
- package/kits/templates/system-fragments/venue.md +4 -1
- package/package.json +4 -2
- package/dist/net-check.js +0 -640
- package/dist/watch-msg.js +0 -544
- package/kits/templates/system-fragments/eckruntime.md +0 -14
package/kits/eck_manifest.json
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"order": 20,
|
|
18
18
|
"needsInjection": true,
|
|
19
19
|
"when": {
|
|
20
|
-
"var": "
|
|
21
|
-
"neq":
|
|
20
|
+
"var": "chatType",
|
|
21
|
+
"neq": null
|
|
22
22
|
},
|
|
23
23
|
"description": "身份层:我是谁"
|
|
24
24
|
},
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"order": 30,
|
|
30
30
|
"needsInjection": true,
|
|
31
31
|
"when": {
|
|
32
|
-
"var": "
|
|
32
|
+
"var": "chatType",
|
|
33
33
|
"in": ["private", "group"]
|
|
34
34
|
},
|
|
35
35
|
"description": "关系层:跟我聊天的是谁"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"var": "chatType",
|
|
57
57
|
"neq": null
|
|
58
58
|
},
|
|
59
|
-
"description": "
|
|
59
|
+
"description": "环境层:当前对话场景"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"id": "channel-layer",
|
|
@@ -68,16 +68,16 @@
|
|
|
68
68
|
"var": "channel",
|
|
69
69
|
"neq": null
|
|
70
70
|
},
|
|
71
|
-
"description": "
|
|
71
|
+
"description": "渠道层:通信渠道及能力"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
"id": "
|
|
74
|
+
"id": "session",
|
|
75
75
|
"type": "file",
|
|
76
|
-
"file": "$PACKAGE_ROOT/kits/templates/system-fragments/
|
|
76
|
+
"file": "$PACKAGE_ROOT/kits/templates/system-fragments/session.md",
|
|
77
77
|
"order": 60,
|
|
78
78
|
"needsInjection": true,
|
|
79
79
|
"when": "always",
|
|
80
|
-
"description": "
|
|
80
|
+
"description": "会话层:当前会话实例状态"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"id": "baseagent",
|
package/kits/rules/05-venue.md
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
[baseagent]
|
|
2
|
-
|
|
2
|
+
baseAgentName: {{baseAgentName}} # 底层推理引擎(Claude Code / Codex / Gemini CLI)
|
|
3
|
+
{{?baseAgentModel}}
|
|
4
|
+
baseAgentModel: {{baseAgentModel}}
|
|
5
|
+
{{/}}
|
|
6
|
+
{{?agentSessionId}}
|
|
7
|
+
agentSessionId: {{agentSessionId}} # 底层引擎的会话 ID(区别于 evolclaw sessionId)
|
|
8
|
+
{{/}}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
[channel]
|
|
2
|
-
channel: {{channel}}
|
|
2
|
+
channel: {{channel}} # 渠道类型:aun|feishu|wechat|dingtalk|qqbot|wecom
|
|
3
|
+
{{?capabilities}}
|
|
4
|
+
capabilities: {{capabilities}} # 当前渠道支持的能力
|
|
5
|
+
{{/}}
|
|
3
6
|
{{?peerId}}
|
|
4
7
|
{{?channel=aun}}
|
|
5
8
|
ec msg send {{selfAid}} {{peerId}} "<text>" [--encrypt] [--file <path> --as image|video|voice|file] [--link <url> --title "<title>"] [--payload '<json>']
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
[identity]
|
|
2
2
|
{{?selfAid}}
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
selfName: {{selfName}}
|
|
4
|
+
selfAid: {{selfAid}}
|
|
5
5
|
{{/}}
|
|
6
6
|
{{?hasPersona}}
|
|
7
|
-
|
|
7
|
+
hasPersona: active
|
|
8
8
|
{{/}}
|
|
9
9
|
{{?hasWorkingMemory}}
|
|
10
|
-
|
|
10
|
+
hasWorkingMemory: active
|
|
11
11
|
{{/}}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{{?peerKey}}
|
|
2
2
|
[relation]
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
peerName: {{peerName}}
|
|
4
|
+
peerId: {{peerId}} # 对端在当前渠道内的原生 ID
|
|
5
|
+
peerRole: {{peerRole}} # owner|admin|guest|anonymous
|
|
6
|
+
{{?peerType}}
|
|
7
|
+
peerType: {{peerType}} # human 或 agent
|
|
8
|
+
{{/}}
|
|
9
|
+
peerKey: {{peerKey}} # 跨渠道唯一标识,格式 channel#urlEncode(peerId)
|
|
7
10
|
{{/}}
|
|
8
11
|
{{?groupId}}
|
|
9
12
|
[relation]
|
|
10
|
-
|
|
13
|
+
groupId: {{groupId}}
|
|
11
14
|
{{/}}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[session]
|
|
2
|
+
project: {{project}} # 项目目录名
|
|
3
|
+
CURRENT_PROJECT: {{CURRENT_PROJECT}} # 项目完整路径
|
|
4
|
+
sessionId: {{sessionId}} # evolclaw 会话 ID
|
|
5
|
+
{{?sessionName}}
|
|
6
|
+
sessionName: {{sessionName}}
|
|
7
|
+
{{/}}
|
|
8
|
+
sessionCreatedAt: {{sessionCreatedAt}}
|
|
9
|
+
chatMode: {{chatMode}} # interactive=同步对话 / proactive=主动推送(输出静默)
|
|
10
|
+
{{?threadId}}
|
|
11
|
+
threadId: {{threadId}} # 同一会话内的子话题 ID(多话题路由时)
|
|
12
|
+
{{/}}
|
|
13
|
+
{{?readonly}}
|
|
14
|
+
readonly: true — 禁止修改项目文件,如需生成文件请写入 .evolclaw/tmp/
|
|
15
|
+
{{/}}
|
|
16
|
+
{{?chatMode=proactive}}
|
|
17
|
+
# proactive 模式:文本输出静默丢弃,必须用以下命令发消息
|
|
18
|
+
proactive-send: evolclaw ctl send "<text>"
|
|
19
|
+
proactive-file: evolclaw ctl file <path>
|
|
20
|
+
{{/}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "evolclaw",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"description": "Lightweight AI Agent gateway connecting Claude Agent SDK to messaging channels (Feishu, ACP) with multi-project session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"files": [
|
|
12
12
|
"dist/",
|
|
13
13
|
"bin/",
|
|
14
|
+
"assets/",
|
|
14
15
|
"!dist/experimental/",
|
|
15
16
|
"kits/",
|
|
16
17
|
"!kits/.kits-version",
|
|
@@ -29,9 +30,10 @@
|
|
|
29
30
|
"prepublishOnly": "npm run build && npm test"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
|
-
"@agentunion/fastaun": "^0.3.
|
|
33
|
+
"@agentunion/fastaun": "^0.3.3",
|
|
33
34
|
"@anthropic-ai/claude-agent-sdk": "^0.2.100",
|
|
34
35
|
"cron-parser": "^5.5.0",
|
|
36
|
+
"dotenv": "^17.4.2",
|
|
35
37
|
"image-type": "^6.0.0",
|
|
36
38
|
"qrcode-terminal": "^0.12.0"
|
|
37
39
|
},
|