ai-agentmanager 1.57.2 → 1.58.0
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 +18 -0
- package/README.md +33 -4
- package/docs/architecture.md +3 -1
- package/package.json +1 -1
- package/public/app.js +76 -6
- package/public/files.js +105 -0
- package/public/index.html +45 -4
- package/public/keys.js +1 -0
- package/public/palette.js +122 -0
- package/public/screen.js +271 -7
- package/public/setup.js +1 -1
- package/public/style.css +39 -0
- package/src/awake.js +75 -0
- package/src/cli.js +33 -2
- package/src/files.js +80 -0
- package/src/notify.js +77 -7
- package/src/screen.js +60 -3
- package/src/server.js +62 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.58.0 (2026-11-18)
|
|
4
|
+
|
|
5
|
+
- **Screen: Pad, the screen as a trackpad.** A fingertip covers the button it aims at. With **Pad** on, a drag anywhere moves a pointer drawn on the screen (a slow finger moves it finely, a quick one crosses the screen) and a tap clicks where the pointer is. Two fingers scroll or, tapped, right-click; a finger held still, then dragged, drags. Zoomed in, the screen follows the pointer. The button appears on a touch screen and the choice is remembered. Tried in desktop Chrome with made-up touches, not yet on a phone against a real Mac.
|
|
6
|
+
- **Alerts on the phone.** `agentmgr notify phone` (or **Alerts** on the computer) sends the alerts Slack gets as notifications to the phone, through the [ntfy](https://ntfy.sh) app: the agent as the title, a tap opens it, and what waits for an answer is high priority. It needs no Slack. The text passes through ntfy.sh unless you give a server of your own (`--server`), and whoever knows the topic can read it, so the topic made for you is one nobody can guess. ntfy.sh accepts what is sent; not yet seen arriving on a real phone.
|
|
7
|
+
- **Screen: Clip, the computer's clipboard.** Type or paste text on the phone and **Send and paste** puts it on the computer's clipboard and pastes it there: a password, a link, a one-time code. **Fetch** brings back what was copied on the computer. Text only, and only while screen access is on. Tried on a Mac's clipboard and in desktop Chrome, not yet from a phone.
|
|
8
|
+
- **Keep this computer awake.** In the Screen dialog, or `agentmgr awake always` (or `working`: while an agent works, and five minutes after). A sleeping computer runs no agents and cannot be reached from the phone. The display may still sleep and lock, and a closed lid still puts a laptop to sleep. Tried on a Mac; on Linux it uses `systemd-inhibit`, untried.
|
|
9
|
+
- **Files on this computer.** **Files** in the Screen bar, the Terminal bar and the ☰ menu lists this computer's folders, starting in Downloads. Send files from the phone into the folder shown (photos too, up to 250 MB each, never over a file that is there), and tap a file to fetch it to the phone. It reaches what the terminal on this computer reaches. Tried in desktop Chrome, not yet from a phone.
|
|
10
|
+
- **Inbox, one at a time.** On a phone the inbox shows one card filling the screen; answered, the next takes its place. Swipe to step through them, or **‹ ›**; **Show all** brings the list back. Tried in desktop Chrome with made-up swipes; there a swipe on the card no longer goes back a page, as Chrome on Linux (and Android) otherwise does.
|
|
11
|
+
- **Go to.** `Ctrl+K` or `⌘K`, or **⌕ Go to** in the top bar: one box that finds a view, a list, a menu item or an agent by name and opens it. Agents that wait for you come first. On a phone it saves looking through the More menu.
|
|
12
|
+
- **Fixed: the first click after closing Screen did nothing.** After a mouse click in the screen, an unseen layer stayed over the page and took the next click once the dialog was closed. Found by a test here; a phone's taps did not leave it.
|
|
13
|
+
- **Not the browser's own notifications:** a phone allows those only from a site whose certificate it trusts, and remote access uses a self-signed one.
|
|
14
|
+
|
|
15
|
+
## 1.57.3 (2026-11-18)
|
|
16
|
+
|
|
17
|
+
- **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.
|
|
18
|
+
- **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.
|
|
19
|
+
- **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.
|
|
20
|
+
|
|
3
21
|
## 1.57.2 (2026-11-18)
|
|
4
22
|
|
|
5
23
|
- **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/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Run one background [Claude Code](https://claude.com/claude-code) agent per inten
|
|
|
24
24
|
- **Projects.** The sidebar is a tree, project → agents, so you see how many projects are in flight and how many parallel sessions each has.
|
|
25
25
|
- **Project shortcuts.** Each project gets a short name, such as `cc` for cloud-console. Use it instead of the repo URL: `agentmgr add @cc "…"`, `agentmgr ls cc`, `@cc` in the UI filter.
|
|
26
26
|
- **Backlog.** Queue asks as work orders. Agents pick them up one by one, up to N in parallel per project, until each is done. You accept or reopen each one.
|
|
27
|
-
- **Slack
|
|
27
|
+
- **Alerts, in Slack and on the phone.** A Slack message, a notification on the phone, or both, when an agent needs input, finishes a backlog item, or fails.
|
|
28
28
|
- **Priority.** Mark agents P0–P3. P0 and P1 are highlighted, and lists sort by priority.
|
|
29
29
|
- **Share for review.** One click writes an **Analysis**, **Design**, **Flow** or **Proposal** document from the agent's work, a human time **Estimate** for planning, or the change's **Documentation** with an OpenAPI spec of any API changes. Copy it as Markdown, download it, or print it to PDF with diagrams.
|
|
30
30
|
- **Plan.** A project's commitment dates (code complete, release candidate, GA) with a checklist of what is still open for each, reminders as they come near, and an at-risk or late flag. A **decision log** gathered from plan reviews, your answers and design docs. A **tech debt radar** from git history and the code. What is open can be handed to an agent.
|
|
@@ -49,6 +49,7 @@ Run one background [Claude Code](https://claude.com/claude-code) agent per inten
|
|
|
49
49
|
- **Standup.** Each weekday at 9:00 (or whenever you press **Standup**, or `p`), each agent with news since the last one is read aloud in a sentence or two, each in its own voice: what it did, what it's on, what it needs from you. Agents that need you go first and quiet ones are left out. It stops on an agent that needs you, with its questions beside it to answer by tap, or by voice when **Answer by voice** is on (what you say is read back, then sent when you say "send"). The wording comes from one short tool-less model call, plain wording if that fails. A Slack alert says when it's ready (Alerts). Change the time, weekends and wording in the player, or in config.json: `"standup": { "at": "09:00", "weekends": false, "ai": true, "notify": true }`. Speech is your browser's own; voice answers may be sent to your browser's maker to be turned into text.
|
|
50
50
|
- **Map.** A project's folders as tiles sized by their files, with each agent as a badge on the folders it is changing (filled) or reading right now (ring), refreshed every few seconds (**Map** at the top, `m`, or `#map`). A red line joins two agents that changed the same file: they will conflict when merged. A dashed line runs from an agent reading a file to the agent that already changed it, which is the warning before they collide. Each pair is also spelled out above the map. Reading comes from the last half hour of each agent's session; changes from the conflict radar.
|
|
51
51
|
- **Watch.** Every running agent's session side by side on one page, live (**Watch** at the top, or `#watch`), so you follow them all without clicking from one to the next. Tiles keep a fixed order; one waiting on you gets a red border and is counted at the top. Click a tile and type to answer it there; its name opens the agent. Show running agents, only those waiting on you or only those working, one project's, or a fixed number per row; **Fit** sizes the tiles so all of them (up to 12) are on screen, keeping the newest lines in view. Tiles show each session at its own size and never resize it.
|
|
52
|
+
- **Go to.** `Ctrl+K` or `⌘K` (or **⌕ Go to** in the top bar) opens one box that finds a view, a list, a menu item or an agent by name; agents that wait for you come first. On a phone it saves looking through the More menu.
|
|
52
53
|
- **Keyboard shortcuts.** Press **?** for the list. `j`/`k` move through the agents, `Enter` opens the terminal, `r` reviews changes, `s` resumes, `Shift+X` closes the session, `e` edits; `n` new agents, `a` Ask Agent, `/` filter, `w` Watch, `m` Map, `p` the standup, `i` the Jira summary, `d` Designs, `1`-`5` the side tabs. Single keys work when you're not typing in a field or a terminal. From inside a terminal, `Ctrl+Shift+↓`/`↑` switch to the next or previous agent's terminal and `Ctrl+Shift+L` leaves it.
|
|
53
54
|
- **Landing.** A **Land** tab with every agent's open pull request: ready to merge, needs fixes, behind, waiting. Failing checks and requested changes go back to the agent automatically (a few times at most), and so does every new review comment while the PR is open; **Update**, **Ask to fix** and **Merge** in one click.
|
|
54
55
|
- **Triggers.** A label on a GitHub issue starts an agent for it, `/agent …` comments on an agent's pull request reach the agent, and a webhook starts agents from Jira automation or CI. No model watches, so no tokens are spent waiting.
|
|
@@ -197,6 +198,7 @@ agentmgr explain <agent> # full briefing: ask, status, plan
|
|
|
197
198
|
agentmgr remote on | off | status | rotate # phone / remote access (see below)
|
|
198
199
|
agentmgr backlog add "ask" -r <repo> [-p 1] # queue work; also: ls, start, accept, reopen, move, limit, pause
|
|
199
200
|
agentmgr notify slack --webhook <url> # Slack alerts; also: test, status, on, off, event <name> on|off
|
|
201
|
+
agentmgr notify phone # the same alerts as notifications on the phone (ntfy app); --off stops them
|
|
200
202
|
agentmgr debug <agent> "what goes wrong" # debug with an agent; no question prints its report; --fix applies the fixes
|
|
201
203
|
agentmgr reverse <agent> -t /path/to/app "how does search work" # reverse engineer with an agent and REA; no question prints the report; --build builds your own
|
|
202
204
|
agentmgr dates <project> --cc 2026-12-01 --rc 2026-12-10 --ga 2026-12-20 # commitment dates; no dates: where each stands
|
|
@@ -207,6 +209,7 @@ agentmgr skills # Claude Code's skills here (look
|
|
|
207
209
|
agentmgr lanes # every agent's own ports and name ending (--off, --port off, --base, --size)
|
|
208
210
|
agentmgr rounds [agent] # review rounds before a pull request: the settings, or an agent's rounds (--start, --again, --open, --stop)
|
|
209
211
|
agentmgr screen # this computer's screen in the page, from the phone too: on or off (--on, --off), who is viewing
|
|
212
|
+
agentmgr awake [off|working|always] # keep this computer from going to sleep by itself: always, or while an agent works
|
|
210
213
|
agentmgr models # models served on this computer (Ollama, LM Studio, llama.cpp, MLX), for --engine local
|
|
211
214
|
agentmgr usage # each engine's plan limits: used, left, resets (--now, --lean on, --warn 80, --hold 95, --default codex)
|
|
212
215
|
agentmgr runbook --ticket REL-42 # a support runbook from a release ticket (or --epic KEY, or --since 2026-10-01 -p <project>; -o file.md)
|
|
@@ -676,6 +679,8 @@ The **Inbox** tab (and `agentmgr inbox`) lists what needs you, across all agents
|
|
|
676
679
|
| Follow up | An agent used in the last 3 days has been quiet for 2 hours and isn't finished: still open, or its session ended by itself or was closed by the session cap or clean up | Send the suggested nudge (edit it first), **Resume** a closed one, or **Close session**; **Later** (4 hours) or **Not needed** (until it's used again) |
|
|
677
680
|
| Close session? | It's done (its brief says so, or its pull request merged), quiet for 2 hours, and its session is still open | **Close session** (it resumes when you open it), **Later** or **Not needed** |
|
|
678
681
|
|
|
682
|
+
**One at a time.** On a phone the inbox opens as one card filling the screen, with its buttons under your thumb; answered, the next takes its place. Swipe left for the next card and right for the one before, or use **‹ ›**. **Show all** brings the list back and **One at a time** turns it on anywhere; the choice is kept in that browser.
|
|
683
|
+
|
|
679
684
|
Follow-up reminders skip agents that are working or already waiting on you for something else, and agents you closed yourself. Change the timing in config.json: `"reminders": { "quietHours": 2, "recentDays": 3, "laterHours": 4 }`, or turn them off with `"enabled": false`. From the command line: `agentmgr remind <agent> later|dismiss`.
|
|
680
685
|
|
|
681
686
|
**Limits.** When an engine stops at a usage limit ("5-hour limit reached ∙ resets 3pm", Codex's "You've hit your usage limit… try again at 3:05 PM", an exhausted quota) or a busy or failing service (429, 529 overloaded, 5xx), the agent shows **Limit** in the inbox with the message and when it resets. It is told to continue by itself a minute after the reset (a busy service: after 5 minutes), at most three times an hour; `"limits": { "autoResume": false }` in config.json turns that off. **Continue now** does it at once, and **Continue on Codex** (or any other installed engine; `agentmgr continue-on <agent> <engine>`) carries the work on: a new agent in the same folder and branch, started with the request, the brief and the end of the conversation (a conversation can't move between engines). The new agent owns the folder from then on; the old one is closed, and deleting it leaves the folder.
|
|
@@ -802,7 +807,25 @@ One test run can pass or fail by chance, so the app's own test runs can be repea
|
|
|
802
807
|
|
|
803
808
|
Repeating costs test time, not AI usage.
|
|
804
809
|
|
|
805
|
-
## Slack
|
|
810
|
+
## Alerts: Slack and the phone
|
|
811
|
+
|
|
812
|
+
Alerts go to Slack, to the phone as notifications, or to both.
|
|
813
|
+
|
|
814
|
+
**On the phone**, through [ntfy](https://ntfy.sh), an open-source notification service with an app for iPhone and Android:
|
|
815
|
+
|
|
816
|
+
```sh
|
|
817
|
+
agentmgr notify phone # makes a topic nobody can guess and prints it
|
|
818
|
+
```
|
|
819
|
+
|
|
820
|
+
1. Install the **ntfy** app on the phone.
|
|
821
|
+
2. In it: **+ → Subscribe to topic**, and enter the topic that was printed.
|
|
822
|
+
3. `agentmgr notify test` sends one to try it.
|
|
823
|
+
|
|
824
|
+
A notification's title is the agent, and a tap opens it (at your phone address when remote access is on). Prompts, questions, errors and blocked agents arrive as high priority. It needs no Slack and works on any network, since the phone does not have to reach this computer to be told.
|
|
825
|
+
|
|
826
|
+
- **What leaves this computer.** The alert's text goes through ntfy.sh, a public service, and whoever knows the topic can read what is sent to it, so keep the topic to yourself. Turn off **include the intent text** to send less. `agentmgr notify phone --server https://ntfy.example.com` uses a server of your own, with `--token` if it needs one.
|
|
827
|
+
- **Why not the browser's own notifications?** A phone only allows those from a site whose certificate it trusts, and remote access uses a self-signed one.
|
|
828
|
+
- `agentmgr notify phone --off` stops them.
|
|
806
829
|
|
|
807
830
|
**Three ways to connect Slack:**
|
|
808
831
|
|
|
@@ -823,7 +846,7 @@ agentmgr notify slack --token xoxb-… --channel '#agents' # or a bot
|
|
|
823
846
|
agentmgr notify test
|
|
824
847
|
```
|
|
825
848
|
|
|
826
|
-
Or use **Alerts** in the header (on this computer only). Settings, including the webhook or token, are stored in `~/.agentmanager/notify.json` (mode 0600) and masked in the UI and API.
|
|
849
|
+
Or use **Alerts** in the header (on this computer only), which has the phone's topic too. Settings, including the webhook or token, are stored in `~/.agentmanager/notify.json` (mode 0600) and masked in the UI and API.
|
|
827
850
|
|
|
828
851
|
| Alert | Default | When |
|
|
829
852
|
| --- | --- | --- |
|
|
@@ -885,10 +908,16 @@ It does not capture the screen itself. The computer's own screen sharing does, a
|
|
|
885
908
|
2. On the computer itself: **Screen → Turn on** (or `agentmgr screen --on`).
|
|
886
909
|
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
910
|
|
|
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.
|
|
911
|
+
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. **Pad** turns the screen into a trackpad, for targets a fingertip covers: drag anywhere to move a pointer (a slow finger moves it finely) and tap to click where it is. Two fingers scroll or, tapped, right-click; hold a finger still, then drag, to drag. Zoomed in, the screen follows the pointer. 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
912
|
|
|
890
913
|
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
914
|
|
|
915
|
+
**Clip** is the computer's clipboard, as text. Type or paste into its box and **Send and paste** puts it on the computer's clipboard and pastes it where the cursor is there (a password, a link, a one-time code); **Send** only puts it there. **Fetch** brings back what was copied on the computer (**Keys… → copy** first) and, where the browser allows, puts it on this device's clipboard too. The daemon reads and sets the clipboard itself (`pbcopy` and `pbpaste` on a Mac; `wl-copy` or `xclip` on Linux), because a Mac's screen sharing shares it only with Apple's own viewer. It works only while screen access is on.
|
|
916
|
+
|
|
917
|
+
**Files** (in the Screen bar, the Terminal bar and the ☰ menu: **Files on this computer…**) shows this computer's folders, starting in Downloads. **Send files here…** puts files from the device in your hand (photos too, up to 250 MB each) into the folder shown, never over a file that is there: a second `photo.jpg` becomes `photo (2).jpg`. Tap a folder to open it and a file to fetch it to the device. It reaches what the terminal on this computer reaches, and is allowed wherever that is.
|
|
918
|
+
|
|
919
|
+
**Keep this computer awake**, in the Screen dialog before you connect (or `agentmgr awake always`): a sleeping computer shows nothing, runs no agents and cannot be reached from the phone. **Always** keeps it from going to sleep by itself for as long as AI Agent Manager runs; **While an agent works** only then, and for five minutes after. It uses `caffeinate` on a Mac and `systemd-inhibit` on Linux. The display may still sleep and lock, and closing a laptop's lid still puts it to sleep.
|
|
920
|
+
|
|
892
921
|
- **Whoever uses it controls the whole computer,** not only the agents. So it is off until you turn it on, it can be turned on only on the computer itself (not from a signed-in device), and the computer's screen sharing still asks for its own sign-in every time.
|
|
893
922
|
- **Who is looking:** while another device views the screen, the **Screen** button shows a dot, and its tooltip and `agentmgr screen` name the device and its address. **Turn off** ends every view at once.
|
|
894
923
|
- **Only this computer.** The relay connects to `127.0.0.1` and nothing else; `agentmgr screen --port <n>` picks another port there.
|
package/docs/architecture.md
CHANGED
|
@@ -28,7 +28,9 @@ No build step: Node ES modules on the server, plain ES modules in the browser. S
|
|
|
28
28
|
| `src/judge.js` | The AI judge: one-shot, tool-less model calls that decide *what is going on* (stuck, waiting, done, collisions, backlog order, alert triage), with a daily cap and feedback examples. Falls back to the rules. |
|
|
29
29
|
| `src/backlog.js`, `src/races.js` | Work orders picked up per project; several agents on one intent, compared. |
|
|
30
30
|
| `src/teams.js` | Agents in roles on one problem: handoff files with a verdict line move the team from analysis to review. |
|
|
31
|
-
| `src/notify.js` | Slack
|
|
31
|
+
| `src/notify.js` | Alerts to Slack and to the phone (ntfy), triaged by the judge. |
|
|
32
|
+
| `src/awake.js` | Keeps the computer from sleeping, always or while an agent works. |
|
|
33
|
+
| `src/files.js` | This computer's folders for a signed-in device: list, send a file, fetch one. |
|
|
32
34
|
| `src/preview.js`, `src/livebrowser.js` | Browser tabs: HTTPS relays for remote devices, and a headless Chrome streamed over the Chrome DevTools Protocol (frames, input, sound). |
|
|
33
35
|
| `src/sessions.js` | Finds Claude Code sessions started in a terminal so they can be continued as agents. |
|
|
34
36
|
| `src/remote.js` | Remote access: certificate, token, device sessions. |
|
package/package.json
CHANGED
package/public/app.js
CHANGED
|
@@ -50,6 +50,8 @@ import { initBoard } from '/board.js';
|
|
|
50
50
|
import { initMcp } from '/mcp.js';
|
|
51
51
|
import { initCodeMap } from '/codemap.js';
|
|
52
52
|
import { initKeys } from '/keys.js';
|
|
53
|
+
import { initPalette } from '/palette.js';
|
|
54
|
+
import { initFiles } from '/files.js';
|
|
53
55
|
import { morph } from '/morph.js';
|
|
54
56
|
|
|
55
57
|
const $ = (sel) => document.querySelector(sel);
|
|
@@ -371,6 +373,18 @@ const mcpUi = initMcp({ api, $, esc, ago, md: (t) => md(t), toast: (m, ms) => to
|
|
|
371
373
|
$('#mcp-btn').onclick = () => mcpUi.open(selectedId && agents.get(selectedId)?.workdir ? selectedId : null);
|
|
372
374
|
// Keyboard shortcuts (keys.js): the same actions as the buttons.
|
|
373
375
|
const keysUi = initKeys({ $, esc, run: (act) => shortcut(act) });
|
|
376
|
+
// Files on this computer: send one from this device, fetch one to it (files.js).
|
|
377
|
+
initFiles({ api, esc, toast, ago, $ });
|
|
378
|
+
// Go to (Ctrl+K): the agents that wait for you first.
|
|
379
|
+
initPalette({
|
|
380
|
+
$,
|
|
381
|
+
esc,
|
|
382
|
+
select: (id) => (showTab('agents'), select(id)),
|
|
383
|
+
agents: () =>
|
|
384
|
+
[...agents.values()]
|
|
385
|
+
.map((a) => ({ id: a.id, label: a.name, state: statusOf(a), hint: [statusOf(a), a.projectInfo?.name, a.intent?.replace(/\s+/g, ' ').slice(0, 120)].filter(Boolean).join(' · ') }))
|
|
386
|
+
.sort((a, b) => (b.state === 'attention') - (a.state === 'attention')),
|
|
387
|
+
});
|
|
374
388
|
$('#keys-btn').onclick = () => keysUi.help();
|
|
375
389
|
|
|
376
390
|
/** The agents in the list as shown (collapsed projects left out), top to bottom. */
|
|
@@ -1792,6 +1806,24 @@ function inboxSwitches() {
|
|
|
1792
1806
|
return `<div class="inbox-switches hint">${rounds}${judge}<button class="link" data-inbox-settings title="Rounds, critics and the pull request: in Settings">Settings…</button></div>`;
|
|
1793
1807
|
}
|
|
1794
1808
|
|
|
1809
|
+
// One at a time: on a phone the inbox is a long scroll of cards. Shown one by one instead, each
|
|
1810
|
+
// fills the screen with its buttons under the thumb; answered, the next takes its place. A swipe
|
|
1811
|
+
// (or ‹ ›) steps through them. The choice is kept in this browser; a narrow screen starts with it.
|
|
1812
|
+
let inboxOne = (() => {
|
|
1813
|
+
try {
|
|
1814
|
+
const kept = localStorage.getItem('agentmgr.inboxOne');
|
|
1815
|
+
return kept === null ? matchMedia('(max-width: 800px)').matches : kept === '1';
|
|
1816
|
+
} catch {
|
|
1817
|
+
return false;
|
|
1818
|
+
}
|
|
1819
|
+
})();
|
|
1820
|
+
let inboxAt = { key: null, i: 0 }; // the card shown: by its key, or where it was once it is gone
|
|
1821
|
+
|
|
1822
|
+
function inboxStep(step, count) {
|
|
1823
|
+
inboxAt = { key: null, i: (inboxAt.i + step + count) % Math.max(1, count) };
|
|
1824
|
+
renderInbox();
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1795
1827
|
function renderInbox() {
|
|
1796
1828
|
const items = inboxItems();
|
|
1797
1829
|
const urgent = items.filter((i) => i.kind === 'approval' || i.kind === 'prompt' || i.kind === 'question' || i.kind === 'waiting').length;
|
|
@@ -1800,11 +1832,16 @@ function renderInbox() {
|
|
|
1800
1832
|
if (sideTab !== 'inbox') return;
|
|
1801
1833
|
const view = $('#inbox-view');
|
|
1802
1834
|
if (view.contains(document.activeElement) && document.activeElement.dataset.draft) return; // don't yank the field being typed in
|
|
1835
|
+
const cards = [...promptGroups(items).map((g) => [`group:${g.map((it) => it.a.id).join(',')}`, groupCard(g)]), ...items.map((it) => [it.key, needCard(it)])];
|
|
1836
|
+
const found = cards.findIndex(([key]) => key === inboxAt.key);
|
|
1837
|
+
const now = Math.max(0, found >= 0 ? found : Math.min(inboxAt.i, cards.length - 1));
|
|
1838
|
+
inboxAt = { key: cards[now]?.[0] ?? null, i: now };
|
|
1839
|
+
const steps = inboxOne && cards.length > 1 ? `<span class="inbox-step"><button class="small ghost" data-inbox-step="-1" aria-label="The one before">‹</button><span>${now + 1} of ${cards.length}</span><button class="small ghost" data-inbox-step="1" aria-label="The next one">›</button></span>` : '';
|
|
1803
1840
|
morph(
|
|
1804
1841
|
view,
|
|
1805
1842
|
inboxSwitches() +
|
|
1806
1843
|
(items.length
|
|
1807
|
-
? `<div class="counts"><span>${items.length} waiting on you</span></div><div class="needs inbox
|
|
1844
|
+
? `<div class="counts inbox-counts" data-inbox-cards="${cards.length}"><span>${items.length} waiting on you</span><span class="spacer"></span>${steps}<button class="link" data-inbox-one title="${inboxOne ? 'The whole list again' : 'One card at a time, the next when it is answered; swipe to step through them'}">${inboxOne ? 'Show all' : 'One at a time'}</button></div><div class="needs inbox${inboxOne ? ' one' : ''}">${cards.map(([, html], n) => (inboxOne && n === now ? html.replace('class="need ', 'class="need now ') : html)).join('')}</div>`
|
|
1808
1845
|
: `<div class="empty"><p>Nothing needs you right now.</p><p>Prompts waiting for an answer, questions agents ask, agents that seem stuck and agents editing the same files show up here.</p></div>`),
|
|
1809
1846
|
);
|
|
1810
1847
|
}
|
|
@@ -1813,6 +1850,16 @@ async function onNeed(e) {
|
|
|
1813
1850
|
// A recommendation's own buttons (Decide draws them on plan and question cards).
|
|
1814
1851
|
if (decideUi?.handle(e)) return e.preventDefault();
|
|
1815
1852
|
if (e.target.closest('[data-inbox-settings]')) return $('#settings-btn').click();
|
|
1853
|
+
if (e.target.closest('[data-inbox-one]')) {
|
|
1854
|
+
inboxOne = !inboxOne;
|
|
1855
|
+
inboxAt = { key: null, i: 0 }; // from the first, the most pressing
|
|
1856
|
+
try {
|
|
1857
|
+
localStorage.setItem('agentmgr.inboxOne', inboxOne ? '1' : '0');
|
|
1858
|
+
} catch {}
|
|
1859
|
+
return renderInbox();
|
|
1860
|
+
}
|
|
1861
|
+
const stepBtn = e.target.closest('[data-inbox-step]');
|
|
1862
|
+
if (stepBtn) return inboxStep(Number(stepBtn.dataset.inboxStep), Number(stepBtn.closest('[data-inbox-cards]').dataset.inboxCards));
|
|
1816
1863
|
const judge = e.target.closest('[data-judge]');
|
|
1817
1864
|
if (judge) {
|
|
1818
1865
|
e.preventDefault();
|
|
@@ -1966,6 +2013,23 @@ async function onNeedSubmit(e) {
|
|
|
1966
2013
|
}
|
|
1967
2014
|
done();
|
|
1968
2015
|
}
|
|
2016
|
+
// One at a time: a swipe to the left is the next card, to the right the one before.
|
|
2017
|
+
{
|
|
2018
|
+
let from = null;
|
|
2019
|
+
const inbox = $('#inbox-view');
|
|
2020
|
+
inbox.addEventListener('touchstart', (e) => {
|
|
2021
|
+
from = inboxOne && e.touches.length === 1 && !e.target.closest('input, textarea, select') ? { x: e.touches[0].clientX, y: e.touches[0].clientY } : null;
|
|
2022
|
+
}, { passive: true });
|
|
2023
|
+
inbox.addEventListener('touchend', (e) => {
|
|
2024
|
+
const was = from;
|
|
2025
|
+
from = null;
|
|
2026
|
+
const t = e.changedTouches[0];
|
|
2027
|
+
const count = Number(inbox.querySelector('[data-inbox-cards]')?.dataset.inboxCards ?? 0);
|
|
2028
|
+
if (!was || !t || count < 2) return;
|
|
2029
|
+
const dx = t.clientX - was.x;
|
|
2030
|
+
if (Math.abs(dx) > 70 && Math.abs(dx) > 2 * Math.abs(t.clientY - was.y)) inboxStep(dx < 0 ? 1 : -1, count);
|
|
2031
|
+
}, { passive: true });
|
|
2032
|
+
}
|
|
1969
2033
|
for (const root of [$('#inbox-view'), $('#detail-body'), $('#needs-body')]) {
|
|
1970
2034
|
root.addEventListener('click', onNeed);
|
|
1971
2035
|
root.addEventListener('submit', onNeedSubmit);
|
|
@@ -5142,7 +5206,7 @@ $('#assistant-dialog').addEventListener('click', (e) => {
|
|
|
5142
5206
|
loadAssistant({ fill: false }).catch(() => {});
|
|
5143
5207
|
setInterval(() => loadAssistant({ fill: false }).catch(() => {}), 60_000);
|
|
5144
5208
|
|
|
5145
|
-
// ------------------------------------------------------------------ Slack
|
|
5209
|
+
// ------------------------------------------------------------------ Alerts: Slack and the phone (from this computer)
|
|
5146
5210
|
|
|
5147
5211
|
async function loadAlerts() {
|
|
5148
5212
|
const n = await api('GET', '/notify');
|
|
@@ -5152,15 +5216,16 @@ async function loadAlerts() {
|
|
|
5152
5216
|
f.channel.value = n.slack.channel ?? '';
|
|
5153
5217
|
f.webhookUrl.placeholder = n.slack.webhookUrl ?? 'https://hooks.slack.com/services/…';
|
|
5154
5218
|
f.botToken.placeholder = n.slack.botToken ?? 'xoxb-…';
|
|
5219
|
+
f.phoneTopic.value = n.phone.topic ?? '';
|
|
5220
|
+
f.phoneServer.value = n.phone.server === 'https://ntfy.sh' ? '' : n.phone.server;
|
|
5155
5221
|
for (const k of Object.keys(n.events)) if (f[`ev_${k}`]) f[`ev_${k}`].checked = n.events[k];
|
|
5156
5222
|
f.needsInputDelaySec.value = n.needsInputDelaySec;
|
|
5157
5223
|
f.waitingDelaySec.value = n.waitingDelaySec;
|
|
5158
5224
|
f.skipWhenWatching.checked = n.skipWhenWatching;
|
|
5159
5225
|
f.includeIntent.checked = n.includeIntent;
|
|
5160
5226
|
f.enabled.checked = n.enabled;
|
|
5161
|
-
$
|
|
5162
|
-
|
|
5163
|
-
: 'Not configured yet.';
|
|
5227
|
+
const to = [n.slackConfigured ? `Slack (${n.slack.channel ? `bot token → ${n.slack.channel}` : `webhook ${n.slack.webhookUrl}`}; leave its fields empty to keep it)` : null, n.phone.topic ? 'the phone' : null].filter(Boolean);
|
|
5228
|
+
$('#alerts-current').textContent = to.length ? `Alerts go to ${to.join(' and ')}.` : 'Not configured yet.';
|
|
5164
5229
|
$('#alerts-recent').innerHTML = n.recent.length
|
|
5165
5230
|
? `Recent: ${n.recent.slice(0, 5).map((r) => `${esc(r.kind)} · ${esc(r.agent)} · ${r.error ? `<span class="error">${esc(r.error)}</span>` : TRIAGED[r.urgency] ?? 'sent'} · ${ago(r.at)}`).join('<br>')}`
|
|
5166
5231
|
: '';
|
|
@@ -5186,6 +5251,7 @@ $('#alerts-form').addEventListener('submit', async (e) => {
|
|
|
5186
5251
|
includeIntent: f.includeIntent.checked,
|
|
5187
5252
|
enabled: f.enabled.checked,
|
|
5188
5253
|
channel: f.channel.value.trim() || undefined,
|
|
5254
|
+
phone: { topic: f.phoneTopic.value.trim() || null, server: f.phoneServer.value.trim() },
|
|
5189
5255
|
};
|
|
5190
5256
|
if (f.webhookUrl.value.trim()) body.webhookUrl = f.webhookUrl.value.trim();
|
|
5191
5257
|
if (f.botToken.value.trim()) body.botToken = f.botToken.value.trim();
|
|
@@ -5198,10 +5264,14 @@ $('#alerts-form').addEventListener('submit', async (e) => {
|
|
|
5198
5264
|
$('#alerts-error').hidden = false;
|
|
5199
5265
|
}
|
|
5200
5266
|
});
|
|
5267
|
+
$('#alerts-phone-new').onclick = () => {
|
|
5268
|
+
const bytes = crypto.getRandomValues(new Uint8Array(12));
|
|
5269
|
+
$('#alerts-form').phoneTopic.value = `agentmgr-${[...bytes].map((b) => b.toString(16).padStart(2, '0')).join('')}`;
|
|
5270
|
+
};
|
|
5201
5271
|
$('#alerts-test').onclick = async () => {
|
|
5202
5272
|
try {
|
|
5203
5273
|
await api('POST', '/notify/test');
|
|
5204
|
-
toast('Test message sent
|
|
5274
|
+
toast('Test message sent');
|
|
5205
5275
|
} catch (err) {
|
|
5206
5276
|
$('#alerts-error').textContent = err.message;
|
|
5207
5277
|
$('#alerts-error').hidden = false;
|
package/public/files.js
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// Files: this computer's folders from the device in your hand. Send it a file (a photo from the
|
|
2
|
+
// phone, a document), or tap one there to fetch it (a log, a build, a screenshot). What is sent
|
|
3
|
+
// goes to the folder shown, the Downloads folder to begin with (src/files.js).
|
|
4
|
+
|
|
5
|
+
const fmtSize = (n) => (n < 1024 ? `${n} B` : n < 1048576 ? `${(n / 1024).toFixed(0)} KB` : n < 1073741824 ? `${(n / 1048576).toFixed(1)} MB` : `${(n / 1073741824).toFixed(2)} GB`);
|
|
6
|
+
const MAX_SEND = 250 * 1048576; // what the daemon takes in one file
|
|
7
|
+
|
|
8
|
+
export function initFiles({ api, esc, toast, ago, $ }) {
|
|
9
|
+
const dialog = $('#files-dialog');
|
|
10
|
+
const list = $('#files-list');
|
|
11
|
+
const note = $('#files-note');
|
|
12
|
+
const input = $('#files-input');
|
|
13
|
+
let here = null; // the folder shown, as the daemon gave it
|
|
14
|
+
let sending = 0;
|
|
15
|
+
|
|
16
|
+
function render() {
|
|
17
|
+
$('#files-path').value = here.dir;
|
|
18
|
+
$('#files-up').disabled = !here.parent;
|
|
19
|
+
const rows = here.entries.map((e) => {
|
|
20
|
+
const full = `${here.dir.replace(/\/$/, '')}/${e.name}`;
|
|
21
|
+
return e.dir
|
|
22
|
+
? `<li><button type="button" class="files-row" data-dir="${esc(full)}"><span class="files-icon" aria-hidden="true">📁</span><span class="files-name">${esc(e.name)}</span><span class="hint">${ago(e.at)}</span></button></li>`
|
|
23
|
+
: `<li><a class="files-row" href="/api/machine/file?path=${encodeURIComponent(full)}" download="${esc(e.name)}" title="Fetch this file to this device"><span class="files-icon" aria-hidden="true">⬇</span><span class="files-name">${esc(e.name)}</span><span class="hint">${fmtSize(e.size)} · ${ago(e.at)}</span></a></li>`;
|
|
24
|
+
});
|
|
25
|
+
list.innerHTML = rows.join('') || '<li class="hint files-empty">Nothing here.</li>';
|
|
26
|
+
if (here.more) list.insertAdjacentHTML('beforeend', `<li class="hint files-empty">…and ${here.more} more: type the path above.</li>`);
|
|
27
|
+
if (!sending) note.textContent = `What you send goes into ${here.dir === here.home ? 'your home folder' : here.dir.split('/').pop()}.`;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async function go(dir) {
|
|
31
|
+
try {
|
|
32
|
+
here = await api('GET', `/machine/files?dir=${encodeURIComponent(dir ?? '')}${$('#files-hidden').checked ? '&hidden=1' : ''}`);
|
|
33
|
+
list.scrollTop = 0;
|
|
34
|
+
render();
|
|
35
|
+
return true;
|
|
36
|
+
} catch (err) {
|
|
37
|
+
toast(`Error: ${err.message}`, 6000);
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
async function send(picked) {
|
|
43
|
+
const into = here?.dir;
|
|
44
|
+
if (!into) return;
|
|
45
|
+
for (const file of picked) {
|
|
46
|
+
if (file.size > MAX_SEND) {
|
|
47
|
+
toast(`${file.name} is ${fmtSize(file.size)}: more than the ${fmtSize(MAX_SEND)} that can be sent at once`, 7000);
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
sending++;
|
|
51
|
+
note.textContent = `Sending ${file.name} (${fmtSize(file.size)})…`;
|
|
52
|
+
try {
|
|
53
|
+
const res = await fetch(`/api/machine/files?name=${encodeURIComponent(file.name || 'file')}&dir=${encodeURIComponent(into)}`, {
|
|
54
|
+
method: 'POST',
|
|
55
|
+
credentials: 'same-origin',
|
|
56
|
+
headers: { 'content-type': 'application/octet-stream', 'x-agentmgr': '1' },
|
|
57
|
+
body: file,
|
|
58
|
+
});
|
|
59
|
+
const saved = await res.json().catch(() => ({}));
|
|
60
|
+
if (!res.ok) throw new Error(saved.error || `HTTP ${res.status}`);
|
|
61
|
+
toast(`Sent: ${saved.path}`, 5000);
|
|
62
|
+
} catch (err) {
|
|
63
|
+
toast(`${file.name} was not sent: ${err.message}`, 7000);
|
|
64
|
+
}
|
|
65
|
+
sending--;
|
|
66
|
+
}
|
|
67
|
+
if (here?.dir === into) await go(into);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
$('#files-pick').onclick = () => input.click();
|
|
71
|
+
input.addEventListener('change', () => {
|
|
72
|
+
const picked = [...input.files];
|
|
73
|
+
input.value = '';
|
|
74
|
+
send(picked);
|
|
75
|
+
});
|
|
76
|
+
dialog.addEventListener('dragover', (e) => e.preventDefault());
|
|
77
|
+
dialog.addEventListener('drop', (e) => {
|
|
78
|
+
e.preventDefault();
|
|
79
|
+
if (e.dataTransfer?.files.length) send([...e.dataTransfer.files]);
|
|
80
|
+
});
|
|
81
|
+
list.addEventListener('click', (e) => {
|
|
82
|
+
const dir = e.target.closest('[data-dir]');
|
|
83
|
+
if (dir) go(dir.dataset.dir);
|
|
84
|
+
});
|
|
85
|
+
$('#files-up').onclick = () => here?.parent && go(here.parent);
|
|
86
|
+
$('#files-home').onclick = () => go('~');
|
|
87
|
+
$('#files-inbox').onclick = () => go(here?.inbox ?? '~/Downloads');
|
|
88
|
+
$('#files-hidden').onchange = () => go(here?.dir);
|
|
89
|
+
$('#files-path').addEventListener('keydown', (e) => {
|
|
90
|
+
if (e.key !== 'Enter') return;
|
|
91
|
+
e.preventDefault();
|
|
92
|
+
go(e.target.value);
|
|
93
|
+
});
|
|
94
|
+
$('#files-close').onclick = () => dialog.close();
|
|
95
|
+
|
|
96
|
+
async function open() {
|
|
97
|
+
if (!dialog.open) dialog.showModal();
|
|
98
|
+
// Where sent files go, and where what you want is most often: Downloads. Home where there is none.
|
|
99
|
+
if (!here && !(await go('~/Downloads'))) await go('~');
|
|
100
|
+
else if (here) await go(here.dir);
|
|
101
|
+
}
|
|
102
|
+
for (const b of document.querySelectorAll('[data-open-files]')) b.addEventListener('click', open);
|
|
103
|
+
|
|
104
|
+
return { open };
|
|
105
|
+
}
|
package/public/index.html
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
</div>
|
|
31
31
|
<div class="top-actions">
|
|
32
32
|
<input id="filter" type="search" placeholder="Filter agents" aria-label="Filter agents" />
|
|
33
|
+
<button id="go-btn" class="go-btn" title="Go to: find a view, an agent or a setting by name (Ctrl+K or ⌘K)" aria-label="Go to a view, an agent or a setting">⌕ Go to</button>
|
|
33
34
|
<nav class="top-nav" id="top-nav" aria-label="Views">
|
|
34
35
|
<button id="today-btn" title="Today: what needs you, from every list, most pressing first, and why (y)">Today <span id="today-count" class="badge ready"></span></button>
|
|
35
36
|
<button id="assistant-btn" title="An always-on session that finds new work and starts agents for it">Assistant <span id="assistant-dot" class="assistant-dot" hidden></span></button>
|
|
@@ -72,8 +73,9 @@
|
|
|
72
73
|
<button role="menuitem" id="skills-btn" title="Skills: the Agent Skills Claude Code has here (yours and each project's), which agents used them, and adding more from a repository">Skills…</button>
|
|
73
74
|
<button role="menuitem" id="settings-btn">Settings…</button>
|
|
74
75
|
<button role="menuitem" id="worklog-btn" title="What your agents got done: pull requests, bugs fixed, issues filed; kept in a spreadsheet for reviews">Work record…</button>
|
|
76
|
+
<button role="menuitem" id="files-btn" data-open-files title="This computer's folders: send it a file from this device (a photo, a document), or fetch one from it (a log, a build)">Files on this computer…</button>
|
|
75
77
|
<button role="menuitem" id="cleanup-btn" title="Close agents idle for a while, and delete old closed ones">Clean up…</button>
|
|
76
|
-
<button role="menuitem" id="alerts-btn" class="local-only" title="
|
|
78
|
+
<button role="menuitem" id="alerts-btn" class="local-only" title="Alerts when an agent needs you: a Slack message, or a notification on the phone">Alerts…</button>
|
|
77
79
|
<button role="menuitem" id="remote-btn" class="local-only" title="Open AI Agent Manager from your phone">Remote access…</button>
|
|
78
80
|
<div class="menu-sep"></div>
|
|
79
81
|
<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>
|
|
@@ -608,13 +610,19 @@
|
|
|
608
610
|
|
|
609
611
|
<dialog id="alerts-dialog">
|
|
610
612
|
<form id="alerts-form" method="dialog" class="alerts-body">
|
|
611
|
-
<h2>
|
|
612
|
-
<p class="hint">Get a Slack message when an agent needs you.
|
|
613
|
+
<h2>Alerts</h2>
|
|
614
|
+
<p class="hint">Get a Slack message, a notification on the phone, or both, when an agent needs you. <b>Slack:</b> use a <b>Workflow Builder</b> webhook (<code>…/triggers/…</code>, with one Text variable named <code>text</code>), an app's <b>incoming webhook</b> (<code>…/services/…</code>), or a <b>bot token</b> and channel. Stored only on this computer.</p>
|
|
613
615
|
<label>Webhook URL <input name="webhookUrl" type="password" autocomplete="off" placeholder="https://hooks.slack.com/services/…" /></label>
|
|
614
616
|
<div class="row">
|
|
615
617
|
<label>or bot token <input name="botToken" type="password" autocomplete="off" placeholder="xoxb-…" /></label>
|
|
616
618
|
<label>channel <input name="channel" placeholder="#agents" /></label>
|
|
617
619
|
</div>
|
|
620
|
+
<p class="hint"><b>Phone:</b> install the <b>ntfy</b> app on it (App Store or Google Play) and subscribe there to the topic below; a tap on a notification opens the agent. Alerts pass through ntfy.sh, a public service, and whoever knows the topic can read them: keep it to yourself, or give a server of your own.</p>
|
|
621
|
+
<div class="row">
|
|
622
|
+
<label>Phone topic <input name="phoneTopic" autocomplete="off" spellcheck="false" placeholder="empty: nothing goes to the phone" /></label>
|
|
623
|
+
<label>ntfy server <input name="phoneServer" autocomplete="off" spellcheck="false" placeholder="https://ntfy.sh" /></label>
|
|
624
|
+
</div>
|
|
625
|
+
<p><button type="button" class="ghost small" id="alerts-phone-new" title="Fill in a new topic nobody can guess; Save, then subscribe to it in the ntfy app">New topic</button></p>
|
|
618
626
|
<p class="hint" id="alerts-current"></p>
|
|
619
627
|
<fieldset>
|
|
620
628
|
<legend>Alert when an agent…</legend>
|
|
@@ -1021,28 +1029,61 @@
|
|
|
1021
1029
|
<span id="screen-name" class="hint"></span>
|
|
1022
1030
|
<span class="spacer"></span>
|
|
1023
1031
|
<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" />
|
|
1032
|
+
<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
1033
|
<button class="ghost small" data-screen-key="esc" title="Escape">Esc</button>
|
|
1026
1034
|
<button class="ghost small" data-screen-key="tab" title="Tab">Tab</button>
|
|
1027
1035
|
<button class="ghost small" data-screen-key="enter" title="Return">⏎</button>
|
|
1028
1036
|
<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>
|
|
1037
|
+
<button class="ghost small" id="screen-clip-btn" data-screen="clip" title="The computer's clipboard: send text to it (and paste it), or fetch what was copied there" aria-pressed="false">Clip</button>
|
|
1029
1038
|
<button class="ghost small" data-screen-zoom="-1" title="Zoom out" aria-label="Zoom out">−</button>
|
|
1030
1039
|
<button class="ghost small" id="screen-zoom-now" data-screen-zoom="0" title="Fit the whole screen">Fit</button>
|
|
1031
1040
|
<button class="ghost small" data-screen-zoom="1" title="Zoom in" aria-label="Zoom in">+</button>
|
|
1041
|
+
<button class="ghost small" id="screen-pad" data-screen="pad" title="Use the screen as a trackpad: drag to move the pointer and tap to click where it is, so your finger does not cover what you aim at. Two fingers scroll or, tapped, right-click; hold, then drag, to drag" aria-pressed="false" hidden>Pad</button>
|
|
1032
1042
|
<button class="ghost small" id="screen-move" data-screen="move" title="Drag to move around the zoomed screen instead of clicking in it" aria-pressed="false" hidden>Move</button>
|
|
1033
1043
|
</span>
|
|
1044
|
+
<button class="ghost small" data-open-files title="This computer's folders: send it a file from this device, or fetch one from it">Files</button>
|
|
1034
1045
|
<button id="screen-off" class="ghost small" data-screen="off" title="No device can reach this computer's screen until you turn it on again here" hidden>Turn off</button>
|
|
1035
1046
|
<button class="ghost small" data-screen="close" title="Close (ends your connection to the screen)">Close</button>
|
|
1036
1047
|
</div>
|
|
1048
|
+
<div id="screen-clip" class="screen-clip" hidden>
|
|
1049
|
+
<textarea id="screen-clip-text" rows="2" aria-label="Text for the computer's clipboard, or fetched from it" placeholder="Text to put on the computer's clipboard. Or fetch what was copied there." autocapitalize="none" autocorrect="off" spellcheck="false"></textarea>
|
|
1050
|
+
<span class="screen-clip-acts">
|
|
1051
|
+
<button class="small primary" data-screen="clip-paste" title="Put it on the computer's clipboard and paste it where the cursor is there">Send and paste</button>
|
|
1052
|
+
<button class="ghost small" data-screen="clip-send" title="Put it on the computer's clipboard">Send</button>
|
|
1053
|
+
<button class="ghost small" data-screen="clip-get" title="Fetch the text on the computer's clipboard (copy there first: Keys… → copy)">Fetch</button>
|
|
1054
|
+
</span>
|
|
1055
|
+
</div>
|
|
1037
1056
|
<div id="screen-body" class="screen-body"></div>
|
|
1038
1057
|
<div id="screen-view" class="screen-view" hidden></div>
|
|
1039
1058
|
</dialog>
|
|
1059
|
+
<dialog id="files-dialog" class="files-dialog">
|
|
1060
|
+
<div class="files-head">
|
|
1061
|
+
<b>Files on this computer</b>
|
|
1062
|
+
<span class="spacer"></span>
|
|
1063
|
+
<button id="files-close" class="ghost small">Close</button>
|
|
1064
|
+
</div>
|
|
1065
|
+
<div class="files-bar">
|
|
1066
|
+
<button id="files-up" class="ghost small" title="The folder above" aria-label="The folder above">↑</button>
|
|
1067
|
+
<input id="files-path" aria-label="Folder" title="The folder shown. Type another and press Return" autocomplete="off" autocapitalize="none" autocorrect="off" spellcheck="false" />
|
|
1068
|
+
<button id="files-home" class="ghost small" title="Your home folder">Home</button>
|
|
1069
|
+
<button id="files-inbox" class="ghost small" title="The Downloads folder">Downloads</button>
|
|
1070
|
+
</div>
|
|
1071
|
+
<div class="files-bar">
|
|
1072
|
+
<button id="files-pick" class="primary small" title="Pick files on this device (photos too) and put them in the folder shown. Or drop them here">Send files here…</button>
|
|
1073
|
+
<input id="files-input" type="file" multiple hidden />
|
|
1074
|
+
<label class="check"><input type="checkbox" id="files-hidden" /> hidden files</label>
|
|
1075
|
+
<span id="files-note" class="hint"></span>
|
|
1076
|
+
</div>
|
|
1077
|
+
<ul id="files-list" class="files-list"></ul>
|
|
1078
|
+
<p class="hint files-foot">Tap a folder to open it, a file to fetch it to this device.</p>
|
|
1079
|
+
</dialog>
|
|
1040
1080
|
<dialog id="machine-dialog" class="machine-dialog">
|
|
1041
1081
|
<div class="term-bar">
|
|
1042
1082
|
<div class="term-tabs" id="machine-tabs" role="tablist"></div>
|
|
1043
1083
|
<button class="term-tab term-add" id="machine-new" title="Open another terminal">+ Terminal</button>
|
|
1044
1084
|
<span id="machine-title" class="hint"></span>
|
|
1045
1085
|
<span class="spacer"></span>
|
|
1086
|
+
<button class="ghost small" data-open-files title="This computer's folders: send it a file from this device, or fetch one from it">Files</button>
|
|
1046
1087
|
<button id="machine-copy" class="ghost small" title="Copy text from the terminal">Copy</button>
|
|
1047
1088
|
<button id="machine-paste" class="ghost small" title="Paste into the terminal">Paste</button>
|
|
1048
1089
|
<button id="machine-close" class="ghost small" title="Hide (the shells keep running)">Hide</button>
|
package/public/keys.js
CHANGED
|
@@ -17,6 +17,7 @@ export const SHORTCUTS = [
|
|
|
17
17
|
[['n'], 'New agents', 'new'],
|
|
18
18
|
[['a'], 'Ask Agent (a general session)', 'ask'],
|
|
19
19
|
[['/'], 'Filter agents', 'filter'],
|
|
20
|
+
[['Ctrl+K', 'Cmd+K'], 'Go to: find a view, an agent or a setting by name', null],
|
|
20
21
|
[['w'], 'Watch: agents side by side', 'watch'],
|
|
21
22
|
[['p'], 'Play the standup', 'standup'],
|
|
22
23
|
[['m'], 'Map: where agents are in the code', 'map'],
|