ai-agentmanager 1.25.0 → 1.25.1

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.25.1 (2026-11-06)
4
+
5
+ - **Jira and Actions lists: bigger.** Drag the corner to any size, or fill the window with ⤢ (or `f`); it's remembered. Filled, an issue's summary and synopsis show in full.
6
+ - **Fixed: choosing an action with the mouse didn't stick.** The list redraws every few seconds while agents work, which threw away an open dropdown before you chose; it now waits until you've picked.
7
+ - **Fixed: a key could act on the wrong issue.** Clicking a row now selects it for the keys, a key pressed in a row's dropdown acts on that row, and when the selected issue leaves the list (skipped, removed) the one now in its place is selected instead of the top one.
8
+ - **The Jira summary on every row**: an agent's issue shows its summary and synopsis from your assigned-issues search too, and messages name issues by summary.
9
+
3
10
  ## 1.25.0 (2026-11-06)
4
11
 
5
12
  - **Actions: what's asked of you in Slack and in meeting notes, in one list.** The assistant reads your Slack messages and mentions and your meetings' Notes by Gemini on its checks, and lists what's asked of you (or what you agreed to do) with who asked, where (a link), when and any due date. Decide on each on the left (assign to an agent, skip, done, remove), kept across restarts and changeable any time; **Discuss** talks one through with Claude in a session of its own, which suggests what to do and drafts any reply, but never sends anything. Turn it on under Assistant (on by default for new and existing setups); `agentmgr actions` lists them.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-agentmanager",
3
- "version": "1.25.0",
3
+ "version": "1.25.1",
4
4
  "description": "Run background coding agents (Claude Code, Codex) per intent, and keep track of them from a web UI, your phone or the CLI",
5
5
  "keywords": [
6
6
  "claude",
package/public/actions.js CHANGED
@@ -3,7 +3,8 @@
3
3
  // (assign to an agent, skip, done, remove) is kept by the daemon and can be changed any time;
4
4
  // Discuss talks one through with Claude in a session of its own.
5
5
 
6
- import { rowKeys } from './rowkeys.js';
6
+ import { holdWhilePicking, rowKeys } from './rowkeys.js';
7
+ import { expandButton, expandable } from './expand.js';
7
8
 
8
9
  const SAVED = 'agentmgr.actionsFilter';
9
10
  const PROJECT = 'agentmgr.actionsProject';
@@ -73,7 +74,7 @@ export function initActions({ api, $, esc, ago, toast, openAgent, projects = ()
73
74
  </tr>`;
74
75
  }
75
76
 
76
- function render() {
77
+ function draw() {
77
78
  if (!dialog.open) return;
78
79
  if (!data) {
79
80
  body.innerHTML = '<p class="hint">Loading…</p>';
@@ -95,9 +96,10 @@ export function initActions({ api, $, esc, ago, toast, openAgent, projects = ()
95
96
  ${list.map((p) => `<option value="${esc(p.key)}" ${p.key === project ? 'selected' : ''}>${esc(p.name ?? p.key)}</option>`).join('')}
96
97
  </select></label>
97
98
  <button class="small" data-act="refresh" title="Look again (r)">↻</button>
99
+ ${expandButton(dialog)}
98
100
  <button class="small" data-act="close" title="Close (Esc)">Close</button>
99
101
  </div>
100
- <p class="hint">What's asked of you in ${esc(from || 'Slack and meeting notes')}, found by the assistant on its checks. Decide on the left; <b>Discuss</b> talks one through with Claude. Keys: j/k move, a assign, s skip, d done, x remove, o open again, c discuss, Enter opens the source.</p>
102
+ <p class="hint">What's asked of you in ${esc(from || 'Slack and meeting notes')}, found by the assistant on its checks. Decide on the left; <b>Discuss</b> talks one through with Claude. Keys: j/k move, a assign, s skip, d done, x remove, o open again, c discuss, Enter opens the source, f bigger.</p>
101
103
  ${rows.length
102
104
  ? `<div class="issues-scroll"><table class="issues actions-table">
103
105
  <thead><tr><th class="issue-action">Decision</th><th>Action</th><th></th></tr></thead>
@@ -112,6 +114,8 @@ export function initActions({ api, $, esc, ago, toast, openAgent, projects = ()
112
114
  )}</p>`}`;
113
115
  keys.redraw();
114
116
  }
117
+ const render = holdWhilePicking(body, draw);
118
+ expandable(dialog, draw);
115
119
 
116
120
  async function set(ids, state) {
117
121
  if (busy) return;
@@ -156,7 +160,10 @@ export function initActions({ api, $, esc, ago, toast, openAgent, projects = ()
156
160
 
157
161
  body.addEventListener('change', (e) => {
158
162
  const id = e.target.dataset.actState;
159
- if (id) return set([id], e.target.value);
163
+ if (id) {
164
+ e.target.blur();
165
+ return set([id], e.target.value);
166
+ }
160
167
  if (e.target.dataset.actProject !== undefined) {
161
168
  project = e.target.value;
162
169
  try {
@@ -0,0 +1,36 @@
1
+ // Making a list dialog (Jira, Actions) bigger: a button in its header, or f, fills the window,
2
+ // remembered per list. The dialog's corner can also be dragged to any size.
3
+
4
+ const saved = (id) => `agentmgr.expanded.${id}`;
5
+
6
+ /** The header button; `dialog` tells which way it points. */
7
+ export function expandButton(dialog) {
8
+ const on = dialog.classList.contains('expanded');
9
+ return `<button class="small" data-expand title="${on ? 'Back to normal size' : 'Fill the window'} (f)" aria-pressed="${on}">${on ? '⤡' : '⤢'}</button>`;
10
+ }
11
+
12
+ /** Wire the button and the f key; `redraw()` draws the header again with the button turned. */
13
+ export function expandable(dialog, redraw) {
14
+ try {
15
+ dialog.classList.toggle('expanded', localStorage.getItem(saved(dialog.id)) === '1');
16
+ } catch {}
17
+ const toggle = () => {
18
+ const on = dialog.classList.toggle('expanded');
19
+ // A size dragged by hand gives way to the button.
20
+ dialog.style.width = '';
21
+ dialog.style.height = '';
22
+ try {
23
+ localStorage.setItem(saved(dialog.id), on ? '1' : '0');
24
+ } catch {}
25
+ redraw();
26
+ };
27
+ dialog.addEventListener('click', (e) => {
28
+ if (e.target.closest('[data-expand]')) toggle();
29
+ });
30
+ dialog.addEventListener('keydown', (e) => {
31
+ if (e.key !== 'f' || e.defaultPrevented || e.metaKey || e.ctrlKey || e.altKey) return;
32
+ if (e.target.closest?.('input:not([type="checkbox"]), textarea, [contenteditable=""], [contenteditable="true"]')) return;
33
+ e.preventDefault();
34
+ toggle();
35
+ });
36
+ }
package/public/issues.js CHANGED
@@ -5,7 +5,8 @@
5
5
  // remove), kept by the daemon across restarts and updates, and changeable any time.
6
6
 
7
7
  import { listenHtml } from './speak.js';
8
- import { rowKeys } from './rowkeys.js';
8
+ import { holdWhilePicking, rowKeys } from './rowkeys.js';
9
+ import { expandButton, expandable } from './expand.js';
9
10
 
10
11
  const SAVED = 'agentmgr.issuesFilter';
11
12
  const FILTERS = [
@@ -76,7 +77,8 @@ export function initIssues({ api, $, esc, ago, openAgent, openDoc, toast }) {
76
77
  }
77
78
 
78
79
  function aboutIssue(r) {
79
- return `${r.title ? `<div class="issue-title">${esc(r.title)}</div>` : ''}${r.synopsis ? `<div class="issue-synopsis" title="${esc(r.synopsis)}">${esc(r.synopsis)}</div>` : ''}`;
80
+ const missing = data?.jira?.signedIn ? 'Summary not fetched from Jira yet' : 'Summary shows once your Jira site, email and API token are in Settings → Jira';
81
+ return `${r.title ? `<div class="issue-title">${esc(r.title)}</div>` : `<div class="hint issue-title">${esc(missing)}</div>`}${r.synopsis ? `<div class="issue-synopsis" title="${esc(r.synopsis)}">${esc(r.synopsis)}</div>` : ''}`;
80
82
  }
81
83
 
82
84
  function row(r, boxes) {
@@ -125,7 +127,7 @@ export function initIssues({ api, $, esc, ago, openAgent, openDoc, toast }) {
125
127
  </tr>`;
126
128
  }
127
129
 
128
- function render() {
130
+ function draw() {
129
131
  if (!dialog.open) return;
130
132
  if (!data) {
131
133
  body.innerHTML = '<p class="hint">Loading…</p>';
@@ -159,6 +161,7 @@ export function initIssues({ api, $, esc, ago, openAgent, openDoc, toast }) {
159
161
  <span class="spacer"></span>
160
162
  <button class="small" data-issues="copy" title="Copy this list as a Markdown table, to paste into Slack, Jira or a doc" ${rows.length ? '' : 'disabled'}>Copy</button>
161
163
  <button class="small" data-issues="refresh" title="Look again now">↻</button>
164
+ ${expandButton(dialog)}
162
165
  <button class="small" data-issues="close" title="Close (Esc)">Close</button>
163
166
  </div>
164
167
  ${boxes
@@ -175,10 +178,12 @@ export function initIssues({ api, $, esc, ago, openAgent, openDoc, toast }) {
175
178
  <tbody>${rows.map((r) => row(r, boxes)).join('')}</tbody>
176
179
  </table></div>`
177
180
  : `<p class="hint issues-empty">${esc(empty)}</p>`}
178
- ${rows.length ? '<p class="hint">Keys: j/k move, a assign, s skip, d done, x remove, o clear, Enter opens the issue, [ ] filters.</p>' : ''}
181
+ ${rows.length ? '<p class="hint">Keys: j/k move (or click a row), a assign, s skip, d done, x remove, o clear, Enter opens the issue, [ ] filters, f bigger.</p>' : ''}
179
182
  ${data.jira.signedIn || !data.rows.length ? '' : '<p class="hint">Jira status shows for public issues only, and the issues assigned to you aren\'t listed, until you add your Jira site, email and API token in Settings → Jira.</p>'}`;
180
183
  keys.redraw();
181
184
  }
185
+ const render = holdWhilePicking(body, draw);
186
+ expandable(dialog, draw);
182
187
 
183
188
  /** Set your action on issues; assign starts the agents of ones not started yet. */
184
189
  async function setAction(keys, action) {
@@ -187,7 +192,11 @@ export function initIssues({ api, $, esc, ago, openAgent, openDoc, toast }) {
187
192
  for (const k of r.set) ticked.delete(k);
188
193
  const bad = r.failed.map((x) => `${x.key}: ${x.reason}`).join('; ');
189
194
  const label = ACTIONS.find(([v]) => v === action)?.[1] ?? 'Cleared';
190
- const what = r.started.length ? `Started ${r.started.map((x) => `${x.key} (${x.agent.name})`).join(', ')}` : r.set.length ? `${r.set.join(', ')}: ${label}` : 'Nothing changed';
195
+ const named = (k) => {
196
+ const t = data?.rows.find((x) => x.key === k)?.title;
197
+ return t ? `${k} (${t.length > 60 ? `${t.slice(0, 59)}…` : t})` : k;
198
+ };
199
+ const what = r.started.length ? `Started ${r.started.map((x) => named(x.key)).join(', ')}` : r.set.length ? `${r.set.map(named).join(', ')}: ${label}` : 'Nothing changed';
191
200
  toast?.(`${what}${bad ? `. Not changed: ${bad}` : ''}`, bad ? 8000 : 3000);
192
201
  } catch (err) {
193
202
  toast?.(err.message, 6000);
@@ -211,7 +220,11 @@ export function initIssues({ api, $, esc, ago, openAgent, openDoc, toast }) {
211
220
 
212
221
  body.addEventListener('change', (e) => {
213
222
  const act = e.target.dataset.issueAction;
214
- if (act) return setAction([act], e.target.value);
223
+ if (act) {
224
+ // Let go of the dropdown so the list can be drawn again with the change.
225
+ e.target.blur();
226
+ return setAction([act], e.target.value);
227
+ }
215
228
  const one = e.target.dataset.issuePick;
216
229
  if (one) {
217
230
  if (e.target.checked) ticked.add(one);
package/public/rowkeys.js CHANGED
@@ -1,5 +1,6 @@
1
1
  // Keys inside a list dialog (Jira, Actions): j / k move between rows, [ and ] between filters,
2
- // and the dialog's own keys act on the selected row. Not while typing in a field.
2
+ // and the dialog's own keys act on the selected row. Not while typing in a field. Clicking a row
3
+ // selects it, and a key pressed in a row's own control (its action dropdown) acts on that row.
3
4
 
4
5
  const typing = (el) => Boolean(el?.closest?.('input:not([type="checkbox"]), textarea, [contenteditable=""], [contenteditable="true"]'));
5
6
 
@@ -9,25 +10,42 @@ const typing = (el) => Boolean(el?.closest?.('input:not([type="checkbox"]), text
9
10
  */
10
11
  export function rowKeys(dialog, { rows, keys = {}, filters = () => [], idOf = (r) => r.dataset.rowId }) {
11
12
  let selected = null;
13
+ // Where the selected row was: when it leaves the list (skipped, removed), the one now in its
14
+ // place is selected, never silently the first.
15
+ let at = 0;
12
16
  const mark = () => {
13
17
  const list = rows();
14
18
  let row = list.find((r) => idOf(r) === selected);
15
- if (!row && selected !== null) row = list[0];
19
+ if (!row && selected !== null && list.length) {
20
+ row = list[Math.min(at, list.length - 1)];
21
+ selected = idOf(row);
22
+ }
16
23
  for (const r of list) r.classList.toggle('kb-on', r === row);
24
+ if (row) at = list.indexOf(row);
17
25
  return row ?? null;
18
26
  };
27
+ const choose = (row) => {
28
+ selected = idOf(row);
29
+ return mark();
30
+ };
19
31
  const move = (step) => {
20
32
  const list = rows();
21
33
  if (!list.length) return;
22
34
  const i = list.findIndex((r) => idOf(r) === selected);
23
35
  const next = list[Math.max(0, Math.min(list.length - 1, i < 0 ? 0 : i + step))];
24
- selected = idOf(next);
25
- mark();
36
+ choose(next);
26
37
  next.scrollIntoView({ block: 'nearest' });
27
38
  };
39
+ const rowOf = (el) => {
40
+ const tr = el?.closest?.('tr');
41
+ return tr && rows().includes(tr) ? tr : null;
42
+ };
43
+ dialog.addEventListener('pointerdown', (e) => {
44
+ const row = rowOf(e.target);
45
+ if (row) choose(row);
46
+ });
28
47
  dialog.addEventListener('keydown', (e) => {
29
48
  if (e.defaultPrevented || e.isComposing || e.metaKey || e.ctrlKey || e.altKey || typing(e.target)) return;
30
- // A focused select or checkbox keeps its own arrow keys; ours are letters.
31
49
  if (e.key === 'j' || e.key === 'k') {
32
50
  e.preventDefault();
33
51
  return move(e.key === 'j' ? 1 : -1);
@@ -44,7 +62,9 @@ export function rowKeys(dialog, { rows, keys = {}, filters = () => [], idOf = (r
44
62
  }
45
63
  const fn = keys[e.key];
46
64
  if (!fn) return;
47
- const row = mark();
65
+ // A key pressed in a row's own control is about that row.
66
+ const own = rowOf(e.target);
67
+ const row = own ? choose(own) : mark();
48
68
  if (!row && fn.needsRow !== false) return;
49
69
  e.preventDefault();
50
70
  fn(row);
@@ -52,3 +72,34 @@ export function rowKeys(dialog, { rows, keys = {}, filters = () => [], idOf = (r
52
72
  /** After the list is drawn again: keep the selection on the same row. */
53
73
  return { redraw: mark, clear: () => (selected = null) };
54
74
  }
75
+
76
+ /**
77
+ * Wraps a list's render so it waits while you have one of its dropdowns open: drawing the list
78
+ * again (agents change every few seconds) would throw the open dropdown away before you choose.
79
+ * It draws once the dropdown loses focus.
80
+ */
81
+ export function holdWhilePicking(body, render) {
82
+ let waiting = false;
83
+ const picking = () => {
84
+ const f = document.activeElement;
85
+ return f?.tagName === 'SELECT' && body.contains(f);
86
+ };
87
+ body.addEventListener('focusout', () => {
88
+ if (!waiting) return;
89
+ // After focus has moved on.
90
+ setTimeout(() => {
91
+ if (waiting && !picking()) {
92
+ waiting = false;
93
+ render();
94
+ }
95
+ });
96
+ });
97
+ return () => {
98
+ if (picking()) {
99
+ waiting = true;
100
+ return;
101
+ }
102
+ waiting = false;
103
+ render();
104
+ };
105
+ }
package/public/style.css CHANGED
@@ -1131,7 +1131,12 @@ body.mapping .layout, body.mapping .watch-view { display: none; }
1131
1131
  .issues-dialog { width: min(1100px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 16px; }
1132
1132
  /* Only while open: a display on the dialog itself would keep a closed one on screen. */
1133
1133
  .issues-dialog[open] { display: flex; flex-direction: column; }
1134
- #issues-body { display: flex; flex-direction: column; min-height: 0; }
1134
+ #issues-body, #actions-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
1135
+ /* Jira and Actions: drag the corner to any size, or fill the window (⤢ or f). */
1136
+ #issues-dialog, #actions-dialog { resize: both; overflow: hidden; min-width: min(520px, calc(100% - 32px)); min-height: 240px; max-width: calc(100% - 16px); max-height: calc(100% - 16px); }
1137
+ #issues-dialog.expanded, #actions-dialog.expanded { width: calc(100% - 16px); height: calc(100% - 16px); }
1138
+ .issues-dialog.expanded table.issues .issue-title, .issues-dialog.expanded table.issues .issue-synopsis { max-width: none; }
1139
+ .issues-dialog.expanded table.issues .issue-synopsis { -webkit-line-clamp: 6; }
1135
1140
  .issues-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
1136
1141
  .issues-head h2 { margin: 0 6px 0 0; font-size: 18px; }
1137
1142
  .issues-head .spacer { flex: 1; }
package/src/issues.js CHANGED
@@ -105,6 +105,8 @@ function designOf(v, read) {
105
105
  export function issueRows(views, jira = new Map(), read = () => null, proposed = [], actions = {}, assigned = []) {
106
106
  const rank = Object.fromEntries(Object.keys(GROUPS).map((k, i) => [k, i]));
107
107
  const rows = [];
108
+ // What the search for issues assigned to you found: their summaries stand in where nothing else has one.
109
+ const mine = new Map(assigned.map((i) => [i.key, i]));
108
110
  // Issues proposed for agents, not started yet: they wait for you to tick them.
109
111
  for (const p of proposed) {
110
112
  const j = jira.get(p.key) ?? null;
@@ -112,8 +114,8 @@ export function issueRows(views, jira = new Map(), read = () => null, proposed =
112
114
  rows.push({
113
115
  key: p.key,
114
116
  url: p.url,
115
- title: j?.summary ?? p.title,
116
- synopsis: synopsisFor(j, p.title, null, j?.summary ?? p.title),
117
+ title: j?.summary ?? mine.get(p.key)?.summary ?? p.title,
118
+ synopsis: synopsisFor({ synopsis: j?.synopsis ?? mine.get(p.key)?.synopsis }, p.title, null, j?.summary ?? mine.get(p.key)?.summary ?? p.title),
117
119
  jira: j ? { status: j.status, category: j.category } : null,
118
120
  action,
119
121
  stage: 'proposed',
@@ -140,8 +142,8 @@ export function issueRows(views, jira = new Map(), read = () => null, proposed =
140
142
  rows.push({
141
143
  key: issue.key,
142
144
  url: issue.url,
143
- title: j?.summary ?? issue.title,
144
- synopsis: synopsisFor(j, wordsAfterLink(v.intent), design?.summary, j?.summary ?? issue.title),
145
+ title: j?.summary ?? mine.get(issue.key)?.summary ?? issue.title,
146
+ synopsis: synopsisFor({ synopsis: j?.synopsis ?? mine.get(issue.key)?.synopsis }, wordsAfterLink(v.intent), design?.summary, j?.summary ?? mine.get(issue.key)?.summary ?? issue.title),
145
147
  jira: j ? { status: j.status, category: j.category } : null,
146
148
  action,
147
149
  stage,