@clagentic/console 1.5.0-beta.2 → 1.5.0-beta.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/bin/cli.js +1 -0
- package/lib/config.js +80 -6
- package/lib/daemon-projects.js +1 -1
- package/lib/daemon.js +70 -2
- package/lib/project-external-trigger.js +62 -7
- package/lib/project-http.js +17 -1
- package/lib/project-loop.js +2 -1
- package/lib/project-sessions.js +49 -1
- package/lib/project-team.js +417 -0
- package/lib/project.js +14 -1
- package/lib/public/app.js +2 -0
- package/lib/public/css/home-hub.css +36 -0
- package/lib/public/css/icon-strip.css +28 -126
- package/lib/public/css/menus.css +2 -2
- package/lib/public/css/team-panel.css +149 -0
- package/lib/public/index.html +72 -15
- package/lib/public/modules/app-home-hub.js +12 -0
- package/lib/public/modules/app-messages.js +15 -2
- package/lib/public/modules/server-settings.js +74 -5
- package/lib/public/modules/sidebar-mobile.js +9 -88
- package/lib/public/modules/sidebar-sessions.js +4 -0
- package/lib/public/modules/sidebar-users.js +47 -307
- package/lib/public/modules/team-panel.js +331 -0
- package/lib/public/modules/tools.js +3 -0
- package/lib/public/style.css +1 -0
- package/lib/sdk-bridge.js +74 -1
- package/lib/sdk-message-processor.js +36 -0
- package/lib/sdk-worker.js +2 -2
- package/lib/server.js +12 -0
- package/lib/ws-schema.js +12 -0
- package/package.json +1 -1
|
@@ -828,134 +828,57 @@
|
|
|
828
828
|
height: 22px;
|
|
829
829
|
}
|
|
830
830
|
|
|
831
|
-
/*
|
|
832
|
-
|
|
833
|
-
list so the hint sits directly above the mate avatars rather than
|
|
834
|
-
floating up in the project section's flex flow. */
|
|
835
|
-
/* --- User avatars (circle, inside the mate section) --- */
|
|
836
|
-
.icon-strip-users {
|
|
837
|
-
width: 56px;
|
|
838
|
-
display: flex;
|
|
839
|
-
flex-direction: column;
|
|
840
|
-
align-items: center;
|
|
841
|
-
gap: 0;
|
|
842
|
-
padding: 4px 0;
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
.icon-strip-users.hidden {
|
|
846
|
-
display: none;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
/* "Invite" mini button at bottom of user strip */
|
|
850
|
-
.icon-strip-invite {
|
|
851
|
-
position: relative;
|
|
852
|
-
width: 40px;
|
|
853
|
-
height: 32px;
|
|
854
|
-
border-radius: 10px;
|
|
855
|
-
background: transparent;
|
|
856
|
-
border: none;
|
|
857
|
-
display: flex;
|
|
858
|
-
align-items: center;
|
|
859
|
-
justify-content: center;
|
|
860
|
-
cursor: pointer;
|
|
861
|
-
flex-shrink: 0;
|
|
862
|
-
color: var(--text-dimmer);
|
|
863
|
-
transition: color 0.2s, background 0.2s;
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
.icon-strip-invite:hover {
|
|
867
|
-
color: var(--accent);
|
|
868
|
-
background: rgba(var(--overlay-rgb), 0.08);
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
.icon-strip-invite .lucide {
|
|
872
|
-
width: 16px;
|
|
873
|
-
height: 16px;
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
.icon-strip-user {
|
|
831
|
+
/* --- Permanent Teams button (always visible, opens team panel) --- */
|
|
832
|
+
.icon-strip-team-btn {
|
|
877
833
|
position: relative;
|
|
878
|
-
width:
|
|
879
|
-
height:
|
|
834
|
+
width: 48px;
|
|
835
|
+
height: 48px;
|
|
880
836
|
border-radius: 0;
|
|
881
837
|
background: transparent;
|
|
838
|
+
border: none;
|
|
882
839
|
display: flex;
|
|
883
840
|
align-items: center;
|
|
884
841
|
justify-content: center;
|
|
885
842
|
cursor: pointer;
|
|
886
843
|
flex-shrink: 0;
|
|
844
|
+
color: var(--text-secondary);
|
|
887
845
|
}
|
|
888
846
|
|
|
889
|
-
.icon-strip-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
.icon-strip-user:hover .icon-strip-user-avatar {
|
|
899
|
-
opacity: 1;
|
|
900
|
-
transform: scale(1.08);
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
.icon-strip-user.active .icon-strip-user-avatar {
|
|
904
|
-
opacity: 1;
|
|
905
|
-
box-shadow: 0 0 0 2px var(--accent);
|
|
847
|
+
.icon-strip-team-btn::before {
|
|
848
|
+
content: "";
|
|
849
|
+
position: absolute;
|
|
850
|
+
width: 38px;
|
|
851
|
+
height: 38px;
|
|
852
|
+
border-radius: 12px;
|
|
853
|
+
background: var(--bg-alt);
|
|
854
|
+
transition: background 0.2s ease;
|
|
855
|
+
z-index: -1;
|
|
906
856
|
}
|
|
907
857
|
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
opacity: 1;
|
|
911
|
-
border-radius: 8px;
|
|
912
|
-
filter: saturate(1) !important;
|
|
858
|
+
.icon-strip-team-btn:hover::before {
|
|
859
|
+
background: var(--accent);
|
|
913
860
|
}
|
|
914
861
|
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
position: absolute;
|
|
918
|
-
bottom: 5px;
|
|
919
|
-
right: 5px;
|
|
920
|
-
width: 10px;
|
|
921
|
-
height: 10px;
|
|
922
|
-
border-radius: 50%;
|
|
923
|
-
background: var(--text-dimmer);
|
|
924
|
-
border: 2px solid var(--sidebar-bg);
|
|
925
|
-
opacity: 1;
|
|
926
|
-
transition: opacity 0.2s, background 0.3s;
|
|
862
|
+
.icon-strip-team-btn:hover {
|
|
863
|
+
color: #fff;
|
|
927
864
|
}
|
|
928
865
|
|
|
929
|
-
.icon-strip-
|
|
930
|
-
background: var(--
|
|
866
|
+
.icon-strip-team-btn.active::before {
|
|
867
|
+
background: var(--accent);
|
|
931
868
|
}
|
|
932
869
|
|
|
933
|
-
|
|
934
|
-
.icon-strip-user-badge {
|
|
935
|
-
position: absolute;
|
|
936
|
-
top: -2px;
|
|
937
|
-
right: -2px;
|
|
938
|
-
min-width: 18px;
|
|
939
|
-
height: 18px;
|
|
940
|
-
border-radius: 9px;
|
|
941
|
-
background: #e74c3c;
|
|
870
|
+
.icon-strip-team-btn.active {
|
|
942
871
|
color: #fff;
|
|
943
|
-
font-size: 11px;
|
|
944
|
-
font-weight: 700;
|
|
945
|
-
display: none;
|
|
946
|
-
align-items: center;
|
|
947
|
-
justify-content: center;
|
|
948
|
-
padding: 0 5px;
|
|
949
|
-
line-height: 18px;
|
|
950
|
-
text-align: center;
|
|
951
|
-
box-shadow: 0 0 0 2px var(--bg);
|
|
952
|
-
z-index: 2;
|
|
953
872
|
}
|
|
954
873
|
|
|
955
|
-
.icon-strip-
|
|
956
|
-
|
|
874
|
+
.icon-strip-team-btn .lucide {
|
|
875
|
+
width: 20px;
|
|
876
|
+
height: 20px;
|
|
877
|
+
position: relative;
|
|
878
|
+
z-index: 1;
|
|
957
879
|
}
|
|
958
880
|
|
|
881
|
+
|
|
959
882
|
/* Project unread badge */
|
|
960
883
|
.icon-strip-project-badge {
|
|
961
884
|
position: absolute;
|
|
@@ -982,19 +905,6 @@
|
|
|
982
905
|
display: flex;
|
|
983
906
|
}
|
|
984
907
|
|
|
985
|
-
/* Pill for user icons */
|
|
986
|
-
.icon-strip-user:hover .icon-strip-pill {
|
|
987
|
-
opacity: 1;
|
|
988
|
-
height: 20px;
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
.icon-strip-user.active .icon-strip-pill {
|
|
992
|
-
opacity: 1;
|
|
993
|
-
height: 32px;
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
/* DM mode: keep same position (user-island gone but layout stays) */
|
|
997
|
-
|
|
998
908
|
/* --- My avatar at bottom of icon strip (always present, behind user-island) --- */
|
|
999
909
|
/* Positioned to align with icon-strip center (72px / 2 = 36px) */
|
|
1000
910
|
/* Matches user-island avatar center: left:8px + padding:10px + 18px = 36px */
|
|
@@ -1494,14 +1404,6 @@ select.wt-modal-input {
|
|
|
1494
1404
|
margin: 5px auto;
|
|
1495
1405
|
animation: skeleton-shimmer 1.5s ease-in-out infinite;
|
|
1496
1406
|
}
|
|
1497
|
-
.skeleton-icon-strip-user {
|
|
1498
|
-
width: 34px;
|
|
1499
|
-
height: 34px;
|
|
1500
|
-
border-radius: 50%;
|
|
1501
|
-
background: var(--text-muted, #888);
|
|
1502
|
-
margin: 4px auto;
|
|
1503
|
-
animation: skeleton-shimmer 1.5s ease-in-out infinite;
|
|
1504
|
-
}
|
|
1505
1407
|
|
|
1506
1408
|
@media (max-width: 768px) {
|
|
1507
1409
|
#icon-strip {
|
package/lib/public/css/menus.css
CHANGED
|
@@ -669,7 +669,7 @@
|
|
|
669
669
|
#info-panels:empty { display: none; }
|
|
670
670
|
|
|
671
671
|
/* --- Usage panel --- */
|
|
672
|
-
#usage-panel, #status-panel, #context-panel {
|
|
672
|
+
#usage-panel, #status-panel, #context-panel, #team-panel {
|
|
673
673
|
background: var(--bg-alt);
|
|
674
674
|
border: 1px solid var(--border);
|
|
675
675
|
border-radius: 12px;
|
|
@@ -678,7 +678,7 @@
|
|
|
678
678
|
pointer-events: auto;
|
|
679
679
|
}
|
|
680
680
|
|
|
681
|
-
#usage-panel.hidden, #status-panel.hidden, #context-panel.hidden { display: none; }
|
|
681
|
+
#usage-panel.hidden, #status-panel.hidden, #context-panel.hidden, #team-panel.hidden { display: none; }
|
|
682
682
|
|
|
683
683
|
.usage-panel-header {
|
|
684
684
|
display: flex;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/* team-panel.css - Live team activity panel styles */
|
|
2
|
+
|
|
3
|
+
.team-panel-body {
|
|
4
|
+
padding: 12px 14px;
|
|
5
|
+
overflow-y: auto;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.team-section-header {
|
|
9
|
+
font-size: 10px;
|
|
10
|
+
font-weight: 600;
|
|
11
|
+
letter-spacing: 0.07em;
|
|
12
|
+
text-transform: uppercase;
|
|
13
|
+
color: var(--text-dimmer);
|
|
14
|
+
margin: 14px 0 6px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.team-section-header:first-child {
|
|
18
|
+
margin-top: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.team-member-row {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 8px;
|
|
25
|
+
padding: 4px 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.team-member-status-dot {
|
|
29
|
+
width: 8px;
|
|
30
|
+
height: 8px;
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
flex-shrink: 0;
|
|
33
|
+
background: var(--text-dimmer);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.team-member-status-dot.alive {
|
|
37
|
+
background: #4caf50;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.team-member-status-dot.idle {
|
|
41
|
+
background: #ff9800;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.team-member-status-dot.gone,
|
|
45
|
+
.team-member-status-dot.unknown {
|
|
46
|
+
background: var(--text-dimmer);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.team-member-name {
|
|
50
|
+
font-weight: 500;
|
|
51
|
+
font-size: 13px;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.team-member-activity {
|
|
56
|
+
color: var(--text-dim);
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
flex: 1;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
text-overflow: ellipsis;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.team-task-item {
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
gap: 6px;
|
|
68
|
+
padding: 4px 0;
|
|
69
|
+
font-size: 13px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.team-task-status {
|
|
73
|
+
display: inline-block;
|
|
74
|
+
font-size: 10px;
|
|
75
|
+
padding: 1px 6px;
|
|
76
|
+
border-radius: 4px;
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
flex-shrink: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.team-task-status.completed {
|
|
82
|
+
background: rgba(76, 175, 80, 0.15);
|
|
83
|
+
color: #4caf50;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.team-task-status.in_progress {
|
|
87
|
+
background: rgba(33, 150, 243, 0.15);
|
|
88
|
+
color: #2196f3;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.team-task-status.pending {
|
|
92
|
+
background: rgba(158, 158, 158, 0.15);
|
|
93
|
+
color: var(--text-dim);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.team-task-status.blocked {
|
|
97
|
+
background: rgba(244, 67, 54, 0.15);
|
|
98
|
+
color: #f44336;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.team-message-item {
|
|
102
|
+
border-left: 2px solid var(--border-subtle);
|
|
103
|
+
padding-left: 8px;
|
|
104
|
+
margin-bottom: 8px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.team-message-from {
|
|
108
|
+
font-size: 11px;
|
|
109
|
+
font-weight: 600;
|
|
110
|
+
color: var(--text-dim);
|
|
111
|
+
margin-bottom: 2px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.team-message-body {
|
|
115
|
+
font-size: 13px;
|
|
116
|
+
display: -webkit-box;
|
|
117
|
+
-webkit-line-clamp: 3;
|
|
118
|
+
-webkit-box-orient: vertical;
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.beta-badge {
|
|
123
|
+
display: inline-block;
|
|
124
|
+
font-size: 10px;
|
|
125
|
+
padding: 1px 5px;
|
|
126
|
+
border-radius: 4px;
|
|
127
|
+
background: #ff9800;
|
|
128
|
+
color: #fff;
|
|
129
|
+
vertical-align: middle;
|
|
130
|
+
margin-left: 4px;
|
|
131
|
+
font-weight: 600;
|
|
132
|
+
letter-spacing: 0.02em;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.team-empty-state {
|
|
136
|
+
text-align: center;
|
|
137
|
+
color: var(--text-dim);
|
|
138
|
+
padding: 24px 16px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.team-empty-state p {
|
|
142
|
+
margin: 0 0 6px;
|
|
143
|
+
font-size: 14px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.team-empty-hint {
|
|
147
|
+
font-size: 12px;
|
|
148
|
+
color: var(--text-dimmer);
|
|
149
|
+
}
|
package/lib/public/index.html
CHANGED
|
@@ -125,6 +125,7 @@
|
|
|
125
125
|
<line x1="29" y1="55" x2="46" y2="55" stroke="url(#cg-strip)" stroke-width="1.8" stroke-linecap="round"/>
|
|
126
126
|
</svg>
|
|
127
127
|
</div>
|
|
128
|
+
<button type="button" class="icon-strip-team-btn" id="icon-strip-team-btn" title="Team" aria-label="Team"><i data-lucide="users"></i></button>
|
|
128
129
|
<div class="icon-strip-separator"></div>
|
|
129
130
|
<button type="button" class="icon-strip-hint" id="icon-strip-hint-project" data-switcher-mode="project" aria-label="Switch project"></button>
|
|
130
131
|
<div class="icon-strip-projects" id="icon-strip-projects">
|
|
@@ -132,7 +133,6 @@
|
|
|
132
133
|
<div class="skeleton-icon-strip-item"></div>
|
|
133
134
|
</div>
|
|
134
135
|
<button class="icon-strip-add" id="icon-strip-add" title="Add project"><i data-lucide="plus"></i></button>
|
|
135
|
-
<div class="icon-strip-users hidden" id="icon-strip-users"></div>
|
|
136
136
|
<div class="icon-strip-me" id="icon-strip-me"></div>
|
|
137
137
|
</div>
|
|
138
138
|
|
|
@@ -144,13 +144,15 @@
|
|
|
144
144
|
<span>ESC</span>
|
|
145
145
|
</button>
|
|
146
146
|
<div class="home-hub-inner">
|
|
147
|
+
<div class="hub-search-bar">
|
|
148
|
+
<i data-lucide="search"></i>
|
|
149
|
+
<input type="text" id="hub-search-input" placeholder="Search sessions, projects, commands…" autocomplete="off" spellcheck="false" />
|
|
150
|
+
</div>
|
|
147
151
|
<div class="hub-greeting">
|
|
148
152
|
<h1 id="hub-greeting-text"></h1>
|
|
149
153
|
<p id="hub-greeting-date"></p>
|
|
150
154
|
</div>
|
|
151
155
|
|
|
152
|
-
<div id="home-hub-mates" class="home-hub-mates hidden"></div>
|
|
153
|
-
|
|
154
156
|
<div class="hub-card hub-recent-sessions">
|
|
155
157
|
<div class="hub-card-header">
|
|
156
158
|
<span class="hub-card-title">Recent Sessions</span>
|
|
@@ -328,6 +330,13 @@
|
|
|
328
330
|
<div class="usage-row"><span class="usage-label">Terminals</span><span id="status-terminals" class="usage-value">-</span></div>
|
|
329
331
|
</div>
|
|
330
332
|
</div>
|
|
333
|
+
<div id="team-panel" class="hidden">
|
|
334
|
+
<div class="usage-panel-header">
|
|
335
|
+
<span>Team <span class="beta-badge">Beta</span></span>
|
|
336
|
+
<button id="team-panel-close" aria-label="Close"><i data-lucide="x"></i></button>
|
|
337
|
+
</div>
|
|
338
|
+
<div id="team-panel-body" class="usage-panel-body team-panel-body"></div>
|
|
339
|
+
</div>
|
|
331
340
|
<div id="context-panel" class="hidden">
|
|
332
341
|
<div class="usage-panel-header">
|
|
333
342
|
<span>Context</span>
|
|
@@ -532,7 +541,7 @@
|
|
|
532
541
|
<line x1="29" y1="55" x2="46" y2="55" stroke="url(#cg-mobile)" stroke-width="1.8" stroke-linecap="round"/>
|
|
533
542
|
</svg>
|
|
534
543
|
</button>
|
|
535
|
-
<button class="mobile-tab" data-tab="
|
|
544
|
+
<button class="mobile-tab" data-tab="team" id="mob-tab-team"><i data-lucide="users"></i><span class="mobile-tab-label">Team</span></button>
|
|
536
545
|
<button class="mobile-tab" data-tab="more" id="mob-tab-more"><i data-lucide="ellipsis"></i><span class="mobile-tab-label">More</span></button>
|
|
537
546
|
</div>
|
|
538
547
|
|
|
@@ -1042,7 +1051,7 @@
|
|
|
1042
1051
|
<button class="settings-nav-item" data-section="lite" id="settings-clagentic-nav"><span>Lite</span></button>
|
|
1043
1052
|
<div class="settings-nav-separator"></div>
|
|
1044
1053
|
<div class="settings-nav-category">Server</div>
|
|
1045
|
-
<button class="settings-nav-item
|
|
1054
|
+
<button class="settings-nav-item" data-section="advanced" id="settings-advanced-nav"><span>Advanced</span></button>
|
|
1046
1055
|
<button class="settings-nav-item" data-section="restart"><span>Restart</span></button>
|
|
1047
1056
|
<button class="settings-nav-item settings-nav-danger" data-section="shutdown"><span>Shutdown</span></button>
|
|
1048
1057
|
</div>
|
|
@@ -1124,6 +1133,17 @@
|
|
|
1124
1133
|
<span class="settings-value settings-mono" id="settings-project-slug">-</span>
|
|
1125
1134
|
</div>
|
|
1126
1135
|
</div>
|
|
1136
|
+
<h3>Agent Catalog</h3>
|
|
1137
|
+
<div class="settings-card">
|
|
1138
|
+
<div class="settings-field">
|
|
1139
|
+
<label class="settings-label">Refresh Agent Catalog</label>
|
|
1140
|
+
<div class="settings-hint">Re-scans for installed agents and updates the picker for all connected users. Happens automatically when you open the agent picker — use this to push an update immediately.</div>
|
|
1141
|
+
<div style="margin-top: 12px;">
|
|
1142
|
+
<button class="settings-btn-sm" id="settings-refresh-agents-btn"><i data-lucide="refresh-cw" style="width:14px;height:14px;vertical-align:-2px;margin-right:4px;"></i>Refresh agents</button>
|
|
1143
|
+
</div>
|
|
1144
|
+
<div class="settings-hint hidden" id="settings-refresh-agents-status" style="margin-top: 8px;"></div>
|
|
1145
|
+
</div>
|
|
1146
|
+
</div>
|
|
1127
1147
|
<div class="settings-card">
|
|
1128
1148
|
<div class="settings-field-row">
|
|
1129
1149
|
<label class="settings-label">Support</label>
|
|
@@ -1325,18 +1345,55 @@
|
|
|
1325
1345
|
</div>
|
|
1326
1346
|
</div>
|
|
1327
1347
|
</div>
|
|
1328
|
-
<!--
|
|
1329
|
-
<div class="server-settings-section
|
|
1330
|
-
<h2>
|
|
1331
|
-
<
|
|
1332
|
-
|
|
1348
|
+
<!-- Advanced: groups power-user settings (Keep Awake + Memory) -->
|
|
1349
|
+
<div class="server-settings-section" data-section="advanced">
|
|
1350
|
+
<h2>Advanced</h2>
|
|
1351
|
+
<p class="settings-hint" style="margin-bottom: 16px;">Power-user settings. Changes here affect daemon behavior and stability.</p>
|
|
1352
|
+
|
|
1353
|
+
<!-- Keep Awake subsection (macOS only — JS shows/hides this block) -->
|
|
1354
|
+
<div id="settings-keep-awake-section" class="hidden">
|
|
1355
|
+
<h3 class="settings-subsection-title">Keep Awake</h3>
|
|
1356
|
+
<div class="settings-card" style="margin-bottom: 24px;">
|
|
1357
|
+
<label class="settings-toggle-row">
|
|
1358
|
+
<div>
|
|
1359
|
+
<span class="settings-label">Keep Awake</span>
|
|
1360
|
+
<div class="settings-hint">Prevent the system from sleeping while the server is running (macOS only).</div>
|
|
1361
|
+
</div>
|
|
1362
|
+
<input type="checkbox" id="settings-keep-awake">
|
|
1363
|
+
<span class="toggle-track"><span class="toggle-thumb"></span></span>
|
|
1364
|
+
</label>
|
|
1365
|
+
</div>
|
|
1366
|
+
</div>
|
|
1367
|
+
|
|
1368
|
+
<!-- Memory subsection -->
|
|
1369
|
+
<h3 class="settings-subsection-title">Memory</h3>
|
|
1370
|
+
<p class="settings-hint" style="margin-bottom: 12px;">Fine-tune memory pressure gates that protect daemon stability under load.</p>
|
|
1371
|
+
<div class="settings-card" style="border-left: 3px solid var(--warn, #f9e2af); padding-left: 12px;">
|
|
1372
|
+
<div class="settings-hint" style="color: var(--warn, #f9e2af);">
|
|
1373
|
+
<i data-lucide="alert-triangle" style="width:14px;height:14px;vertical-align:-2px;margin-right:4px;"></i>
|
|
1374
|
+
These settings affect daemon stability. Misconfiguration can cause sessions to be blocked or the daemon to restart.
|
|
1375
|
+
</div>
|
|
1376
|
+
</div>
|
|
1377
|
+
<div class="settings-card" style="margin-top: 16px;">
|
|
1378
|
+
<button id="settings-advanced-memory-toggle" class="settings-field-row" style="background:none;border:none;cursor:pointer;width:100%;text-align:left;padding:0;" aria-expanded="false">
|
|
1333
1379
|
<div>
|
|
1334
|
-
<span class="settings-label">
|
|
1335
|
-
<
|
|
1380
|
+
<span class="settings-label">Advanced</span>
|
|
1381
|
+
<span class="settings-hint">Expand to configure memory thresholds</span>
|
|
1336
1382
|
</div>
|
|
1337
|
-
<
|
|
1338
|
-
|
|
1339
|
-
|
|
1383
|
+
<i data-lucide="chevron-right" class="settings-adv-chevron" style="flex-shrink:0;transition:transform 0.15s;"></i>
|
|
1384
|
+
</button>
|
|
1385
|
+
<div id="settings-advanced-memory-body" class="hidden" style="padding-top: 16px;">
|
|
1386
|
+
<div class="settings-field">
|
|
1387
|
+
<label class="settings-label" for="settings-mem-available-min">Min available memory (MB)</label>
|
|
1388
|
+
<div class="settings-hint">Minimum system memory required to start a new session. Increase if you experience OOM restarts.</div>
|
|
1389
|
+
<input type="number" id="settings-mem-available-min" class="settings-budget-input" min="0" max="65536" step="128" value="1024" style="margin-top: 8px; width: 120px;">
|
|
1390
|
+
</div>
|
|
1391
|
+
<div class="settings-field" style="margin-top: 16px;">
|
|
1392
|
+
<label class="settings-label" for="settings-tokens-per-mb-headroom">Context tokens per MB headroom</label>
|
|
1393
|
+
<div class="settings-hint">Controls how large a session's context can grow relative to available cgroup memory. Lower = more conservative. Default (67) is calibrated for claude-opus-4 at 1M context.</div>
|
|
1394
|
+
<input type="number" id="settings-tokens-per-mb-headroom" class="settings-budget-input" min="10" max="500" step="1" value="67" style="margin-top: 8px; width: 120px;">
|
|
1395
|
+
</div>
|
|
1396
|
+
</div>
|
|
1340
1397
|
</div>
|
|
1341
1398
|
</div>
|
|
1342
1399
|
<div class="server-settings-section" data-section="restart">
|
|
@@ -8,6 +8,7 @@ import { switchProject, getCachedProjects, renderProjectList } from './app-proje
|
|
|
8
8
|
import { openSchedulerToTab } from './scheduler.js';
|
|
9
9
|
// playbook imports removed (Quick Start section removed from hub)
|
|
10
10
|
import { exitDmMode } from './app-dm.js';
|
|
11
|
+
import { openCommandPalette } from './command-palette.js';
|
|
11
12
|
|
|
12
13
|
function $hub(id) { return document.getElementById(id); }
|
|
13
14
|
|
|
@@ -50,6 +51,17 @@ export function initHomeHub() {
|
|
|
50
51
|
homeHub = document.getElementById("home-hub");
|
|
51
52
|
hubCloseBtn = document.getElementById("home-hub-close");
|
|
52
53
|
|
|
54
|
+
// Hub search bar: focus or keydown delegates immediately to the command palette.
|
|
55
|
+
var hubSearchInput = document.getElementById("hub-search-input");
|
|
56
|
+
if (hubSearchInput) {
|
|
57
|
+
function delegateToPalette() {
|
|
58
|
+
hubSearchInput.blur();
|
|
59
|
+
openCommandPalette();
|
|
60
|
+
}
|
|
61
|
+
hubSearchInput.addEventListener("focus", delegateToPalette);
|
|
62
|
+
hubSearchInput.addEventListener("keydown", delegateToPalette);
|
|
63
|
+
}
|
|
64
|
+
|
|
53
65
|
if (hubCloseBtn) {
|
|
54
66
|
hubCloseBtn.addEventListener("click", function () {
|
|
55
67
|
hideHomeHub();
|
|
@@ -11,7 +11,7 @@ import { refreshIcons, iconHtml } from './icons.js';
|
|
|
11
11
|
import { renderMarkdown, highlightCodeBlocks, highlightCodeBlocksBatched, renderMermaidBlocks } from './markdown.js';
|
|
12
12
|
import { updatePageTitle } from './sidebar.js';
|
|
13
13
|
import { renderSessionList, updateSessionPresence, populateCliSessionList, handleSearchResults, updateSessionBadge } from './sidebar-sessions.js';
|
|
14
|
-
import { updateDmBadge, renderSidebarPresence, setMentionActive, renderUserStrip } from './sidebar-users.js';
|
|
14
|
+
import { updateDmBadge, renderSidebarPresence, setMentionActive, renderUserStrip, handleAgentsList as handleAgentsListTeam } from './sidebar-users.js';
|
|
15
15
|
import { refreshMobileChatSheet } from './sidebar-mobile.js';
|
|
16
16
|
import { handlePaletteSessionSwitch, setPaletteVersion } from './command-palette.js';
|
|
17
17
|
import { handleAgentsList, handleAgentFavoriteToggled } from './agent-picker.js';
|
|
@@ -23,7 +23,7 @@ import { showDoneNotification, playDoneSound, isNotifAlertEnabled, isNotifSoundE
|
|
|
23
23
|
import { handleFsList, handleFsRead, handleFileChanged, handleDirChanged, handleFileHistory, handleGitDiff, handleFileAt, refreshIfOpen, handleFsSearch } from './filebrowser.js';
|
|
24
24
|
import { getPendingNavigate, peekPendingNavigate } from './pending-navigate.js';
|
|
25
25
|
import { isProjectSettingsOpen, refreshProjectSettingsModels, handleInstructionsRead, handleInstructionsWrite, handleProjectEnv, handleProjectEnvSaved, handleProjectSharedEnv, handleProjectSharedEnvSaved, handleProjectOwnerChanged, updateLiteVisibility, handleLiteProjectStatus, handleLiteEnrollResult, handleLiteUnenrollResult } from './project-settings.js';
|
|
26
|
-
import { updateSettingsModels, updateSettingsStats, updateDaemonConfig, handleSetPinResult, handleKeepAwakeChanged, handleAutoContinueChanged, handleRestartResult, handleShutdownResult, handleSharedEnv, handleSharedEnvSaved, handleGlobalClaudeMdRead, handleGlobalClaudeMdWrite, updateSsLiteVisibility } from './server-settings.js';
|
|
26
|
+
import { updateSettingsModels, updateSettingsStats, updateDaemonConfig, handleSetPinResult, handleKeepAwakeChanged, handleAutoContinueChanged, handleRefreshAgentsResult, handleRestartResult, handleShutdownResult, handleSharedEnv, handleSharedEnvSaved, handleGlobalClaudeMdRead, handleGlobalClaudeMdWrite, updateSsLiteVisibility } from './server-settings.js';
|
|
27
27
|
import { handleTermList, handleTermCreated, sendTerminalCommand, handleTermOutput, handleTermResized, handleTermExited, handleTermClosed } from './terminal.js';
|
|
28
28
|
import { updateTerminalList, handleContextSourcesState } from './context-sources.js';
|
|
29
29
|
import { handleNotesList, handleNoteCreated, handleNoteUpdated, handleNoteDeleted } from './sticky-notes.js';
|
|
@@ -49,6 +49,7 @@ import { showLoopBanner, updateLoopBanner, updateLoopInputVisibility, showRalphA
|
|
|
49
49
|
import { handleSkillInstallWs } from './app-skills-install.js';
|
|
50
50
|
import { handleNotificationsState, handleNotificationCreated, handleNotificationDismissed, handleNotificationDismissedAll, showUpdateBanner } from './app-notifications.js';
|
|
51
51
|
import { handleMentionStart, handleMentionActivity, handleMentionStream, handleMentionDone, handleMentionError, renderMentionUser, renderMentionResponse, renderUserMention } from './mention.js';
|
|
52
|
+
import { handleTeamState, handleTeamMemberUpdate, handleTeamTaskUpdate, handleTeamMessage as handleTeamMsg, handleTeamGone } from './team-panel.js';
|
|
52
53
|
|
|
53
54
|
// --- DOM refs (cached once, stable for page lifetime) ---
|
|
54
55
|
var messagesEl = document.getElementById("messages");
|
|
@@ -458,6 +459,7 @@ export function processMessage(msg) {
|
|
|
458
459
|
|
|
459
460
|
case "agents_list":
|
|
460
461
|
handleAgentsList(msg);
|
|
462
|
+
handleAgentsListTeam(msg);
|
|
461
463
|
break;
|
|
462
464
|
|
|
463
465
|
case "agent_favorite_toggled":
|
|
@@ -1326,6 +1328,13 @@ export function processMessage(msg) {
|
|
|
1326
1328
|
if (msg.error) showToast("@Mention: " + msg.error, "error");
|
|
1327
1329
|
break;
|
|
1328
1330
|
|
|
1331
|
+
// --- Team activity ---
|
|
1332
|
+
case "team_state": handleTeamState(msg); break;
|
|
1333
|
+
case "team_member_update": handleTeamMemberUpdate(msg); break;
|
|
1334
|
+
case "team_task_update": handleTeamTaskUpdate(msg); break;
|
|
1335
|
+
case "team_message": handleTeamMsg(msg); break;
|
|
1336
|
+
case "team_gone": handleTeamGone(msg); break;
|
|
1337
|
+
|
|
1329
1338
|
case "daemon_config":
|
|
1330
1339
|
if (msg.config && msg.config.headless) store.set({ isHeadlessMode: true });
|
|
1331
1340
|
updateDaemonConfig(msg.config);
|
|
@@ -1348,6 +1357,10 @@ export function processMessage(msg) {
|
|
|
1348
1357
|
handleAutoContinueChanged(msg);
|
|
1349
1358
|
break;
|
|
1350
1359
|
|
|
1360
|
+
case "refresh_agents_result":
|
|
1361
|
+
handleRefreshAgentsResult(msg);
|
|
1362
|
+
break;
|
|
1363
|
+
|
|
1351
1364
|
case "restart_server_result":
|
|
1352
1365
|
handleRestartResult(msg);
|
|
1353
1366
|
break;
|