@ohos-cpf/3rdloop 0.0.4 → 0.0.5
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 +119 -128
- package/lib/cli.js +25 -0
- package/lib/serve.js +268 -0
- package/lib/update.js +46 -6
- package/lib/web-ext.js +454 -0
- package/lib/web.js +664 -0
- package/package.json +2 -1
- package/vendor/Server/Skills/arkts-code-use/SKILL.md +270 -0
- package/vendor/Server/Skills/arkts-code-use/assets/TEMPLATES.md +367 -0
- package/vendor/Server/Skills/arkts-code-use/references/API_VERIFICATION.md +144 -0
- package/vendor/Server/Skills/arkts-code-use/references/ARKTS_RULES.md +240 -0
- package/vendor/Server/Skills/arkts-code-use/references/CODE_PATTERNS.md +431 -0
- package/vendor/Server/Skills/arkts-code-use/references/SYNTAX_CHECK_GUIDE.md +164 -0
- package/vendor/Server/Skills/arkts-code-use/scripts/verify-arkts.cjs +428 -0
- package/vendor/Server/Skills/gitcode-repo-fork/SKILL.md +310 -0
- package/vendor/Server/Skills/gitcode-repo-fork/assets/FORK_REPORT_TEMPLATE.md +113 -0
- package/vendor/Server/Skills/gitcode-repo-fork/references/FORK_DECISION_GUIDE.md +124 -0
- package/vendor/Server/Skills/gitcode-repo-fork/references/GITCODE_FORK_API.md +95 -0
- package/vendor/Server/Skills/gitcode-repo-fork/scripts/gitcode-fork.cjs +285 -0
- package/vendor/VERSION +3 -3
- package/web/css/arktslibrarycheck.css +322 -0
- package/web/css/codecheck.css +464 -0
- package/web/css/flutterlibrarycheck.css +322 -0
- package/web/css/knowledge.css +332 -0
- package/web/css/loop.css +578 -0
- package/web/css/md-reader.css +240 -0
- package/web/css/rnlibrarycheck.css +322 -0
- package/web/css/theme.css +702 -0
- package/web/index.html +713 -0
- package/web/js/arktslibrarycheck.js +1413 -0
- package/web/js/codecheck.js +1039 -0
- package/web/js/flutterlibrarycheck.js +1364 -0
- package/web/js/health.js +69 -0
- package/web/js/knowledge.js +358 -0
- package/web/js/loop.js +1102 -0
- package/web/js/md-reader.js +435 -0
- package/web/js/navigation.js +238 -0
- package/web/js/rnlibrarycheck.js +1378 -0
- package/web/js/stats.js +110 -0
- package/web/js/theme.js +46 -0
- package/web/js/utils.js +228 -0
- package/web/knowledge.html +146 -0
- package/web/loop.html +219 -0
package/web/css/loop.css
ADDED
|
@@ -0,0 +1,578 @@
|
|
|
1
|
+
/* ════════════════════════════════════════════════════════════════════
|
|
2
|
+
* AI Loop 大循环控制台 — 专用样式
|
|
3
|
+
* 主题变量、基础重置、布局骨架由 theme.css 统一定义
|
|
4
|
+
* ════════════════════════════════════════════════════════════════════ */
|
|
5
|
+
|
|
6
|
+
/* ─── 主体布局(面板内 .app-body 撑满父容器) ───────────────────────── */
|
|
7
|
+
.app-body {
|
|
8
|
+
flex: 1;
|
|
9
|
+
display: flex;
|
|
10
|
+
min-height: 0;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* ─── 侧边栏 ────────────────────────────────────────────────────────── */
|
|
15
|
+
.sidebar {
|
|
16
|
+
width: 280px;
|
|
17
|
+
min-width: 280px;
|
|
18
|
+
background: var(--sidebar);
|
|
19
|
+
border-right: 1px solid var(--border);
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
}
|
|
24
|
+
.sidebar-header {
|
|
25
|
+
padding: 12px 14px;
|
|
26
|
+
border-bottom: 1px solid var(--border-light);
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
}
|
|
29
|
+
.sidebar-header h2 { font-size: 13px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
|
|
30
|
+
.count-badge {
|
|
31
|
+
background: var(--blue);
|
|
32
|
+
color: #fff;
|
|
33
|
+
font-size: 10px;
|
|
34
|
+
padding: 1px 7px;
|
|
35
|
+
border-radius: 10px;
|
|
36
|
+
font-weight: 600;
|
|
37
|
+
}
|
|
38
|
+
.search-box {
|
|
39
|
+
width: 100%;
|
|
40
|
+
padding: 6px 10px;
|
|
41
|
+
border: 1px solid var(--border);
|
|
42
|
+
border-radius: 6px;
|
|
43
|
+
font-size: 12px;
|
|
44
|
+
outline: none;
|
|
45
|
+
transition: border 0.15s;
|
|
46
|
+
}
|
|
47
|
+
.search-box:focus { border-color: var(--blue); }
|
|
48
|
+
|
|
49
|
+
.task-list { flex: 1; overflow-y: auto; padding: 8px; }
|
|
50
|
+
.task-item {
|
|
51
|
+
padding: 10px 12px;
|
|
52
|
+
border-radius: 8px;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
transition: background 0.15s;
|
|
55
|
+
margin-bottom: 4px;
|
|
56
|
+
border: 1px solid transparent;
|
|
57
|
+
}
|
|
58
|
+
.task-item:hover { background: rgba(0,0,0,0.04); }
|
|
59
|
+
[data-theme="dark"] .task-item:hover { background: rgba(255,255,255,0.06); }
|
|
60
|
+
.task-item.active { background: var(--blue-light); border-color: var(--blue); }
|
|
61
|
+
.task-id { font-size: 11px; font-weight: 600; font-family: "SF Mono", Monaco, monospace; color: var(--text); margin-bottom: 2px; }
|
|
62
|
+
.task-desc { font-size: 11px; color: var(--text2); line-height: 1.4; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
63
|
+
.task-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
|
64
|
+
.task-time { font-size: 10px; color: var(--text3); }
|
|
65
|
+
|
|
66
|
+
.new-task-btn {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
gap: 4px;
|
|
71
|
+
width: 100%;
|
|
72
|
+
padding: 7px 12px;
|
|
73
|
+
margin-bottom: 8px;
|
|
74
|
+
background: var(--blue);
|
|
75
|
+
color: #fff;
|
|
76
|
+
border: none;
|
|
77
|
+
border-radius: 6px;
|
|
78
|
+
font-size: 12px;
|
|
79
|
+
font-weight: 600;
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
transition: all 0.15s;
|
|
82
|
+
}
|
|
83
|
+
.new-task-btn:hover { background: var(--blue-hover); }
|
|
84
|
+
|
|
85
|
+
.new-task-btn.single {
|
|
86
|
+
background: var(--green);
|
|
87
|
+
}
|
|
88
|
+
.new-task-btn.single:hover { background: var(--green); filter: brightness(0.92); }
|
|
89
|
+
|
|
90
|
+
/* ─── 主内容区 ──────────────────────────────────────────────────────── */
|
|
91
|
+
.main-content {
|
|
92
|
+
flex: 1;
|
|
93
|
+
min-width: 0;
|
|
94
|
+
min-height: 0;
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.loop-overview {
|
|
101
|
+
padding: 14px 20px;
|
|
102
|
+
background: var(--card);
|
|
103
|
+
border-bottom: 1px solid var(--border-light);
|
|
104
|
+
flex-shrink: 0;
|
|
105
|
+
}
|
|
106
|
+
.loop-overview .title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
|
|
107
|
+
.loop-overview .title-row h2 { font-size: 16px; font-family: "SF Mono", Monaco, monospace; }
|
|
108
|
+
.loop-overview .desc { font-size: 12px; color: var(--text2); margin-bottom: 8px; line-height: 1.5; }
|
|
109
|
+
.loop-overview .stats-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
|
|
110
|
+
.stat-item { font-size: 11px; color: var(--text2); }
|
|
111
|
+
.stat-item strong { color: var(--text); font-size: 13px; }
|
|
112
|
+
.task-controls { display: flex; gap: 6px; margin-left: auto; }
|
|
113
|
+
.task-controls button { padding: 5px 12px; font-size: 11px; }
|
|
114
|
+
|
|
115
|
+
/* ─── 状态徽章(基础定义由 theme.css 统一管理,此处仅保留 loop 专属) ── */
|
|
116
|
+
.status-badge.single-exec {
|
|
117
|
+
background: var(--green-light);
|
|
118
|
+
color: var(--badge-green-text);
|
|
119
|
+
border: 1px solid var(--green);
|
|
120
|
+
font-size: 10px;
|
|
121
|
+
padding: 1px 6px;
|
|
122
|
+
border-radius: 4px;
|
|
123
|
+
font-weight: 600;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* ─── 主 Tab ────────────────────────────────────────────────────────── */
|
|
127
|
+
.main-tabs {
|
|
128
|
+
display: flex;
|
|
129
|
+
border-bottom: 1px solid var(--border);
|
|
130
|
+
background: var(--card);
|
|
131
|
+
flex-shrink: 0;
|
|
132
|
+
}
|
|
133
|
+
.main-tab {
|
|
134
|
+
padding: 10px 18px;
|
|
135
|
+
font-size: 13px;
|
|
136
|
+
font-weight: 500;
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
border-bottom: 2px solid transparent;
|
|
139
|
+
color: var(--text2);
|
|
140
|
+
transition: all 0.15s;
|
|
141
|
+
}
|
|
142
|
+
.main-tab:hover { color: var(--text); }
|
|
143
|
+
.main-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
|
|
144
|
+
.main-tab .tab-badge {
|
|
145
|
+
font-size: 9px;
|
|
146
|
+
background: var(--red);
|
|
147
|
+
color: #fff;
|
|
148
|
+
padding: 0 5px;
|
|
149
|
+
border-radius: 8px;
|
|
150
|
+
margin-left: 4px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.tab-content { flex: 1; min-height: 0; overflow: hidden; display: none; }
|
|
154
|
+
.tab-content.active { display: flex; flex-direction: column; }
|
|
155
|
+
|
|
156
|
+
/* ─── 循环轮次 ──────────────────────────────────────────────────────── */
|
|
157
|
+
.rounds-section { flex: 1; overflow-y: auto; padding: 16px 20px; }
|
|
158
|
+
.rounds-section h3 { font-size: 14px; margin-bottom: 12px; }
|
|
159
|
+
.rounds-empty {
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
justify-content: center;
|
|
163
|
+
height: 100%;
|
|
164
|
+
color: var(--text2);
|
|
165
|
+
font-size: 14px;
|
|
166
|
+
}
|
|
167
|
+
.round-card {
|
|
168
|
+
background: var(--card);
|
|
169
|
+
border: 1px solid var(--border-light);
|
|
170
|
+
border-radius: 10px;
|
|
171
|
+
margin-bottom: 12px;
|
|
172
|
+
overflow: hidden;
|
|
173
|
+
transition: border-color 0.15s;
|
|
174
|
+
}
|
|
175
|
+
.round-card:hover { border-color: var(--blue); }
|
|
176
|
+
.round-card.passed { border-left: 4px solid var(--green); }
|
|
177
|
+
.round-card.failed { border-left: 4px solid var(--red); }
|
|
178
|
+
.round-card.running { border-left: 4px solid var(--orange); }
|
|
179
|
+
.round-header {
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: center;
|
|
182
|
+
gap: 10px;
|
|
183
|
+
padding: 10px 14px;
|
|
184
|
+
background: var(--code-bg);
|
|
185
|
+
border-bottom: 1px solid var(--border-light);
|
|
186
|
+
cursor: pointer;
|
|
187
|
+
user-select: none;
|
|
188
|
+
}
|
|
189
|
+
.round-header:hover { background: var(--gray-light); }
|
|
190
|
+
.round-num {
|
|
191
|
+
flex-shrink: 0;
|
|
192
|
+
width: 28px;
|
|
193
|
+
height: 28px;
|
|
194
|
+
border-radius: 50%;
|
|
195
|
+
background: var(--blue);
|
|
196
|
+
color: #fff;
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
justify-content: center;
|
|
200
|
+
font-size: 12px;
|
|
201
|
+
font-weight: 700;
|
|
202
|
+
}
|
|
203
|
+
.round-num.passed { background: var(--green); }
|
|
204
|
+
.round-num.failed { background: var(--red); }
|
|
205
|
+
.round-title { font-size: 13px; font-weight: 600; flex: 1; }
|
|
206
|
+
.round-time { font-size: 10px; color: var(--text3); }
|
|
207
|
+
.round-expand-icon { font-size: 10px; color: var(--text2); transition: transform 0.2s; }
|
|
208
|
+
.round-card.expanded .round-expand-icon { transform: rotate(90deg); }
|
|
209
|
+
.round-body { display: none; padding: 14px; }
|
|
210
|
+
.round-card.expanded .round-body { display: block; }
|
|
211
|
+
|
|
212
|
+
.phase-block { margin-bottom: 14px; }
|
|
213
|
+
.phase-block:last-child { margin-bottom: 0; }
|
|
214
|
+
.phase-header {
|
|
215
|
+
display: flex;
|
|
216
|
+
align-items: center;
|
|
217
|
+
gap: 6px;
|
|
218
|
+
font-size: 12px;
|
|
219
|
+
font-weight: 600;
|
|
220
|
+
color: var(--text2);
|
|
221
|
+
margin-bottom: 6px;
|
|
222
|
+
text-transform: uppercase;
|
|
223
|
+
letter-spacing: 0.5px;
|
|
224
|
+
}
|
|
225
|
+
.phase-icon { font-size: 14px; }
|
|
226
|
+
.phase-content {
|
|
227
|
+
background: var(--code-bg);
|
|
228
|
+
border-radius: 8px;
|
|
229
|
+
padding: 10px 12px;
|
|
230
|
+
font-size: 12px;
|
|
231
|
+
line-height: 1.6;
|
|
232
|
+
}
|
|
233
|
+
.phase-content .kv { display: grid; grid-template-columns: 110px 1fr; gap: 3px 8px; }
|
|
234
|
+
.phase-content .kv .k { color: var(--text2); }
|
|
235
|
+
.phase-content .kv .v { font-family: "SF Mono", Monaco, monospace; word-break: break-all; }
|
|
236
|
+
|
|
237
|
+
/* ─── 编排图 + 详情面板 ─────────────────────────────────────────────── */
|
|
238
|
+
.graph-detail-split { flex: 1; display: flex; overflow: hidden; }
|
|
239
|
+
.graph-section {
|
|
240
|
+
flex: 1;
|
|
241
|
+
display: flex;
|
|
242
|
+
flex-direction: column;
|
|
243
|
+
overflow: hidden;
|
|
244
|
+
border-right: 1px solid var(--border);
|
|
245
|
+
}
|
|
246
|
+
.graph-toolbar {
|
|
247
|
+
padding: 8px 16px;
|
|
248
|
+
background: var(--card);
|
|
249
|
+
border-bottom: 1px solid var(--border-light);
|
|
250
|
+
display: flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
gap: 8px;
|
|
253
|
+
flex-shrink: 0;
|
|
254
|
+
}
|
|
255
|
+
.graph-toolbar h3 { font-size: 13px; }
|
|
256
|
+
.graph-toolbar .toolbar-actions { margin-left: auto; display: flex; gap: 6px; }
|
|
257
|
+
.graph-toolbar button { padding: 4px 10px; font-size: 11px; }
|
|
258
|
+
.zoom-display {
|
|
259
|
+
font-size: 11px; font-weight: 600; color: var(--text);
|
|
260
|
+
min-width: 38px; text-align: center; user-select: none;
|
|
261
|
+
}
|
|
262
|
+
.graph-canvas-wrap {
|
|
263
|
+
flex: 1;
|
|
264
|
+
overflow: hidden;
|
|
265
|
+
position: relative;
|
|
266
|
+
background: var(--bg);
|
|
267
|
+
background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
|
|
268
|
+
background-size: 20px 20px;
|
|
269
|
+
cursor: grab;
|
|
270
|
+
}
|
|
271
|
+
.graph-canvas-wrap.panning { cursor: grabbing; }
|
|
272
|
+
.graph-canvas-wrap.node-drag { cursor: move; }
|
|
273
|
+
.graph-svg { display: block; width: 100%; height: 100%; }
|
|
274
|
+
.graph-viewport { transform-origin: 0 0; }
|
|
275
|
+
.graph-empty {
|
|
276
|
+
display: flex;
|
|
277
|
+
align-items: center;
|
|
278
|
+
justify-content: center;
|
|
279
|
+
height: 100%;
|
|
280
|
+
color: var(--text2);
|
|
281
|
+
font-size: 14px;
|
|
282
|
+
}
|
|
283
|
+
.node-group { cursor: pointer; transition: opacity 0.2s; }
|
|
284
|
+
.node-group:hover .node-rect { stroke-width: 2.5; }
|
|
285
|
+
.node-group.selected .node-rect { stroke: var(--blue); stroke-width: 3; }
|
|
286
|
+
.node-group.dragging .node-rect { filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); }
|
|
287
|
+
.node-drag-handle {
|
|
288
|
+
fill: var(--text3); opacity: 0.4; cursor: move; rx: 2;
|
|
289
|
+
}
|
|
290
|
+
.node-group:hover .node-drag-handle { opacity: 0.8; }
|
|
291
|
+
.node-rect { stroke: var(--border); stroke-width: 1.5; rx: 8; }
|
|
292
|
+
.node-rect.pending { fill: var(--code-bg); stroke: var(--gray); }
|
|
293
|
+
.node-rect.ready { fill: var(--blue-light); stroke: var(--blue); }
|
|
294
|
+
.node-rect.running { fill: var(--orange-light); stroke: var(--orange); }
|
|
295
|
+
.node-rect.completed { fill: var(--green-light); stroke: var(--green); }
|
|
296
|
+
.node-rect.failed { fill: var(--red-light); stroke: var(--red); }
|
|
297
|
+
.node-rect.skipped { fill: var(--yellow-light); stroke: var(--yellow); }
|
|
298
|
+
.node-rect.blocked { fill: var(--gray-light); stroke: var(--gray); }
|
|
299
|
+
.edge-line { fill: none; stroke: var(--text3); stroke-width: 1.5; }
|
|
300
|
+
.edge-line.success { stroke: var(--green); stroke-width: 2; }
|
|
301
|
+
.edge-line.fail { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 5,3; }
|
|
302
|
+
.edge-line.depend { stroke: var(--text3); stroke-width: 1; stroke-dasharray: 3,3; }
|
|
303
|
+
.edge-label { font-size: 9px; fill: var(--text2); font-family: -apple-system; }
|
|
304
|
+
.node-text { font-family: -apple-system; pointer-events: none; }
|
|
305
|
+
.node-id { font-size: 13px; font-weight: 700; fill: var(--text); }
|
|
306
|
+
.node-status { font-size: 9px; fill: var(--text2); }
|
|
307
|
+
.node-retry { font-size: 9px; fill: var(--text2); }
|
|
308
|
+
.running-ring { stroke: var(--orange); animation: dash 1s linear infinite; }
|
|
309
|
+
@keyframes dash { to { stroke-dashoffset: -20; } }
|
|
310
|
+
|
|
311
|
+
/* ─── 详情面板 ──────────────────────────────────────────────────────── */
|
|
312
|
+
.detail-panel {
|
|
313
|
+
width: 420px;
|
|
314
|
+
min-width: 420px;
|
|
315
|
+
background: var(--card);
|
|
316
|
+
display: flex;
|
|
317
|
+
flex-direction: column;
|
|
318
|
+
overflow: hidden;
|
|
319
|
+
}
|
|
320
|
+
.detail-tabs { display: flex; border-bottom: 1px solid var(--border); flex-shrink: 0; }
|
|
321
|
+
.detail-tab {
|
|
322
|
+
padding: 10px 16px;
|
|
323
|
+
font-size: 12px;
|
|
324
|
+
font-weight: 500;
|
|
325
|
+
cursor: pointer;
|
|
326
|
+
border-bottom: 2px solid transparent;
|
|
327
|
+
color: var(--text2);
|
|
328
|
+
transition: all 0.15s;
|
|
329
|
+
}
|
|
330
|
+
.detail-tab:hover { color: var(--text); }
|
|
331
|
+
.detail-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
|
|
332
|
+
.detail-content { flex: 1; overflow-y: auto; padding: 16px; }
|
|
333
|
+
.detail-empty {
|
|
334
|
+
display: flex;
|
|
335
|
+
align-items: center;
|
|
336
|
+
justify-content: center;
|
|
337
|
+
height: 100%;
|
|
338
|
+
color: var(--text2);
|
|
339
|
+
font-size: 13px;
|
|
340
|
+
text-align: center;
|
|
341
|
+
}
|
|
342
|
+
.detail-section { margin-bottom: 16px; }
|
|
343
|
+
.detail-section h4 { font-size: 12px; color: var(--text2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
|
|
344
|
+
.kv-list { display: grid; grid-template-columns: 100px 1fr; gap: 4px 10px; font-size: 12px; }
|
|
345
|
+
.kv-list .k { color: var(--text2); }
|
|
346
|
+
.kv-list .v { font-family: "SF Mono", Monaco, monospace; word-break: break-all; }
|
|
347
|
+
.detail-actions { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
348
|
+
.detail-actions button { padding: 6px 12px; font-size: 11px; }
|
|
349
|
+
|
|
350
|
+
.history-list { display: flex; flex-direction: column; gap: 4px; }
|
|
351
|
+
.history-item {
|
|
352
|
+
padding: 6px 10px;
|
|
353
|
+
background: var(--code-bg);
|
|
354
|
+
border-radius: 5px;
|
|
355
|
+
font-size: 11px;
|
|
356
|
+
display: flex;
|
|
357
|
+
flex-wrap: wrap;
|
|
358
|
+
justify-content: space-between;
|
|
359
|
+
align-items: center;
|
|
360
|
+
gap: 8px;
|
|
361
|
+
}
|
|
362
|
+
.history-item .history-attempt { font-weight: 600; }
|
|
363
|
+
.history-item .history-session { width: 100%; font-size: 10px; color: var(--blue); word-break: break-all; }
|
|
364
|
+
.history-item .history-session a { color: var(--blue); text-decoration: none; cursor: pointer; }
|
|
365
|
+
.history-item .history-session a:hover { text-decoration: underline; }
|
|
366
|
+
.history-item .history-result { width: 100%; font-size: 10px; word-break: break-all; }
|
|
367
|
+
|
|
368
|
+
/* ─── 消息列表 ──────────────────────────────────────────────────────── */
|
|
369
|
+
.msg-list { display: flex; flex-direction: column; gap: 6px; }
|
|
370
|
+
.msg-item { padding: 8px 10px; border-radius: 6px; font-size: 12px; line-height: 1.5; word-break: break-word; }
|
|
371
|
+
.msg-item.user { background: var(--blue-light); }
|
|
372
|
+
.msg-item.assistant { background: var(--green-light); }
|
|
373
|
+
.msg-item.system { background: var(--gray-light); }
|
|
374
|
+
.msg-item .role { font-weight: 700; margin-bottom: 3px; text-transform: uppercase; font-size: 9px; color: var(--text2); }
|
|
375
|
+
.msg-item .time { font-size: 9px; color: var(--text3); margin-top: 3px; }
|
|
376
|
+
.poll-indicator { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--green); }
|
|
377
|
+
.poll-indicator::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1s infinite; }
|
|
378
|
+
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
|
|
379
|
+
|
|
380
|
+
/* ─── Brain 拆解 ────────────────────────────────────────────────────── */
|
|
381
|
+
.brain-section { flex: 1; overflow-y: auto; padding: 16px 20px; }
|
|
382
|
+
.brain-card {
|
|
383
|
+
background: var(--card);
|
|
384
|
+
border: 1px solid var(--border-light);
|
|
385
|
+
border-radius: 10px;
|
|
386
|
+
padding: 16px;
|
|
387
|
+
margin-bottom: 12px;
|
|
388
|
+
}
|
|
389
|
+
.brain-card h3 { font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
|
|
390
|
+
.kv-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12px; margin-bottom: 10px; }
|
|
391
|
+
.kv-grid .k { color: var(--text2); }
|
|
392
|
+
.kv-grid .v { font-family: "SF Mono", Monaco, monospace; word-break: break-all; }
|
|
393
|
+
|
|
394
|
+
.criteria-list { display: flex; flex-direction: column; gap: 4px; }
|
|
395
|
+
.criteria-item {
|
|
396
|
+
display: flex;
|
|
397
|
+
align-items: flex-start;
|
|
398
|
+
gap: 8px;
|
|
399
|
+
padding: 6px 10px;
|
|
400
|
+
border-radius: 5px;
|
|
401
|
+
font-size: 11px;
|
|
402
|
+
line-height: 1.5;
|
|
403
|
+
}
|
|
404
|
+
.criteria-item.satisfied { background: var(--green-light); }
|
|
405
|
+
.criteria-item.unsatisfied { background: var(--red-light); }
|
|
406
|
+
.criteria-icon { flex-shrink: 0; font-size: 13px; line-height: 1.4; }
|
|
407
|
+
.criteria-text { flex: 1; word-break: break-word; }
|
|
408
|
+
.criteria-text .criterion { font-weight: 600; }
|
|
409
|
+
.criteria-text .reason { color: var(--text2); font-size: 10px; margin-top: 2px; }
|
|
410
|
+
|
|
411
|
+
.step-flow { display: flex; flex-direction: column; gap: 6px; }
|
|
412
|
+
.step-flow-item {
|
|
413
|
+
display: flex;
|
|
414
|
+
gap: 10px;
|
|
415
|
+
padding: 8px 12px;
|
|
416
|
+
background: var(--code-bg);
|
|
417
|
+
border-radius: 6px;
|
|
418
|
+
font-size: 12px;
|
|
419
|
+
align-items: flex-start;
|
|
420
|
+
}
|
|
421
|
+
.step-flow-item .step-num {
|
|
422
|
+
flex-shrink: 0;
|
|
423
|
+
width: 24px;
|
|
424
|
+
height: 24px;
|
|
425
|
+
border-radius: 50%;
|
|
426
|
+
background: var(--blue);
|
|
427
|
+
color: #fff;
|
|
428
|
+
display: flex;
|
|
429
|
+
align-items: center;
|
|
430
|
+
justify-content: center;
|
|
431
|
+
font-size: 11px;
|
|
432
|
+
font-weight: 700;
|
|
433
|
+
}
|
|
434
|
+
.step-flow-item .step-info { flex: 1; line-height: 1.5; }
|
|
435
|
+
.step-flow-item .step-info .step-desc { color: var(--text); word-break: break-word; }
|
|
436
|
+
.step-flow-item .step-info .step-meta { font-size: 10px; color: var(--text3); margin-top: 2px; }
|
|
437
|
+
.step-flow-item .step-skill-row { margin-top: 4px; }
|
|
438
|
+
.skill-badge {
|
|
439
|
+
display: inline-block;
|
|
440
|
+
padding: 1px 8px;
|
|
441
|
+
border-radius: 10px;
|
|
442
|
+
font-size: 10px;
|
|
443
|
+
font-weight: 600;
|
|
444
|
+
line-height: 1.6;
|
|
445
|
+
word-break: break-all;
|
|
446
|
+
}
|
|
447
|
+
.skill-badge.matched { background: var(--green-light); color: var(--badge-green-text); }
|
|
448
|
+
.skill-badge.unmatched { background: var(--code-bg); color: var(--text3); border: 1px dashed var(--border); }
|
|
449
|
+
|
|
450
|
+
/* ─── 表单元素 ──────────────────────────────────────────────────────── */
|
|
451
|
+
.form-group { margin-bottom: 10px; }
|
|
452
|
+
.form-group label { display: block; font-size: 11px; color: var(--text2); margin-bottom: 3px; }
|
|
453
|
+
input, textarea, select {
|
|
454
|
+
width: 100%;
|
|
455
|
+
padding: 6px 10px;
|
|
456
|
+
border: 1px solid var(--border);
|
|
457
|
+
border-radius: 5px;
|
|
458
|
+
font-size: 12px;
|
|
459
|
+
font-family: inherit;
|
|
460
|
+
outline: none;
|
|
461
|
+
transition: border 0.15s;
|
|
462
|
+
}
|
|
463
|
+
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
|
|
464
|
+
textarea { resize: vertical; min-height: 50px; font-family: "SF Mono", Monaco, monospace; }
|
|
465
|
+
textarea.large { min-height: 100px; font-size: 13px; line-height: 1.6; }
|
|
466
|
+
.form-group .hint { font-size: 11px; color: var(--text3); margin-top: 3px; }
|
|
467
|
+
|
|
468
|
+
/* ─── 按钮 ──────────────────────────────────────────────────────────── */
|
|
469
|
+
button {
|
|
470
|
+
padding: 6px 12px;
|
|
471
|
+
border: none;
|
|
472
|
+
border-radius: 5px;
|
|
473
|
+
font-size: 12px;
|
|
474
|
+
font-weight: 500;
|
|
475
|
+
cursor: pointer;
|
|
476
|
+
transition: all 0.15s;
|
|
477
|
+
}
|
|
478
|
+
button.primary { background: var(--blue); color: #fff; }
|
|
479
|
+
button.primary:hover:not(:disabled) { background: var(--blue-hover); }
|
|
480
|
+
button.success { background: var(--green); color: #fff; }
|
|
481
|
+
button.success:hover:not(:disabled) { background: #2bb24c; }
|
|
482
|
+
button.warn { background: var(--orange); color: #fff; }
|
|
483
|
+
button.warn:hover:not(:disabled) { background: #e68400; }
|
|
484
|
+
button.danger { background: var(--red); color: #fff; }
|
|
485
|
+
button.danger:hover:not(:disabled) { background: #d62d20; }
|
|
486
|
+
button.secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }
|
|
487
|
+
button.secondary:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
|
|
488
|
+
button:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
489
|
+
button.sm { padding: 3px 8px; font-size: 10px; }
|
|
490
|
+
|
|
491
|
+
/* ─── 弹窗 ──────────────────────────────────────────────────────────── */
|
|
492
|
+
.modal-overlay {
|
|
493
|
+
display: none;
|
|
494
|
+
position: fixed;
|
|
495
|
+
inset: 0;
|
|
496
|
+
background: rgba(0,0,0,0.4);
|
|
497
|
+
z-index: 1000;
|
|
498
|
+
justify-content: center;
|
|
499
|
+
align-items: center;
|
|
500
|
+
}
|
|
501
|
+
.modal-overlay.show { display: flex; }
|
|
502
|
+
.modal {
|
|
503
|
+
background: var(--card);
|
|
504
|
+
border-radius: 12px;
|
|
505
|
+
padding: 20px;
|
|
506
|
+
width: 640px;
|
|
507
|
+
max-width: 95vw;
|
|
508
|
+
max-height: 85vh;
|
|
509
|
+
display: flex;
|
|
510
|
+
flex-direction: column;
|
|
511
|
+
box-shadow: var(--shadow-lg);
|
|
512
|
+
}
|
|
513
|
+
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
|
|
514
|
+
.modal-header h3 { font-size: 15px; }
|
|
515
|
+
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text2); }
|
|
516
|
+
.modal-body { flex: 1; overflow-y: auto; padding: 0 4px; }
|
|
517
|
+
.modal-body pre {
|
|
518
|
+
font-family: "SF Mono", Monaco, monospace;
|
|
519
|
+
font-size: 12px;
|
|
520
|
+
line-height: 1.6;
|
|
521
|
+
white-space: pre-wrap;
|
|
522
|
+
word-break: break-all;
|
|
523
|
+
}
|
|
524
|
+
.modal-body pre .msg-list { display: flex; flex-direction: column; gap: 6px; }
|
|
525
|
+
.modal-body pre .msg-item { padding: 8px 10px; border-radius: 6px; font-size: 12px; line-height: 1.5; word-break: break-word; white-space: pre-wrap; }
|
|
526
|
+
.modal-body pre .msg-item .role { font-weight: 700; margin-bottom: 3px; text-transform: uppercase; font-size: 9px; color: var(--text2); }
|
|
527
|
+
.modal-body pre .msg-item .time { font-size: 9px; color: var(--text3); margin-top: 3px; }
|
|
528
|
+
.modal-footer {
|
|
529
|
+
display: flex;
|
|
530
|
+
justify-content: flex-end;
|
|
531
|
+
gap: 8px;
|
|
532
|
+
padding-top: 12px;
|
|
533
|
+
border-top: 1px solid var(--border-light);
|
|
534
|
+
margin-top: 8px;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/* ─── 高级选项折叠 ──────────────────────────────────────────────────── */
|
|
538
|
+
.advanced-toggle {
|
|
539
|
+
display: flex;
|
|
540
|
+
align-items: center;
|
|
541
|
+
gap: 6px;
|
|
542
|
+
font-size: 12px;
|
|
543
|
+
color: var(--blue);
|
|
544
|
+
cursor: pointer;
|
|
545
|
+
margin: 10px 0;
|
|
546
|
+
user-select: none;
|
|
547
|
+
}
|
|
548
|
+
.advanced-toggle::before { content: '\25B6'; font-size: 9px; transition: transform 0.2s; }
|
|
549
|
+
.advanced-toggle.open::before { transform: rotate(90deg); }
|
|
550
|
+
.advanced-section { display: none; background: var(--code-bg); border-radius: 8px; padding: 12px; }
|
|
551
|
+
.advanced-section.show { display: block; }
|
|
552
|
+
|
|
553
|
+
/* ─── Toast ─────────────────────────────────────────────────────────── */
|
|
554
|
+
.toast-container {
|
|
555
|
+
position: fixed;
|
|
556
|
+
top: 70px;
|
|
557
|
+
right: 20px;
|
|
558
|
+
z-index: 2000;
|
|
559
|
+
display: flex;
|
|
560
|
+
flex-direction: column;
|
|
561
|
+
gap: 8px;
|
|
562
|
+
}
|
|
563
|
+
.toast {
|
|
564
|
+
padding: 10px 16px;
|
|
565
|
+
border-radius: 8px;
|
|
566
|
+
font-size: 12px;
|
|
567
|
+
box-shadow: var(--shadow-lg);
|
|
568
|
+
animation: slideIn 0.2s;
|
|
569
|
+
max-width: 360px;
|
|
570
|
+
}
|
|
571
|
+
.toast.info { background: var(--blue); color: #fff; }
|
|
572
|
+
.toast.success { background: var(--green); color: #fff; }
|
|
573
|
+
.toast.error { background: var(--red); color: #fff; }
|
|
574
|
+
.toast.warn { background: var(--orange); color: #fff; }
|
|
575
|
+
@keyframes slideIn { from { transform: translateX(400px); } to { transform: translateX(0); } }
|
|
576
|
+
|
|
577
|
+
/* ─── 通用辅助(基础定义由 theme.css 管理) ──────────────────────── */
|
|
578
|
+
.muted { color: var(--text2); }
|