@starlink-awaken/agentmesh 1.0.0
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 +47 -0
- package/LICENSE +21 -0
- package/README.md +243 -0
- package/README.zh-CN.md +243 -0
- package/config/gateway.yaml +190 -0
- package/docs/api.md +566 -0
- package/package.json +74 -0
- package/src/adapters/base.ts +34 -0
- package/src/adapters/claude-code.ts +122 -0
- package/src/adapters/openclaw.ts +120 -0
- package/src/adapters/process.ts +136 -0
- package/src/cli.ts +284 -0
- package/src/core/agent-registry.ts +334 -0
- package/src/core/config.ts +148 -0
- package/src/core/context-manager.ts +210 -0
- package/src/core/event-bus.ts +76 -0
- package/src/core/metrics.ts +216 -0
- package/src/core/router.ts +105 -0
- package/src/core/task-manager.ts +248 -0
- package/src/core/vector-store.ts +203 -0
- package/src/index.ts +84 -0
- package/src/routes/api.ts +158 -0
- package/src/routes/websocket.ts +91 -0
- package/src/types/index.ts +90 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
port: 3000
|
|
2
|
+
wsPort: 3001
|
|
3
|
+
host: "0.0.0.0"
|
|
4
|
+
dataDir: "./data"
|
|
5
|
+
logDir: "./logs"
|
|
6
|
+
|
|
7
|
+
routing:
|
|
8
|
+
defaultAgent: "claude-code"
|
|
9
|
+
|
|
10
|
+
rules:
|
|
11
|
+
# Claude Code - 通用代码任务
|
|
12
|
+
- name: code-generation
|
|
13
|
+
keywords:
|
|
14
|
+
- write code
|
|
15
|
+
- generate code
|
|
16
|
+
- create function
|
|
17
|
+
- create class
|
|
18
|
+
- 写代码
|
|
19
|
+
- 生成代码
|
|
20
|
+
agent: claude-code
|
|
21
|
+
priority: 10
|
|
22
|
+
|
|
23
|
+
- name: code-review
|
|
24
|
+
keywords:
|
|
25
|
+
- review
|
|
26
|
+
- code review
|
|
27
|
+
- pr review
|
|
28
|
+
- review code
|
|
29
|
+
- 代码审查
|
|
30
|
+
- review code
|
|
31
|
+
agent: claude-code
|
|
32
|
+
priority: 15
|
|
33
|
+
|
|
34
|
+
- name: debugging
|
|
35
|
+
keywords:
|
|
36
|
+
- debug
|
|
37
|
+
- fix bug
|
|
38
|
+
- error
|
|
39
|
+
- bug
|
|
40
|
+
- 调试
|
|
41
|
+
- 修复错误
|
|
42
|
+
agent: claude-code
|
|
43
|
+
priority: 15
|
|
44
|
+
|
|
45
|
+
- name: refactoring
|
|
46
|
+
keywords:
|
|
47
|
+
- refactor
|
|
48
|
+
- 重构
|
|
49
|
+
- improve code
|
|
50
|
+
agent: claude-code
|
|
51
|
+
priority: 10
|
|
52
|
+
|
|
53
|
+
- name: documentation
|
|
54
|
+
keywords:
|
|
55
|
+
- docs
|
|
56
|
+
- document
|
|
57
|
+
- 文档
|
|
58
|
+
- write docs
|
|
59
|
+
agent: claude-code
|
|
60
|
+
priority: 10
|
|
61
|
+
|
|
62
|
+
# OpenClaw - 浏览器自动化
|
|
63
|
+
- name: browser-automation
|
|
64
|
+
keywords:
|
|
65
|
+
- browser
|
|
66
|
+
- scrape
|
|
67
|
+
- click
|
|
68
|
+
- screenshot
|
|
69
|
+
- web automation
|
|
70
|
+
- 浏览器
|
|
71
|
+
- 爬虫
|
|
72
|
+
- 截图
|
|
73
|
+
agent: openclaw
|
|
74
|
+
priority: 15
|
|
75
|
+
|
|
76
|
+
- name: web-scraping
|
|
77
|
+
keywords:
|
|
78
|
+
- scrap
|
|
79
|
+
- crawl
|
|
80
|
+
- extract data
|
|
81
|
+
- 抓取
|
|
82
|
+
- 采集
|
|
83
|
+
agent: openclaw
|
|
84
|
+
priority: 15
|
|
85
|
+
|
|
86
|
+
# Cursor - AI 编程
|
|
87
|
+
- name: cursor-task
|
|
88
|
+
keywords:
|
|
89
|
+
- cursor
|
|
90
|
+
- cursor task
|
|
91
|
+
agent: cursor
|
|
92
|
+
priority: 12
|
|
93
|
+
|
|
94
|
+
# Windsurf - Flow 状态编程
|
|
95
|
+
- name: windsurf-task
|
|
96
|
+
keywords:
|
|
97
|
+
- windsurf
|
|
98
|
+
- flow state
|
|
99
|
+
agent: windsurf
|
|
100
|
+
priority: 12
|
|
101
|
+
|
|
102
|
+
# Qwen Code - 中文编程
|
|
103
|
+
- name: qwen-task
|
|
104
|
+
keywords:
|
|
105
|
+
- qwen
|
|
106
|
+
- 通义千问
|
|
107
|
+
agent: qwen-code
|
|
108
|
+
priority: 12
|
|
109
|
+
|
|
110
|
+
# Gemini - 多模态
|
|
111
|
+
- name: gemini-task
|
|
112
|
+
keywords:
|
|
113
|
+
- gemini
|
|
114
|
+
- multimodal
|
|
115
|
+
- 多模态
|
|
116
|
+
agent: gemini
|
|
117
|
+
priority: 12
|
|
118
|
+
|
|
119
|
+
# Droid - Android 开发
|
|
120
|
+
- name: android-development
|
|
121
|
+
keywords:
|
|
122
|
+
- android
|
|
123
|
+
- apk
|
|
124
|
+
- mobile
|
|
125
|
+
- 安卓
|
|
126
|
+
- 手机应用
|
|
127
|
+
agent: droid
|
|
128
|
+
priority: 15
|
|
129
|
+
|
|
130
|
+
# Aider - Git 集成编辑
|
|
131
|
+
- name: aider-task
|
|
132
|
+
keywords:
|
|
133
|
+
- aider
|
|
134
|
+
- git edit
|
|
135
|
+
- refactor git
|
|
136
|
+
agent: aider
|
|
137
|
+
priority: 12
|
|
138
|
+
|
|
139
|
+
# Cline - 自主编程
|
|
140
|
+
- name: cline-task
|
|
141
|
+
keywords:
|
|
142
|
+
- cline
|
|
143
|
+
- autonomous
|
|
144
|
+
agent: cline
|
|
145
|
+
priority: 12
|
|
146
|
+
|
|
147
|
+
# Roo Code
|
|
148
|
+
- name: roo-code-task
|
|
149
|
+
keywords:
|
|
150
|
+
- roo-code
|
|
151
|
+
- roo
|
|
152
|
+
agent: roo-code
|
|
153
|
+
priority: 12
|
|
154
|
+
|
|
155
|
+
# 多 Agent 协作
|
|
156
|
+
- name: multi-agent
|
|
157
|
+
keywords:
|
|
158
|
+
- collaborate
|
|
159
|
+
- team
|
|
160
|
+
- together
|
|
161
|
+
- multiple agents
|
|
162
|
+
- 协作
|
|
163
|
+
- 多个
|
|
164
|
+
strategy: broadcast
|
|
165
|
+
agents:
|
|
166
|
+
- claude-code
|
|
167
|
+
- openclaw
|
|
168
|
+
priority: 20
|
|
169
|
+
|
|
170
|
+
agents:
|
|
171
|
+
# 内置 Agent(在代码中注册)
|
|
172
|
+
- id: claude-code
|
|
173
|
+
name: Claude Code
|
|
174
|
+
type: claude-code
|
|
175
|
+
capabilities:
|
|
176
|
+
- code-generation
|
|
177
|
+
- code-review
|
|
178
|
+
- debugging
|
|
179
|
+
- refactoring
|
|
180
|
+
- documentation
|
|
181
|
+
- file-operations
|
|
182
|
+
|
|
183
|
+
- id: openclaw
|
|
184
|
+
name: OpenClaw
|
|
185
|
+
type: openclaw
|
|
186
|
+
capabilities:
|
|
187
|
+
- browser-automation
|
|
188
|
+
- web-scraping
|
|
189
|
+
- form-filling
|
|
190
|
+
- ui-testing
|