agiledev-cli 0.1.4 → 0.3.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/README.md +300 -173
- package/SKILL.md +114 -98
- package/adev.js +1319 -1285
- package/autofix/agents/antigravity.js +379 -0
- package/autofix/agents/claude.js +147 -0
- package/autofix/agents/codex.js +179 -0
- package/autofix/agents/exec.js +230 -0
- package/autofix/agents/index.js +400 -0
- package/autofix/agents/opencode.js +233 -0
- package/autofix/agents/pi.js +247 -0
- package/autofix/agiledev.js +98 -0
- package/autofix/bridge.js +371 -0
- package/autofix/cli.js +712 -0
- package/autofix/context.js +152 -0
- package/autofix/conversation.js +302 -0
- package/autofix/coordinator.js +2892 -0
- package/autofix/git.js +459 -0
- package/autofix/policy.js +230 -0
- package/autofix/profile.js +578 -0
- package/autofix/public/app.js +3668 -0
- package/autofix/public/i18n-id.js +282 -0
- package/autofix/public/index.html +32 -0
- package/autofix/public/style.css +2463 -0
- package/autofix/queue.js +146 -0
- package/autofix/scheduler.js +994 -0
- package/autofix/scope.js +32 -0
- package/autofix/service.js +1940 -0
- package/autofix/store.js +375 -0
- package/autofix/workspace.js +298 -0
- package/autofix/worktree.js +379 -0
- package/docs/autofix-design.md +801 -0
- package/docs/autofix-profiles.example.json +65 -0
- package/imgs/Bug/350/247/243/345/206/263/345/244/207/346/263/250.png +0 -0
- package/imgs/logo.png +0 -0
- package/imgs//344/277/256/346/224/271Bug/347/212/266/346/200/201.png +0 -0
- package/imgs//345/270/256/346/210/221/344/277/256/345/244/215Bug-20260922-010.png +0 -0
- package/imgs//346/237/245/347/234/213/345/271/266/345/210/206/346/236/220/351/234/200/346/261/202/346/226/207/346/241/243.png +0 -0
- package/imgs//347/234/213/344/270/200/344/270/213/346/210/221/347/216/260/345/234/250/346/234/211/345/223/252/344/272/233/345/274/200/345/217/221/344/273/273/345/212/241.png +0 -0
- package/imgs//347/234/213/344/270/200/344/270/213/346/210/221/350/277/230/346/234/211/345/223/252/344/272/233Bug/346/234/252/350/247/243/345/206/263.png +0 -0
- package/package.json +39 -36
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chinese (zh-CN) internationalization module for AgileDev AutoFix console.
|
|
3
|
+
*
|
|
4
|
+
* Usage: import i18n from "./i18n-id.js"; i18n("key")
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
const i18n = (key, defaults = {}) => {
|
|
8
|
+
// Chinese translations
|
|
9
|
+
const zhDict = {
|
|
10
|
+
// Setup page
|
|
11
|
+
setup: "设置",
|
|
12
|
+
boot: "正在读取启动配置",
|
|
13
|
+
bootTitle: "AGILEDEV · AUTOFIX",
|
|
14
|
+
bootSubtitle: "让 Agent <span class=\"grad\">自动接管</span> 缺陷队列",
|
|
15
|
+
agentModel: "选择 Agent 与模型",
|
|
16
|
+
mainAgent: "主 Agent",
|
|
17
|
+
workerAgent: "修复 Agent",
|
|
18
|
+
mainModel: "大模型",
|
|
19
|
+
workerModel: "大模型",
|
|
20
|
+
agentDescription: "主 Agent 负责统筹派工,修复 Agent 负责本地代码修改。两者可以使用不同模型。",
|
|
21
|
+
bindProject: "绑定敏捷项目",
|
|
22
|
+
projectDescription: "只处理你名下「待处理 / 已重开」的缺陷;可选择多个,推荐项来自仓库指纹匹配。",
|
|
23
|
+
recommended: "推荐",
|
|
24
|
+
pickRecommended: "选择推荐",
|
|
25
|
+
projectSearch: "搜索项目名称或编号",
|
|
26
|
+
projectEmpty: "项目列表为空",
|
|
27
|
+
noMatchingProjects: "没有匹配的项目",
|
|
28
|
+
riskConfirmation: "我了解 Agent 将以最大权限在本机运行",
|
|
29
|
+
riskDescription: "自动修复会跳过 Agent 的权限确认(Claude Code / Antigravity --dangerously-skip-permissions / OpenCode --auto),只允许在工作区内改代码。修复结果先回到主 Agent 复核,它确认无误后才自动 commit、合并测试分支、push,并把缺陷转为「待验证」;不会部署、发布或关闭缺陷。",
|
|
30
|
+
pollingInterval: "轮询间隔(秒)",
|
|
31
|
+
autoVerify: "验证后自动转待验证",
|
|
32
|
+
extraPrompt: "额外指令(可选,追加给主 Agent)",
|
|
33
|
+
start: "启动自动修复",
|
|
34
|
+
observe: "只观察,不接单",
|
|
35
|
+
refresh: "重新检测",
|
|
36
|
+
setupError: "无法读取启动配置",
|
|
37
|
+
setupBusy: "正在启动…",
|
|
38
|
+
// Dashboard
|
|
39
|
+
dashboard: "AgileDev 自动修复",
|
|
40
|
+
topMetrics: "运行中",
|
|
41
|
+
paused: "已暂停",
|
|
42
|
+
notRunning: "未运行",
|
|
43
|
+
inProgress: "修复中",
|
|
44
|
+
needsHuman: "需人工",
|
|
45
|
+
done: "已完成",
|
|
46
|
+
all: "全部",
|
|
47
|
+
active: "修复中",
|
|
48
|
+
needs: "需人工",
|
|
49
|
+
// Task status labels
|
|
50
|
+
discovered: "已发现",
|
|
51
|
+
queued: "排队",
|
|
52
|
+
launching: "启动中",
|
|
53
|
+
running: "修复中",
|
|
54
|
+
verifying: "验证中",
|
|
55
|
+
review: "复核中",
|
|
56
|
+
resolving: "调整中",
|
|
57
|
+
done: "已完成",
|
|
58
|
+
needsHuman: "需人工",
|
|
59
|
+
stopped: "已停止",
|
|
60
|
+
// Events/messages
|
|
61
|
+
serviceStarted: "服务已启动",
|
|
62
|
+
servicePaused: "服务已暂停",
|
|
63
|
+
serviceResumed: "服务已恢复",
|
|
64
|
+
serviceStopped: "服务已停止",
|
|
65
|
+
taskDiscovered: "发现缺陷",
|
|
66
|
+
taskDispatched: "任务已派工",
|
|
67
|
+
taskNeedsHuman: "需要人工",
|
|
68
|
+
taskReadyReview: "本地修复完成,等待复核",
|
|
69
|
+
taskDone: "已转待验证",
|
|
70
|
+
taskRetry: "已返回队列",
|
|
71
|
+
bugStatus: "线上状态已更新为",
|
|
72
|
+
question: "来自 Agent 的问题:",
|
|
73
|
+
questionAnswered: "你的回答已记录",
|
|
74
|
+
workspaceBound: "项目已绑定,开始轮询",
|
|
75
|
+
workspaceConfigured: "配置已保存",
|
|
76
|
+
serviceObservationMode: "观察模式:尚未绑定项目",
|
|
77
|
+
pollError: "轮询失败:",
|
|
78
|
+
// Error hints
|
|
79
|
+
authRequired: "AgileDev 登录已过期,请在终端运行 'adev login' 重新检测。",
|
|
80
|
+
authExpired: "AgileDev 登录已过期,请在终端运行 'adev login' 重新检测。",
|
|
81
|
+
authFailed: "AgileDev 登录失败,请在终端运行 'adev login' 重新检测。",
|
|
82
|
+
network: "无法连接 AgileDev,请确保连接公司网络 / VPN。",
|
|
83
|
+
notFound: "404 响应,可能是后端版本不匹配。",
|
|
84
|
+
noPermission: "当前账号无此项目访问权限。",
|
|
85
|
+
// Top bar metrics
|
|
86
|
+
metricLive: "运行中",
|
|
87
|
+
metricPaused: "已暂停",
|
|
88
|
+
metricDanger: "未运行",
|
|
89
|
+
// Agent card
|
|
90
|
+
agentName: "主 Agent",
|
|
91
|
+
agentState: "在线",
|
|
92
|
+
agentPaused: "已暂停",
|
|
93
|
+
agentSub: "管理中",
|
|
94
|
+
// Tab labels
|
|
95
|
+
tabAll: "全部",
|
|
96
|
+
tabActive: "修复中",
|
|
97
|
+
tabNeeds: "需人工",
|
|
98
|
+
tabDone: "已完成",
|
|
99
|
+
// Bug card
|
|
100
|
+
bugCode: "缺陷编号",
|
|
101
|
+
bugTitle: "缺陷标题",
|
|
102
|
+
bugTime: "更新时间",
|
|
103
|
+
bugSev: "严重度",
|
|
104
|
+
bugOnline: "线上状态",
|
|
105
|
+
bugWorker: "修复 Agent",
|
|
106
|
+
// Detail views
|
|
107
|
+
detailTitle: "缺陷详情",
|
|
108
|
+
detailCode: "缺陷编号",
|
|
109
|
+
detailStatus: "状态",
|
|
110
|
+
detailSeverity: "严重度",
|
|
111
|
+
detailProject: "项目",
|
|
112
|
+
detailUpdate: "更新",
|
|
113
|
+
detailCycle: "修复周期",
|
|
114
|
+
detailWorkerAgent: "修复 Agent",
|
|
115
|
+
// Verification
|
|
116
|
+
verifyOk: "验证通过",
|
|
117
|
+
verifySkipped: "验证跳过",
|
|
118
|
+
verifyFailed: "验证失败",
|
|
119
|
+
verifySummary: "输出",
|
|
120
|
+
// Needs human
|
|
121
|
+
needsTitle: "需人工决定",
|
|
122
|
+
needsReason: "原因",
|
|
123
|
+
needsDone: "已完成",
|
|
124
|
+
needsNext: "下一步",
|
|
125
|
+
// Question
|
|
126
|
+
questionCard: "需要你的决定",
|
|
127
|
+
questionFree: "或输入你的回答…",
|
|
128
|
+
answer: "回答",
|
|
129
|
+
// Console
|
|
130
|
+
console: "AgileDev 自动修复",
|
|
131
|
+
// Skeleton placeholders
|
|
132
|
+
skeletonLine: "",
|
|
133
|
+
skeletonLineW40: "",
|
|
134
|
+
skeletonLineW60: "",
|
|
135
|
+
// Modal
|
|
136
|
+
confirm: "确认",
|
|
137
|
+
cancel: "取消",
|
|
138
|
+
danger: "危险操作",
|
|
139
|
+
// Misc
|
|
140
|
+
wsPath: "工作区路径",
|
|
141
|
+
wsRepo: "Git 仓库",
|
|
142
|
+
wsMultiRepo: "多个 Git 仓库",
|
|
143
|
+
wsDirty: "有未提交改动",
|
|
144
|
+
wsNonRepo: "非 Git 目录",
|
|
145
|
+
// Tag
|
|
146
|
+
recBadge: "推荐",
|
|
147
|
+
// Filter
|
|
148
|
+
filterAll: "全部",
|
|
149
|
+
filterActive: "修复中",
|
|
150
|
+
filterNeeds: "需人工",
|
|
151
|
+
filterDone: "已完成",
|
|
152
|
+
// Search placeholder
|
|
153
|
+
searchPlaceholder: "搜索缺陷编号或标题",
|
|
154
|
+
// Composer
|
|
155
|
+
composerPlaceholder: "发送消息给 Agent…",
|
|
156
|
+
send: "发送",
|
|
157
|
+
enter: "Enter 发送",
|
|
158
|
+
shiftEnter: "Shift+Enter 换行",
|
|
159
|
+
// Error
|
|
160
|
+
toastError: "错误",
|
|
161
|
+
toastSuccess: "成功",
|
|
162
|
+
toastInfo: "信息",
|
|
163
|
+
// Setup summary
|
|
164
|
+
setupSummary: "主 Agent / 模型 → 修复 Agent / 模型 · N 个项目 · N 秒轮询",
|
|
165
|
+
// Brand
|
|
166
|
+
brandName: "AgileDev 自动修复",
|
|
167
|
+
brandMark: "AgileDev 标志",
|
|
168
|
+
// Top actions
|
|
169
|
+
check: "检查",
|
|
170
|
+
pause: "暂停轮询",
|
|
171
|
+
resume: "恢复轮询",
|
|
172
|
+
models: "更换模型",
|
|
173
|
+
restart: "重启服务",
|
|
174
|
+
stop: "停止服务",
|
|
175
|
+
bind: "绑定项目",
|
|
176
|
+
toggleDetail: "查看详情",
|
|
177
|
+
closeDetail: "关闭详情",
|
|
178
|
+
retry: "返回队列",
|
|
179
|
+
openWorker: "查看会话",
|
|
180
|
+
refreshDetail: "刷新详情",
|
|
181
|
+
refreshConv: "刷新会话",
|
|
182
|
+
openSetupInfo: "查看启动配置",
|
|
183
|
+
// Detail sections
|
|
184
|
+
sectionHead: "区块",
|
|
185
|
+
sectionTitle: "标题",
|
|
186
|
+
summaryLabel: "摘要标签",
|
|
187
|
+
statusPill: "状态药丸",
|
|
188
|
+
muted: "muted",
|
|
189
|
+
// File chips
|
|
190
|
+
fileChip: "文件",
|
|
191
|
+
// Timeline
|
|
192
|
+
timelineItem: "时间线项目",
|
|
193
|
+
// Progress
|
|
194
|
+
progress: "进度",
|
|
195
|
+
// Empty states
|
|
196
|
+
emptyTitle: "标题",
|
|
197
|
+
emptySub: "副标题",
|
|
198
|
+
emptyIcon: "图标",
|
|
199
|
+
emptyList: "列表为空",
|
|
200
|
+
// Copy
|
|
201
|
+
copy: "复制",
|
|
202
|
+
copied: "已复制到剪贴板",
|
|
203
|
+
copyFailed: "复制失败,请手动选择文本",
|
|
204
|
+
// Detail
|
|
205
|
+
detailBlock: "详情",
|
|
206
|
+
descBlock: "描述",
|
|
207
|
+
v: "值",
|
|
208
|
+
k: "键",
|
|
209
|
+
kvList: "键值列表",
|
|
210
|
+
kvRow: "键值行",
|
|
211
|
+
// Additional strings from app.js (keys only - will fallback to key if not found)
|
|
212
|
+
brandText: "brandText",
|
|
213
|
+
wsPathText: "wsPathText",
|
|
214
|
+
top: "top",
|
|
215
|
+
main: "main",
|
|
216
|
+
center: "center",
|
|
217
|
+
right: "right",
|
|
218
|
+
aside: "aside",
|
|
219
|
+
header: "header",
|
|
220
|
+
section: "section",
|
|
221
|
+
card: "card",
|
|
222
|
+
cardHead: "cardHead",
|
|
223
|
+
cardTitle: "cardTitle",
|
|
224
|
+
cardDesc: "cardDesc",
|
|
225
|
+
cardSide: "cardSide",
|
|
226
|
+
configTop: "configTop",
|
|
227
|
+
configSub: "configSub",
|
|
228
|
+
configCard: "configCard",
|
|
229
|
+
// Missing keys for setup summary
|
|
230
|
+
noAgents: "没有可用 Agent",
|
|
231
|
+
unboundProjects: "没有绑定项目",
|
|
232
|
+
pollingSeconds: "秒轮询",
|
|
233
|
+
justNow: "刚刚",
|
|
234
|
+
minutes: "分钟",
|
|
235
|
+
hours: "小时",
|
|
236
|
+
days: "天",
|
|
237
|
+
sev1: "致命",
|
|
238
|
+
sev2: "严重",
|
|
239
|
+
sev3: "一般",
|
|
240
|
+
sev4: "提示",
|
|
241
|
+
// Dashboard status (matching app.js exact key names)
|
|
242
|
+
Closed: "已关闭",
|
|
243
|
+
InProgress: "修复中",
|
|
244
|
+
Pending: "待处理",
|
|
245
|
+
Rejected: "已拒绝",
|
|
246
|
+
Reopened: "已重开",
|
|
247
|
+
Resolved: "已解决",
|
|
248
|
+
ToVerify: "待验证",
|
|
249
|
+
needs_human: "需人工",
|
|
250
|
+
// Top metrics (5 counters) + agent/task execution stages
|
|
251
|
+
metricWaiting: "待派工",
|
|
252
|
+
metricActive: "修复中",
|
|
253
|
+
metricReview: "待复核",
|
|
254
|
+
metricNeeds: "需人工",
|
|
255
|
+
metricDone: "已完成",
|
|
256
|
+
metricWaitingHint: "已发现但还没派给修复 Agent 的缺陷数",
|
|
257
|
+
metricActiveHint: "正在修复或验证中的缺陷数",
|
|
258
|
+
metricReviewHint: "已改完并通过验证,等主 Agent 复核的缺陷数",
|
|
259
|
+
metricNeedsHint: "需要人工决定的缺陷数",
|
|
260
|
+
metricDoneHint: "已完成并转待验证的缺陷数",
|
|
261
|
+
stageScanning: "扫描中",
|
|
262
|
+
stageDeciding: "派工中",
|
|
263
|
+
stageIdle: "空闲",
|
|
264
|
+
stageError: "错误",
|
|
265
|
+
stageAnalyzing: "分析中",
|
|
266
|
+
stageEditing: "修改代码",
|
|
267
|
+
stageTesting: "验证中",
|
|
268
|
+
stageReviewing: "复核中",
|
|
269
|
+
mainIdle: "主会话 · 等待任务",
|
|
270
|
+
mainCoordinating: "正在协调 N 个缺陷",
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
// Try Chinese first, fall back to key itself
|
|
274
|
+
if (zhDict[key] !== undefined) {
|
|
275
|
+
return zhDict[key];
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// Fallback: return the key itself
|
|
279
|
+
return key;
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
export default i18n;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<meta name="color-scheme" content="dark light">
|
|
7
|
+
<title>AgileDev 自动修复</title>
|
|
8
|
+
<script>
|
|
9
|
+
// 在样式加载前恢复主题,避免首屏先闪一下暗色
|
|
10
|
+
try {
|
|
11
|
+
document.documentElement.dataset.theme =
|
|
12
|
+
localStorage.getItem("adev-theme") === "light" ? "light" : "dark";
|
|
13
|
+
} catch (e) {
|
|
14
|
+
document.documentElement.dataset.theme = "dark";
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
<link rel="stylesheet" href="/style.css">
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<div id="app">
|
|
21
|
+
<div class="boot-screen">
|
|
22
|
+
<div class="boot-logo">
|
|
23
|
+
<svg viewBox="0 0 48 48" aria-hidden="true"><path d="M24 5 41 14v20L24 43 7 34V14Z" fill="none" stroke="currentColor" stroke-width="2.4"/><path d="m16 24 5.5 5.5L33 18" fill="none" stroke="currentColor" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="boot-title">AgileDev 自动修复</div>
|
|
26
|
+
<div class="boot-sub">正在连接本地服务…</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<div id="toast-root" class="toast-root" aria-live="polite"></div>
|
|
30
|
+
<script type="module" src="/app.js"></script>
|
|
31
|
+
</body>
|
|
32
|
+
</html>
|