ai-agentmanager 1.57.1 → 1.57.3
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 +13 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/public/app.js +2 -0
- package/public/index.html +2 -1
- package/public/keys.js +4 -2
- package/public/screen.js +97 -0
- package/public/style.css +5 -1
- package/public/topnav.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.57.3 (2026-11-18)
|
|
4
|
+
|
|
5
|
+
- **Screen: taps from a phone.** A tap did nothing on a Mac. It was sent as move, press and release in the same instant; it is now spaced out as a hand on a mouse would, and a ring shows where the tap landed, so you can see the page took it. Not yet confirmed against a real Mac from a phone.
|
|
6
|
+
- **Screen: the phone's keyboard stays open.** A tap in the screen closed it, so every word meant going back to **Type here**. Now tap **Type here** once, then tap a field on the computer and type. A mouse click still gives the screen the focus, for the computer's own keyboard.
|
|
7
|
+
- **Screen: above the keyboard.** While the phone's keyboard is up, the dialog is the part of the page above it, so the screen is not hidden behind it. Not tried on a phone yet.
|
|
8
|
+
|
|
9
|
+
## 1.57.2 (2026-11-18)
|
|
10
|
+
|
|
11
|
+
- **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.
|
|
12
|
+
- **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.
|
|
13
|
+
- **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.
|
|
14
|
+
- **Shortcuts:** `Shift+S` opens Screen and `Shift+T` the Terminal on this computer; both are in the **?** list.
|
|
15
|
+
|
|
3
16
|
## 1.57.1 (2026-11-18)
|
|
4
17
|
|
|
5
18
|
- **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
|
@@ -1021,10 +1021,11 @@
|
|
|
1021
1021
|
<span id="screen-name" class="hint"></span>
|
|
1022
1022
|
<span class="spacer"></span>
|
|
1023
1023
|
<span id="screen-keys" class="screen-keys" hidden>
|
|
1024
|
-
<input id="screen-type" class="screen-type" placeholder="Type here" aria-label="Type into the screen" autocapitalize="none" autocorrect="off" autocomplete="off" spellcheck="false" />
|
|
1024
|
+
<input id="screen-type" class="screen-type" placeholder="⌨ Type here" aria-label="Type into the screen" title="Tap here for the keyboard: it stays open while you tap in the screen" autocapitalize="none" autocorrect="off" autocomplete="off" spellcheck="false" />
|
|
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');
|
|
@@ -242,12 +268,48 @@ export function initScreen({ api, esc, toast, $ }) {
|
|
|
242
268
|
const mine = new RFB(stage, REMOTE ? new StreamChannel() : `ws://${location.host}/ws/screen`);
|
|
243
269
|
rfb = mine;
|
|
244
270
|
mine.scaleViewport = true;
|
|
271
|
+
// A finger: the screen must not take the focus from Type here, or the phone's keyboard closes
|
|
272
|
+
// at every tap. With it open you tap a field on the computer and type, as in a terminal here.
|
|
273
|
+
// A tap is sent by noVNC as move, press and release in the same instant, which a Mac does not
|
|
274
|
+
// take as a click. Spaced out as a hand on a mouse would, with a ring where the tap landed so
|
|
275
|
+
// you can see the page took it.
|
|
276
|
+
const tap = mine._handleTapEvent?.bind(mine);
|
|
277
|
+
const button = mine._handleMouseButton;
|
|
278
|
+
if (tap && button) {
|
|
279
|
+
mine._handleTapEvent = (ev, bmask) => {
|
|
280
|
+
const calls = [];
|
|
281
|
+
mine._handleMouseButton = (...args) => calls.push(args);
|
|
282
|
+
try {
|
|
283
|
+
tap(ev, bmask);
|
|
284
|
+
} finally {
|
|
285
|
+
mine._handleMouseButton = button;
|
|
286
|
+
}
|
|
287
|
+
calls.forEach((args, i) => setTimeout(() => rfb === mine && button.apply(mine, args), 50 + i * 100));
|
|
288
|
+
const ring = document.createElement('div');
|
|
289
|
+
ring.className = 'screen-tap';
|
|
290
|
+
ring.style.left = `${ev.detail.clientX}px`;
|
|
291
|
+
ring.style.top = `${ev.detail.clientY}px`;
|
|
292
|
+
dialog.append(ring);
|
|
293
|
+
setTimeout(() => ring.remove(), 450);
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
// A mouse still gives the screen the focus, for the computer's own keyboard.
|
|
297
|
+
let touched = 0;
|
|
298
|
+
stage.addEventListener('touchstart', () => {
|
|
299
|
+
touched = Date.now();
|
|
300
|
+
mine.focusOnClick = false;
|
|
301
|
+
}, { capture: true, passive: true });
|
|
302
|
+
stage.addEventListener('mousedown', () => {
|
|
303
|
+
if (Date.now() - touched > 1000) mine.focusOnClick = true;
|
|
304
|
+
}, { capture: true });
|
|
245
305
|
mine.background = '#0f1117';
|
|
246
306
|
mine.addEventListener('credentialsrequired', (e) => rfb === mine && askCredentials(e.detail?.types ?? ['password']));
|
|
247
307
|
mine.addEventListener('securityfailure', (e) => rfb === mine && drop(e.detail?.reason ? `Sign-in refused: ${e.detail.reason}` : 'Sign-in refused: check the user name and password'));
|
|
248
308
|
mine.addEventListener('connect', () => {
|
|
249
309
|
if (rfb !== mine) return;
|
|
250
310
|
state.textContent = 'Connected';
|
|
311
|
+
combos = COMBOS(status?.platform === 'darwin');
|
|
312
|
+
combo.innerHTML = '<option value="">Keys…</option>' + combos.map(([label], i) => `<option value="${i}">${esc(label)}</option>`).join('');
|
|
251
313
|
render();
|
|
252
314
|
layout(false);
|
|
253
315
|
mine.focus();
|
|
@@ -304,19 +366,54 @@ export function initScreen({ api, esc, toast, $ }) {
|
|
|
304
366
|
}
|
|
305
367
|
});
|
|
306
368
|
|
|
369
|
+
// Shortcuts and keys a phone's keyboard does not have: held in order, released in reverse.
|
|
370
|
+
let combos = [];
|
|
371
|
+
const combo = $('#screen-combo');
|
|
372
|
+
combo.addEventListener('change', () => {
|
|
373
|
+
const picked = combos[combo.value];
|
|
374
|
+
combo.value = '';
|
|
375
|
+
if (!picked || !rfb) return;
|
|
376
|
+
const [, mods, sym] = picked;
|
|
377
|
+
for (const m of mods) rfb.sendKey(MOD[m], null, true);
|
|
378
|
+
rfb.sendKey(sym, null);
|
|
379
|
+
for (const m of [...mods].reverse()) rfb.sendKey(MOD[m], null, false);
|
|
380
|
+
});
|
|
381
|
+
|
|
307
382
|
// A phone has no keyboard until a field is focused: what is typed here is sent key by key.
|
|
308
383
|
const typed = $('#screen-type');
|
|
309
384
|
typed.addEventListener('input', () => {
|
|
310
385
|
if (rfb) for (const ch of typed.value) rfb.sendKey(keysymOf(ch), null);
|
|
311
386
|
typed.value = '';
|
|
312
387
|
});
|
|
388
|
+
let keyAt = 0; // when a key below was last sent, so it is not sent twice
|
|
313
389
|
typed.addEventListener('keydown', (e) => {
|
|
314
390
|
const k = { Enter: 'enter', Backspace: 'back', Tab: 'tab', Escape: 'esc' }[e.key];
|
|
315
391
|
if (!k || !rfb) return;
|
|
316
392
|
e.preventDefault();
|
|
317
393
|
e.stopPropagation();
|
|
394
|
+
keyAt = Date.now();
|
|
318
395
|
rfb.sendKey(KEYS[k], null);
|
|
319
396
|
});
|
|
397
|
+
// A phone's keyboard does not always say which key it was in keydown: Return and delete also
|
|
398
|
+
// arrive as what they would do to the field.
|
|
399
|
+
typed.addEventListener('beforeinput', (e) => {
|
|
400
|
+
const k = { insertLineBreak: 'enter', insertParagraph: 'enter', deleteContentBackward: 'back' }[e.inputType];
|
|
401
|
+
if (!k || !rfb) return;
|
|
402
|
+
e.preventDefault();
|
|
403
|
+
if (Date.now() - keyAt > 80) rfb.sendKey(KEYS[k], null);
|
|
404
|
+
});
|
|
405
|
+
|
|
406
|
+
// The phone's keyboard covers the lower half of the page: while it is up, the dialog is the part
|
|
407
|
+
// above it, so the whole screen stays in view.
|
|
408
|
+
const vv = window.visualViewport;
|
|
409
|
+
function aboveKeyboard() {
|
|
410
|
+
const up = dialog.open && vv && innerHeight - vv.height > 120;
|
|
411
|
+
dialog.style.height = up ? `${Math.round(vv.height)}px` : '';
|
|
412
|
+
dialog.style.top = up ? `${Math.round(vv.offsetTop)}px` : '';
|
|
413
|
+
dialog.style.bottom = up ? 'auto' : '';
|
|
414
|
+
}
|
|
415
|
+
vv?.addEventListener('resize', aboveKeyboard);
|
|
416
|
+
vv?.addEventListener('scroll', aboveKeyboard);
|
|
320
417
|
|
|
321
418
|
// Esc belongs to the screen while it is shown, not to the dialog.
|
|
322
419
|
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,6 @@ 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; }
|
|
1823
|
+
.screen-tap { position: fixed; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 2px solid #4c8dff; border-radius: 50%; pointer-events: none; z-index: 5; animation: screen-tap 0.45s ease-out forwards; }
|
|
1824
|
+
@keyframes screen-tap { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
|
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));
|