@clagentic/console 1.0.0-beta.3 → 1.0.1-beta.1
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/CREDITS.md +1 -0
- package/LICENSE +1 -0
- package/README.md +64 -174
- package/bin/cli.js +10 -15
- package/lib/agents-favorites.js +1 -0
- package/lib/ask-user-mcp-server.js +1 -0
- package/lib/config.js +1 -0
- package/lib/crisis-safety.js +1 -0
- package/lib/daemon.js +38 -2
- package/lib/dm.js +1 -0
- package/lib/mcp-local.js +1 -0
- package/lib/os-users.js +1 -0
- package/lib/pages.js +8 -71
- package/lib/project-connection.js +3 -28
- package/lib/project-external-trigger.js +1 -0
- package/lib/project-http.js +1 -0
- package/lib/project-knowledge.js +3 -2
- package/lib/project-loop.js +1 -1
- package/lib/project-mcp.js +1 -0
- package/lib/project-memory.js +1 -0
- package/lib/project-sessions.js +2 -1
- package/lib/project-user-message.js +2 -1
- package/lib/project.js +1 -0
- package/lib/public/app.js +2 -1
- package/lib/public/css/admin.css +23 -0
- package/lib/public/css/base.css +52 -0
- package/lib/public/css/channel-layout.css +1 -0
- package/lib/public/css/debate.css +1 -0
- package/lib/public/css/filebrowser.css +14 -0
- package/lib/public/css/home-hub.css +1 -0
- package/lib/public/css/icon-strip.css +2 -15
- package/lib/public/css/loop.css +1 -0
- package/lib/public/css/mention.css +2 -1
- package/lib/public/css/server-settings.css +206 -41
- package/lib/public/css/session-search.css +1 -0
- package/lib/public/css/stt.css +1 -0
- package/lib/public/index.html +45 -48
- package/lib/public/modules/admin.js +55 -2
- package/lib/public/modules/app-connection.js +1 -1
- package/lib/public/modules/app-dm.js +1 -1
- package/lib/public/modules/app-favicon.js +1 -0
- package/lib/public/modules/app-home-hub.js +1 -0
- package/lib/public/modules/app-loop-ui.js +1 -1
- package/lib/public/modules/app-loop-wizard.js +1 -1
- package/lib/public/modules/app-messages.js +23 -3
- package/lib/public/modules/app-misc.js +2 -9
- package/lib/public/modules/app-notifications.js +2 -2
- package/lib/public/modules/app-panels.js +13 -7
- package/lib/public/modules/app-projects.js +1 -0
- package/lib/public/modules/app-rate-limit.js +1 -1
- package/lib/public/modules/app-rendering.js +14 -7
- package/lib/public/modules/app-skills-install.js +1 -1
- package/lib/public/modules/command-palette.js +1 -1
- package/lib/public/modules/mention.js +3 -2
- package/lib/public/modules/notifications.js +34 -0
- package/lib/public/modules/playbook.js +1 -0
- package/lib/public/modules/profile.js +1 -1
- package/lib/public/modules/project-settings.js +179 -12
- package/lib/public/modules/project-switcher.js +29 -91
- package/lib/public/modules/server-settings.js +234 -11
- package/lib/public/modules/session-search.js +1 -0
- package/lib/public/modules/sidebar-mobile.js +0 -1
- package/lib/public/modules/sidebar-projects.js +19 -0
- package/lib/public/modules/sidebar-sessions.js +1 -0
- package/lib/public/modules/sidebar-users.js +3 -3
- package/lib/public/modules/store.js +26 -4
- package/lib/public/modules/theme.js +9 -9
- package/lib/public/modules/tools.js +2 -1
- package/lib/public/modules/user-settings.js +1 -1
- package/lib/public/style.css +1 -0
- package/lib/public/sw.js +10 -2
- package/lib/push.js +2 -1
- package/lib/sdk-bridge.js +1 -0
- package/lib/sdk-message-processor.js +11 -0
- package/lib/sdk-worker.js +1 -0
- package/lib/server-auth.js +2 -2
- package/lib/server-dm.js +1 -0
- package/lib/server-palette.js +1 -0
- package/lib/server-settings.js +26 -25
- package/lib/server-skills.js +1 -1
- package/lib/server.js +28 -4
- package/lib/session-search.js +1 -0
- package/lib/sessions.js +4 -1
- package/lib/smtp.js +7 -7
- package/lib/users-auth.js +30 -5
- package/lib/users-preferences.js +1 -0
- package/lib/users.js +2 -0
- package/lib/ws-schema.js +1 -0
- package/lib/yoke/adapters/claude-worker.js +1 -0
- package/lib/yoke/adapters/claude.js +1 -0
- package/lib/yoke/adapters/codex.js +1 -1
- package/lib/yoke/mcp-bridge-server.js +1 -0
- package/package.json +3 -3
|
@@ -88,11 +88,6 @@
|
|
|
88
88
|
white-space: nowrap;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
/* --- Nav dropdown (mobile only) --- */
|
|
92
|
-
.settings-nav-dropdown {
|
|
93
|
-
display: none;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
91
|
/* --- Nav items --- */
|
|
97
92
|
.server-settings-nav-items {
|
|
98
93
|
display: flex;
|
|
@@ -748,7 +743,6 @@
|
|
|
748
743
|
margin-top: 8px;
|
|
749
744
|
}
|
|
750
745
|
|
|
751
|
-
|
|
752
746
|
/* ========== RESPONSIVE ========== */
|
|
753
747
|
@media (max-width: 768px) {
|
|
754
748
|
.server-settings-layout {
|
|
@@ -781,41 +775,6 @@
|
|
|
781
775
|
line-height: 36px; /* match close btn height for vertical align */
|
|
782
776
|
}
|
|
783
777
|
|
|
784
|
-
/* Hide desktop nav items on mobile, show dropdown instead */
|
|
785
|
-
.server-settings-nav-items {
|
|
786
|
-
display: none;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
.settings-nav-dropdown {
|
|
790
|
-
display: block;
|
|
791
|
-
width: calc(100% - 32px);
|
|
792
|
-
margin: 0 16px 12px;
|
|
793
|
-
padding: 10px 12px;
|
|
794
|
-
font-family: "Pretendard", system-ui, sans-serif;
|
|
795
|
-
font-size: 14px;
|
|
796
|
-
font-weight: 600;
|
|
797
|
-
color: var(--text);
|
|
798
|
-
background: var(--bg-alt);
|
|
799
|
-
border: 1px solid var(--border);
|
|
800
|
-
border-radius: 10px;
|
|
801
|
-
-webkit-appearance: none;
|
|
802
|
-
appearance: none;
|
|
803
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
|
|
804
|
-
background-repeat: no-repeat;
|
|
805
|
-
background-position: right 12px center;
|
|
806
|
-
cursor: pointer;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
.settings-nav-dropdown optgroup {
|
|
810
|
-
font-weight: 700;
|
|
811
|
-
color: var(--text-muted);
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
.settings-nav-dropdown option {
|
|
815
|
-
font-weight: 500;
|
|
816
|
-
color: var(--text);
|
|
817
|
-
}
|
|
818
|
-
|
|
819
778
|
.server-settings-content {
|
|
820
779
|
flex: 1 1 auto;
|
|
821
780
|
max-width: none;
|
|
@@ -844,6 +803,212 @@
|
|
|
844
803
|
}
|
|
845
804
|
}
|
|
846
805
|
|
|
806
|
+
/* ========== SETTINGS NAV PILL (mobile) ========== */
|
|
807
|
+
.settings-nav-pill {
|
|
808
|
+
display: none; /* shown only on mobile via media query */
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
/* ========== SETTINGS COMMAND PALETTE ========== */
|
|
812
|
+
.settings-palette {
|
|
813
|
+
position: fixed;
|
|
814
|
+
inset: 0;
|
|
815
|
+
z-index: 650;
|
|
816
|
+
display: flex;
|
|
817
|
+
flex-direction: column;
|
|
818
|
+
padding: 56px 14px 14px;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.settings-palette.hidden {
|
|
822
|
+
display: none;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
.settings-palette-backdrop {
|
|
826
|
+
position: absolute;
|
|
827
|
+
inset: 0;
|
|
828
|
+
background: rgba(0, 0, 0, 0.55);
|
|
829
|
+
backdrop-filter: blur(6px);
|
|
830
|
+
-webkit-backdrop-filter: blur(6px);
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
.settings-palette-dialog {
|
|
834
|
+
position: relative;
|
|
835
|
+
z-index: 1;
|
|
836
|
+
background: var(--bg-alt);
|
|
837
|
+
border: 1px solid var(--border);
|
|
838
|
+
border-radius: 16px;
|
|
839
|
+
overflow: hidden;
|
|
840
|
+
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
|
|
841
|
+
max-height: calc(100% - 70px);
|
|
842
|
+
display: flex;
|
|
843
|
+
flex-direction: column;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
.settings-palette-input-row {
|
|
847
|
+
display: flex;
|
|
848
|
+
align-items: center;
|
|
849
|
+
gap: 10px;
|
|
850
|
+
padding: 12px 14px;
|
|
851
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
852
|
+
flex-shrink: 0;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
.settings-palette-search-icon {
|
|
856
|
+
color: var(--text-muted);
|
|
857
|
+
flex-shrink: 0;
|
|
858
|
+
width: 16px;
|
|
859
|
+
height: 16px;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.settings-palette-input {
|
|
863
|
+
flex: 1;
|
|
864
|
+
background: transparent;
|
|
865
|
+
border: none;
|
|
866
|
+
outline: none;
|
|
867
|
+
color: var(--text);
|
|
868
|
+
font-family: inherit;
|
|
869
|
+
font-size: 14px;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.settings-palette-input::placeholder {
|
|
873
|
+
color: var(--text-muted);
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
.settings-palette-esc-hint {
|
|
877
|
+
font-size: 11px;
|
|
878
|
+
font-family: monospace;
|
|
879
|
+
color: var(--text-dimmer);
|
|
880
|
+
padding: 2px 6px;
|
|
881
|
+
border: 1px solid var(--border-subtle);
|
|
882
|
+
border-radius: 4px;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.settings-palette-results {
|
|
886
|
+
overflow-y: auto;
|
|
887
|
+
padding: 6px 0;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
.settings-palette-group-header {
|
|
891
|
+
font-size: 10px;
|
|
892
|
+
font-weight: 700;
|
|
893
|
+
letter-spacing: 0.08em;
|
|
894
|
+
text-transform: uppercase;
|
|
895
|
+
color: var(--text-dimmer);
|
|
896
|
+
padding: 10px 14px 4px;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
.settings-palette-item {
|
|
900
|
+
display: flex;
|
|
901
|
+
align-items: center;
|
|
902
|
+
gap: 10px;
|
|
903
|
+
width: 100%;
|
|
904
|
+
padding: 10px 14px;
|
|
905
|
+
background: transparent;
|
|
906
|
+
border: none;
|
|
907
|
+
color: var(--text);
|
|
908
|
+
font-family: inherit;
|
|
909
|
+
font-size: 13.5px;
|
|
910
|
+
font-weight: 500;
|
|
911
|
+
cursor: pointer;
|
|
912
|
+
text-align: left;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
.settings-palette-item:hover,
|
|
916
|
+
.settings-palette-item.highlighted {
|
|
917
|
+
background: var(--accent-8);
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
.settings-palette-item.current {
|
|
921
|
+
color: var(--accent);
|
|
922
|
+
font-weight: 600;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.settings-palette-item-icon {
|
|
926
|
+
color: var(--text-muted);
|
|
927
|
+
flex-shrink: 0;
|
|
928
|
+
width: 15px;
|
|
929
|
+
height: 15px;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.settings-palette-item.current .settings-palette-item-icon {
|
|
933
|
+
color: var(--accent);
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.settings-palette-item-label {
|
|
937
|
+
flex: 1;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
.settings-palette-item-check {
|
|
941
|
+
color: var(--accent);
|
|
942
|
+
width: 14px;
|
|
943
|
+
height: 14px;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
.settings-palette-empty {
|
|
947
|
+
padding: 18px 14px;
|
|
948
|
+
text-align: center;
|
|
949
|
+
color: var(--text-muted);
|
|
950
|
+
font-size: 13px;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.settings-palette-item.danger {
|
|
954
|
+
color: var(--error);
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
/* Mobile media query additions */
|
|
958
|
+
@media (max-width: 768px) {
|
|
959
|
+
.settings-nav-pill {
|
|
960
|
+
display: flex;
|
|
961
|
+
align-items: center;
|
|
962
|
+
gap: 8px;
|
|
963
|
+
width: calc(100% - 32px);
|
|
964
|
+
margin: 0 16px 12px;
|
|
965
|
+
padding: 10px 12px;
|
|
966
|
+
background: var(--bg-alt);
|
|
967
|
+
border: 1px solid var(--border);
|
|
968
|
+
border-radius: 10px;
|
|
969
|
+
color: var(--text);
|
|
970
|
+
font-family: inherit;
|
|
971
|
+
font-size: 14px;
|
|
972
|
+
font-weight: 600;
|
|
973
|
+
cursor: pointer;
|
|
974
|
+
text-align: left;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.settings-nav-pill-group {
|
|
978
|
+
font-size: 10px;
|
|
979
|
+
font-weight: 700;
|
|
980
|
+
letter-spacing: 0.06em;
|
|
981
|
+
text-transform: uppercase;
|
|
982
|
+
color: var(--text-muted);
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
.settings-nav-pill-divider {
|
|
986
|
+
width: 1px;
|
|
987
|
+
height: 14px;
|
|
988
|
+
background: var(--border-subtle);
|
|
989
|
+
flex-shrink: 0;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
.settings-nav-pill-label {
|
|
993
|
+
flex: 1;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.settings-nav-pill-chevron {
|
|
997
|
+
color: var(--text-muted);
|
|
998
|
+
display: flex;
|
|
999
|
+
align-items: center;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
.settings-nav-pill-chevron i {
|
|
1003
|
+
width: 14px;
|
|
1004
|
+
height: 14px;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
.server-settings-nav-items {
|
|
1008
|
+
display: none;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
|
|
847
1012
|
/* --- Select inside toggle rows --- */
|
|
848
1013
|
.settings-select {
|
|
849
1014
|
flex-shrink: 0;
|
package/lib/public/css/stt.css
CHANGED
package/lib/public/index.html
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
<div id="ext-popover" class="ext-popover">
|
|
54
54
|
<div class="ext-popover-header">
|
|
55
55
|
<div class="ext-popover-title">Clagentic:Console for Chrome <span class="ext-experimental">Experimental</span></div>
|
|
56
|
-
<div class="ext-popover-sub">v0.1.0
|
|
56
|
+
<div class="ext-popover-sub">v0.1.0</div>
|
|
57
57
|
</div>
|
|
58
58
|
<div class="ext-popover-connected hidden" id="ext-connected-banner"><i data-lucide="check-circle"></i> Extension connected</div>
|
|
59
59
|
<div class="ext-popover-desc" id="ext-popover-desc">Connect your browser to Clagentic:Console. Gives Claude visibility into open tabs, console, network, DOM, and screenshots.</div>
|
|
@@ -132,10 +132,7 @@
|
|
|
132
132
|
<div class="skeleton-icon-strip-item"></div>
|
|
133
133
|
</div>
|
|
134
134
|
<button class="icon-strip-add" id="icon-strip-add" title="Add project"><i data-lucide="plus"></i></button>
|
|
135
|
-
<div class="icon-strip-
|
|
136
|
-
<button type="button" class="icon-strip-hint hidden" id="icon-strip-hint-mate" data-switcher-mode="mate" aria-label="Switch mate"></button>
|
|
137
|
-
<div class="icon-strip-users hidden" id="icon-strip-users"></div>
|
|
138
|
-
</div>
|
|
135
|
+
<div class="icon-strip-users hidden" id="icon-strip-users"></div>
|
|
139
136
|
<div class="icon-strip-me" id="icon-strip-me"></div>
|
|
140
137
|
</div>
|
|
141
138
|
|
|
@@ -341,12 +338,6 @@
|
|
|
341
338
|
<div class="usage-row"><span class="usage-label">Window</span><span id="context-window" class="usage-value">-</span></div>
|
|
342
339
|
<div class="usage-row"><span class="usage-label">Max output</span><span id="context-max-output" class="usage-value">-</span></div>
|
|
343
340
|
<div class="usage-divider"></div>
|
|
344
|
-
<div class="usage-section-label">Session Tokens</div>
|
|
345
|
-
<div class="usage-row"><span class="usage-label">Input</span><span id="context-input" class="usage-value">0</span></div>
|
|
346
|
-
<div class="usage-row"><span class="usage-label">Output</span><span id="context-output" class="usage-value">0</span></div>
|
|
347
|
-
<div class="usage-row"><span class="usage-label">Cache read</span><span id="context-cache-read" class="usage-value">0</span></div>
|
|
348
|
-
<div class="usage-row"><span class="usage-label">Cache write</span><span id="context-cache-write" class="usage-value">0</span></div>
|
|
349
|
-
<div class="usage-divider"></div>
|
|
350
341
|
<div class="usage-section-label">Model</div>
|
|
351
342
|
<div class="usage-row"><span class="usage-label">Name</span><span id="context-model" class="usage-value">-</span></div>
|
|
352
343
|
<div class="usage-row"><span class="usage-label">Cost</span><span id="context-cost" class="usage-value">$0.0000</span></div>
|
|
@@ -553,16 +544,12 @@
|
|
|
553
544
|
<div class="project-settings-nav">
|
|
554
545
|
<div class="project-settings-nav-inner">
|
|
555
546
|
<div class="server-settings-nav-header" id="ps-nav-title">-</div>
|
|
556
|
-
<
|
|
557
|
-
<
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
<option value="instructions">Instructions</option>
|
|
563
|
-
<option value="environment">Environment</option>
|
|
564
|
-
</optgroup>
|
|
565
|
-
</select>
|
|
547
|
+
<button id="ps-nav-pill" class="settings-nav-pill" aria-haspopup="dialog" aria-expanded="false">
|
|
548
|
+
<span class="settings-nav-pill-group" id="ps-nav-pill-group">General</span>
|
|
549
|
+
<span class="settings-nav-pill-divider"></span>
|
|
550
|
+
<span class="settings-nav-pill-label" id="ps-nav-pill-label">Profile</span>
|
|
551
|
+
<span class="settings-nav-pill-chevron"><i data-lucide="chevron-down"></i></span>
|
|
552
|
+
</button>
|
|
566
553
|
<div class="server-settings-nav-items">
|
|
567
554
|
<div class="settings-nav-category">General</div>
|
|
568
555
|
<button class="settings-nav-item active" data-section="profile"><span>Profile</span></button>
|
|
@@ -727,6 +714,17 @@
|
|
|
727
714
|
</div>
|
|
728
715
|
</div>
|
|
729
716
|
</div>
|
|
717
|
+
<div id="ps-palette" class="settings-palette hidden" role="dialog" aria-modal="true" aria-label="Jump to setting">
|
|
718
|
+
<div class="settings-palette-backdrop"></div>
|
|
719
|
+
<div class="settings-palette-dialog">
|
|
720
|
+
<div class="settings-palette-input-row">
|
|
721
|
+
<i data-lucide="search" class="settings-palette-search-icon"></i>
|
|
722
|
+
<input id="ps-palette-input" class="settings-palette-input" type="text" placeholder="Jump to setting…" autocomplete="off" spellcheck="false" />
|
|
723
|
+
<span class="settings-palette-esc-hint">esc</span>
|
|
724
|
+
</div>
|
|
725
|
+
<div id="ps-palette-results" class="settings-palette-results"></div>
|
|
726
|
+
</div>
|
|
727
|
+
</div>
|
|
730
728
|
<div id="terminal-container" class="hidden">
|
|
731
729
|
<div class="terminal-header">
|
|
732
730
|
<div id="terminal-tabs" class="terminal-tabs"></div>
|
|
@@ -984,31 +982,12 @@
|
|
|
984
982
|
<div class="server-settings-nav">
|
|
985
983
|
<div class="server-settings-nav-inner">
|
|
986
984
|
<div class="server-settings-nav-header" id="settings-server-name"></div>
|
|
987
|
-
<
|
|
988
|
-
<
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
<optgroup label="Defaults">
|
|
994
|
-
<option value="models">Model</option>
|
|
995
|
-
</optgroup>
|
|
996
|
-
<optgroup label="Config">
|
|
997
|
-
<option value="claudemd">Instructions</option>
|
|
998
|
-
<option value="environment">Environment</option>
|
|
999
|
-
</optgroup>
|
|
1000
|
-
<optgroup label="Admin" class="settings-admin-only">
|
|
1001
|
-
<option value="admin-users">Users</option>
|
|
1002
|
-
<option value="admin-invites">Invites</option>
|
|
1003
|
-
<option value="admin-projects">Projects</option>
|
|
1004
|
-
<option value="admin-smtp">Email</option>
|
|
1005
|
-
</optgroup>
|
|
1006
|
-
<optgroup label="Server">
|
|
1007
|
-
<option value="keep-awake" class="hidden" id="settings-keep-awake-opt">Keep Awake</option>
|
|
1008
|
-
<option value="restart">Restart</option>
|
|
1009
|
-
<option value="shutdown">Shutdown</option>
|
|
1010
|
-
</optgroup>
|
|
1011
|
-
</select>
|
|
985
|
+
<button id="settings-nav-pill" class="settings-nav-pill" aria-haspopup="dialog" aria-expanded="false">
|
|
986
|
+
<span class="settings-nav-pill-group" id="settings-nav-pill-group">General</span>
|
|
987
|
+
<span class="settings-nav-pill-divider"></span>
|
|
988
|
+
<span class="settings-nav-pill-label" id="settings-nav-pill-label">Status</span>
|
|
989
|
+
<span class="settings-nav-pill-chevron"><i data-lucide="chevron-down"></i></span>
|
|
990
|
+
</button>
|
|
1012
991
|
<div class="server-settings-nav-items">
|
|
1013
992
|
<div class="settings-nav-category">General</div>
|
|
1014
993
|
<button class="settings-nav-item active" data-section="overview"><span>Status</span></button>
|
|
@@ -1112,6 +1091,12 @@
|
|
|
1112
1091
|
<span class="settings-value settings-mono" id="settings-project-slug">-</span>
|
|
1113
1092
|
</div>
|
|
1114
1093
|
</div>
|
|
1094
|
+
<div class="settings-card">
|
|
1095
|
+
<div class="settings-field-row">
|
|
1096
|
+
<label class="settings-label">Support</label>
|
|
1097
|
+
<a href="https://ko-fi.com/clagentic" target="_blank" rel="noopener" class="settings-value" style="color:var(--accent);text-decoration:none;font-size:13px">ko-fi.com/clagentic ↗</a>
|
|
1098
|
+
</div>
|
|
1099
|
+
</div>
|
|
1115
1100
|
</div>
|
|
1116
1101
|
<div class="server-settings-section" data-section="models">
|
|
1117
1102
|
<h2>Model</h2>
|
|
@@ -1348,6 +1333,17 @@
|
|
|
1348
1333
|
</button>
|
|
1349
1334
|
</div>
|
|
1350
1335
|
</div>
|
|
1336
|
+
<div id="settings-palette" class="settings-palette hidden" role="dialog" aria-modal="true" aria-label="Jump to setting">
|
|
1337
|
+
<div class="settings-palette-backdrop"></div>
|
|
1338
|
+
<div class="settings-palette-dialog">
|
|
1339
|
+
<div class="settings-palette-input-row">
|
|
1340
|
+
<i data-lucide="search" class="settings-palette-search-icon"></i>
|
|
1341
|
+
<input id="settings-palette-input" class="settings-palette-input" type="text" placeholder="Jump to setting…" autocomplete="off" spellcheck="false" />
|
|
1342
|
+
<span class="settings-palette-esc-hint">esc</span>
|
|
1343
|
+
</div>
|
|
1344
|
+
<div id="settings-palette-results" class="settings-palette-results"></div>
|
|
1345
|
+
</div>
|
|
1346
|
+
</div>
|
|
1351
1347
|
</div>
|
|
1352
1348
|
|
|
1353
1349
|
<div id="paste-modal" class="hidden">
|
|
@@ -1623,7 +1619,7 @@
|
|
|
1623
1619
|
</div>
|
|
1624
1620
|
<div class="config-segmented ralph-authorship-toggle" data-file="prompt">
|
|
1625
1621
|
<button class="config-segment-btn" data-author="me">Me</button>
|
|
1626
|
-
<button class="config-segment-btn active" data-author="
|
|
1622
|
+
<button class="config-segment-btn active" data-author="clagentic">Console</button>
|
|
1627
1623
|
</div>
|
|
1628
1624
|
</div>
|
|
1629
1625
|
<div class="ralph-authorship-row" id="ralph-judge-authorship-row">
|
|
@@ -1633,7 +1629,7 @@
|
|
|
1633
1629
|
</div>
|
|
1634
1630
|
<div class="config-segmented ralph-authorship-toggle" data-file="judge">
|
|
1635
1631
|
<button class="config-segment-btn" data-author="me">Me</button>
|
|
1636
|
-
<button class="config-segment-btn active" data-author="
|
|
1632
|
+
<button class="config-segment-btn active" data-author="clagentic">Console</button>
|
|
1637
1633
|
</div>
|
|
1638
1634
|
</div>
|
|
1639
1635
|
</div>
|
|
@@ -1944,3 +1940,4 @@
|
|
|
1944
1940
|
</div>
|
|
1945
1941
|
</body>
|
|
1946
1942
|
</html>
|
|
1943
|
+
|
|
@@ -101,6 +101,39 @@ export function loadAdminSection(section, body) {
|
|
|
101
101
|
} else if (section === "admin-smtp") {
|
|
102
102
|
loadSmtpTab(body);
|
|
103
103
|
}
|
|
104
|
+
|
|
105
|
+
}
|
|
106
|
+
// --- Migration from single-user to multi-user ---
|
|
107
|
+
function enableMultiUserMode() {
|
|
108
|
+
var modal = document.createElement("div");
|
|
109
|
+
modal.className = "admin-modal-overlay";
|
|
110
|
+
modal.innerHTML = '<div class="admin-modal">' +
|
|
111
|
+
'<div class="admin-modal-body" style="padding:20px 16px 16px">' +
|
|
112
|
+
'<p class="admin-modal-desc" style="margin:0;font-size:14px;color:var(--text)">Enable multi-user mode? You will be directed to set up the admin account. Your current PIN will become the admin PIN.</p>' +
|
|
113
|
+
'</div>' +
|
|
114
|
+
'<div class="admin-modal-footer">' +
|
|
115
|
+
'<button class="admin-modal-save" id="confirm-enable-multiuser">Enable</button>' +
|
|
116
|
+
'<button class="admin-modal-cancel">Cancel</button>' +
|
|
117
|
+
'</div></div>';
|
|
118
|
+
document.body.appendChild(modal);
|
|
119
|
+
refreshIcons(modal);
|
|
120
|
+
modal.querySelector(".admin-modal-cancel").addEventListener("click", function () { modal.remove(); });
|
|
121
|
+
modal.addEventListener("click", function (e) { if (e.target === modal) modal.remove(); });
|
|
122
|
+
modal.querySelector("#confirm-enable-multiuser").addEventListener("click", function () {
|
|
123
|
+
modal.remove();
|
|
124
|
+
apiPost("/api/settings/enable-multiuser").then(function (data) {
|
|
125
|
+
if (data.ok && data.setupCode) {
|
|
126
|
+
showToast("Multi-user mode enabled. Redirecting to setup...");
|
|
127
|
+
setTimeout(function () {
|
|
128
|
+
window.location.href = "/auth?setupCode=" + encodeURIComponent(data.setupCode);
|
|
129
|
+
}, 500);
|
|
130
|
+
} else {
|
|
131
|
+
showToast(data.error || "Failed to enable multi-user mode");
|
|
132
|
+
}
|
|
133
|
+
}).catch(function () {
|
|
134
|
+
showToast("Failed to enable multi-user mode");
|
|
135
|
+
});
|
|
136
|
+
});
|
|
104
137
|
}
|
|
105
138
|
|
|
106
139
|
// --- Users ---
|
|
@@ -114,7 +147,18 @@ function loadUsersTab(body) {
|
|
|
114
147
|
}
|
|
115
148
|
|
|
116
149
|
function renderUsersTab(body) {
|
|
117
|
-
var html = '
|
|
150
|
+
var html = '';
|
|
151
|
+
|
|
152
|
+
// Show migration callout if single-user mode with PIN is active
|
|
153
|
+
if (meInfo && meInfo.singleUserMigrationAvailable && !meInfo.multiUser) {
|
|
154
|
+
html += '<div class="migration-callout">' +
|
|
155
|
+
'<strong>Migrate to multi-user mode</strong>' +
|
|
156
|
+
'<p>You\'re currently using single-user PIN mode. Multi-user mode lets you create named accounts with better security. Your existing PIN will continue to work during transition.</p>' +
|
|
157
|
+
'<button id="migrate-to-multiuser-btn" class="admin-action-btn">Set up multi-user mode</button>' +
|
|
158
|
+
'</div>';
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
html += '<div class="admin-section-header">' +
|
|
118
162
|
'<div class="admin-header-btns">' +
|
|
119
163
|
'<button class="admin-action-btn" id="admin-add-user">' + iconHtml("user-plus") + ' Add User</button>' +
|
|
120
164
|
'</div></div>';
|
|
@@ -150,6 +194,14 @@ function renderUsersTab(body) {
|
|
|
150
194
|
body.innerHTML = html;
|
|
151
195
|
refreshIcons(body);
|
|
152
196
|
|
|
197
|
+
// Bind migration button
|
|
198
|
+
var migrateBtn = body.querySelector("#migrate-to-multiuser-btn");
|
|
199
|
+
if (migrateBtn) {
|
|
200
|
+
migrateBtn.addEventListener("click", function () {
|
|
201
|
+
enableMultiUserMode();
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
|
|
153
205
|
// Bind add user button
|
|
154
206
|
var addUserBtn = body.querySelector("#admin-add-user");
|
|
155
207
|
if (addUserBtn) {
|
|
@@ -205,6 +257,7 @@ function renderUsersTab(body) {
|
|
|
205
257
|
}
|
|
206
258
|
}
|
|
207
259
|
|
|
260
|
+
|
|
208
261
|
var PERM_LABELS = [
|
|
209
262
|
{ key: "terminal", label: "Terminal", desc: "Access the web terminal" },
|
|
210
263
|
{ key: "fileBrowser", label: "File Browser", desc: "Browse and manage files" },
|
|
@@ -653,7 +706,7 @@ function renderSmtpTab(body, cfg) {
|
|
|
653
706
|
'</div>';
|
|
654
707
|
html += '<div class="admin-smtp-row">' +
|
|
655
708
|
'<label>From Address</label>' +
|
|
656
|
-
'<input type="text" id="smtp-from" class="admin-smtp-input" placeholder="
|
|
709
|
+
'<input type="text" id="smtp-from" class="admin-smtp-input" placeholder="Clagentic <noreply@example.com>" value="' + escapeHtml((cfg && cfg.from) || "") + '">' +
|
|
657
710
|
'</div>';
|
|
658
711
|
html += '<div class="admin-smtp-row admin-smtp-row-otp">' +
|
|
659
712
|
'<label>Email Login (OTP)</label>' +
|
|
@@ -46,7 +46,7 @@ export function initConnection() {
|
|
|
46
46
|
connectOverlay = document.getElementById("connect-overlay");
|
|
47
47
|
|
|
48
48
|
// --- Reactive UI sync for connected/processing state ---
|
|
49
|
-
store.subscribe(function (state, prev) {
|
|
49
|
+
store.subscribe(['connected', 'processing'], function (state, prev) {
|
|
50
50
|
// Status dot (depends on both connected and processing)
|
|
51
51
|
if (state.connected !== prev.connected || state.processing !== prev.processing) {
|
|
52
52
|
var dot = getStatusDot();
|
|
@@ -20,7 +20,7 @@ var dmTypingTimer = null;
|
|
|
20
20
|
|
|
21
21
|
export function initDm() {
|
|
22
22
|
// Reactive UI sync for dmMode
|
|
23
|
-
store.subscribe(function (state, prev) {
|
|
23
|
+
store.subscribe(['dmMode'], function (state, prev) {
|
|
24
24
|
if (state.dmMode !== prev.dmMode) {
|
|
25
25
|
var mainCol = document.getElementById("main-column");
|
|
26
26
|
var sidebarCol = document.getElementById("sidebar-column");
|
|
@@ -19,7 +19,7 @@ var pendingIterations = 20;
|
|
|
19
19
|
export function initLoopUi() {
|
|
20
20
|
|
|
21
21
|
// --- Reactive UI sync for loop state ---
|
|
22
|
-
store.subscribe(function (state, prev) {
|
|
22
|
+
store.subscribe(['loopActive', 'ralphPhase', 'loopIteration', 'loopMaxIterations', 'ralphCraftingSessionId', 'ralphCraftingSource', 'activeSessionId'], function (state, prev) {
|
|
23
23
|
if (state.loopActive !== prev.loopActive ||
|
|
24
24
|
state.ralphPhase !== prev.ralphPhase ||
|
|
25
25
|
state.loopIteration !== prev.loopIteration ||
|
|
@@ -120,7 +120,7 @@ function requireClayRalph(cb) {
|
|
|
120
120
|
requireSkills({
|
|
121
121
|
title: "Skill Installation Required",
|
|
122
122
|
reason: "This feature requires the following skill to be installed.",
|
|
123
|
-
skills: [{ name: "clay-ralph",
|
|
123
|
+
skills: [{ name: "clay-ralph", scope: "global" }]
|
|
124
124
|
}, cb);
|
|
125
125
|
}
|
|
126
126
|
|
|
@@ -36,7 +36,7 @@ import { handleLoopRegistryUpdated, handleScheduleRunStarted, handleScheduleRunF
|
|
|
36
36
|
import { scrollToBottom, addToMessages, addUserMessage, addSystemMessage, appendDelta, finalizeAssistantBlock, addConflictMessage, addContextOverflowMessage, showSuggestionChips, armStickyBottom, disarmStickyBottom, removePreThinking } from './app-rendering.js';
|
|
37
37
|
import { setActivity, startUrgentBlink, stopUrgentBlink, blinkSessionDot, updateCrossProjectBlink } from './app-favicon.js';
|
|
38
38
|
import { setStatus } from './app-connection.js';
|
|
39
|
-
import { getModelEffortLevels, accumulateUsage, updateUsagePanel, accumulateContext, updateContextPanel, renderCtxPopover, updateStatusPanel } from './app-panels.js';
|
|
39
|
+
import { getModelEffortLevels, accumulateUsage, setSessionUsage, updateUsagePanel, accumulateContext, updateContextPanel, renderCtxPopover, updateStatusPanel } from './app-panels.js';
|
|
40
40
|
import { updateProjectList, resetClientState, showUpdateAvailable, handleRemoveProjectCheckResult, handleRemoveProjectResult, handleBrowseDirResult, handleAddProjectResult, handleCloneProgress } from './app-projects.js';
|
|
41
41
|
import { updateHistorySentinel, prependOlderHistory } from './app-header.js';
|
|
42
42
|
import { hideHomeHub, handleHubSchedules } from './app-home-hub.js';
|
|
@@ -62,6 +62,14 @@ export function processMessage(msg) {
|
|
|
62
62
|
case "history_meta":
|
|
63
63
|
store.set({ historyFrom: msg.from, historyTotal: msg.total, replayingHistory: true });
|
|
64
64
|
updateHistorySentinel();
|
|
65
|
+
// Arm sticky-bottom at the START of replay so the scroll listener's
|
|
66
|
+
// "user scrolled up" detection is suppressed for the entire history
|
|
67
|
+
// append sequence. Without this, scroll events fired during DOM growth
|
|
68
|
+
// can set isUserScrolledUp=true before history_done's arm fires, leaving
|
|
69
|
+
// the user stranded mid-conversation on resume (especially on mobile).
|
|
70
|
+
if (!getPendingNavigate() || !(getPendingNavigate().toolId || getPendingNavigate().assistantUuid)) {
|
|
71
|
+
armStickyBottom(5000, true); // force: history replay must scroll to bottom
|
|
72
|
+
}
|
|
65
73
|
break;
|
|
66
74
|
|
|
67
75
|
case "history_prepend":
|
|
@@ -85,7 +93,7 @@ export function processMessage(msg) {
|
|
|
85
93
|
// arriving for several seconds on mobile with a large transcript.
|
|
86
94
|
var historyLen = store.get('historyTotal') || 0;
|
|
87
95
|
var quietMs = historyLen > 20 ? 2000 : 750;
|
|
88
|
-
armStickyBottom(quietMs);
|
|
96
|
+
armStickyBottom(quietMs, true); // force: history replay must scroll to bottom
|
|
89
97
|
}
|
|
90
98
|
// Batched syntax highlight + mermaid pass for the entire replayed
|
|
91
99
|
// transcript. Per-message highlights are skipped during replay
|
|
@@ -100,7 +108,7 @@ export function processMessage(msg) {
|
|
|
100
108
|
// work on slow browsers.
|
|
101
109
|
setTimeout(function () {
|
|
102
110
|
if (!store.get('processing')) {
|
|
103
|
-
armStickyBottom(500);
|
|
111
|
+
armStickyBottom(500, true); // force: deferred post-highlight pin
|
|
104
112
|
}
|
|
105
113
|
}, 300);
|
|
106
114
|
}
|
|
@@ -122,6 +130,18 @@ export function processMessage(msg) {
|
|
|
122
130
|
if (msg.lastUsage || msg.lastModelUsage) {
|
|
123
131
|
accumulateContext(msg.lastCost, msg.lastUsage, msg.lastModelUsage, msg.lastStreamInputTokens);
|
|
124
132
|
}
|
|
133
|
+
// Restore cumulative usage totals from server-supplied authoritative data
|
|
134
|
+
if (msg.cumulativeUsage) {
|
|
135
|
+
var cu = msg.cumulativeUsage;
|
|
136
|
+
setSessionUsage({
|
|
137
|
+
cost: msg.lastCost != null ? msg.lastCost : 0,
|
|
138
|
+
input: cu.input || 0,
|
|
139
|
+
output: cu.output || 0,
|
|
140
|
+
cacheRead: cu.cacheRead || 0,
|
|
141
|
+
cacheWrite: cu.cacheWrite || 0,
|
|
142
|
+
turns: cu.turns || 0,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
125
145
|
updateContextPanel();
|
|
126
146
|
updateUsagePanel();
|
|
127
147
|
// Render + finalize any incomplete turn from the replayed history
|