agentgui 1.0.1012 → 1.0.1013
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/package.json +1 -1
- package/site/app/js/app.js +15 -6
package/package.json
CHANGED
package/site/app/js/app.js
CHANGED
|
@@ -1350,7 +1350,7 @@ function filesMain() {
|
|
|
1350
1350
|
persistFilesPrefs();
|
|
1351
1351
|
render();
|
|
1352
1352
|
} },
|
|
1353
|
-
filter: { value: f.filter || '', placeholder: 'Filter files
|
|
1353
|
+
filter: { value: f.filter || '', placeholder: 'Filter files', onInput: debouncedFilesFilter },
|
|
1354
1354
|
onUp: fileUp,
|
|
1355
1355
|
onOpen: (file) => {
|
|
1356
1356
|
if (file.permissions === 'EACCES') { announce('no access to ' + file.name); return; }
|
|
@@ -3135,17 +3135,26 @@ function serverPanel() {
|
|
|
3135
3135
|
// succeeded): 'checking…' reads as progress, 'unknown' reads as a
|
|
3136
3136
|
// permanent fact about the server - only the first is true here.
|
|
3137
3137
|
const fallback = (hh.status === 'unknown' && state.healthChecking) ? 'checking…' : 'unknown';
|
|
3138
|
+
// These facts previously each rendered as their own '.lede' paragraph -
|
|
3139
|
+
// .lede is the fs-xl/tall-line-height INTRO-paragraph style, not a metadata
|
|
3140
|
+
// style, so four short facts read as four oversized paragraphs with a lot
|
|
3141
|
+
// of dead vertical space between them. One compact SessionMeta strip
|
|
3142
|
+
// (already used for the roots list right below) gives all server facts a
|
|
3143
|
+
// consistent, denser reading - same information, a fraction of the height.
|
|
3144
|
+
const facts = [
|
|
3145
|
+
{ label: 'version', value: hh.version ? 'v' + hh.version : fallback },
|
|
3146
|
+
{ label: 'uptime', value: upMs != null ? fmtDuration(upMs) : fallback },
|
|
3147
|
+
{ label: 'connected clients', value: wsClients != null ? String(wsClients) : fallback },
|
|
3148
|
+
{ label: 'projects folder', value: hh.projectsDir || fallback, title: hh.projectsDir || undefined },
|
|
3149
|
+
];
|
|
3138
3150
|
return Panel({
|
|
3139
3151
|
id: 'server',
|
|
3140
3152
|
title: 'server',
|
|
3141
3153
|
children: [
|
|
3142
|
-
|
|
3143
|
-
h('div', { key: 'sup', class: 'lede' }, 'uptime: ' + (upMs != null ? fmtDuration(upMs) : fallback)),
|
|
3144
|
-
h('div', { key: 'swc', class: 'lede' }, 'connected clients: ' + (wsClients != null ? wsClients : fallback)),
|
|
3145
|
-
h('div', { key: 'spd', class: 'lede' }, 'projects folder: ' + (hh.projectsDir || fallback)),
|
|
3154
|
+
SessionMeta({ key: 'sfacts', items: facts }),
|
|
3146
3155
|
roots.length
|
|
3147
3156
|
? SessionMeta({ key: 'sroots', items: roots.map((r, i) => ({ label: 'root ' + (i + 1), value: r, title: r, onCopy: () => copyText(r, 'root copied') })) })
|
|
3148
|
-
: (hh.status && hh.status !== 'unknown' ? h('div', { key: 'snoroots', class: '
|
|
3157
|
+
: (hh.status && hh.status !== 'unknown' ? h('div', { key: 'snoroots', class: 't-meta' }, 'allowed roots: none configured') : null),
|
|
3149
3158
|
],
|
|
3150
3159
|
});
|
|
3151
3160
|
}
|