ai-agentmanager 1.57.1 → 1.57.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 +7 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/public/app.js +2 -0
- package/public/index.html +1 -0
- package/public/keys.js +4 -2
- package/public/screen.js +51 -0
- package/public/style.css +3 -1
- package/public/topnav.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.57.2 (2026-11-18)
|
|
4
|
+
|
|
5
|
+
- **The More menu scrolls on a phone.** It was longer than the screen and cut off, so its last items (Terminal, Screen) could not be reached. It now ends at the bottom of the screen and scrolls.
|
|
6
|
+
- **Screen: Return from a phone's keyboard.** Letters typed in **Type here** arrived but Return did not: it was sent only when the phone reported it as a key press. It is now sent however the phone reports it, once; delete the same.
|
|
7
|
+
- **Screen: Keys….** A list in the bar sends shortcuts and keys a phone's keyboard does not have: ⌘Space, ⌘Tab, ⌘`, copy, paste, cut, select all, undo, save, close window, quit, force quit, the arrows, delete and Space (Ctrl and Alt ones where the computer is not a Mac). Not yet tried against a real Mac: Command is sent as the Super key.
|
|
8
|
+
- **Shortcuts:** `Shift+S` opens Screen and `Shift+T` the Terminal on this computer; both are in the **?** list.
|
|
9
|
+
|
|
3
10
|
## 1.57.1 (2026-11-18)
|
|
4
11
|
|
|
5
12
|
- **Screen: zoom.** **−** and **+** in the bar draw the screen at 150% to 400%, and the button between them goes back to **Fit**. Zoomed in, **Move** lets a drag move around the screen; with it off, a tap clicks in the computer as before.
|
package/README.md
CHANGED
|
@@ -885,7 +885,7 @@ It does not capture the screen itself. The computer's own screen sharing does, a
|
|
|
885
885
|
2. On the computer itself: **Screen → Turn on** (or `agentmgr screen --on`).
|
|
886
886
|
3. From any signed-in device: **Screen → Connect**, and sign in with your Mac user name and password when the Mac asks. They go to the Mac's screen sharing and are not kept.
|
|
887
887
|
|
|
888
|
-
On a phone, the bar has a **Type here** field for the keyboard, and **Esc**, **Tab** and **⏎**. **−** and **+** zoom in up to 400% (the button between them goes back to **Fit**); zoomed in, **Move** lets a drag move around the screen instead of clicking in it. The sign-in has **Show the password**, for a password typed on a phone.
|
|
888
|
+
On a phone, the bar has a **Type here** field for the keyboard, and **Esc**, **Tab** and **⏎**. **−** and **+** zoom in up to 400% (the button between them goes back to **Fit**); zoomed in, **Move** lets a drag move around the screen instead of clicking in it. The sign-in has **Show the password**, for a password typed on a phone. **Keys…** sends shortcuts and keys a phone's keyboard does not have: ⌘Space, ⌘Tab, copy, paste, undo, close, quit, force quit, the arrows and delete. With a keyboard, `Shift+S` opens Screen and `Shift+T` the Terminal on this computer.
|
|
889
889
|
|
|
890
890
|
A Mac with **Remote Management** on (instead of plain Screen Sharing) lets in only the users listed under **Sharing → Remote Management → ⓘ**, and refuses anyone else as if the password were wrong. The Screen dialog says so when this computer's user is not listed, with the command that adds it.
|
|
891
891
|
|
package/package.json
CHANGED
package/public/app.js
CHANGED
|
@@ -427,6 +427,8 @@ function shortcut(act) {
|
|
|
427
427
|
if (act === 'usage') return usageUi.open();
|
|
428
428
|
if (act === 'skills') return skillsUi.open();
|
|
429
429
|
if (act === 'today') return todayUi.open();
|
|
430
|
+
if (act === 'screen') return $('#screen-btn').click();
|
|
431
|
+
if (act === 'machine') return $('#machine-btn').click();
|
|
430
432
|
if (act.startsWith('tab:')) return showTab(act.slice(4));
|
|
431
433
|
return false;
|
|
432
434
|
}
|
package/public/index.html
CHANGED
|
@@ -1025,6 +1025,7 @@
|
|
|
1025
1025
|
<button class="ghost small" data-screen-key="esc" title="Escape">Esc</button>
|
|
1026
1026
|
<button class="ghost small" data-screen-key="tab" title="Tab">Tab</button>
|
|
1027
1027
|
<button class="ghost small" data-screen-key="enter" title="Return">⏎</button>
|
|
1028
|
+
<select id="screen-combo" class="screen-combo" aria-label="Send a shortcut or a key" title="Shortcuts and keys a phone's keyboard does not have"><option value="">Keys…</option></select>
|
|
1028
1029
|
<button class="ghost small" data-screen-zoom="-1" title="Zoom out" aria-label="Zoom out">−</button>
|
|
1029
1030
|
<button class="ghost small" id="screen-zoom-now" data-screen-zoom="0" title="Fit the whole screen">Fit</button>
|
|
1030
1031
|
<button class="ghost small" data-screen-zoom="1" title="Zoom in" aria-label="Zoom in">+</button>
|
package/public/keys.js
CHANGED
|
@@ -33,6 +33,8 @@ export const SHORTCUTS = [
|
|
|
33
33
|
[['B'], 'Board: every agent as a card, by where its work stands', 'board'],
|
|
34
34
|
[['q'], 'Decide: recommendations, standing decisions, impact, dates at risk', 'decide'],
|
|
35
35
|
[['z'], "Usage: each engine's plan limits, used and left", 'usage'],
|
|
36
|
+
[['S'], "Screen: this computer's desktop", 'screen'],
|
|
37
|
+
[['T'], 'Terminal on this computer', 'machine'],
|
|
36
38
|
[['1'], 'Agents tab', 'tab:agents'],
|
|
37
39
|
[['2'], 'Inbox: what needs you', 'tab:inbox'],
|
|
38
40
|
[['3'], 'Backlog', 'tab:backlog'],
|
|
@@ -76,11 +78,11 @@ export const SHORTCUTS = [
|
|
|
76
78
|
// A single key, as an event names it, to its action.
|
|
77
79
|
export const SINGLE = {
|
|
78
80
|
j: 'next', k: 'prev', Enter: 'terminal', t: 'terminal',
|
|
79
|
-
r: 'changes', s: 'start', X: 'stop', e: 'edit', n: 'new', a: 'ask', '/': 'filter', w: 'watch', p: 'standup', m: 'map', i: 'issues', o: 'actions', h: 'assistant', ',': 'settings', d: 'designs', g: 'reviews', v: 'value', l: 'news', c: 'plan', u: 'os', B: 'board', q: 'decide', z: 'usage', y: 'today', b: 'bugs', '?': 'help',
|
|
81
|
+
r: 'changes', s: 'start', X: 'stop', e: 'edit', n: 'new', a: 'ask', '/': 'filter', w: 'watch', p: 'standup', m: 'map', i: 'issues', o: 'actions', h: 'assistant', ',': 'settings', d: 'designs', g: 'reviews', v: 'value', l: 'news', c: 'plan', u: 'os', B: 'board', q: 'decide', z: 'usage', y: 'today', b: 'bugs', S: 'screen', T: 'machine', '?': 'help',
|
|
80
82
|
1: 'tab:agents', 2: 'tab:inbox', 3: 'tab:backlog', 4: 'tab:land', 5: 'tab:built',
|
|
81
83
|
};
|
|
82
84
|
// While Watch is open: only what makes sense there.
|
|
83
|
-
const ON_WATCH = new Set(['today', 'new', 'ask', 'watch', 'standup', 'map', 'issues', 'actions', 'assistant', 'settings', 'designs', 'reviews', 'value', 'news', 'plan', 'os', 'board', 'decide', 'usage', 'bugs', 'help']);
|
|
85
|
+
const ON_WATCH = new Set(['today', 'new', 'ask', 'watch', 'standup', 'map', 'issues', 'actions', 'assistant', 'settings', 'designs', 'reviews', 'value', 'news', 'plan', 'os', 'board', 'decide', 'usage', 'bugs', 'screen', 'machine', 'help']);
|
|
84
86
|
|
|
85
87
|
/** Typing somewhere: a field, an editor or a terminal (xterm types through a textarea). */
|
|
86
88
|
const typing = (el) => Boolean(el?.closest?.('input, textarea, select, [contenteditable=""], [contenteditable="true"], .xterm, .cm-editor'));
|
package/public/screen.js
CHANGED
|
@@ -90,6 +90,32 @@ const keysymOf = (ch) => {
|
|
|
90
90
|
return cp < 0x100 ? cp : 0x01000000 + cp;
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
+
// Shortcuts for the bar's Keys list. On a Mac the screen sharing service takes Super as Command
|
|
94
|
+
// and Alt as Option.
|
|
95
|
+
const MOD = { cmd: 0xffeb, ctrl: 0xffe3, alt: 0xffe9, shift: 0xffe1 };
|
|
96
|
+
const key = (ch) => ch.codePointAt(0);
|
|
97
|
+
const COMBOS = (mac) => {
|
|
98
|
+
const m = mac ? 'cmd' : 'ctrl';
|
|
99
|
+
const sign = mac ? '⌘' : 'Ctrl+';
|
|
100
|
+
return [
|
|
101
|
+
...(mac ? [['⌘Space · Spotlight', ['cmd'], 0x20], ['⌘Tab · switch app', ['cmd'], KEYS.tab], ['⌘` · next window', ['cmd'], key('`')]] : [['Alt+Tab · switch window', ['alt'], KEYS.tab]]),
|
|
102
|
+
[`${sign}C · copy`, [m], key('c')],
|
|
103
|
+
[`${sign}V · paste`, [m], key('v')],
|
|
104
|
+
[`${sign}X · cut`, [m], key('x')],
|
|
105
|
+
[`${sign}A · select all`, [m], key('a')],
|
|
106
|
+
[`${sign}Z · undo`, [m], key('z')],
|
|
107
|
+
[`${sign}S · save`, [m], key('s')],
|
|
108
|
+
[`${sign}W · close window`, [m], key('w')],
|
|
109
|
+
...(mac ? [['⌘Q · quit app', ['cmd'], key('q')], ['⌥⌘Esc · force quit', ['alt', 'cmd'], KEYS.esc]] : [['Alt+F4 · close', ['alt'], 0xffc1]]),
|
|
110
|
+
['↑', [], KEYS.up],
|
|
111
|
+
['↓', [], KEYS.down],
|
|
112
|
+
['←', [], KEYS.left],
|
|
113
|
+
['→', [], KEYS.right],
|
|
114
|
+
['⌫ · delete', [], KEYS.back],
|
|
115
|
+
['Space', [], 0x20],
|
|
116
|
+
];
|
|
117
|
+
};
|
|
118
|
+
|
|
93
119
|
export function initScreen({ api, esc, toast, $ }) {
|
|
94
120
|
const dialog = $('#screen-dialog');
|
|
95
121
|
const body = $('#screen-body');
|
|
@@ -248,6 +274,8 @@ export function initScreen({ api, esc, toast, $ }) {
|
|
|
248
274
|
mine.addEventListener('connect', () => {
|
|
249
275
|
if (rfb !== mine) return;
|
|
250
276
|
state.textContent = 'Connected';
|
|
277
|
+
combos = COMBOS(status?.platform === 'darwin');
|
|
278
|
+
combo.innerHTML = '<option value="">Keys…</option>' + combos.map(([label], i) => `<option value="${i}">${esc(label)}</option>`).join('');
|
|
251
279
|
render();
|
|
252
280
|
layout(false);
|
|
253
281
|
mine.focus();
|
|
@@ -304,19 +332,42 @@ export function initScreen({ api, esc, toast, $ }) {
|
|
|
304
332
|
}
|
|
305
333
|
});
|
|
306
334
|
|
|
335
|
+
// Shortcuts and keys a phone's keyboard does not have: held in order, released in reverse.
|
|
336
|
+
let combos = [];
|
|
337
|
+
const combo = $('#screen-combo');
|
|
338
|
+
combo.addEventListener('change', () => {
|
|
339
|
+
const picked = combos[combo.value];
|
|
340
|
+
combo.value = '';
|
|
341
|
+
if (!picked || !rfb) return;
|
|
342
|
+
const [, mods, sym] = picked;
|
|
343
|
+
for (const m of mods) rfb.sendKey(MOD[m], null, true);
|
|
344
|
+
rfb.sendKey(sym, null);
|
|
345
|
+
for (const m of [...mods].reverse()) rfb.sendKey(MOD[m], null, false);
|
|
346
|
+
});
|
|
347
|
+
|
|
307
348
|
// A phone has no keyboard until a field is focused: what is typed here is sent key by key.
|
|
308
349
|
const typed = $('#screen-type');
|
|
309
350
|
typed.addEventListener('input', () => {
|
|
310
351
|
if (rfb) for (const ch of typed.value) rfb.sendKey(keysymOf(ch), null);
|
|
311
352
|
typed.value = '';
|
|
312
353
|
});
|
|
354
|
+
let keyAt = 0; // when a key below was last sent, so it is not sent twice
|
|
313
355
|
typed.addEventListener('keydown', (e) => {
|
|
314
356
|
const k = { Enter: 'enter', Backspace: 'back', Tab: 'tab', Escape: 'esc' }[e.key];
|
|
315
357
|
if (!k || !rfb) return;
|
|
316
358
|
e.preventDefault();
|
|
317
359
|
e.stopPropagation();
|
|
360
|
+
keyAt = Date.now();
|
|
318
361
|
rfb.sendKey(KEYS[k], null);
|
|
319
362
|
});
|
|
363
|
+
// A phone's keyboard does not always say which key it was in keydown: Return and delete also
|
|
364
|
+
// arrive as what they would do to the field.
|
|
365
|
+
typed.addEventListener('beforeinput', (e) => {
|
|
366
|
+
const k = { insertLineBreak: 'enter', insertParagraph: 'enter', deleteContentBackward: 'back' }[e.inputType];
|
|
367
|
+
if (!k || !rfb) return;
|
|
368
|
+
e.preventDefault();
|
|
369
|
+
if (Date.now() - keyAt > 80) rfb.sendKey(KEYS[k], null);
|
|
370
|
+
});
|
|
320
371
|
|
|
321
372
|
// Esc belongs to the screen while it is shown, not to the dialog.
|
|
322
373
|
dialog.addEventListener('cancel', (e) => rfb && e.preventDefault());
|
package/public/style.css
CHANGED
|
@@ -106,7 +106,8 @@ a:hover { text-decoration: underline; }
|
|
|
106
106
|
.top-more { position: static; }
|
|
107
107
|
#top-more-btn.has-news::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
|
|
108
108
|
#top-more-menu { position: fixed; top: auto; right: 16px; margin-top: 6px; min-width: 200px; }
|
|
109
|
-
#top-more-menu
|
|
109
|
+
#top-more-menu { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
|
|
110
|
+
#top-more-menu > button { display: flex; align-items: center; gap: 8px; flex: none; }
|
|
110
111
|
|
|
111
112
|
/* ---------- controls */
|
|
112
113
|
button {
|
|
@@ -1818,3 +1819,4 @@ table.eval-items tr.eval-na td { color: var(--muted); }
|
|
|
1818
1819
|
.screen-note { border-left: 3px solid var(--warn, #d9a441); padding: 2px 10px; margin: 10px 0; }
|
|
1819
1820
|
.screen-note code { display: block; overflow-wrap: anywhere; user-select: all; }
|
|
1820
1821
|
.screen-login .screen-show input { display: inline; width: auto; margin: 0 4px 0 0; }
|
|
1822
|
+
.screen-combo { width: 74px; padding: 2px 4px; font-size: 13px; background: #161a22; color: #c9d1d9; border: 1px solid #30363d; border-radius: 6px; }
|
package/public/topnav.js
CHANGED
|
@@ -59,6 +59,8 @@ export function initTopNav({ $ }) {
|
|
|
59
59
|
e.stopPropagation();
|
|
60
60
|
menu.hidden = !menu.hidden;
|
|
61
61
|
btn.setAttribute('aria-expanded', String(!menu.hidden));
|
|
62
|
+
// On a phone the menu is longer than the screen: it ends at the bottom and scrolls.
|
|
63
|
+
if (!menu.hidden) menu.style.maxHeight = `${Math.max(120, (window.visualViewport?.height ?? innerHeight) - menu.getBoundingClientRect().top - 8)}px`;
|
|
62
64
|
});
|
|
63
65
|
// A button in the menu does its own thing (its handler is unchanged); then the menu closes.
|
|
64
66
|
menu.addEventListener('click', () => setTimeout(close));
|