ai-agentmanager 1.56.1 → 1.56.2
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/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/public/app.js +5 -4
- package/public/groups.js +25 -8
- package/public/index.html +1 -0
- package/public/machine.js +6 -1
- package/public/menu.js +17 -1
- package/public/style.css +3 -1
- package/public/termfont.js +25 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.56.2 (2026-11-17)
|
|
4
|
+
|
|
5
|
+
- **Terminal text size.** ☰ → **Terminal text** has A− / 13 / A+ (10 to 22 px, kept per browser). It applies to an agent's session, split-screen groups and Open Terminal; the Watch tiles keep their own size.
|
|
6
|
+
- **Why a terminal is sometimes very small, said on the terminal.** A session open in two places (a split-screen group, another window, another device) is shown at the size of the one last typed or clicked in, and the other scales its text to fit, down to 6 px. A view shrunk this way now carries a note: "Small to match another window or group showing this session · click here to fit it". A click fits it again, as before.
|
|
7
|
+
|
|
3
8
|
## 1.56.1 (2026-11-17)
|
|
4
9
|
|
|
5
10
|
- **Review rounds and the AI judge are easier to find.** Their switches were two lines under the inbox cards. They are now one short row at the top of the inbox, each with its Turn on / Turn off button and the explanation in its tooltip, and a link to Settings.
|
package/package.json
CHANGED
package/public/app.js
CHANGED
|
@@ -26,7 +26,8 @@ import { initSupport } from '/support.js';
|
|
|
26
26
|
import { initCode } from '/code.js';
|
|
27
27
|
import { initMachine } from '/machine.js';
|
|
28
28
|
import { initWatch } from '/watch.js';
|
|
29
|
-
import { initGroups, followSize, scaleToFit, leadSize } from '/groups.js';
|
|
29
|
+
import { initGroups, followSize, scaleToFit, leadSize, ownFont, newFont } from '/groups.js';
|
|
30
|
+
import { termFont } from '/termfont.js';
|
|
30
31
|
import { initTopNav } from '/topnav.js';
|
|
31
32
|
import { initStandup } from '/standup.js';
|
|
32
33
|
import { initIssues } from '/issues.js';
|
|
@@ -2699,7 +2700,7 @@ const term = {
|
|
|
2699
2700
|
this.xterm = new Terminal({
|
|
2700
2701
|
cursorBlink: true,
|
|
2701
2702
|
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, monospace',
|
|
2702
|
-
fontSize:
|
|
2703
|
+
fontSize: termFont(),
|
|
2703
2704
|
scrollback: 10000,
|
|
2704
2705
|
theme: { background: '#0f1117' },
|
|
2705
2706
|
allowProposedApi: true,
|
|
@@ -2718,6 +2719,7 @@ const term = {
|
|
|
2718
2719
|
// Shown in a split-screen group too (or another window): the view typed in sets the size.
|
|
2719
2720
|
this.xterm.onResize(({ cols, rows }) => !this.follow && this.send({ t: 'r', cols, rows }));
|
|
2720
2721
|
new ResizeObserver(() => (this.follow ? scaleToFit(this, $('#terminal')) : this.refit())).observe($('#terminal'));
|
|
2722
|
+
window.addEventListener('agentmgr-termfont', () => newFont(this, () => this.refit(), $('#terminal')));
|
|
2721
2723
|
touchScroll($('#terminal'), this.xterm);
|
|
2722
2724
|
},
|
|
2723
2725
|
|
|
@@ -2759,8 +2761,7 @@ const term = {
|
|
|
2759
2761
|
this.agentId = id;
|
|
2760
2762
|
this.kind = kind;
|
|
2761
2763
|
this.shellExited = false;
|
|
2762
|
-
this
|
|
2763
|
-
this.xterm.options.fontSize = 13;
|
|
2764
|
+
ownFont(this);
|
|
2764
2765
|
this.xterm.reset();
|
|
2765
2766
|
this.syncOverlay();
|
|
2766
2767
|
requestAnimationFrame(() => this.refit());
|
package/public/groups.js
CHANGED
|
@@ -6,17 +6,18 @@
|
|
|
6
6
|
// there), with the group's picker, or by clicking an agent in the list while that group is active.
|
|
7
7
|
// The layout and what each group shows are kept per browser.
|
|
8
8
|
|
|
9
|
+
import { termFont } from '/termfont.js';
|
|
10
|
+
|
|
9
11
|
const SAVED = 'agentmgr.groups';
|
|
10
12
|
const MAX_GROUPS = 6;
|
|
11
13
|
// What a terminal answers to the program's queries (cursor position, colors, focus): never typing.
|
|
12
14
|
const REPLY = /^(\x1b\[[\d;?>]*[IOcRnt]|\x1b\][\d;]*[^\x07\x1b]*(\x07|\x1b\\))+$/;
|
|
13
15
|
const EDGE = 0.25; // a drop this close to a group's right or bottom edge splits it
|
|
14
16
|
const isShell = (k) => /^shell(:\d+)?$/.test(k ?? '');
|
|
15
|
-
const FONT = 13;
|
|
16
17
|
|
|
17
18
|
// One session, several views (the main panel, groups, another window): the view you type in or
|
|
18
19
|
// click sets the session's size; the others show it at that size, the font scaled to fit, until
|
|
19
|
-
// you type in or click one of them. `v` is { xterm, follow }.
|
|
20
|
+
// you type in or click one of them (a view made much smaller says so). `v` is { xterm, follow }.
|
|
20
21
|
|
|
21
22
|
/** Another view resized the session: show it at that size. */
|
|
22
23
|
export function followSize(v, cols, rows, box) {
|
|
@@ -32,15 +33,29 @@ export function scaleToFit(v, box) {
|
|
|
32
33
|
if (!v.follow || !screen?.offsetWidth || !box.clientWidth) return;
|
|
33
34
|
const f = v.xterm.options.fontSize;
|
|
34
35
|
const ratio = Math.min(box.clientWidth / screen.offsetWidth, box.clientHeight / screen.offsetHeight);
|
|
35
|
-
const next = Math.max(6, Math.min(
|
|
36
|
+
const next = Math.max(6, Math.min(termFont(), Math.floor(f * ratio * 10) / 10));
|
|
36
37
|
if (Math.abs(next - f) > 0.05) v.xterm.options.fontSize = next;
|
|
38
|
+
box.classList.toggle('shrunk', next < termFont() * 0.8);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** A view on its own size again (it leads, or shows another session): its own font, no note. */
|
|
42
|
+
export function ownFont(v) {
|
|
43
|
+
v.follow = false;
|
|
44
|
+
v.xterm.options.fontSize = termFont();
|
|
45
|
+
v.xterm.element?.parentElement?.classList.remove('shrunk');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** The text size was changed in the menu. */
|
|
49
|
+
export function newFont(v, fit, box) {
|
|
50
|
+
v.xterm.options.fontSize = termFont();
|
|
51
|
+
if (v.follow) requestAnimationFrame(() => scaleToFit(v, box));
|
|
52
|
+
else fit();
|
|
37
53
|
}
|
|
38
54
|
|
|
39
55
|
/** This view sets the size again: its own font, fitted to its panel, sent to the session. */
|
|
40
56
|
export function leadSize(v, fit, send) {
|
|
41
57
|
if (!v.follow) return;
|
|
42
|
-
v
|
|
43
|
-
v.xterm.options.fontSize = FONT;
|
|
58
|
+
ownFont(v);
|
|
44
59
|
try {
|
|
45
60
|
fit();
|
|
46
61
|
} catch {}
|
|
@@ -90,7 +105,7 @@ export function initGroups({ $, esc, agents, Terminal, FitAddon, openStream, api
|
|
|
90
105
|
const xterm = new Terminal({
|
|
91
106
|
cursorBlink: true,
|
|
92
107
|
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, monospace',
|
|
93
|
-
fontSize:
|
|
108
|
+
fontSize: termFont(),
|
|
94
109
|
scrollback: 10000,
|
|
95
110
|
theme: { background: '#0f1117' },
|
|
96
111
|
allowProposedApi: true,
|
|
@@ -111,6 +126,9 @@ export function initGroups({ $, esc, agents, Terminal, FitAddon, openStream, api
|
|
|
111
126
|
}
|
|
112
127
|
|
|
113
128
|
const lead = (p) => leadSize(p, () => p.fit.fit(), (m) => p.conn?.send(m));
|
|
129
|
+
window.addEventListener('agentmgr-termfont', () => {
|
|
130
|
+
for (const p of panes.values()) if (p.opened) newFont(p, () => refit(p), p.el.querySelector('.gterm'));
|
|
131
|
+
});
|
|
114
132
|
|
|
115
133
|
function refit(p) {
|
|
116
134
|
if (!p.opened || !p.agentId || !p.el.isConnected || p.follow) return;
|
|
@@ -142,8 +160,7 @@ export function initGroups({ $, esc, agents, Terminal, FitAddon, openStream, api
|
|
|
142
160
|
p.opened = true;
|
|
143
161
|
}
|
|
144
162
|
p.failed = false;
|
|
145
|
-
p
|
|
146
|
-
p.xterm.options.fontSize = FONT;
|
|
163
|
+
ownFont(p);
|
|
147
164
|
p.xterm.reset();
|
|
148
165
|
const conn = openStream(
|
|
149
166
|
{ agentId: p.agentId, kind: p.kind },
|
package/public/index.html
CHANGED
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
<button role="menuitem" id="remote-btn" class="local-only" title="Open AI Agent Manager from your phone">Remote access…</button>
|
|
77
77
|
<div class="menu-sep"></div>
|
|
78
78
|
<div class="menu-theme"><span>Theme</span><span class="seg" role="radiogroup" aria-label="Theme"><button type="button" data-theme-set="auto" title="Follow this device's setting">Auto</button><button type="button" data-theme-set="light">Light</button><button type="button" data-theme-set="dark">Dark</button></span></div>
|
|
79
|
+
<div class="menu-theme" title="The text size of the terminals: an agent's session, split-screen groups and Open Terminal. Kept in this browser."><span>Terminal text</span><span class="seg" role="group" aria-label="Terminal text size"><button type="button" data-term-font="-1" aria-label="Smaller">A−</button><button type="button" data-term-font="0" id="term-font-now" title="Back to 13">13</button><button type="button" data-term-font="1" aria-label="Larger">A+</button></span></div>
|
|
79
80
|
<div class="menu-sep"></div>
|
|
80
81
|
<button role="menuitem" id="support-btn" title="Tell us about a problem or an idea, with a screenshot">Report a problem or idea…</button>
|
|
81
82
|
<button role="menuitem" id="keys-btn" title="Quick actions from the keyboard">Keyboard shortcuts… <kbd>?</kbd></button>
|
package/public/machine.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// running when the window is hidden; × ends one.
|
|
4
4
|
import { openStream } from '/transport.js';
|
|
5
5
|
import { openCopy, pasteInto } from '/termclip.js';
|
|
6
|
+
import { termFont } from '/termfont.js';
|
|
6
7
|
|
|
7
8
|
const MACHINE = '__machine__';
|
|
8
9
|
|
|
@@ -17,7 +18,7 @@ export function initMachine({ api, esc, toast, $, Terminal, FitAddon }) {
|
|
|
17
18
|
|
|
18
19
|
function ensure() {
|
|
19
20
|
if (xterm) return;
|
|
20
|
-
xterm = new Terminal({ cursorBlink: true, fontFamily: 'ui-monospace, SFMono-Regular, Menlo, monospace', fontSize:
|
|
21
|
+
xterm = new Terminal({ cursorBlink: true, fontFamily: 'ui-monospace, SFMono-Regular, Menlo, monospace', fontSize: termFont(), scrollback: 10000, theme: { background: '#0f1117' } });
|
|
21
22
|
fit = new FitAddon();
|
|
22
23
|
xterm.loadAddon(fit);
|
|
23
24
|
xterm.open($('#machine-term'));
|
|
@@ -25,6 +26,10 @@ export function initMachine({ api, esc, toast, $, Terminal, FitAddon }) {
|
|
|
25
26
|
xterm.onData((d) => !replaying && conn?.send({ t: 'i', d }));
|
|
26
27
|
xterm.onResize(({ cols, rows }) => conn?.send({ t: 'r', cols, rows }));
|
|
27
28
|
new ResizeObserver(() => dialog.open && fit.fit()).observe($('#machine-term'));
|
|
29
|
+
window.addEventListener('agentmgr-termfont', () => {
|
|
30
|
+
xterm.options.fontSize = termFont();
|
|
31
|
+
if (dialog.open) fit.fit();
|
|
32
|
+
});
|
|
28
33
|
}
|
|
29
34
|
|
|
30
35
|
function renderTabs() {
|
package/public/menu.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// The menu at the right of the top bar: who this runs as (Claude account, git identity, computer)
|
|
2
2
|
// and the settings and preferences: Settings…, Clean up, Alerts, Remote access, About.
|
|
3
3
|
|
|
4
|
+
import { TERM_FONT, termFont, setTermFont } from '/termfont.js';
|
|
5
|
+
|
|
4
6
|
export function initMenu({ api, esc, toast, $ }) {
|
|
5
7
|
const btn = $('#menu-btn');
|
|
6
8
|
const menu = $('#menu');
|
|
@@ -23,7 +25,7 @@ export function initMenu({ api, esc, toast, $ }) {
|
|
|
23
25
|
// Any item closes the menu; its own handler does the rest.
|
|
24
26
|
menu.addEventListener('click', (e) => {
|
|
25
27
|
// The theme buttons keep it open, to compare.
|
|
26
|
-
if (e.target.closest('button') && !e.target.closest('[data-theme-set]')) open(false);
|
|
28
|
+
if (e.target.closest('button') && !e.target.closest('[data-theme-set], [data-term-font]')) open(false);
|
|
27
29
|
});
|
|
28
30
|
$('#menu-about').onclick = () => $('#about-btn').click();
|
|
29
31
|
|
|
@@ -255,6 +257,20 @@ export function initMenu({ api, esc, toast, $ }) {
|
|
|
255
257
|
});
|
|
256
258
|
applyTheme(theme());
|
|
257
259
|
|
|
260
|
+
// ------------------------------------------------------------ Terminal text size
|
|
261
|
+
const showFont = (n) => {
|
|
262
|
+
$('#term-font-now').textContent = String(n);
|
|
263
|
+
menu.querySelector('[data-term-font="-1"]').disabled = n <= TERM_FONT.min;
|
|
264
|
+
menu.querySelector('[data-term-font="1"]').disabled = n >= TERM_FONT.max;
|
|
265
|
+
};
|
|
266
|
+
menu.addEventListener('click', (e) => {
|
|
267
|
+
const b = e.target.closest('[data-term-font]');
|
|
268
|
+
if (!b) return;
|
|
269
|
+
const step = Number(b.dataset.termFont);
|
|
270
|
+
showFont(setTermFont(step ? termFont() + step : TERM_FONT.base));
|
|
271
|
+
});
|
|
272
|
+
showFont(termFont());
|
|
273
|
+
|
|
258
274
|
loadMe();
|
|
259
275
|
return { loadMe };
|
|
260
276
|
}
|
package/public/style.css
CHANGED
|
@@ -417,7 +417,9 @@ body.term-max .term-agent, .term-wrap:fullscreen .term-agent { display: inline-b
|
|
|
417
417
|
.term-drop { position: absolute; inset: 40px 8px 8px; display: flex; align-items: center; justify-content: center; border: 2px dashed #58a6ff; border-radius: 8px; background: rgba(15, 17, 23, .82); color: #c9d1d9; font-size: 15px; pointer-events: none; z-index: 5; }
|
|
418
418
|
#term-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 0; color: #8b93a7; }
|
|
419
419
|
.term-bar > .term-tabs { flex-shrink: 0; max-width: 70%; }
|
|
420
|
-
.terminal { flex: 1; padding: 6px 8px; min-height: 0; }
|
|
420
|
+
.terminal { flex: 1; padding: 6px 8px; min-height: 0; position: relative; }
|
|
421
|
+
/* Shown at another view's size, the font much smaller for it (groups.js): say so, and how to end it. */
|
|
422
|
+
.terminal.shrunk::after, .gterm.shrunk::after { content: 'Small to match another window or group showing this session · click here to fit it'; position: absolute; top: 6px; right: 14px; z-index: 5; padding: 3px 9px; border-radius: 6px; font-size: 12px; background: var(--accent); color: var(--accent-text); pointer-events: none; opacity: 0.92; }
|
|
421
423
|
/* Browser tabs replace the terminal in the panel. */
|
|
422
424
|
.browser { display: none; flex: 1; flex-direction: column; min-height: 0; background: var(--bg); }
|
|
423
425
|
.term-wrap.browsing .browser { display: flex; }
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// The text size of the terminals (an agent's session, split-screen groups, Open Terminal): 13 px
|
|
2
|
+
// unless you chose another in the menu, kept per browser.
|
|
3
|
+
|
|
4
|
+
const KEY = 'agentmgr.termFont';
|
|
5
|
+
export const TERM_FONT = { min: 10, max: 22, base: 13 };
|
|
6
|
+
|
|
7
|
+
export function termFont() {
|
|
8
|
+
try {
|
|
9
|
+
const n = Number(localStorage.getItem(KEY));
|
|
10
|
+
return n >= TERM_FONT.min && n <= TERM_FONT.max ? n : TERM_FONT.base;
|
|
11
|
+
} catch {
|
|
12
|
+
return TERM_FONT.base;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Saves it and tells the open terminals (`agentmgr-termfont` on window). */
|
|
17
|
+
export function setTermFont(n) {
|
|
18
|
+
const size = Math.max(TERM_FONT.min, Math.min(TERM_FONT.max, Math.round(n)));
|
|
19
|
+
try {
|
|
20
|
+
if (size === TERM_FONT.base) localStorage.removeItem(KEY);
|
|
21
|
+
else localStorage.setItem(KEY, String(size));
|
|
22
|
+
} catch {}
|
|
23
|
+
window.dispatchEvent(new CustomEvent('agentmgr-termfont', { detail: size }));
|
|
24
|
+
return size;
|
|
25
|
+
}
|