@teamclaws/teamclaw 2026.4.4 → 2026.6.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 +2 -0
- package/index.ts +16 -0
- package/openclaw.plugin.json +20 -1
- package/package.json +2 -2
- package/src/config.ts +19 -0
- package/src/controller/controller-service.ts +50 -2
- package/src/controller/github-auth.ts +699 -0
- package/src/controller/http-server.ts +482 -6
- package/src/controller/orchestration-manifest.ts +1 -0
- package/src/controller/tunnel-manager.ts +386 -0
- package/src/controller/websocket.ts +2 -1
- package/src/controller/worker-provisioning.ts +15 -0
- package/src/task-executor.ts +17 -1
- package/src/teamauto/github-client.ts +254 -0
- package/src/teamauto/norms.ts +103 -0
- package/src/teamauto/repo-sync.ts +218 -0
- package/src/teamauto/scanner.ts +221 -0
- package/src/teamauto/scheduler.ts +595 -0
- package/src/teamauto/store.ts +242 -0
- package/src/types.ts +39 -0
- package/src/ui/app.js +892 -10
- package/src/ui/github-login.html +296 -0
- package/src/ui/index.html +52 -1
- package/src/ui/style.css +208 -58
- package/src/worker/worker-service.ts +16 -1
package/src/ui/style.css
CHANGED
|
@@ -4,22 +4,46 @@
|
|
|
4
4
|
box-sizing: border-box;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
/* Slim scrollbars everywhere: system bars read as jarring chrome on the
|
|
8
|
+
dark workbench. Thin, quiet, hover-responsive - WebKit + Firefox. */
|
|
9
|
+
* {
|
|
10
|
+
scrollbar-width: thin;
|
|
11
|
+
scrollbar-color: var(--border-strong) transparent;
|
|
12
|
+
}
|
|
13
|
+
*::-webkit-scrollbar { width: 8px; height: 8px; }
|
|
14
|
+
*::-webkit-scrollbar-track { background: transparent; }
|
|
15
|
+
*::-webkit-scrollbar-thumb {
|
|
16
|
+
background: var(--border-strong);
|
|
17
|
+
border-radius: 999px;
|
|
18
|
+
border: 2px solid transparent;
|
|
19
|
+
background-clip: content-box;
|
|
20
|
+
}
|
|
21
|
+
*::-webkit-scrollbar-thumb:hover { background-color: var(--text-muted); }
|
|
22
|
+
*::-webkit-scrollbar-corner { background: transparent; }
|
|
23
|
+
|
|
7
24
|
:root {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
--bg-
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
--text-
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
25
|
+
/* Workbench palette: warm charcoal base, sand-gold brand accent,
|
|
26
|
+
desaturated statuses - deliberately off the default template ramp. */
|
|
27
|
+
--bg-primary: #121110;
|
|
28
|
+
--bg-secondary: #1a1917;
|
|
29
|
+
--bg-tertiary: #232120;
|
|
30
|
+
--text-primary: #ecebe6;
|
|
31
|
+
--text-secondary: #a8a49a;
|
|
32
|
+
--text-muted: #6f6b61;
|
|
33
|
+
--accent: #d9a664;
|
|
34
|
+
--accent-hover: #e8bd7f;
|
|
35
|
+
--accent-dim: rgba(217, 166, 100, 0.14);
|
|
36
|
+
--success: #7fb069;
|
|
37
|
+
--warning: #d9b45b;
|
|
38
|
+
--danger: #c96f5e;
|
|
39
|
+
--info: #7ca6b8;
|
|
40
|
+
--border: #2d2b27;
|
|
41
|
+
--border-strong: #3a3731;
|
|
42
|
+
--radius: 10px;
|
|
43
|
+
--radius-s: 6px;
|
|
44
|
+
--shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.25);
|
|
45
|
+
--shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.55), 0 10px 32px rgba(0, 0, 0, 0.35);
|
|
46
|
+
--mono: "SF Mono", "JetBrains Mono", "Cascadia Code", ui-monospace, monospace;
|
|
23
47
|
}
|
|
24
48
|
|
|
25
49
|
body {
|
|
@@ -30,13 +54,14 @@ body {
|
|
|
30
54
|
display: flex;
|
|
31
55
|
flex-direction: column;
|
|
32
56
|
overflow: hidden;
|
|
57
|
+
font-feature-settings: "tnum";
|
|
33
58
|
}
|
|
34
59
|
|
|
35
60
|
.header {
|
|
36
61
|
display: flex;
|
|
37
62
|
align-items: center;
|
|
38
63
|
justify-content: space-between;
|
|
39
|
-
padding:
|
|
64
|
+
padding: 14px 28px;
|
|
40
65
|
background: var(--bg-secondary);
|
|
41
66
|
border-bottom: 1px solid var(--border);
|
|
42
67
|
}
|
|
@@ -50,9 +75,7 @@ body {
|
|
|
50
75
|
.header-logo {
|
|
51
76
|
width: 32px;
|
|
52
77
|
height: 32px;
|
|
53
|
-
|
|
54
|
-
object-fit: cover;
|
|
55
|
-
box-shadow: 0 4px 16px rgba(59, 130, 246, 0.18);
|
|
78
|
+
flex: none;
|
|
56
79
|
}
|
|
57
80
|
|
|
58
81
|
.header-title {
|
|
@@ -184,28 +207,34 @@ body {
|
|
|
184
207
|
|
|
185
208
|
.tabs {
|
|
186
209
|
display: flex;
|
|
210
|
+
align-items: flex-end;
|
|
187
211
|
border-bottom: 1px solid var(--border);
|
|
188
212
|
background: var(--bg-secondary);
|
|
213
|
+
padding: 6px 20px 0;
|
|
214
|
+
gap: 4px;
|
|
189
215
|
}
|
|
190
216
|
|
|
191
217
|
.tab {
|
|
192
218
|
display: inline-flex;
|
|
193
219
|
align-items: center;
|
|
194
220
|
gap: 8px;
|
|
195
|
-
padding:
|
|
221
|
+
padding: 12px 18px;
|
|
196
222
|
background: none;
|
|
197
223
|
border: none;
|
|
198
224
|
color: var(--text-secondary);
|
|
199
225
|
cursor: pointer;
|
|
200
|
-
font-size:
|
|
226
|
+
font-size: 13.5px;
|
|
227
|
+
letter-spacing: 0.01em;
|
|
201
228
|
border-bottom: 2px solid transparent;
|
|
202
|
-
|
|
229
|
+
margin-bottom: -1px;
|
|
230
|
+
transition: color 0.15s, border-color 0.15s;
|
|
203
231
|
}
|
|
204
232
|
|
|
205
233
|
.tab:hover { color: var(--text-primary); }
|
|
206
234
|
.tab.active {
|
|
207
235
|
color: var(--accent);
|
|
208
236
|
border-bottom-color: var(--accent);
|
|
237
|
+
font-weight: 600;
|
|
209
238
|
}
|
|
210
239
|
|
|
211
240
|
.tab.has-active {
|
|
@@ -268,7 +297,10 @@ body {
|
|
|
268
297
|
.tab-content {
|
|
269
298
|
flex: 1;
|
|
270
299
|
overflow-y: auto;
|
|
271
|
-
padding:
|
|
300
|
+
padding: 26px 32px 40px;
|
|
301
|
+
max-width: 1280px;
|
|
302
|
+
width: 100%;
|
|
303
|
+
margin: 0 auto;
|
|
272
304
|
}
|
|
273
305
|
|
|
274
306
|
.worker-install-card {
|
|
@@ -413,34 +445,52 @@ body {
|
|
|
413
445
|
.tasks-board {
|
|
414
446
|
display: flex;
|
|
415
447
|
flex-direction: column;
|
|
416
|
-
gap:
|
|
448
|
+
gap: 12px;
|
|
417
449
|
}
|
|
418
450
|
|
|
419
451
|
.task-card {
|
|
420
452
|
background: var(--bg-secondary);
|
|
421
453
|
border: 1px solid var(--border);
|
|
422
454
|
border-radius: var(--radius);
|
|
423
|
-
padding:
|
|
455
|
+
padding: 15px 18px;
|
|
424
456
|
display: flex;
|
|
425
457
|
align-items: flex-start;
|
|
426
458
|
gap: 12px;
|
|
459
|
+
box-shadow: var(--shadow);
|
|
460
|
+
transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
|
|
427
461
|
}
|
|
428
462
|
|
|
429
|
-
.task-card:hover {
|
|
463
|
+
.task-card:hover {
|
|
464
|
+
border-color: var(--border-strong);
|
|
465
|
+
box-shadow: var(--shadow-lift);
|
|
466
|
+
transform: translateY(-1px);
|
|
467
|
+
}
|
|
430
468
|
|
|
469
|
+
/* Dot + label replaces the chunky colored block: calmer, more editorial. */
|
|
431
470
|
.task-priority {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
471
|
+
display: inline-flex;
|
|
472
|
+
align-items: center;
|
|
473
|
+
gap: 6px;
|
|
474
|
+
font-size: 10.5px;
|
|
475
|
+
font-weight: 600;
|
|
476
|
+
letter-spacing: 0.08em;
|
|
436
477
|
text-transform: uppercase;
|
|
478
|
+
color: var(--text-secondary);
|
|
437
479
|
flex-shrink: 0;
|
|
480
|
+
margin-top: 3px;
|
|
481
|
+
}
|
|
482
|
+
.task-priority::before {
|
|
483
|
+
content: "";
|
|
484
|
+
width: 7px;
|
|
485
|
+
height: 7px;
|
|
486
|
+
border-radius: 50%;
|
|
487
|
+
background: currentColor;
|
|
438
488
|
}
|
|
439
489
|
|
|
440
|
-
.task-priority.low {
|
|
441
|
-
.task-priority.medium {
|
|
442
|
-
.task-priority.high {
|
|
443
|
-
.task-priority.critical {
|
|
490
|
+
.task-priority.low { color: var(--info); }
|
|
491
|
+
.task-priority.medium { color: var(--accent); }
|
|
492
|
+
.task-priority.high { color: var(--warning); }
|
|
493
|
+
.task-priority.critical { color: var(--danger); }
|
|
444
494
|
|
|
445
495
|
.task-body { flex: 1; min-width: 0; }
|
|
446
496
|
.task-title-row {
|
|
@@ -454,11 +504,13 @@ body {
|
|
|
454
504
|
.task-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
|
|
455
505
|
.task-origin-badge {
|
|
456
506
|
font-size: 10px;
|
|
457
|
-
font-weight:
|
|
507
|
+
font-weight: 600;
|
|
458
508
|
text-transform: uppercase;
|
|
509
|
+
letter-spacing: 0.06em;
|
|
510
|
+
font-family: var(--mono);
|
|
459
511
|
color: var(--accent);
|
|
460
|
-
background:
|
|
461
|
-
border: 1px solid rgba(
|
|
512
|
+
background: var(--accent-dim);
|
|
513
|
+
border: 1px solid rgba(217, 166, 100, 0.28);
|
|
462
514
|
border-radius: 999px;
|
|
463
515
|
padding: 3px 8px;
|
|
464
516
|
flex-shrink: 0;
|
|
@@ -473,8 +525,8 @@ body {
|
|
|
473
525
|
margin-bottom: 8px;
|
|
474
526
|
padding: 8px 10px;
|
|
475
527
|
border-radius: 10px;
|
|
476
|
-
border: 1px solid rgba(
|
|
477
|
-
background: rgba(
|
|
528
|
+
border: 1px solid rgba(217, 166, 100, 0.2);
|
|
529
|
+
background: rgba(217, 166, 100, 0.08);
|
|
478
530
|
color: var(--text-secondary);
|
|
479
531
|
font-size: 12px;
|
|
480
532
|
line-height: 1.5;
|
|
@@ -507,18 +559,22 @@ body {
|
|
|
507
559
|
.task-meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); }
|
|
508
560
|
|
|
509
561
|
.task-status-badge {
|
|
510
|
-
font-size:
|
|
511
|
-
padding: 2px
|
|
512
|
-
border-radius:
|
|
562
|
+
font-size: 10.5px;
|
|
563
|
+
padding: 2px 9px;
|
|
564
|
+
border-radius: 999px;
|
|
513
565
|
font-weight: 600;
|
|
566
|
+
letter-spacing: 0.04em;
|
|
567
|
+
text-transform: uppercase;
|
|
568
|
+
border: 1px solid transparent;
|
|
569
|
+
font-family: var(--mono);
|
|
514
570
|
}
|
|
515
571
|
|
|
516
|
-
.task-status-badge.pending { background: var(--
|
|
517
|
-
.task-status-badge.assigned { background:
|
|
518
|
-
.task-status-badge.in_progress { background:
|
|
519
|
-
.task-status-badge.blocked { background:
|
|
520
|
-
.task-status-badge.completed { background:
|
|
521
|
-
.task-status-badge.failed { background:
|
|
572
|
+
.task-status-badge.pending { background: transparent; color: var(--text-secondary); border-color: var(--border-strong); }
|
|
573
|
+
.task-status-badge.assigned { background: transparent; color: var(--info); border-color: rgba(124, 166, 184, 0.4); }
|
|
574
|
+
.task-status-badge.in_progress { background: var(--accent-dim); color: var(--accent); border-color: rgba(217, 166, 100, 0.4); }
|
|
575
|
+
.task-status-badge.blocked { background: transparent; color: #b8a7d9; border-color: rgba(184, 167, 217, 0.4); }
|
|
576
|
+
.task-status-badge.completed { background: transparent; color: var(--success); border-color: rgba(127, 176, 105, 0.4); }
|
|
577
|
+
.task-status-badge.failed { background: transparent; color: var(--danger); border-color: rgba(201, 111, 94, 0.4); }
|
|
522
578
|
|
|
523
579
|
.clarifications-list {
|
|
524
580
|
display: flex;
|
|
@@ -696,8 +752,8 @@ body {
|
|
|
696
752
|
.controller-run-task-link {
|
|
697
753
|
padding: 6px 10px;
|
|
698
754
|
border-radius: 999px;
|
|
699
|
-
border: 1px solid rgba(
|
|
700
|
-
background: rgba(
|
|
755
|
+
border: 1px solid rgba(217, 166, 100, 0.25);
|
|
756
|
+
background: rgba(217, 166, 100, 0.12);
|
|
701
757
|
color: var(--accent);
|
|
702
758
|
cursor: pointer;
|
|
703
759
|
font-size: 12px;
|
|
@@ -741,8 +797,8 @@ body {
|
|
|
741
797
|
|
|
742
798
|
/* Planning tab needs edge-to-edge layout (no padding from .tab-content) */
|
|
743
799
|
#tab-planning {
|
|
744
|
-
margin: -
|
|
745
|
-
width: calc(100% +
|
|
800
|
+
margin: -26px -32px 0;
|
|
801
|
+
width: calc(100% + 64px);
|
|
746
802
|
}
|
|
747
803
|
|
|
748
804
|
/* ── Planning Tab ─────────────────────────────────────────────────────── */
|
|
@@ -1325,8 +1381,8 @@ body {
|
|
|
1325
1381
|
min-height: 28px;
|
|
1326
1382
|
padding: 4px 10px;
|
|
1327
1383
|
border-radius: 999px;
|
|
1328
|
-
border: 1px solid rgba(
|
|
1329
|
-
background: rgba(
|
|
1384
|
+
border: 1px solid rgba(217, 166, 100, 0.22);
|
|
1385
|
+
background: rgba(217, 166, 100, 0.1);
|
|
1330
1386
|
color: #c7d2fe;
|
|
1331
1387
|
font-size: 12px;
|
|
1332
1388
|
font-weight: 600;
|
|
@@ -1462,7 +1518,8 @@ body {
|
|
|
1462
1518
|
|
|
1463
1519
|
.btn-primary {
|
|
1464
1520
|
background: var(--accent);
|
|
1465
|
-
color: #
|
|
1521
|
+
color: #1a1510;
|
|
1522
|
+
font-weight: 600;
|
|
1466
1523
|
}
|
|
1467
1524
|
|
|
1468
1525
|
.btn-primary:hover { background: var(--accent-hover); }
|
|
@@ -1587,8 +1644,8 @@ body {
|
|
|
1587
1644
|
}
|
|
1588
1645
|
|
|
1589
1646
|
.workspace-tree-file.is-selected {
|
|
1590
|
-
background: rgba(
|
|
1591
|
-
border-color: rgba(
|
|
1647
|
+
background: rgba(217, 166, 100, 0.16);
|
|
1648
|
+
border-color: rgba(217, 166, 100, 0.4);
|
|
1592
1649
|
color: #fff;
|
|
1593
1650
|
}
|
|
1594
1651
|
|
|
@@ -1814,7 +1871,7 @@ body {
|
|
|
1814
1871
|
.markdown-body blockquote {
|
|
1815
1872
|
padding: 12px 16px;
|
|
1816
1873
|
border-left: 3px solid var(--accent);
|
|
1817
|
-
background: rgba(
|
|
1874
|
+
background: rgba(217, 166, 100, 0.1);
|
|
1818
1875
|
border-radius: 0 10px 10px 0;
|
|
1819
1876
|
}
|
|
1820
1877
|
|
|
@@ -2410,3 +2467,96 @@ body {
|
|
|
2410
2467
|
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
2411
2468
|
padding-top: 4px;
|
|
2412
2469
|
}
|
|
2470
|
+
|
|
2471
|
+
/* GitHub login card inside the model settings modal */
|
|
2472
|
+
/* GitHub account chip in the top-right header corner */
|
|
2473
|
+
.github-corner-user {
|
|
2474
|
+
display: inline-flex;
|
|
2475
|
+
align-items: center;
|
|
2476
|
+
gap: 6px;
|
|
2477
|
+
cursor: pointer;
|
|
2478
|
+
font-size: 12px;
|
|
2479
|
+
opacity: 0.9;
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
.github-corner-user:hover {
|
|
2483
|
+
opacity: 1;
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
.github-corner-avatar {
|
|
2487
|
+
width: 18px;
|
|
2488
|
+
height: 18px;
|
|
2489
|
+
border-radius: 50%;
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
/* TeamAuto tab */
|
|
2493
|
+
.teamauto-wrap { display: flex; flex-direction: column; gap: 14px; }
|
|
2494
|
+
|
|
2495
|
+
.teamauto-bind-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
2496
|
+
.teamauto-select { flex: 1; min-width: 220px; padding: 6px 10px; border-radius: 8px; border: 1px solid #30363d; background: #0d1117; color: inherit; }
|
|
2497
|
+
.teamauto-schedule-input { width: 150px; padding: 6px 10px; border-radius: 8px; border: 1px solid #30363d; background: #0d1117; color: inherit; }
|
|
2498
|
+
.teamauto-msg { font-size: 13px; min-height: 18px; margin-top: 6px; }
|
|
2499
|
+
.teamauto-msg.ok { color: #3fb950; }
|
|
2500
|
+
.teamauto-msg.err { color: #f85149; }
|
|
2501
|
+
.teamauto-hint { color: #8b949e; font-size: 12.5px; margin: 8px 0 0; line-height: 1.6; }
|
|
2502
|
+
|
|
2503
|
+
.teamauto-repos { display: flex; flex-direction: column; gap: 12px; }
|
|
2504
|
+
.teamauto-card { padding: 14px 16px; }
|
|
2505
|
+
.teamauto-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
2506
|
+
.teamauto-repo-name { font-weight: 600; word-break: break-all; }
|
|
2507
|
+
.teamauto-badge { font-size: 12px; border: 1px solid #3d4450; border-radius: 20px; padding: 2px 10px; color: #8b949e; }
|
|
2508
|
+
.teamauto-badge.on { color: #3fb950; border-color: #238636; }
|
|
2509
|
+
.teamauto-badge.warn { color: #d29922; border-color: #9e6a03; }
|
|
2510
|
+
.teamauto-meta { color: #8b949e; font-size: 12.5px; margin-top: 8px; line-height: 1.7; }
|
|
2511
|
+
.teamauto-warn-text { color: #d29922; }
|
|
2512
|
+
.teamauto-config-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #30363d; }
|
|
2513
|
+
.teamauto-config-row label { font-size: 12px; color: #8b949e; display: inline-flex; align-items: center; gap: 6px; }
|
|
2514
|
+
.teamauto-config-row input, .teamauto-config-row select { padding: 4px 8px; border-radius: 6px; border: 1px solid #30363d; background: #0d1117; color: inherit; font-size: 12px; }
|
|
2515
|
+
.teamauto-config-row input[data-cfg="schedule"] { width: 120px; }
|
|
2516
|
+
.teamauto-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
|
|
2517
|
+
|
|
2518
|
+
/* TeamAuto bind overlay (stage progress) */
|
|
2519
|
+
.ta-bind-overlay { position: fixed; inset: 0; background: rgba(9,11,16,.55); display: flex; align-items: center; justify-content: center; z-index: 300; }
|
|
2520
|
+
.ta-bind-overlay.is-hidden { display: none; }
|
|
2521
|
+
.ta-bind-dialog { width: min(420px, calc(100vw - 48px)); background: var(--bg-secondary); border: 1px solid var(--border, #2a2f3a); border-radius: 14px; padding: 22px 24px; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
|
|
2522
|
+
.ta-bind-title { font-size: 15px; font-weight: 650; color: var(--text-primary); margin-bottom: 14px; word-break: break-all; }
|
|
2523
|
+
.ta-bind-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
|
|
2524
|
+
.ta-bind-steps li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-muted); }
|
|
2525
|
+
.ta-step-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border, #2a2f3a); flex: none; position: relative; }
|
|
2526
|
+
.ta-bind-steps li.active .ta-step-dot { border-color: var(--accent); }
|
|
2527
|
+
.ta-bind-steps li.active .ta-step-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); animation: ta-pulse 1.1s ease-in-out infinite; }
|
|
2528
|
+
.ta-bind-steps li.active { color: var(--text-primary); font-weight: 600; }
|
|
2529
|
+
.ta-bind-steps li.done .ta-step-dot { border-color: var(--success); background: var(--success); }
|
|
2530
|
+
.ta-bind-steps li.done .ta-step-dot::after { content: "OK"; position: absolute; inset: 0; color: #062812; font-size: 8px; font-weight: 700; line-height: 17px; text-align: center; }
|
|
2531
|
+
.ta-bind-steps li.done { color: var(--text-secondary); }
|
|
2532
|
+
.ta-bind-steps li.error .ta-step-dot { border-color: var(--danger); background: var(--danger); }
|
|
2533
|
+
.ta-bind-steps li.error { color: var(--danger); }
|
|
2534
|
+
.ta-bind-note { margin-top: 14px; font-size: 12.5px; color: var(--text-muted); min-height: 18px; word-break: break-word; }
|
|
2535
|
+
.ta-bind-note.err { color: var(--danger); }
|
|
2536
|
+
@keyframes ta-pulse { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
|
|
2537
|
+
|
|
2538
|
+
/* TeamAuto activity feed */
|
|
2539
|
+
.teamauto-section-title { font-size: 14px; font-weight: 650; color: var(--text-primary); margin: 18px 0 10px; }
|
|
2540
|
+
.teamauto-activity { display: flex; flex-direction: column; gap: 8px; }
|
|
2541
|
+
.teamauto-activity-item { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border: 1px solid var(--border, #2a2f3a); border-radius: 10px; background: var(--bg-tertiary); font-size: 12.5px; }
|
|
2542
|
+
.teamauto-activity-kind { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 6px; padding: 2px 8px; background: var(--bg-primary); color: var(--text-muted); }
|
|
2543
|
+
.teamauto-activity-kind.k-task { color: var(--accent); }
|
|
2544
|
+
.teamauto-activity-kind.k-writeback { color: var(--success); }
|
|
2545
|
+
.teamauto-activity-kind.k-sweep { color: var(--info, #3b82f6); }
|
|
2546
|
+
.teamauto-activity-kind.k-provision { color: var(--warning); }
|
|
2547
|
+
.teamauto-activity-text { flex: 1; color: var(--text-secondary); word-break: break-word; }
|
|
2548
|
+
.teamauto-activity-time { flex: none; color: var(--text-muted); font-size: 11.5px; }
|
|
2549
|
+
|
|
2550
|
+
/* Tasks: keyword filter + show more */
|
|
2551
|
+
.task-keyword-input { margin-left: auto; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border, #2a2f3a); background: var(--bg-primary); color: var(--text-primary); font-size: 12.5px; width: 200px; }
|
|
2552
|
+
.task-keyword-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
|
|
2553
|
+
.tasks-show-more { display: block; margin: 14px auto 4px; }
|
|
2554
|
+
|
|
2555
|
+
/* Tunnel sharing panel (workspace tab) */
|
|
2556
|
+
.tunnel-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-secondary); padding: 14px 18px; margin: 18px 0; }
|
|
2557
|
+
.tunnel-card h3 { font-size: 13px; margin-bottom: 8px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
|
|
2558
|
+
.tunnel-on a { color: var(--accent); font-family: var(--mono); }
|
|
2559
|
+
.tunnel-token { margin: 8px 0; font-size: 13px; }
|
|
2560
|
+
.tunnel-token b { font-family: var(--mono); letter-spacing: .15em; color: var(--accent); }
|
|
2561
|
+
.tunnel-note { margin-left: 10px; color: var(--text-muted); font-size: 12px; }
|
|
2562
|
+
.tunnel-err { color: var(--danger); font-size: 12.5px; margin-top: 8px; }
|
|
@@ -41,7 +41,22 @@ export function createWorkerService(deps: WorkerServiceDeps): OpenClawPluginServ
|
|
|
41
41
|
activeTaskSessionKeys.set(taskId, assignment.executionSessionKey || buildTeamClawAgentSessionKey(`teamclaw-task-${taskId}`));
|
|
42
42
|
try {
|
|
43
43
|
await deps.prepareTaskAssignment?.(assignment);
|
|
44
|
-
|
|
44
|
+
let taskPrompt = [assignment.title.trim(), assignment.description.trim()].filter(Boolean).join("\n\n");
|
|
45
|
+
if (assignment.checkpoint) {
|
|
46
|
+
const cp = assignment.checkpoint;
|
|
47
|
+
const resumeLines = [
|
|
48
|
+
"## RESUMED EXECUTION",
|
|
49
|
+
`This task was interrupted mid-execution (resume attempt ${assignment.resumeAttempt ?? cp.attempt}). You are CONTINUING previous work, not starting over. The OpenClaw session you are running in already contains the full prior conversation - review it before acting.`,
|
|
50
|
+
"Do NOT redo steps that are already done. Re-verify state on disk/git instead of redoing work.",
|
|
51
|
+
"",
|
|
52
|
+
"Last assistant activity before interruption:",
|
|
53
|
+
(cp.lastAssistantMessage || "(none recorded)").slice(0, 4000),
|
|
54
|
+
];
|
|
55
|
+
if (cp.progressNotes?.length) {
|
|
56
|
+
resumeLines.push("", "Progress notes from prior attempts:", ...cp.progressNotes.map((n) => `- ${n}`));
|
|
57
|
+
}
|
|
58
|
+
taskPrompt = `${taskPrompt}\n\n${resumeLines.join("\n")}`;
|
|
59
|
+
}
|
|
45
60
|
const raw = await externalTaskExecutor(taskPrompt, assignment);
|
|
46
61
|
if (cancelledTaskIds.has(taskId)) {
|
|
47
62
|
throw new Error("Task execution cancelled by controller");
|