@hivey/cli 0.9.76 → 0.9.77
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.
|
Binary file
|
package/package.json
CHANGED
|
@@ -28,6 +28,8 @@ header{position:sticky;top:0;z-index:20;display:flex;flex-wrap:wrap;align-items:
|
|
|
28
28
|
.pill b{font-variant-numeric:tabular-nums}
|
|
29
29
|
.pill:hover{border-color:#3b4a64}
|
|
30
30
|
.pill.on{background:var(--panel2);border-color:var(--honey);box-shadow:0 0 0 1px var(--honey) inset}
|
|
31
|
+
.filtered{color:var(--honey);font-weight:600}
|
|
32
|
+
.filtered button{margin-left:4px;padding:1px 8px;border-radius:999px;border:1px solid var(--honey);background:transparent;color:var(--honey);cursor:pointer;font:inherit}
|
|
31
33
|
.pill.blocked b{color:var(--block)}.pill.working b{color:var(--work)}.pill.done b{color:var(--done)}.pill.idle b{color:var(--idle)}
|
|
32
34
|
.pill.compact b,.pill.clear b{color:var(--honey)}
|
|
33
35
|
.spacer{flex:1}
|
|
@@ -28,9 +28,9 @@ ui.view ||= 'fleet';
|
|
|
28
28
|
const VIEWS = ['fleet', 'board', 'list', 'jobs'];
|
|
29
29
|
let health = null, healthAt = 0; // failing scheduled jobs (pollHealth)
|
|
30
30
|
{ const v = new URLSearchParams(location.search).get('view'); if (VIEWS.includes(v)) ui.view = v; if (v) history.replaceState(null, '', location.pathname); } // ?view=jobs from the menu or a jobs page
|
|
31
|
-
ui.filter
|
|
31
|
+
ui.filter = null; // a status filter lasts until reload: a reload always shows every agent
|
|
32
32
|
if (ui.toon === undefined) ui.toon = false;
|
|
33
|
-
const save = () => localStorage.setItem('hv-fleet-ship', JSON.stringify({ view: ui.view,
|
|
33
|
+
const save = () => localStorage.setItem('hv-fleet-ship', JSON.stringify({ view: ui.view, toon: ui.toon, music: ui.music, ships: ui.ships, space: ui.space, track: ui.track }));
|
|
34
34
|
// ship positions also live on the fleet server, so every browser opens the fleet where you left it
|
|
35
35
|
const saveShips = () => { save(); fetch('/hv-fleet-settings', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ ships: ui.ships || {} }) }).catch(() => {}); };
|
|
36
36
|
|
|
@@ -211,9 +211,13 @@ function tickSub() {
|
|
|
211
211
|
const at = iso => iso ? new Date(iso).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' }) : '?';
|
|
212
212
|
const full = data.full_at && data.full_at !== data.generated
|
|
213
213
|
? ` · <span title="Last pass that re-summarized every agent whose terminal changed">summaries ${at(data.full_at)} (${ago(data.full_at)})</span>` : '';
|
|
214
|
-
|
|
214
|
+
const shown = agents.filter(visible).length;
|
|
215
|
+
const only = shown < n ? `<span class="filtered">showing ${shown} of ${n}${ui.filter ? ` (${ui.filter})` : ''} <button id="showall" title="Clear the filter and the search">show all</button></span> · ` : '';
|
|
216
|
+
$('#sub').innerHTML = only + `${n} agent${n === 1 ? '' : 's'} · <span title="Last time every terminal and session log was read">updated ${at(data.generated)} (${ago(data.generated)})</span>${full} · ` +
|
|
215
217
|
(refreshing ? '<span class="spin">⟳</span> reading terminals…' : every === 'reload' ? 'updates when you reload or press ⟳' : next > 0 ? `next ${at(new Date(Date.now() + next * 1000).toISOString())} (in ${mm}:${String(ss).padStart(2, '0')})` : 'refreshing soon') +
|
|
216
218
|
(data.error ? ` · <span class="err" title="${esc(data.error)}">summaries from the recap (model call failed)</span>` : '');
|
|
219
|
+
const all = $('#showall');
|
|
220
|
+
if (all) all.onclick = () => { ui.filter = null; $('#q').value = ''; save(); renderAll(); };
|
|
217
221
|
}
|
|
218
222
|
function renderInbox() {
|
|
219
223
|
const blocked = agents.filter(a => a.status === 'blocked' && !a.asleep);
|