@link-assistant/hive-mind 1.72.2 → 1.72.3
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 +6 -0
- package/package.json +2 -1
- package/src/i18n.lib.mjs +35 -32
- package/src/locales/en.lino +878 -310
- package/src/locales/hi.lino +878 -310
- package/src/locales/ru.lino +878 -310
- package/src/locales/zh.lino +878 -310
package/src/locales/zh.lino
CHANGED
|
@@ -1,312 +1,880 @@
|
|
|
1
1
|
zh
|
|
2
|
-
error
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
error
|
|
3
|
+
label "错误"
|
|
4
|
+
invalid
|
|
5
|
+
github
|
|
6
|
+
url
|
|
7
|
+
label "错误:GitHub URL 格式无效"
|
|
8
|
+
monitoring "错误:用于监控的 GitHub URL 无效"
|
|
9
|
+
solve "错误:solve 命令的 GitHub URL 无效"
|
|
10
|
+
url
|
|
11
|
+
type "错误:GitHub URL 格式无效"
|
|
12
|
+
language "无效的语言 '{{value}}'。支持的语言:{{supported}}"
|
|
13
|
+
missing
|
|
14
|
+
required
|
|
15
|
+
url "错误:缺少必需的 GitHub issue 或 pull request URL"
|
|
16
|
+
unable
|
|
17
|
+
determine
|
|
18
|
+
version "错误:无法确定版本"
|
|
19
|
+
url
|
|
20
|
+
type
|
|
21
|
+
not
|
|
22
|
+
supported "URL 类型 '{{type}}' 不受支持"
|
|
23
|
+
failed
|
|
24
|
+
to
|
|
25
|
+
get
|
|
26
|
+
current
|
|
27
|
+
user "错误:无法获取当前用户"
|
|
28
|
+
branch "无法获取当前分支"
|
|
29
|
+
default
|
|
30
|
+
branch "无法获取默认分支名称"
|
|
31
|
+
initialize
|
|
32
|
+
repository "错误:无法初始化仓库"
|
|
33
|
+
create
|
|
34
|
+
fork "多次重试后仍无法创建 fork"
|
|
35
|
+
add
|
|
36
|
+
upstream
|
|
37
|
+
remote "无法添加 upstream 远程仓库"
|
|
38
|
+
pr
|
|
39
|
+
fork
|
|
40
|
+
remote "无法添加 pr-fork 远程仓库"
|
|
41
|
+
checkout "无法切换到 {{branch}}"
|
|
42
|
+
sync "无法将 {{branch}} 与 upstream 同步"
|
|
43
|
+
fetch
|
|
44
|
+
upstream "无法从 upstream 获取数据"
|
|
45
|
+
from
|
|
46
|
+
pr
|
|
47
|
+
fork "无法从 pr-fork 获取数据"
|
|
48
|
+
fork
|
|
49
|
+
not
|
|
50
|
+
accessible "Fork 已存在但多次重试后仍无法访问"
|
|
51
|
+
pr
|
|
52
|
+
does
|
|
53
|
+
not
|
|
54
|
+
exist "错误:PR #{{prNumber}} 在 {{owner}}/{{repo}} 中不存在"
|
|
55
|
+
youtrack
|
|
56
|
+
url
|
|
57
|
+
detected
|
|
58
|
+
no
|
|
59
|
+
config "错误:检测到 YouTrack URL 但未找到 YouTrack 配置"
|
|
60
|
+
telegram
|
|
61
|
+
bot
|
|
62
|
+
token
|
|
63
|
+
not
|
|
64
|
+
set "错误:未设置 TELEGRAM_BOT_TOKEN 环境变量或 --token 选项"
|
|
65
|
+
success
|
|
66
|
+
label "成功"
|
|
67
|
+
readme
|
|
68
|
+
created "README.md 创建成功"
|
|
69
|
+
process
|
|
70
|
+
completed "进程已完成"
|
|
71
|
+
error
|
|
72
|
+
reported
|
|
73
|
+
to
|
|
74
|
+
sentry "错误已成功上报到 Sentry"
|
|
75
|
+
language
|
|
76
|
+
set "语言已设置为 {{language}}"
|
|
77
|
+
warning
|
|
78
|
+
label "警告"
|
|
79
|
+
session
|
|
80
|
+
log
|
|
81
|
+
not
|
|
82
|
+
found "警告:未找到会话 {{session}} 的日志,但将继续尝试恢复"
|
|
83
|
+
failed
|
|
84
|
+
to
|
|
85
|
+
create
|
|
86
|
+
readme "失败:无法创建 README.md"
|
|
87
|
+
fetch
|
|
88
|
+
branches "警告:无法从远程获取分支"
|
|
89
|
+
could
|
|
90
|
+
not
|
|
91
|
+
determine
|
|
92
|
+
root
|
|
93
|
+
repository "无法确定根仓库"
|
|
94
|
+
token
|
|
95
|
+
scopes "警告:无法从认证状态确定令牌范围"
|
|
96
|
+
check
|
|
97
|
+
fork
|
|
98
|
+
status "警告:无法检查 fork 状态:{{message}}"
|
|
99
|
+
github
|
|
100
|
+
permissions "警告:无法检查 GitHub 权限:{{message}}"
|
|
101
|
+
convert
|
|
102
|
+
pr
|
|
103
|
+
draft
|
|
104
|
+
status "警告:无法检查/转换 PR 草稿状态"
|
|
105
|
+
search
|
|
106
|
+
for
|
|
107
|
+
existing
|
|
108
|
+
prs "警告:无法搜索现有的 PR:{{message}}"
|
|
109
|
+
get
|
|
110
|
+
current
|
|
111
|
+
user "警告:无法获取当前 GitHub 用户"
|
|
112
|
+
convert
|
|
113
|
+
pr
|
|
114
|
+
to
|
|
115
|
+
draft "警告:无法将 PR 转换为草稿"
|
|
116
|
+
ready
|
|
117
|
+
label "警告:无法将 PR 转换为就绪状态"
|
|
118
|
+
status "警告:无法将 PR 状态转换为就绪"
|
|
119
|
+
post
|
|
120
|
+
work
|
|
121
|
+
start
|
|
122
|
+
comment "警告:无法发布工作开始评论"
|
|
123
|
+
end
|
|
124
|
+
comment "警告:无法发布工作结束评论"
|
|
125
|
+
assign
|
|
126
|
+
user "无法分配用户"
|
|
127
|
+
no
|
|
128
|
+
linked
|
|
129
|
+
issue
|
|
130
|
+
found "警告:在 PR 内容中未找到关联的 issue"
|
|
131
|
+
error
|
|
132
|
+
during
|
|
133
|
+
auto
|
|
134
|
+
pr
|
|
135
|
+
creation "警告:自动创建 PR 时出错:{{message}}"
|
|
136
|
+
pr
|
|
137
|
+
created
|
|
138
|
+
but
|
|
139
|
+
no
|
|
140
|
+
url "警告:已创建 PR 但未返回 URL"
|
|
5
141
|
failed "失败"
|
|
6
|
-
info
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
telegram
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
142
|
+
info
|
|
143
|
+
label "信息"
|
|
144
|
+
expected
|
|
145
|
+
github
|
|
146
|
+
url
|
|
147
|
+
format "预期格式:https://github.com/owner 或 https://github.com/owner/repo"
|
|
148
|
+
you
|
|
149
|
+
can
|
|
150
|
+
use
|
|
151
|
+
formats "您可以使用以下任意格式:"
|
|
152
|
+
format
|
|
153
|
+
https
|
|
154
|
+
owner
|
|
155
|
+
label "- https://github.com/owner"
|
|
156
|
+
repo "- https://github.com/owner/repo"
|
|
157
|
+
http
|
|
158
|
+
owner "- http://github.com/owner(将转换为 https)"
|
|
159
|
+
github
|
|
160
|
+
owner "- github.com/owner(将添加 https://)"
|
|
161
|
+
owner
|
|
162
|
+
label "- owner(将转换为 https://github.com/owner)"
|
|
163
|
+
repo "- owner/repo(将转换为 https://github.com/owner/repo)"
|
|
164
|
+
full
|
|
165
|
+
log
|
|
166
|
+
file "完整日志文件:{{path}}"
|
|
167
|
+
process
|
|
168
|
+
exited
|
|
169
|
+
with
|
|
170
|
+
code "进程退出代码:{{code}}"
|
|
171
|
+
current
|
|
172
|
+
configuration "当前配置:"
|
|
173
|
+
process
|
|
174
|
+
using
|
|
175
|
+
repository
|
|
176
|
+
fallback "使用按仓库回退方式处理 {{scope}}:{{owner}}"
|
|
177
|
+
fetching
|
|
178
|
+
repository
|
|
179
|
+
list "正在获取仓库列表……"
|
|
180
|
+
command "命令:{{command}}"
|
|
181
|
+
check
|
|
182
|
+
number "检查 #{{iteration}}:"
|
|
183
|
+
time
|
|
184
|
+
current "当前时间:{{time}}"
|
|
185
|
+
limits
|
|
186
|
+
additional
|
|
187
|
+
codex
|
|
188
|
+
limits "其他 Codex 限额"
|
|
189
|
+
balance "余额"
|
|
190
|
+
claude
|
|
191
|
+
5
|
|
192
|
+
hour
|
|
193
|
+
session "Claude 5 小时会话"
|
|
194
|
+
limits "Claude 限额"
|
|
195
|
+
codex
|
|
196
|
+
5
|
|
197
|
+
hour
|
|
198
|
+
session "Codex 5 小时会话"
|
|
199
|
+
credits "Codex 点数"
|
|
200
|
+
limits "Codex 限额"
|
|
201
|
+
cpu
|
|
202
|
+
label "CPU"
|
|
203
|
+
cores
|
|
204
|
+
used "已用 CPU 核心"
|
|
205
|
+
current
|
|
206
|
+
time "当前时间"
|
|
207
|
+
week
|
|
208
|
+
all
|
|
209
|
+
models "本周(所有模型)"
|
|
210
|
+
sonnet
|
|
211
|
+
only "本周(仅 Sonnet)"
|
|
212
|
+
disabled
|
|
213
|
+
by
|
|
214
|
+
admin "`--show-limits` 已被机器人管理员禁用。"
|
|
215
|
+
disk
|
|
216
|
+
space "磁盘空间"
|
|
217
|
+
duration
|
|
218
|
+
day
|
|
219
|
+
short "天"
|
|
220
|
+
hour
|
|
221
|
+
short "小时"
|
|
222
|
+
minute
|
|
223
|
+
short "分钟"
|
|
224
|
+
second
|
|
225
|
+
short "秒"
|
|
226
|
+
end "结束"
|
|
227
|
+
five
|
|
228
|
+
hour
|
|
229
|
+
session "5 小时会话"
|
|
230
|
+
min
|
|
231
|
+
load
|
|
232
|
+
avg "5 分钟平均负载"
|
|
233
|
+
github
|
|
234
|
+
api "GitHub API"
|
|
235
|
+
limits
|
|
236
|
+
at
|
|
237
|
+
end "结束时限额"
|
|
238
|
+
start "开始时限额"
|
|
239
|
+
change "限额变化"
|
|
240
|
+
na "不可用"
|
|
241
|
+
note
|
|
242
|
+
delta
|
|
243
|
+
approx "注意:变化值为近似值(并行会话共享同一预算)。"
|
|
244
|
+
passed "已过"
|
|
245
|
+
plan "方案"
|
|
246
|
+
ram "内存"
|
|
247
|
+
reason
|
|
248
|
+
claude
|
|
249
|
+
5
|
|
250
|
+
hour
|
|
251
|
+
session "Claude 5 小时会话限额为 {{currentPercent}}%(阈值:{{thresholdPercent}})"
|
|
252
|
+
running "Claude 进程已在运行"
|
|
253
|
+
weekly "Claude 每周限额为 {{currentPercent}}%(阈值:{{thresholdPercent}})"
|
|
254
|
+
codex
|
|
255
|
+
5
|
|
256
|
+
hour
|
|
257
|
+
session "Codex 5 小时会话限额为 {{currentPercent}}%(阈值:{{thresholdPercent}})"
|
|
258
|
+
running "Codex 进程已在运行"
|
|
259
|
+
weekly "Codex 每周限额为 {{currentPercent}}%(阈值:{{thresholdPercent}})"
|
|
260
|
+
cpu
|
|
261
|
+
usage "CPU 使用率为 {{currentPercent}}%(阈值:{{thresholdPercent}})"
|
|
262
|
+
disk
|
|
263
|
+
usage "磁盘使用率为 {{currentPercent}}%(阈值:{{thresholdPercent}})"
|
|
264
|
+
gemini
|
|
265
|
+
running "Gemini CLI 进程已在运行"
|
|
266
|
+
github
|
|
267
|
+
api "GitHub API 使用率为 {{currentPercent}}%(阈值:{{thresholdPercent}})"
|
|
268
|
+
min
|
|
269
|
+
interval "尚未达到命令之间的最小间隔"
|
|
270
|
+
qwen
|
|
271
|
+
running "Qwen Code 进程已在运行"
|
|
272
|
+
ram
|
|
273
|
+
usage "内存使用率为 {{currentPercent}}%(阈值:{{thresholdPercent}})"
|
|
274
|
+
threshold
|
|
275
|
+
exceeded "{{metric}} 超过阈值"
|
|
276
|
+
remaining "剩余 {{duration}}"
|
|
277
|
+
requests "请求"
|
|
278
|
+
resets
|
|
279
|
+
at "{{time}} 重置"
|
|
280
|
+
in "{{duration}} 后重置"
|
|
281
|
+
resource
|
|
282
|
+
limit
|
|
283
|
+
exceeded "资源限额已超出"
|
|
284
|
+
solve
|
|
285
|
+
queue
|
|
286
|
+
status "Solve 队列状态"
|
|
287
|
+
queue
|
|
288
|
+
completed "已完成"
|
|
289
|
+
failed "失败"
|
|
290
|
+
and
|
|
291
|
+
more "还有 {{count}} 个"
|
|
292
|
+
pending "等待"
|
|
293
|
+
processing "处理中"
|
|
294
|
+
processes "{{count}} 个进程"
|
|
295
|
+
status
|
|
296
|
+
cancelled "已取消"
|
|
297
|
+
failed "失败"
|
|
298
|
+
queued "已排队"
|
|
299
|
+
started "已启动"
|
|
300
|
+
starting "正在启动"
|
|
301
|
+
waiting "等待中"
|
|
302
|
+
waiting
|
|
303
|
+
current
|
|
304
|
+
command "等待当前命令"
|
|
305
|
+
in
|
|
306
|
+
queue "在队列中等待"
|
|
307
|
+
queues "队列"
|
|
308
|
+
seven
|
|
309
|
+
day
|
|
310
|
+
all
|
|
311
|
+
models "7 天所有模型"
|
|
312
|
+
sonnet
|
|
313
|
+
only "7 天仅 Sonnet"
|
|
314
|
+
session "会话"
|
|
315
|
+
start "开始"
|
|
316
|
+
subscription
|
|
317
|
+
ends
|
|
318
|
+
label "订阅结束于 {{time}}"
|
|
319
|
+
in "订阅将在 {{duration}} 后结束 ({{time}})"
|
|
320
|
+
status "订阅: {{status}}"
|
|
321
|
+
trial
|
|
322
|
+
ends
|
|
323
|
+
label "试用结束于 {{time}}"
|
|
324
|
+
in "试用将在 {{duration}} 后结束 ({{time}})"
|
|
325
|
+
unavailable "不可用"
|
|
326
|
+
unlimited "无限"
|
|
327
|
+
used "已用"
|
|
328
|
+
week "周"
|
|
329
|
+
weekly "每周"
|
|
330
|
+
telegram
|
|
331
|
+
fetching
|
|
332
|
+
limits "🔄 正在获取使用限额……"
|
|
333
|
+
gathering
|
|
334
|
+
version "🔄 正在收集版本信息……"
|
|
335
|
+
usage
|
|
336
|
+
limits
|
|
337
|
+
title "📊 *使用限额*"
|
|
338
|
+
version
|
|
339
|
+
information
|
|
340
|
+
title "🤖 *版本信息*"
|
|
341
|
+
only
|
|
342
|
+
in
|
|
343
|
+
groups "❌ /version 命令仅在群聊中有效。请将本机器人加入群组并设为管理员。"
|
|
344
|
+
formatting
|
|
345
|
+
fallback
|
|
346
|
+
warning "⚠️ 检测到格式错误。正在显示纯文本备用内容。"
|
|
347
|
+
limits
|
|
348
|
+
only
|
|
349
|
+
in
|
|
350
|
+
groups "❌ /limits 命令仅在群聊中有效。请将本机器人加入群组并设为管理员。"
|
|
351
|
+
solve
|
|
352
|
+
only
|
|
353
|
+
in
|
|
354
|
+
groups "❌ {{commandDisplay}} 命令仅在群聊中有效。请将本机器人加入群组并设为管理员。"
|
|
355
|
+
queue
|
|
356
|
+
only
|
|
357
|
+
in
|
|
358
|
+
groups "❌ /solve_queue 命令仅在群聊中有效。请将本机器人加入群组并设为管理员。"
|
|
359
|
+
disabled "❌ 此机器人实例已禁用 solve 命令。"
|
|
360
|
+
rejected """
|
|
361
|
+
❌ Solve 命令被拒绝。
|
|
362
|
+
|
|
363
|
+
{{infoBlock}}
|
|
364
|
+
|
|
365
|
+
🚫 原因:{{reason}}
|
|
366
|
+
"""
|
|
367
|
+
queued "📋 solve 命令已入队({{tool}} 队列位置 #{{position}})"
|
|
368
|
+
waiting "⏳ 等待中({{tool}} 队列 #{{position}})"
|
|
369
|
+
invalid
|
|
370
|
+
url
|
|
371
|
+
help """
|
|
372
|
+
示例:`/solve https://github.com/owner/repo/issues/123`
|
|
373
|
+
|
|
374
|
+
也可以回复包含 GitHub 链接的消息并发送 `/solve`
|
|
375
|
+
"""
|
|
376
|
+
hive
|
|
377
|
+
only
|
|
378
|
+
in
|
|
379
|
+
groups "❌ /hive 命令仅在群聊中有效。请将本机器人加入群组并设为管理员。"
|
|
380
|
+
disabled "❌ 此机器人实例已禁用 /hive 命令。"
|
|
381
|
+
invalid
|
|
382
|
+
url
|
|
383
|
+
help "示例:`/hive https://github.com/owner/repo`"
|
|
384
|
+
no
|
|
385
|
+
label "❌ 否"
|
|
386
|
+
github
|
|
387
|
+
link
|
|
388
|
+
in
|
|
389
|
+
reply """
|
|
390
|
+
❌ 被回复的消息中未找到 GitHub issue/PR 链接。
|
|
391
|
+
|
|
392
|
+
示例:使用 `/solve` 回复包含 GitHub issue 链接的消息
|
|
393
|
+
|
|
394
|
+
或带选项:`/solve --model opus`
|
|
395
|
+
"""
|
|
396
|
+
invalid
|
|
397
|
+
options """
|
|
398
|
+
❌ 无效选项:{{message}}
|
|
399
|
+
|
|
400
|
+
使用 /help 查看可用选项
|
|
401
|
+
"""
|
|
402
|
+
isolation "❌ 无效的 --isolation 值 '{{value}}'。必须是:screen、tmux 或 docker"
|
|
403
|
+
locked
|
|
404
|
+
isolation "❌ 无效的锁定 --isolation 值 '{{value}}'。必须是:screen、tmux 或 docker"
|
|
405
|
+
option
|
|
406
|
+
syntax
|
|
407
|
+
check "请检查您的选项语法。"
|
|
408
|
+
url
|
|
409
|
+
status
|
|
410
|
+
active """
|
|
411
|
+
❌ 此 URL 状态为 {{statusText}}。
|
|
412
|
+
|
|
413
|
+
URL:{{url}}
|
|
414
|
+
状态:{{status}}
|
|
415
|
+
|
|
416
|
+
💡 使用 /solve_queue 查看队列状态。
|
|
417
|
+
"""
|
|
418
|
+
session
|
|
419
|
+
running """
|
|
420
|
+
❌ 该 URL 已有正在运行的工作会话。
|
|
421
|
+
|
|
422
|
+
URL:{{url}}
|
|
423
|
+
会话:`{{session}}`
|
|
424
|
+
|
|
425
|
+
💡 等待当前会话完成,或使用 /solve\_stop 取消。
|
|
426
|
+
"""
|
|
427
|
+
issues
|
|
428
|
+
list
|
|
429
|
+
error """
|
|
430
|
+
URL 指向 issue 列表页,但需要具体的 issue
|
|
431
|
+
|
|
432
|
+
💡 修复方法:
|
|
433
|
+
1. 打开仓库:{{url}}
|
|
434
|
+
2. 点击一个具体 issue
|
|
435
|
+
3. 复制 URL(应以 /issues/NUMBER 结尾)
|
|
436
|
+
|
|
437
|
+
示例:`{{example}}`
|
|
438
|
+
"""
|
|
439
|
+
pulls
|
|
440
|
+
list
|
|
441
|
+
error """
|
|
442
|
+
URL 指向 pull request 列表页,但需要具体的 pull request
|
|
443
|
+
|
|
444
|
+
💡 修复方法:
|
|
445
|
+
1. 打开仓库:{{url}}
|
|
446
|
+
2. 点击一个具体 pull request
|
|
447
|
+
3. 复制 URL(应以 /pull/NUMBER 结尾)
|
|
448
|
+
|
|
449
|
+
示例:`{{example}}`
|
|
450
|
+
"""
|
|
451
|
+
repo
|
|
452
|
+
error """
|
|
453
|
+
URL 指向仓库,但需要具体的 {{allowedTypes}}
|
|
454
|
+
|
|
455
|
+
💡 修复方法:
|
|
456
|
+
1. 前往:{{url}}/issues
|
|
457
|
+
2. 点击要解决的 issue
|
|
458
|
+
3. 使用包含 issue 编号的完整 URL
|
|
459
|
+
|
|
460
|
+
示例:`{{example}}`
|
|
461
|
+
"""
|
|
462
|
+
must
|
|
463
|
+
be
|
|
464
|
+
type "URL 必须是 GitHub {{allowedTypes}}(不是 {{type}})"
|
|
465
|
+
language
|
|
466
|
+
invalid """
|
|
467
|
+
❌ 语言无效。支持的语言:{{supported}}。
|
|
468
|
+
用法:/language <代码>
|
|
469
|
+
"""
|
|
470
|
+
set "✅ 语言已设置为 *{{language}}*。"
|
|
471
|
+
current """
|
|
472
|
+
🌐 当前语言:*{{language}}*。
|
|
473
|
+
支持的语言:{{supported}}。
|
|
474
|
+
用法:/language <代码>
|
|
475
|
+
"""
|
|
476
|
+
yes "✅ 是"
|
|
477
|
+
info
|
|
478
|
+
requested
|
|
479
|
+
by
|
|
480
|
+
label "请求者"
|
|
481
|
+
issue
|
|
482
|
+
label "Issue"
|
|
483
|
+
pull
|
|
484
|
+
request
|
|
485
|
+
label "Pull request"
|
|
486
|
+
url
|
|
487
|
+
label "URL"
|
|
488
|
+
options
|
|
489
|
+
label "🛠 选项"
|
|
490
|
+
locked
|
|
491
|
+
options
|
|
492
|
+
label "🔒 锁定选项"
|
|
493
|
+
help
|
|
494
|
+
title "🤖 *SwarmMindBot 帮助*"
|
|
495
|
+
status
|
|
496
|
+
stopped "🛑 *机器人状态:已停止*"
|
|
497
|
+
reason "原因:{{reason}}"
|
|
498
|
+
stopped "停止时间:{{stoppedAt}}"
|
|
499
|
+
resume "使用 /start(仅聊天所有者)恢复。"
|
|
500
|
+
diagnostic
|
|
501
|
+
information "📋 *诊断信息:*"
|
|
502
|
+
chat
|
|
503
|
+
id "• 聊天 ID:`{{chatId}}`"
|
|
504
|
+
type "• 聊天类型:{{chatType}}"
|
|
505
|
+
title "• 聊天标题:{{chatTitle}}"
|
|
506
|
+
topic
|
|
507
|
+
id "• 话题 ID:`{{topicId}}`"
|
|
508
|
+
available
|
|
509
|
+
commands "📝 *可用命令:*"
|
|
510
|
+
solve
|
|
511
|
+
enabled "*/solve*(别名:*/do*、*/continue*、*/claude*、*/codex*、*/opencode*、*/agent*、*/gemini*、*/qwen*)- 解决 GitHub issue"
|
|
512
|
+
usage "用法:`/solve <github-url> [options]`"
|
|
513
|
+
example "示例:`/solve https://github.com/owner/repo/issues/123 --model sonnet`"
|
|
514
|
+
alias
|
|
515
|
+
detail "工具别名会添加 `--tool <tool>`:`/codex <github-url>` 等同于 `/solve <github-url> --tool codex`"
|
|
516
|
+
reply "也可以回复包含 GitHub 链接的消息:`/solve`"
|
|
517
|
+
disabled "*/solve*(别名:*/do*、*/continue*、*/claude*、*/codex*、*/opencode*、*/agent*、*/gemini*、*/qwen*)- ❌ 已禁用"
|
|
518
|
+
queue "`/solve_queue` - 显示 solve 队列状态"
|
|
519
|
+
locked
|
|
520
|
+
options "🔒 锁定选项:`{{options}}`"
|
|
521
|
+
task
|
|
522
|
+
enabled "*/task* - 根据仓库链接和 issue 文本创建 GitHub issue"
|
|
523
|
+
usage "用法:`/task <github-repository-url>` 后接 issue 文本,或回复 `/task`"
|
|
524
|
+
example "示例:`/task https://github.com/owner/repo`,然后在后续行写 issue 文本"
|
|
525
|
+
disabled "*/task* / */split* - ❌ 已禁用"
|
|
526
|
+
split
|
|
527
|
+
enabled "*/split* - 将 GitHub issue 拆分为更小的 issue"
|
|
528
|
+
usage "用法:`/split <github-issue-url> [options]` 或 `/task --split <github-issue-url>`"
|
|
529
|
+
example "示例:`/split https://github.com/owner/repo/issues/123 --split-count 2`"
|
|
530
|
+
hive
|
|
531
|
+
enabled "*/hive* - 运行 hive 命令"
|
|
532
|
+
usage "用法:`/hive <github-url> [options]`"
|
|
533
|
+
example "示例:`/hive https://github.com/owner/repo`"
|
|
534
|
+
disabled "*/hive* - ❌ 已禁用"
|
|
535
|
+
limits "*/limits* - 显示使用限额"
|
|
536
|
+
version "*/version* - 显示机器人和运行时版本"
|
|
537
|
+
language "*/language* `[en|ru|zh|hi]` - 设置或显示首选回复语言(内存中,按用户)"
|
|
538
|
+
accept
|
|
539
|
+
invites "`/accept_invites` - 接受所有待处理的 GitHub 邀请"
|
|
540
|
+
merge
|
|
541
|
+
label "*/merge* - 合并队列(实验性)"
|
|
542
|
+
usage "用法:`/merge <github-repo-url>`"
|
|
543
|
+
description "按顺序合并所有带有 'ready' 标签的 PR。"
|
|
544
|
+
subscribe "*/subscribe* / */unsubscribe* - 🔔 私聊转发 /solve 完成通知(实验性,#1688)"
|
|
545
|
+
help "*/help* - 显示此帮助消息"
|
|
546
|
+
stop
|
|
547
|
+
start "*/stop* / */start* - 停止或恢复接收新任务(仅所有者)"
|
|
548
|
+
uuid "*/stop* `<uuid>` - 向隔离的 solve/hive 会话发送 CTRL+C(仅所有者)。也可回复包含 UUID 的消息。"
|
|
549
|
+
log "*/log* - 获取隔离会话日志(仅所有者)。用法:`/log <uuid>` 或回复 `/log`"
|
|
550
|
+
terminal
|
|
551
|
+
watch "*/terminal\\_watch*(别名:*/watch*)- 实时更新隔离会话日志(聊天所有者或会话请求者)。用法:`/terminal_watch <uuid>`、`/watch <uuid>`,或用任一命令回复"
|
|
552
|
+
notifications "🔔 *会话通知:* 完成通知会自动发送;使用 /subscribe 获取私聊转发。"
|
|
553
|
+
isolation
|
|
554
|
+
mode "🔒 *隔离模式:* `{{isolationBackend}}`(实验性)"
|
|
555
|
+
group
|
|
556
|
+
note "⚠️ *注意:* /solve、/do、/continue、/claude、/codex、/opencode、/agent、/gemini、/qwen、/task、/split、/hive、/solve\\_queue、/limits、/version、/accept\\_invites、/merge、/stop 和 /start 仅在群聊中有效。/terminal\\_watch、/watch、/subscribe 和 /unsubscribe 在私聊和群聊中有效。"
|
|
557
|
+
common
|
|
558
|
+
options "🔧 *常用选项:*"
|
|
559
|
+
model
|
|
560
|
+
option "• `--model <model>` 或 `-m` - {{modelDescription}}"
|
|
561
|
+
base
|
|
562
|
+
branch
|
|
563
|
+
option "• `--base-branch <branch>` 或 `-b` - PR 目标分支(默认:仓库默认分支)"
|
|
564
|
+
think
|
|
565
|
+
option "• `--think <level>` - 思考级别(off/low/medium/high/xhigh/max)| `--thinking-budget <num>` - token 预算(0-63999)"
|
|
566
|
+
verbose
|
|
567
|
+
option "• `--verbose` 或 `-v` - 详细输出 | `--attach-logs` - 将日志附加到 PR"
|
|
568
|
+
show
|
|
569
|
+
limits
|
|
570
|
+
option "• `--show-limits` - 实验性:在开始、结束和变化量中嵌入 Claude/Codex 使用情况(#594)"
|
|
571
|
+
tip "💡 *提示:* 还有更多选项。完整列表见文档。"
|
|
572
|
+
restricted
|
|
573
|
+
mode "🔒 *受限模式:* 已授权:{{authorized}}"
|
|
574
|
+
allow
|
|
575
|
+
topic
|
|
576
|
+
hint "💡 要允许此话题:`{{allowTopicHint}}`"
|
|
577
|
+
troubleshooting
|
|
578
|
+
header "🔧 *故障排查:*"
|
|
579
|
+
body """
|
|
580
|
+
如果机器人没有收到消息:
|
|
581
|
+
1. 在 @BotFather 中检查 privacy mode
|
|
582
|
+
• 向 @BotFather 发送 `/setprivacy`
|
|
583
|
+
• 为你的机器人选择 'Disable'
|
|
584
|
+
• 将机器人移出群组后重新加入
|
|
585
|
+
2. 或将机器人设为群组管理员
|
|
586
|
+
3. 使用 `--verbose` 标志重启机器人以诊断
|
|
587
|
+
"""
|
|
588
|
+
waiting
|
|
589
|
+
label "⏳ 等待"
|
|
590
|
+
reason
|
|
591
|
+
label "原因"
|
|
592
|
+
did
|
|
593
|
+
you
|
|
594
|
+
mean "💡 你是指:`{{suggestion}}`"
|
|
595
|
+
missing
|
|
596
|
+
github
|
|
597
|
+
url "缺少 GitHub URL。用法:/{{commandName}} <github-url> [options]"
|
|
598
|
+
first
|
|
599
|
+
arg
|
|
600
|
+
must
|
|
601
|
+
be
|
|
602
|
+
github
|
|
603
|
+
url "第一个参数必须是 GitHub URL"
|
|
604
|
+
work
|
|
605
|
+
session
|
|
606
|
+
starting "🔄 正在启动..."
|
|
607
|
+
executing "⏳ 正在执行..."
|
|
608
|
+
finished "工作会话已成功完成"
|
|
609
|
+
failed "工作会话失败(退出代码:{{exitCode}})"
|
|
610
|
+
duration
|
|
611
|
+
label "耗时"
|
|
612
|
+
session
|
|
613
|
+
label "会话"
|
|
614
|
+
isolation
|
|
615
|
+
label "隔离"
|
|
616
|
+
error
|
|
617
|
+
executing
|
|
618
|
+
command "❌ 执行 {{commandName}} 命令时出错"
|
|
619
|
+
language
|
|
620
|
+
en "英语"
|
|
621
|
+
ru "俄语"
|
|
622
|
+
zh "中文"
|
|
623
|
+
hi "印地语"
|
|
624
|
+
version
|
|
625
|
+
ai
|
|
626
|
+
agents "AI 代理"
|
|
627
|
+
browsers "浏览器"
|
|
628
|
+
browser
|
|
629
|
+
automation "浏览器自动化"
|
|
630
|
+
connected "已连接"
|
|
631
|
+
development
|
|
632
|
+
tools "开发工具"
|
|
633
|
+
environment "环境"
|
|
634
|
+
architecture "架构"
|
|
635
|
+
kernel "内核"
|
|
636
|
+
not
|
|
637
|
+
connected "未连接"
|
|
638
|
+
os "操作系统"
|
|
639
|
+
platform "平台"
|
|
640
|
+
process
|
|
641
|
+
running
|
|
642
|
+
restart
|
|
643
|
+
needed "正在运行的进程:`{{processVersion}}`(需要重启)"
|
|
644
|
+
system "系统"
|
|
645
|
+
version "版本"
|
|
646
|
+
prompt
|
|
647
|
+
user
|
|
648
|
+
issue
|
|
649
|
+
to
|
|
650
|
+
solve "要解决的问题:{{issueUrl}}"
|
|
651
|
+
linked
|
|
652
|
+
to
|
|
653
|
+
pr "要解决的问题:与 PR #{{prNumber}} 关联的问题"
|
|
654
|
+
prepared
|
|
655
|
+
branch "为你准备的分支:{{branchName}}"
|
|
656
|
+
working
|
|
657
|
+
directory "为你准备的工作目录:{{tempDir}}"
|
|
658
|
+
tmp
|
|
659
|
+
directory "为你准备的临时目录(用于日志和下载):{{workspaceTmpDir}}"
|
|
660
|
+
pull
|
|
661
|
+
request "为你准备的 Pull Request:{{prUrl}}"
|
|
662
|
+
forked
|
|
663
|
+
repository "你的 fork 仓库:{{forkedRepo}}"
|
|
664
|
+
original
|
|
665
|
+
repository "原始仓库(upstream):{{owner}}/{{repo}}"
|
|
666
|
+
fork
|
|
667
|
+
actions
|
|
668
|
+
url "你 fork 上的 GitHub Actions:{{forkActionsUrl}}"
|
|
669
|
+
continue "继续。"
|
|
670
|
+
proceed "开始。"
|
|
671
|
+
system
|
|
672
|
+
intro "你是一个 AI 问题解决助手。当你研究问题时,优先进行根因分析。当你交流时,优先使用你亲自验证过的事实,或引用提供证据的来源(如引用代码或文档/网页链接)。当你不确定或基于假设时,自行验证或提出澄清问题。"
|
|
673
|
+
workspace
|
|
674
|
+
instructions """
|
|
675
|
+
工作区临时目录。
|
|
676
|
+
- 将 {{workspaceTmpDir}} 用于所有临时文件、日志和下载。
|
|
677
|
+
- 将命令输出保存到文件时,保存到 {{workspaceTmpDir}}/command-output.log。
|
|
678
|
+
- 下载 CI 日志时,保存到 {{workspaceTmpDir}}/ci-logs/。
|
|
679
|
+
- 保存供审阅的 diff 时,保存到 {{workspaceTmpDir}}/diffs/。
|
|
680
|
+
- 创建调试文件时,保存到 {{workspaceTmpDir}}/debug/。
|
|
681
|
+
"""
|
|
682
|
+
general
|
|
683
|
+
guidelines
|
|
684
|
+
header "通用准则。"
|
|
685
|
+
body """
|
|
686
|
+
- 当你执行的命令输出变得很大时,将日志保存到文件以便复查。
|
|
687
|
+
- 当你运行命令时,不要自行设置超时。让它们按需运行。默认 2 分钟超时通常足够,命令完成后再查看文件中的日志。
|
|
688
|
+
- 当你运行 sudo 命令(尤其是 apt-get、yum 或 npm install 等包安装)时,请在后台运行以避免超时和需要终止进程时的权限错误。使用 run_in_background 参数或在命令末尾追加 &。
|
|
689
|
+
"""
|
|
690
|
+
purpose
|
|
691
|
+
subagent " - 当任务很大且需要处理许多文件或文件夹时,使用 `general-purpose` 子代理来委派工作。每个单独的文件或文件夹都可以委派给一个子代理以更高效地处理。"
|
|
692
|
+
issue
|
|
693
|
+
reporting " - 当你在工作期间发现与主要任务无关的错误、bug 或小问题时,如果尚不存在则创建 issue 进行跟踪。Issue 应包含可复现的示例、最小可复现示例(如可能)、变通方法以及代码修复建议。对于当前仓库的 issue,使用 gh issue create --repo {{owner}}/{{repo}} --title \"标题\" --body \"描述\"。对于工作仓库使用的第三方 GitHub 仓库的 issue,使用 gh issue create --repo owner/repo --title \"标题\" --body \"描述\"。当可能存在类似 issue 时,先用 gh issue list --repo owner/repo --search \"关键词\" 查询以避免重复。如果已存在类似 issue,使用 gh issue comment <issue-number> --repo owner/repo --body \"评论文本\" 添加评论,描述你的具体情况,包括去除个人和敏感数据的匿名日志、复现步骤、最小可复现示例(如适用)、变通方法和修复建议。"
|
|
694
|
+
ci
|
|
695
|
+
investigation """
|
|
696
|
+
- 当 CI 失败或用户报告失败时,考虑在 todo 列表中加入详细调查协议:
|
|
697
|
+
第 1 步:使用以下命令列出近期运行(含时间戳):gh run list --repo {{owner}}/{{repo}} --branch {{branchName}} --limit 5 --json databaseId,conclusion,createdAt,headSha
|
|
698
|
+
第 2 步:通过检查时间戳和 SHA 验证运行是否在最新提交之后
|
|
699
|
+
第 3 步:对每个未通过的运行,下载日志以保留:gh run view {run-id} --repo {{owner}}/{{repo}} --log > ci-logs/{workflow}-{run-id}.log
|
|
700
|
+
第 4 步:使用 Read 工具读取每个下载的日志文件以了解实际失败
|
|
701
|
+
第 5 步:报告发现,包括日志中的具体错误和行号
|
|
702
|
+
当用户提到 CI 失败、要求查看日志、看到未通过状态或在收尾 PR 时,这种详细调查尤其有用。
|
|
703
|
+
注意:如果用户说"失败"但工具显示"通过",可能是数据陈旧——下载新日志并检查时间戳以解决差异。
|
|
704
|
+
"""
|
|
705
|
+
examples """
|
|
706
|
+
使用工作区临时目录的 CI 调查。
|
|
707
|
+
- 当下载 CI 运行日志时:
|
|
708
|
+
gh run view RUN_ID --repo {{owner}}/{{repo}} --log > {{workspaceTmpDir}}/ci-logs/run-RUN_ID.log
|
|
709
|
+
- 当下载失败作业日志时:
|
|
710
|
+
gh run view RUN_ID --repo {{owner}}/{{repo}} --log-failed > {{workspaceTmpDir}}/ci-logs/run-RUN_ID-failed.log
|
|
711
|
+
- 当列出 CI 运行详情时:
|
|
712
|
+
gh run list --repo {{owner}}/{{repo}} --branch {{branchName}} --limit 5 --json databaseId,conclusion,createdAt,headSha > {{workspaceTmpDir}}/ci-logs/recent-runs.json
|
|
713
|
+
- 当保存 PR diff 用于审阅时:
|
|
714
|
+
gh pr diff {{prNumber}} --repo {{owner}}/{{repo}} > {{workspaceTmpDir}}/diffs/pr-{{prNumber}}.diff
|
|
715
|
+
- 当保存命令输出连同 stderr 时:
|
|
716
|
+
npm test 2>&1 | tee {{workspaceTmpDir}}/test-output.log
|
|
717
|
+
- 当调查 issue 详情时:
|
|
718
|
+
gh issue view {{issueNumber}} --repo {{owner}}/{{repo}} --json body,comments > {{workspaceTmpDir}}/issue-{{issueNumber}}.json
|
|
719
|
+
"""
|
|
720
|
+
large
|
|
721
|
+
files " - 当代码或日志文件超过 1500 行时,按 1500 行为一段进行阅读。"
|
|
722
|
+
complex
|
|
723
|
+
problems " - 当面对复杂问题时,尽可能多地添加跟踪并打开所有详细模式。"
|
|
724
|
+
divide
|
|
725
|
+
and
|
|
726
|
+
conquer " - 当遇到极其困难的事情时,使用分而治之的方法。"
|
|
727
|
+
initial
|
|
728
|
+
research
|
|
729
|
+
header "初步研究。"
|
|
730
|
+
body """
|
|
731
|
+
- 当你开始时,为自己制定详细计划,并按 todo 列表逐步执行。尽可能将本指南中相关的要点加入 todo 列表,以便清晰跟踪工作。
|
|
732
|
+
- 当用户提到 CI 失败或要求调查日志时,考虑添加这些 todo:(1) 列出近期 CI 运行及时间戳;(2) 将失败运行的日志下载到 ci-logs/ 目录;(3) 分析错误信息并定位根因;(4) 实施修复;(5) 验证修复解决了日志中的具体错误。
|
|
733
|
+
- 当你阅读 issue 时,仔细阅读所有细节和评论。
|
|
734
|
+
- 当你在 issue 描述、PR 描述、评论或讨论中看到截图或图片时,先将图片下载为本地文件,然后用 Read 工具查看和分析。在用 Read 读取下载的图片之前,使用 file 等 CLI 工具确认它确实是图片而非 HTML。当损坏或非图片文件(例如保存为 .png 的 GitHub "Not Found" 页面)被读取时,可能引发 "Could not process image" 错误并导致 AI 解决器进程崩溃。当 file 命令显示 "HTML"、"text" 或 "ASCII text" 时,下载失败——不要对该文件调用 Read。改为:(1) 当图片来自 GitHub issue 或 PR(例如 URL 包含 "github.com/user-attachments"),重试:curl -L -H "Authorization: token $(gh auth token)" -o <文件名> "<url>";(2) 当重试仍失败,跳过该图片并注明不可用。
|
|
735
|
+
- 当你需要 issue 详情时,使用 gh issue view https://github.com/{{owner}}/{{repo}}/issues/{{issueNumber}}。
|
|
736
|
+
- 当你需要相关代码时,使用 gh search code --owner {{owner}} [关键词]。
|
|
737
|
+
- 当你需要仓库上下文时,阅读你工作目录中的文件。
|
|
738
|
+
"""
|
|
739
|
+
tail """
|
|
740
|
+
- 当 issue 描述不够清晰时,写评论提出澄清问题。
|
|
741
|
+
- 当访问 GitHub Gists(尤其是私有的)时,使用 gh gist view 命令而非直接 URL fetch,以确保正确的身份验证。
|
|
742
|
+
- 当你修复 bug 时,先找出真正的根因并进行尽可能多的实验。
|
|
743
|
+
- 当你修复 bug 而代码缺乏足够的跟踪或日志时,添加它们并保留在代码中(默认关闭)。
|
|
744
|
+
- 当你需要 PR 上的评论时,请注意 GitHub 有三种不同的评论类型,每种都有不同的 API 端点:
|
|
745
|
+
1. PR 审阅评论(内联代码评论):gh api repos/{{owner}}/{{repo}}/pulls/{{prNumber}}/comments --paginate
|
|
746
|
+
2. PR 对话评论(一般讨论):gh api repos/{{owner}}/{{repo}}/issues/{{prNumber}}/comments --paginate
|
|
747
|
+
3. PR 审阅(批准/请求更改):gh api repos/{{owner}}/{{repo}}/pulls/{{prNumber}}/reviews --paginate
|
|
748
|
+
注意:命令 "gh pr view --json comments" 仅返回对话评论,会遗漏审阅评论。
|
|
749
|
+
- 当你需要 issue 上的最新评论时,使用 gh api repos/{{owner}}/{{repo}}/issues/{{issueNumber}}/comments --paginate。
|
|
750
|
+
"""
|
|
751
|
+
explore
|
|
752
|
+
subagent " - 当你需要了解代码库结构、模式或工作原理时,使用 Task 工具并设置 subagent_type=Explore 来彻底探索代码库。"
|
|
753
|
+
check
|
|
754
|
+
sibling
|
|
755
|
+
prs " - 当你研究相关工作时,研究最近的相关 pull request。"
|
|
756
|
+
case
|
|
757
|
+
studies " - 当你处理此 issue 时,在 ./docs/case-studies/issue-{{issueNumber}}/ 目录创建全面的案例研究。将与该 issue 相关的所有日志和数据下载到仓库。进行深入案例分析:在线搜索更多事实和数据,重建事件时间线,找出问题根因,并提出可能的解决方案。包含 README.md(执行摘要、问题陈述、时间线、根因)、TECHNICAL_SUMMARY.md(深度技术分析)、ANALYSIS.md(详细调查发现)、improvements.md(建议方案)和支持的日志/数据文件。"
|
|
758
|
+
solution
|
|
759
|
+
development """
|
|
760
|
+
解决方案的开发与测试。
|
|
761
|
+
- 当问题可解时,先创建复现该问题的测试,然后实施修复。
|
|
762
|
+
- 当实现功能时,在代码库中搜索相似的现有实现,并将其作为示例,而不是从零开始重写一切。
|
|
763
|
+
- 当编码时,将每个独立有用的原子步骤提交到 PR 分支,以便中断的工作仍保留在 PR 中。
|
|
764
|
+
- 当你测试时:
|
|
765
|
+
从用单独脚本测试小函数开始;
|
|
766
|
+
使用带 mock 的单元测试快速起步。
|
|
767
|
+
- 当你测试集成时,使用现有框架。
|
|
768
|
+
- 当你测试解决方案草稿时,将自动检查纳入 PR。
|
|
769
|
+
- 当你编写或修改测试时,考虑在测试、套件和 CI 作业级别设置合理的超时,使失败迅速暴露而非挂起。
|
|
770
|
+
- 当你看到 CI 中重复的测试超时模式时,调查根因而不是增加超时。
|
|
771
|
+
- 当 issue 不清楚时,写评论提出问题。
|
|
772
|
+
- 当你遇到无法自行解决的问题且需要人类协助时,写评论到 PR 请求帮助。
|
|
773
|
+
- 当你需要人类帮助时,使用 gh pr comment {{prNumber}} --body "你的消息" 在现有 PR 上发表评论。
|
|
774
|
+
"""
|
|
775
|
+
reproducible
|
|
776
|
+
testing """
|
|
777
|
+
可复现测试。
|
|
778
|
+
- 当修复 bug 时,在实施修复之前创建复现该问题的测试。如果无法复现问题,就无法验证修复。
|
|
779
|
+
- 当遇到逻辑 bug 时,编写一个因 bug 而失败的自动化测试,然后实施修复使其通过。
|
|
780
|
+
- 当遇到 UI bug 时,捕获显示问题状态的截图,然后在修复后创建视觉回归测试或人工验证截图。
|
|
781
|
+
- 当创建测试时,优先使用最小可复现示例,即演示该问题的最简测试用例。
|
|
782
|
+
- 当提交修复时,在 PR 描述中包含:(1) 如何复现问题;(2) 验证修复的自动化测试;(3) UI 问题的修复前/后截图。
|
|
783
|
+
- 当 bug 修复没有复现测试时,将该修复视为不完整,因为以后可能在无人察觉时发生回归。
|
|
784
|
+
"""
|
|
785
|
+
preparing
|
|
786
|
+
pr """
|
|
787
|
+
准备 pull request。
|
|
788
|
+
- 当你编码时,遵循贡献指南。
|
|
789
|
+
- 当你提交时,写清晰的提交消息。
|
|
790
|
+
- 当你需要风格示例时,使用 gh pr list --repo {{owner}}/{{repo}} --state merged --search [关键词]。
|
|
791
|
+
- 当你打开 PR 时,描述解决方案草稿并附带测试。
|
|
792
|
+
- 当存在带版本号和自动发布 GitHub Actions 工作流的包时,在 PR 中更新版本号(或必要的发布触发条件)以为下次发布做准备。
|
|
793
|
+
- 当你更新已有的 PR {{prNumber}} 时,使用 gh pr edit 修改标题和描述。
|
|
794
|
+
- 当你即将提交或推送代码时,先在本地运行 CI 检查(如 ruff check、mypy、eslint 等),以便在推送前发现错误。
|
|
795
|
+
- 当你完成 pull request 时:
|
|
796
|
+
在代码、标题和描述上沿用已合并 PR 的风格,
|
|
797
|
+
检查没有遗留与原始需求相对应的未提交更改,
|
|
798
|
+
检查默认分支已合并到 PR 分支,
|
|
799
|
+
在结束前检查所有 CI 检查(如有)已通过,
|
|
800
|
+
检查 issue 与 PR 上最新评论以确保未遗漏近期反馈,
|
|
801
|
+
仔细复核 PR 中所有变更确实满足 issue 的原始需求,
|
|
802
|
+
认真阅读 gh pr diff 以排查 PR 中新引入的 bug,
|
|
803
|
+
检查没有未经 issue 描述、issue 评论或 PR 评论明确请求而被移除的旧功能。
|
|
804
|
+
- 当你完成实现时,使用 gh pr ready {{prNumber}}。
|
|
805
|
+
"""
|
|
806
|
+
workflow """
|
|
807
|
+
工作流与协作。
|
|
808
|
+
- 当你检查分支时,使用 git branch --show-current 验证。
|
|
809
|
+
- 当你推送时,仅推送到分支 {{branchName}}。
|
|
810
|
+
- 当你完成时,从分支 {{branchName}} 创建 PR。(注意:PR {{prNumber}} 已存在,请更新它)
|
|
811
|
+
- 当你组织工作流时,使用 PR 而非直接合并到默认分支(main 或 master)。
|
|
812
|
+
- 当你管理提交时,保留提交历史以便后续分析。
|
|
813
|
+
- 当你贡献时,通过定期提交、推送和必要的回滚保持仓库历史向前推进。
|
|
814
|
+
- 当你遇到自己无法解决的冲突时,请求帮助。
|
|
815
|
+
- 当你协作时,遵守分支保护,仅在 {{branchName}} 上工作。
|
|
816
|
+
- 当你提到结果时,附上 PR URL 或评论 URL。
|
|
817
|
+
- 当你需要创建 PR 时,记住 PR {{prNumber}} 已存在于此分支。
|
|
818
|
+
"""
|
|
819
|
+
self
|
|
820
|
+
review
|
|
821
|
+
header """
|
|
822
|
+
自我审阅。
|
|
823
|
+
- 当你检查解决方案草稿时,在本地运行所有测试。
|
|
824
|
+
- 当你检查解决方案草稿时,验证 git status 显示工作树干净,无未提交更改。
|
|
825
|
+
- 当你与仓库风格比较时,使用 gh pr diff [编号]。
|
|
826
|
+
- 当你完成时,确认代码、测试与描述一致。
|
|
827
|
+
"""
|
|
828
|
+
ensure
|
|
829
|
+
all
|
|
830
|
+
requirements " - 当未提供明确反馈或需求时,通过检查 issue 描述以及 issue 与 PR 上的所有评论,确保所有更改正确、一致、经过验证、测试、记录日志,并与所讨论的所有需求保持一致。检查所有 CI 或 CD 检查均已通过。"
|
|
831
|
+
github
|
|
832
|
+
cli
|
|
833
|
+
patterns """
|
|
834
|
+
GitHub CLI 命令模式。
|
|
835
|
+
- 当从 GitHub API 获取列表时,使用 --paginate 标志确保返回所有结果(GitHub 默认每页最多 30 条)。
|
|
836
|
+
- 当列出 PR 审阅评论(内联代码评论)时,使用 gh api repos/OWNER/REPO/pulls/NUMBER/comments --paginate。
|
|
837
|
+
- 当列出 PR 对话评论时,使用 gh api repos/OWNER/REPO/issues/NUMBER/comments --paginate。
|
|
838
|
+
- 当列出 PR 审阅时,使用 gh api repos/OWNER/REPO/pulls/NUMBER/reviews --paginate。
|
|
839
|
+
- 当列出 issue 评论时,使用 gh api repos/OWNER/REPO/issues/NUMBER/comments --paginate。
|
|
840
|
+
- 当添加 PR 评论时,使用 gh pr comment NUMBER --body "文本" --repo OWNER/REPO。
|
|
841
|
+
- 当添加 issue 评论时,使用 gh issue comment NUMBER --body "文本" --repo OWNER/REPO。
|
|
842
|
+
- 当查看 PR 详情时,使用 gh pr view NUMBER --repo OWNER/REPO。
|
|
843
|
+
- 当用 jq 过滤时,使用 gh api repos/{{owner}}/{{repo}}/pulls/{{prNumber}}/comments --paginate --jq reverse-then-slice-first-five。
|
|
844
|
+
"""
|
|
845
|
+
playwright
|
|
846
|
+
mcp """
|
|
847
|
+
Playwright MCP 用法(通过 mcp__playwright__* 工具进行浏览器自动化)。
|
|
848
|
+
- 当你开发前端 Web 应用(HTML、CSS、JavaScript、React、Vue、Angular 等)时,使用 Playwright MCP 工具在真实浏览器中测试 UI。
|
|
849
|
+
- 当 WebFetch 工具无法获取预期内容(例如返回空内容、JavaScript 渲染页面或受登录保护的页面)时,使用 Playwright MCP 工具(browser_navigate、browser_snapshot)作为浏览的备选方案。
|
|
850
|
+
- 当 WebSearch 工具失败或结果不足时,使用 Playwright MCP 工具(browser_navigate、browser_snapshot)作为互联网搜索的备选方案。
|
|
851
|
+
- 当你需要与需要执行 JavaScript 的动态网页交互时,使用 Playwright MCP 工具。
|
|
852
|
+
- 当你需要可视化检查网页外观或截图时,使用 Playwright MCP 的 browser_take_screenshot。
|
|
853
|
+
- 当你需要填表、点击按钮或在网页上执行用户操作时,使用 Playwright MCP 工具(browser_click、browser_type、browser_fill_form)。
|
|
854
|
+
- 当你需要测试响应式设计或不同视口尺寸时,使用 Playwright MCP 的 browser_resize。
|
|
855
|
+
- 当你完成浏览器操作时,调用 browser_close 释放资源。
|
|
856
|
+
- 当复现 UI bug 时,使用 browser_take_screenshot 在实施修复之前捕获问题状态。
|
|
857
|
+
- 当修复 UI bug 时,截取修复前/后的截图,为人工审阅提供视觉证据。
|
|
858
|
+
- 当创建 UI 测试时,将基线截图保存到仓库以用于视觉回归测试。
|
|
859
|
+
- 当验证 UI 修复时,比较截图以确保修复未引入意外的视觉变化。
|
|
860
|
+
"""
|
|
861
|
+
plan
|
|
862
|
+
subagent """
|
|
863
|
+
Plan 子代理用法。
|
|
864
|
+
- 当你开始处理任务时,考虑使用 Plan 子代理研究代码库并制定实施计划。
|
|
865
|
+
- 当使用 Plan 子代理时,可将其作为 todo 列表中的第一项。
|
|
866
|
+
- 当你委托规划时,在开始实现工作前使用 Task 工具并设置 subagent_type="Plan"。
|
|
867
|
+
"""
|
|
868
|
+
visual
|
|
869
|
+
ui """
|
|
870
|
+
视觉 UI 工作和截图。
|
|
871
|
+
- 当你处理视觉 UI 更改(前端、CSS、HTML、设计)时,在 PR 描述中包含最终结果的渲染或截图。
|
|
872
|
+
- 当你需要展示视觉结果时,截图并保存到仓库(例如 docs/screenshots/ 或 assets/ 文件夹)。
|
|
873
|
+
- 当你将截图保存到仓库时,在 PR 描述 markdown 中使用永久链接(例如 https://github.com/{{screenshotRepoPath}}/blob/{{branchName}}/docs/screenshots/result.png?raw=true)。
|
|
874
|
+
- 当你上传图片时,先将其提交到分支,然后使用带 ?raw=true 后缀的 GitHub blob URL 格式引用(适用于公开和私有仓库)。
|
|
875
|
+
- 当视觉结果对审阅很重要时,在 PR 描述中以嵌入图片明确提及。
|
|
876
|
+
- 当修复 UI bug 时,捕获"修复前"(问题)和"修复后"(已修复)的截图作为人工审阅证据。
|
|
877
|
+
- 当报告 UI bug 时,附上问题状态的截图以便对修复进行视觉验证。
|
|
878
|
+
- 当修复是视觉性的,在 PR 描述中并排或顺序对比修复前/后状态。
|
|
879
|
+
- 当可能时,创建自动化视觉回归测试以防止 UI bug 复发。
|
|
880
|
+
"""
|