@7ots/cli 0.1.43 → 0.1.44
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.
|
@@ -336,6 +336,7 @@ function makeOt(opt = {}) {
|
|
|
336
336
|
{ label: { es: '👋 Despedir', pt: '👋 Mandar embora' }[LANG] || '👋 Send home', click: dismiss },
|
|
337
337
|
{ label: tr('settings'), click: () => openSettings(base, tok) },
|
|
338
338
|
]);
|
|
339
|
+
let controlling = false; // using the computer now (pet.html ← broadcast { control }); before menu(): the tray builds it at once
|
|
339
340
|
const menu = () =>
|
|
340
341
|
Menu.buildFromTemplate([
|
|
341
342
|
win.isVisible() ? { label: tr('hide'), click: () => win.hide() } : { label: tr('show'), click: show },
|
|
@@ -651,7 +652,6 @@ function makeOt(opt = {}) {
|
|
|
651
652
|
let rects = [];
|
|
652
653
|
let need = null; // what the page really shows: { w, h } (bubble, effects around the body, talk box)
|
|
653
654
|
let busy = false; // bubble or talk box on screen
|
|
654
|
-
let controlling = false; // using the computer now (pet.html ← broadcast { control })
|
|
655
655
|
let asleep = false; // asleep it stays put (an urgent stir wakes it for a moment, see pet.html)
|
|
656
656
|
const HIT = `(() => {
|
|
657
657
|
const out = [];
|
|
@@ -672,7 +672,10 @@ function makeOt(opt = {}) {
|
|
|
672
672
|
hitting = true;
|
|
673
673
|
win.webContents.executeJavaScript(HIT).then((r) => {
|
|
674
674
|
({ rects, busy, asleep } = r);
|
|
675
|
-
controlling
|
|
675
|
+
if (controlling !== !!r.controlling) {
|
|
676
|
+
controlling = !!r.controlling;
|
|
677
|
+
if (HOST && tray) tray.setContextMenu(menu()); // Linux trays only show the menu set here
|
|
678
|
+
}
|
|
676
679
|
need = r.need || null;
|
|
677
680
|
if (r.goal) goTo(r.goal);
|
|
678
681
|
}).catch(() => {}).finally(() => (hitting = false));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@7ots/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.44",
|
|
4
4
|
"description": "7ots.com — your AI companion with a face of its own: a desktop pet that watches over your coding agent (Claude Code and shell hooks), a personal assistant (reminders, alerts, notes, opens sites, sees your screen if allowed) and a reproducible identity (face, personality, voice) for any agent — in apuchat meet calls, Orquesta projects or your own server.",
|
|
5
5
|
"homepage": "https://7ots.com",
|
|
6
6
|
"repository": {
|