ai-agentmanager 1.57.2 → 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 +6 -0
- package/package.json +1 -1
- package/public/index.html +1 -1
- package/public/screen.js +46 -0
- package/public/style.css +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 1.57.2 (2026-11-18)
|
|
4
10
|
|
|
5
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.
|
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -1021,7 +1021,7 @@
|
|
|
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>
|
package/public/screen.js
CHANGED
|
@@ -268,6 +268,40 @@ export function initScreen({ api, esc, toast, $ }) {
|
|
|
268
268
|
const mine = new RFB(stage, REMOTE ? new StreamChannel() : `ws://${location.host}/ws/screen`);
|
|
269
269
|
rfb = mine;
|
|
270
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 });
|
|
271
305
|
mine.background = '#0f1117';
|
|
272
306
|
mine.addEventListener('credentialsrequired', (e) => rfb === mine && askCredentials(e.detail?.types ?? ['password']));
|
|
273
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'));
|
|
@@ -369,6 +403,18 @@ export function initScreen({ api, esc, toast, $ }) {
|
|
|
369
403
|
if (Date.now() - keyAt > 80) rfb.sendKey(KEYS[k], null);
|
|
370
404
|
});
|
|
371
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);
|
|
417
|
+
|
|
372
418
|
// Esc belongs to the screen while it is shown, not to the dialog.
|
|
373
419
|
dialog.addEventListener('cancel', (e) => rfb && e.preventDefault());
|
|
374
420
|
dialog.addEventListener('close', () => {
|
package/public/style.css
CHANGED
|
@@ -1820,3 +1820,5 @@ table.eval-items tr.eval-na td { color: var(--muted); }
|
|
|
1820
1820
|
.screen-note code { display: block; overflow-wrap: anywhere; user-select: all; }
|
|
1821
1821
|
.screen-login .screen-show input { display: inline; width: auto; margin: 0 4px 0 0; }
|
|
1822
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; } }
|