ai-agentmanager 1.19.0 → 1.21.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 +13 -0
- package/README.md +13 -3
- package/package.json +1 -1
- package/public/app.js +130 -7
- package/public/codemap.js +209 -0
- package/public/index.html +27 -0
- package/public/keys.js +93 -0
- package/public/land.js +9 -2
- package/public/speak.js +4 -2
- package/public/standup.js +348 -0
- package/public/style.css +96 -0
- package/public/voice.js +16 -0
- package/public/watch.js +254 -0
- package/src/backlog.js +7 -3
- package/src/brief.js +31 -3
- package/src/cli.js +7 -2
- package/src/codemap.js +115 -0
- package/src/config.js +6 -0
- package/src/drive.js +1 -0
- package/src/landing.js +88 -9
- package/src/livebrowser.js +5 -2
- package/src/manager.js +81 -1
- package/src/notify.js +1 -0
- package/src/server.js +41 -2
- package/src/standup.js +209 -0
- package/src/tracker.js +57 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.21.0 (2026-11-06)
|
|
4
|
+
|
|
5
|
+
- **Map: where agents are in the code.** A **Map** page (or `m`) shows a project's folders as tiles with each agent on the folders it's changing or reading now. Two agents that changed the same file are joined in red; one reading a file another changed is joined with a dashed line, the warning before they collide, and each is spelled out above the map.
|
|
6
|
+
- **Standup.** Every weekday morning (or on demand: **Standup**, or `p`), each agent's news is read aloud in its own voice: what it did, what it's on and what it needs from you, the ones that need you first. It stops on those with their questions beside it: answer by tap, or by voice (read back, sent on "send"). Worded by one short model call; a Slack alert says when it's ready.
|
|
7
|
+
|
|
8
|
+
## 1.20.0 (2026-11-06)
|
|
9
|
+
|
|
10
|
+
- **Review comments reach the agent while its pull request is open.** New comments, reviews and line comments on an agent's open pull request are sent to it in one message (waking it if closed), checked every couple of minutes; it makes the changes, pushes and replies on the pull request. Only the repo's owners, members and collaborators (and review bots on the code) count; approvals, resolved threads and the agent's own replies don't. On by default: **Send new review comments** in the Land tab, `agentmgr land set --fix-comments off`, or `"landing": { "fixComments": false }`.
|
|
11
|
+
- **Demo page and micro benchmarks, as options.** Tick **Demo page** on the new-agent form (`--demo-page`) and, once the change works, the agent makes a self-contained sample page showing it with real inputs and outputs, published as a claude.ai Artifact and opened here (sandboxed) with **Demo page ↗**. Tick **Micro benchmarks** (`--benchmarks`) and it times the code it changed before and after, writing a results table you open with **Benchmark**, also folded into the pull request description. Both are off by default (`"demoPage"`, `"benchmarks"` in config.json).
|
|
12
|
+
- **Watch: agents side by side.** A **Watch** page (top bar, or `#watch`) shows every running agent's live session at once, up to 12, so you can follow them without clicking from one to another. **Fit** puts them all on screen; an agent waiting on you gets a red border and a count at the top; click a tile and type to answer it in place, or click its name to open the agent. Filter by running, waiting on you or working, and by project.
|
|
13
|
+
- **Keyboard shortcuts.** Quick actions without the mouse: `j`/`k` to move through agents, `Enter` for the terminal, `r` review changes, `s` resume, `Shift+X` close, `e` edit, `n` new agents, `a` Ask Agent, `/` filter, `w` Watch, `1`-`5` tabs; `Ctrl+Shift+↓`/`↑` jump between agents' terminals and `Ctrl+Shift+L` leaves one. **?** (or **Keyboard shortcuts…** in the menu) lists them.
|
|
14
|
+
- A live browser tab keeps trying for its first picture and title for up to 15 seconds when Chrome is slow to start, instead of staying blank.
|
|
15
|
+
|
|
3
16
|
## 1.19.0 (2026-11-05)
|
|
4
17
|
|
|
5
18
|
- **Design docs, written automatically.** Once its plan is settled, a task agent writes a short design doc and publishes it as a claude.ai Artifact; the link goes in its brief. The doc covers a summary, the architecture, the design, the data flow and the decisions and risks, with at most three small diagrams and no repeats of the spec or plan. When the work is done, the agent brings it up to date at the same link. It's on by default; untick **Design doc** on the new-agent form, use `agentmgr add --no-design-doc`, or set `"designDoc": false`. View it under **Design doc** next to Intent · Spec · Plan; it's also folded into the pull request description.
|
package/README.md
CHANGED
|
@@ -29,7 +29,11 @@ Run one background [Claude Code](https://claude.com/claude-code) agent per inten
|
|
|
29
29
|
- **Share for review.** One click writes an **Analysis**, **Design**, **Flow** or **Proposal** document from the agent's work. Copy it as Markdown, download it, or print it to PDF with diagrams.
|
|
30
30
|
- **Human vs AI.** It splits the open questions about the work into the top 5 that need your judgment and the ones a model can answer from the evidence. It answers those, then a second model double-checks every answer.
|
|
31
31
|
- **Review changes.** Each agent's diff file by file, line comments sent back to the agent as one message, then **Commit all** and **Push & open PR**, without leaving the page.
|
|
32
|
-
- **
|
|
32
|
+
- **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.
|
|
33
|
+
- **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.
|
|
34
|
+
- **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.
|
|
35
|
+
- **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, `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.
|
|
36
|
+
- **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.
|
|
33
37
|
- **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.
|
|
34
38
|
- **Repo memory.** What one agent learns about a repo (how to run its tests, a gotcha) is recorded in one line and given to every later agent there.
|
|
35
39
|
- **Playbooks.** Saved requests with `{{values}}`, run in several projects at once (one agent each), by hand or every hour, day, weekday or week.
|
|
@@ -400,6 +404,8 @@ Each card has at most **three points of about 12 words each**, so they're easy t
|
|
|
400
404
|
- **Commit all** commits everything in the worktree, new files included, with your git name and email.
|
|
401
405
|
- **Intent, spec and plan.** Each agent keeps INTENT.md (what was asked, written by AI Agent Manager), SPEC.md (requirements and acceptance criteria, written by the agent before it changes code) and PLAN.md (steps, ticked off as it goes) next to its brief. Open them with **Intent · Spec · Plan** or in the split view's Docs; Explain, the documents and AI review read them too. `"specs": false` in config.json stops asking agents for the spec and plan.
|
|
402
406
|
- **Design doc.** Once its plan is settled (approved, with plan review on), each task agent writes DESIGN.md next to its brief and publishes it, without waiting for you, as a **claude.ai Artifact** with the diagrams drawn (its Artifact tool). The link goes in its brief's References as **Design page**. It's short on purpose, about 300-700 words: a summary, the architecture, the design, the data flow and the decisions and risks, with at most three small diagrams and nothing repeated from the spec, plan or brief. When the work is done, the agent brings it up to date and republishes the Artifact at the same link. If the tool is missing, the agent notes it and carries on. Open it with **Design doc** next to Intent · Spec · Plan; it also goes, folded, into the pull request description. It's on by default: untick **Design doc** on the new-agent form (`agentmgr add --no-design-doc`) for small fixes, or set `"designDoc": false` in config.json.
|
|
407
|
+
- **Demo page** (off unless ticked; `agentmgr add --demo-page`, or `"demoPage": true`). Once the change works, the agent makes DEMO.html: one self-contained page showing what changed with realistic sample data and the outputs it actually got. That means runnable examples for a library or CLI, the changed screen rebuilt with sample data or screenshots for a UI, and before and after for a fix. It's published as a claude.ai Artifact (**Demo page** in the brief) and opens here with **Demo page ↗**, sandboxed so it can't reach AI Agent Manager or load anything from elsewhere.
|
|
408
|
+
- **Micro benchmarks** (off unless ticked; `agentmgr add --benchmarks`, or `"benchmarks": true`). Once the change works, the agent times the functions it changed with sample inputs at a few sizes, on the base commit and on its change, back to back, and writes BENCHMARK.md: what was measured and how to rerun it, a before | after | change table, the machine, and a line on any slowdown over 5%. It uses the repo's own benchmark setup when there is one; otherwise the scripts stay next to the brief, uncommitted. Open it with **Benchmark**; it's also folded into the pull request description and published to Google Drive with the rest.
|
|
403
409
|
- **Publish to Google Drive.** One click (or `agentmgr publish <agent>`) puts all of an agent's documents in a Google Drive folder named after it, one Google Doc each: the brief, intent, spec, plan, design doc and any documents written for it (analysis, design, flow, proposal, diagrams and so on). It goes through the Google Drive connector of your Claude account, so AI Agent Manager holds no Google credentials. The call can use only the Drive tools that create and trash files. **Google Drive ↗** opens the folder. Publishing again puts the latest versions in the same folder and moves the earlier ones to the trash, because the connector can't edit a doc's content. Mermaid diagrams stay as code in the Google Docs, with a pointer to where they're drawn.
|
|
404
410
|
- **Push & open PR** pushes the branch and opens a pull request with `gh`, against the branch the agent started from (title from your text, or from the commits; **Draft** if you like). Its description carries the intent, and the spec and plan in folded sections. With a pull request already open, it pushes to it. The pull request is linked to the agent.
|
|
405
411
|
|
|
@@ -416,10 +422,14 @@ The **Land** tab lists every agent's open pull request by what it needs to get m
|
|
|
416
422
|
|
|
417
423
|
Each agent's pull requests show the same tags (checks, review, conflicts). Pull requests are checked every couple of minutes for running agents, and every few minutes for closed agents with a PR still open.
|
|
418
424
|
|
|
419
|
-
**Failures go back to the agent by themselves.** When checks fail on an agent's pull request, the agent is told which ones and how to read their logs; when a reviewer requests changes, it is told to read and address the review. Each commit is reported once, and at most 3 times per pull request, so an agent can't loop on a broken main.
|
|
425
|
+
**Failures go back to the agent by themselves.** When checks fail on an agent's pull request, the agent is told which ones and how to read their logs; when a reviewer requests changes, it is told to read and address the review. Each commit is reported once, and at most 3 times per pull request, so an agent can't loop on a broken main.
|
|
426
|
+
|
|
427
|
+
**Review comments go back to the agent too, for as long as the pull request is open.** Each time the pull request is checked, new comments, reviews and line comments are sent to its agent in one message, which wakes a closed agent. The agent makes the changes (or says why not), pushes, and replies on the pull request, answering line comments in their own threads. Only comments from the repo's owners, members and collaborators count, plus review bots' comments on the code (Copilot, for one); approvals, resolved threads, `/agent` commands and the agent's own replies are left out. Comments from before an agent's last turn aren't sent again. The Land tab shows how many were sent.
|
|
428
|
+
|
|
429
|
+
Change these at the bottom of the Land tab, with `agentmgr land set` (`--fix-comments off`), or in config.json:
|
|
420
430
|
|
|
421
431
|
```json
|
|
422
|
-
"landing": { "fixChecks": true, "fixReviews": true, "maxFixes": 3, "mergeMethod": "squash", "deleteBranch": true }
|
|
432
|
+
"landing": { "fixChecks": true, "fixReviews": true, "fixComments": true, "maxFixes": 3, "mergeMethod": "squash", "deleteBranch": true }
|
|
423
433
|
```
|
|
424
434
|
|
|
425
435
|
From a terminal: `agentmgr land` lists them, `agentmgr land update|fix|merge <agent>` (`--auto` for auto-merge). With `agentmgr changes`, `comment`, `commit` and `pr` you can review and open the pull request too. Plugins can refuse a merge (`agent.merge`).
|
package/package.json
CHANGED
package/public/app.js
CHANGED
|
@@ -23,6 +23,10 @@ import { initUpdate } from '/update.js';
|
|
|
23
23
|
import { initMenu } from '/menu.js';
|
|
24
24
|
import { initCode } from '/code.js';
|
|
25
25
|
import { initMachine } from '/machine.js';
|
|
26
|
+
import { initWatch } from '/watch.js';
|
|
27
|
+
import { initStandup } from '/standup.js';
|
|
28
|
+
import { initCodeMap } from '/codemap.js';
|
|
29
|
+
import { initKeys } from '/keys.js';
|
|
26
30
|
import { morph } from '/morph.js';
|
|
27
31
|
|
|
28
32
|
const $ = (sel) => document.querySelector(sel);
|
|
@@ -43,7 +47,12 @@ const loginHash = location.hash.match(/(?:^#|&)login=([\w-]+)/)?.[1] ?? null;
|
|
|
43
47
|
const ticketHash = location.hash.match(/(?:^#|&)ticket=([\w-]+)/)?.[1] ?? null;
|
|
44
48
|
const goHash = ticketHash ? decodeURIComponent(location.hash.match(/(?:^#|&)go=([^&]*)/)?.[1] ?? '') : '';
|
|
45
49
|
const [hashId, hashView] = loginHash ? [null, null] : (ticketHash ? goHash : location.hash.slice(1)).split('/');
|
|
46
|
-
|
|
50
|
+
// "#watch": the Watch page, not an agent.
|
|
51
|
+
const watchOnLoad = hashId === 'watch';
|
|
52
|
+
const standupOnLoad = hashId === 'standup';
|
|
53
|
+
const mapOnLoad = hashId === 'map';
|
|
54
|
+
let watchShown = false;
|
|
55
|
+
let selectedId = (watchOnLoad || standupOnLoad || mapOnLoad ? null : hashId) || null;
|
|
47
56
|
let openTermOnLoad = hashView === 'term' || hashView === 'code' || isShell(hashView) || isBrowser(hashView);
|
|
48
57
|
let filterText = '';
|
|
49
58
|
// "Only agents created in the last N days": remembered in this browser.
|
|
@@ -162,6 +171,82 @@ const builtUi = initBuilt({
|
|
|
162
171
|
});
|
|
163
172
|
const landUi = initLand({ api, esc, toast, agents, $, scoreBadge, select: (id) => (showTab('agents'), select(id)), openReview: (id) => reviewUi.open(id), isOpen: () => sideTab === 'land' });
|
|
164
173
|
|
|
174
|
+
// Watch: running agents' sessions side by side.
|
|
175
|
+
const watchUi = initWatch({
|
|
176
|
+
agents,
|
|
177
|
+
$,
|
|
178
|
+
esc,
|
|
179
|
+
Terminal,
|
|
180
|
+
openStream,
|
|
181
|
+
statusOf: (a) => statusOf(a),
|
|
182
|
+
pillText: (st) => pillText(st),
|
|
183
|
+
projectKey: (a) => a.projectInfo?.key ?? 'other',
|
|
184
|
+
projectLabel: (a) => a.projectInfo?.name ?? 'Other',
|
|
185
|
+
openAgent: (id) => (showTab('agents'), select(id), term.open(id)),
|
|
186
|
+
});
|
|
187
|
+
$('#watch-btn').onclick = () => (mapUi.isOpen() && mapUi.show(false), watchUi.show(!watchUi.isOpen()));
|
|
188
|
+
|
|
189
|
+
// Map: where each agent is in the code, and who is about to collide.
|
|
190
|
+
const mapUi = initCodeMap({ api, $, esc, agents, toast: (m, ms) => toast(m, ms), openAgent: (id) => (showTab('agents'), select(id)) });
|
|
191
|
+
$('#map-btn').onclick = () => (watchUi.isOpen() && watchUi.show(false), mapUi.show(!mapUi.isOpen()));
|
|
192
|
+
|
|
193
|
+
// The standup: each agent's news read aloud, stopping on the ones that need you.
|
|
194
|
+
const standupUi = initStandup({
|
|
195
|
+
api,
|
|
196
|
+
$,
|
|
197
|
+
esc,
|
|
198
|
+
agents,
|
|
199
|
+
needsFor: (a) => needsFor(a),
|
|
200
|
+
needCard: (it, o) => needCard(it, o),
|
|
201
|
+
onNeed: (e) => onNeed(e),
|
|
202
|
+
toast: (m, ms) => toast(m, ms),
|
|
203
|
+
openAgent: (id) => (showTab('agents'), select(id)),
|
|
204
|
+
});
|
|
205
|
+
// Keyboard shortcuts (keys.js): the same actions as the buttons.
|
|
206
|
+
const keysUi = initKeys({ $, esc, run: (act) => shortcut(act) });
|
|
207
|
+
$('#keys-btn').onclick = () => keysUi.help();
|
|
208
|
+
|
|
209
|
+
/** The agents in the list as shown (collapsed projects left out), top to bottom. */
|
|
210
|
+
const listedIds = () => [...document.querySelectorAll('#agent-list li.agent[data-id]')].filter((li) => li.offsetParent).map((li) => li.dataset.id);
|
|
211
|
+
|
|
212
|
+
/** The next or previous agent in the list; from a terminal (Ctrl+Shift), its terminal. */
|
|
213
|
+
function stepAgent(dir, { withTerm = false } = {}) {
|
|
214
|
+
if (sideTab !== 'agents') showTab('agents');
|
|
215
|
+
const ids = listedIds();
|
|
216
|
+
if (!ids.length) return;
|
|
217
|
+
const i = ids.indexOf(selectedId);
|
|
218
|
+
const id = ids[i < 0 ? (dir > 0 ? 0 : ids.length - 1) : (i + dir + ids.length) % ids.length];
|
|
219
|
+
select(id);
|
|
220
|
+
document.querySelector(`#agent-list li[data-id="${id}"]`)?.scrollIntoView({ block: 'nearest' });
|
|
221
|
+
if (withTerm && agents.get(id)?.runtime.running) term.open(id);
|
|
222
|
+
else document.activeElement?.blur();
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/** Press one of the selected agent's buttons (false when it has none, or it's off). */
|
|
226
|
+
function detailAct(name) {
|
|
227
|
+
const b = selectedId && document.querySelector(`#detail [data-act="${name}"]`);
|
|
228
|
+
if (!b || b.disabled) return false;
|
|
229
|
+
b.click();
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
function shortcut(act) {
|
|
233
|
+
if (act === 'next' || act === 'prev') return stepAgent(act === 'next' ? 1 : -1);
|
|
234
|
+
if (act === 'next-term' || act === 'prev-term') return stepAgent(act === 'next-term' ? 1 : -1, { withTerm: true });
|
|
235
|
+
if (act === 'leave') return document.activeElement?.blur();
|
|
236
|
+
if (['terminal', 'changes', 'start', 'stop', 'edit'].includes(act)) return detailAct(act);
|
|
237
|
+
if (act === 'new') return $('#new-btn').click();
|
|
238
|
+
if (act === 'ask') return $('#ask-btn').click();
|
|
239
|
+
if (act === 'filter') {
|
|
240
|
+
$('#filter').focus();
|
|
241
|
+
return $('#filter').select();
|
|
242
|
+
}
|
|
243
|
+
if (act === 'watch') return $('#watch-btn') ? $('#watch-btn').click() : false;
|
|
244
|
+
if (act === 'standup') return standupUi.open();
|
|
245
|
+
if (act === 'map') return $('#map-btn').click();
|
|
246
|
+
if (act.startsWith('tab:')) return showTab(act.slice(4));
|
|
247
|
+
return false;
|
|
248
|
+
}
|
|
249
|
+
|
|
165
250
|
function statusOf(a) {
|
|
166
251
|
if (a.runtime.planning) return a.runtime.attention ? 'attention' : 'planning';
|
|
167
252
|
if (a.status === 'running') {
|
|
@@ -310,9 +395,14 @@ const INSIGHT_ICONS = { why: '🎯', what: '📦', how: '🛠', now: '📍' };
|
|
|
310
395
|
const DOCS = { analysis: 'Analysis', design: 'Design', flow: 'Flow', proposal: 'Proposal', humanai: 'Human vs AI', diagrams: 'Diagrams', scorecard: 'Scorecard' };
|
|
311
396
|
// Optional extras that "Write all" leaves out.
|
|
312
397
|
const DOC_EXTRAS = new Set(['diagrams', 'scorecard']);
|
|
313
|
-
const DOC_TITLES = { ...DOCS, plan: 'Plan', intent: 'Intent', spec: 'Spec', designdoc: 'Design doc' };
|
|
398
|
+
const DOC_TITLES = { ...DOCS, plan: 'Plan', intent: 'Intent', spec: 'Spec', designdoc: 'Design doc', benchmark: 'Benchmark' };
|
|
314
399
|
// The agent's intent, spec and plan files (read from the daemon when opened; kept here by agent and kind).
|
|
315
|
-
const SPEC_KINDS = { intent: 'Intent', spec: 'Spec', plan: 'Plan', designdoc: 'Design doc' };
|
|
400
|
+
const SPEC_KINDS = { intent: 'Intent', spec: 'Spec', plan: 'Plan', designdoc: 'Design doc', benchmark: 'Benchmark' };
|
|
401
|
+
// What each optional file is, for its button before it's written.
|
|
402
|
+
const SPEC_PENDING = {
|
|
403
|
+
designdoc: 'The agent writes it once its plan is settled, publishes it as an Artifact (the link is in its brief) and updates it when done',
|
|
404
|
+
benchmark: 'The agent times the code it changed, before and after, once the change works',
|
|
405
|
+
};
|
|
316
406
|
const specCache = new Map(); // "<agent>:<kind>" -> { markdown, at }
|
|
317
407
|
const isSpecKind = (a, kind) => Boolean(SPEC_KINDS[kind]) && !(kind === 'plan' && a?.planReview);
|
|
318
408
|
async function loadSpec(agentId, kind) {
|
|
@@ -408,12 +498,21 @@ function driveButton(a) {
|
|
|
408
498
|
function specButtons(a) {
|
|
409
499
|
if (!a.specDocs) return '';
|
|
410
500
|
return `<span class="doc-buttons spec-buttons" title="For reviewers, people and agents: what was asked, what done means, and the plan. Push & open PR puts them in the description">${Object.entries(SPEC_KINDS)
|
|
411
|
-
.filter(([k]) => k
|
|
501
|
+
.filter(([k]) => (k === 'designdoc' ? a.designDoc : k === 'benchmark' ? a.benchmarks : true) || a.specDocs[k])
|
|
412
502
|
.map(([k, label]) => {
|
|
413
503
|
const at = a.specDocs[k] ?? (k === 'plan' ? a.planReview?.updatedAt : null);
|
|
414
|
-
return `<button class="small doc-btn ${at ? 'has' : ''}" data-doc="${k}" title="${at ? `Open ${label} (updated ${ago(at)})` : k === 'intent' ? 'Written when the agent is created' : k
|
|
504
|
+
return `<button class="small doc-btn ${at ? 'has' : ''}" data-doc="${k}" title="${at ? `Open ${label} (updated ${ago(at)})` : k === 'intent' ? 'Written when the agent is created' : SPEC_PENDING[k] ?? `The agent writes it ${k === 'spec' ? 'before changing code' : 'and keeps it current'}`}">${label}${at ? ' ✓' : ''}</button>`;
|
|
415
505
|
})
|
|
416
|
-
.join('')}</span>`;
|
|
506
|
+
.join('')}${demoButton(a)}</span>`;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/** The sample demo page: opens in its own tab, sandboxed. */
|
|
510
|
+
function demoButton(a) {
|
|
511
|
+
if (!a.demoPage && !a.specDocs.demo) return '';
|
|
512
|
+
const at = a.specDocs.demo;
|
|
513
|
+
return at
|
|
514
|
+
? `<a class="small doc-btn has" href="/api/agents/${a.id}/demo" target="_blank" rel="noopener" title="Open the demo page (updated ${ago(at)}); the published copy is linked in the brief">Demo page ↗</a>`
|
|
515
|
+
: '<button class="small doc-btn" disabled title="The agent makes it once the change works and publishes it as an Artifact">Demo page</button>';
|
|
417
516
|
}
|
|
418
517
|
|
|
419
518
|
let docView = null; // { agentId, kind }
|
|
@@ -435,7 +534,7 @@ function renderDocDialog() {
|
|
|
435
534
|
} else if (d?.error) body.innerHTML = `<p class="error">Couldn't write it: ${esc(d.error)}</p>`;
|
|
436
535
|
else if (plan && !d?.markdown) body.innerHTML = '<p class="hint">The agent is investigating and hasn\'t written its plan yet. You\'ll see it here (and in the inbox) when it has.</p>';
|
|
437
536
|
else if (specKind && !d?.loaded) body.innerHTML = '<p class="hint">Loading…</p>';
|
|
438
|
-
else if (specKind && !d?.markdown) body.innerHTML = `<p class="hint">${docView.kind === 'intent' ? 'No intent file for this agent (agents created before 1.9 have none).' : `The agent hasn't written its ${label.toLowerCase()} yet. It writes ${docView.kind === 'spec' ? 'the spec before changing code' : docView.kind === 'designdoc' ? 'the design doc once its plan is settled and publishes it as an Artifact' : 'the plan and keeps it current'}.`}</p>`;
|
|
537
|
+
else if (specKind && !d?.markdown) body.innerHTML = `<p class="hint">${docView.kind === 'intent' ? 'No intent file for this agent (agents created before 1.9 have none).' : `The agent hasn't written its ${label.toLowerCase()} yet. It writes ${docView.kind === 'spec' ? 'the spec before changing code' : docView.kind === 'designdoc' ? 'the design doc once its plan is settled and publishes it as an Artifact' : docView.kind === 'benchmark' ? 'the benchmark results once the change works' : 'the plan and keeps it current'}.`}</p>`;
|
|
439
538
|
else if (d?.markdown) {
|
|
440
539
|
// The scorecard's Improve button follows the agent being improved.
|
|
441
540
|
const version = docView.kind === 'scorecard' ? `${d.at}:${Boolean(a.improving)}` : d.at;
|
|
@@ -2095,6 +2194,8 @@ const VIEWS = {
|
|
|
2095
2194
|
doc: () => renderDocDialog(),
|
|
2096
2195
|
detail: () => renderDetail(),
|
|
2097
2196
|
overlay: () => term.syncOverlay(),
|
|
2197
|
+
watch: () => watchUi?.render(),
|
|
2198
|
+
standup: () => standupUi?.render(),
|
|
2098
2199
|
};
|
|
2099
2200
|
const ALL_VIEWS = Object.keys(VIEWS);
|
|
2100
2201
|
|
|
@@ -3814,6 +3915,10 @@ $('#new-form').addEventListener('submit', async (e) => {
|
|
|
3814
3915
|
plan: Boolean(f.get('plan')),
|
|
3815
3916
|
planReview: Boolean(f.get('planReview')),
|
|
3816
3917
|
designDoc: Boolean(f.get('designDoc')),
|
|
3918
|
+
demoPage: Boolean(f.get('demoPage')),
|
|
3919
|
+
benchmarks: Boolean(f.get('benchmarks')),
|
|
3920
|
+
demoPage: Boolean(f.get('demoPage')),
|
|
3921
|
+
benchmarks: Boolean(f.get('benchmarks')),
|
|
3817
3922
|
priority: Number(f.get('priority')),
|
|
3818
3923
|
});
|
|
3819
3924
|
dialog.close();
|
|
@@ -3993,6 +4098,19 @@ function handleEvent(msg) {
|
|
|
3993
4098
|
else if (agents.get(selectedId).runtime.running) term.open(selectedId);
|
|
3994
4099
|
}
|
|
3995
4100
|
openTermOnLoad = false;
|
|
4101
|
+
if (mapOnLoad && !watchShown) {
|
|
4102
|
+
watchShown = true;
|
|
4103
|
+
mapUi.show(true);
|
|
4104
|
+
}
|
|
4105
|
+
if (standupOnLoad && !watchShown) {
|
|
4106
|
+
watchShown = true;
|
|
4107
|
+
history.replaceState(null, '', '#');
|
|
4108
|
+
standupUi.open();
|
|
4109
|
+
}
|
|
4110
|
+
if (watchOnLoad && !watchUi.isOpen() && !watchShown) {
|
|
4111
|
+
watchShown = true;
|
|
4112
|
+
watchUi.show(true);
|
|
4113
|
+
}
|
|
3996
4114
|
} else if (msg.t === 'agent') {
|
|
3997
4115
|
const id = msg.agent.id;
|
|
3998
4116
|
agents.set(id, msg.agent);
|
|
@@ -4002,6 +4120,8 @@ function handleEvent(msg) {
|
|
|
4002
4120
|
// The detail, terminal and document views show one agent; another agent's update leaves them be.
|
|
4003
4121
|
return invalidate([
|
|
4004
4122
|
'list', 'backlog', 'land', 'inbox', 'race', 'team',
|
|
4123
|
+
...(watchUi.isOpen() ? ['watch'] : []),
|
|
4124
|
+
...(standupUi.isOpen() ? ['standup'] : []),
|
|
4005
4125
|
...(docView?.agentId === id ? ['doc'] : []),
|
|
4006
4126
|
...(id === selectedId || msg.agent.forkOf?.agentId === selectedId ? ['detail'] : []),
|
|
4007
4127
|
...(id === term.agentId ? ['overlay'] : []),
|
|
@@ -4017,6 +4137,9 @@ function handleEvent(msg) {
|
|
|
4017
4137
|
teams.set(msg.team.id, msg.team);
|
|
4018
4138
|
} else if (msg.t === 'team-removed') {
|
|
4019
4139
|
teams.delete(msg.id);
|
|
4140
|
+
} else if (msg.t === 'standup') {
|
|
4141
|
+
standupUi.set(msg.latest);
|
|
4142
|
+
if (msg.latest?.reason === 'scheduled' && msg.latest.items.length) toast('Standup ready: press Standup (or p) to play it', 8000);
|
|
4020
4143
|
} else if (msg.t === 'rules') {
|
|
4021
4144
|
rulesState = msg.rules;
|
|
4022
4145
|
} else if (msg.t === 'repeats') {
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
// Map: a repository's folders as tiles sized by their files, with each agent as a badge on the
|
|
2
|
+
// folders it is changing (solid) or reading (ring) now. A red line joins two agents that changed
|
|
3
|
+
// the same file; a dashed one runs from an agent reading a file to the agent that changed it.
|
|
4
|
+
|
|
5
|
+
const SAVED = 'agentmgr.mapProject';
|
|
6
|
+
const EVERY_MS = 8000;
|
|
7
|
+
|
|
8
|
+
const hue = (id) => [...String(id)].reduce((h, c) => (h * 31 + c.charCodeAt(0)) % 360, 17);
|
|
9
|
+
const initials = (name) => String(name).split(/[^a-z0-9]+/i).filter(Boolean).slice(0, 2).map((w) => w[0].toUpperCase()).join('') || '?';
|
|
10
|
+
|
|
11
|
+
/** Squarified treemap: items [{ weight }] into the rectangle, as [{ x, y, w, h, item }]. */
|
|
12
|
+
export function squarify(items, x, y, w, h) {
|
|
13
|
+
const total = items.reduce((s, i) => s + i.weight, 0);
|
|
14
|
+
if (!items.length || total <= 0 || w <= 0 || h <= 0) return [];
|
|
15
|
+
const scale = (w * h) / total;
|
|
16
|
+
const out = [];
|
|
17
|
+
let rest = items.map((item) => ({ item, area: item.weight * scale }));
|
|
18
|
+
const worst = (row, side) => {
|
|
19
|
+
const s = row.reduce((a, r) => a + r.area, 0);
|
|
20
|
+
const max = Math.max(...row.map((r) => r.area));
|
|
21
|
+
const min = Math.min(...row.map((r) => r.area));
|
|
22
|
+
return Math.max((side * side * max) / (s * s), (s * s) / (side * side * min));
|
|
23
|
+
};
|
|
24
|
+
while (rest.length) {
|
|
25
|
+
const side = Math.min(w, h);
|
|
26
|
+
let row = [rest[0]];
|
|
27
|
+
let i = 1;
|
|
28
|
+
while (i < rest.length && worst([...row, rest[i]], side) <= worst(row, side)) row.push(rest[i++]);
|
|
29
|
+
rest = rest.slice(i);
|
|
30
|
+
const s = row.reduce((a, r) => a + r.area, 0);
|
|
31
|
+
if (w >= h) {
|
|
32
|
+
const rw = s / h;
|
|
33
|
+
let yy = y;
|
|
34
|
+
for (const r of row) {
|
|
35
|
+
const rh = r.area / rw;
|
|
36
|
+
out.push({ x, y: yy, w: rw, h: rh, item: r.item });
|
|
37
|
+
yy += rh;
|
|
38
|
+
}
|
|
39
|
+
x += rw;
|
|
40
|
+
w -= rw;
|
|
41
|
+
} else {
|
|
42
|
+
const rh = s / w;
|
|
43
|
+
let xx = x;
|
|
44
|
+
for (const r of row) {
|
|
45
|
+
const rw = r.area / rh;
|
|
46
|
+
out.push({ x: xx, y, w: rw, h: rh, item: r.item });
|
|
47
|
+
xx += rw;
|
|
48
|
+
}
|
|
49
|
+
y += rh;
|
|
50
|
+
h -= rh;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return out;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function initCodeMap({ api, $, esc, agents, openAgent, toast }) {
|
|
57
|
+
const view = $('#map-view');
|
|
58
|
+
let open = false;
|
|
59
|
+
let data = null;
|
|
60
|
+
let timer = null;
|
|
61
|
+
let project = null;
|
|
62
|
+
try {
|
|
63
|
+
project = localStorage.getItem(SAVED) || null;
|
|
64
|
+
} catch {}
|
|
65
|
+
|
|
66
|
+
const nameOf = (id) => data?.map.agents.find((a) => a.id === id)?.name ?? agents.get(id)?.name ?? id;
|
|
67
|
+
const color = (id) => `hsl(${hue(id)} 70% 55%)`;
|
|
68
|
+
|
|
69
|
+
async function load() {
|
|
70
|
+
try {
|
|
71
|
+
data = await api('GET', `/codemap${project ? `?project=${encodeURIComponent(project)}` : ''}`);
|
|
72
|
+
if (data.project && data.project.key !== project) project = data.project.key;
|
|
73
|
+
} catch (e) {
|
|
74
|
+
toast?.(e.message, 5000);
|
|
75
|
+
}
|
|
76
|
+
draw();
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function sentence(l) {
|
|
80
|
+
const a = `<button class="link" data-map-open="${esc(l.a)}">${esc(nameOf(l.a))}</button>`;
|
|
81
|
+
const b = `<button class="link" data-map-open="${esc(l.b)}">${esc(nameOf(l.b))}</button>`;
|
|
82
|
+
const files = l.files.slice(0, 3).map((f) => `<code>${esc(f)}</code>`).join(', ') + (l.files.length > 3 ? ` and ${l.files.length - 3} more` : '');
|
|
83
|
+
if (l.kind === 'collide') return `<li class="collide">${a} and ${b} both changed ${files}: they will conflict when merged.</li>`;
|
|
84
|
+
if (l.kind === 'heading') return `<li class="heading">${a} is reading ${files}, which ${b} changed: heading for the same code.</li>`;
|
|
85
|
+
return '';
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function draw() {
|
|
89
|
+
if (!open) return;
|
|
90
|
+
const m = data?.map;
|
|
91
|
+
const projects = data?.projects ?? [];
|
|
92
|
+
$('#map-bar').innerHTML = `
|
|
93
|
+
<b>Map</b>
|
|
94
|
+
${projects.length ? `<select data-map-set="project" aria-label="Project">${projects.map((p) => `<option value="${esc(p.key)}" ${p.key === data?.project?.key ? 'selected' : ''}>${esc(p.name)} (${p.running} running)</option>`).join('')}</select>` : ''}
|
|
95
|
+
<span class="map-legend"><span class="map-key solid"></span>changing <span class="map-key ring"></span>reading <span class="map-key red"></span>same file changed <span class="map-key dash"></span>reading what another changed</span>
|
|
96
|
+
<span class="spacer"></span>
|
|
97
|
+
<button class="small" data-map="refresh" title="Look again now (it refreshes every few seconds)">↻</button>
|
|
98
|
+
<button class="small" data-map="close" title="Back (Esc)">Close</button>`;
|
|
99
|
+
const warn = (m?.links ?? []).filter((l) => l.kind !== 'near');
|
|
100
|
+
$('#map-warn').innerHTML = warn.length ? `<ul>${warn.map(sentence).join('')}</ul>` : m?.agents.length ? '<p class="hint">No agents are on the same code.</p>' : '';
|
|
101
|
+
const box = $('#map-box');
|
|
102
|
+
if (!m || !m.agents.length) {
|
|
103
|
+
box.innerHTML = `<p class="hint map-empty">${data?.project ? 'No agent in this project is running or has changes yet.' : 'No agents with a repository yet.'}</p>`;
|
|
104
|
+
$('#map-agents').innerHTML = '';
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
// Folders with agents in them get room to show their badges.
|
|
108
|
+
const items = m.modules.map((mod) => ({ ...mod, weight: Math.max(1, mod.files) + (mod.agents.length ? 6 + 4 * mod.agents.length : 0) }));
|
|
109
|
+
const W = box.clientWidth;
|
|
110
|
+
const H = Math.max(320, view.clientHeight - box.offsetTop - $('#map-agents').offsetHeight - 24);
|
|
111
|
+
box.style.height = `${H}px`;
|
|
112
|
+
// Small folders past the first hundred go into one tile.
|
|
113
|
+
const big = items.slice(0, 100);
|
|
114
|
+
const rest = items.slice(100);
|
|
115
|
+
if (rest.length) big.push({ key: `${rest.length} more folders`, files: rest.reduce((s, x) => s + x.files, 0), agents: rest.flatMap((x) => x.agents), weight: rest.reduce((s, x) => s + x.weight, 0), more: true });
|
|
116
|
+
const rects = squarify(big, 0, 0, W, H);
|
|
117
|
+
// Agents in a collision get a red ring, ones heading for one a yellow ring.
|
|
118
|
+
const ring = new Map();
|
|
119
|
+
for (const l of m.links) {
|
|
120
|
+
if (l.kind === 'collide') for (const id of [l.a, l.b]) ring.set(id, 'collide');
|
|
121
|
+
if (l.kind === 'heading' && ring.get(l.a) !== 'collide') ring.set(l.a, 'heading');
|
|
122
|
+
}
|
|
123
|
+
const tiles = rects.map(({ x, y, w, h, item }) => {
|
|
124
|
+
const busy = item.agents.length;
|
|
125
|
+
const badges = item.agents.map((x2) => {
|
|
126
|
+
const a = m.agents.find((z) => z.id === x2.id);
|
|
127
|
+
const cls = [x2.changed ? 'solid' : 'ring', a?.busy ? 'busy' : '', a?.attention ? 'needs' : '', ring.get(x2.id) ?? ''].join(' ');
|
|
128
|
+
return `<span class="map-badge ${cls}" data-badge="${esc(x2.id)}" data-mod="${esc(item.key)}" style="--c:${color(x2.id)}" title="${esc(`${nameOf(x2.id)}: ${x2.changed} changed, ${x2.reading} reading here`)}">${esc(initials(nameOf(x2.id)))}</span>`;
|
|
129
|
+
}).join('');
|
|
130
|
+
return `<div class="map-tile ${busy ? 'active' : ''} ${item.more ? 'more' : ''}" style="left:${x}px;top:${y}px;width:${w}px;height:${h}px" title="${esc(`${item.key}: ${item.files} files`)}">
|
|
131
|
+
${w > 46 && h > 22 ? `<span class="map-name">${esc(item.key === '.' ? '(top level)' : item.key)}</span>` : ''}
|
|
132
|
+
${w > 46 && h > 38 ? `<span class="map-count">${item.files}</span>` : ''}
|
|
133
|
+
<span class="map-badges">${badges}</span>
|
|
134
|
+
</div>`;
|
|
135
|
+
}).join('');
|
|
136
|
+
box.innerHTML = `${tiles}<svg class="map-links" width="${W}" height="${H}"></svg>`;
|
|
137
|
+
drawLinks(m.links);
|
|
138
|
+
$('#map-agents').innerHTML = m.agents.map((a) => `<button class="map-agent" data-map-open="${esc(a.id)}" style="--c:${color(a.id)}"><span class="map-badge solid ${a.busy ? 'busy' : ''} ${a.attention ? 'needs' : ''}" style="--c:${color(a.id)}">${esc(initials(a.name))}</span>${esc(a.name)} <span class="hint">${a.changed} changed · ${a.reading} reading</span></button>`).join('');
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/** Lines between badges: in the folder of the first shared file, else their nearest badges. */
|
|
142
|
+
function drawLinks(links) {
|
|
143
|
+
const box = $('#map-box');
|
|
144
|
+
const svg = box.querySelector('svg');
|
|
145
|
+
const origin = box.getBoundingClientRect();
|
|
146
|
+
const center = (el) => {
|
|
147
|
+
const r = el.getBoundingClientRect();
|
|
148
|
+
return [r.left - origin.left + r.width / 2, r.top - origin.top + r.height / 2];
|
|
149
|
+
};
|
|
150
|
+
const badges = (id) => [...box.querySelectorAll(`[data-badge="${CSS.escape(id)}"]`)];
|
|
151
|
+
const lines = [];
|
|
152
|
+
for (const l of links.filter((x) => x.kind !== 'near')) {
|
|
153
|
+
const A = badges(l.a);
|
|
154
|
+
const B = badges(l.b);
|
|
155
|
+
if (!A.length || !B.length) continue;
|
|
156
|
+
let best = null;
|
|
157
|
+
for (const p of A) for (const q of B) {
|
|
158
|
+
const [x1, y1] = center(p);
|
|
159
|
+
const [x2, y2] = center(q);
|
|
160
|
+
const d = Math.hypot(x2 - x1, y2 - y1) - (p.dataset.mod === q.dataset.mod ? 1e6 : 0);
|
|
161
|
+
if (!best || d < best.d) best = { d, x1, y1, x2, y2 };
|
|
162
|
+
}
|
|
163
|
+
lines.push(`<line class="${l.kind}" x1="${best.x1}" y1="${best.y1}" x2="${best.x2}" y2="${best.y2}"><title>${esc(l.files.join(', '))}</title></line>`);
|
|
164
|
+
}
|
|
165
|
+
svg.innerHTML = lines.join('');
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function show(on) {
|
|
169
|
+
open = on;
|
|
170
|
+
view.hidden = !on;
|
|
171
|
+
document.body.classList.toggle('mapping', on);
|
|
172
|
+
$('#map-btn')?.classList.toggle('active', on);
|
|
173
|
+
clearInterval(timer);
|
|
174
|
+
if (on) {
|
|
175
|
+
history.replaceState(null, '', '#map');
|
|
176
|
+
load();
|
|
177
|
+
timer = setInterval(() => document.visibilityState === 'visible' && load(), EVERY_MS);
|
|
178
|
+
} else if (location.hash === '#map') history.replaceState(null, '', '#');
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
view.addEventListener('click', (e) => {
|
|
182
|
+
const o = e.target.closest('[data-map-open]');
|
|
183
|
+
if (o) {
|
|
184
|
+
show(false);
|
|
185
|
+
return openAgent(o.dataset.mapOpen);
|
|
186
|
+
}
|
|
187
|
+
const b = e.target.closest('[data-map]');
|
|
188
|
+
if (b?.dataset.map === 'close') return show(false);
|
|
189
|
+
if (b?.dataset.map === 'refresh') return load();
|
|
190
|
+
});
|
|
191
|
+
view.addEventListener('change', (e) => {
|
|
192
|
+
if (e.target.dataset.mapSet !== 'project') return;
|
|
193
|
+
project = e.target.value;
|
|
194
|
+
try {
|
|
195
|
+
localStorage.setItem(SAVED, project);
|
|
196
|
+
} catch {}
|
|
197
|
+
load();
|
|
198
|
+
});
|
|
199
|
+
document.addEventListener('keydown', (e) => {
|
|
200
|
+
if (open && e.key === 'Escape' && !document.querySelector('dialog[open]')) show(false);
|
|
201
|
+
});
|
|
202
|
+
let resizeTimer = null;
|
|
203
|
+
window.addEventListener('resize', () => {
|
|
204
|
+
clearTimeout(resizeTimer);
|
|
205
|
+
resizeTimer = setTimeout(draw, 100);
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
return { show, isOpen: () => open };
|
|
209
|
+
}
|
package/public/index.html
CHANGED
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
<input id="filter" type="search" placeholder="Filter agents" aria-label="Filter agents" />
|
|
32
32
|
<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>
|
|
33
33
|
<button id="spend-btn" title="Results across agents (merge rate, time to PR, cost per merged PR), what they cost, and spending limits">Results <span id="spend-today" class="spend-today"></span></button>
|
|
34
|
+
<button id="standup-btn" title="Today's standup: each agent's news read aloud, and what they need from you">Standup <span id="standup-dot" class="assistant-dot" hidden></span></button>
|
|
35
|
+
<button id="map-btn" title="The codebase map: where each agent is changing and reading code, and who is about to collide">Map</button>
|
|
36
|
+
<button id="watch-btn" title="Running agents' sessions side by side, live: follow them all without clicking from one to the next">Watch</button>
|
|
34
37
|
<button id="machine-btn" title="A terminal on this computer (your home folder), from any device you're signed in on">Terminal</button>
|
|
35
38
|
<button id="ask-btn" title="A general session with no repo or folder, on Claude Code or another engine you have (Codex, Muse Code, …)">Ask Agent</button>
|
|
36
39
|
<button id="new-btn" class="primary">+ New agents</button>
|
|
@@ -52,12 +55,24 @@
|
|
|
52
55
|
<div class="menu-sep"></div>
|
|
53
56
|
<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>
|
|
54
57
|
<div class="menu-sep"></div>
|
|
58
|
+
<button role="menuitem" id="keys-btn" title="Quick actions from the keyboard">Keyboard shortcuts… <kbd>?</kbd></button>
|
|
55
59
|
<button role="menuitem" id="menu-about">About and updates…</button>
|
|
56
60
|
</div>
|
|
57
61
|
</div>
|
|
58
62
|
</div>
|
|
59
63
|
</header>
|
|
60
64
|
|
|
65
|
+
<section id="map-view" class="map-view" hidden aria-label="Map: where agents are in the code">
|
|
66
|
+
<div id="map-bar" class="watch-bar"></div>
|
|
67
|
+
<div id="map-warn" class="map-warn"></div>
|
|
68
|
+
<div id="map-box" class="map-box"></div>
|
|
69
|
+
<div id="map-agents" class="map-agents"></div>
|
|
70
|
+
</section>
|
|
71
|
+
<section id="watch-view" class="watch-view" hidden aria-label="Watch: agents' sessions side by side">
|
|
72
|
+
<div id="watch-bar" class="watch-bar"></div>
|
|
73
|
+
<p id="watch-empty" class="hint watch-empty" hidden></p>
|
|
74
|
+
<div id="watch-grid" class="watch-grid"></div>
|
|
75
|
+
</section>
|
|
61
76
|
<main class="layout">
|
|
62
77
|
<aside class="sidebar">
|
|
63
78
|
<div class="side-tabs" role="tablist">
|
|
@@ -273,6 +288,14 @@
|
|
|
273
288
|
<input type="checkbox" name="designDoc" checked />
|
|
274
289
|
Design doc <span class="hint">(after the plan: architecture, design and data flow, viewable here and published as an Artifact; updated when done)</span>
|
|
275
290
|
</label>
|
|
291
|
+
<label class="check">
|
|
292
|
+
<input type="checkbox" name="demoPage" />
|
|
293
|
+
Demo page <span class="hint">(once it works: a sample page showing the change with real inputs and outputs, viewable here and published as an Artifact)</span>
|
|
294
|
+
</label>
|
|
295
|
+
<label class="check">
|
|
296
|
+
<input type="checkbox" name="benchmarks" />
|
|
297
|
+
Micro benchmarks <span class="hint">(the changed code timed before and after, results in a table)</span>
|
|
298
|
+
</label>
|
|
276
299
|
<div class="row when">
|
|
277
300
|
<label class="check"><input type="radio" name="when" value="now" checked /> Start now</label>
|
|
278
301
|
<label class="check"><input type="radio" name="when" value="backlog" /> Queue in backlog</label>
|
|
@@ -353,6 +376,9 @@
|
|
|
353
376
|
</form>
|
|
354
377
|
</dialog>
|
|
355
378
|
|
|
379
|
+
<dialog id="standup-dialog" class="standup-dialog" aria-label="Standup">
|
|
380
|
+
<div id="standup-body"></div>
|
|
381
|
+
</dialog>
|
|
356
382
|
<dialog id="ask-dialog">
|
|
357
383
|
<form id="ask-form" method="dialog">
|
|
358
384
|
<h2>Ask an agent</h2>
|
|
@@ -503,6 +529,7 @@
|
|
|
503
529
|
<label class="check"><input type="checkbox" name="ev_question" /> asks a question in the inbox</label>
|
|
504
530
|
<label class="check"><input type="checkbox" name="ev_assistant" /> is started for new work (by the assistant, a GitHub label or a webhook)</label>
|
|
505
531
|
<label class="check"><input type="checkbox" name="ev_budget" /> nears or reaches its budget, or today's spend reaches the daily limit</label>
|
|
532
|
+
<label class="check"><input type="checkbox" name="ev_standup" /> the daily standup is ready (with a link to play it)</label>
|
|
506
533
|
<label class="check"><input type="checkbox" name="ev_waiting" /> finished its turn and is idle after <input name="waitingDelaySec" type="number" min="0" class="num" />s</label>
|
|
507
534
|
<label class="check"><input type="checkbox" name="skipWhenWatching" /> not while I have its terminal open</label>
|
|
508
535
|
<label class="check"><input type="checkbox" name="includeIntent" /> include the intent text in the message</label>
|